diff --git a/geonode_mapstore_client/client/version.txt b/geonode_mapstore_client/client/version.txt index c00e16bc0d..741a27e1ab 100644 --- a/geonode_mapstore_client/client/version.txt +++ b/geonode_mapstore_client/client/version.txt @@ -1 +1 @@ -geonode-mapstore-client-v4.0.0-b989d578e217441bb0d1e2e327cae9fd6b1cdea6 \ No newline at end of file +geonode-mapstore-client-v4.0.0-2c41805cf5279fbc790d7ebce8dfab33c0bb2ed1 \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/0.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/0.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/0.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/0.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/10025.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/10025.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/10025.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/10025.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/10038.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/10038.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/10038.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/10038.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/10175.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/10175.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/10175.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/10175.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/10222.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/10222.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/10222.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/10222.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/10240.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/10240.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/10240.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/10240.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/10279.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/10279.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/10279.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/10279.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/10433.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/10433.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/10433.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/10433.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/10698.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/10698.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/10698.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/10698.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/10810.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/10810.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/10810.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/10810.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/10902.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/10902.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/10902.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/10902.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/10904.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/10904.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/10904.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/10904.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/11125.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/11125.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/11125.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/11125.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/1124.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/1124.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/1124.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/1124.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/11322.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/11322.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/11322.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/11322.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/11377.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/11377.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/11377.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/11377.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/11385.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/11385.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/11385.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/11385.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/11506.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/11506.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/11506.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/11506.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/11671.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/11671.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/11671.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/11671.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/11699.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/11699.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/11699.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/11699.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/11704.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/11704.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/11704.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/11704.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/1174.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/1174.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/1174.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/1174.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/11932.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/11932.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/11932.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/11932.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/12020.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/12020.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/12020.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/12020.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/12064.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/12064.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/12064.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/12064.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/12151.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/12151.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/12151.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/12151.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/12157.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/12157.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/12157.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/12157.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/12290.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/12290.74fb1733f89b05e9e60d.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/js/12290.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/12290.74fb1733f89b05e9e60d.chunk.js index 6233982f2a..d0c8b951b8 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/12290.b32b32d2650f7cc681c9.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/12290.74fb1733f89b05e9e60d.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 12290.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt */ +/*! For license information please see 12290.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[12290],{212290:function(t,e,r){"use strict";var n=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i0){var o=n.map((function(t){return"{{".concat(t,"}}")}));r&&r.length>0?i?(r.forEach((function(t,r){e+="".concat(t),o[r]&&(e+="".concat(o[r]))})),o.length>r.length&&(e+=o.join(""))):(o.forEach((function(t,n){e+="".concat(t),r[n]&&(e+="".concat(r[n]))})),r.length>o.length&&(e+=r.join(""))):e=o.join("")}else r&&r.length>0?e=r.join(""):"string"==typeof t&&(e=t);return e},this.getSldLabelFromTextSymbolizer=function(t){var e=new RegExp("\\{\\{.*?\\}\\}","g"),r=t.match(e),n=t.startsWith("{{");if(r){var i=t.split(e),o=[];i.forEach((function(t){0!==t.length&&o.push(t)}));var s=r.map((function(t){return t.slice(2,t.length-2)}));return n?[{"ogc:PropertyName":s,"ogc:Literal":o}]:[{"ogc:Literal":o,"ogc:PropertyName":s}]}return[{"ogc:Literal":[t]}]},Object.assign(this,t)}return Object.defineProperty(t.prototype,"numericFilterFields",{get:function(){return this._numericFilterFields},set:function(t){this._numericFilterFields=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"boolFilterFields",{get:function(){return this._boolFilterFields},set:function(t){this._boolFilterFields=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"forceCasting",{get:function(){return this._forceCasting},set:function(t){this._forceCasting=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"prettyOutput",{get:function(){return this._prettyOutput},set:function(t){this._prettyOutput=t},enumerable:!1,configurable:!0}),t.keysByValue=function(t,e){return Object.keys(t).filter((function(r){return t[r]===e}))},t.prototype.tagNameProcessor=function(t){var e=new RegExp(/(?!xmlns)^.*:/);return t.replace(e,"")},t.prototype.getStyleNameFromSldObject=function(t){var e=a(t,"StyledLayerDescriptor.NamedLayer[0].UserStyle[0].Title[0]"),r=a(t,"StyledLayerDescriptor.NamedLayer[0].Name[0]");return e||r||""},t.prototype.getStrMatchesFunctionFilterFromSldFilter=function(t){var e=a(t,"Function[0].PropertyName[0]"),r=a(t,"Function[0].Literal[0]");return["FN_strMatches",e,new RegExp(r)]},t.prototype.getFunctionFilterFromSldFilter=function(t){return a(t,"Function[0].$.name"),this.getStrMatchesFunctionFilterFromSldFilter(t)},t.prototype.getFilterFromOperatorAndComparison=function(e,r){var i,s=this;if(Object.keys(t.comparisonMap).includes(e)){var a=t.comparisonMap[e],c=!!r.Function,l=c?this.getFunctionFilterFromSldFilter(r):r.PropertyName[0],u=null;if("PropertyIsNull"!==e&&(u=r.Literal[0]),(this.forceCasting||c||-1!==this.numericFilterFields.indexOf(l))&&!Number.isNaN(parseFloat(u))&&(u=parseFloat(u)),o(u)){var p=u.toLowerCase();(this.forceCasting||c||-1!==this.boolFilterFields.indexOf(l))&&("false"===p&&(u=!1),"true"===p&&(u=!0))}i=[a,l,u]}else if(Object.keys(t.combinationMap).includes(e)){var h=t.combinationMap[e],f=[];Object.keys(r).forEach((function(t){1===r[t].length?f.push(s.getFilterFromOperatorAndComparison(t,r[t][0])):r[t].forEach((function(e){f.push(s.getFilterFromOperatorAndComparison(t,e))}))})),i=n([h],f,!0)}else{if(!Object.keys(t.negationOperatorMap).includes(e))throw new Error("No Filter detected");var d=t.negationOperatorMap[e],y=Object.keys(r)[0],m=r[y][0];i=[d,this.getFilterFromOperatorAndComparison(y,m)]}return i},t.prototype.getFilterFromRule=function(t){var e=t.Filter;if(e){var r=e[0],n=Object.keys(r).find((function(t,e){return"$"!==t}));if(n){var i=r[n][0];return this.getFilterFromOperatorAndComparison(n,i)}}},t.prototype.getScaleDenominatorFromRule=function(t){var e={};return t.MinScaleDenominator&&(e.min=parseFloat(t.MinScaleDenominator[0])),t.MaxScaleDenominator&&(e.max=parseFloat(t.MaxScaleDenominator[0])),e.min||e.max?e:void 0},t.prototype.getMarkSymbolizerFromSldSymbolizer=function(t){var e=a(t,"Graphic[0].Mark[0].WellKnownName[0]"),r=a(t,"Graphic[0].Mark[0].Stroke[0].CssParameter")||[];0===r.length&&(r=a(t,"Graphic[0].Mark[0].Stroke[0].SvgParameter")||[]);var n=a(t,"Graphic[0].Opacity[0]"),i=a(t,"Graphic[0].Size[0]"),o=a(t,"Graphic[0].Rotation[0]"),s=a(t,"Graphic[0].Mark[0].Fill[0].CssParameter")||[];0===s.length&&(s=a(t,"Graphic[0].Mark[0].Fill[0].SvgParameter")||[]);var c=s.findIndex((function(t){return"fill"===t.$.name})),l=a(t,"Graphic[0].Mark[0].Fill[0].CssParameter["+c+"]._");if(!l){var u=a(t,"Graphic[0].Mark[0].Fill[0].SvgParameter["+c+"]._");u&&(l=u)}var p=s.findIndex((function(t){return"fill-opacity"===t.$.name})),h=a(t,"Graphic[0].Mark[0].Fill[0].CssParameter["+p+"]._"),f={kind:"Mark"};switch(n&&(f.opacity=parseFloat(n)),h&&(f.fillOpacity=parseFloat(h)),l&&(f.color=l),o&&(f.rotate=parseFloat(o)),i&&(f.radius=parseFloat(i)/2),e){case"circle":case"square":case"triangle":case"star":case"cross":case"x":var d=e.charAt(0).toUpperCase()+e.slice(1);f.wellKnownName=d;break;case"shape://vertline":case"shape://horline":case"shape://slash":case"shape://backslash":case"shape://dot":case"shape://plus":case"shape://times":case"shape://oarrow":case"shape://carrow":f.wellKnownName=e;break;default:throw new Error("MarkSymbolizer cannot be parsed. Unsupported WellKnownName.")}return r.forEach((function(t){switch(t.$.name){case"stroke":f.strokeColor=t._;break;case"stroke-width":f.strokeWidth=parseFloat(t._);break;case"stroke-opacity":f.strokeOpacity=parseFloat(t._)}})),f},t.prototype.getIconSymbolizerFromSldSymbolizer=function(t){var e={kind:"Icon",image:a(t,"Graphic[0].ExternalGraphic[0].OnlineResource[0]").$["xlink:href"]},r=a(t,"Graphic[0].Opacity[0]"),n=a(t,"Graphic[0].Size[0]"),i=a(t,"Graphic[0].Rotation[0]");return void 0!==r&&(e.opacity=r),n&&(e.size=parseFloat(n)),i&&(e.rotate=parseFloat(i)),e},t.prototype.getPointSymbolizerFromSldSymbolizer=function(t){var e={},r=a(t,"Graphic[0].Mark[0].WellKnownName[0]");return a(t,"Graphic[0].ExternalGraphic[0]")?e=this.getIconSymbolizerFromSldSymbolizer(t):(r||c(t,"Graphic[0].Mark[0].WellKnownName[0]","square"),e=this.getMarkSymbolizerFromSldSymbolizer(t)),e},t.prototype.getLineSymbolizerFromSldSymbolizer=function(t){var e=this,r={kind:"Line"},n=Object.keys(a(t,"Stroke[0]"))||[];if(n.length<1)throw new Error("LineSymbolizer cannot be parsed. No Stroke detected");n.forEach((function(n){switch(n){case"CssParameter":case"SvgParameter":var i=a(t,"Stroke[0].CssParameter")||[];if(0===i.length&&(i=a(t,"Stroke[0].SvgParameter")||[]),i.length<1)throw new Error("LineSymbolizer can not be parsed. No CssParameters detected.");i.forEach((function(t){var e=t.$.name,n=t._;switch(e){case"stroke":r.color=n;break;case"stroke-width":r.width=parseFloat(n);break;case"stroke-opacity":r.opacity=parseFloat(n);break;case"stroke-linejoin":r.join="mitre"===n?"miter":n;break;case"stroke-linecap":r.cap=n;break;case"stroke-dasharray":var i=n.split(" ").map((function(t){return parseFloat(t)}));r.dasharray=i;break;case"stroke-dashoffset":r.dashOffset=parseFloat(n)}}));break;case"GraphicStroke":r.graphicStroke=e.getPointSymbolizerFromSldSymbolizer(t.Stroke[0].GraphicStroke[0]);break;case"GraphicFill":r.graphicFill=e.getPointSymbolizerFromSldSymbolizer(t.Stroke[0].GraphicFill[0])}}));var i=a(t,"PerpendicularOffset[0]");return void 0!==i&&(r.perpendicularOffset=Number(i)),r},t.prototype.getFillSymbolizerFromSldSymbolizer=function(t){var e={kind:"Fill"},r=a(t,"Fill[0].CssParameter")||[];0===r.length&&(r=a(t,"Fill[0].SvgParameter")||[]);var n=a(t,"Stroke[0].CssParameter")||[];0===n.length&&(n=a(t,"Stroke[0].SvgParameter")||[]);var i=a(t,"Fill[0].GraphicFill[0]");return i&&(e.graphicFill=this.getPointSymbolizerFromSldSymbolizer(i)),r.forEach((function(t){var r=t.$.name,n=t._;switch(r){case"fill":e.color=n;break;case"fill-opacity":e.fillOpacity=parseFloat(n)}})),e.color||(e.opacity=0),n.forEach((function(t){var r=t.$.name,n=t._;if("stroke"===r)e.outlineColor=n;else if("stroke-width"===r)e.outlineWidth=parseFloat(n);else if("stroke-opacity"===r)e.outlineOpacity=parseFloat(n);else if("stroke-dasharray"===r){var i=n.split(" "),o=[];i.forEach((function(t){o.push(parseFloat(t))})),e.outlineDasharray=o}})),e},t.prototype.getColorMapFromSldColorMap=function(t){var e={},r=a(t,"$.type");e.type=r||"ramp";var n=a(t,"$.extended");n&&(e.extended="true"===n);var i=a(t,"ColorMapEntry");if(Array.isArray(i)){var o=i.map((function(t){var e=a(t,"$.color");if(!e)throw new Error("Cannot parse ColorMapEntries. color is undefined.");var r=a(t,"$.quantity");r&&(r=parseFloat(r));var n=a(t,"$.label"),i=a(t,"$.opacity");return i&&(i=parseFloat(i)),{color:e,quantity:r,label:n,opacity:i}}));e.colorMapEntries=o}return e},t.prototype.getContrastEnhancementFromSldContrastEnhancement=function(t){var e={},r=void 0!==t.Histogram,n=void 0!==t.Normalize;if(r&&n)throw new Error("Cannot parse ContrastEnhancement. Histogram and Normalize\n are mutually exclusive.");r?e.enhancementType="histogram":n&&(e.enhancementType="normalize");var i=a(t,"GammaValue[0]");return i&&(i=parseFloat(i)),e.gammaValue=i,e},t.prototype.getChannelFromSldChannel=function(t){var e={sourceChannelName:a(t,"SourceChannelName[0]")},r=a(t,"ContrastEnhancement[0]");return r&&(e.contrastEnhancement=this.getContrastEnhancementFromSldContrastEnhancement(r)),e},t.prototype.getChannelSelectionFromSldChannelSelection=function(t){var e,r=a(t,"RedChannel[0]"),n=a(t,"BlueChannel[0]"),i=a(t,"GreenChannel[0]"),o=a(t,"GrayChannel[0]");if(o&&r&&n&&i)throw new Error("Cannot parse ChannelSelection. RGB and Grayscale are mutually exclusive");if(o)e={grayChannel:this.getChannelFromSldChannel(o)};else{if(!(r&&i&&n))throw new Error("Cannot parse ChannelSelection. Red, Green and Blue channels must be defined.");e={redChannel:this.getChannelFromSldChannel(r),blueChannel:this.getChannelFromSldChannel(n),greenChannel:this.getChannelFromSldChannel(i)}}return e},t.prototype.getRasterSymbolizerFromSldSymbolizer=function(t){var e={kind:"Raster"},r=a(t,"Opacity[0]");r&&(r=parseFloat(r),e.opacity=r);var n=a(t,"ColorMap")||[];if(n.length>0){var i=this.getColorMapFromSldColorMap(n[0]);e.colorMap=i}var o=a(t,"ChannelSelection")||[];if(o.length>0){var s=this.getChannelSelectionFromSldChannelSelection(o[0]);e.channelSelection=s}var c=a(t,"ContrastEnhancement")||[];if(c.length>0){var l=this.getContrastEnhancementFromSldContrastEnhancement(c[0]);e.contrastEnhancement=l}return e},t.prototype.getTextSymbolizerFromSldSymbolizer=function(t){var e={kind:"Text"},r=a(t,"Font[0].CssParameter")||[];0===r.length&&(r=a(t,"Font[0].SvgParameter")||[]);var n=a(t,"Label[0]");n&&(e.label=this.getTextSymbolizerLabelFromSldSymbolizer(n));var i=a(t,"Fill[0].CssParameter[0]._");i||(i=a(t,"Fill[0].SvgParameter[0]._"));var o=a(t,"Halo[0].Fill[0].CssParameter")||[];0===o.length&&(o=a(t,"Halo[0].Fill[0].SvgParameter")||[]);var s=a(t,"Halo[0].Radius[0]");i&&(e.color=i),s&&(e.haloWidth=parseFloat(s)),o.forEach((function(t){var r=t.$.name,n=t._;"fill"===r&&(e.haloColor=n)}));var c=a(t,"LabelPlacement[0].PointPlacement[0].Displacement[0]");if(c){var l=c.DisplacementX[0],u=c.DisplacementY[0];e.offset=[l?parseFloat(l):0,u?parseFloat(u):0]}var p=a(t,"LabelPlacement[0].PointPlacement[0].Rotation[0]");return p&&(e.rotate=parseFloat(p)),r.forEach((function(t){var r=t.$.name,n=t._;switch(r){case"font-family":e.font=[n];break;case"font-style":e.fontStyle=n;break;case"font-weight":e.fontWeight=n;break;case"font-size":e.size=parseFloat(n)}})),e},t.prototype.getSymbolizersFromRule=function(t){var e=this,r=[];return Object.keys(t).filter((function(t){return t.endsWith("Symbolizer")})).forEach((function(n){t[n].forEach((function(t){var i;switch(n){case"PointSymbolizer":i=e.getPointSymbolizerFromSldSymbolizer(t);break;case"LineSymbolizer":i=e.getLineSymbolizerFromSldSymbolizer(t);break;case"TextSymbolizer":i=e.getTextSymbolizerFromSldSymbolizer(t);break;case"PolygonSymbolizer":i=e.getFillSymbolizerFromSldSymbolizer(t);break;case"RasterSymbolizer":i=e.getRasterSymbolizerFromSldSymbolizer(t);break;default:throw new Error("Failed to parse SymbolizerKind from SldRule")}r.push(i)}))})),r},t.prototype.getRulesFromSldObject=function(t){var e=this,r=t.StyledLayerDescriptor.NamedLayer,n=[];return r.forEach((function(t){t.UserStyle.forEach((function(t){t.FeatureTypeStyle.forEach((function(t){t.Rule.forEach((function(t){var r=e.getFilterFromRule(t),i=e.getScaleDenominatorFromRule(t),o=e.getSymbolizersFromRule(t),s={name:t.Title?t.Title[0]:t.Name?t.Name[0]:""};r&&(s.filter=r),i&&(s.scaleDenominator=i),o&&(s.symbolizers=o),n.push(s)}))}))}))})),n},t.prototype.sldObjectToGeoStylerStyle=function(t){var e=this.getRulesFromSldObject(t);return{name:this.getStyleNameFromSldObject(t),rules:e}},t.prototype.readStyle=function(t){var e=this;return new Promise((function(r,n){var o={tagNameProcessors:[e.tagNameProcessor]};try{(0,i.parseString)(t,o,(function(t,i){t&&n("Error while parsing sldString: ".concat(t));var o=e.sldObjectToGeoStylerStyle(i);r(o)}))}catch(t){n(t)}}))},t.prototype.writeStyle=function(t){var e=this;return new Promise((function(r,n){try{var o={renderOpts:{pretty:e.prettyOutput}},s=new i.Builder(o),a=e.geoStylerStyleToSldObject(t);r(s.buildObject(a))}catch(t){n(t)}}))},t.prototype.geoStylerStyleToSldObject=function(t){var e=this.getSldRulesFromRules(t.rules);return e.forEach((function(t){t.Filter&&!t.Filter.$&&(t.Filter.$={xmlns:"http://www.opengis.net/ogc"})})),{StyledLayerDescriptor:{$:{version:"1.0.0","xsi:schemaLocation":"http://www.opengis.net/sld StyledLayerDescriptor.xsd",xmlns:"http://www.opengis.net/sld","xmlns:ogc":"http://www.opengis.net/ogc","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},NamedLayer:[{Name:[t.name||""],UserStyle:[{Name:[t.name||""],Title:[t.name||""],FeatureTypeStyle:[{Rule:e}]}]}]}}},t.prototype.getSldRulesFromRules=function(t){var e=this;return t.map((function(t){var r={Name:[t.name]};if(t.filter){var n=e.getSldFilterFromFilter(t.filter);r.Filter=n}if(t.scaleDenominator){var i=t.scaleDenominator,o=i.min,a=i.max;o&&s(o)&&(r.MinScaleDenominator=[o.toString()]),a&&s(a)&&(r.MaxScaleDenominator=[a.toString()])}var c=e.getSldSymbolizersFromSymbolizers(t.symbolizers),l=[];return c.length>0&&(l=Object.keys(c[0])),l.forEach((function(t){0===c[0][t].length&&delete c[0][t]})),c.length>0&&0!==Object.keys(c[0]).length&&(r=Object.assign(r,c[0])),r}))},t.prototype.getSldSymbolizersFromSymbolizers=function(t){var e=this,r=[],n={};return t.forEach((function(t){var i;switch(t.kind){case"Mark":n.PointSymbolizer||(n.PointSymbolizer=[]),i=e.getSldPointSymbolizerFromMarkSymbolizer(t),a(i,"PointSymbolizer[0]")&&n.PointSymbolizer.push(a(i,"PointSymbolizer[0]"));break;case"Icon":n.PointSymbolizer||(n.PointSymbolizer=[]),i=e.getSldPointSymbolizerFromIconSymbolizer(t),a(i,"PointSymbolizer[0]")&&n.PointSymbolizer.push(a(i,"PointSymbolizer[0]"));break;case"Text":n.TextSymbolizer||(n.TextSymbolizer=[]),i=e.getSldTextSymbolizerFromTextSymbolizer(t),a(i,"TextSymbolizer[0]")&&n.TextSymbolizer.push(a(i,"TextSymbolizer[0]"));break;case"Line":n.LineSymbolizer||(n.LineSymbolizer=[]),i=e.getSldLineSymbolizerFromLineSymbolizer(t),a(i,"LineSymbolizer[0]")&&n.LineSymbolizer.push(a(i,"LineSymbolizer[0]"));break;case"Fill":n.PolygonSymbolizer||(n.PolygonSymbolizer=[]),i=e.getSldPolygonSymbolizerFromFillSymbolizer(t),a(i,"PolygonSymbolizer[0]")&&n.PolygonSymbolizer.push(a(i,"PolygonSymbolizer[0]"));break;case"Raster":n.RasterSymbolizer||(n.RasterSymbolizer=[]),i=e.getSldRasterSymbolizerFromRasterSymbolizer(t),a(i,"RasterSymbolizer[0]")&&n.RasterSymbolizer.push(a(i,"RasterSymbolizer[0]"))}r.push(n)})),r},t.prototype.getSldTextSymbolizerFromTextSymbolizer=function(t){var e=[{Label:t.label?this.getSldLabelFromTextSymbolizer(t.label):void 0}],r={font:"font-family",size:"font-size",fontStyle:"font-style",fontWeight:"font-weight"},n=Object.keys(t).filter((function(t){return"kind"!==t&&r[t]})).map((function(e){return{_:"font"===e?t[e][0]:t[e],$:{name:r[e]}}}));if(n.length>0&&(e[0].Font=[{CssParameter:n}]),t.offset||void 0!==t.rotate){var i=[{}];t.offset&&(i[0].Displacement=[{DisplacementX:[t.offset[0].toString()],DisplacementY:[t.offset[1].toString()]}]),void 0!==t.rotate&&(i[0].Rotation=[t.rotate.toString()]),e[0].LabelPlacement=[{PointPlacement:i}]}if(t.color&&(e[0].Fill=[{CssParameter:[{_:t.color,$:{name:"fill"}}]}]),t.haloWidth||t.haloColor){var o={},s=[];t.haloWidth&&(o.Radius=[t.haloWidth.toString()]),t.haloColor&&s.push({_:t.haloColor,$:{name:"fill"}}),s.length>0&&(o.Fill=[{CssParameter:s}]),e[0].Halo=[o]}return{TextSymbolizer:e}},t.prototype.getSldPolygonSymbolizerFromFillSymbolizer=function(t){var e,r={outlineColor:"stroke",outlineWidth:"stroke-width",outlineOpacity:"stroke-opacity",outlineDasharray:"stroke-dasharray"},n={color:"fill",fillOpacity:"fill-opacity"},i=[],o=[];a(t,"graphicFill")&&("Mark"===a(t,"graphicFill.kind")?e=this.getSldPointSymbolizerFromMarkSymbolizer(t.graphicFill):"Icon"===a(t,"graphicFill.kind")&&(e=this.getSldPointSymbolizerFromIconSymbolizer(t.graphicFill))),Object.keys(t).filter((function(t){return"kind"!==t})).filter((function(e){return void 0!==t[e]&&null!==t[e]})).forEach((function(e){if(Object.keys(n).includes(e))o.push({_:t[e],$:{name:n[e]}});else if(Object.keys(r).includes(e)){var s="";if("outlineDasharray"===e){var a=t[e];s="",a.forEach((function(t,e){s+=t,e0||e)&&(s[0].Fill=[{}],e&&(s[0].Fill[0].GraphicFill=[e.PointSymbolizer[0]]),o.length>0&&(s[0].Fill[0].CssParameter=o)),i.length>0&&(s[0].Stroke=[{CssParameter:i}]),{PolygonSymbolizer:s}},t.prototype.getSldLineSymbolizerFromLineSymbolizer=function(t){var e={color:"stroke",width:"stroke-width",opacity:"stroke-opacity",join:"stroke-linejoin",cap:"stroke-linecap",dasharray:"stroke-dasharray",dashOffset:"stroke-dashoffset"},r={LineSymbolizer:[{Stroke:[{}]}]},n=Object.keys(t).filter((function(r){return"kind"!==r&&e[r]&&void 0!==t[r]&&null!==t[r]})).map((function(r){var n=t[r];return"dasharray"===r&&(n=t.dasharray?t.dasharray.join(" "):void 0),"join"===r&&"miter"===n&&(n="mitre"),{_:n,$:{name:e[r]}}})),i=t.perpendicularOffset;if(a(t,"graphicStroke"))if("Mark"===a(t,"graphicStroke.kind")){var o=this.getSldPointSymbolizerFromMarkSymbolizer(t.graphicStroke);r.LineSymbolizer[0].Stroke[0].GraphicStroke=[o.PointSymbolizer[0]]}else"Icon"===a(t,"graphicStroke.kind")&&(o=this.getSldPointSymbolizerFromIconSymbolizer(t.graphicStroke),r.LineSymbolizer[0].Stroke[0].GraphicStroke=[o.PointSymbolizer[0]]);if(a(t,"graphicFill"))if("Mark"===a(t,"graphicFill.kind")){var s=this.getSldPointSymbolizerFromMarkSymbolizer(t.graphicFill);r.LineSymbolizer[0].Stroke[0].GraphicFill=[s.PointSymbolizer[0]]}else"Icon"===a(t,"graphicFill.kind")&&(s=this.getSldPointSymbolizerFromIconSymbolizer(t.graphicFill),r.LineSymbolizer[0].Stroke[0].GraphicFill=[s.PointSymbolizer[0]]);return 0!==n.length&&(r.LineSymbolizer[0].Stroke[0].CssParameter=n),i&&(r.LineSymbolizer[0].PerpendicularOffset=[i]),r},t.prototype.getSldPointSymbolizerFromMarkSymbolizer=function(t){var e=[{WellKnownName:[t.wellKnownName.toLowerCase()]}];if(t.color||t.fillOpacity){var r=[];t.color&&r.push({_:t.color,$:{name:"fill"}}),t.fillOpacity&&r.push({_:t.fillOpacity,$:{name:"fill-opacity"}}),e[0].Fill=[{CssParameter:r}]}if(t.strokeColor||t.strokeWidth||t.strokeOpacity){e[0].Stroke=[{}];var n=[];t.strokeColor&&n.push({_:t.strokeColor,$:{name:"stroke"}}),t.strokeWidth&&n.push({_:t.strokeWidth.toString(),$:{name:"stroke-width"}}),t.strokeOpacity&&n.push({_:t.strokeOpacity.toString(),$:{name:"stroke-opacity"}}),e[0].Stroke[0].CssParameter=n}var i=[{Mark:e}];return t.opacity&&(i[0].Opacity=[t.opacity.toString()]),t.radius&&(i[0].Size=[(2*t.radius).toString()]),t.rotate&&(i[0].Rotation=[t.rotate.toString()]),{PointSymbolizer:[{Graphic:i}]}},t.prototype.getSldPointSymbolizerFromIconSymbolizer=function(t){var e=[{ExternalGraphic:[{OnlineResource:[{$:{"xlink:type":"simple","xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":t.image}}]}]}];if(t.image){var r=t.image.split(".").pop();switch(r){case"png":case"jpeg":case"gif":e[0].ExternalGraphic[0].Format=["image/".concat(r)];break;case"jpg":e[0].ExternalGraphic[0].Format=["image/jpeg"];break;case"svg":e[0].ExternalGraphic[0].Format=["image/svg+xml"]}}return void 0!==t.opacity&&(e[0].Opacity=t.opacity),t.size&&(e[0].Size=t.size),t.rotate&&(e[0].Rotation=t.rotate),{PointSymbolizer:[{Graphic:e}]}},t.prototype.getSldRasterSymbolizerFromRasterSymbolizer=function(t){var e,r,n,i,o=[{}];return void 0!==t.opacity&&(e=[t.opacity.toString()],o[0].Opacity=e),t.colorMap&&(r=this.getSldColorMapFromColorMap(t.colorMap),l(r[0])||(o[0].ColorMap=r)),t.channelSelection&&(n=this.getSldChannelSelectionFromChannelSelection(t.channelSelection),l(n[0])||(o[0].ChannelSelection=n)),t.contrastEnhancement&&(i=this.getSldContrastEnhancementFromContrastEnhancement(t.contrastEnhancement),l(i[0])||(o[0].ContrastEnhancement=i)),{RasterSymbolizer:o}},t.prototype.getSldColorMapFromColorMap=function(t){var e=[{$:{}}];if(t.type){var r=t.type;e[0].$.type=r}if(void 0!==t.extended){var n=t.extended.toString();e[0].$.extended=n}if(t.colorMapEntries&&t.colorMapEntries.length>0){var i=t.colorMapEntries.map((function(t){var e={$:{}};return t.color&&(e.$.color=t.color),void 0!==t.quantity&&(e.$.quantity=t.quantity.toString()),t.label&&(e.$.label=t.label),void 0!==t.opacity&&(e.$.opacity=t.opacity.toString()),e})).filter((function(t){return Object.keys(t.$).length>0}));e[0].ColorMapEntry=i}return e},t.prototype.getSldChannelSelectionFromChannelSelection=function(t){var e=this,r={redChannel:"RedChannel",blueChannel:"BlueChannel",greenChannel:"GreenChannel",grayChannel:"GrayChannel"},n=Object.keys(t),i=[{}];return n.forEach((function(n){var o=[{}],s=a(t,"".concat(n,".sourceChannelName")),c=a(t,"".concat(n,".contrastEnhancement"));(s||c)&&(s&&(o[0].SourceChannelName=[s]),c&&(o[0].ContrastEnhancement=e.getSldContrastEnhancementFromContrastEnhancement(c)),i[0][r[n]]=o)})),i},t.prototype.getSldContrastEnhancementFromContrastEnhancement=function(t){var e=[{}],r=a(t,"enhancementType");return"normalize"===r?e[0].Normalize=[""]:"histogram"===r&&(e[0].Histogram=[""]),void 0!==t.gammaValue&&(e[0].GammaValue=[t.gammaValue.toString()]),e},t.prototype.getSldStrMatchesFunctionFromFunctionFilter=function(t){return{$:{name:"strMatches"},PropertyName:[t[1]],Literal:[t[2].toString().replace(/\//g,"")]}},t.prototype.getSldFunctionFilterFromFunctionFilter=function(t){if("strMatches"===t[0].split("FN_")[1])return this.getSldStrMatchesFunctionFromFunctionFilter(t)},t.prototype.getSldComparisonFilterFromComparisonFilter=function(e){var r,n,i,o={},s=e[0],a=e[1],c=e[2],l=t.keysByValue(t.comparisonMap,s),u=l.length>1&&null===c?l[1]:l[0],p="PropertyName";return Array.isArray(a)&&a[0].startsWith("FN_")&&(a=this.getSldFunctionFilterFromFunctionFilter(a),p="Function"),o[u]="PropertyIsNull"===u?[(r={},r[p]=[a],r)]:"PropertyIsLike"===u?[(n={$:{wildCard:"*",singleChar:".",escape:"!"}},n[p]=[a],n.Literal=[c],n)]:[(i={},i[p]=[a],i.Literal=[c],i)],o},t.prototype.getSldFilterFromFilter=function(e){var r=this,n={},i=e[0],o=e.slice(1);if(Object.values(t.comparisonMap).includes(i))n=this.getSldComparisonFilterFromComparisonFilter(e);else if(Object.values(t.combinationMap).includes(i)){var s=t.keysByValue(t.combinationMap,i)[0];n[s]=[{}],o.forEach((function(t,e){var i=r.getSldFilterFromFilter(t),o=Object.keys(i)[0];if("||"===t[0]||"&&"===t[0]){["And","Or"].includes(o)?(n[s][0][o]||(n[s][0][o]=[]),n[s][0][o][e]={}):n[s][0][o]={};var a=Object.keys(i)[0];t.forEach((function(t,i){if(i>0){var o=r.getSldFilterFromFilter(t),c=Object.keys(o)[0];n[s][0][a][e]||(n[s][0][a][e]={}),n[s][0][a][e][c]||(n[s][0][a][e][c]=[]),n[s][0][a][e][c].push(o[c][0])}}))}else Array.isArray(n[s][0][o])?n[s][0][o].push(i[o][0]):n[s][0][o]=i[o]}))}else Object.values(t.negationOperatorMap).includes(i)&&(n.Not=o.map((function(t){return r.getSldFilterFromFilter(t)})));return n},t.title="SLD Style Parser",t.negationOperatorMap={Not:"!"},t.combinationMap={And:"&&",Or:"||",PropertyIsBetween:"&&"},t.comparisonMap={PropertyIsEqualTo:"==",PropertyIsNotEqualTo:"!=",PropertyIsLike:"*=",PropertyIsLessThan:"<",PropertyIsLessThanOrEqualTo:"<=",PropertyIsGreaterThan:">",PropertyIsGreaterThanOrEqualTo:">=",PropertyIsNull:"=="},t}();e.SldStyleParser=u,e.default=u},664465:function(t,e){(function(){"use strict";e.stripBOM=function(t){return"\ufeff"===t[0]?t.substring(1):t}}).call(this)},16769:function(t,e,r){(function(){"use strict";var t,n,i,o,s,a={}.hasOwnProperty;t=r(805532),n=r(365008).defaults,o=function(t){return"string"==typeof t&&(t.indexOf("&")>=0||t.indexOf(">")>=0||t.indexOf("<")>=0)},s=function(t){return""},i=function(t){return t.replace("]]>","]]]]>")},e.Builder=function(){function e(t){var e,r,i;for(e in this.options={},r=n[.2])a.call(r,e)&&(i=r[e],this.options[e]=i);for(e in t)a.call(t,e)&&(i=t[e],this.options[e]=i)}return e.prototype.buildObject=function(e){var r,i,c,l,u,p;return r=this.options.attrkey,i=this.options.charkey,1===Object.keys(e).length&&this.options.rootName===n[.2].rootName?e=e[u=Object.keys(e)[0]]:u=this.options.rootName,p=this,c=function(t,e){var n,l,u,h,f,d;if("object"!=typeof e)p.options.cdata&&o(e)?t.raw(s(e)):t.txt(e);else if(Array.isArray(e)){for(h in e)if(a.call(e,h))for(f in l=e[h])u=l[f],t=c(t.ele(f),u).up()}else for(f in e)if(a.call(e,f))if(l=e[f],f===r){if("object"==typeof l)for(n in l)d=l[n],t=t.att(n,d)}else if(f===i)t=p.options.cdata&&o(l)?t.raw(s(l)):t.txt(l);else if(Array.isArray(l))for(h in l)a.call(l,h)&&(t="string"==typeof(u=l[h])?p.options.cdata&&o(u)?t.ele(f).raw(s(u)).up():t.ele(f,u).up():c(t.ele(f),u).up());else"object"==typeof l?t=c(t.ele(f),l).up():"string"==typeof l&&p.options.cdata&&o(l)?t=t.ele(f).raw(s(l)).up():(null==l&&(l=""),t=t.ele(f,l.toString()).up());return t},l=t.create(u,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),c(l,e).end(this.options.renderOpts)},e}()}).call(this)},365008:function(t,e){(function(){e.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},510718:function(t,e,r){(function(){"use strict";var t,n,i,o,s,a,c,l,u=function(t,e){return function(){return t.apply(e,arguments)}},p={}.hasOwnProperty;c=r(436099),i=r(717187),t=r(664465),a=r(965951),l=r(818698).setImmediate,n=r(365008).defaults,o=function(t){return"object"==typeof t&&null!=t&&0===Object.keys(t).length},s=function(t,e,r){var n,i;for(n=0,i=t.length;n0&&(c[t.options.childkey]=u),u=c;return n.length>0?t.assignOrPush(d,l,u):(t.options.explicitRoot&&(f=u,(u={})[l]=f),t.resultObject=u,t.saxParser.ended=!0,t.emit("end",t.resultObject))}}(this),r=function(t){return function(r){var i,o;if(o=n[n.length-1])return o[e]+=r,t.options.explicitChildren&&t.options.preserveChildrenOrder&&t.options.charsAsChildren&&(t.options.includeWhiteChars||""!==r.replace(/\\n/g,"").trim())&&(o[t.options.childkey]=o[t.options.childkey]||[],(i={"#name":"__text__"})[e]=r,t.options.normalize&&(i[e]=i[e].replace(/\s{2,}/g," ").trim()),o[t.options.childkey].push(i)),o}}(this),this.saxParser.ontext=r,this.saxParser.oncdata=function(t){var e;if(e=r(t))return e.cdata=!0}},i.prototype.parseString=function(e,r){var n;null!=r&&"function"==typeof r&&(this.on("end",(function(t){return this.reset(),r(null,t)})),this.on("error",(function(t){return this.reset(),r(t)})));try{return""===(e=e.toString()).trim()?(this.emit("end",null),!0):(e=t.stripBOM(e),this.options.async?(this.remaining=e,l(this.processAsync),this.saxParser):this.saxParser.write(e).close())}catch(t){if(n=t,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",n),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw n}},i.prototype.parseStringPromise=function(t){return new Promise((e=this,function(r,n){return e.parseString(t,(function(t,e){return t?n(t):r(e)}))}));var e},i}(i),e.parseString=function(t,r,n){var i,o;return null!=n?("function"==typeof n&&(i=n),"object"==typeof r&&(o=r)):("function"==typeof r&&(i=r),o={}),new e.Parser(o).parseString(t,i)},e.parseStringPromise=function(t,r){var n;return"object"==typeof r&&(n=r),new e.Parser(n).parseStringPromise(t)}}).call(this)},965951:function(t,e){(function(){"use strict";var t;t=new RegExp(/(?!xmlns)^.*:/),e.normalize=function(t){return t.toLowerCase()},e.firstCharLowerCase=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},e.stripPrefix=function(e){return e.replace(t,"")},e.parseNumbers=function(t){return isNaN(t)||(t=t%1==0?parseInt(t,10):parseFloat(t)),t},e.parseBooleans=function(t){return/^(?:true|false)$/i.test(t)&&(t="true"===t.toLowerCase()),t}}).call(this)},341501:function(t,e,r){(function(){"use strict";var t,n,i,o,s={}.hasOwnProperty;n=r(365008),t=r(16769),i=r(510718),o=r(965951),e.defaults=n.defaults,e.processors=o,e.ValidationError=function(t){function e(t){this.message=t}return function(t,e){for(var r in e)s.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(e,Error),e}(),e.Builder=t.Builder,e.Parser=i.Parser,e.parseString=i.parseString,e.parseStringPromise=i.parseStringPromise}).call(this)},700624:t=>{function e(t){if(t)return function(t){for(var r in e.prototype)t[r]=e.prototype[r];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[t]=this._callbacks[t]||[]).push(e),this},e.prototype.once=function(t,e){var r=this;function n(){r.off(t,n),e.apply(this,arguments)}return this._callbacks=this._callbacks||{},n.fn=e,this.on(t,n),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks[t];if(!n)return this;if(1==arguments.length)return delete this._callbacks[t],this;for(var i=0;i{"use strict";var e,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};e=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise((function(r,n){function i(r){t.removeListener(e,o),n(r)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",i),r([].slice.call(arguments))}y(t,e,o,{once:!0}),"error"!==e&&function(t,e,r){"function"==typeof t.on&&y(t,"error",e,{once:!0})}(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function l(t,e,r,n){var i,o,s,l;if(a(r),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),s=o[e]),void 0===s)s=o[e]=r,++t._eventsCount;else if("function"==typeof s?s=o[e]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=c(t))>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=s.length,l=u,console&&console.warn&&console.warn(l)}return t}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=u.bind(n);return i.listener=r,n.wrapFn=i,i}function h(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r0&&(s=e[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=o[t];if(void 0===c)return!1;if("function"==typeof c)n(c,this,e);else{var l=c.length,u=d(c,l);for(r=0;r=0;o--)if(r[o]===e||r[o].listener===e){s=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1=0;n--)this.removeListener(t,e[n]);return this},o.prototype.listeners=function(t){return h(this,t,!0)},o.prototype.rawListeners=function(t){return h(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):f.call(t,e)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},436099:(t,e,r)=>{var n=r(348764).Buffer;!function(t){t.parser=function(t,e){return new o(t,e)},t.SAXParser=o,t.SAXStream=a,t.createStream=function(t,e){return new a(t,e)},t.MAX_BUFFER_LENGTH=65536;var e,i=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function o(e,r){if(!(this instanceof o))return new o(e,r);var n=this;!function(t){for(var e=0,r=i.length;e"===o?(D(r,"onsgmldeclaration",r.sgmlDecl),r.sgmlDecl="",r.state=S.TEXT):m(o)?(r.state=S.SGML_DECL_QUOTED,r.sgmlDecl+=o):r.sgmlDecl+=o;continue;case S.SGML_DECL_QUOTED:o===r.q&&(r.state=S.SGML_DECL,r.q=""),r.sgmlDecl+=o;continue;case S.DOCTYPE:">"===o?(r.state=S.TEXT,D(r,"ondoctype",r.doctype),r.doctype=!0):(r.doctype+=o,"["===o?r.state=S.DOCTYPE_DTD:m(o)&&(r.state=S.DOCTYPE_QUOTED,r.q=o));continue;case S.DOCTYPE_QUOTED:r.doctype+=o,o===r.q&&(r.q="",r.state=S.DOCTYPE);continue;case S.DOCTYPE_DTD:r.doctype+=o,"]"===o?r.state=S.DOCTYPE:m(o)&&(r.state=S.DOCTYPE_DTD_QUOTED,r.q=o);continue;case S.DOCTYPE_DTD_QUOTED:r.doctype+=o,o===r.q&&(r.state=S.DOCTYPE_DTD,r.q="");continue;case S.COMMENT:"-"===o?r.state=S.COMMENT_ENDING:r.comment+=o;continue;case S.COMMENT_ENDING:"-"===o?(r.state=S.COMMENT_ENDED,r.comment=F(r.opt,r.comment),r.comment&&D(r,"oncomment",r.comment),r.comment=""):(r.comment+="-"+o,r.state=S.COMMENT);continue;case S.COMMENT_ENDED:">"!==o?(P(r,"Malformed comment"),r.comment+="--"+o,r.state=S.COMMENT):r.state=S.TEXT;continue;case S.CDATA:"]"===o?r.state=S.CDATA_ENDING:r.cdata+=o;continue;case S.CDATA_ENDING:"]"===o?r.state=S.CDATA_ENDING_2:(r.cdata+="]"+o,r.state=S.CDATA);continue;case S.CDATA_ENDING_2:">"===o?(r.cdata&&D(r,"oncdata",r.cdata),D(r,"onclosecdata"),r.cdata="",r.state=S.TEXT):"]"===o?r.cdata+="]":(r.cdata+="]]"+o,r.state=S.CDATA);continue;case S.PROC_INST:"?"===o?r.state=S.PROC_INST_ENDING:y(o)?r.state=S.PROC_INST_BODY:r.procInstName+=o;continue;case S.PROC_INST_BODY:if(!r.procInstBody&&y(o))continue;"?"===o?r.state=S.PROC_INST_ENDING:r.procInstBody+=o;continue;case S.PROC_INST_ENDING:">"===o?(D(r,"onprocessinginstruction",{name:r.procInstName,body:r.procInstBody}),r.procInstName=r.procInstBody="",r.state=S.TEXT):(r.procInstBody+="?"+o,r.state=S.PROC_INST_BODY);continue;case S.OPEN_TAG:b(h,o)?r.tagName+=o:(x(r),">"===o?k(r):"/"===o?r.state=S.OPEN_TAG_SLASH:(y(o)||P(r,"Invalid character in tag name"),r.state=S.ATTRIB));continue;case S.OPEN_TAG_SLASH:">"===o?(k(r,!0),M(r)):(P(r,"Forward-slash in opening tag not followed by >"),r.state=S.ATTRIB);continue;case S.ATTRIB:if(y(o))continue;">"===o?k(r):"/"===o?r.state=S.OPEN_TAG_SLASH:b(p,o)?(r.attribName=o,r.attribValue="",r.state=S.ATTRIB_NAME):P(r,"Invalid attribute name");continue;case S.ATTRIB_NAME:"="===o?r.state=S.ATTRIB_VALUE:">"===o?(P(r,"Attribute without value"),r.attribValue=r.attribName,L(r),k(r)):y(o)?r.state=S.ATTRIB_NAME_SAW_WHITE:b(h,o)?r.attribName+=o:P(r,"Invalid attribute name");continue;case S.ATTRIB_NAME_SAW_WHITE:if("="===o)r.state=S.ATTRIB_VALUE;else{if(y(o))continue;P(r,"Attribute without value"),r.tag.attributes[r.attribName]="",r.attribValue="",D(r,"onattribute",{name:r.attribName,value:""}),r.attribName="",">"===o?k(r):b(p,o)?(r.attribName=o,r.state=S.ATTRIB_NAME):(P(r,"Invalid attribute name"),r.state=S.ATTRIB)}continue;case S.ATTRIB_VALUE:if(y(o))continue;m(o)?(r.q=o,r.state=S.ATTRIB_VALUE_QUOTED):(P(r,"Unquoted attribute value"),r.state=S.ATTRIB_VALUE_UNQUOTED,r.attribValue=o);continue;case S.ATTRIB_VALUE_QUOTED:if(o!==r.q){"&"===o?r.state=S.ATTRIB_VALUE_ENTITY_Q:r.attribValue+=o;continue}L(r),r.q="",r.state=S.ATTRIB_VALUE_CLOSED;continue;case S.ATTRIB_VALUE_CLOSED:y(o)?r.state=S.ATTRIB:">"===o?k(r):"/"===o?r.state=S.OPEN_TAG_SLASH:b(p,o)?(P(r,"No whitespace between attributes"),r.attribName=o,r.attribValue="",r.state=S.ATTRIB_NAME):P(r,"Invalid attribute name");continue;case S.ATTRIB_VALUE_UNQUOTED:if(!g(o)){"&"===o?r.state=S.ATTRIB_VALUE_ENTITY_U:r.attribValue+=o;continue}L(r),">"===o?k(r):r.state=S.ATTRIB;continue;case S.CLOSE_TAG:if(r.tagName)">"===o?M(r):b(h,o)?r.tagName+=o:r.script?(r.script+=""===o?M(r):P(r,"Invalid characters in closing tag");continue;case S.TEXT_ENTITY:case S.ATTRIB_VALUE_ENTITY_Q:case S.ATTRIB_VALUE_ENTITY_U:var c,l;switch(r.state){case S.TEXT_ENTITY:c=S.TEXT,l="textNode";break;case S.ATTRIB_VALUE_ENTITY_Q:c=S.ATTRIB_VALUE_QUOTED,l="attribValue";break;case S.ATTRIB_VALUE_ENTITY_U:c=S.ATTRIB_VALUE_UNQUOTED,l="attribValue"}";"===o?(r[l]+=j(r),r.entity="",r.state=c):b(r.entity.length?d:f,o)?r.entity+=o:(P(r,"Invalid character in entity name"),r[l]+="&"+r.entity+o,r.entity="",r.state=c);continue;default:throw new Error(r,"Unknown state: "+r.state)}return r.position>=r.bufferCheckPosition&&function(e){for(var r=Math.max(t.MAX_BUFFER_LENGTH,10),n=0,o=0,s=i.length;or)switch(i[o]){case"textNode":N(e);break;case"cdata":D(e,"oncdata",e.cdata),e.cdata="";break;case"script":D(e,"onscript",e.script),e.script="";break;default:I(e,"Max buffer length exceeded: "+i[o])}n=Math.max(n,a)}var c=t.MAX_BUFFER_LENGTH-n;e.bufferCheckPosition=c+e.position}(r),r},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var t;N(t=this),""!==t.cdata&&(D(t,"oncdata",t.cdata),t.cdata=""),""!==t.script&&(D(t,"onscript",t.script),t.script="")}};try{e=r(153086).Stream}catch(t){e=function(){}}var s=t.EVENTS.filter((function(t){return"error"!==t&&"end"!==t}));function a(t,r){if(!(this instanceof a))return new a(t,r);e.apply(this),this._parser=new o(t,r),this.writable=!0,this.readable=!0;var n=this;this._parser.onend=function(){n.emit("end")},this._parser.onerror=function(t){n.emit("error",t),n._parser.error=null},this._decoder=null,s.forEach((function(t){Object.defineProperty(n,"on"+t,{get:function(){return n._parser["on"+t]},set:function(e){if(!e)return n.removeAllListeners(t),n._parser["on"+t]=e,e;n.on(t,e)},enumerable:!0,configurable:!1})}))}a.prototype=Object.create(e.prototype,{constructor:{value:a}}),a.prototype.write=function(t){if("function"==typeof n&&"function"==typeof n.isBuffer&&n.isBuffer(t)){if(!this._decoder){var e=r(506941).s;this._decoder=new e("utf8")}t=this._decoder.write(t)}return this._parser.write(t.toString()),this.emit("data",t),!0},a.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},a.prototype.on=function(t,r){var n=this;return n._parser["on"+t]||-1===s.indexOf(t)||(n._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),n.emit.apply(n,e)}),e.prototype.on.call(n,t,r)};var c="http://www.w3.org/XML/1998/namespace",l="http://www.w3.org/2000/xmlns/",u={xml:c,xmlns:l},p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,h=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,f=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function y(t){return" "===t||"\n"===t||"\r"===t||"\t"===t}function m(t){return'"'===t||"'"===t}function g(t){return">"===t||y(t)}function b(t,e){return t.test(e)}function w(t,e){return!b(t,e)}var v,T,E,S=0;for(var O in t.STATE={BEGIN:S++,BEGIN_WHITESPACE:S++,TEXT:S++,TEXT_ENTITY:S++,OPEN_WAKA:S++,SGML_DECL:S++,SGML_DECL_QUOTED:S++,DOCTYPE:S++,DOCTYPE_QUOTED:S++,DOCTYPE_DTD:S++,DOCTYPE_DTD_QUOTED:S++,COMMENT_STARTING:S++,COMMENT:S++,COMMENT_ENDING:S++,COMMENT_ENDED:S++,CDATA:S++,CDATA_ENDING:S++,CDATA_ENDING_2:S++,PROC_INST:S++,PROC_INST_BODY:S++,PROC_INST_ENDING:S++,OPEN_TAG:S++,OPEN_TAG_SLASH:S++,ATTRIB:S++,ATTRIB_NAME:S++,ATTRIB_NAME_SAW_WHITE:S++,ATTRIB_VALUE:S++,ATTRIB_VALUE_QUOTED:S++,ATTRIB_VALUE_CLOSED:S++,ATTRIB_VALUE_UNQUOTED:S++,ATTRIB_VALUE_ENTITY_Q:S++,ATTRIB_VALUE_ENTITY_U:S++,CLOSE_TAG:S++,CLOSE_TAG_SAW_WHITE:S++,SCRIPT:S++,SCRIPT_ENDING:S++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach((function(e){var r=t.ENTITIES[e],n="number"==typeof r?String.fromCharCode(r):r;t.ENTITIES[e]=n})),t.STATE)t.STATE[t.STATE[O]]=O;function _(t,e,r){t[e]&&t[e](r)}function D(t,e,r){t.textNode&&N(t),_(t,e,r)}function N(t){t.textNode=F(t.opt,t.textNode),t.textNode&&_(t,"ontext",t.textNode),t.textNode=""}function F(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function I(t,e){return N(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,_(t,"onerror",e),t}function C(t){return t.sawRoot&&!t.closedRoot&&P(t,"Unclosed root tag"),t.state!==S.BEGIN&&t.state!==S.BEGIN_WHITESPACE&&t.state!==S.TEXT&&I(t,"Unexpected end"),N(t),t.c="",t.closed=!0,_(t,"onend"),o.call(t,t.strict,t.opt),t}function P(t,e){if("object"!=typeof t||!(t instanceof o))throw new Error("bad call to strictFail");t.strict&&I(t,e)}function x(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,r=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(r.ns=e.ns),t.attribList.length=0,D(t,"onopentagstart",r)}function A(t,e){var r=t.indexOf(":")<0?["",t]:t.split(":"),n=r[0],i=r[1];return e&&"xmlns"===t&&(n="xmlns",i=""),{prefix:n,local:i}}function L(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))t.attribName=t.attribValue="";else{if(t.opt.xmlns){var e=A(t.attribName,!0),r=e.prefix,n=e.local;if("xmlns"===r)if("xml"===n&&t.attribValue!==c)P(t,"xml: prefix must be bound to "+c+"\nActual: "+t.attribValue);else if("xmlns"===n&&t.attribValue!==l)P(t,"xmlns: prefix must be bound to "+l+"\nActual: "+t.attribValue);else{var i=t.tag,o=t.tags[t.tags.length-1]||t;i.ns===o.ns&&(i.ns=Object.create(o.ns)),i.ns[n]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,D(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}}function k(t,e){if(t.opt.xmlns){var r=t.tag,n=A(t.tagName);r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(P(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),r.uri=n.prefix);var i=t.tags[t.tags.length-1]||t;r.ns&&i.ns!==r.ns&&Object.keys(r.ns).forEach((function(e){D(t,"onopennamespace",{prefix:e,uri:r.ns[e]})}));for(var o=0,s=t.attribList.length;o",t.tagName="",void(t.state=S.SCRIPT);D(t,"onscript",t.script),t.script=""}var e=t.tags.length,r=t.tagName;t.strict||(r=r[t.looseCase]());for(var n=r;e--&&t.tags[e].name!==n;)P(t,"Unexpected close tag");if(e<0)return P(t,"Unmatched closing tag: "+t.tagName),t.textNode+="",void(t.state=S.TEXT);t.tagName=r;for(var i=t.tags.length;i-- >e;){var o=t.tag=t.tags.pop();t.tagName=t.tag.name,D(t,"onclosetag",t.tagName);var s={};for(var a in o.ns)s[a]=o.ns[a];var c=t.tags[t.tags.length-1]||t;t.opt.xmlns&&o.ns!==c.ns&&Object.keys(o.ns).forEach((function(e){var r=o.ns[e];D(t,"onclosenamespace",{prefix:e,uri:r})}))}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=S.TEXT}function j(t){var e,r=t.entity,n=r.toLowerCase(),i="";return t.ENTITIES[r]?t.ENTITIES[r]:t.ENTITIES[n]?t.ENTITIES[n]:("#"===(r=n).charAt(0)&&("x"===r.charAt(1)?(r=r.slice(2),i=(e=parseInt(r,16)).toString(16)):(r=r.slice(1),i=(e=parseInt(r,10)).toString(10))),r=r.replace(/^0+/,""),isNaN(e)||i.toLowerCase()!==r?(P(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e))}function R(t,e){"<"===e?(t.state=S.OPEN_WAKA,t.startTagPosition=t.position):y(e)||(P(t,"Non-whitespace before first tag."),t.textNode=e,t.state=S.TEXT)}function z(t,e){var r="";return e1114111||T(a)!==a)throw RangeError("Invalid code point: "+a);a<=65535?n.push(a):(t=55296+((a-=65536)>>10),e=a%1024+56320,n.push(t,e)),(i+1===o||n.length>r)&&(s+=v.apply(null,n),n.length=0)}return s},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:E,configurable:!0,writable:!0}):String.fromCodePoint=E)}(e)},153086:(t,e,r)=>{var n=r(700624);function i(){n.call(this)}i.prototype=new n,t.exports=i,i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",s),r.on("close",a));var o=!1;function s(){o||(o=!0,t.end())}function a(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function c(t){if(l(),!this.hasListeners("error"))throw t}function l(){r.off("data",n),t.off("drain",i),r.off("end",s),r.off("close",a),r.off("error",c),t.off("error",c),r.off("end",l),r.off("close",l),t.off("end",l),t.off("close",l)}return r.on("error",c),t.on("error",c),r.on("end",l),r.on("close",l),t.on("end",l),t.on("close",l),t.emit("pipe",r),t}},506941:(t,e,r)=>{var n=r(348764).Buffer,i=n.isEncoding||function(t){switch(t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},o=e.s=function(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),function(t){if(t&&!i(t))throw new Error("Unknown encoding: "+t)}(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=a;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=c;break;default:return void(this.write=s)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function s(t){return t.toString(this.encoding)}function a(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function c(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(t){for(var e="";this.charLength;){var r=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var n,i=t.length;if(this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,i),i-=this.charReceived),i=(e+=t.toString(this.encoding,0,i)).length-1,(n=e.charCodeAt(i))>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),t.copy(this.charBuffer,0,0,o),e.substring(0,i)}return e},o.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var r=t[t.length-e];if(1==e&&r>>5==6){this.charLength=2;break}if(e<=2&&r>>4==14){this.charLength=3;break}if(e<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=e},o.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;e+=n.slice(0,r).toString(i)}return e}},217557:function(t){(function(){t.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},239335:function(t){(function(){t.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},778369:function(t){(function(){var e,r,n,i,o,s,a,c=[].slice,l={}.hasOwnProperty;e=function(){var t,e,r,n,i,s;if(s=arguments[0],i=2<=arguments.length?c.call(arguments,1):[],o(Object.assign))Object.assign.apply(null,arguments);else for(t=0,r=i.length;t":"attribute: {"+t+"}, parent: <"+this.parent.name+">"},t.prototype.isEqualNode=function(t){return t.namespaceURI===this.namespaceURI&&t.prefix===this.prefix&&t.localName===this.localName&&t.value===this.value},t}()}).call(this)},66170:function(t,e,r){(function(){var e,n,i={}.hasOwnProperty;e=r(239335),n=r(806488),t.exports=function(t){function r(t,n){if(r.__super__.constructor.call(this,t),null==n)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=e.CData,this.value=this.stringify.cdata(n)}return function(t,e){for(var r in e)i.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(t){return this.options.writer.cdata(this,this.options.writer.filterOptions(t))},r}(n)}).call(this)},806488:function(t,e,r){(function(){var e,n={}.hasOwnProperty;e=r(832026),t.exports=function(t){function e(t){e.__super__.constructor.call(this,t),this.value=""}return function(t,e){for(var r in e)n.call(e,r)&&(t[r]=e[r]);function i(){this.constructor=t}i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype}(e,t),Object.defineProperty(e.prototype,"data",{get:function(){return this.value},set:function(t){return this.value=t||""}}),Object.defineProperty(e.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(e.prototype,"textContent",{get:function(){return this.value},set:function(t){return this.value=t||""}}),e.prototype.clone=function(){return Object.create(this)},e.prototype.substringData=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.appendData=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.insertData=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.deleteData=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.replaceData=function(t,e,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.isEqualNode=function(t){return!!e.__super__.isEqualNode.apply(this,arguments).isEqualNode(t)&&t.data===this.data},e}(e)}).call(this)},762096:function(t,e,r){(function(){var e,n,i={}.hasOwnProperty;e=r(239335),n=r(806488),t.exports=function(t){function r(t,n){if(r.__super__.constructor.call(this,t),null==n)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=e.Comment,this.value=this.stringify.comment(n)}return function(t,e){for(var r in e)i.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(t){return this.options.writer.comment(this,this.options.writer.filterOptions(t))},r}(n)}).call(this)},330383:function(t,e,r){(function(){var e,n;e=r(493933),n=r(266210),t.exports=function(){function t(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(t.prototype,"parameterNames",{get:function(){return new n(Object.keys(this.defaultParams))}}),t.prototype.getParameter=function(t){return this.params.hasOwnProperty(t)?this.params[t]:null},t.prototype.canSetParameter=function(t,e){return!0},t.prototype.setParameter=function(t,e){return null!=e?this.params[t]=e:delete this.params[t]},t}()}).call(this)},493933:function(t){(function(){t.exports=function(){function t(){}return t.prototype.handleError=function(t){throw new Error(t)},t}()}).call(this)},191770:function(t){(function(){t.exports=function(){function t(){}return t.prototype.hasFeature=function(t,e){return!0},t.prototype.createDocumentType=function(t,e,r){throw new Error("This DOM method is not implemented.")},t.prototype.createDocument=function(t,e,r){throw new Error("This DOM method is not implemented.")},t.prototype.createHTMLDocument=function(t){throw new Error("This DOM method is not implemented.")},t.prototype.getFeature=function(t,e){throw new Error("This DOM method is not implemented.")},t}()}).call(this)},266210:function(t){(function(){t.exports=function(){function t(t){this.arr=t||[]}return Object.defineProperty(t.prototype,"length",{get:function(){return this.arr.length}}),t.prototype.item=function(t){return this.arr[t]||null},t.prototype.contains=function(t){return-1!==this.arr.indexOf(t)},t}()}).call(this)},351179:function(t,e,r){(function(){var e,n,i={}.hasOwnProperty;n=r(832026),e=r(239335),t.exports=function(t){function r(t,n,i,o,s,a){if(r.__super__.constructor.call(this,t),null==n)throw new Error("Missing DTD element name. "+this.debugInfo());if(null==i)throw new Error("Missing DTD attribute name. "+this.debugInfo(n));if(!o)throw new Error("Missing DTD attribute type. "+this.debugInfo(n));if(!s)throw new Error("Missing DTD attribute default. "+this.debugInfo(n));if(0!==s.indexOf("#")&&(s="#"+s),!s.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(n));if(a&&!s.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(n));this.elementName=this.stringify.name(n),this.type=e.AttributeDeclaration,this.attributeName=this.stringify.name(i),this.attributeType=this.stringify.dtdAttType(o),a&&(this.defaultValue=this.stringify.dtdAttDefault(a)),this.defaultValueType=s}return function(t,e){for(var r in e)i.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),r.prototype.toString=function(t){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(t))},r}(n)}).call(this)},936347:function(t,e,r){(function(){var e,n,i={}.hasOwnProperty;n=r(832026),e=r(239335),t.exports=function(t){function r(t,n,i){if(r.__super__.constructor.call(this,t),null==n)throw new Error("Missing DTD element name. "+this.debugInfo());i||(i="(#PCDATA)"),Array.isArray(i)&&(i="("+i.join(",")+")"),this.name=this.stringify.name(n),this.type=e.ElementDeclaration,this.value=this.stringify.dtdElementValue(i)}return function(t,e){for(var r in e)i.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),r.prototype.toString=function(t){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(t))},r}(n)}).call(this)},399078:function(t,e,r){(function(){var e,n,i,o={}.hasOwnProperty;i=r(778369).isObject,n=r(832026),e=r(239335),t.exports=function(t){function r(t,n,o,s){if(r.__super__.constructor.call(this,t),null==o)throw new Error("Missing DTD entity name. "+this.debugInfo(o));if(null==s)throw new Error("Missing DTD entity value. "+this.debugInfo(o));if(this.pe=!!n,this.name=this.stringify.name(o),this.type=e.EntityDeclaration,i(s)){if(!s.pubID&&!s.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(o));if(s.pubID&&!s.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(o));if(this.internal=!1,null!=s.pubID&&(this.pubID=this.stringify.dtdPubID(s.pubID)),null!=s.sysID&&(this.sysID=this.stringify.dtdSysID(s.sysID)),null!=s.nData&&(this.nData=this.stringify.dtdNData(s.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(o))}else this.value=this.stringify.dtdEntityValue(s),this.internal=!0}return function(t,e){for(var r in e)o.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),Object.defineProperty(r.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(r.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(r.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(r.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(r.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(r.prototype,"xmlVersion",{get:function(){return null}}),r.prototype.toString=function(t){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(t))},r}(n)}).call(this)},344777:function(t,e,r){(function(){var e,n,i={}.hasOwnProperty;n=r(832026),e=r(239335),t.exports=function(t){function r(t,n,i){if(r.__super__.constructor.call(this,t),null==n)throw new Error("Missing DTD notation name. "+this.debugInfo(n));if(!i.pubID&&!i.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(n));this.name=this.stringify.name(n),this.type=e.NotationDeclaration,null!=i.pubID&&(this.pubID=this.stringify.dtdPubID(i.pubID)),null!=i.sysID&&(this.sysID=this.stringify.dtdSysID(i.sysID))}return function(t,e){for(var r in e)i.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),Object.defineProperty(r.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(r.prototype,"systemId",{get:function(){return this.sysID}}),r.prototype.toString=function(t){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(t))},r}(n)}).call(this)},459077:function(t,e,r){(function(){var e,n,i,o={}.hasOwnProperty;i=r(778369).isObject,n=r(832026),e=r(239335),t.exports=function(t){function r(t,n,o,s){var a;r.__super__.constructor.call(this,t),i(n)&&(n=(a=n).version,o=a.encoding,s=a.standalone),n||(n="1.0"),this.type=e.Declaration,this.version=this.stringify.xmlVersion(n),null!=o&&(this.encoding=this.stringify.xmlEncoding(o)),null!=s&&(this.standalone=this.stringify.xmlStandalone(s))}return function(t,e){for(var r in e)o.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),r.prototype.toString=function(t){return this.options.writer.declaration(this,this.options.writer.filterOptions(t))},r}(n)}).call(this)},186544:function(t,e,r){(function(){var e,n,i,o,s,a,c,l,u={}.hasOwnProperty;l=r(778369).isObject,c=r(832026),e=r(239335),n=r(351179),o=r(399078),i=r(936347),s=r(344777),a=r(340663),t.exports=function(t){function r(t,n,i){var o,s,a,c,u,p;if(r.__super__.constructor.call(this,t),this.type=e.DocType,t.children)for(s=0,a=(c=t.children).length;s=0;)this.up();return this.onEnd()},t.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},t.prototype.openNode=function(t){var r,i,o,s;if(!t.isOpen){if(this.root||0!==this.currentLevel||t.type!==e.Element||(this.root=t),i="",t.type===e.Element){for(o in this.writerOptions.state=n.OpenTag,i=this.writer.indent(t,this.writerOptions,this.currentLevel)+"<"+t.name,s=t.attribs)_.call(s,o)&&(r=s[o],i+=this.writer.attribute(r,this.writerOptions,this.currentLevel));i+=(t.children?">":"/>")+this.writer.endline(t,this.writerOptions,this.currentLevel),this.writerOptions.state=n.InsideTag}else this.writerOptions.state=n.OpenTag,i=this.writer.indent(t,this.writerOptions,this.currentLevel)+""),i+=this.writer.endline(t,this.writerOptions,this.currentLevel);return this.onData(i,this.currentLevel),t.isOpen=!0}},t.prototype.closeNode=function(t){var r;if(!t.isClosed)return"",this.writerOptions.state=n.CloseTag,r=t.type===e.Element?this.writer.indent(t,this.writerOptions,this.currentLevel)+""+this.writer.endline(t,this.writerOptions,this.currentLevel):this.writer.indent(t,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(t,this.writerOptions,this.currentLevel),this.writerOptions.state=n.None,this.onData(r,this.currentLevel),t.isClosed=!0},t.prototype.onData=function(t,e){return this.documentStarted=!0,this.onDataCallback(t,e+1)},t.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},t.prototype.debugInfo=function(t){return null==t?"":"node: <"+t+">"},t.prototype.ele=function(){return this.element.apply(this,arguments)},t.prototype.nod=function(t,e,r){return this.node(t,e,r)},t.prototype.txt=function(t){return this.text(t)},t.prototype.dat=function(t){return this.cdata(t)},t.prototype.com=function(t){return this.comment(t)},t.prototype.ins=function(t,e){return this.instruction(t,e)},t.prototype.dec=function(t,e,r){return this.declaration(t,e,r)},t.prototype.dtd=function(t,e,r){return this.doctype(t,e,r)},t.prototype.e=function(t,e,r){return this.element(t,e,r)},t.prototype.n=function(t,e,r){return this.node(t,e,r)},t.prototype.t=function(t){return this.text(t)},t.prototype.d=function(t){return this.cdata(t)},t.prototype.c=function(t){return this.comment(t)},t.prototype.r=function(t){return this.raw(t)},t.prototype.i=function(t,e){return this.instruction(t,e)},t.prototype.att=function(){return this.currentNode&&this.currentNode.type===e.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.a=function(){return this.currentNode&&this.currentNode.type===e.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.ent=function(t,e){return this.entity(t,e)},t.prototype.pent=function(t,e){return this.pEntity(t,e)},t.prototype.not=function(t,e){return this.notation(t,e)},t}()}).call(this)},78833:function(t,e,r){(function(){var e,n,i={}.hasOwnProperty;n=r(832026),e=r(239335),t.exports=function(t){function r(t){r.__super__.constructor.call(this,t),this.type=e.Dummy}return function(t,e){for(var r in e)i.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype}(r,t),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(t){return""},r}(n)}).call(this)},532161:function(t,e,r){(function(){var e,n,i,o,s,a,c,l,u={}.hasOwnProperty;l=r(778369),c=l.isObject,a=l.isFunction,s=l.getValue,o=r(832026),e=r(239335),n=r(572750),i=r(340663),t.exports=function(t){function r(t,n,i){var o,s,a,c;if(r.__super__.constructor.call(this,t),null==n)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(n),this.type=e.Element,this.attribs={},this.schemaTypeInfo=null,null!=i&&this.attribute(i),t.type===e.Document&&(this.isRoot=!0,this.documentObject=t,t.rootObject=this,t.children))for(s=0,a=(c=t.children).length;s=i;e=0<=i?++n:--n)if(!this.attribs[e].isEqualNode(t.attribs[e]))return!1;return!0},r}(o)}).call(this)},340663:function(t){(function(){t.exports=function(){function t(t){this.nodes=t}return Object.defineProperty(t.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),t.prototype.clone=function(){return this.nodes=null},t.prototype.getNamedItem=function(t){return this.nodes[t]},t.prototype.setNamedItem=function(t){var e;return e=this.nodes[t.nodeName],this.nodes[t.nodeName]=t,e||null},t.prototype.removeNamedItem=function(t){var e;return e=this.nodes[t],delete this.nodes[t],e||null},t.prototype.item=function(t){return this.nodes[Object.keys(this.nodes)[t]]||null},t.prototype.getNamedItemNS=function(t,e){throw new Error("This DOM method is not implemented.")},t.prototype.setNamedItemNS=function(t){throw new Error("This DOM method is not implemented.")},t.prototype.removeNamedItemNS=function(t,e){throw new Error("This DOM method is not implemented.")},t}()}).call(this)},832026:function(t,e,r){(function(){var e,n,i,o,s,a,c,l,u,p,h,f,d,y,m,g,b,w={}.hasOwnProperty;b=r(778369),g=b.isObject,m=b.isFunction,y=b.isEmpty,d=b.getValue,l=null,i=null,o=null,s=null,a=null,h=null,f=null,p=null,c=null,n=null,u=null,e=null,t.exports=function(){function t(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,l||(l=r(532161),i=r(66170),o=r(762096),s=r(459077),a=r(186544),h=r(279406),f=r(243595),p=r(619181),c=r(78833),n=r(239335),u=r(682390),r(340663),e=r(217557))}return Object.defineProperty(t.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(t.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new u(this.children)),this.childNodeList}}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){var t;return t=this.parent.children.indexOf(this),this.parent.children[t-1]||null}}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){var t;return t=this.parent.children.indexOf(this),this.parent.children[t+1]||null}}),Object.defineProperty(t.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(t.prototype,"textContent",{get:function(){var t,e,r,i,o;if(this.nodeType===n.Element||this.nodeType===n.DocumentFragment){for(o="",e=0,r=(i=this.children).length;e":(null!=(r=this.parent)?r.name:void 0)?"node: <"+t+">, parent: <"+this.parent.name+">":"node: <"+t+">":""},t.prototype.ele=function(t,e,r){return this.element(t,e,r)},t.prototype.nod=function(t,e,r){return this.node(t,e,r)},t.prototype.txt=function(t){return this.text(t)},t.prototype.dat=function(t){return this.cdata(t)},t.prototype.com=function(t){return this.comment(t)},t.prototype.ins=function(t,e){return this.instruction(t,e)},t.prototype.doc=function(){return this.document()},t.prototype.dec=function(t,e,r){return this.declaration(t,e,r)},t.prototype.e=function(t,e,r){return this.element(t,e,r)},t.prototype.n=function(t,e,r){return this.node(t,e,r)},t.prototype.t=function(t){return this.text(t)},t.prototype.d=function(t){return this.cdata(t)},t.prototype.c=function(t){return this.comment(t)},t.prototype.r=function(t){return this.raw(t)},t.prototype.i=function(t,e){return this.instruction(t,e)},t.prototype.u=function(){return this.up()},t.prototype.importXMLBuilder=function(t){return this.importDocument(t)},t.prototype.replaceChild=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.removeChild=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.appendChild=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.hasChildNodes=function(){return 0!==this.children.length},t.prototype.cloneNode=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isSupported=function(t,e){return!0},t.prototype.hasAttributes=function(){return 0!==this.attribs.length},t.prototype.compareDocumentPosition=function(t){var r,n;return(r=this)===t?0:this.document()!==t.document()?(n=e.Disconnected|e.ImplementationSpecific,Math.random()<.5?n|=e.Preceding:n|=e.Following,n):r.isAncestor(t)?e.Contains|e.Preceding:r.isDescendant(t)?e.Contains|e.Following:r.isPreceding(t)?e.Preceding:e.Following},t.prototype.isSameNode=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.lookupPrefix=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isDefaultNamespace=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.lookupNamespaceURI=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isEqualNode=function(t){var e,r,n;if(t.nodeType!==this.nodeType)return!1;if(t.children.length!==this.children.length)return!1;for(e=r=0,n=this.children.length-1;0<=n?r<=n:r>=n;e=0<=n?++r:--r)if(!this.children[e].isEqualNode(t.children[e]))return!1;return!0},t.prototype.getFeature=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.setUserData=function(t,e,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getUserData=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.contains=function(t){return!!t&&(t===this||this.isDescendant(t))},t.prototype.isDescendant=function(t){var e,r,n,i;for(r=0,n=(i=this.children).length;rr},t.prototype.treePosition=function(t){var e,r;return r=0,e=!1,this.foreachTreeNode(this.document(),(function(n){if(r++,!e&&n===t)return e=!0})),e?r:-1},t.prototype.foreachTreeNode=function(t,e){var r,n,i,o,s;for(t||(t=this.document()),n=0,i=(o=t.children).length;n0){for(this.stream.write(" ["),this.stream.write(this.endline(t,e,r)),e.state=n.InsideTag,o=0,s=(a=t.children).length;o"),this.stream.write(this.endline(t,e,r)),e.state=n.None,this.closeNode(t,e,r)},r.prototype.element=function(t,r,i){var s,a,c,l,u,p,h,f,d;for(h in i||(i=0),this.openNode(t,r,i),r.state=n.OpenTag,this.stream.write(this.indent(t,r,i)+"<"+t.name),f=t.attribs)o.call(f,h)&&(s=f[h],this.attribute(s,r,i));if(l=0===(c=t.children.length)?null:t.children[0],0===c||t.children.every((function(t){return(t.type===e.Text||t.type===e.Raw)&&""===t.value})))r.allowEmpty?(this.stream.write(">"),r.state=n.CloseTag,this.stream.write("")):(r.state=n.CloseTag,this.stream.write(r.spaceBeforeSlash+"/>"));else if(!r.pretty||1!==c||l.type!==e.Text&&l.type!==e.Raw||null==l.value){for(this.stream.write(">"+this.endline(t,r,i)),r.state=n.InsideTag,u=0,p=(d=t.children).length;u")}else this.stream.write(">"),r.state=n.InsideTag,r.suppressPrettyCount++,this.writeChildNode(l,r,i+1),r.suppressPrettyCount--,r.state=n.CloseTag,this.stream.write("");return this.stream.write(this.endline(t,r,i)),r.state=n.None,this.closeNode(t,r,i)},r.prototype.processingInstruction=function(t,e,n){return this.stream.write(r.__super__.processingInstruction.call(this,t,e,n))},r.prototype.raw=function(t,e,n){return this.stream.write(r.__super__.raw.call(this,t,e,n))},r.prototype.text=function(t,e,n){return this.stream.write(r.__super__.text.call(this,t,e,n))},r.prototype.dtdAttList=function(t,e,n){return this.stream.write(r.__super__.dtdAttList.call(this,t,e,n))},r.prototype.dtdElement=function(t,e,n){return this.stream.write(r.__super__.dtdElement.call(this,t,e,n))},r.prototype.dtdEntity=function(t,e,n){return this.stream.write(r.__super__.dtdEntity.call(this,t,e,n))},r.prototype.dtdNotation=function(t,e,n){return this.stream.write(r.__super__.dtdNotation.call(this,t,e,n))},r}(i)}).call(this)},26434:function(t,e,r){(function(){var e,n={}.hasOwnProperty;e=r(360751),t.exports=function(t){function e(t){e.__super__.constructor.call(this,t)}return function(t,e){for(var r in e)n.call(e,r)&&(t[r]=e[r]);function i(){this.constructor=t}i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype}(e,t),e.prototype.document=function(t,e){var r,n,i,o,s;for(e=this.filterOptions(e),o="",n=0,i=(s=t.children).length;n","]]]]>"),this.assertLegalChar(t))},t.prototype.comment=function(t){if(this.options.noValidation)return t;if((t=""+t||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+t);return this.assertLegalChar(t)},t.prototype.raw=function(t){return this.options.noValidation?t:""+t||""},t.prototype.attValue=function(t){return this.options.noValidation?t:this.assertLegalChar(this.attEscape(t=""+t||""))},t.prototype.insTarget=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.insValue=function(t){if(this.options.noValidation)return t;if((t=""+t||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+t);return this.assertLegalChar(t)},t.prototype.xmlVersion=function(t){if(this.options.noValidation)return t;if(!(t=""+t||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+t);return t},t.prototype.xmlEncoding=function(t){if(this.options.noValidation)return t;if(!(t=""+t||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+t);return this.assertLegalChar(t)},t.prototype.xmlStandalone=function(t){return this.options.noValidation?t:t?"yes":"no"},t.prototype.dtdPubID=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.dtdSysID=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.dtdElementValue=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.dtdAttType=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.dtdAttDefault=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.dtdEntityValue=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.dtdNData=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(t){var e,r;if(this.options.noValidation)return t;if(e="","1.0"===this.options.version){if(e=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,r=t.match(e))throw new Error("Invalid character in string: "+t+" at index "+r.index)}else if("1.1"===this.options.version&&(e=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,r=t.match(e)))throw new Error("Invalid character in string: "+t+" at index "+r.index);return t},t.prototype.assertLegalName=function(t){var e;if(this.options.noValidation)return t;if(this.assertLegalChar(t),e=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!t.match(e))throw new Error("Invalid character in name");return t},t.prototype.textEscape=function(t){var e;return this.options.noValidation?t:(e=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(//g,">").replace(/\r/g," "))},t.prototype.attEscape=function(t){var e;return this.options.noValidation?t:(e=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(/0?new Array(n).join(e.indent):""},t.prototype.endline=function(t,e,r){return!e.pretty||e.suppressPrettyCount?"":e.newline},t.prototype.attribute=function(t,e,r){var n;return this.openAttribute(t,e,r),n=" "+t.name+'="'+t.value+'"',this.closeAttribute(t,e,r),n},t.prototype.cdata=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r)+""+this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.comment=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r)+"\x3c!-- ",e.state=n.InsideTag,i+=t.value,e.state=n.CloseTag,i+=" --\x3e"+this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.declaration=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r)+"",i+=this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.docType=function(t,e,r){var i,o,s,a,c;if(r||(r=0),this.openNode(t,e,r),e.state=n.OpenTag,a=this.indent(t,e,r),a+="0){for(a+=" [",a+=this.endline(t,e,r),e.state=n.InsideTag,o=0,s=(c=t.children).length;o",a+=this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),a},t.prototype.element=function(t,r,i){var s,a,c,l,u,p,h,f,d,y,m,g,b,w;for(d in i||(i=0),y=!1,m="",this.openNode(t,r,i),r.state=n.OpenTag,m+=this.indent(t,r,i)+"<"+t.name,g=t.attribs)o.call(g,d)&&(s=g[d],m+=this.attribute(s,r,i));if(l=0===(c=t.children.length)?null:t.children[0],0===c||t.children.every((function(t){return(t.type===e.Text||t.type===e.Raw)&&""===t.value})))r.allowEmpty?(m+=">",r.state=n.CloseTag,m+=""+this.endline(t,r,i)):(r.state=n.CloseTag,m+=r.spaceBeforeSlash+"/>"+this.endline(t,r,i));else if(!r.pretty||1!==c||l.type!==e.Text&&l.type!==e.Raw||null==l.value){if(r.dontPrettyTextNodes)for(u=0,h=(b=t.children).length;u"+this.endline(t,r,i),r.state=n.InsideTag,p=0,f=(w=t.children).length;p",y&&r.suppressPrettyCount--,m+=this.endline(t,r,i),r.state=n.None}else m+=">",r.state=n.InsideTag,r.suppressPrettyCount++,y=!0,m+=this.writeChildNode(l,r,i+1),r.suppressPrettyCount--,y=!1,r.state=n.CloseTag,m+=""+this.endline(t,r,i);return this.closeNode(t,r,i),m},t.prototype.writeChildNode=function(t,r,n){switch(t.type){case e.CData:return this.cdata(t,r,n);case e.Comment:return this.comment(t,r,n);case e.Element:return this.element(t,r,n);case e.Raw:return this.raw(t,r,n);case e.Text:return this.text(t,r,n);case e.ProcessingInstruction:return this.processingInstruction(t,r,n);case e.Dummy:return"";case e.Declaration:return this.declaration(t,r,n);case e.DocType:return this.docType(t,r,n);case e.AttributeDeclaration:return this.dtdAttList(t,r,n);case e.ElementDeclaration:return this.dtdElement(t,r,n);case e.EntityDeclaration:return this.dtdEntity(t,r,n);case e.NotationDeclaration:return this.dtdNotation(t,r,n);default:throw new Error("Unknown XML node type: "+t.constructor.name)}},t.prototype.processingInstruction=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r)+"",i+=this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.raw=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r),e.state=n.InsideTag,i+=t.value,e.state=n.CloseTag,i+=this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.text=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r),e.state=n.InsideTag,i+=t.value,e.state=n.CloseTag,i+=this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.dtdAttList=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r)+""+this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.dtdElement=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r)+""+this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.dtdEntity=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r)+""+this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.dtdNotation=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r)+""+this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.openNode=function(t,e,r){},t.prototype.closeNode=function(t,e,r){},t.prototype.openAttribute=function(t,e,r){},t.prototype.closeAttribute=function(t,e,r){},t}()}).call(this)},805532:function(t,e,r){(function(){var e,n,i,o,s,a,c,l,u,p;p=r(778369),l=p.assign,u=p.isFunction,i=r(191770),o=r(666934),s=r(179227),c=r(26434),a=r(681996),e=r(239335),n=r(330594),t.exports.create=function(t,e,r,n){var i,s;if(null==t)throw new Error("Root element needs a name.");return n=l({},e,r,n),s=(i=new o(n)).element(t),n.headless||(i.declaration(n),null==n.pubID&&null==n.sysID||i.dtd(n)),s},t.exports.begin=function(t,e,r){var n;return u(t)&&(e=(n=[t,e])[0],r=n[1],t={}),e?new s(t,e,r):new o(t)},t.exports.stringWriter=function(t){return new c(t)},t.exports.streamWriter=function(t,e){return new a(t,e)},t.exports.implementation=new i,t.exports.nodeType=e,t.exports.writerState=n}).call(this)}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/12290.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt b/geonode_mapstore_client/static/mapstore/dist/js/12290.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/12290.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt rename to geonode_mapstore_client/static/mapstore/dist/js/12290.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt diff --git a/geonode_mapstore_client/static/mapstore/dist/js/1230.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/1230.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/1230.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/1230.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/12474.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/12474.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/12474.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/12474.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/12485.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/12485.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/12485.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/12485.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/12542.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/12542.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/12542.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/12542.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/12574.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/12574.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/12574.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/12574.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/12594.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/12594.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/12594.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/12594.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/1269.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/1269.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/1269.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/1269.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/1274.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/1274.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/1274.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/1274.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/12831.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/12831.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/12831.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/12831.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/1303.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/1303.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/1303.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/1303.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/13261.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/13261.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/13261.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/13261.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/13265.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/13265.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/13265.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/13265.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/13268.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/13268.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/13268.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/13268.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/13324.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/13324.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/13324.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/13324.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/13434.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/13434.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/13434.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/13434.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/13447.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/13447.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/13447.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/13447.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/13579.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/13579.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/13579.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/13579.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/13581.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/13581.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/13581.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/13581.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/13952.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/13952.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/13952.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/13952.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/14126.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/14126.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/14126.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/14126.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/14155.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/14155.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/14155.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/14155.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/14195.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/14195.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/14195.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/14195.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/14312.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/14312.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/14312.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/14312.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/14327.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/14327.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/14327.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/14327.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/14361.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/14361.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/14361.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/14361.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/14381.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/14381.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/14381.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/14381.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/14502.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/14502.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/14502.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/14502.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/14742.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/14742.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/14742.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/14742.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/14763.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/14763.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/14763.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/14763.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/14801.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/14801.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/14801.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/14801.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/15007.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/15007.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/15007.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/15007.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/15199.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/15199.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/15199.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/15199.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/15245.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/15245.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/15245.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/15245.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/15504.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/15504.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/15504.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/15504.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/15574.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/15574.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/15574.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/15574.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/1567.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/1567.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/1567.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/1567.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/15910.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/15910.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/15910.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/15910.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/16095.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/16095.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/16095.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/16095.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/16144.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/16144.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/16144.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/16144.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/16231.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/16231.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/16231.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/16231.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/16262.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/16262.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/16262.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/16262.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/16272.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/16272.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/16272.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/16272.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/16290.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/16290.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/16290.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/16290.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/1630.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/1630.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/1630.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/1630.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/16309.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/16309.74fb1733f89b05e9e60d.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/js/16309.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/16309.74fb1733f89b05e9e60d.chunk.js index b495ce2371..827090477c 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/16309.b32b32d2650f7cc681c9.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/16309.74fb1733f89b05e9e60d.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 16309.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt */ +/*! For license information please see 16309.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[16309],{972163:(e,t,r)=>{var n=r(844194);e.exports.$=function(e,t){var r=[],i=0;function s(e){if(t&&!1===t.noDuplicateMembers||!e.__duplicateProperties__||r.push({message:"An object contained duplicate members, making parsing ambigous: "+e.__duplicateProperties__.join(", "),line:e.__line__}),!o(e,"type","string"))if(d[e.type])e&&d[e.type](e);else{var n=p[e.type.toLowerCase()];void 0!==n?r.push({message:"Expected "+n+" but got "+e.type+" (case sensitive)",line:e.__line__}):r.push({message:"The type "+e.type+" is unknown",line:e.__line__})}}function a(e,t){return e.every((function(e){return null!==e&&typeof e===t}))}function o(e,t,n){if(void 0===e[t])return r.push({message:'"'+t+'" member required',line:e.__line__});if("array"===n){if(!Array.isArray(e[t]))return r.push({message:'"'+t+'" member should be an array, but is an '+typeof e[t]+" instead",line:e.__line__})}else{if("object"===n&&e[t]&&"Object"!==e[t].constructor.name)return r.push({message:'"'+t+'" member should be '+n+", but is an "+e[t].constructor.name+" instead",line:e.__line__});if(n&&typeof e[t]!==n)return r.push({message:'"'+t+'" member should be '+n+", but is an "+typeof e[t]+" instead",line:e.__line__})}}function u(e,n){if(!Array.isArray(e))return r.push({message:"position should be an array, is a "+typeof e+" instead",line:e.__line__||n});if(e.length<2)return r.push({message:"position must have 2 or more elements",line:e.__line__||n});if(e.length>3)return r.push({message:"position should not have more than 3 elements",level:"message",line:e.__line__||n});if(!a(e,"number"))return r.push({message:"each element in a position must be a number",line:e.__line__||n});if(t&&t.precisionWarning){if(10===i)return i+=1,r.push({message:"truncated warnings: we've encountered coordinate precision warning 10 times, no more warnings will be reported",level:"message",line:e.__line__||n});i<10&&e.forEach((function(t){var s=0,a=String(t).split(".")[1];if(void 0!==a&&(s=a.length),s>6)return i+=1,r.push({message:"precision of coordinates should be reduced",level:"message",line:e.__line__||n})}))}}function l(e,t,n,i){if(void 0===i&&void 0!==e.__line__&&(i=e.__line__),0===n)return u(e,i);if(1===n&&t)if("LinearRing"===t){if(!Array.isArray(e[e.length-1]))return r.push({message:"a number was found where a coordinate array should have been found: this needs to be nested more deeply",line:i}),!0;if(e.length<4&&r.push({message:"a LinearRing of coordinates needs to have four or more positions",line:i}),e.length&&(e[e.length-1].length!==e[0].length||!e[e.length-1].every((function(t,r){return e[0][r]===t}))))return r.push({message:"the first and last positions in a LinearRing of coordinates must be the same",line:i}),!0}else if("Line"===t&&e.length<2)return r.push({message:"a line needs to have two or more coordinates to be valid",line:i});if(Array.isArray(e))return e.map((function(e){return l(e,t,n-1,e.__line__||i)})).some((function(e){return e}));r.push({message:"a number was found where a coordinate array should have been found: this needs to be nested more deeply",line:i})}function h(e){e.crs&&("object"==typeof e.crs&&e.crs.properties&&"urn:ogc:def:crs:OGC:1.3:CRS84"===e.crs.properties.name?r.push({message:"old-style crs member is not recommended, this object is equivalent to the default and should be removed",line:e.__line__}):r.push({message:"old-style crs member is not recommended",line:e.__line__}))}function c(e){if(e.bbox)return Array.isArray(e.bbox)?(a(e.bbox,"number")||r.push({message:"each element in a bbox member must be a number",line:e.bbox.__line__}),4!==e.bbox.length&&6!==e.bbox.length&&r.push({message:"bbox must contain 4 elements (for 2D) or 6 elements (for 3D)",line:e.bbox.__line__}),r.length):void r.push({message:"bbox member must be an array of numbers, but is a "+typeof e.bbox,line:e.__line__})}function f(e){h(e),c(e),void 0!==e.id&&"string"!=typeof e.id&&"number"!=typeof e.id&&r.push({message:'Feature "id" member must have a string or number value',line:e.__line__}),void 0!==e.features&&r.push({message:'Feature object cannot contain a "features" member',line:e.__line__}),void 0!==e.coordinates&&r.push({message:'Feature object cannot contain a "coordinates" member',line:e.__line__}),"Feature"!==e.type&&r.push({message:"GeoJSON features must have a type=feature member",line:e.__line__}),o(e,"properties","object"),o(e,"geometry","object")||e.geometry&&s(e.geometry)}var d={Point:function(e){var t;h(e),c(e),void 0!==(t=e).properties&&r.push({message:'geometry object cannot contain a "properties" member',line:t.__line__}),void 0!==t.geometry&&r.push({message:'geometry object cannot contain a "geometry" member',line:t.__line__}),void 0!==t.features&&r.push({message:'geometry object cannot contain a "features" member',line:t.__line__}),o(e,"coordinates","array")||u(e.coordinates)},Feature:f,MultiPoint:function(e){h(e),c(e),o(e,"coordinates","array")||l(e.coordinates,"",1)},LineString:function(e){h(e),c(e),o(e,"coordinates","array")||l(e.coordinates,"Line",1)},MultiLineString:function(e){h(e),c(e),o(e,"coordinates","array")||l(e.coordinates,"Line",2)},FeatureCollection:function(e){if(h(e),c(e),void 0!==e.properties&&r.push({message:'FeatureCollection object cannot contain a "properties" member',line:e.__line__}),void 0!==e.coordinates&&r.push({message:'FeatureCollection object cannot contain a "coordinates" member',line:e.__line__}),!o(e,"features","array")){if(!a(e.features,"object"))return r.push({message:"Every feature must be an object",line:e.__line__});e.features.forEach(f)}},GeometryCollection:function(e){h(e),c(e),o(e,"geometries","array")||(a(e.geometries,"object")||r.push({message:"The geometries array in a GeometryCollection must contain only geometry objects",line:e.__line__}),1===e.geometries.length&&r.push({message:"GeometryCollection with a single geometry should be avoided in favor of single part or a single object of multi-part type",line:e.geometries.__line__}),e.geometries.forEach((function(t){t&&("GeometryCollection"===t.type&&r.push({message:"GeometryCollection should avoid nested geometry collections",line:e.geometries.__line__}),s(t))})))},Polygon:function(e){h(e),c(e),o(e,"coordinates","array")||l(e.coordinates,"LinearRing",2)||n(e,r)},MultiPolygon:function(e){h(e),c(e),o(e,"coordinates","array")||l(e.coordinates,"LinearRing",3)||n(e,r)}},p=Object.keys(d).reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{});return"object"!=typeof e||null==e?(r.push({message:"The root of a GeoJSON object must be an object.",line:0}),r):(s(e),r.forEach((function(e){({}).hasOwnProperty.call(e,"line")&&void 0===e.line&&delete e.line})),r)}},844194:e=>{function t(e){return e*Math.PI/180}function r(e){var r=0;if(e.length>2)for(var n,i,s=0;s=0}function n(e){if(e&&e.length>0){if(r(e[0]))return!1;if(!e.slice(1,e.length).every(r))return!1}return!0}e.exports=function(e,t){(function(e){return"Polygon"===e.type?n(e.coordinates):"MultiPolygon"===e.type?e.coordinates.every(n):void 0})(e)||t.push({message:"Polygons and MultiPolygons should follow the right-hand rule",level:"message",line:e.__line__})}},489597:(e,t,r)=>{var n=function(){"use strict";var e,t=/\s*/g,n=/^\s*|\s*$/g,i=/\s+/;function s(e){if(!e||!e.length)return 0;for(var t=0,r=0;t{e.exports=function(e){for(var t=e.split(",")[0].split(":")[1].split(";")[0],r=atob(e.split(",")[1]),n=r.length,i=new window.ArrayBuffer(n),s=new window.Uint8Array(i),a=0;a{"use strict";var n,i,s=r.g.MutationObserver||r.g.WebKitMutationObserver;if(s){var a=0,o=new s(c),u=r.g.document.createTextNode("");o.observe(u,{characterData:!0}),n=function(){u.data=a=++a%2}}else if(r.g.setImmediate||void 0===r.g.MessageChannel)n="document"in r.g&&"onreadystatechange"in r.g.document.createElement("script")?function(){var e=r.g.document.createElement("script");e.onreadystatechange=function(){c(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},r.g.document.documentElement.appendChild(e)}:function(){setTimeout(c,0)};else{var l=new r.g.MessageChannel;l.port1.onmessage=c,n=function(){l.port2.postMessage(0)}}var h=[];function c(){var e,t;i=!0;for(var r=h.length;r;){for(t=h,h=[],e=-1;++e{"use strict";var n=r(58910),i=r(653790),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.encode=function(e){for(var t,r,i,a,o,u,l,h=[],c=0,f=e.length,d=f,p="string"!==n.getTypeOf(e);c>2,o=(3&t)<<4|r>>4,u=d>1?(15&r)<<2|i>>6:64,l=d>2?63&i:64,h.push(s.charAt(a)+s.charAt(o)+s.charAt(u)+s.charAt(l));return h.join("")},t.decode=function(e){var t,r,n,a,o,u,l=0,h=0,c="data:";if(e.substr(0,c.length)===c)throw new Error("Invalid base64 input, it looks like a data url.");var f,d=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===s.charAt(64)&&d--,e.charAt(e.length-2)===s.charAt(64)&&d--,d%1!=0)throw new Error("Invalid base64 input, bad content length.");for(f=i.uint8array?new Uint8Array(0|d):new Array(0|d);l>4,r=(15&a)<<4|(o=s.indexOf(e.charAt(l++)))>>2,n=(3&o)<<6|(u=s.indexOf(e.charAt(l++))),f[h++]=t,64!==o&&(f[h++]=r),64!==u&&(f[h++]=n);return f}},637326:(e,t,r)=>{"use strict";var n=r(638565),i=r(505301),s=r(195977),a=r(722541);function o(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}s=r(195977),o.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(e,t,r){return e.pipe(new a).pipe(new s("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new s("compressedSize")).withStreamInfo("compression",t)},e.exports=o},361678:(e,t,r)=>{"use strict";var n=r(243718);t.STORE={magic:"\0\0",compressWorker:function(e){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},t.DEFLATE=r(251033)},186988:(e,t,r)=>{"use strict";var n=r(58910),i=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();e.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r,n){var s=i,a=0+r;e^=-1;for(var o=0;o>>8^s[255&(e^t[o])];return-1^e}(0|t,e,e.length):function(e,t,r,n){var s=i,a=0+r;e^=-1;for(var o=0;o>>8^s[255&(e^t.charCodeAt(o))];return-1^e}(0|t,e,e.length):0}},226032:(e,t)=>{"use strict";t.base64=!1,t.binary=!1,t.dir=!1,t.createFolders=!0,t.date=null,t.compression=null,t.compressionOptions=null,t.comment=null,t.unixPermissions=null,t.dosPermissions=null},638565:(e,t,r)=>{"use strict";var n;n="undefined"!=typeof Promise?Promise:r(161883),e.exports={Promise:n}},251033:(e,t,r)=>{"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=r(999591),s=r(58910),a=r(243718),o=n?"uint8array":"array";function u(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}t.magic="\b\0",s.inherits(u,a),u.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(s.transformTo(o,e.data),!1)},u.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},u.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},t.compressWorker=function(e){return new u("Deflate",e)},t.uncompressWorker=function(){return new u("Inflate",{})}},904979:(e,t,r)=>{"use strict";var n=r(58910),i=r(243718),s=r(583600),a=r(186988),o=r(571141),u=function(e,t){var r,n="";for(r=0;r>>=8;return n},l=function(e,t,r,i,l,h){var c,f,d=e.file,p=e.compression,m=h!==s.utf8encode,g=n.transformTo("string",h(d.name)),_=n.transformTo("string",s.utf8encode(d.name)),y=d.comment,v=n.transformTo("string",h(y)),b=n.transformTo("string",s.utf8encode(y)),w=_.length!==d.name.length,x=b.length!==y.length,k="",C="",S="",E=d.dir,A=d.date,I={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(I.crc32=e.crc32,I.compressedSize=e.compressedSize,I.uncompressedSize=e.uncompressedSize);var O=0;t&&(O|=8),m||!w&&!x||(O|=2048);var T,z,B=0,L=0;E&&(B|=16),"UNIX"===l?(L=798,B|=(z=T=d.unixPermissions,T||(z=E?16893:33204),(65535&z)<<16)):(L=20,B|=63&(d.dosPermissions||0)),c=A.getUTCHours(),c<<=6,c|=A.getUTCMinutes(),c<<=5,c|=A.getUTCSeconds()/2,f=A.getUTCFullYear()-1980,f<<=4,f|=A.getUTCMonth()+1,f<<=5,f|=A.getUTCDate(),w&&(C=u(1,1)+u(a(g),4)+_,k+="up"+u(C.length,2)+C),x&&(S=u(1,1)+u(a(v),4)+b,k+="uc"+u(S.length,2)+S);var R="";return R+="\n\0",R+=u(O,2),R+=p.magic,R+=u(c,2),R+=u(f,2),R+=u(I.crc32,4),R+=u(I.compressedSize,4),R+=u(I.uncompressedSize,4),R+=u(g.length,2),R+=u(k.length,2),{fileRecord:o.LOCAL_FILE_HEADER+R+g+k,dirRecord:o.CENTRAL_FILE_HEADER+u(L,2)+R+u(v.length,2)+"\0\0\0\0"+u(B,4)+u(i,4)+g+k+v}},h=function(e){return o.DATA_DESCRIPTOR+u(e.crc32,4)+u(e.compressedSize,4)+u(e.uncompressedSize,4)};function c(e,t,r,n){i.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(c,i),c.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,i.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},c.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=l(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=l(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:h(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t{"use strict";var n=r(361678),i=r(904979);t.generateWorker=function(e,t,r){var s=new i(t.streamFiles,r,t.platform,t.encodeFileName),a=0;try{e.forEach((function(e,r){a++;var i=function(e,t){var r=e||t,i=n[r];if(!i)throw new Error(r+" is not a valid compression method !");return i}(r.options.compression,t.compression),o=r.options.compressionOptions||t.compressionOptions||{},u=r.dir,l=r.date;r._compressWorker(i,o).withStreamInfo("file",{name:e,dir:u,date:l,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(s)})),s.entriesCount=a}catch(e){s.error(e)}return s}},966085:(e,t,r)=>{"use strict";function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}n.prototype=r(17132),n.prototype.loadAsync=r(781062),n.support=r(653790),n.defaults=r(226032),n.version="3.1.5",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=r(638565),e.exports=n},781062:(e,t,r)=>{"use strict";var n=r(58910),i=r(638565),s=r(583600),a=(n=r(58910),r(706624)),o=r(722541),u=r(472182);function l(e){return new i.Promise((function(t,r){var n=e.decompressed.getContentWorker().pipe(new o);n.on("error",(function(e){r(e)})).on("end",(function(){n.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}e.exports=function(e,t){var r=this;return t=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),u.isNode&&u.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var r=new a(t);return r.load(e),r})).then((function(e){var r=[i.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var s=0;s{"use strict";var n=r(58910),i=r(243718);function s(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(s,i),s.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},s.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=s},531220:(e,t,r)=>{"use strict";var n=r(810749).Readable;function i(e,t,r){n.call(this,t),this._helper=e;var i=this;e.on("data",(function(e,t){i.push(e)||i._helper.pause(),r&&r(t)})).on("error",(function(e){i.emit("error",e)})).on("end",(function(){i.push(null)}))}r(58910).inherits(i,n),i.prototype._read=function(){this._helper.resume()},e.exports=i},472182:(e,t,r)=>{"use strict";var n=r(348764).Buffer;e.exports={isNode:void 0!==n,newBufferFrom:function(e,t){return new n(e,t)},allocBuffer:function(e){return n.alloc?n.alloc(e):new n(e)},isBuffer:function(e){return n.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},17132:(e,t,r)=>{"use strict";var n=r(583600),i=r(58910),s=r(243718),a=r(311285),o=r(226032),u=r(637326),l=r(346859),h=r(937834),c=r(472182),f=r(800660),d=function(e,t,r){var n,a=i.getTypeOf(t),h=i.extend(r||{},o);h.date=h.date||new Date,null!==h.compression&&(h.compression=h.compression.toUpperCase()),"string"==typeof h.unixPermissions&&(h.unixPermissions=parseInt(h.unixPermissions,8)),h.unixPermissions&&16384&h.unixPermissions&&(h.dir=!0),h.dosPermissions&&16&h.dosPermissions&&(h.dir=!0),h.dir&&(e=m(e)),h.createFolders&&(n=p(e))&&g.call(this,n,!0);var d="string"===a&&!1===h.binary&&!1===h.base64;r&&void 0!==r.binary||(h.binary=!d),(t instanceof u&&0===t.uncompressedSize||h.dir||!t||0===t.length)&&(h.base64=!1,h.binary=!0,t="",h.compression="STORE",a="string");var _;_=t instanceof u||t instanceof s?t:c.isNode&&c.isStream(t)?new f(e,t):i.prepareContent(e,t,h.binary,h.optimizedBinaryString,h.base64);var y=new l(e,_,h);this.files[e]=y},p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:o.createFolders,e=m(e),this.files[e]||d.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function _(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)this.files.hasOwnProperty(t)&&(n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n))},filter:function(e){var t=[];return this.forEach((function(r,n){e(r,n)&&t.push(n)})),t},file:function(e,t,r){if(1===arguments.length){if(_(e)){var n=e;return this.filter((function(e,t){return!t.dir&&n.test(e)}))}var i=this.files[this.root+e];return i&&!i.dir?i:null}return e=this.root+e,d.call(this,e,t,r),this},folder:function(e){if(!e)return this;if(_(e))return this.filter((function(t,r){return r.dir&&e.test(t)}));var t=this.root+e,r=g.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter((function(t,r){return r.name.slice(0,e.length)===e})),n=0;n{e.exports=r(153086)},322370:(e,t,r)=>{"use strict";var n=r(28542);function i(e){n.call(this,e);for(var t=0;t=0;--s)if(this.data[s]===t&&this.data[s+1]===r&&this.data[s+2]===n&&this.data[s+3]===i)return s-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),s=this.readData(4);return t===s[0]&&r===s[1]&&n===s[2]&&i===s[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},28542:(e,t,r)=>{"use strict";var n=r(58910);function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},e.exports=i},369583:(e,t,r)=>{"use strict";var n=r(970414);function i(e){n.call(this,e)}r(58910).inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},709226:(e,t,r)=>{"use strict";var n=r(28542);function i(e){n.call(this,e)}r(58910).inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},970414:(e,t,r)=>{"use strict";var n=r(322370);function i(e){n.call(this,e)}r(58910).inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},578435:(e,t,r)=>{"use strict";var n=r(58910),i=r(653790),s=r(322370),a=r(709226),o=r(369583),u=r(970414);e.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new o(e):i.uint8array?new u(n.transformTo("uint8array",e)):new s(n.transformTo("array",e)):new a(e)}},571141:(e,t)=>{"use strict";t.LOCAL_FILE_HEADER="PK",t.CENTRAL_FILE_HEADER="PK",t.CENTRAL_DIRECTORY_END="PK",t.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",t.ZIP64_CENTRAL_DIRECTORY_END="PK",t.DATA_DESCRIPTOR="PK\b"},364293:(e,t,r)=>{"use strict";var n=r(243718),i=r(58910);function s(e){n.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(s,n),s.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},e.exports=s},722541:(e,t,r)=>{"use strict";var n=r(243718),i=r(186988);function s(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r(58910).inherits(s,n),s.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},e.exports=s},195977:(e,t,r)=>{"use strict";var n=r(58910),i=r(243718);function s(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(s,i),s.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},e.exports=s},505301:(e,t,r)=>{"use strict";var n=r(58910),i=r(243718);function s(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}n.inherits(s,i),s.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=s},243718:e=>{"use strict";function t(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}t.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r "+e:e}},e.exports=t},311285:(e,t,r)=>{"use strict";var n=r(348764).Buffer,i=r(58910),s=r(364293),a=r(243718),o=r(478458),u=r(653790),l=r(638565),h=null;if(u.nodestream)try{h=r(531220)}catch(e){}function c(e,t,r){var n=t;switch(t){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=t,this._mimeType=r,i.checkSupport(n),this._worker=e.pipe(new s(n)),e.lock()}catch(e){this._worker=new a("error"),this._worker.error(e)}}c.prototype={accumulate:function(e){return t=this,r=e,new l.Promise((function(e,s){var a=[],u=t._internalType,l=t._outputType,h=t._mimeType;t.on("data",(function(e,t){a.push(e),r&&r(t)})).on("error",(function(e){a=[],s(e)})).on("end",(function(){try{var t=function(e,t,r){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),r);case"base64":return o.encode(t);default:return i.transformTo(e,t)}}(l,function(e,t){var r,i=0,s=null,a=0;for(r=0;r{"use strict";var n=r(348764).Buffer;if(t.base64=!0,t.array=!0,t.string=!0,t.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,t.nodebuffer=void 0!==n,t.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)t.blob=!1;else{var i=new ArrayBuffer(0);try{t.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);s.append(i),t.blob=0===s.getBlob("application/zip").size}catch(e){t.blob=!1}}}try{t.nodestream=!!r(810749).Readable}catch(e){t.nodestream=!1}},583600:(e,t,r)=>{"use strict";for(var n=r(58910),i=r(653790),s=r(472182),a=r(243718),o=new Array(256),u=0;u<256;u++)o[u]=u>=252?6:u>=248?5:u>=240?4:u>=224?3:u>=192?2:1;function l(){a.call(this,"utf-8 decode"),this.leftOver=null}function h(){a.call(this,"utf-8 encode")}o[254]=o[254]=1,t.utf8encode=function(e){return i.nodebuffer?s.newBufferFrom(e,"utf-8"):function(e){var t,r,n,s,a,o=e.length,u=0;for(s=0;s>>6,t[a++]=128|63&r):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|63&r):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|63&r);return t}(e)},t.utf8decode=function(e){return i.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,i,s,a=e.length,u=new Array(2*a);for(r=0,t=0;t4)u[r++]=65533,t+=s-1;else{for(i&=2===s?31:3===s?15:7;s>1&&t1?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return u.length!==r&&(u.subarray?u=u.subarray(0,r):u.length=r),n.applyFromCharCode(u)}(e=n.transformTo(i.uint8array?"uint8array":"array",e))},n.inherits(l,a),l.prototype.processChunk=function(e){var r=n.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var s=r;(r=new Uint8Array(s.length+this.leftOver.length)).set(this.leftOver,0),r.set(s,this.leftOver.length)}else r=this.leftOver.concat(r);this.leftOver=null}var a=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;r>=0&&128==(192&e[r]);)r--;return r<0||0===r?t:r+o[e[r]]>t?r:t}(r),u=r;a!==r.length&&(i.uint8array?(u=r.subarray(0,a),this.leftOver=r.subarray(a,r.length)):(u=r.slice(0,a),this.leftOver=r.slice(a,r.length))),this.push({data:t.utf8decode(u),meta:e.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=l,n.inherits(h,a),h.prototype.processChunk=function(e){this.push({data:t.utf8encode(e.data),meta:e.meta})},t.Utf8EncodeWorker=h},58910:(e,t,r)=>{"use strict";var n=r(653790),i=r(478458),s=r(472182),a=r(347326),o=r(638565);function u(e){return e}function l(e,t){for(var r=0;r1;)try{return h.stringifyByChunk(e,n,r)}catch(e){r=Math.floor(r/2)}return h.stringifyByChar(e)}function f(e,t){for(var r=0;r{"use strict";var n=r(578435),i=r(58910),s=r(571141),a=r(539392),o=(r(583600),r(653790));function u(e){this.files=[],this.loadOptions=e}u.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=o.uint8array?"uint8array":"array",r=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,n=this.zip64EndOfCentralSize-44;01)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e0)this.isSignature(t,s.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=u},539392:(e,t,r)=>{"use strict";var n=r(578435),i=r(58910),s=r(637326),a=r(186988),o=r(583600),u=r(361678),l=r(653790);function h(e,t){this.options=e,this.loadOptions=t}h.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in u)if(u.hasOwnProperty(t)&&u[t].magic===e)return u[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===e&&(this.dosPermissions=63&this.externalFileAttributes),3===e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index{"use strict";var n=r(311285),i=r(505301),s=r(583600),a=r(637326),o=r(243718),u=function(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}};u.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var i="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!i&&(t=t.pipe(new s.Utf8EncodeWorker)),!a&&i&&(t=t.pipe(new s.Utf8DecodeWorker))}catch(e){(t=new o("error")).error(e)}return new n(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof a&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new s.Utf8EncodeWorker)),a.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof a?this._data.getContentWorker():this._data instanceof o?this._data:new i(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],h=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},c=0;c{r(239080),e.exports=r(623998).setImmediate},190336:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},934626:(e,t,r)=>{var n=r(1538);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},591265:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},623998:e=>{var t=e.exports={version:"2.3.0"};"number"==typeof __e&&(__e=t)},968104:(e,t,r)=>{var n=r(190336);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},129262:(e,t,r)=>{e.exports=!r(796286)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},275354:(e,t,r)=>{var n=r(1538),i=r(614867).document,s=n(i)&&n(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},146116:(e,t,r)=>{var n=r(614867),i=r(623998),s=r(968104),a=r(400601),o=function(e,t,r){var u,l,h,c=e&o.F,f=e&o.G,d=e&o.S,p=e&o.P,m=e&o.B,g=e&o.W,_=f?i:i[t]||(i[t]={}),y=_.prototype,v=f?n:d?n[t]:(n[t]||{}).prototype;for(u in f&&(r=t),r)(l=!c&&v&&void 0!==v[u])&&u in _||(h=l?v[u]:r[u],_[u]=f&&"function"!=typeof v[u]?r[u]:m&&l?s(h,n):g&&v[u]==h?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(h):p&&"function"==typeof h?s(Function.call,h):h,p&&((_.virtual||(_.virtual={}))[u]=h,e&o.R&&y&&!y[u]&&a(y,u,h)))};o.F=1,o.G=2,o.S=4,o.P=8,o.B=16,o.W=32,o.U=64,o.R=128,e.exports=o},796286:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},614867:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},400601:(e,t,r)=>{var n=r(459028),i=r(339732);e.exports=r(129262)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},32660:(e,t,r)=>{e.exports=r(614867).document&&document.documentElement},741297:(e,t,r)=>{e.exports=!r(129262)&&!r(796286)((function(){return 7!=Object.defineProperty(r(275354)("div"),"a",{get:function(){return 7}}).a}))},869062:e=>{e.exports=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},1538:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},459028:(e,t,r)=>{var n=r(934626),i=r(741297),s=r(275652),a=Object.defineProperty;t.f=r(129262)?Object.defineProperty:function(e,t,r){if(n(e),t=s(t,!0),n(r),i)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},339732:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},700914:(e,t,r)=>{var n,i,s,a=r(968104),o=r(869062),u=r(32660),l=r(275354),h=r(614867),c=h.process,f=h.setImmediate,d=h.clearImmediate,p=h.MessageChannel,m=0,g={},_=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},y=function(e){_.call(e.data)};f&&d||(f=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return g[++m]=function(){o("function"==typeof e?e:Function(e),t)},n(m),m},d=function(e){delete g[e]},"process"==r(591265)(c)?n=function(e){c.nextTick(a(_,e,1))}:p?(s=(i=new p).port2,i.port1.onmessage=y,n=a(s.postMessage,s,1)):h.addEventListener&&"function"==typeof postMessage&&!h.importScripts?(n=function(e){h.postMessage(e+"","*")},h.addEventListener("message",y,!1)):n="onreadystatechange"in l("script")?function(e){u.appendChild(l("script")).onreadystatechange=function(){u.removeChild(this),_.call(e)}}:function(e){setTimeout(a(_,e,1),0)}),e.exports={set:f,clear:d}},275652:(e,t,r)=>{var n=r(1538);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},239080:(e,t,r)=>{var n=r(146116),i=r(700914);n(n.G+n.B,{setImmediate:i.set,clearImmediate:i.clear})},161883:(e,t,r)=>{"use strict";var n=r(125705);function i(){}var s={},a=["REJECTED"],o=["FULFILLED"],u=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,e!==i&&d(this,e)}function h(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function c(e,t,r){n((function(){var n;try{n=t(r)}catch(t){return s.reject(e,t)}n===e?s.reject(e,new TypeError("Cannot resolve promise with itself")):s.resolve(e,n)}))}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function d(e,t){var r=!1;function n(t){r||(r=!0,s.reject(e,t))}function i(t){r||(r=!0,s.resolve(e,t))}var a=p((function(){t(i,n)}));"error"===a.status&&n(a.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}e.exports=l,l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===o||"function"!=typeof t&&this.state===a)return this;var r=new this.constructor(i);return this.state!==u?c(r,this.state===o?e:t,this.outcome):this.queue.push(new h(r,e,t)),r},h.prototype.callFulfilled=function(e){s.resolve(this.promise,e)},h.prototype.otherCallFulfilled=function(e){c(this.promise,this.onFulfilled,e)},h.prototype.callRejected=function(e){s.reject(this.promise,e)},h.prototype.otherCallRejected=function(e){c(this.promise,this.onRejected,e)},s.resolve=function(e,t){var r=p(f,t);if("error"===r.status)return s.reject(e,r.value);var n=r.value;if(n)d(e,n);else{e.state=o,e.outcome=t;for(var i=-1,a=e.queue.length;++i{"use strict";var n=r(125705);function i(){}var s={},a=["REJECTED"],o=["FULFILLED"],u=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,e!==i&&d(this,e)}function h(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function c(e,t,r){n((function(){var n;try{n=t(r)}catch(t){return s.reject(e,t)}n===e?s.reject(e,new TypeError("Cannot resolve promise with itself")):s.resolve(e,n)}))}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function d(e,t){var r=!1;function n(t){r||(r=!0,s.reject(e,t))}function i(t){r||(r=!0,s.resolve(e,t))}var a=p((function(){t(i,n)}));"error"===a.status&&n(a.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}e.exports=l,l.prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){throw r}))}))},l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===o||"function"!=typeof t&&this.state===a)return this;var r=new this.constructor(i);return this.state!==u?c(r,this.state===o?e:t,this.outcome):this.queue.push(new h(r,e,t)),r},h.prototype.callFulfilled=function(e){s.resolve(this.promise,e)},h.prototype.otherCallFulfilled=function(e){c(this.promise,this.onFulfilled,e)},h.prototype.callRejected=function(e){s.reject(this.promise,e)},h.prototype.otherCallRejected=function(e){c(this.promise,this.onRejected,e)},s.resolve=function(e,t){var r=p(f,t);if("error"===r.status)return s.reject(e,r.value);var n=r.value;if(n)d(e,n);else{e.state=o,e.outcome=t;for(var i=-1,a=e.queue.length;++i{var n=r(829932);e.exports=function(e,t){return n(t,(function(t){return[t,e[t]]}))}},513866:(e,t,r)=>{var n=r(348969),i=r(664160),s=r(668776),a=r(499294);e.exports=function(e){return function(t){var r=i(t);return"[object Map]"==r?s(t):"[object Set]"==r?a(t):n(t,e(t))}}},499294:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}},493220:(e,t,r)=>{var n=r(513866)(r(3674));e.exports=n},5387:e=>{!function(){function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function r(){return 1}e.exports?e.exports=s:this.LRUCache=s;var n=!1;function i(e){n||"string"==typeof e||"number"==typeof e||(n=!0,console.error(new TypeError("LRU: key must be a string or number. Almost certainly a bug! "+typeof e).stack))}function s(e){if(!(this instanceof s))return new s(e);"number"==typeof e&&(e={max:e}),e||(e={}),this._max=e.max,(!this._max||"number"!=typeof this._max||this._max<=0)&&(this._max=1/0),this._lengthCalculator=e.length||r,"function"!=typeof this._lengthCalculator&&(this._lengthCalculator=r),this._allowStale=e.stale||!1,this._maxAge=e.maxAge||null,this._dispose=e.dispose,this.reset()}function a(e,t,r){i(t);var n=e._cache[t];return n&&(o(e,n)?(h(e,n),e._allowStale||(n=void 0)):r&&function(e,t){l(e,t),t.lu=e._mru++,e._lruList[t.lu]=t}(e,n),n&&(n=n.value)),n}function o(e,t){if(!t||!t.maxAge&&!e._maxAge)return!1;var r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e._maxAge&&r>e._maxAge}function u(e){for(;e._lrue._max;)h(e,e._lruList[e._lru])}function l(e,t){for(delete e._lruList[t.lu];e._lruthis._max&&u(this)},get:function(){return this._max},enumerable:!0}),Object.defineProperty(s.prototype,"lengthCalculator",{set:function(e){if("function"!=typeof e)for(var t in this._lengthCalculator=r,this._length=this._itemCount,this._cache)this._cache[t].length=1;else for(var t in this._lengthCalculator=e,this._length=0,this._cache)this._cache[t].length=this._lengthCalculator(this._cache[t].value),this._length+=this._cache[t].length;this._length>this._max&&u(this)},get:function(){return this._lengthCalculator},enumerable:!0}),Object.defineProperty(s.prototype,"length",{get:function(){return this._length},enumerable:!0}),Object.defineProperty(s.prototype,"itemCount",{get:function(){return this._itemCount},enumerable:!0}),s.prototype.forEach=function(e,t){t=t||this;for(var r=0,n=this._itemCount,i=this._mru-1;i>=0&&r=0&&t=0&&t=0&&tthis._max?(h(this,this._cache[e]),!1):(this._dispose&&this._dispose(e,this._cache[e].value),this._cache[e].now=s,this._cache[e].maxAge=n,this._cache[e].value=r,this._length+=a-this._cache[e].length,this._cache[e].length=a,this.get(e),this._length>this._max&&u(this),!0);var o=new c(e,r,this._mru++,a,s,n);return o.length>this._max?(this._dispose&&this._dispose(e,r),!1):(this._length+=o.length,this._lruList[o.lu]=this._cache[e]=o,this._itemCount++,this._length>this._max&&u(this),!0)},s.prototype.has=function(e){return i(e),!!t(this._cache,e)&&!o(this,this._cache[e])},s.prototype.get=function(e){return i(e),a(this,e,!0)},s.prototype.peek=function(e){return i(e),a(this,e,!1)},s.prototype.pop=function(){var e=this._lruList[this._lru];return h(this,e),e||null},s.prototype.del=function(e){i(e),h(this,this._cache[e])},s.prototype.load=function(e){this.reset();for(var t=Date.now(),r=e.length-1;r>=0;r--){var n=e[r];i(n.k);var s=n.e||0;if(0===s)this.set(n.k,n.v);else{var a=s-t;a>0&&this.set(n.k,n.v,a)}}}}()},999591:(e,t,r)=>{"use strict";var n={};(0,r(724236).assign)(n,r(124555),r(178843),r(371619)),e.exports=n},124555:(e,t,r)=>{"use strict";var n=r(530405),i=r(724236),s=r(929373),a=r(848898),o=r(362292),u=Object.prototype.toString;function l(e){if(!(this instanceof l))return new l(e);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==r)throw new Error(a[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var h;if(h="string"==typeof t.dictionary?s.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(r=n.deflateSetDictionary(this.strm,h)))throw new Error(a[r]);this._dict_set=!0}}function h(e,t){var r=new l(t);if(r.push(e,!0),r.err)throw r.msg||a[r.err];return r.result}l.prototype.push=function(e,t){var r,a,o=this.strm,l=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?o.input=s.string2buf(e):"[object ArrayBuffer]"===u.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new i.Buf8(l),o.next_out=0,o.avail_out=l),1!==(r=n.deflate(o,a))&&0!==r)return this.onEnd(r),this.ended=!0,!1;0!==o.avail_out&&(0!==o.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(s.buf2binstring(i.shrinkBuf(o.output,o.next_out))):this.onData(i.shrinkBuf(o.output,o.next_out)))}while((o.avail_in>0||0===o.avail_out)&&1!==r);return 4===a?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==a||(this.onEnd(0),o.avail_out=0,!0)},l.prototype.onData=function(e){this.chunks.push(e)},l.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=l,t.deflate=h,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,h(e,t)}},178843:(e,t,r)=>{"use strict";var n=r(827948),i=r(724236),s=r(929373),a=r(371619),o=r(848898),u=r(362292),l=r(242401),h=Object.prototype.toString;function c(e){if(!(this instanceof c))return new c(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==a.Z_OK)throw new Error(o[r]);if(this.header=new l,n.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=s.string2buf(t.dictionary):"[object ArrayBuffer]"===h.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=n.inflateSetDictionary(this.strm,t.dictionary))!==a.Z_OK))throw new Error(o[r])}function f(e,t){var r=new c(t);if(r.push(e,!0),r.err)throw r.msg||o[r.err];return r.result}c.prototype.push=function(e,t){var r,o,u,l,c,f=this.strm,d=this.options.chunkSize,p=this.options.dictionary,m=!1;if(this.ended)return!1;o=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?f.input=s.binstring2buf(e):"[object ArrayBuffer]"===h.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(d),f.next_out=0,f.avail_out=d),(r=n.inflate(f,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(r=n.inflateSetDictionary(this.strm,p)),r===a.Z_BUF_ERROR&&!0===m&&(r=a.Z_OK,m=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),this.ended=!0,!1;f.next_out&&(0!==f.avail_out&&r!==a.Z_STREAM_END&&(0!==f.avail_in||o!==a.Z_FINISH&&o!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(u=s.utf8border(f.output,f.next_out),l=f.next_out-u,c=s.buf2string(f.output,u),f.next_out=l,f.avail_out=d-l,l&&i.arraySet(f.output,f.output,u,l,0),this.onData(c)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(m=!0)}while((f.avail_in>0||0===f.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(o=a.Z_FINISH),o===a.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):o!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),f.avail_out=0,!0)},c.prototype.onData=function(e){this.chunks.push(e)},c.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=c,t.inflate=f,t.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},t.ungzip=f},724236:(e,t)=>{"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)n(r,i)&&(e[i]=r[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var s=0;s{"use strict";var n=r(724236),i=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){s=!1}for(var a=new n.Buf8(256),o=0;o<256;o++)a[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;function u(e,t){if(t<65534&&(e.subarray&&s||!e.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",a=0;a>>6,t[a++]=128|63&r):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|63&r):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|63&r);return t},t.buf2binstring=function(e){return u(e,e.length)},t.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r4)l[n++]=65533,r+=s-1;else{for(i&=2===s?31:3===s?15:7;s>1&&r1?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return u(l,n)},t.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;r>=0&&128==(192&e[r]);)r--;return r<0||0===r?t:r+a[e[r]]>t?r:t}},766069:e=>{"use strict";e.exports=function(e,t,r,n){for(var i=65535&e|0,s=e>>>16&65535|0,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{s=s+(i=i+t[n++]|0)|0}while(--a);i%=65521,s%=65521}return i|s<<16|0}},371619:e=>{"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},502869:e=>{"use strict";var t=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();e.exports=function(e,r,n,i){var s=t,a=i+n;e^=-1;for(var o=i;o>>8^s[255&(e^r[o])];return-1^e}},530405:(e,t,r)=>{"use strict";var n,i=r(724236),s=r(410342),a=r(766069),o=r(502869),u=r(848898),l=-2,h=258,c=262,f=103,d=113,p=666;function m(e,t){return e.msg=u[t],t}function g(e){return(e<<1)-(e>4?9:0)}function _(e){for(var t=e.length;--t>=0;)e[t]=0}function y(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function v(e,t){s._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,y(e.strm)}function b(e,t){e.pending_buf[e.pending++]=t}function w(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function x(e,t){var r,n,i=e.max_chain_length,s=e.strstart,a=e.prev_length,o=e.nice_match,u=e.strstart>e.w_size-c?e.strstart-(e.w_size-c):0,l=e.window,f=e.w_mask,d=e.prev,p=e.strstart+h,m=l[s+a-1],g=l[s+a];e.prev_length>=e.good_match&&(i>>=2),o>e.lookahead&&(o=e.lookahead);do{if(l[(r=t)+a]===g&&l[r+a-1]===m&&l[r]===l[s]&&l[++r]===l[s+1]){s+=2,r++;do{}while(l[++s]===l[++r]&&l[++s]===l[++r]&&l[++s]===l[++r]&&l[++s]===l[++r]&&l[++s]===l[++r]&&l[++s]===l[++r]&&l[++s]===l[++r]&&l[++s]===l[++r]&&sa){if(e.match_start=t,a=n,n>=o)break;m=l[s+a-1],g=l[s+a]}}}while((t=d[t&f])>u&&0!=--i);return a<=e.lookahead?a:e.lookahead}function k(e){var t,r,n,s,u,l,h,f,d,p,m=e.w_size;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=m+(m-c)){i.arraySet(e.window,e.window,m,m,0),e.match_start-=m,e.strstart-=m,e.block_start-=m,t=r=e.hash_size;do{n=e.head[--t],e.head[t]=n>=m?n-m:0}while(--r);t=r=m;do{n=e.prev[--t],e.prev[t]=n>=m?n-m:0}while(--r);s+=m}if(0===e.strm.avail_in)break;if(l=e.strm,h=e.window,f=e.strstart+e.lookahead,d=s,p=void 0,(p=l.avail_in)>d&&(p=d),r=0===p?0:(l.avail_in-=p,i.arraySet(h,l.input,l.next_in,p,f),1===l.state.wrap?l.adler=a(l.adler,h,p,f):2===l.state.wrap&&(l.adler=o(l.adler,h,p,f)),l.next_in+=p,l.total_in+=p,p),e.lookahead+=r,e.lookahead+e.insert>=3)for(u=e.strstart-e.insert,e.ins_h=e.window[u],e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<=3)if(n=s._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,n=s._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<15&&(o=2,n-=16),s<1||s>9||8!==r||n<8||n>15||t<0||t>9||a<0||a>4)return m(e,l);8===n&&(n=9);var u=new A;return e.state=u,u.strm=e,u.wrap=o,u.gzhead=null,u.w_bits=n,u.w_size=1<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(k(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,v(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-c&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(v(e,!1),e.strm.avail_out),1)})),new E(4,4,8,4,C),new E(4,5,16,8,C),new E(4,6,32,32,C),new E(4,4,16,16,S),new E(8,16,32,32,S),new E(8,16,128,128,S),new E(8,32,128,256,S),new E(32,128,258,1024,S),new E(32,258,258,4096,S)],t.deflateInit=function(e,t){return T(e,t,8,15,8,0)},t.deflateInit2=T,t.deflateReset=O,t.deflateResetKeep=I,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?l:(e.state.gzhead=t,0):l},t.deflate=function(e,t){var r,i,a,u;if(!e||!e.state||t>5||t<0)return e?m(e,l):l;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===p&&4!==t)return m(e,0===e.avail_out?-5:l);if(i.strm=e,r=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,b(i,31),b(i,139),b(i,8),i.gzhead?(b(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),b(i,255&i.gzhead.time),b(i,i.gzhead.time>>8&255),b(i,i.gzhead.time>>16&255),b(i,i.gzhead.time>>24&255),b(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),b(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(b(i,255&i.gzhead.extra.length),b(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=o(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(b(i,0),b(i,0),b(i,0),b(i,0),b(i,0),b(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),b(i,3),i.status=d);else{var c=8+(i.w_bits-8<<4)<<8;c|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(c|=32),c+=31-c%31,i.status=d,w(i,c),0!==i.strstart&&(w(i,e.adler>>>16),w(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=o(e.adler,i.pending_buf,i.pending-a,a)),y(e),a=i.pending,i.pending!==i.pending_buf_size));)b(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=o(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=o(e.adler,i.pending_buf,i.pending-a,a)),y(e),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindexa&&(e.adler=o(e.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=o(e.adler,i.pending_buf,i.pending-a,a)),y(e),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindexa&&(e.adler=o(e.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=f)}else i.status=f;if(i.status===f&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&y(e),i.pending+2<=i.pending_buf_size&&(b(i,255&e.adler),b(i,e.adler>>8&255),e.adler=0,i.status=d)):i.status=d),0!==i.pending){if(y(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&g(t)<=g(r)&&4!==t)return m(e,-5);if(i.status===p&&0!==e.avail_in)return m(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&i.status!==p){var x=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(k(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var r,n,i,a,o=e.window;;){if(e.lookahead<=h){if(k(e),e.lookahead<=h&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(n=o[i=e.strstart-1])===o[++i]&&n===o[++i]&&n===o[++i]){a=e.strstart+h;do{}while(n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=s._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(v(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(v(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(v(e,!1),0===e.strm.avail_out)?1:2}(i,t):n[i.level].func(i,t);if(3!==x&&4!==x||(i.status=p),1===x||3===x)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===x&&(1===t?s._tr_align(i):5!==t&&(s._tr_stored_block(i,0,0,!1),3===t&&(_(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),y(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(b(i,255&e.adler),b(i,e.adler>>8&255),b(i,e.adler>>16&255),b(i,e.adler>>24&255),b(i,255&e.total_in),b(i,e.total_in>>8&255),b(i,e.total_in>>16&255),b(i,e.total_in>>24&255)):(w(i,e.adler>>>16),w(i,65535&e.adler)),y(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==f&&t!==d&&t!==p?m(e,l):(e.state=null,t===d?m(e,-3):0):l},t.deflateSetDictionary=function(e,t){var r,n,s,o,u,h,c,f,d=t.length;if(!e||!e.state)return l;if(2===(o=(r=e.state).wrap)||1===o&&42!==r.status||r.lookahead)return l;for(1===o&&(e.adler=a(e.adler,t,d,0)),r.wrap=0,d>=r.w_size&&(0===o&&(_(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new i.Buf8(r.w_size),i.arraySet(f,t,d-r.w_size,r.w_size,0),t=f,d=r.w_size),u=e.avail_in,h=e.next_in,c=e.input,e.avail_in=d,e.next_in=0,e.input=t,k(r);r.lookahead>=3;){n=r.strstart,s=r.lookahead-2;do{r.ins_h=(r.ins_h<{"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},394264:e=>{"use strict";e.exports=function(e,t){var r,n,i,s,a,o,u,l,h,c,f,d,p,m,g,_,y,v,b,w,x,k,C,S,E;r=e.state,n=e.next_in,S=e.input,i=n+(e.avail_in-5),s=e.next_out,E=e.output,a=s-(t-e.avail_out),o=s+(e.avail_out-257),u=r.dmax,l=r.wsize,h=r.whave,c=r.wnext,f=r.window,d=r.hold,p=r.bits,m=r.lencode,g=r.distcode,_=(1<>>=b=v>>>24,p-=b,0==(b=v>>>16&255))E[s++]=65535&v;else{if(!(16&b)){if(0==(64&b)){v=m[(65535&v)+(d&(1<>>=b,p-=b),p<15&&(d+=S[n++]<>>=b=v>>>24,p-=b,!(16&(b=v>>>16&255))){if(0==(64&b)){v=g[(65535&v)+(d&(1<u){e.msg="invalid distance too far back",r.mode=30;break e}if(d>>>=b,p-=b,x>(b=s-a)){if((b=x-b)>h&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(k=0,C=f,0===c){if(k+=l-b,b2;)E[s++]=C[k++],E[s++]=C[k++],E[s++]=C[k++],w-=3;w&&(E[s++]=C[k++],w>1&&(E[s++]=C[k++]))}else{k=s-x;do{E[s++]=E[k++],E[s++]=E[k++],E[s++]=E[k++],w-=3}while(w>2);w&&(E[s++]=E[k++],w>1&&(E[s++]=E[k++]))}break}}break}}while(n>3,d&=(1<<(p-=w<<3))-1,e.next_in=n,e.next_out=s,e.avail_in=n{"use strict";var n=r(724236),i=r(766069),s=r(502869),a=r(394264),o=r(9241),u=-2,l=12,h=30;function c(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function f(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):u}function p(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,d(e)):u}function m(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?u:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,p(e))):u}function g(e,t){var r,n;return e?(n=new f,e.state=n,n.window=null,0!==(r=m(e,t))&&(e.state=null),r):u}var _,y,v=!0;function b(e){if(v){var t;for(_=new n.Buf32(512),y=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(o(1,e.lens,0,288,_,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;o(2,e.lens,0,32,y,0,e.work,{bits:5}),v=!1}e.lencode=_,e.lenbits=9,e.distcode=y,e.distbits=5}function w(e,t,r,i){var s,a=e.state;return null===a.window&&(a.wsize=1<=a.wsize?(n.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((s=a.wsize-a.wnext)>i&&(s=i),n.arraySet(a.window,t,r-i,s,a.wnext),(i-=s)?(n.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=s,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,r.check=s(r.check,N,2,0),y=0,v=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&y)<<8)+(y>>8))%31){e.msg="incorrect header check",r.mode=h;break}if(8!=(15&y)){e.msg="unknown compression method",r.mode=h;break}if(v-=4,L=8+(15&(y>>>=4)),0===r.wbits)r.wbits=L;else if(L>r.wbits){e.msg="invalid window size",r.mode=h;break}r.dmax=1<>8&1),512&r.flags&&(N[0]=255&y,N[1]=y>>>8&255,r.check=s(r.check,N,2,0)),y=0,v=0,r.mode=3;case 3:for(;v<32;){if(0===g)break e;g--,y+=f[p++]<>>8&255,N[2]=y>>>16&255,N[3]=y>>>24&255,r.check=s(r.check,N,4,0)),y=0,v=0,r.mode=4;case 4:for(;v<16;){if(0===g)break e;g--,y+=f[p++]<>8),512&r.flags&&(N[0]=255&y,N[1]=y>>>8&255,r.check=s(r.check,N,2,0)),y=0,v=0,r.mode=5;case 5:if(1024&r.flags){for(;v<16;){if(0===g)break e;g--,y+=f[p++]<>>8&255,r.check=s(r.check,N,2,0)),y=0,v=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((C=r.length)>g&&(C=g),C&&(r.head&&(L=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,f,p,C,L)),512&r.flags&&(r.check=s(r.check,f,C,p)),g-=C,p+=C,r.length-=C),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===g)break e;C=0;do{L=f[p+C++],r.head&&L&&r.length<65536&&(r.head.name+=String.fromCharCode(L))}while(L&&C>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=l;break;case 10:for(;v<32;){if(0===g)break e;g--,y+=f[p++]<>>=7&v,v-=7&v,r.mode=27;break}for(;v<3;){if(0===g)break e;g--,y+=f[p++]<>>=1)){case 0:r.mode=14;break;case 1:if(b(r),r.mode=20,6===t){y>>>=2,v-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=h}y>>>=2,v-=2;break;case 14:for(y>>>=7&v,v-=7&v;v<32;){if(0===g)break e;g--,y+=f[p++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=h;break}if(r.length=65535&y,y=0,v=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(C=r.length){if(C>g&&(C=g),C>_&&(C=_),0===C)break e;n.arraySet(d,f,p,C,m),g-=C,p+=C,_-=C,m+=C,r.length-=C;break}r.mode=l;break;case 17:for(;v<14;){if(0===g)break e;g--,y+=f[p++]<>>=5,v-=5,r.ndist=1+(31&y),y>>>=5,v-=5,r.ncode=4+(15&y),y>>>=4,v-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=h;break}r.have=0,r.mode=18;case 18:for(;r.have>>=3,v-=3}for(;r.have<19;)r.lens[U[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,D={bits:r.lenbits},R=o(0,r.lens,0,19,r.lencode,0,r.work,D),r.lenbits=D.bits,R){e.msg="invalid code lengths set",r.mode=h;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,O=65535&P,!((A=P>>>24)<=v);){if(0===g)break e;g--,y+=f[p++]<>>=A,v-=A,r.lens[r.have++]=O;else{if(16===O){for(F=A+2;v>>=A,v-=A,0===r.have){e.msg="invalid bit length repeat",r.mode=h;break}L=r.lens[r.have-1],C=3+(3&y),y>>>=2,v-=2}else if(17===O){for(F=A+3;v>>=A)),y>>>=3,v-=3}else{for(F=A+7;v>>=A)),y>>>=7,v-=7}if(r.have+C>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=h;break}for(;C--;)r.lens[r.have++]=L}}if(r.mode===h)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=h;break}if(r.lenbits=9,D={bits:r.lenbits},R=o(1,r.lens,0,r.nlen,r.lencode,0,r.work,D),r.lenbits=D.bits,R){e.msg="invalid literal/lengths set",r.mode=h;break}if(r.distbits=6,r.distcode=r.distdyn,D={bits:r.distbits},R=o(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,D),r.distbits=D.bits,R){e.msg="invalid distances set",r.mode=h;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(g>=6&&_>=258){e.next_out=m,e.avail_out=_,e.next_in=p,e.avail_in=g,r.hold=y,r.bits=v,a(e,k),m=e.next_out,d=e.output,_=e.avail_out,p=e.next_in,f=e.input,g=e.avail_in,y=r.hold,v=r.bits,r.mode===l&&(r.back=-1);break}for(r.back=0;I=(P=r.lencode[y&(1<>>16&255,O=65535&P,!((A=P>>>24)<=v);){if(0===g)break e;g--,y+=f[p++]<>T)])>>>16&255,O=65535&P,!(T+(A=P>>>24)<=v);){if(0===g)break e;g--,y+=f[p++]<>>=T,v-=T,r.back+=T}if(y>>>=A,v-=A,r.back+=A,r.length=O,0===I){r.mode=26;break}if(32&I){r.back=-1,r.mode=l;break}if(64&I){e.msg="invalid literal/length code",r.mode=h;break}r.extra=15&I,r.mode=22;case 22:if(r.extra){for(F=r.extra;v>>=r.extra,v-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;I=(P=r.distcode[y&(1<>>16&255,O=65535&P,!((A=P>>>24)<=v);){if(0===g)break e;g--,y+=f[p++]<>T)])>>>16&255,O=65535&P,!(T+(A=P>>>24)<=v);){if(0===g)break e;g--,y+=f[p++]<>>=T,v-=T,r.back+=T}if(y>>>=A,v-=A,r.back+=A,64&I){e.msg="invalid distance code",r.mode=h;break}r.offset=O,r.extra=15&I,r.mode=24;case 24:if(r.extra){for(F=r.extra;v>>=r.extra,v-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=h;break}r.mode=25;case 25:if(0===_)break e;if(C=k-_,r.offset>C){if((C=r.offset-C)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=h;break}C>r.wnext?(C-=r.wnext,S=r.wsize-C):S=r.wnext-C,C>r.length&&(C=r.length),E=r.window}else E=d,S=m-r.offset,C=r.length;C>_&&(C=_),_-=C,r.length-=C;do{d[m++]=E[S++]}while(--C);0===r.length&&(r.mode=21);break;case 26:if(0===_)break e;d[m++]=r.length,_--,r.mode=21;break;case 27:if(r.wrap){for(;v<32;){if(0===g)break e;g--,y|=f[p++]<{"use strict";var n=r(724236),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],o=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,r,u,l,h,c,f){var d,p,m,g,_,y,v,b,w,x=f.bits,k=0,C=0,S=0,E=0,A=0,I=0,O=0,T=0,z=0,B=0,L=null,R=0,D=new n.Buf16(16),F=new n.Buf16(16),P=null,N=0;for(k=0;k<=15;k++)D[k]=0;for(C=0;C=1&&0===D[E];E--);if(A>E&&(A=E),0===E)return l[h++]=20971520,l[h++]=20971520,f.bits=1,0;for(S=1;S0&&(0===e||1!==E))return-1;for(F[1]=0,k=1;k<15;k++)F[k+1]=F[k]+D[k];for(C=0;C852||2===e&&z>592)return 1;for(;;){v=k-O,c[C]y?(b=P[N+c[C]],w=L[R+c[C]]):(b=96,w=0),d=1<>O)+(p-=d)]=v<<24|b<<16|w|0}while(0!==p);for(d=1<>=1;if(0!==d?(B&=d-1,B+=d):B=0,C++,0==--D[k]){if(k===E)break;k=t[r+c[C]]}if(k>A&&(B&g)!==m){for(0===O&&(O=A),_+=S,T=1<<(I=k-O);I+O852||2===e&&z>592)return 1;l[m=B&g]=A<<24|I<<16|_-h|0}}return 0!==B&&(l[_+B]=k-O<<24|64<<16|0),f.bits=A,0}},848898:e=>{"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},410342:(e,t,r)=>{"use strict";var n=r(724236);function i(e){for(var t=e.length;--t>=0;)e[t]=0}var s=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],l=new Array(576);i(l);var h=new Array(60);i(h);var c=new Array(512);i(c);var f=new Array(256);i(f);var d=new Array(29);i(d);var p,m,g,_=new Array(30);function y(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function v(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function b(e){return e<256?c[e]:c[256+(e>>>7)]}function w(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function x(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<>>=1,r<<=1}while(--t>0);return r>>>1}function S(e,t,r){var n,i,s=new Array(16),a=0;for(n=1;n<=15;n++)s[n]=a=a+r[n-1]<<1;for(i=0;i<=t;i++){var o=e[2*i+1];0!==o&&(e[2*i]=C(s[o]++,o))}}function E(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function A(e){e.bi_valid>8?w(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function I(e,t,r,n){var i=2*t,s=2*r;return e[i]>1;r>=1;r--)O(e,s,r);i=u;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],O(e,s,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,s[2*i]=s[2*r]+s[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,s[2*r+1]=s[2*n+1]=i,e.heap[1]=i++,O(e,s,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,s,a,o,u=t.dyn_tree,l=t.max_code,h=t.stat_desc.static_tree,c=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(s=0;s<=15;s++)e.bl_count[s]=0;for(u[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)(s=u[2*u[2*(n=e.heap[r])+1]+1]+1)>p&&(s=p,m++),u[2*n+1]=s,n>l||(e.bl_count[s]++,a=0,n>=d&&(a=f[n-d]),o=u[2*n],e.opt_len+=o*(s+a),c&&(e.static_len+=o*(h[2*n+1]+a)));if(0!==m){do{for(s=p-1;0===e.bl_count[s];)s--;e.bl_count[s]--,e.bl_count[s+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(s=p;0!==s;s--)for(n=e.bl_count[s];0!==n;)(i=e.heap[--r])>l||(u[2*i+1]!==s&&(e.opt_len+=(s-u[2*i+1])*u[2*i],u[2*i+1]=s),n--)}}(e,t),S(s,l,e.bl_count)}function B(e,t,r){var n,i,s=-1,a=t[1],o=0,u=7,l=4;for(0===a&&(u=138,l=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=t[2*(n+1)+1],++o>=7;n<30;n++)for(_[n]=i<<7,e=0;e<1<0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),z(e,e.l_desc),z(e,e.d_desc),a=function(e){var t;for(B(e,e.dyn_ltree,e.l_desc.max_code),B(e,e.dyn_dtree,e.d_desc.max_code),z(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*u[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=i&&(i=s)):i=s=r+5,r+4<=i&&-1!==t?D(e,t,r,n):4===e.strategy||s===i?(x(e,2+(n?1:0),3),T(e,l,h)):(x(e,4+(n?1:0),3),function(e,t,r,n){var i;for(x(e,t-257,5),x(e,r-1,5),x(e,n-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(f[r]+256+1)]++,e.dyn_dtree[2*b(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){x(e,2,3),k(e,256,l),function(e){16===e.bi_valid?(w(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},362292:e=>{"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},911392:(e,t,r)=>{r(129718);var n=r(506941).s;function i(e){var t=new n;return(t.write(e)+t.end()).replace(/\0/g,"").trim()}e.exports=function e(t,r){if(!t)return i;try{new TextDecoder(t.trim())}catch(a){var n=s.exec(t);return n&&!r?e("windows-"+n[1],!0):i}return function(e){var r=new TextDecoder(t);return(r.decode(e,{stream:!0})+r.decode()).replace(/\0/g,"").trim()}};var s=/^(?:ANSI\s)?(\d+)$/m},309462:(e,t,r)=>{var n=r(911392);function i(e,t,r,n,i){var s=i(e.slice(t,t+r));switch(n){case"N":case"F":case"O":return parseFloat(s,10);case"D":return new Date(s.slice(0,4),parseInt(s.slice(4,6),10)-1,s.slice(6,8));case"L":return"y"===s.toLowerCase()||"t"===s.toLowerCase();default:return s}}function s(e,t,r,n){for(var s,a,o={},u=0,l=r.length;u{"use strict";var n=r(348764).Buffer,i=r(543389);e.exports=function(e){return new i((function(t,r){var i=e.slice(-3),s=new XMLHttpRequest;s.open("GET",e,!0),"prj"!==i&&"cpg"!==i&&(s.responseType="arraybuffer"),s.addEventListener("load",(function(){return s.status>399?"prj"===i||"cpg"===i?t(!1):r(new Error(s.status)):t("prj"!==i&&"cpg"!==i?new n(s.response):s.response)}),!1),s.send()}))}},279003:(e,t,r)=>{"use strict";var n=r(348764).Buffer,i=r(490173);i.default&&(i=i.default);var s=r(532555),a=r(194830),o=r(876415),u=r(309462),l=r(543389),h=new(r(5387))({max:20});function c(e){if(!e)throw new Error("forgot to pass buffer");return n.isBuffer(e)?e:e instanceof r.g.ArrayBuffer?new n(e):e.buffer instanceof r.g.ArrayBuffer?1===e.BYTES_PER_ELEMENT?new n(e):new n(e.buffer):void 0}function f(e,t){return"string"==typeof e&&h.has(e)?l.resolve(h.get(e)):f.getShapefile(e,t).then((function(t){return"string"==typeof e&&h.set(e,t),t}))}f.combine=function(e){for(var t={type:"FeatureCollection",features:[]},r=0,n=e[0].length;r-1?a.push(r.slice(0,-3)+r.slice(-3).toLowerCase()):"dbf"!==r.slice(-3).toLowerCase()&&"cpg"!==r.slice(-3).toLowerCase()||(n[r.slice(0,-3)+r.slice(-3).toLowerCase()]=n[r]));if(!a.length)throw new Error("no layers founds");var l=a.map((function(e){var r,i,s=e.lastIndexOf(".");return s>-1&&e.slice(s).indexOf("json")>-1?(r=JSON.parse(n[e])).fileName=e.slice(0,s):t.indexOf(e.slice(s+1))>-1?(r=n[e]).fileName=e:(n[e+".dbf"]&&(i=u(n[e+".dbf"],n[e+".cpg"])),(r=f.combine([o(n[e+".shp"],n[e+".prj"]),i])).fileName=e),r}));return 1===l.length?l[0]:l},f.getShapefile=function(e,t){return"string"==typeof e?".zip"===e.slice(-4).toLowerCase()?function(e,t){return a(e).then((function(e){return f.parseZip(e,t)}))}(e,t):l.all([l.all([a(e+".shp"),a(e+".prj")]).then((function(e){return o(e[0],!!e[1]&&i(e[1]))})),l.all([a(e+".dbf"),a(e+".cpg")]).then((function(e){return u(e[0],e[1])}))]).then(f.combine):new l((function(t){t(f.parseZip(e))}))},f.parseShp=function(e,t){return e=c(e),n.isBuffer(t)&&(t=t.toString()),"string"==typeof t?(t=i(t),o(e,t)):o(e)},f.parseDbf=function(e,t){return e=c(e),u(e,t)},e.exports=f},876415:e=>{"use strict";function t(e,t){return!function(e){for(var t,r,n=0,i=1,s=e.length;i0}(t)&&e.length?e[e.length-1].push(t):e.push([t]),e}n.prototype.parsePoint=function(e){return{type:"Point",coordinates:this.parseCoord(e,0)}},n.prototype.parseZPoint=function(e){var t=this.parsePoint(e);return t.coordinates.push(this.parseCoord(e,16)),t},n.prototype.parsePointArray=function(e,t,r){for(var n=[],i=0;i20&&(n-=20),!(n in r))throw new Error("I don't know that shp type");this.parseFunc=this[r[n]],this.parseCoord=(t=e)?function(e,r){return t.inverse([e.readDoubleLE(r),e.readDoubleLE(r+8)])}:function(e,t){return[e.readDoubleLE(t),e.readDoubleLE(t+8)]}},n.prototype.getShpCode=function(){return this.parseHeader().shpCode},n.prototype.parseHeader=function(){var e=this.buffer.slice(0,100);return{length:e.readInt32BE(24),version:e.readInt32LE(28),shpCode:e.readInt32LE(32),bbox:[e.readDoubleLE(36),e.readDoubleLE(44),e.readDoubleLE(52),e.readDoubleLE(52)]}},n.prototype.getRows=function(){for(var e,t=100,r=this.buffer.byteLength,n=[];t{"use strict";var n=r(324938);e.exports=function(e){var t=new n(e).file(/.+/),r={};return t.forEach((function(e){"shp"===e.name.slice(-3).toLowerCase()||"dbf"===e.name.slice(-3).toLowerCase()?r[e.name]=e.asNodeBuffer():r[e.name]=e.asText()})),r}},683386:(e,t,r)=>{"use strict";var n=r(214352);function i(e){if(e){this.data=e,this.length=this.data.length,this.index=0,this.zero=0;for(var t=0;t=0;--s)if(this.data[s]===t&&this.data[s+1]===r&&this.data[s+2]===n&&this.data[s+3]===i)return s-this.zero;return-1},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},359307:(e,t)=>{"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.encode=function(e,t){for(var n,i,s,a,o,u,l,h="",c=0;c>2,o=(3&n)<<4|(i=e.charCodeAt(c++))>>4,u=(15&i)<<2|(s=e.charCodeAt(c++))>>6,l=63&s,isNaN(i)?u=l=64:isNaN(s)&&(l=64),h=h+r.charAt(a)+r.charAt(o)+r.charAt(u)+r.charAt(l);return h},t.decode=function(e,t){var n,i,s,a,o,u,l="",h=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");h>4,i=(15&a)<<4|(o=r.indexOf(e.charAt(h++)))>>2,s=(3&o)<<6|(u=r.indexOf(e.charAt(h++))),l+=String.fromCharCode(n),64!=o&&(l+=String.fromCharCode(i)),64!=u&&(l+=String.fromCharCode(s));return l}},722117:e=>{"use strict";function t(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}t.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},e.exports=t},147404:(e,t,r)=>{"use strict";t.STORE={magic:"\0\0",compress:function(e,t){return e},uncompress:function(e){return e},compressInputType:null,uncompressInputType:null},t.DEFLATE=r(143484)},314073:(e,t,r)=>{"use strict";var n=r(374570),i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];e.exports=function(e,t){if(void 0===e||!e.length)return 0;var r="string"!==n.getTypeOf(e);void 0===t&&(t=0);var s=0;t^=-1;for(var a=0,o=e.length;a>>8^i[255&(t^s)];return-1^t}},214352:(e,t,r)=>{"use strict";var n=r(374570);function i(e){this.data=null,this.length=0,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1)}},e.exports=i},734977:(e,t)=>{"use strict";t.base64=!1,t.binary=!1,t.dir=!1,t.createFolders=!1,t.date=null,t.compression=null,t.compressionOptions=null,t.comment=null,t.unixPermissions=null,t.dosPermissions=null},311455:(e,t,r)=>{"use strict";var n=r(374570);t.string2binary=function(e){return n.string2binary(e)},t.string2Uint8Array=function(e){return n.transformTo("uint8array",e)},t.uint8Array2String=function(e){return n.transformTo("string",e)},t.string2Blob=function(e){var t=n.transformTo("arraybuffer",e);return n.arrayBuffer2Blob(t)},t.arrayBuffer2Blob=function(e){return n.arrayBuffer2Blob(e)},t.transformTo=function(e,t){return n.transformTo(e,t)},t.getTypeOf=function(e){return n.getTypeOf(e)},t.checkSupport=function(e){return n.checkSupport(e)},t.MAX_VALUE_16BITS=n.MAX_VALUE_16BITS,t.MAX_VALUE_32BITS=n.MAX_VALUE_32BITS,t.pretty=function(e){return n.pretty(e)},t.findCompression=function(e){return n.findCompression(e)},t.isRegExp=function(e){return n.isRegExp(e)}},143484:(e,t,r)=>{"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=r(999591);t.uncompressInputType=n?"uint8array":"array",t.compressInputType=n?"uint8array":"array",t.magic="\b\0",t.compress=function(e,t){return i.deflateRaw(e,{level:t.level||-1})},t.uncompress=function(e){return i.inflateRaw(e)}},324938:(e,t,r)=>{"use strict";var n=r(359307);function i(e,t){if(!(this instanceof i))return new i(e,t);this.files={},this.comment=null,this.root="",e&&this.load(e,t),this.clone=function(){var e=new i;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}i.prototype=r(567659),i.prototype.load=r(136072),i.support=r(513752),i.defaults=r(734977),i.utils=r(311455),i.base64={encode:function(e){return n.encode(e)},decode:function(e){return n.decode(e)}},i.compressions=r(147404),e.exports=i},136072:(e,t,r)=>{"use strict";var n=r(359307),i=r(273097),s=r(374570),a=r(676727);e.exports=function(e,t){var r,o,u,l;for((t=s.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode})).base64&&(e=n.decode(e)),r=(o=new a(e,t)).files,u=0;u{"use strict";var n=r(348764).Buffer;e.exports=function(e,t){return new n(e,t)},e.exports.test=function(e){return n.isBuffer(e)}},511830:(e,t,r)=>{"use strict";var n=r(17677);function i(e){this.data=e,this.length=this.data.length,this.index=0,this.zero=0}i.prototype=new n,i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},567659:(e,t,r)=>{"use strict";var n=r(513752),i=r(374570),s=r(314073),a=r(839407),o=r(734977),u=r(359307),l=r(147404),h=r(722117),c=r(943348),f=r(273097),d=r(857568),p=r(188367),m=function(e){if(e._data instanceof h&&(e._data=e._data.getContent(),e.options.binary=!0,e.options.base64=!1,"uint8array"===i.getTypeOf(e._data))){var t=e._data;e._data=new Uint8Array(t.length),0!==t.length&&e._data.set(t,0)}return e._data},g=function(e){var t=m(e);return"string"===i.getTypeOf(t)?!e.options.binary&&n.nodebuffer?c(t,"utf-8"):e.asBinary():t},_=function(e){var t=m(this);return null==t?"":(this.options.base64&&(t=u.decode(t)),t=e&&this.options.binary?E.utf8decode(t):i.transformTo("string",t),e||this.options.binary||(t=i.transformTo("string",E.utf8encode(t))),t)},y=function(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this.options=r,this._initialMetadata={dir:r.dir,date:r.date}};y.prototype={asText:function(){return _.call(this,!0)},asBinary:function(){return _.call(this,!1)},asNodeBuffer:function(){var e=g(this);return i.transformTo("nodebuffer",e)},asUint8Array:function(){var e=g(this);return i.transformTo("uint8array",e)},asArrayBuffer:function(){return this.asUint8Array().buffer}};var v=function(e,t){var r,n="";for(r=0;r>>=8;return n},b=function(e,t,r){var n,s=i.getTypeOf(t);if("string"==typeof(r=function(e){return!0!==(e=e||{}).base64||null!==e.binary&&void 0!==e.binary||(e.binary=!0),(e=i.extend(e,o)).date=e.date||new Date,null!==e.compression&&(e.compression=e.compression.toUpperCase()),e}(r)).unixPermissions&&(r.unixPermissions=parseInt(r.unixPermissions,8)),r.unixPermissions&&16384&r.unixPermissions&&(r.dir=!0),r.dosPermissions&&16&r.dosPermissions&&(r.dir=!0),r.dir&&(e=x(e)),r.createFolders&&(n=w(e))&&k.call(this,n,!0),r.dir||null==t)r.base64=!1,r.binary=!1,t=null,s=null;else if("string"===s)r.binary&&!r.base64&&!0!==r.optimizedBinaryString&&(t=i.string2binary(t));else{if(r.base64=!1,r.binary=!0,!(s||t instanceof h))throw new Error("The data of '"+e+"' is in an unsupported format !");"arraybuffer"===s&&(t=i.transformTo("uint8array",t))}var a=new y(e,t,r);return this.files[e]=a,a},w=function(e){"/"==e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},x=function(e){return"/"!=e.slice(-1)&&(e+="/"),e},k=function(e,t){return t=void 0!==t&&t,e=x(e),this.files[e]||b.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},C=function(e,t,r){var n,a=new h;return e._data instanceof h?(a.uncompressedSize=e._data.uncompressedSize,a.crc32=e._data.crc32,0===a.uncompressedSize||e.dir?(t=l.STORE,a.compressedContent="",a.crc32=0):e._data.compressionMethod===t.magic?a.compressedContent=e._data.getCompressedContent():(n=e._data.getContent(),a.compressedContent=t.compress(i.transformTo(t.compressInputType,n),r))):((n=g(e))&&0!==n.length&&!e.dir||(t=l.STORE,n=""),a.uncompressedSize=n.length,a.crc32=s(n),a.compressedContent=t.compress(i.transformTo(t.compressInputType,n),r)),a.compressedSize=a.compressedContent.length,a.compressionMethod=t.magic,a},S=function(e,t,r,n,o,u){r.compressedContent;var l,h,c,d,p=u!==f.utf8encode,m=i.transformTo("string",u(t.name)),g=i.transformTo("string",f.utf8encode(t.name)),_=t.comment||"",y=i.transformTo("string",u(_)),b=i.transformTo("string",f.utf8encode(_)),w=g.length!==t.name.length,x=b.length!==_.length,k=t.options,C="",S="",E="";c=t._initialMetadata.dir!==t.dir?t.dir:k.dir,d=t._initialMetadata.date!==t.date?t.date:k.date;var A,I,O=0,T=0;c&&(O|=16),"UNIX"===o?(T=798,O|=(I=A=t.unixPermissions,A||(I=c?16893:33204),(65535&I)<<16)):(T=20,O|=63&(t.dosPermissions||0)),l=d.getHours(),l<<=6,l|=d.getMinutes(),l<<=5,l|=d.getSeconds()/2,h=d.getFullYear()-1980,h<<=4,h|=d.getMonth()+1,h<<=5,h|=d.getDate(),w&&(S=v(1,1)+v(s(m),4)+g,C+="up"+v(S.length,2)+S),x&&(E=v(1,1)+v(this.crc32(y),4)+b,C+="uc"+v(E.length,2)+E);var z="";return z+="\n\0",z+=p||!w&&!x?"\0\0":"\0\b",z+=r.compressionMethod,z+=v(l,2),z+=v(h,2),z+=v(r.crc32,4),z+=v(r.compressedSize,4),z+=v(r.uncompressedSize,4),z+=v(m.length,2),z+=v(C.length,2),{fileRecord:a.LOCAL_FILE_HEADER+z+m+C,dirRecord:a.CENTRAL_FILE_HEADER+v(T,2)+z+v(y.length,2)+"\0\0\0\0"+v(O,4)+v(n,4)+m+C+y,compressedObject:r}},E={load:function(e,t){throw new Error("Load method is not defined. Is the file jszip-load.js included ?")},filter:function(e){var t,r,n,s,a=[];for(t in this.files)this.files.hasOwnProperty(t)&&(n=this.files[t],s=new y(n.name,n._data,i.extend(n.options)),r=t.slice(this.root.length,t.length),t.slice(0,this.root.length)===this.root&&e(r,s)&&a.push(s));return a},file:function(e,t,r){if(1===arguments.length){if(i.isRegExp(e)){var n=e;return this.filter((function(e,t){return!t.dir&&n.test(e)}))}return this.filter((function(t,r){return!r.dir&&t===e}))[0]||null}return e=this.root+e,b.call(this,e,t,r),this},folder:function(e){if(!e)return this;if(i.isRegExp(e))return this.filter((function(t,r){return r.dir&&e.test(t)}));var t=this.root+e,r=k.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!=e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter((function(t,r){return r.name.slice(0,e.length)===e})),n=0;n{"use strict";t.LOCAL_FILE_HEADER="PK",t.CENTRAL_FILE_HEADER="PK",t.CENTRAL_DIRECTORY_END="PK",t.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",t.ZIP64_CENTRAL_DIRECTORY_END="PK",t.DATA_DESCRIPTOR="PK\b"},992804:(e,t,r)=>{"use strict";var n=r(214352),i=r(374570);function s(e,t){this.data=e,t||(this.data=i.string2binary(this.data)),this.length=this.data.length,this.index=0,this.zero=0}s.prototype=new n,s.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},s.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},s.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=s},857568:(e,t,r)=>{"use strict";var n=r(374570),i=function(){this.data=[]};i.prototype={append:function(e){e=n.transformTo("string",e),this.data.push(e)},finalize:function(){return this.data.join("")}},e.exports=i},513752:(e,t,r)=>{"use strict";var n=r(348764).Buffer;if(t.base64=!0,t.array=!0,t.string=!0,t.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,t.nodebuffer=void 0!==n,t.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)t.blob=!1;else{var i=new ArrayBuffer(0);try{t.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var s=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder);s.append(i),t.blob=0===s.getBlob("application/zip").size}catch(e){t.blob=!1}}}},17677:(e,t,r)=>{"use strict";var n=r(683386);function i(e){e&&(this.data=e,this.length=this.data.length,this.index=0,this.zero=0)}i.prototype=new n,i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},188367:(e,t,r)=>{"use strict";var n=r(374570),i=function(e){this.data=new Uint8Array(e),this.index=0};i.prototype={append:function(e){0!==e.length&&(e=n.transformTo("uint8array",e),this.data.set(e,this.index),this.index+=e.length)},finalize:function(){return this.data}},e.exports=i},273097:(e,t,r)=>{"use strict";for(var n=r(374570),i=r(513752),s=r(943348),a=new Array(256),o=0;o<256;o++)a[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;a[254]=a[254]=1;var u=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;r>=0&&128==(192&e[r]);)r--;return r<0||0===r?t:r+a[e[r]]>t?r:t},l=function(e){var t,r,i,s,o=e.length,u=new Array(2*o);for(r=0,t=0;t4)u[r++]=65533,t+=s-1;else{for(i&=2===s?31:3===s?15:7;s>1&&t1?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return u.length!==r&&(u.subarray?u=u.subarray(0,r):u.length=r),n.applyFromCharCode(u)};t.utf8encode=function(e){return i.nodebuffer?s(e,"utf-8"):function(e){var t,r,n,s,a,o=e.length,u=0;for(s=0;s>>6,t[a++]=128|63&r):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|63&r):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|63&r);return t}(e)},t.utf8decode=function(e){if(i.nodebuffer)return n.transformTo("nodebuffer",e).toString("utf-8");for(var t=[],r=0,s=(e=n.transformTo(i.uint8array?"uint8array":"array",e)).length;r{"use strict";var n=r(513752),i=r(147404),s=r(943348);function a(e){return e}function o(e,t){for(var r=0;r1;)try{"array"===a||"nodebuffer"===a?n.push(String.fromCharCode.apply(null,e.slice(o,Math.min(o+r,i)))):n.push(String.fromCharCode.apply(null,e.subarray(o,Math.min(o+r,i)))),o+=r}catch(e){r=Math.floor(r/2)}return n.join("")}function l(e,t){for(var r=0;r{"use strict";var n=r(992804),i=r(511830),s=r(17677),a=r(683386),o=r(374570),u=r(839407),l=r(223226),h=r(513752);function c(e,t){this.files=[],this.loadOptions=t,e&&this.load(e)}r(567659),c.prototype={checkSignature:function(e){var t=this.reader.readString(4);if(t!==e)throw new Error("Corrupted zip or bug : unexpected signature ("+o.pretty(t)+", expected "+o.pretty(e)+")")},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=h.uint8array?"uint8array":"array",r=o.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.versionMadeBy=this.reader.readString(2),this.versionNeeded=this.reader.readInt(2),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,n=this.zip64EndOfCentralSize-44;01)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e0)this.isSignature(t,u.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){var t=o.getTypeOf(e);if(o.checkSupport(t),"string"!==t||h.uint8array)if("nodebuffer"===t)this.reader=new i(e);else if(h.uint8array)this.reader=new s(o.transformTo("uint8array",e));else{if(!h.array)throw new Error("Unexpected error: unsupported type '"+t+"'");this.reader=new a(o.transformTo("array",e))}else this.reader=new n(e,this.loadOptions.optimizedBinaryString)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=c},223226:(e,t,r)=>{"use strict";var n=r(992804),i=r(374570),s=r(722117),a=r(567659),o=r(513752);function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},prepareCompressedContent:function(e,t,r){return function(){var n=e.index;e.setIndex(t);var i=e.readData(r);return e.setIndex(n),i}},prepareContent:function(e,t,r,n,s){return function(){var e=i.transformTo(n.uncompressInputType,this.getCompressedContent()),t=n.uncompress(e);if(t.length!==s)throw new Error("Bug : uncompressed data size mismatch");return t}},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1==this.compressedSize||-1==this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize == -1 || uncompressedSize == -1)");if(null===(t=i.findCompression(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");if(this.decompressed=new s,this.decompressed.compressedSize=this.compressedSize,this.decompressed.uncompressedSize=this.uncompressedSize,this.decompressed.crc32=this.crc32,this.decompressed.compressionMethod=this.compressionMethod,this.decompressed.getCompressedContent=this.prepareCompressedContent(e,e.index,this.compressedSize,t),this.decompressed.getContent=this.prepareContent(e,e.index,this.compressedSize,t,this.uncompressedSize),this.loadOptions.checkCRC32&&(this.decompressed=i.transformTo("string",this.decompressed.getContent()),a.crc32(this.decompressed)!==this.crc32))throw new Error("Corrupted zip : CRC32 mismatch")},readCentralPart:function(e){if(this.versionMadeBy=e.readInt(2),this.versionNeeded=e.readInt(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4),this.fileNameLength=e.readInt(2),this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");this.fileName=e.readData(this.fileNameLength),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===e&&(this.dosPermissions=63&this.externalFileAttributes),3===e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=new n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index;for(this.extraFields=this.extraFields||{};e.index{e.exports=r(859141)},859141:function(e,t,r){!function(t){"use strict";function n(e,t,r){return t<=e&&e<=r}e.exports&&!t["encoding-indexes"]&&r(272810);var i=Math.floor;function s(e){if(void 0===e)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function a(e){return 0<=e&&e<=127}var o=a,u=-1;function l(e){this.tokens=[].slice.call(e),this.tokens.reverse()}l.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.pop():u},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.pop());else this.tokens.push(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.shift());else this.tokens.unshift(e)}};var h=-1;function c(e,t){if(e)throw TypeError("Decoder error");return t||65533}function f(e){throw TypeError("The code point "+e+" could not be encoded.")}function d(e){return e=String(e).trim().toLowerCase(),Object.prototype.hasOwnProperty.call(m,e)?m[e]:null}var p=[{encodings:[{labels:["unicode-1-1-utf-8","utf-8","utf8"],name:"UTF-8"}],heading:"The Encoding"},{encodings:[{labels:["866","cp866","csibm866","ibm866"],name:"IBM866"},{labels:["csisolatin2","iso-8859-2","iso-ir-101","iso8859-2","iso88592","iso_8859-2","iso_8859-2:1987","l2","latin2"],name:"ISO-8859-2"},{labels:["csisolatin3","iso-8859-3","iso-ir-109","iso8859-3","iso88593","iso_8859-3","iso_8859-3:1988","l3","latin3"],name:"ISO-8859-3"},{labels:["csisolatin4","iso-8859-4","iso-ir-110","iso8859-4","iso88594","iso_8859-4","iso_8859-4:1988","l4","latin4"],name:"ISO-8859-4"},{labels:["csisolatincyrillic","cyrillic","iso-8859-5","iso-ir-144","iso8859-5","iso88595","iso_8859-5","iso_8859-5:1988"],name:"ISO-8859-5"},{labels:["arabic","asmo-708","csiso88596e","csiso88596i","csisolatinarabic","ecma-114","iso-8859-6","iso-8859-6-e","iso-8859-6-i","iso-ir-127","iso8859-6","iso88596","iso_8859-6","iso_8859-6:1987"],name:"ISO-8859-6"},{labels:["csisolatingreek","ecma-118","elot_928","greek","greek8","iso-8859-7","iso-ir-126","iso8859-7","iso88597","iso_8859-7","iso_8859-7:1987","sun_eu_greek"],name:"ISO-8859-7"},{labels:["csiso88598e","csisolatinhebrew","hebrew","iso-8859-8","iso-8859-8-e","iso-ir-138","iso8859-8","iso88598","iso_8859-8","iso_8859-8:1988","visual"],name:"ISO-8859-8"},{labels:["csiso88598i","iso-8859-8-i","logical"],name:"ISO-8859-8-I"},{labels:["csisolatin6","iso-8859-10","iso-ir-157","iso8859-10","iso885910","l6","latin6"],name:"ISO-8859-10"},{labels:["iso-8859-13","iso8859-13","iso885913"],name:"ISO-8859-13"},{labels:["iso-8859-14","iso8859-14","iso885914"],name:"ISO-8859-14"},{labels:["csisolatin9","iso-8859-15","iso8859-15","iso885915","iso_8859-15","l9"],name:"ISO-8859-15"},{labels:["iso-8859-16"],name:"ISO-8859-16"},{labels:["cskoi8r","koi","koi8","koi8-r","koi8_r"],name:"KOI8-R"},{labels:["koi8-ru","koi8-u"],name:"KOI8-U"},{labels:["csmacintosh","mac","macintosh","x-mac-roman"],name:"macintosh"},{labels:["dos-874","iso-8859-11","iso8859-11","iso885911","tis-620","windows-874"],name:"windows-874"},{labels:["cp1250","windows-1250","x-cp1250"],name:"windows-1250"},{labels:["cp1251","windows-1251","x-cp1251"],name:"windows-1251"},{labels:["ansi_x3.4-1968","ascii","cp1252","cp819","csisolatin1","ibm819","iso-8859-1","iso-ir-100","iso8859-1","iso88591","iso_8859-1","iso_8859-1:1987","l1","latin1","us-ascii","windows-1252","x-cp1252"],name:"windows-1252"},{labels:["cp1253","windows-1253","x-cp1253"],name:"windows-1253"},{labels:["cp1254","csisolatin5","iso-8859-9","iso-ir-148","iso8859-9","iso88599","iso_8859-9","iso_8859-9:1989","l5","latin5","windows-1254","x-cp1254"],name:"windows-1254"},{labels:["cp1255","windows-1255","x-cp1255"],name:"windows-1255"},{labels:["cp1256","windows-1256","x-cp1256"],name:"windows-1256"},{labels:["cp1257","windows-1257","x-cp1257"],name:"windows-1257"},{labels:["cp1258","windows-1258","x-cp1258"],name:"windows-1258"},{labels:["x-mac-cyrillic","x-mac-ukrainian"],name:"x-mac-cyrillic"}],heading:"Legacy single-byte encodings"},{encodings:[{labels:["chinese","csgb2312","csiso58gb231280","gb2312","gb_2312","gb_2312-80","gbk","iso-ir-58","x-gbk"],name:"GBK"},{labels:["gb18030"],name:"gb18030"}],heading:"Legacy multi-byte Chinese (simplified) encodings"},{encodings:[{labels:["big5","big5-hkscs","cn-big5","csbig5","x-x-big5"],name:"Big5"}],heading:"Legacy multi-byte Chinese (traditional) encodings"},{encodings:[{labels:["cseucpkdfmtjapanese","euc-jp","x-euc-jp"],name:"EUC-JP"},{labels:["csiso2022jp","iso-2022-jp"],name:"ISO-2022-JP"},{labels:["csshiftjis","ms932","ms_kanji","shift-jis","shift_jis","sjis","windows-31j","x-sjis"],name:"Shift_JIS"}],heading:"Legacy multi-byte Japanese encodings"},{encodings:[{labels:["cseuckr","csksc56011987","euc-kr","iso-ir-149","korean","ks_c_5601-1987","ks_c_5601-1989","ksc5601","ksc_5601","windows-949"],name:"EUC-KR"}],heading:"Legacy multi-byte Korean encodings"},{encodings:[{labels:["csiso2022kr","hz-gb-2312","iso-2022-cn","iso-2022-cn-ext","iso-2022-kr"],name:"replacement"},{labels:["utf-16be"],name:"UTF-16BE"},{labels:["utf-16","utf-16le"],name:"UTF-16LE"},{labels:["x-user-defined"],name:"x-user-defined"}],heading:"Legacy miscellaneous encodings"}],m={};p.forEach((function(e){e.encodings.forEach((function(e){e.labels.forEach((function(t){m[t]=e}))}))}));var g,_,y={},v={};function b(e,t){return t&&t[e]||null}function w(e,t){var r=t.indexOf(e);return-1===r?null:r}function x(e){if(!("encoding-indexes"in t))throw Error("Indexes missing. Did you forget to include encoding-indexes.js first?");return t["encoding-indexes"][e]}var k="utf-8";function C(e,t){if(!(this instanceof C))throw TypeError("Called as a function. Did you forget 'new'?");e=void 0!==e?String(e):k,t=s(t),this._encoding=null,this._decoder=null,this._ignoreBOM=!1,this._BOMseen=!1,this._error_mode="replacement",this._do_not_flush=!1;var r=d(e);if(null===r||"replacement"===r.name)throw RangeError("Unknown encoding: "+e);if(!v[r.name])throw Error("Decoder not present. Did you forget to include encoding-indexes.js first?");var n=this;return n._encoding=r,Boolean(t.fatal)&&(n._error_mode="fatal"),Boolean(t.ignoreBOM)&&(n._ignoreBOM=!0),Object.defineProperty||(this.encoding=n._encoding.name.toLowerCase(),this.fatal="fatal"===n._error_mode,this.ignoreBOM=n._ignoreBOM),n}function S(e,r){if(!(this instanceof S))throw TypeError("Called as a function. Did you forget 'new'?");r=s(r),this._encoding=null,this._encoder=null,this._do_not_flush=!1,this._fatal=Boolean(r.fatal)?"fatal":"replacement";var n=this;if(Boolean(r.NONSTANDARD_allowLegacyEncoding)){var i=d(e=void 0!==e?String(e):k);if(null===i||"replacement"===i.name)throw RangeError("Unknown encoding: "+e);if(!y[i.name])throw Error("Encoder not present. Did you forget to include encoding-indexes.js first?");n._encoding=i}else n._encoding=d("utf-8"),void 0!==e&&"console"in t&&console.warn("TextEncoder constructor called with encoding label, which is ignored.");return Object.defineProperty||(this.encoding=n._encoding.name.toLowerCase()),n}function E(e){var t=e.fatal,r=0,i=0,s=0,a=128,o=191;this.handler=function(e,l){if(l===u&&0!==s)return s=0,c(t);if(l===u)return h;if(0===s){if(n(l,0,127))return l;if(n(l,194,223))s=1,r=31&l;else if(n(l,224,239))224===l&&(a=160),237===l&&(o=159),s=2,r=15&l;else{if(!n(l,240,244))return c(t);240===l&&(a=144),244===l&&(o=143),s=3,r=7&l}return null}if(!n(l,a,o))return r=s=i=0,a=128,o=191,e.prepend(l),c(t);if(a=128,o=191,r=r<<6|63&l,(i+=1)!==s)return null;var f=r;return r=s=i=0,f}}function A(e){e.fatal,this.handler=function(e,t){if(t===u)return h;if(o(t))return t;var r,i;n(t,128,2047)?(r=1,i=192):n(t,2048,65535)?(r=2,i=224):n(t,65536,1114111)&&(r=3,i=240);for(var s=[(t>>6*r)+i];r>0;){var a=t>>6*(r-1);s.push(128|63&a),r-=1}return s}}function I(e,t){var r=t.fatal;this.handler=function(t,n){if(n===u)return h;if(a(n))return n;var i=e[n-128];return null===i?c(r):i}}function O(e,t){t.fatal,this.handler=function(t,r){if(r===u)return h;if(o(r))return r;var n=w(r,e);return null===n&&f(r),n+128}}function T(e){var t=e.fatal,r=0,i=0,s=0;this.handler=function(e,o){if(o===u&&0===r&&0===i&&0===s)return h;var l;if(o!==u||0===r&&0===i&&0===s||(r=0,i=0,s=0,c(t)),0!==s){l=null,n(o,48,57)&&(l=function(e){if(e>39419&&e<189e3||e>1237575)return null;if(7457===e)return 59335;var t,r=0,n=0,i=x("gb18030-ranges");for(t=0;t>8,n=255&e;return t?[r,n]:[n,r]}function H(e,t){var r=t.fatal,i=null,s=null;this.handler=function(t,a){if(a===u&&(null!==i||null!==s))return c(r);if(a===u&&null===i&&null===s)return h;if(null===i)return i=a,null;var o;if(o=e?(i<<8)+a:(a<<8)+i,i=null,null!==s){var l=s;return s=null,n(o,56320,57343)?65536+1024*(l-55296)+(o-56320):(t.prepend(Z(o,e)),c(r))}return n(o,55296,56319)?(s=o,null):n(o,56320,57343)?c(r):o}}function W(e,t){t.fatal,this.handler=function(t,r){if(r===u)return h;if(n(r,0,65535))return Z(r,e);var i=Z(55296+(r-65536>>10),e),s=Z(56320+(r-65536&1023),e);return i.concat(s)}}function X(e){e.fatal,this.handler=function(e,t){return t===u?h:a(t)?t:63360+t-128}}function K(e){e.fatal,this.handler=function(e,t){return t===u?h:o(t)?t:n(t,63360,63487)?t-63360+128:f(t)}}Object.defineProperty&&(Object.defineProperty(C.prototype,"encoding",{get:function(){return this._encoding.name.toLowerCase()}}),Object.defineProperty(C.prototype,"fatal",{get:function(){return"fatal"===this._error_mode}}),Object.defineProperty(C.prototype,"ignoreBOM",{get:function(){return this._ignoreBOM}})),C.prototype.decode=function(e,t){var r;r="object"==typeof e&&e instanceof ArrayBuffer?new Uint8Array(e):"object"==typeof e&&"buffer"in e&&e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0),t=s(t),this._do_not_flush||(this._decoder=v[this._encoding.name]({fatal:"fatal"===this._error_mode}),this._BOMseen=!1),this._do_not_flush=Boolean(t.stream);for(var n,i=new l(r),a=[];;){var o=i.read();if(o===u)break;if((n=this._decoder.handler(i,o))===h)break;null!==n&&(Array.isArray(n)?a.push.apply(a,n):a.push(n))}if(!this._do_not_flush){do{if((n=this._decoder.handler(i,i.read()))===h)break;null!==n&&(Array.isArray(n)?a.push.apply(a,n):a.push(n))}while(!i.endOfStream());this._decoder=null}return function(e){var t,r;return t=["UTF-8","UTF-16LE","UTF-16BE"],r=this._encoding.name,-1===t.indexOf(r)||this._ignoreBOM||this._BOMseen||(e.length>0&&65279===e[0]?(this._BOMseen=!0,e.shift()):e.length>0&&(this._BOMseen=!0)),function(e){for(var t="",r=0;r>10),56320+(1023&n)))}return t}(e)}.call(this,a)},Object.defineProperty&&Object.defineProperty(S.prototype,"encoding",{get:function(){return this._encoding.name.toLowerCase()}}),S.prototype.encode=function(e,t){e=void 0===e?"":String(e),t=s(t),this._do_not_flush||(this._encoder=y[this._encoding.name]({fatal:"fatal"===this._fatal})),this._do_not_flush=Boolean(t.stream);for(var r,n=new l(function(e){for(var t=String(e),r=t.length,n=0,i=[];n57343)i.push(s);else if(56320<=s&&s<=57343)i.push(65533);else if(55296<=s&&s<=56319)if(n===r-1)i.push(65533);else{var a=t.charCodeAt(n+1);if(56320<=a&&a<=57343){var o=1023&s,u=1023&a;i.push(65536+(o<<10)+u),n+=1}else i.push(65533)}n+=1}return i}(e)),i=[];;){var a=n.read();if(a===u)break;if((r=this._encoder.handler(n,a))===h)break;Array.isArray(r)?i.push.apply(i,r):i.push(r)}if(!this._do_not_flush){for(;(r=this._encoder.handler(n,n.read()))!==h;)Array.isArray(r)?i.push.apply(i,r):i.push(r);this._encoder=null}return new Uint8Array(i)},y["UTF-8"]=function(e){return new A(e)},v["UTF-8"]=function(e){return new E(e)},"encoding-indexes"in t&&p.forEach((function(e){"Legacy single-byte encodings"===e.heading&&e.encodings.forEach((function(e){var t=e.name,r=x(t.toLowerCase());v[t]=function(e){return new I(r,e)},y[t]=function(e){return new O(r,e)}}))})),v.GBK=function(e){return new T(e)},y.GBK=function(e){return new z(e,!0)},y.gb18030=function(e){return new z(e)},v.gb18030=function(e){return new T(e)},y.Big5=function(e){return new L(e)},v.Big5=function(e){return new B(e)},y["EUC-JP"]=function(e){return new D(e)},v["EUC-JP"]=function(e){return new R(e)},y["ISO-2022-JP"]=function(e){return new P(e)},v["ISO-2022-JP"]=function(e){return new F(e)},y.Shift_JIS=function(e){return new U(e)},v.Shift_JIS=function(e){return new N(e)},y["EUC-KR"]=function(e){return new M(e)},v["EUC-KR"]=function(e){return new j(e)},y["UTF-16BE"]=function(e){return new W(!0,e)},v["UTF-16BE"]=function(e){return new H(!0,e)},y["UTF-16LE"]=function(e){return new W(!1,e)},v["UTF-16LE"]=function(e){return new H(!1,e)},y["x-user-defined"]=function(e){return new K(e)},v["x-user-defined"]=function(e){return new X(e)},t.TextEncoder||(t.TextEncoder=S),t.TextDecoder||(t.TextDecoder=C),e.exports&&(e.exports={TextEncoder:t.TextEncoder,TextDecoder:t.TextDecoder,EncodingIndexes:t["encoding-indexes"]})}(this||{})}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/16309.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt b/geonode_mapstore_client/static/mapstore/dist/js/16309.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/16309.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt rename to geonode_mapstore_client/static/mapstore/dist/js/16309.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt diff --git a/geonode_mapstore_client/static/mapstore/dist/js/16375.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/16375.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/16375.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/16375.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/16410.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/16410.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/16410.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/16410.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/16425.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/16425.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/16425.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/16425.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/16684.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/16684.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/16684.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/16684.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/16841.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/16841.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/16841.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/16841.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/17009.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/17009.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/17009.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/17009.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/1706.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/1706.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/1706.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/1706.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/17208.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/17208.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/17208.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/17208.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/17579.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/17579.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/17579.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/17579.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/17581.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/17581.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/17581.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/17581.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/17704.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/17704.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/17704.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/17704.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/17775.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/17775.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/17775.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/17775.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/17809.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/17809.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/17809.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/17809.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/17919.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/17919.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/17919.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/17919.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18034.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/18034.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/18034.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/18034.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18132.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/18132.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/18132.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/18132.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18274.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/18274.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/18274.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/18274.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18321.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/18321.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/18321.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/18321.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18353.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/18353.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/18353.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/18353.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18397.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/18397.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/18397.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/18397.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18414.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/18414.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/18414.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/18414.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18453.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/18453.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/18453.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/18453.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18672.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/18672.74fb1733f89b05e9e60d.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/js/18672.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/18672.74fb1733f89b05e9e60d.chunk.js index 6137ac9597..62d2c1e65b 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/18672.b32b32d2650f7cc681c9.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/18672.74fb1733f89b05e9e60d.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 18672.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt */ +/*! For license information please see 18672.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[18672],{665045:(t,n,r)=>{"use strict";r.d(n,{Z:()=>o});var e=r(949179);const o=function(t){function n(n){var r="Assertion failed. See https://openlayers.org/en/"+("latest"===e.q4?e.q4:"v"+e.q4.split("-")[0])+"/doc/errors/#"+n+" for details.";t.call(this,r),this.code=n,this.name="AssertionError",this.message=r}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n}(Error)},438906:(t,n,r)=>{"use strict";r.d(n,{h:()=>o});var e=r(665045);function o(t,n){if(!t)throw new e.Z(n)}},421915:(t,n,r)=>{"use strict";r.d(n,{hI:()=>u,f3:()=>a,d9:()=>c,qf:()=>s,b8:()=>f,r4:()=>l,jE:()=>h,pX:()=>E,lJ:()=>p,T9:()=>d,YN:()=>g,HK:()=>v,ZT:()=>M,GN:()=>_,fS:()=>T,l7:()=>I,Wj:()=>O,qP:()=>P,H6:()=>S,bg:()=>R,hC:()=>N,w$:()=>x,qg:()=>y,g0:()=>w,p8:()=>L,Cr:()=>Z,Ed:()=>b,rL:()=>m,Xv:()=>U,dz:()=>C,kK:()=>W,xb:()=>H,EO:()=>Y,H9:()=>F,I7:()=>A,Ne:()=>B});var e=r(438906),o=r(851748),i=r(434178);function u(t){for(var n=[1/0,1/0,-1/0,-1/0],r=0,e=t.length;ro&&(s|=i.Z.RIGHT),cu&&(s|=i.Z.ABOVE),s===i.Z.UNKNOWN&&(s=i.Z.INTERSECTING),s}function p(){return[1/0,1/0,-1/0,-1/0]}function d(t,n,r,e,o){return o?(o[0]=t,o[1]=n,o[2]=r,o[3]=e,o):[t,n,r,e]}function g(t){return d(1/0,1/0,-1/0,-1/0,t)}function v(t,n){var r=t[0],e=t[1];return d(r,e,r,e,n)}function M(t,n){return function(t,n){for(var r=0,e=n.length;rt[2]&&(t[2]=n[2]),n[1]t[3]&&(t[3]=n[3]),t}function O(t,n){n[0]t[2]&&(t[2]=n[0]),n[1]t[3]&&(t[3]=n[1])}function P(t,n,r,e,o){for(;rn[0]?e[0]=t[0]:e[0]=n[0],t[1]>n[1]?e[1]=t[1]:e[1]=n[1],t[2]=n[0]&&t[1]<=n[3]&&t[3]>=n[1]}function H(t){return t[2]=s&&a<=l),e||!(u&i.Z.RIGHT)||o&i.Z.RIGHT||(e=(c=v-(g-l)*M)>=f&&c<=h),e||!(u&i.Z.BELOW)||o&i.Z.BELOW||(e=(a=g-(v-f)/M)>=s&&a<=l),e||!(u&i.Z.LEFT)||o&i.Z.LEFT||(e=(c=v-(g-s)*M)>=f&&c<=h)}return e}function B(t,n,r){var e=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]];return n(e,e,2),function(t,n,r){return d(Math.min.apply(null,t),Math.min.apply(null,n),Math.max.apply(null,t),Math.max.apply(null,n),r)}([e[0],e[2],e[4],e[6]],[e[1],e[3],e[5],e[7]],r)}},851748:(t,n,r)=>{"use strict";r.d(n,{Z:()=>e});const e={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"}},434178:(t,n,r)=>{"use strict";r.d(n,{Z:()=>e});const e={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},28795:(t,n,r)=>{"use strict";r.d(n,{Z:()=>e});const e={POINT:"Point",LINE_STRING:"LineString",LINEAR_RING:"LinearRing",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"}},921882:(t,n,r)=>{"use strict";function e(t,n,r){return Math.min(Math.max(t,n),r)}r.d(n,{uZ:()=>e,f9:()=>o,rU:()=>i,bI:()=>u,SV:()=>a,Ux:()=>c,Yr:()=>s,$W:()=>f,t7:()=>l});var o="cosh"in Math?Math.cosh:function(t){var n=Math.exp(t);return(n+1/n)/2};function i(t,n,r,e,o,i){var a=o-r,c=i-e;if(0!==a||0!==c){var s=((t-r)*a+(n-e)*c)/(a*a+c*c);s>1?(r=o,e=i):s>0&&(r+=a*s,e+=c*s)}return u(t,n,r,e)}function u(t,n,r,e){var o=r-t,i=e-n;return o*o+i*i}function a(t){for(var n=t.length,r=0;ro&&(o=u,e=i)}if(0===o)return null;var a=t[e];t[e]=t[r],t[r]=a;for(var c=r+1;c=0;h--){l[h]=t[h][n]/t[h][h];for(var E=h-1;E>=0;E--)t[E][n]-=t[E][h]*l[h]}return l}function c(t){return 180*t/Math.PI}function s(t){return t*Math.PI/180}function f(t,n){var r=t%n;return r*n<0?r+n:r}function l(t,n,r){return t+r*(n-t)}},218672:(t,n,r)=>{"use strict";r.d(n,{zY:()=>L,rM:()=>x,Sx:()=>S,UQ:()=>y,OP:()=>b,U2:()=>R,_Q:()=>N,Ck:()=>U,WO:()=>m,gD:()=>G,bU:()=>Z,vs:()=>C,$A:()=>W});var e=r(870295),o=r(421915),i=r(921882),u=r(444183),a=r(440868),c=6378137,s=Math.PI*c,f=[-s,-s,s,s],l=[-180,-85,180,85],h=function(t){function n(n){t.call(this,{code:n,units:a.default.METERS,extent:f,global:!0,worldExtent:l,getPointResolution:function(t,n){return t/(0,i.f9)(n[1]/c)}})}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n}(u.Z),E=[new h("EPSG:3857"),new h("EPSG:102100"),new h("EPSG:102113"),new h("EPSG:900913"),new h("urn:ogc:def:crs:EPSG:6.18:3:3857"),new h("urn:ogc:def:crs:EPSG::3857"),new h("http://www.opengis.net/gml/srs/epsg.xml#3857")];var p,d,g,v=[-180,-90,180,90],M=6378137*Math.PI/180,_=function(t){function n(n,r){t.call(this,{code:n,units:a.default.DEGREES,extent:v,axisOrientation:r,global:!0,metersPerUnit:M,worldExtent:v})}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n}(u.Z),T=[new _("CRS:84"),new _("EPSG:4326","neu"),new _("urn:ogc:def:crs:EPSG::4326","neu"),new _("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new _("urn:ogc:def:crs:OGC:1.3:CRS84"),new _("urn:ogc:def:crs:OGC:2:84"),new _("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new _("urn:x-ogc:def:crs:EPSG:4326","neu")],I={},O=r(884110);function P(t,n,r){var e;if(void 0!==n){for(var o=0,i=t.length;o=2;--s)u[a+s]=n[a+s]}return u}}function L(t,n,r,e){var o=R(t),i=R(n);(0,O.IH)(o,i,w(r)),(0,O.IH)(i,o,w(e))}function Z(t,n){var r=C(t,void 0!==n?n:"EPSG:3857","EPSG:4326"),e=r[0];return(e<-180||e>180)&&(r[0]=(0,i.$W)(e+180,360)-180),r}function b(t,n){if(t===n)return!0;var r=t.getUnits()===n.getUnits();return(t.getCode()===n.getCode()||m(t,n)===P)&&r}function m(t,n){var r=t.getCode(),e=n.getCode(),o=(0,O.U2)(r,e);return o||(o=G),o}function U(t,n){return m(R(t),R(n))}function C(t,n,r){return U(n,r)(t,void 0,t.length)}function W(t,n,r){var e=U(n,r);return(0,o.Ne)(t,e)}x(E),x(T),p=E,d=function(t,n,r){var e=t.length,o=r>1?r:2,i=n;void 0===i&&(i=o>2?t.slice():new Array(e));for(var u=s,a=0;au?f=u:f<-u&&(f=-u),i[a+1]=f}return i},g=function(t,n,r){var e=t.length,o=r>1?r:2,i=n;void 0===i&&(i=o>2?t.slice():new Array(e));for(var u=0;u{"use strict";r.d(n,{Z:()=>i});var e=r(440868),o=function(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit};o.prototype.canWrapX=function(){return this.canWrapX_},o.prototype.getCode=function(){return this.code_},o.prototype.getExtent=function(){return this.extent_},o.prototype.getUnits=function(){return this.units_},o.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||e.METERS_PER_UNIT[this.units_]},o.prototype.getWorldExtent=function(){return this.worldExtent_},o.prototype.getAxisOrientation=function(){return this.axisOrientation_},o.prototype.isGlobal=function(){return this.global_},o.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},o.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},o.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},o.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},o.prototype.setWorldExtent=function(t){this.worldExtent_=t},o.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},o.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_};const i=o},440868:(t,n,r)=>{"use strict";r.r(n),r.d(n,{METERS_PER_UNIT:()=>o,default:()=>i});var e={DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},o={};o[e.DEGREES]=2*Math.PI*6370997/360,o[e.FEET]=.3048,o[e.METERS]=1,o[e.USFEET]=1200/3937;const i=e},884110:(t,n,r)=>{"use strict";r.d(n,{IH:()=>o,U2:()=>i});var e={};function o(t,n,r){var o=t.getCode(),i=n.getCode();o in e||(e[o]={}),e[o][i]=r}function i(t,n){var r;return t in e&&n in e[t]&&(r=e[t][n]),r}},870295:(t,n,r)=>{"use strict";r.d(n,{Sp:()=>u,bg:()=>c,cv:()=>s});var e=r(921882);if(31219!=r.j)var o=r(28795);var i=6371008.8;function u(t,n,r){var o=r||i,u=(0,e.Yr)(t[1]),a=(0,e.Yr)(n[1]),c=(a-u)/2,s=(0,e.Yr)(n[0]-t[0])/2,f=Math.sin(c)*Math.sin(c)+Math.sin(s)*Math.sin(s)*Math.cos(u)*Math.cos(a);return 2*o*Math.atan2(Math.sqrt(f),Math.sqrt(1-f))}function a(t,n){for(var r=0,o=t.length,i=t[o-1][0],u=t[o-1][1],a=0;a{"use strict";function e(){return function(){throw new Error("Unimplemented abstract method.")}()}function o(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t}r.d(n,{O3:()=>e,XW:()=>o,sq:()=>u,q4:()=>a});var i=0;function u(t){return t.ol_uid||(t.ol_uid=String(++i))}var a="5.3.0"}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18672.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt b/geonode_mapstore_client/static/mapstore/dist/js/18672.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/18672.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt rename to geonode_mapstore_client/static/mapstore/dist/js/18672.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18698.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/18698.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/18698.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/18698.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18733.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/18733.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/18733.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/18733.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18812.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/18812.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/18812.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/18812.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/18829.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/18829.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/18829.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/18829.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/19008.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/19008.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/19008.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/19008.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/19018.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/19018.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/19018.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/19018.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/19132.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/19132.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/19132.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/19132.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/19154.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/19154.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/19154.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/19154.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/19250.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/19250.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/19250.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/19250.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/19333.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/19333.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/19333.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/19333.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/19337.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/19337.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/19337.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/19337.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/19347.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/19347.74fb1733f89b05e9e60d.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/js/19347.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/19347.74fb1733f89b05e9e60d.chunk.js index 5ec297e59b..e86deb3036 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/19347.b32b32d2650f7cc681c9.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/19347.74fb1733f89b05e9e60d.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 19347.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt */ +/*! For license information please see 19347.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[19347],{887157:(e,t,o)=>{var r=o(640554),n=o(588958);e.exports=function(e,t,o,i){var l=e.length;for((o=r(o))<0&&(o=-o>l?0:l+o),(i=void 0===i||i>l?l:r(i))<0&&(i+=l),i=o>i?0:n(i);o{e.exports=function(e,t,o,r,n){return n(e,(function(e,n,i){o=r?(r=!1,e):t(o,e,n,i)})),o}},819873:(e,t,o)=>{var r=o(887157),n=o(816612);e.exports=function(e,t,o,i){var l=null==e?0:e.length;return l?(o&&"number"!=typeof o&&n(e,t,o)&&(o=0,i=l),r(e,t,o,i)):[]}},354061:(e,t,o)=>{var r=o(62663),n=o(989881),i=o(267206),l=o(210107),a=o(701469);e.exports=function(e,t,o){var s=a(e)?r:l,u=arguments.length<3;return s(e,i(t,4),o,u,n)}},588958:(e,t,o)=>{var r=o(829750),n=o(640554);e.exports=function(e){return e?r(n(e),0,4294967295):0}},140464:function(e,t,o){var r;r=function(e,t){return function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={exports:{},id:r,loaded:!1};return e[r].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}return o.m=e,o.c=t,o.p="",o(0)}([function(e,t,o){e.exports=o(271)},,function(t,o){t.exports=e},function(e,t,o){e.exports=o(119)()},function(e,t,o){var r;!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var e=[],t=0;t=0&&u.splice(t,1)}function h(e){var t=document.createElement("style");return t.type="text/css",p(e,t),t}function g(e,t){var o,r,n;if(t.singleton){var i=s++;o=a||(a=h(t)),r=b.bind(null,o,i,!1),n=b.bind(null,o,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(o=function(e){var t=document.createElement("link");return t.rel="stylesheet",p(e,t),t}(t),r=C.bind(null,o),n=function(){f(o),o.href&&URL.revokeObjectURL(o.href)}):(o=h(t),r=v.bind(null,o),n=function(){f(o)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else n()}}e.exports=function(e,t){void 0===(t=t||{}).singleton&&(t.singleton=i()),void 0===t.insertAt&&(t.insertAt="bottom");var o=d(e);return c(o,t),function(e){for(var n=[],i=0;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}(e,["width","height","top","left","zIndex","children","position","innerRef"]);return n.default.createElement("div",r({style:a({left:l,top:i,width:t,height:o,zIndex:s,position:c}),"data-test":"cell-mask",ref:d},p),u)};s.propTypes={width:i.default.number.isRequired,height:i.default.number.isRequired,top:i.default.number.isRequired,left:i.default.number.isRequired,zIndex:i.default.number.isRequired,children:i.default.node,innerRef:i.default.func},t.default=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNextSelectedCellPosition=t.isSelectedCellEditable=t.getSelectedCellValue=t.getSelectedColumn=t.getSelectedRangeDimensions=t.getSelectedDimensions=t.getSelectedRow=void 0;var r=Object.assign||function(e){for(var t=1;t=0){var l=s.getColumn(o,n);return{width:l.width,left:l.left,top:d(i,r),height:r,zIndex:s.isFrozen(o)?u.default.FROZEN_CELL_MASK:u.default.CELL_MASK}}return{width:0,left:0,top:0,height:r,zIndex:1}},t.getSelectedRangeDimensions=function(e){var t=e.selectedRange,o=e.columns,r=e.rowHeight,n=t.topLeft,i=t.bottomRight;if(n.idx<0)return{width:0,left:0,top:0,height:r,zIndex:u.default.CELL_MASK};var l=function(e,t,o){for(var r=0,n=!1,i=e;i<=t;i++){var l=s.getColumn(o,i);r+=l.width,n=n||s.isFrozen(l)}return{totalWidth:r,anyColFrozen:n,left:s.getColumn(o,e).left}}(n.idx,i.idx,o),a=l.totalWidth,c=l.anyColFrozen;return{width:a,left:l.left,top:d(n.rowIdx,r),height:(i.rowIdx-n.rowIdx+1)*r,zIndex:c?u.default.FROZEN_CELL_MASK:u.default.CELL_MASK}},t.getSelectedColumn=function(e){var t=e.selectedPosition,o=e.columns,r=t.idx;return s.getColumn(o,r)});t.getSelectedCellValue=function(e){var t=e.selectedPosition,o=e.columns,r=e.rowGetter,n=f({selectedPosition:t,columns:o}),i=p({selectedPosition:t,rowGetter:r});return i&&n?a.get(i,n.key):null},t.isSelectedCellEditable=function(e){var t=e.enableCellSelect,o=e.selectedPosition,n=e.columns,i=e.rowGetter,a=e.onCheckCellIsEditable,u=f({selectedPosition:o,columns:n}),c=p({selectedPosition:o,rowGetter:i}),d=!(0,l.isFunction)(a)||a(r({row:c,column:u},o));return s.canEdit(u,c,t)&&d},t.getNextSelectedCellPosition=function(e,t){var o=e.cellNavigationMode,n=e.columns,l=e.rowsCount;if(o!==i.CellNavigationMode.NONE){var a=t.idx,s=t.rowIdx,u=-1===a;if(a===n.length){if(o===i.CellNavigationMode.CHANGE_ROW){if(s!==l-1)return{idx:0,rowIdx:s+1,changeRowOrColumn:!0}}else if(o===i.CellNavigationMode.LOOP_OVER_ROW)return{rowIdx:s,idx:0,changeRowOrColumn:!0}}else if(u)if(o===i.CellNavigationMode.CHANGE_ROW){if(0!==s)return{rowIdx:s-1,idx:n.length-1,changeRowOrColumn:!0}}else if(o===i.CellNavigationMode.LOOP_OVER_ROW)return{rowIdx:s,idx:n.length-1,changeRowOrColumn:!0}}return r({},t,{changeRowOrColumn:!1})}},,,,,,,,,,function(e,t,o){var r=o(283);"string"==typeof r&&(r=[[e.id,r,""]]),o(9)(r,{}),r.locals&&(e.exports=r.locals)},,,,,,,,,,function(e,t,o){"use strict";var r,n=function(){function e(e,t){for(var o=0;o-1:e&&e.rowKey&&e.values&&"[object Array]"===Object.prototype.toString.call(e.values)?e.values.indexOf(r[e.rowKey])>-1:!(!o||!r||"string"!=typeof o)&&r[o]}};e.exports=o},function(e,t){"use strict";var o=void 0;e.exports=function(){if(void 0===o){var e=document.createElement("div");e.style.width="50px",e.style.height="50px",e.style.position="absolute",e.style.top="-200px",e.style.left="-200px";var t=document.createElement("div");t.style.height="100px",t.style.width="100%",e.appendChild(t),document.body.appendChild(e);var r=e.clientWidth;e.style.overflowY="scroll";var n=t.clientWidth;document.body.removeChild(e),o=r-n}return o}},,,,,,,,,,,,,,,,,,function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=(r=o(18))&&r.__esModule?r:{default:r};t.default={ExcelColumn:n.default}},,,,function(e,t,o){var r=o(109);"string"==typeof r&&(r=[[e.id,r,""]]),o(9)(r,{}),r.locals&&(e.exports=r.locals)},,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NONE="none",t.CHANGE_ROW="changeRow",t.LOOP_OVER_ROW="loopOverRow"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SELECT_CELL="SELECT_CELL",t.SELECT_START="SELECT_START",t.SELECT_UPDATE="SELECT_UPDATE",t.SELECT_END="SELECT_END",t.DRAG_ENTER="DRAG_ENTER",t.SCROLL_TO_COLUMN="SCROLL_TO_COLUMN"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HEADER="header",t.FILTER="filter"},function(e,t,o){(e.exports=o(8)()).push([e.id,'.react-grid-Cell{background-color:#fff;padding-left:8px;padding-right:8px;border-right:1px solid #eee;border-bottom:1px solid #ddd}.rdg-selected{border:2px solid #66afe9}.rdg-selected-range{border:1px solid #66afe9;background-color:#66afe930}.moving-element{will-change:transform}.react-grid-Cell--frozen,.react-grid-Cell--frozen:focus{z-index:12}.rdg-last--frozen{border-right:1px solid #ddd;box-shadow:2px 0 5px -2px hsla(0,0%,53%,.3)!important}.react-contextmenu--visible{z-index:1000}.react-grid-Cell:not(.editing) .react-grid-Cell__value{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;height:inherit}.react-grid-Cell.readonly{background-color:#000}.react-grid-Cell:hover{background:#eee}.react-grid-cell .form-control-feedback{color:#a94442;position:absolute;top:0;right:10px;z-index:1000000;display:block;width:34px;height:34px}.react-grid-Row.row-selected .react-grid-Cell{background-color:#dbecfa}.react-grid-Cell.editing{padding:0;overflow:visible!important}.react-grid-Cell--frozen.editing{z-index:100}.react-grid-Cell.editing .has-error input{border:2px solid red!important;border-radius:2px!important}.react-grid-Cell__value ul{margin-top:0;margin-bottom:0;display:inline-block}.react-grid-Cell__value .btn-sm{padding:0}.cell-tooltip{position:relative;display:inline-block}.cell-tooltip:hover{z-index:101}.cell-tooltip .cell-tooltip-text{visibility:hidden;width:150px;background-color:#000;color:#fff;text-align:center;border-radius:6px;padding:5px 0;position:absolute;z-index:1;bottom:-150%;left:50%;margin-left:-60px;opacity:1s}.cell-tooltip:hover .cell-tooltip-text{visibility:visible;opacity:.8}.cell-tooltip .cell-tooltip-text:after{content:" ";position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #000}.react-grid-Canvas.opaque .react-grid-Cell.cell-tooltip:hover .cell-tooltip-text{visibility:hidden}.rdg-cell-expand{float:right;display:table;height:100%}.rdg-cell-expand>span{display:table-cell;vertical-align:middle;cursor:pointer}.rdg-child-row-action-cross-last:before,.rdg-child-row-action-cross:before,rdg-child-row-action-cross-last:after,rdg-child-row-action-cross:after{content:"";position:absolute;background:grey;height:50%}.rdg-child-row-action-cross:before{left:21px;width:1px;height:100%}.rdg-child-row-action-cross-last:before{left:21px;width:1px}.rdg-child-row-action-cross-last:after,.rdg-child-row-action-cross:after{top:50%;left:20px;height:1px;width:15px;content:"";position:absolute;background:grey}.rdg-child-row-action-cross:hover{background:red}.rdg-child-row-btn{position:absolute;cursor:pointer;border:1px solid grey;border-radius:14px;z-index:3;background:#fff}.rdg-child-row-btn div{font-size:12px;text-align:center;line-height:19px;color:grey;height:20px;width:20px;position:absolute;top:60%;left:53%;margin-top:-10px;margin-left:-10px}.rdg-empty-child-row:hover .glyphicon-plus-sign,.rdg-empty-child-row:hover a{color:green}.rdg-child-row-btn .glyphicon-remove-sign:hover{color:red}.last-column .cell-tooltip-text{right:100%;left:0!important}.rdg-cell-action{float:right;height:100%}.rdg-cell-action-last{margin-right:-8px}.rdg-cell-action-button{width:35px;height:100%;text-align:center;position:relative;display:table;color:#4a9de2}.rdg-cell-action-button>span{display:table-cell;vertical-align:middle}.rdg-cell-action-button-toggled,.rdg-cell-action-button:hover{color:#447bbb}.rdg-cell-action-menu{position:absolute;top:100%;z-index:1000;float:left;min-width:160px;padding:5px 0;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;box-shadow:0 0 3px 0 #ccc}.rdg-cell-action-menu>span{display:block;padding:3px 10px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.rdg-cell-action-menu>span:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}',""])},function(e,t,o){(e.exports=o(8)()).push([e.id,'.radio-custom,.react-grid-checkbox{opacity:0;position:absolute}.radio-custom,.radio-custom-label,.react-grid-checkbox,.react-grid-checkbox-label{display:inline-block;vertical-align:middle;cursor:pointer}.radio-custom-label,.react-grid-checkbox-label{position:relative}.radio-custom+.radio-custom-label:before,.react-grid-checkbox+.react-grid-checkbox-label:before{content:"";background:#fff;border:2px solid #ddd;display:inline-block;vertical-align:middle;width:20px;height:20px;text-align:center}.react-grid-checkbox:checked+.react-grid-checkbox-label:before{background:#005295;box-shadow:inset 0 0 0 4px #fff}.radio-custom:focus+.radio-custom-label,.react-grid-checkbox:focus+.react-grid-checkbox-label{outline:1px solid #ddd}.react-grid-HeaderCell input[type=checkbox]{z-index:99999}.react-grid-HeaderCell>.react-grid-checkbox-container{padding:0 10px;height:100%}.react-grid-HeaderCell>.react-grid-checkbox-container>.react-grid-checkbox-label{margin:0;position:relative;top:50%;transform:translateY(-50%)}.radio-custom+.radio-custom-label:before{border-radius:50%}.radio-custom:checked+.radio-custom-label:before{background:#ccc;box-shadow:inset 0 0 0 4px #fff}.checkbox-align{text-align:center}',""])},function(e,t,o){(e.exports=o(8)()).push([e.id,'.react-grid-Row.row-context-menu .react-grid-Cell,.react-grid-Row:hover .react-grid-Cell{background-color:#f9f9f9}.react-grid-Row:hover .rdg-row-index{display:none}.react-grid-Row:hover .rdg-actions-checkbox{display:block}.react-grid-Row:hover .rdg-drag-row-handle{cursor:move;cursor:grab;cursor:-moz-grab;cursor:-webkit-grab;width:12px;height:30px;margin-left:0;background-image:url("data:image/svg+xml;base64, PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjxzdmcgd2lkdGg9IjlweCIgaGVpZ2h0PSIyOXB4IiB2aWV3Qm94PSIwIDAgOSAyOSIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICAgIDwhLS0gR2VuZXJhdG9yOiBTa2V0Y2ggMzkgKDMxNjY3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5kcmFnIGljb248L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz48L2RlZnM+CiAgICA8ZyBpZD0iQWN0dWFsaXNhdGlvbi12MiIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IkRlc2t0b3AiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xNS4wMDAwMDAsIC0yNjIuMDAwMDAwKSIgZmlsbD0iI0Q4RDhEOCI+CiAgICAgICAgICAgIDxnIGlkPSJJbnRlcmFjdGlvbnMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE1LjAwMDAwMCwgMjU4LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGcgaWQ9IlJvdy1Db250cm9scyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wMDAwMDAsIDIuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPGcgaWQ9ImRyYWctaWNvbiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wMDAwMDAsIDIuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSIyIiBjeT0iMiIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSI3IiBjeT0iMiIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSIyIiBjeT0iNyIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSI3IiBjeT0iNyIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSIyIiBjeT0iMTIiIHI9IjIiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLTMwIiBjeD0iNyIgY3k9IjEyIiByPSIyIj48L2NpcmNsZT4KICAgICAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbC0zMCIgY3g9IjIiIGN5PSIxNyIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSI3IiBjeT0iMTciIHI9IjIiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLTMwIiBjeD0iMiIgY3k9IjIyIiByPSIyIj48L2NpcmNsZT4KICAgICAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbC0zMCIgY3g9IjciIGN5PSIyMiIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSIyIiBjeT0iMjciIHI9IjIiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLTMwIiBjeD0iNyIgY3k9IjI3IiByPSIyIj48L2NpcmNsZT4KICAgICAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==");background-repeat:no-repeat}.react-grid-Row.row-selected,.react-grid-Row .row-selected{background-color:#dbecfa}.react-grid-row-group .row-expand-icon:hover{color:#777}.react-grid-row-index{padding:0 18px}.rdg-row-index{display:block;text-align:center}.rdg-row-actions-cell{padding:0}.rdg-actions-checkbox{display:none;text-align:center}.rdg-actions-checkbox.selected{display:block}.rdg-dragging{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.rdg-dragged-row{border-bottom:1px solid #000}.rdg-scrolling{pointer-events:none}',""])},function(e,t){"use strict";e.exports=function(e){var t,o={};if(!(e instanceof Object)||Array.isArray(e))throw new Error("keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(o[t]=t);return o}},,,,,,,function(e,t,o){"use strict";var r=o(120);function n(){}e.exports=function(){function e(e,t,o,n,i,l){if(l!==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 o={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return o.checkPropTypes=n,o.PropTypes=o,o}},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,,,,function(e,t,o){"use strict";var r,n=function(){function e(e,t){for(var o=0;o47&&e<58||32===e||13===e||e>64&&e<91||e>95&&e<112||e>185&&e<193||e>218&&e<223},t.isCtrlKeyHeldDown=function(e){return(!0===e.ctrlKey||!0===e.metaKey)&&"Control"!==e.key}},,,,,function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:n.props;return e.rowData.toJSON?e.rowData.toJSON():e.rowData},n.getFormatterDependencies=function(){if("function"==typeof n.props.column.getRowMetaData)return n.props.column.getRowMetaData(n.getRowData(),n.props.column)},n.getCellClass=function(){var e=n.props,t=e.idx,o=e.lastFrozenColumnIndex,r=m(n.props.column.cellClass,"react-grid-Cell",n.props.className,p.default.isFrozen(n.props.column)?"react-grid-Cell--frozen":null,o===t?"rdg-last--frozen":null),i=m({"row-selected":n.props.isRowSelected,editing:n.isEditorEnabled(),"cell-tooltip":!!n.props.tooltip,"rdg-child-cell":n.props.expandableOptions&&n.props.expandableOptions.subRowDetails&&n.props.expandableOptions.treeDepth>0,"last-column":n.props.column.isLastColumn});return m(r,i)},n.getUpdateCellClass=function(){return n.props.column.getUpdateCellClass?n.props.column.getUpdateCellClass(n.props.selectedColumn,n.props.column,n.state.isCellValueChanging):""},n.isEditorEnabled=function(){return!0===n.props.isEditorEnabled},n.setScrollLeft=function(e){var t=n.node;if(t){var o="translate3d("+e+"px, 0px, 0px)";t.style.webkitTransform=o,t.style.transform=o}},n.removeScroll=function(){var e=n.node;e&&(e.style.webkitTransform=null,e.style.transform=null)},n.canExpand=function(){return n.props.expandableOptions&&n.props.expandableOptions.canExpand},n.createColumEventCallBack=function(e,t){return function(o){e(o,t)}},n.createCellEventCallBack=function(e,t){return function(o){e(o),t(o)}},n.createEventDTO=function(e,t,o){var r=Object.assign({},e);for(var i in t)if(t.hasOwnProperty(i)){var l={idx:n.props.idx,rowIdx:n.props.rowIdx,rowId:n.props.rowData[n.props.cellMetaData.rowKey],name:i},a=n.createColumEventCallBack(o,l);if(r.hasOwnProperty(i)){var s=r[i];r[i]=n.createCellEventCallBack(s,a)}else r[i]=a}return r},n.getEvents=function(){var e=n.props.column?Object.assign({},n.props.column.events):void 0,t=n.props.cellMetaData?n.props.cellMetaData.onColumnEvent:void 0,o={onClick:n.onCellClick,onMouseDown:n.onCellMouseDown,onMouseEnter:n.onCellMouseEnter,onDoubleClick:n.onCellDoubleClick,onContextMenu:n.onCellContextMenu,onDragOver:n.onDragOver};return e&&t?n.createEventDTO(o,e,t):o},n.getKnownDivProps=function(){return v(n.props,C)},n.setCellRef=function(e){n.node=e},n.renderCellContent=function(e){var t,o=n.getFormatter();t=w.isValidElement(o)?w.cloneElement(o,r({},e,{dependentValues:n.getFormatterDependencies(),row:n.getRowData()})):(0,a.isFunction)(o)?w.createElement(o,{value:n.props.value,dependentValues:n.getFormatterDependencies(),isScrolling:n.props.isScrolling,row:n.getRowData()}):w.createElement(b,{value:n.props.value});var i=!!n.props.expandableOptions&&n.props.expandableOptions.field===n.props.column.key,l=n.props.expandableOptions?n.props.expandableOptions.treeDepth:0,s=n.props.expandableOptions&&i?30*n.props.expandableOptions.treeDepth:0,u=void 0,c=!!n.props.cellMetaData.onDeleteSubRow;return l>0&&i&&(u=w.createElement(d.default,{treeDepth:l,cellHeight:n.props.height,siblingIndex:n.props.expandableOptions.subRowDetails.siblingIndex,numberSiblings:n.props.expandableOptions.subRowDetails.numberSiblings,onDeleteSubRow:n.onDeleteSubRow,isDeleteSubRowEnabled:c})),w.createElement("div",{className:"react-grid-Cell__value"},u,w.createElement("div",{style:{marginLeft:s,position:"relative",top:"50%",transform:"translateY(-50%)"}},w.createElement("span",null,t),n.props.cellControls))},g(n,o)}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),n(t,[{key:"componentWillReceiveProps",value:function(e){this.setState({isCellValueChanging:this.props.isCellValueChanging(this.props.value,e.value),isLockChanging:p.default.isFrozen(this.props.column)!==p.default.isFrozen(e.column)})}},{key:"componentDidMount",value:function(){this.checkScroll()}},{key:"componentDidUpdate",value:function(){this.state.isLockChanging&&!p.default.isFrozen(this.props.column)&&this.removeScroll()}},{key:"checkScroll",value:function(){var e=this.props,t=e.scrollLeft,o=e.column,r=this.node;p.default.isFrozen(o)&&r&&null!=r.style.transform&&this.setScrollLeft(t)}},{key:"getCellActions",value:function(){var e=this.props,t=e.cellMetaData,o=e.column,r=e.rowData;if(t&&t.getCellActions){var n=t.getCellActions(o,r);return n&&n.length?n.map((function(e,t){return w.createElement(u.default,{key:t,action:e,isFirst:0===t})})):null}return null}},{key:"render",value:function(){if(this.props.column.hidden)return null;var e=this.getStyle(),t=this.getCellClass(),o=this.getCellActions(),n=this.props,i=n.value,l=n.column,a=n.rowIdx,s=n.isExpanded,u=n.isScrolling,d=this.props.children||this.renderCellContent({value:i,column:l,rowIdx:a,isExpanded:s,isScrolling:u}),p=this.getEvents(),f=this.props.tooltip?w.createElement("span",{className:"cell-tooltip-text"},this.props.tooltip):null,h=this.canExpand()&&w.createElement(c.default,{expandableOptions:this.props.expandableOptions,onCellExpand:this.onCellExpand});return w.createElement("div",r({},this.getKnownDivProps(),{className:t,style:e},p,{ref:this.setCellRef}),o,h,d,f)}}]),t}(w.PureComponent);y.propTypes={rowIdx:i.default.number.isRequired,idx:i.default.number.isRequired,isSelected:i.default.bool,wasPreviouslySelected:i.default.bool,isEditorEnabled:i.default.bool,selectedColumn:i.default.object,height:i.default.number,column:i.default.shape(l.default).isRequired,value:i.default.oneOfType([i.default.string,i.default.number,i.default.object,i.default.bool]),isExpanded:i.default.bool,isRowSelected:i.default.bool,cellMetaData:i.default.shape(s.default).isRequired,handleDragStart:i.default.func,className:i.default.string,cellControls:i.default.any,rowData:i.default.object.isRequired,forceUpdate:i.default.bool,expandableOptions:i.default.object.isRequired,tooltip:i.default.string,isScrolling:i.default.bool,isCellValueChanging:i.default.func,children:i.default.oneOfType([i.default.arrayOf(i.default.node),i.default.node]),scrollLeft:i.default.number.isRequired},y.defaultProps={isExpanded:!1,value:"",isCellValueChanging:function(e,t){return e!==t}},t.default=y},function(e,t,o){"use strict";var r=o(5),n=o(140),i=o(257),l=o(6),a=o(82),s=function(e){return e.reduce((function(e,t){return e+t.width}),0)};function u(e){var t=function(e,t){return e.map((function(e){var o=Object.assign({},e);return e.width&&/^([0-9]+)%$/.exec(e.width.toString())&&(o.width=Math.floor(e.width/100*t)),o}))}(e.columns,e.totalWidth),o=t.filter((function(e){return e.width})).reduce((function(e,t){return e-t.width}),e.totalWidth);o-=a();var r=t.filter((function(e){return e.width})).reduce((function(e,t){return e+t.width}),0);t=function(e,t,o){var r=e.filter((function(e){return!e.width}));return e.map((function(e){if(!e.width&&0!==e.width)if(t<=0)e.width=o;else{var n=Math.floor(t/l.getSize(r));e.width=n0&&t(r.props.column,o)}},r.onDragEnd=function(e){var t=r.getWidthFromMouseEvent(e);r.props.onResizeEnd(r.props.column,t),r.setState({resizing:!1})},r.getWidthFromMouseEvent=function(e){return(e.pageX||e.touches&&e.touches[0]&&e.touches[0].pageX||e.changedTouches&&e.changedTouches[e.changedTouches.length-1].pageX)-i.default.findDOMNode(r).getBoundingClientRect().left},r.getCell=function(){var e=r.props,t=e.height,o=e.column,i=e.renderer;return n.default.isValidElement(i)?"string"==typeof r.props.renderer.type?n.default.cloneElement(i,{height:t}):n.default.cloneElement(i,{column:o,height:t}):r.props.renderer({column:o})},r.getStyle=function(){return{width:r.props.column.width,left:r.props.column.left,display:"inline-block",position:"absolute",height:r.props.height,margin:0,textOverflow:"ellipsis",whiteSpace:"nowrap"}},r.setScrollLeft=function(e){var t=i.default.findDOMNode(r);t&&(t.style.webkitTransform="translate3d("+e+"px, 0px, 0px)",t.style.transform="translate3d("+e+"px, 0px, 0px)")},r.removeScroll=function(){var e=i.default.findDOMNode(r);if(e){var t="none";e.style.webkitTransform=t,e.style.transform=t}},f(r,o)}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),r(t,[{key:"render",value:function(){var e=this.props,t=e.column,o=e.rowType,r=t.resizable&&n.default.createElement(h,{onDrag:this.onDrag,onDragStart:this.onDragStart,onDragEnd:this.onDragEnd}),i=(0,a.default)({"react-grid-HeaderCell":!0,"react-grid-HeaderCell--resizing":this.state.resizing,"react-grid-HeaderCell--frozen":u.default.isFrozen(t)},this.props.className,t.cellClass),l=n.default.createElement("div",{className:i,style:this.getStyle()},this.getCell(),r);if(o===c.HeaderRowType.HEADER&&t.draggable){var s=this.props.draggableHeaderCell;return n.default.createElement(s,{column:t,onHeaderDrop:this.props.onHeaderDrop},l)}return l}}]),t}(n.default.Component);g.propTypes={renderer:l.default.oneOfType([l.default.func,l.default.element]).isRequired,column:l.default.shape(s.default).isRequired,rowType:l.default.string.isRequired,height:l.default.number.isRequired,onResize:l.default.func.isRequired,onResizeEnd:l.default.func.isRequired,onHeaderDrop:l.default.func,draggableHeaderCell:l.default.element,className:l.default.string},g.defaultProps={renderer:function(e){var t="header"===e.column.rowType?e.column.name:"";return n.default.createElement("div",{className:"widget-HeaderCell__value"},t)}},e.exports=g},function(e,t){"use strict";e.exports={Backspace:8,Tab:9,Enter:13,Shift:16,Ctrl:17,Alt:18,PauseBreak:19,CapsLock:20,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,LeftArrow:37,UpArrow:38,RightArrow:39,DownArrow:40,Insert:45,Delete:46,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,LeftWindowKey:91,RightWindowKey:92,SelectKey:93,NumPad0:96,NumPad1:97,NumPad2:98,NumPad3:99,NumPad4:100,NumPad5:101,NumPad6:102,NumPad7:103,NumPad8:104,NumPad9:105,Multiply:106,Add:107,Subtract:109,DecimalPoint:110,Divide:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F12:123,NumLock:144,ScrollLock:145,SemiColon:186,EqualSign:187,Comma:188,Dash:189,Period:190,ForwardSlash:191,GraveAccent:192,OpenBracket:219,BackSlash:220,CloseBracket:221,SingleQuote:222}},function(e,t,o){"use strict";var r=Object.assign||function(e){for(var t=1;t0||!0===t.group),field:t.field,expanded:t&&t.expanded,children:t&&t.children,treeDepth:t?t.treeDepth:0,subRowDetails:t}:{}},n.setScrollLeft=function(e){n.props.columns.forEach((function(t){if(p.default.isFrozen(t)){if(!n[t.key])return;n[t.key].setScrollLeft(e)}}))},n.getKnownDivProps=function(){return(0,d.default)(n.props,w)},g(n,o)}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),n(t,[{key:"shouldComponentUpdate",value:function(e){return(0,i.default)(e,this.props)}},{key:"render",value:function(){var e=(0,s.default)("react-grid-Row","react-grid-Row--"+(this.props.idx%2==0?"even":"odd"),{"row-selected":this.props.isSelected},this.props.extraClasses,{"rdg-scrolling":this.props.isScrolling}),t={height:this.getRowHeight(this.props),overflow:"hidden"},o=this.getCells();return l.default.createElement("div",r({},this.getKnownDivProps(),{className:e,style:t,onDragEnter:this.handleDragEnter,onDragOver:this.handleDragOver,onDrop:this.handleDrop}),l.default.isValidElement(this.props.row)?this.props.row:o)}}]),t}(l.default.Component);m.displayName="Row",m.propTypes={height:a.default.number.isRequired,columns:a.default.oneOfType([a.default.object,a.default.array]).isRequired,row:a.default.any.isRequired,cellRenderer:a.default.func,cellMetaData:a.default.shape(c.default),isSelected:a.default.bool,idx:a.default.number.isRequired,expandedRows:a.default.arrayOf(a.default.object),extraClasses:a.default.string,forceUpdate:a.default.bool,subRowDetails:a.default.object,isRowHovered:a.default.bool,colVisibleStartIdx:a.default.number.isRequired,colVisibleEndIdx:a.default.number.isRequired,colOverscanStartIdx:a.default.number.isRequired,colOverscanEndIdx:a.default.number.isRequired,isScrolling:a.default.bool.isRequired,scrollLeft:a.default.number,lastFrozenColumnIndex:a.default.number},m.defaultProps={cellRenderer:u.default,isSelected:!1,height:35},e.exports=m},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(o(2)),n=i(o(3));function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e){return r.default.createElement("div",{className:"react-grid-checkbox-container checkbox-align"},r.default.createElement("input",{className:"react-grid-checkbox",type:"checkbox",name:"select-all-checkbox",id:"select-all-checkbox",ref:e.inputRef,onChange:e.onChange}),r.default.createElement("label",{htmlFor:"select-all-checkbox",className:"react-grid-checkbox-label"}))};l.propTypes={onChange:n.default.func,inputRef:n.default.func},t.default=l},function(e,t,o){"use strict";var r,n=function(){function e(e,t){for(var o=0;o-1},this.isClickInsideEditor=function(t){var o=e.getRelatedTarget(t);return t.currentTarget.contains(o)||o.className.indexOf("editing")>-1||o.className.indexOf("react-grid-Cell")>-1},this.getRelatedTarget=function(e){return e.relatedTarget||e.explicitOriginalTarget||document.activeElement},this.handleRightClick=function(e){e.stopPropagation()},this.handleBlur=function(t){t.stopPropagation(),e.isBodyClicked(t)&&e.commit(t),e.isBodyClicked(t)||!e.isViewportClicked(t)&&e.isClickInsideEditor(t)||e.commit(t)},this.setTextInputFocus=function(){var t=e.props.firstEditorKeyPress,o=e.getInputNode();o.focus(),"INPUT"===o.tagName&&((0,c.isKeyPrintable)(t)||o.focus(),o.select())},this.renderStatusIcon=function(){if(!0===e.state.isInvalid)return i.default.createElement("span",{className:"glyphicon glyphicon-remove form-control-feedback"})}};e.exports=w},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,o){"use strict";var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(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}o(59);var C=function(e){function t(){var e,o,r;b(this,t);for(var n=arguments.length,a=Array(n),u=0;u0?t-o:0},r.onHitBottomCanvas=function(){var e=r.props.rowHeight,t=r.canvas;t.scrollTop+=e+r.getClientScrollTopOffset(t)},r.onHitTopCanvas=function(){var e=r.props.rowHeight,t=r.canvas;t.scrollTop-=e-r.getClientScrollTopOffset(t)},r.scrollToColumn=function(e){var t=r.canvas,o=t.scrollLeft,n=t.clientWidth,i=(0,f.getColumnScrollPosition)(r.props.columns,e,o,n);null!=i&&(r.canvas.scrollLeft=o+i)},r.onHitLeftCanvas=function(e){var t=e.idx;r.scrollToColumn(t)},r.onHitRightCanvas=function(e){var t=e.idx;r.scrollToColumn(t)},r.getRows=function(e,t){if(r._currentRowsRange={start:e,end:t},Array.isArray(r.props.rowGetter))return r.props.rowGetter.slice(e,t);for(var o=[],n=e;n0&&o[0].isSelected}if(r.props.rowSelection){var n=r.props.rowSelection,i=n.keys,l=n.indexes,a=n.isSelectedKey;return c.isRowSelected(i,l,a,t,e)}return!1},r.setScrollLeft=function(e){r.rows.forEach((function(t,o){if(t){var n=r.getRowByRef(o);n&&n.setScrollLeft&&n.setScrollLeft(e)}}))},r.getRowByRef=function(e){var t=r.rows[e]&&r.rows[e].getDecoratedComponentInstance?r.rows[e].getDecoratedComponentInstance(e):null;return t?t.row:r.rows[e]},r.getSelectedRowTop=function(e){var t=r.getRowByRef(e);if(t){var o=l.default.findDOMNode(t);return o&&o.offsetTop}return r.props.rowHeight*e},r.getSelectedRowHeight=function(e){var t=r.getRowByRef(e);if(t){var o=l.default.findDOMNode(t);return o&&o.clientHeight>0?o.clientHeight:r.props.rowHeight}return r.props.rowHeight},r.getSelectedRowColumns=function(e){var t=r.getRowByRef(e);return t&&t.props?t.props.columns:r.props.columns},r.setCanvasRef=function(e){r.canvas=e},r.setRowRef=function(e){return function(t){r.rows[e]=t}},r.renderRow=function(e){var t=e.row;return t.__metaData&&t.__metaData.getRowRenderer?t.__metaData.getRowRenderer(r.props,e.idx):t.__metaData&&t.__metaData.isGroup?r.renderGroupRow(e):r.props.rowRenderer?r.renderCustomRowRenderer(e):i.default.createElement(s.default,e)},r.renderPlaceholder=function(e,t){return i.default.createElement("div",{key:e,style:{height:t}},r.props.columns.map((function(e,t){return i.default.createElement("div",{style:{width:e.width},key:t})})))},v(r,o)}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),n(t,[{key:"componentDidMount",value:function(){this.unsubscribeScrollToColumn=this.props.eventBus.subscribe(g.EventTypes.SCROLL_TO_COLUMN,this.scrollToColumn),this.onRows()}},{key:"componentWillUnmount",value:function(){this._currentRowsRange={start:0,end:0},this._scroll={scrollTop:0,scrollLeft:0},this.rows=[],this.unsubscribeScrollToColumn()}},{key:"componentDidUpdate",value:function(e){var t=this.props.scrollToRowIndex;e.scrollToRowIndex!==t&&0!==t&&this.scrollToRow(t),this.onRows()}},{key:"renderCustomRowRenderer",value:function(e){var t=e.ref,o=m(e,["ref"]),n=this.props.rowRenderer,l=r({},o,{renderBaseRow:function(e){return i.default.createElement(s.default,r({ref:t},e))}});return n.type===s.default?i.default.createElement(s.default,e):(0,h.isFunction)(n)?i.default.createElement(n,l):i.default.isValidElement(n)?i.default.cloneElement(n,l):void 0}},{key:"renderGroupRow",value:function(e){var t=e.ref,o=m(e,["ref"]);return i.default.createElement(d.default,r({},o,e.row.__metaData,{rowRef:e.ref,name:e.row.name,eventBus:this.props.eventBus,renderer:this.props.rowGroupRenderer,renderBaseRow:function(e){return i.default.createElement(s.default,r({ref:t},e))}}))}},{key:"render",value:function(){var e=this,t=this.props,o=t.rowOverscanStartIdx,r=t.rowOverscanEndIdx,n=t.cellMetaData,l=t.columns,a=t.colOverscanStartIdx,s=t.colOverscanEndIdx,u=t.colVisibleStartIdx,c=t.colVisibleEndIdx,d=t.lastFrozenColumnIndex,f=t.expandedRows,h=t.rowHeight,g=t.rowsCount,w=t.totalColumnWidth,m=t.totalWidth,b=t.height,v=t.rowGetter,C=t.RowsContainer,y=t.contextMenu,R=this.getRows(o,r).map((function(t,i){var p=o+i,g="row-"+p;return e.renderRow({key:g,ref:e.setRowRef(p),idx:p,rowVisibleStartIdx:e.props.rowVisibleStartIdx,rowVisibleEndIdx:e.props.rowVisibleEndIdx,row:t.row,height:h,onMouseOver:e.onMouseOver,columns:l,isSelected:e.isRowSelected(p,t.row,o,r),expandedRows:f,cellMetaData:n,subRowDetails:t.subRowDetails,colVisibleStartIdx:u,colVisibleEndIdx:c,colOverscanStartIdx:a,colOverscanEndIdx:s,lastFrozenColumnIndex:d,isScrolling:e.props.isScrolling,scrollLeft:e._scroll.scrollLeft})}));o>0&&R.unshift(this.renderPlaceholder("top",o*h)),g-r>0&&R.push(this.renderPlaceholder("bottom",(g-r)*h));var x={position:"absolute",top:0,left:0,overflowX:"auto",overflowY:"scroll",width:m,height:b};return i.default.createElement("div",{ref:this.setCanvasRef,style:x,onScroll:this.onScroll,className:"react-grid-Canvas"},i.default.createElement(p.InteractionMasks,{rowGetter:v,rowsCount:g,width:this.props.totalWidth,height:b,rowHeight:h,columns:l,rowOverscanStartIdx:this.props.rowOverscanStartIdx,rowVisibleStartIdx:this.props.rowVisibleStartIdx,rowVisibleEndIdx:this.props.rowVisibleEndIdx,colVisibleStartIdx:u,colVisibleEndIdx:c,enableCellSelect:this.props.enableCellSelect,enableCellAutoFocus:this.props.enableCellAutoFocus,cellNavigationMode:this.props.cellNavigationMode,eventBus:this.props.eventBus,contextMenu:this.props.contextMenu,onHitBottomBoundary:this.onHitBottomCanvas,onHitTopBoundary:this.onHitTopCanvas,onHitLeftBoundary:this.onHitLeftCanvas,onHitRightBoundary:this.onHitRightCanvas,onCommit:this.props.onCommit,onCheckCellIsEditable:this.props.onCheckCellIsEditable,onCellCopyPaste:this.props.onCellCopyPaste,onGridRowsUpdated:this.props.onGridRowsUpdated,onDragHandleDoubleClick:this.props.onDragHandleDoubleClick,onCellSelected:this.props.onCellSelected,onCellDeSelected:this.props.onCellDeSelected,onCellRangeSelectionStarted:this.props.onCellRangeSelectionStarted,onCellRangeSelectionUpdated:this.props.onCellRangeSelectionUpdated,onCellRangeSelectionCompleted:this.props.onCellRangeSelectionCompleted,scrollLeft:this._scroll.scrollLeft,scrollTop:this._scroll.scrollTop,prevScrollLeft:this.props.prevScrollLeft,prevScrollTop:this.props.prevScrollTop,getSelectedRowHeight:this.getSelectedRowHeight,getSelectedRowTop:this.getSelectedRowTop,getSelectedRowColumns:this.getSelectedRowColumns}),i.default.createElement(C,{id:y?y.props.id:"rowsContainer"},i.default.createElement("div",{style:{width:w}},R)))}}]),t}(i.default.PureComponent);C.propTypes={rowRenderer:a.default.oneOfType([a.default.func,a.default.element]),rowHeight:a.default.number.isRequired,height:a.default.number.isRequired,width:a.default.number,totalWidth:a.default.oneOfType([a.default.number,a.default.string]),style:a.default.string,className:a.default.string,rowOverscanStartIdx:a.default.number.isRequired,rowOverscanEndIdx:a.default.number.isRequired,rowVisibleStartIdx:a.default.number.isRequired,rowVisibleEndIdx:a.default.number.isRequired,colVisibleStartIdx:a.default.number.isRequired,colVisibleEndIdx:a.default.number.isRequired,colOverscanStartIdx:a.default.number.isRequired,colOverscanEndIdx:a.default.number.isRequired,rowsCount:a.default.number.isRequired,rowGetter:a.default.oneOfType([a.default.func.isRequired,a.default.array.isRequired]),expandedRows:a.default.array,onRows:a.default.func,onScroll:a.default.func,columns:a.default.oneOfType([a.default.object,a.default.array]).isRequired,cellMetaData:a.default.shape(u.default).isRequired,selectedRows:a.default.array,rowKey:a.default.string,rowScrollTimeout:a.default.number,scrollToRowIndex:a.default.number,contextMenu:a.default.element,getSubRowDetails:a.default.func,rowSelection:a.default.oneOfType([a.default.shape({indexes:a.default.arrayOf(a.default.number).isRequired}),a.default.shape({isSelectedKey:a.default.string.isRequired}),a.default.shape({keys:a.default.shape({values:a.default.array.isRequired,rowKey:a.default.string.isRequired}).isRequired})]),rowGroupRenderer:a.default.func,isScrolling:a.default.bool,length:a.default.number,enableCellSelect:a.default.bool.isRequired,enableCellAutoFocus:a.default.bool.isRequired,cellNavigationMode:a.default.string.isRequired,eventBus:a.default.object.isRequired,onCheckCellIsEditable:a.default.func,onCellCopyPaste:a.default.func,onGridRowsUpdated:a.default.func.isRequired,onDragHandleDoubleClick:a.default.func.isRequired,onCellSelected:a.default.func,onCellDeSelected:a.default.func,onCellRangeSelectionStarted:a.default.func,onCellRangeSelectionUpdated:a.default.func,onCellRangeSelectionCompleted:a.default.func,onCommit:a.default.func.isRequired},C.defaultProps={onRows:function(){},selectedRows:[],rowScrollTimeout:0,scrollToRowIndex:0,RowsContainer:function(e){return e.children}},e.exports=C},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var o=0;o0&&this.props.columns.some((function(e){return a.default.isFrozen(e)}))}},{key:"componentDidMount",value:function(){this._scrollLeft=this.viewport?this.viewport.getScroll().scrollLeft:0,this._onScroll()}},{key:"componentDidUpdate",value:function(){this._onScroll()}},{key:"componentWillUnmount",value:function(){this._scrollLeft=void 0}},{key:"render",value:function(){var e=this.props.headerRows,t=this.props.emptyRowsView;return d.createElement("div",{style:this.getStyle(),className:"react-grid-Grid"},d.createElement(p,{ref:this.setHeaderRef,columnMetrics:this.props.columnMetrics,onColumnResize:this.props.onColumnResize,height:this.props.rowHeight,totalWidth:this.props.totalWidth,headerRows:e,sortColumn:this.props.sortColumn,sortDirection:this.props.sortDirection,draggableHeaderCell:this.props.draggableHeaderCell,onSort:this.props.onSort,onHeaderDrop:this.props.onHeaderDrop,getValidFilterValues:this.props.getValidFilterValues,cellMetaData:this.props.cellMetaData}),this.props.rowsCount>=1||0===this.props.rowsCount&&!this.props.emptyRowsView?d.createElement("div",{ref:this.setViewportContainerRef,onKeyDown:this.props.onViewportKeydown,onKeyUp:this.props.onViewportKeyup},d.createElement(f,r({},this.props,{ref:this.setViewportRef,rowKey:this.props.rowKey,width:this.props.columnMetrics.width,rowHeight:this.props.rowHeight,rowRenderer:this.props.rowRenderer,rowGetter:this.props.rowGetter,rowsCount:this.props.rowsCount,selectedRows:this.props.selectedRows,expandedRows:this.props.expandedRows,columnMetrics:this.props.columnMetrics,totalWidth:this.props.totalWidth,onScroll:this.onScroll,onRows:this.props.onRows,cellMetaData:this.props.cellMetaData,rowOffsetHeight:this.props.rowOffsetHeight||this.props.rowHeight*e.length,minHeight:this.props.minHeight,rowScrollTimeout:this.props.rowScrollTimeout,scrollToRowIndex:this.props.scrollToRowIndex,contextMenu:this.props.contextMenu,rowSelection:this.props.rowSelection,getSubRowDetails:this.props.getSubRowDetails,rowGroupRenderer:this.props.rowGroupRenderer,overScan:this.props.overScan,enableCellSelect:this.props.enableCellSelect,enableCellAutoFocus:this.props.enableCellAutoFocus,cellNavigationMode:this.props.cellNavigationMode,eventBus:this.props.eventBus,onCheckCellIsEditable:this.props.onCheckCellIsEditable,onCellCopyPaste:this.props.onCellCopyPaste,onGridRowsUpdated:this.props.onGridRowsUpdated,onDragHandleDoubleClick:this.props.onDragHandleDoubleClick,onCellSelected:this.props.onCellSelected,onCellDeSelected:this.props.onCellDeSelected,onCellRangeSelectionStarted:this.props.onCellRangeSelectionStarted,onCellRangeSelectionUpdated:this.props.onCellRangeSelectionUpdated,onCellRangeSelectionCompleted:this.props.onCellRangeSelectionCompleted,onCommit:this.props.onCommit,RowsContainer:this.props.RowsContainer}))):d.createElement("div",{ref:this.setEmptyViewRef,className:"react-grid-Empty"},d.createElement(t,null)))}}]),t}(d.Component);h.displayName="Grid",h.propTypes={rowGetter:i.default.oneOfType([i.default.array,i.default.func]).isRequired,columns:i.default.oneOfType([i.default.array,i.default.object]),columnMetrics:i.default.object,minHeight:i.default.number,totalWidth:i.default.oneOfType([i.default.number,i.default.string]),headerRows:i.default.oneOfType([i.default.array,i.default.func]),rowHeight:i.default.number,rowRenderer:i.default.oneOfType([i.default.element,i.default.func]),emptyRowsView:i.default.func,expandedRows:i.default.oneOfType([i.default.array,i.default.func]),selectedRows:i.default.oneOfType([i.default.array,i.default.func]),rowSelection:i.default.oneOfType([i.default.shape({indexes:i.default.arrayOf(i.default.number).isRequired}),i.default.shape({isSelectedKey:i.default.string.isRequired}),i.default.shape({keys:i.default.shape({values:i.default.array.isRequired,rowKey:i.default.string.isRequired}).isRequired})]),rowsCount:i.default.number,onRows:i.default.func,sortColumn:i.default.string,cellMetaData:i.default.shape(l.default).isRequired,sortDirection:i.default.oneOf(["ASC","DESC","NONE"]),rowOffsetHeight:i.default.number.isRequired,onViewportKeydown:i.default.func.isRequired,onViewportKeyup:i.default.func,onColumnResize:i.default.func,onSort:i.default.func,onHeaderDrop:i.default.func,rowKey:i.default.string.isRequired,rowScrollTimeout:i.default.number,scrollToRowIndex:i.default.number,contextMenu:i.default.element,getSubRowDetails:i.default.func,draggableHeaderCell:i.default.func,getValidFilterValues:i.default.func,rowGroupRenderer:i.default.func,overScan:i.default.object,enableCellSelect:i.default.bool.isRequired,enableCellAutoFocus:i.default.bool.isRequired,cellNavigationMode:i.default.string.isRequired,eventBus:i.default.object.isRequired,onCheckCellIsEditable:i.default.func,onCellCopyPaste:i.default.func,onGridRowsUpdated:i.default.func.isRequired,onDragHandleDoubleClick:i.default.func.isRequired,onCellSelected:i.default.func,onCellDeSelected:i.default.func,onCellRangeSelectionStarted:i.default.func,onCellRangeSelectionUpdated:i.default.func,onCellRangeSelectionCompleted:i.default.func,onCommit:i.default.func.isRequired,onScroll:i.default.func,scrollLeft:i.default.number,RowsContainer:i.default.node},h.defaultProps={rowHeight:35,minHeight:350},e.exports=h},function(e,t,o){"use strict";var r,n=Object.assign||function(e){for(var t=1;t0?m():0,u=isNaN(r.props.totalWidth-s)?r.props.totalWidth:r.props.totalWidth-s,d={position:"absolute",top:r.getCombinedHeaderHeights(n),left:0,width:u,overflowX:"hidden",minHeight:l};return c.createElement(w,{key:o.rowType,ref:i?r.setFilterRowRef:r.setRowRef,rowType:o.rowType,style:d,onColumnResize:r.onColumnResize,onColumnResizeEnd:r.onColumnResizeEnd,width:e.width,height:o.height||r.props.height,columns:e.columns,resizing:t,draggableHeaderCell:r.props.draggableHeaderCell,filterable:o.filterable,onFilterChange:o.onFilterChange,onHeaderDrop:r.props.onHeaderDrop,sortColumn:r.props.sortColumn,sortDirection:r.props.sortDirection,onSort:r.props.onSort,onScroll:r.props.onScroll,getValidFilterValues:r.props.getValidFilterValues})}))},r.getColumnMetrics=function(){return r.state.resizing?r.state.resizing.columnMetrics:r.props.columnMetrics},r.getColumnPosition=function(e){var t=r.getColumnMetrics(),o=-1;return t.columns.forEach((function(t,r){t.key===e.key&&(o=r)})),-1===o?null:o},r.getCombinedHeaderHeights=function(e){var t=r.props.headerRows.length;void 0!==e&&(t=e);for(var o=0,n=0;n0&&void 0!==arguments[0]?arguments[0]:e.props,o=e.setupGridColumns(t);return e.getColumnMetricsType({columns:o,minColumnWidth:e.props.minColumnWidth,totalWidth:t.minWidth})},this.onColumnResize=function(t,o){var r=v.resizeColumn(e.state.columnMetrics,t,o);e.setState({columnMetrics:r}),e.props.onColumnResize&&e.props.onColumnResize(t,o)},this.onKeyDown=function(t){e._keysDown=e._keysDown||{},e._keysDown[t.keyCode]=!0;var o=e.props.onGridKeyDown;(0,f.isFunction)(o)&&o(t)},this.onKeyUp=function(t){e._keysDown=e._keysDown||{},delete e._keysDown[t.keyCode];var o=e.props.onGridKeyUp;(0,f.isFunction)(o)&&o(t)},this.isSingleKeyDown=function(t){return!!e._keysDown&&t in e._keysDown&&1===Object.keys(e._keysDown).length},this.onColumnEvent=function(t,o){var r=o.idx,n=o.name;if(n&&void 0!==r){var i=e.getColumn(r);if(i&&i.events&&(0,f.isFunction)(i.events[n])){var l={idx:r,rowIdx:o.rowIdx,rowId:o.rowId,column:i};i.events[n](t,l)}}},this.onCellClick=function(t){var o=t.rowIdx,r=t.idx,n=e.props,i=n.onRowClick,l=n.rowGetter;e.selectCell({rowIdx:o,idx:r}),(0,f.isFunction)(i)&&i(o,l(o),e.getColumn(r))},this.onCellMouseDown=function(t){e.selectStart(t)},this.onCellMouseEnter=function(t){e.selectUpdate(t)},this.onWindowMouseUp=function(){e.selectEnd()},this.onCellContextMenu=function(t){var o=t.rowIdx,r=t.idx;e.selectCell({rowIdx:o,idx:r})},this.onCellDoubleClick=function(t){var o=t.rowIdx,r=t.idx,n=e.props,i=n.onRowDoubleClick,l=n.rowGetter;(0,f.isFunction)(i)&&i(o,l(o),e.getColumn(r)),e.openCellEditor(o,r)},this.onToggleFilter=function(){e.setState({canFilter:!e.state.canFilter},(function(){!1===e.state.canFilter&&e.props.onClearFilters&&e.props.onClearFilters()}))},this.onDragHandleDoubleClick=function(t){if(e.props.onDragHandleDoubleClick&&e.props.onDragHandleDoubleClick(t),e.props.onGridRowsUpdated){var o=e.getColumn(t.idx).key;e.onGridRowsUpdated(o,t.rowIdx,e.props.rowsCount-1,(r={},n=o,i=t.rowData[o],n in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r),w.UpdateActions.COLUMN_FILL)}var r,n,i},this.onCellExpand=function(t){e.props.onCellExpand&&e.props.onCellExpand(t)},this.onRowExpandToggle=function(t){"function"==typeof e.props.onRowExpandToggle&&e.props.onRowExpandToggle(t)},this.onGridRowsUpdated=function(t,o,r,n,i,l){var a=e.props,s=a.rowGetter,u=a.rowKey,c=a.onGridRowsUpdated;if((0,f.isFunction)(e.props.onRowUpdated)&&e.props.onRowUpdated({updated:n,rowIdx:o,cellKey:t,value:n[t]}),(0,f.isFunction)(c)){for(var d=[],p=o;p<=r;p++)d.push(s(p)[u]);var h=s(i===w.UpdateActions.COPY_PASTE?l:o);c({cellKey:t,fromRow:o,toRow:r,fromRowId:h[u],toRowId:s(r)[u],rowIds:d,updated:n,action:i,fromRowData:h})}},this.onCommit=function(t){var o=t.rowIdx;e.onGridRowsUpdated(t.cellKey,o,o,t.updated,w.UpdateActions.CELL_UPDATE)},this.onScroll=function(t){(0,f.isFunction)(e.props.onScroll)&&e.props.onScroll(t)},this.handleSort=function(t,o){e.setState({sortDirection:o,sortColumn:t},(function(){e.props.onGridSort(t,o)}))},this.getSelectedRow=function(t,o){var r=t.filter((function(t){return t[e.props.rowKey]===o}));if(r.length>0)return r[0]},this.useNewRowSelection=function(){return e.props.rowSelection&&e.props.rowSelection.selectBy},this.handleShiftSelect=function(t){if(e.state.lastRowIdxUiSelected>-1&&e.isSingleKeyDown(p.default.Shift)){var o=e.props.rowSelection.selectBy,r=o.keys,n=o.indexes,i=o.isSelectedKey;if(c.default.isRowSelected(r,n,i,e.props.rowGetter(t),t))return!1;var l=!1;if(t>e.state.lastRowIdxUiSelected){for(var a=[],s=e.state.lastRowIdxUiSelected+1;s<=t;s++)a.push({rowIdx:s,row:e.props.rowGetter(s)});"function"==typeof e.props.rowSelection.onRowsSelected&&e.props.rowSelection.onRowsSelected(a),l=!0}else if(t0&&e.props.rowSelection.onRowsSelected(a)}else if(!o&&"function"==typeof e.props.rowSelection.onRowsDeselected){for(var d=[],p=0;p0&&e.props.rowSelection.onRowsDeselected(d)}}else{for(var h=[],g=0;g0&&void 0!==arguments[0]?arguments[0]:e.props,o=t.columns;if(e._cachedColumns===o)return e._cachedComputedColumns;e._cachedColumns=o;var r=o.slice(0),n={};if(e.props.rowActionsCell||t.enableRowSelect&&!e.props.rowSelection||t.rowSelection&&!1!==t.rowSelection.showCheckbox){var l=e.props.selectAllRenderer||h.default,a=i.default.createElement(l,{onChange:e.handleCheckboxChange,inputRef:function(t){return e.selectAllCheckbox=t}}),s="single"===t.enableRowSelect?null:a,c=e.props.rowActionsCell?e.props.rowActionsCell:u.default,d={key:"select-row",name:"",formatter:i.default.createElement(c,{rowSelection:e.props.rowSelection}),onCellChange:e.handleRowSelect,filterable:!1,headerRenderer:s,width:60,frozen:!0,getRowMetaData:function(e){return e},cellClass:e.props.rowActionsCell?"rdg-row-actions-cell":""};n=r.unshift(d),r=n>0?r:n}return e._cachedComputedColumns=r,e._cachedComputedColumns},this.setGridRef=function(t){e.grid=t},this.setBaseGridRef=function(t){e.base=t},this.renderToolbar=function(){var t=e.props.toolbar,o={columns:e.props.columns,onToggleFilter:e.onToggleFilter,numberOfRows:e.props.rowsCount};return i.default.isValidElement(t)?i.default.cloneElement(t,o):(0,f.isFunction)(t)?i.default.createElement(t,o):void 0}};e.exports=y},function(e,t,o){"use strict";var r=Object.assign||function(e){for(var t=1;t0&&o.splice(e,1)}}},{key:"dispatch",value:function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),r=1;r=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(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}o(391);var I=function(e){function t(){var e,o,r;S(this,t);for(var n=arguments.length,i=Array(n),l=0;l=o-2},p=function(e){return 0!==e.rowIdx&&e.rowIdx<=n-1},f={ArrowDown:{getNext:function(e){return r({},e,{rowIdx:e.rowIdx+1})},isCellAtBoundary:d,onHitBoundary:a},ArrowUp:{getNext:function(e){return r({},e,{rowIdx:e.rowIdx-1})},isCellAtBoundary:p,onHitBoundary:c},ArrowRight:{getNext:function(e){return r({},e,{idx:e.idx+1})},isCellAtBoundary:function(e){return 0!==e.idx&&e.idx>=i-1},onHitBoundary:function(e){s(e),d(e)&&a(e)}},ArrowLeft:{getNext:function(e){return r({},e,{idx:e.idx-1})},isCellAtBoundary:function(e){return 0!==e.idx&&e.idx<=l+1},onHitBoundary:function(e){u(e),p(e)&&c(e)}}};return e.keyCode===v.Tab?!0===e.shiftKey?f.ArrowLeft:f.ArrowRight:f[e.key]}},{key:"changeCellFromEvent",value:function(e){e.preventDefault();var t=e.keyCode===v.Tab,o=e.shiftKey;if(t){var r=this.props.cellNavigationMode===h.CellNavigationMode.NONE?h.CellNavigationMode.CHANGE_ROW:this.props.cellNavigationMode;this.changeCellFromKeyAction(e,r)}else o?this.changeSelectedRangeFromArrowKeyAction(e):this.changeCellFromKeyAction(e,this.props.cellNavigationMode)}},{key:"changeCellFromKeyAction",value:function(e,t){var o=this.state.selectedPosition,r=this.getKeyNavActionFromEvent(e),n=this.getNextSelectedCellPositionForKeyNavAction(r,o,t);this.checkIsAtGridBoundary(r,n),n.changeRowOrColumn;var i=x(n,["changeRowOrColumn"]);this.selectCell(i)}},{key:"changeSelectedRangeFromArrowKeyAction",value:function(e){var t=this,o=this.props.cellNavigationMode,r=this.state.selectedRange.cursorCell||this.state.selectedPosition,n=this.getKeyNavActionFromEvent(e),i=this.getNextSelectedCellPositionForKeyNavAction(n,r,o);this.checkIsAtGridBoundary(n,i),i.changeRowOrColumn;var l=x(i,["changeRowOrColumn"]);this.onSelectCellRangeUpdated(l,!0,(function(){t.onSelectCellRangeEnded()}))}},{key:"getNextSelectedCellPositionForKeyNavAction",value:function(e,t,o){var r=(0,e.getNext)(t),n=this.props,i=n.columns,l=n.rowsCount;return(0,w.getNextSelectedCellPosition)({columns:i,rowsCount:l,cellNavigationMode:o},r)}},{key:"checkIsAtGridBoundary",value:function(e,t){var o=e.isCellAtBoundary,r=e.onHitBoundary,n=t.changeRowOrColumn,i=x(t,["changeRowOrColumn"]);(o(i)||n)&&r(i)}},{key:"createSingleCellSelectedRange",value:function(e,t){return{topLeft:e,bottomRight:e,startCell:e,cursorCell:e,isDragging:t}}},{key:"render",value:function(){var e=this.props,t=e.rowGetter,o=e.contextMenu,n=e.rowHeight,a=e.getSelectedRowColumns,s=this.state,u=s.isEditorEnabled,p=s.firstEditorKeyPress,h=s.selectedPosition,g=s.draggedPosition,m=s.copiedPosition,b=(0,w.getSelectedRow)({selectedPosition:h,rowGetter:t}),v=a(h.rowIdx);return l.default.createElement("div",{onKeyDown:this.onKeyDown,onFocus:this.onFocus},m&&l.default.createElement(c.default,{copiedPosition:m,rowHeight:n,columns:a(m.rowIdx)}),g&&l.default.createElement(d.default,{draggedPosition:g,rowHeight:n,columns:a(g.rowIdx)}),(0,w.selectedRangeIsSingleCell)(this.state.selectedRange)?this.getSingleCellSelectView():this.getCellRangeSelectView(),u&&l.default.createElement(f.default,r({firstEditorKeyPress:p,onCommit:this.onCommit,onCommitCancel:this.onCommitCancel,rowIdx:h.rowIdx,value:(0,w.getSelectedCellValue)({selectedPosition:h,columns:v,rowGetter:t}),rowData:b,column:(0,w.getSelectedColumn)({selectedPosition:h,columns:v}),scrollLeft:this.props.scrollLeft,scrollTop:this.props.scrollTop},(0,w.getSelectedDimensions)({selectedPosition:h,rowHeight:n,columns:v}))),(0,i.isValidElement)(o)&&(0,i.cloneElement)(o,r({},h)))}}]),t}(l.default.Component);I.propTypes={colVisibleStartIdx:a.default.number.isRequired,colVisibleEndIdx:a.default.number.isRequired,rowVisibleStartIdx:a.default.number.isRequired,rowVisibleEndIdx:a.default.number.isRequired,rowOverscanStartIdx:a.default.number.isRequired,columns:a.default.array,width:a.default.number,rowHeight:a.default.number.isRequired,rowGetter:a.default.func.isRequired,rowsCount:a.default.number.isRequired,enableCellSelect:a.default.bool.isRequired,enableCellAutoFocus:a.default.bool.isRequired,cellNavigationMode:a.default.oneOf([h.CellNavigationMode.NONE,h.CellNavigationMode.LOOP_OVER_ROW,h.CellNavigationMode.CHANGE_ROW]).isRequired,eventBus:a.default.object.isRequired,contextMenu:a.default.element,onCheckCellIsEditable:a.default.func,onCellCopyPaste:a.default.func,onGridRowsUpdated:a.default.func.isRequired,onHitBottomBoundary:a.default.func.isRequired,onHitTopBoundary:a.default.func.isRequired,onHitRightBoundary:a.default.func.isRequired,onHitLeftBoundary:a.default.func.isRequired,onCommit:a.default.func.isRequired,onCommitCancel:a.default.func,onCellSelected:a.default.func,onCellDeSelected:a.default.func,onCellRangeSelectionStarted:a.default.func,onCellRangeSelectionUpdated:a.default.func,onCellRangeSelectionCompleted:a.default.func,onCellsDragged:a.default.func,onDragHandleDoubleClick:a.default.func.isRequired,scrollLeft:a.default.number.isRequired,prevScrollLeft:a.default.number.isRequired,scrollTop:a.default.number.isRequired,prevScrollTop:a.default.number.isRequired,rows:a.default.array.isRequired,getSelectedRowHeight:a.default.func.isRequired,getSelectedRowTop:a.default.func.isRequired,getSelectedRowColumns:a.default.func.isRequired};var O=function(){var e=this;this.state={selectedPosition:{idx:-1,rowIdx:-1},selectedRange:{topLeft:{idx:-1,rowIdx:-1},bottomRight:{idx:-1,rowIdx:-1}},copiedPosition:null,draggedPosition:null,frozenPosition:null,isEditorEnabled:!1,firstEditorKeyPress:null},this.onKeyDown=function(t){(0,g.isCtrlKeyHeldDown)(t)?e.onPressKeyWithCtrl(t):t.keyCode===v.Escape?e.onPressEscape(t):t.keyCode===v.Tab?e.onPressTab(t):e.isKeyboardNavigationEvent(t)?e.changeCellFromEvent(t):((0,g.isKeyPrintable)(t.keyCode)||-1!==[v.Backspace,v.Delete,v.Enter].indexOf(t.keyCode))&&e.openEditor(t)},this.isSelectedCellEditable=function(){var t=e.props,o=t.enableCellSelect,r=t.columns,n=t.rowGetter,i=t.onCheckCellIsEditable,l=e.state.selectedPosition;return(0,w.isSelectedCellEditable)({enableCellSelect:o,columns:r,rowGetter:n,selectedPosition:l,onCheckCellIsEditable:i})},this.openEditor=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.key;e.isSelectedCellEditable()&&!e.state.isEditorEnabled&&e.setState({isEditorEnabled:!0,firstEditorKeyPress:o})},this.closeEditor=function(){e.setState({isEditorEnabled:!1,firstEditorKeyPress:null})},this.onPressKeyWithCtrl=function(t){var o=t.keyCode;if(e.copyPasteEnabled())if(o===v.c){var r=e.props,n=r.columns,i=r.rowGetter,l=e.state.selectedPosition,a=(0,w.getSelectedCellValue)({selectedPosition:l,columns:n,rowGetter:i});e.handleCopy({value:a})}else o===v.v&&e.handlePaste()},this.onFocus=function(t){var o=!0===t.shiftKey,r=e.state.selectedPosition,n=r.idx,i=r.rowIdx;-1===n&&-1===i&&(o?e.selectLastCell():e.selectFirstCell())},this.onPressTab=function(t){var o=e.props,r=o.cellNavigationMode,n=o.columns,i=o.rowsCount,l=e.state,a=l.selectedPosition,s=l.isEditorEnabled;if(0!==i)return(0,w.canExitGrid)(t,{cellNavigationMode:r,columns:n,rowsCount:i,selectedPosition:a})?s?void e.closeEditor():void e.setState({selectedPosition:{idx:-1,rowIdx:-1}}):void e.changeCellFromEvent(t)},this.onPressEscape=function(){e.copyPasteEnabled()&&(e.handleCancelCopy(),e.closeEditor())},this.copyPasteEnabled=function(){return null!==e.props.onCellCopyPaste&&e.isSelectedCellEditable()},this.handleCopy=function(t){var o=t.value,r=e.state.selectedPosition,n=r.rowIdx,i=r.idx;e.setState({copiedPosition:{rowIdx:n,idx:i,value:o}})},this.handleCancelCopy=function(){e.setState({copiedPosition:null})},this.handlePaste=function(){var t=e.props,o=t.columns,r=t.onCellCopyPaste,n=t.onGridRowsUpdated,i=e.state,l=i.selectedPosition,a=i.copiedPosition,s=l.rowIdx;if(null!=a){var u=(0,w.getSelectedColumn)({selectedPosition:l,columns:o}).key,c=a.rowIdx,d=a.value;(0,m.isFunction)(r)&&r({cellKey:u,rowIdx,fromRow:c,toRow:s,value:d}),n(u,s,s,R({},u,d),h.UpdateActions.COPY_PASTE,c)}},this.isCellWithinBounds=function(t){var o=t.idx,r=t.rowIdx,n=e.props,i=n.columns,l=n.rowsCount;return r>=0&&r=0&&o-1&&i){t.dataTransfer.effectAllowed="copy";var l=JSON.stringify({idx:r,rowIdx:n});try{t.dataTransfer.setData("text/plain",l)}catch(e){t.dataTransfer.setData("text",l)}e.setState({draggedPosition:{idx:r,rowIdx:n}})}},this.handleDragEnter=function(t){var o=t.overRowIdx;null!=e.state.draggedPosition&&e.setState((function(e){var t=e.draggedPosition;return{draggedPosition:r({},t,{overRowIdx:o})}}))},this.handleDragEnd=function(){var t=e.state.draggedPosition;if(null!=t){var o=t.rowIdx,r=t.overRowIdx;if(null!=r){var n=e.props,i=n.columns,l=n.onCellsDragged,a=n.onGridRowsUpdated,s=n.rowGetter,u=(0,w.getSelectedColumn)({selectedPosition:t,columns:i}),c=(0,w.getSelectedCellValue)({selectedPosition:t,columns:i,rowGetter:s}),d=u.key,p=or?o:r;(0,m.isFunction)(l)&&l({cellKey:d,fromRow:p,toRow:f,value:c}),(0,m.isFunction)(a)&&a(d,p,f,R({},d,c),h.UpdateActions.CELL_DRAG)}e.setState({draggedPosition:null})}},this.onDragHandleDoubleClick=function(){var t=e.props,o=t.onDragHandleDoubleClick,r=t.rowGetter,n=e.state.selectedPosition;o({idx:n.idx,rowIdx:n.rowIdx,rowData:(0,w.getSelectedRow)({selectedPosition:n,rowGetter:r})})},this.onCommit=function(){var t;(t=e.props).onCommit.apply(t,arguments),e.closeEditor()},this.onCommitCancel=function(){e.closeEditor()},this.setSelectionMaskRef=function(t){e.selectionMask=t},this.getSelectionMaskProps=function(){var t=e.props,o=t.columns,r=t.getSelectedRowHeight,n=t.getSelectedRowTop,i=t.scrollLeft;return{columns:o,scrollTop:t.scrollTop,scrollLeft:i,getSelectedRowHeight:r,getSelectedRowTop:n,prevScrollLeft:t.prevScrollLeft,prevScrollTop:t.prevScrollTop,prevSelectedPosition:e.state.prevSelectedPosition,isGroupedRow:e.isGroupedRowSelected(),innerRef:e.setSelectionMaskRef}},this.getSingleCellSelectView=function(){var t=e.state.selectedPosition;return!e.state.isEditorEnabled&&e.isGridSelected()&&l.default.createElement(s.default,r({selectedPosition:t},e.getSelectionMaskProps()),e.isDragEnabled()&&l.default.createElement(p.default,{onDragStart:e.handleDragStart,onDragEnd:e.handleDragEnd,onDoubleClick:e.onDragHandleDoubleClick}))},this.getCellRangeSelectView=function(){var t=e.props,o=t.columns,n=t.rowHeight;return[l.default.createElement(u.default,{key:"range-mask",selectedRange:e.state.selectedRange,columns:o,rowHeight:n}),l.default.createElement(s.default,r({key:"selection-mask",selectedPosition:e.state.selectedRange.startCell},e.getSelectionMaskProps()))]}};t.default=I},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCellMaskDimensions=void 0;var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o}(e,["children","innerRef"]),a=p(i),s=c(i.columns,i.selectedPosition)&&d(i)?"fixed":"absolute";return n.default.createElement(l.default,r({},a,{className:"rdg-selected",position:s,innerRef:o,tabIndex:"0"}),t)}f.propTypes={selectedPosition:i.default.object.isRequired,columns:i.default.array.isRequired,innerRef:i.default.func},t.default=f},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;tn)return d-n}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getColOverscanEndIdx=t.getColOverscanStartIdx=t.getRowOverscanEndIdx=t.getRowOverscanStartIdx=t.getScrollDirection=t.getVisibleBoundaries=t.getNonFrozenRenderedColumnCount=t.getNonFrozenVisibleColStartIdx=t.findLastFrozenColumnIndex=t.getGridState=t.SCROLL_DIRECTION=t.OVERSCAN_ROWS=void 0;var r,n=(r=o(6))&&r.__esModule?r:{default:r},i=t.OVERSCAN_ROWS=2,l=t.SCROLL_DIRECTION={UP:"upwards",DOWN:"downwards",LEFT:"left",RIGHT:"right",NONE:"none"},a=Math.min,s=Math.max,u=Math.ceil,c=(t.getGridState=function(e){var t=n.default.getSize(e.columnMetrics.columns),o=e.minHeight-e.rowOffsetHeight,r=u((e.minHeight-e.rowHeight)/e.rowHeight);return{rowOverscanStartIdx:0,rowOverscanEndIdx:a(e.rowsCount,2*r),rowVisibleStartIdx:0,rowVisibleEndIdx:r,height:o,scrollTop:0,scrollLeft:0,colVisibleStartIdx:0,colVisibleEndIdx:t,colOverscanStartIdx:0,colOverscanEndIdx:t,isScrolling:!1,lastFrozenColumnIndex:0}},t.findLastFrozenColumnIndex=function(e){var t=-1;return e.forEach((function(e,o){n.default.isFrozen(e)&&(t=o)})),t}),d=t.getNonFrozenVisibleColStartIdx=function(e,t){for(var o=t,r=c(e),i=e.slice(r+1),l=r;o>=0&&l-1){var o=n.default.getColumn(e,t);return o.left+o.width}return 0}(e.columns),a=t>0?t:e.totalColumnWidth,s=n.default.getColumn(e.columns,i),u=l+o,p=a-l+(u>s.left?u-s.left:0),f=function(e,t,o){var r={width:t,count:0};return e.slice(o).reduce((function(e,t){var o=e.width,r=e.count,n=o-t.width;return{width:n,count:n>=0?r+1:r}}),r)}(e.columns,p,i);return f.count},t.getVisibleBoundaries=function(e,t,o,r){var n=u(e/t),i=s(0,Math.round(o/t));return{rowVisibleStartIdx:i,rowVisibleEndIdx:a(i+n,r)}},t.getScrollDirection=function(e,t,o){return t!==e.scrollTop&&void 0!==e.scrollTop?t-e.scrollTop>=0?l.DOWN:l.UP:o!==e.scrollLeft&&void 0!==e.scrollLeft?o-e.scrollLeft>=0?l.RIGHT:l.LEFT:l.NONE},t.getRowOverscanStartIdx=function(e,t){return s(0,e===l.UP?t-i:t)},t.getRowOverscanEndIdx=function(e,t,o){return e===l.DOWN?a(t+i,o):t},t.getColOverscanStartIdx=function(e,t,o){return e===l.LEFT||e===l.RIGHT?o>-1?o+1:0:t},t.getColOverscanEndIdx=function(e,t,o){return e===l.DOWN||e===l.UP?t:o}},,function(e,t,o){(e.exports=o(8)()).push([e.id,'.rdg-selected{border:2px solid #66afe9}.rdg-selected .drag-handle{pointer-events:auto;position:absolute;bottom:-5px;right:-4px;background:#66afe9;width:8px;height:8px;border:1px solid #fff;border-right:0;border-bottom:0;z-index:8;cursor:crosshair;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.rdg-selected:hover .drag-handle{bottom:-8px;right:-7px;background:#fff;width:16px;height:16px;border:1px solid #66afe9}.rdg-selected:hover .drag-handle .glyphicon-arrow-down{display:"block"}.react-grid-cell-dragged-over-down,.react-grid-cell-dragged-over-up{border:1px dashed #000;background:rgba(0,0,255,.2)!important}.react-grid-cell-dragged-over-up{border-bottom-width:0}.react-grid-cell-dragged-over-down{border-top-width:0}.react-grid-cell-copied{background:rgba(0,0,255,.2)!important}.rdg-editor-container input.editor-main,select.editor-main{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}input.editor-main:focus,select.editor-main:focus{border-color:#66afe9;border:2px solid #66afe9;background:#eee;border-radius:4px}.rdg-editor-container input.editor-main::-moz-placeholder,select.editor-main::-moz-placeholder{color:#999;opacity:1}.rdg-editor-container input.editor-main:-ms-input-placeholder,select.editor-main:-ms-input-placeholder{color:#999}.rdg-editor-container input.editor-main::-webkit-input-placeholder,select.editor-main::-webkit-input-placeholder{color:#999}.rdg-editor-container input.editor-main[disabled],.rdg-editor-container input.editor-main[readonly],fieldset[disabled] .rdg-editor-container input.editor-main,fieldset[disabled] select.editor-main,select.editor-main[disabled],select.editor-main[readonly]{cursor:not-allowed;background-color:#eee;opacity:1}textarea.rdg-editor-container input.editor-main,textareaselect.editor-main{height:auto}',""])},function(e,t,o){(e.exports=o(8)()).push([e.id,".react-grid-Container{clear:both;margin-top:0;padding:0}.react-grid-Main{background-color:#fff;color:inherit;padding:0;outline:1px solid #e7eaec;clear:both}.react-grid-Grid{border:1px solid #ddd;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.react-grid-Canvas,.react-grid-Grid{background-color:#fff}",""])},,function(e,t,o){(e.exports=o(8)()).push([e.id,".react-grid-Header{box-shadow:0 0 4px 0 #ddd;background:#f9f9f9}.react-grid-Header--resizing{cursor:ew-resize}.react-grid-HeaderCell,.react-grid-HeaderRow{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.react-grid-HeaderCell{background:#f9f9f9;padding:8px;font-weight:700;border-right:1px solid #ddd;border-bottom:1px solid #ddd}.react-grid-HeaderCell__value{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;position:relative;top:50%;transform:translateY(-50%)}.react-grid-HeaderCell__resizeHandle:hover{cursor:ew-resize;background:#ddd}.react-grid-HeaderCell--frozen:last-of-type{box-shadow:2px 0 5px -2px hsla(0,0%,53%,.3)}.react-grid-HeaderCell--resizing .react-grid-HeaderCell__resizeHandle{background:#ddd}.react-grid-HeaderCell__draggable{cursor:col-resize}.rdg-can-drop>.react-grid-HeaderCell{background:#ececec}.react-grid-HeaderCell .Select{max-height:30px;font-size:12px;font-weight:400}.react-grid-HeaderCell .Select-control{max-height:30px;border:1px solid #ccc;color:#555;border-radius:3px}.react-grid-HeaderCell .is-focused:not(.is-open)>.Select-control{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.react-grid-HeaderCell .Select-control .Select-placeholder{line-height:20px;color:#999;padding:4px}.react-grid-HeaderCell .Select-control .Select-input{max-height:28px;padding:4px;margin-left:0}.react-grid-HeaderCell .Select-control .Select-input input{padding:0;height:100%}.react-grid-HeaderCell .Select-control .Select-arrow-zone .Select-arrow{border-color:gray transparent transparent;border-width:4px 4px 2.5px}.react-grid-HeaderCell .Select-control .Select-value{padding:4px;line-height:20px!important}.react-grid-HeaderCell .Select--multi .Select-control .Select-value{padding:0;line-height:16px!important;max-height:20px}.react-grid-HeaderCell .Select--multi .Select-control .Select-value .Select-value-icon,.react-grid-HeaderCell .Select--multi .Select-control .Select-value .Select-value-label{max-height:20px}.react-grid-HeaderCell .Select-control .Select-value .Select-value-label{color:#555!important}.react-grid-HeaderCell .Select-menu-outer{z-index:2}.react-grid-HeaderCell .Select-menu-outer .Select-option{padding:4px;line-height:20px}.react-grid-HeaderCell .Select-menu-outer .Select-menu .Select-option.is-focused,.react-grid-HeaderCell .Select-menu-outer .Select-menu .Select-option.is-selected{color:#555}",""])},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t{e.exports=o(140464)},828878:(e,t,o)=>{"use strict";var r,n={fromESObservable:((r=o(49977))&&r.__esModule?r:{default:r}).default.Observable.from,toESObservable:function(e){return e}};t.Z=n}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/19347.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt b/geonode_mapstore_client/static/mapstore/dist/js/19347.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/19347.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt rename to geonode_mapstore_client/static/mapstore/dist/js/19347.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt diff --git a/geonode_mapstore_client/static/mapstore/dist/js/1947.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/1947.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/1947.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/1947.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/19717.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/19717.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/19717.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/19717.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/19902.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/19902.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/19902.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/19902.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/19920.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/19920.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/19920.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/19920.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/19945.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/19945.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/19945.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/19945.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20090.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20090.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20090.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20090.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20154.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20154.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20154.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20154.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20202.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20202.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20202.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20202.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20218.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20218.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20218.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20218.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20279.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20279.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20279.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20279.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20355.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20355.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20355.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20355.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20391.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20391.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20391.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20391.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20518.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20518.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20518.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20518.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20523.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20523.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20523.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20523.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20689.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20689.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20689.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20689.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20724.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20724.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20724.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20724.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/20810.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/20810.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/20810.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/20810.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/21082.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/21082.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/21082.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/21082.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/21092.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/21092.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/21092.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/21092.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/21342.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/21342.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/21342.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/21342.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/21364.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/21364.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/21364.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/21364.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/21431.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/21431.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/21431.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/21431.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/21508.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/21508.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/21508.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/21508.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/21646.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/21646.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/21646.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/21646.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/21672.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/21672.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/21672.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/21672.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/21689.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/21689.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/21689.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/21689.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/21706.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/21706.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/21706.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/21706.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/21869.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/21869.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/21869.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/21869.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22010.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22010.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22010.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22010.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22079.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22079.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22079.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22079.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22149.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22149.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22149.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22149.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22229.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22229.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22229.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22229.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22320.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22320.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22320.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22320.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22340.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22340.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22340.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22340.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22426.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22426.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22426.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22426.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22466.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22466.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22466.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22466.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22589.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22589.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22589.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22589.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22685.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22685.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22685.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22685.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22861.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22861.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22861.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22861.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22882.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22882.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22882.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22882.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22938.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22938.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22938.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22938.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/2294.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/2294.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/2294.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/2294.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/22990.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/22990.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/22990.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/22990.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/23330.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/23330.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/23330.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/23330.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/23456.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/23456.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/23456.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/23456.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/23541.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/23541.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/23541.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/23541.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/23583.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/23583.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/23583.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/23583.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/23596.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/23596.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/23596.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/23596.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/23663.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/23663.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/23663.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/23663.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/23677.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/23677.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/23677.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/23677.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/23751.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/23751.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/23751.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/23751.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/23801.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/23801.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/23801.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/23801.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/24034.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/24034.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/24034.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/24034.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/24111.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/24111.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/24111.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/24111.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/24165.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/24165.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/24165.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/24165.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/2433.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/2433.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/2433.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/2433.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/24371.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/24371.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/24371.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/24371.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/24548.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/24548.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/24548.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/24548.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/24592.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/24592.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/24592.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/24592.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/2461.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/2461.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/2461.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/2461.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/24693.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/24693.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/24693.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/24693.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/24794.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/24794.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/24794.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/24794.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/24850.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/24850.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/24850.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/24850.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/24896.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/24896.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/24896.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/24896.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/2495.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/2495.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/2495.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/2495.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/24968.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/24968.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/24968.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/24968.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25088.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25088.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25088.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25088.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25134.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25134.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25134.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25134.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25243.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25243.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25243.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25243.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25250.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25250.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25250.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25250.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25337.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25337.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25337.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25337.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25339.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25339.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25339.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25339.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25352.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25352.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25352.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25352.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25450.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25450.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25450.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25450.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25574.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25574.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25574.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25574.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25594.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25594.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25594.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25594.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25678.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25678.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25678.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25678.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/2568.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/2568.74fb1733f89b05e9e60d.chunk.js similarity index 98% rename from geonode_mapstore_client/static/mapstore/dist/js/2568.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/2568.74fb1733f89b05e9e60d.chunk.js index b74bdc1180..bc33c659f2 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/2568.b32b32d2650f7cc681c9.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/2568.74fb1733f89b05e9e60d.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 2568.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt */ +/*! For license information please see 2568.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[2568],{540487:r=>{var n={utf8:{stringToBytes:function(r){return n.bin.stringToBytes(unescape(encodeURIComponent(r)))},bytesToString:function(r){return decodeURIComponent(escape(n.bin.bytesToString(r)))}},bin:{stringToBytes:function(r){for(var n=[],t=0;t{var n,t;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(r,n){return r<>>32-n},rotr:function(r,n){return r<<32-n|r>>>n},endian:function(r){if(r.constructor==Number)return 16711935&t.rotl(r,8)|4278255360&t.rotl(r,24);for(var n=0;n0;r--)n.push(Math.floor(256*Math.random()));return n},bytesToWords:function(r){for(var n=[],t=0,e=0;t>>5]|=r[t]<<24-e%32;return n},wordsToBytes:function(r){for(var n=[],t=0;t<32*r.length;t+=8)n.push(r[t>>>5]>>>24-t%32&255);return n},bytesToHex:function(r){for(var n=[],t=0;t>>4).toString(16)),n.push((15&r[t]).toString(16));return n.join("")},hexToBytes:function(r){for(var n=[],t=0;t>>6*(3-u)&63)):t.push("=");return t.join("")},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],e=0,o=0;e>>6-2*o);return t}},r.exports=t},848738:r=>{function n(r){return!!r.constructor&&"function"==typeof r.constructor.isBuffer&&r.constructor.isBuffer(r)}r.exports=function(r){return null!=r&&(n(r)||function(r){return"function"==typeof r.readFloatLE&&"function"==typeof r.slice&&n(r.slice(0,0))}(r)||!!r._isBuffer)}},402568:(r,n,t)=>{var e,o,u,i,s;e=t(971012),o=t(540487).utf8,u=t(848738),i=t(540487).bin,(s=function(r,n){r.constructor==String?r=n&&"binary"===n.encoding?i.stringToBytes(r):o.stringToBytes(r):u(r)?r=Array.prototype.slice.call(r,0):Array.isArray(r)||r.constructor===Uint8Array||(r=r.toString());for(var t=e.bytesToWords(r),f=8*r.length,a=1732584193,c=-271733879,h=-1732584194,g=271733878,l=0;l>>24)|4278255360&(t[l]<<24|t[l]>>>8);t[f>>>5]|=128<>>9<<4)]=f;var p=s._ff,y=s._gg,v=s._hh,d=s._ii;for(l=0;l>>0,c=c+T>>>0,h=h+B>>>0,g=g+_>>>0}return e.endian([a,c,h,g])})._ff=function(r,n,t,e,o,u,i){var s=r+(n&t|~n&e)+(o>>>0)+i;return(s<>>32-u)+n},s._gg=function(r,n,t,e,o,u,i){var s=r+(n&e|t&~e)+(o>>>0)+i;return(s<>>32-u)+n},s._hh=function(r,n,t,e,o,u,i){var s=r+(n^t^e)+(o>>>0)+i;return(s<>>32-u)+n},s._ii=function(r,n,t,e,o,u,i){var s=r+(t^(n|~e))+(o>>>0)+i;return(s<>>32-u)+n},s._blocksize=16,s._digestsize=16,r.exports=function(r,n){if(null==r)throw new Error("Illegal argument "+r);var t=e.wordsToBytes(s(r,n));return n&&n.asBytes?t:n&&n.asString?i.bytesToString(t):e.bytesToHex(t)}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/2568.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt b/geonode_mapstore_client/static/mapstore/dist/js/2568.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/2568.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt rename to geonode_mapstore_client/static/mapstore/dist/js/2568.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25722.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25722.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25722.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25722.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25734.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25734.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25734.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25734.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25750.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25750.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25750.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25750.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25772.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25772.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25772.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25772.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25993.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25993.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25993.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25993.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/25996.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/25996.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/25996.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/25996.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/2607.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/2607.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/2607.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/2607.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/26080.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/26080.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/26080.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/26080.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/26123.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/26123.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/26123.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/26123.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/2629.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/2629.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/2629.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/2629.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/26374.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/26374.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/26374.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/26374.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/26411.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/26411.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/26411.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/26411.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/26417.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/26417.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/26417.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/26417.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/26483.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/26483.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/26483.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/26483.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/26532.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/26532.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/26532.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/26532.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/26597.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/26597.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/26597.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/26597.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/26921.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/26921.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/26921.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/26921.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27002.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27002.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27002.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27002.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27004.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27004.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27004.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27004.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27111.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27111.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27111.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27111.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27290.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27290.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27290.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27290.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27308.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27308.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27308.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27308.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27311.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27311.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27311.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27311.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27412.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27412.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27412.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27412.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27414.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27414.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27414.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27414.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27431.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27431.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27431.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27431.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27508.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27508.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27508.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27508.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27529.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27529.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27529.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27529.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/2764.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/2764.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/2764.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/2764.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27646.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27646.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27646.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27646.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27703.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27703.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27703.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27703.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27870.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27870.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27870.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27870.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27943.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27943.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27943.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27943.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/2799.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/2799.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/2799.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/2799.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/27998.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/27998.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/27998.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/27998.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/28179.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/28179.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/28179.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/28179.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/28291.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/28291.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/28291.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/28291.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/2830.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/2830.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/2830.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/2830.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/28337.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/28337.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/28337.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/28337.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/284.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/284.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/284.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/284.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/28525.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/28525.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/28525.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/28525.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/28606.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/28606.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/28606.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/28606.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/28987.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/28987.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/28987.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/28987.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/29139.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/29139.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/29139.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/29139.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/29290.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/29290.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/29290.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/29290.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/29298.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/29298.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/29298.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/29298.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/2976.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/2976.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/2976.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/2976.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/29844.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/29844.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/29844.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/29844.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/29935.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/29935.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/29935.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/29935.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/29970.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/29970.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/29970.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/29970.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/30015.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/30015.74fb1733f89b05e9e60d.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/js/30015.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/30015.74fb1733f89b05e9e60d.chunk.js index 0b7cb2e108..e2f3a27d2f 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/30015.b32b32d2650f7cc681c9.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/30015.74fb1733f89b05e9e60d.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 30015.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt */ +/*! For license information please see 30015.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[30015],{140537:(e,t,i)=>{"use strict";i.d(t,{Z:()=>x});var n=i(360791),r=i(913216),o=i(337968),s=i(919382),a=i(698907),c=i(357299),u=i(406144),l=i(426468),h=i(446938),d=i(253316),f=i(910946),p=i(523501),m=i(795788);const _=new s.Z,Z=new s.Z,g=new a.Z,y=new s.Z,b=new s.Z,A=new n.Z,w=new f.Z,v=[new a.Z,new a.Z,new a.Z,new a.Z],T=new o.Z,C={};function E(e){a.Z.fromRadians(e.east,e.north,0,v[0]),a.Z.fromRadians(e.west,e.north,0,v[1]),a.Z.fromRadians(e.east,e.south,0,v[2]),a.Z.fromRadians(e.west,e.south,0,v[3]);let t=0,i=0,n=0,r=0;const o=C._terrainHeightsMaxLevel;let s;for(s=0;s<=o;++s){let e=!1;for(let t=0;t<4;++t){const i=v[t];if(w.positionToTileXY(i,s,T),0===t)n=T.x,r=T.y;else if(n!==T.x||r!==T.y){e=!0;break}}if(e)break;t=n,i=r}if(0!==s)return{x:t,y:i,level:s>o?o:s-1}}C.initialize=function(){let e=C._initPromise;return(0,l.Z)(e)||(e=m.Z.fetchJson((0,r.Z)("Assets/approximateTerrainHeights.json")).then((function(e){C._terrainHeights=e})),C._initPromise=e),e},C.getMinimumMaximumHeights=function(e,t){if(c.Z.defined("rectangle",e),!(0,l.Z)(C._terrainHeights))throw new h.Z("You must call ApproximateTerrainHeights.initialize and wait for the promise to resolve before using this function");t=(0,u.Z)(t,d.Z.WGS84);const i=E(e);let n=C._defaultMinTerrainHeight,r=C._defaultMaxTerrainHeight;if((0,l.Z)(i)){const o=i.level+"-"+i.x+"-"+i.y,a=C._terrainHeights[o];(0,l.Z)(a)&&(n=a[0],r=a[1]),t.cartographicToCartesian(p.Z.northeast(e,g),_),t.cartographicToCartesian(p.Z.southwest(e,g),Z),s.Z.midpoint(Z,_,y);const c=t.scaleToGeodeticSurface(y,b);if((0,l.Z)(c)){const e=s.Z.distance(y,c);n=Math.min(n,-e)}else n=C._defaultMinTerrainHeight}return n=Math.max(C._defaultMinTerrainHeight,n),{minimumTerrainHeight:n,maximumTerrainHeight:r}},C.getBoundingSphere=function(e,t){if(c.Z.defined("rectangle",e),!(0,l.Z)(C._terrainHeights))throw new h.Z("You must call ApproximateTerrainHeights.initialize and wait for the promise to resolve before using this function");t=(0,u.Z)(t,d.Z.WGS84);const i=E(e);let r=C._defaultMaxTerrainHeight;if((0,l.Z)(i)){const e=i.level+"-"+i.x+"-"+i.y,t=C._terrainHeights[e];(0,l.Z)(t)&&(r=t[1])}const o=n.Z.fromRectangle3D(e,t,0);return n.Z.fromRectangle3D(e,t,r,A),n.Z.union(o,A,o)},C._terrainHeightsMaxLevel=6,C._defaultMaxTerrainHeight=9e3,C._defaultMinTerrainHeight=-1e5,C._terrainHeights=void 0,C._initPromise=void 0,Object.defineProperties(C,{initialized:{get:function(){return(0,l.Z)(C._terrainHeights)}}});const x=C},897626:(e,t,i)=>{"use strict";i.d(t,{Z:()=>S});var n=i(527758),r=i(337968),o=i(846748),s=i(406144),a=i(426468),c=i(446938),u=i(253316),l=i(197685),h=i(910946),d=i(41532),f=i(520715),p=i(523501),m=i(261045),_=i(316954),Z=i(690220),g=i(795788),y=i(50128),b=i(950714),A=i(969698),w=i(723822),v=i(310526);function T(e){if(!(0,a.Z)(e)||!(0,a.Z)(e.url))throw new c.Z("options.url is required.");this._resource=void 0,this._credit=void 0,this._tilingScheme=void 0,this._levelZeroMaximumGeometricError=void 0,this._maxLevel=void 0,this._terrainDataStructure=void 0,this._ready=!1,this._width=void 0,this._height=void 0,this._encoding=void 0;const t=e.token;this._hasAvailability=!1,this._tilesAvailable=void 0,this._tilesAvailablityLoaded=void 0,this._availableCache={};const i=this,f=(0,s.Z)(e.ellipsoid,u.Z.WGS84);this._readyPromise=(0,n.Z)(e.url).then((function(e){let n=g.Z.createIfNeeded(e);return n.appendForwardSlash(),(0,a.Z)(t)&&(n=n.getDerivedResource({queryParameters:{token:t}})),i._resource=n,n.getDerivedResource({queryParameters:{f:"pjson"}}).fetchJson()})).then((function(e){const t=e.copyrightText;(0,a.Z)(t)&&(i._credit=new o.Z(t));const c=e.spatialReference,u=(0,s.Z)(c.latestWkid,c.wkid),l=e.extent,m={ellipsoid:f};if(4326===u)m.rectangle=p.Z.fromDegrees(l.xmin,l.ymin,l.xmax,l.ymax),i._tilingScheme=new h.Z(m);else{if(3857!==u)return n.Z.reject(new y.Z("Invalid spatial reference"));m.rectangleSouthwestInMeters=new r.Z(l.xmin,l.ymin),m.rectangleNortheastInMeters=new r.Z(l.xmax,l.ymax),i._tilingScheme=new v.Z(m)}const _=e.tileInfo;return(0,a.Z)(_)?(i._width=_.rows+1,i._height=_.cols+1,i._encoding="LERC"===_.format?d.Z.LERC:d.Z.NONE,i._lodCount=_.lods.length-1,(i._hasAvailability=-1!==e.capabilities.indexOf("Tilemap"))&&(i._tilesAvailable=new A.Z(i._tilingScheme,i._lodCount),i._tilesAvailable.addAvailableTileRange(0,0,0,i._tilingScheme.getNumberOfXTilesAtLevel(0),i._tilingScheme.getNumberOfYTilesAtLevel(0)),i._tilesAvailablityLoaded=new A.Z(i._tilingScheme,i._lodCount)),i._levelZeroMaximumGeometricError=b.Z.getEstimatedLevelZeroGeometricErrorForAHeightmap(i._tilingScheme.ellipsoid,i._width,i._tilingScheme.getNumberOfXTilesAtLevel(0)),e.bandCount>1&&console.log("ArcGISTiledElevationTerrainProvider: Terrain data has more than 1 band. Using the first one."),i._terrainDataStructure={elementMultiplier:1,lowestEncodedHeight:e.minValues[0],highestEncodedHeight:e.maxValues[0]},i._ready=!0,!0):n.Z.reject(new y.Z("tileInfo is required"))})).otherwise((function(e){const t="An error occurred while accessing "+i._resource.url+".";return w.Z.handleError(void 0,i,i._errorEvent,t),n.Z.reject(e)})),this._errorEvent=new l.Z}function C(e,t,i,n){if(!e._hasAvailability)return;const r=e._tilesAvailablityLoaded,o=e._tilesAvailable;return!(t>e._lodCount)&&(!!o.isTileAvailable(t,i,n)||!r.isTileAvailable(t,i,n)&&void 0)}function E(e,t,i,n){const o=t-1,s=i-1,a=n[e.y*t+e.x],c=[],u={startX:e.x,startY:e.y,endX:0,endY:0},l=new r.Z(e.x+1,e.y+1);let h=!1,d=!1;for(;!h||!d;){let i=l.x;const f=d?l.y+1:l.y;if(!h){for(let i=e.y;i0;){const r=E(a.pop(),i,n,o);if(1===r.value){const i=r.range;i.startX+=e,i.endX+=e,i.startY+=t,i.endY+=t,s.push(i)}const c=r.endingIndices;c.length>0&&(a=a.concat(c))}return s}(o,s,c,c,a.data);e._tilesAvailablityLoaded.addAvailableTileRange(t,o,s,o+c,s+c);const l=e._tilesAvailable;for(let e=0;e{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({NONE:0,GEODESIC:1,RHUMB:2})},878438:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(426468),r=i(446938);function o(){this._array=[],this._hash={}}Object.defineProperties(o.prototype,{length:{get:function(){return this._array.length}},values:{get:function(){return this._array}}}),o.prototype.contains=function(e){if("string"!=typeof e&&"number"!=typeof e)throw new r.Z("key is required to be a string or number.");return(0,n.Z)(this._hash[e])},o.prototype.set=function(e,t){if("string"!=typeof e&&"number"!=typeof e)throw new r.Z("key is required to be a string or number.");t!==this._hash[e]&&(this.remove(e),this._hash[e]=t,this._array.push(t))},o.prototype.get=function(e){if("string"!=typeof e&&"number"!=typeof e)throw new r.Z("key is required to be a string or number.");return this._hash[e]},o.prototype.remove=function(e){if((0,n.Z)(e)&&"string"!=typeof e&&"number"!=typeof e)throw new r.Z("key is required to be a string or number.");const t=this._hash[e],i=(0,n.Z)(t);if(i){const i=this._array;i.splice(i.indexOf(t),1),delete this._hash[e]}return i},o.prototype.removeAll=function(){const e=this._array;e.length>0&&(this._hash={},e.length=0)};const s=o},247976:(e,t,i)=>{"use strict";i.d(t,{Z:()=>g});var n=i(337968),r=i(919382),o=i(997274),s=i(357299),a=i(426468),c=i(446938),u=i(362017),l=i(295189);const h=1/256,d={octEncodeInRange:function(e,t,i){s.Z.defined("vector",e),s.Z.defined("result",i);const n=r.Z.magnitudeSquared(e);if(Math.abs(n-1)>u.Z.EPSILON6)throw new c.Z("vector must be normalized.");if(i.x=e.x/(Math.abs(e.x)+Math.abs(e.y)+Math.abs(e.z)),i.y=e.y/(Math.abs(e.x)+Math.abs(e.y)+Math.abs(e.z)),e.z<0){const e=i.x,t=i.y;i.x=(1-Math.abs(t))*u.Z.signNotZero(e),i.y=(1-Math.abs(e))*u.Z.signNotZero(t)}return i.x=u.Z.toSNorm(i.x,t),i.y=u.Z.toSNorm(i.y,t),i},octEncode:function(e,t){return d.octEncodeInRange(e,255,t)}},f=new n.Z,p=new Uint8Array(1);function m(e){return p[0]=e,p[0]}d.octEncodeToCartesian4=function(e,t){return d.octEncodeInRange(e,65535,f),t.x=m(f.x*h),t.y=m(f.x),t.z=m(f.y*h),t.w=m(f.y),t},d.octDecodeInRange=function(e,t,i,n){if(s.Z.defined("result",n),e<0||e>i||t<0||t>i)throw new c.Z("x and y must be unsigned normalized integers between 0 and "+i);if(n.x=u.Z.fromSNorm(e,i),n.y=u.Z.fromSNorm(t,i),n.z=1-(Math.abs(n.x)+Math.abs(n.y)),n.z<0){const e=n.x;n.x=(1-Math.abs(n.y))*u.Z.signNotZero(e),n.y=(1-Math.abs(e))*u.Z.signNotZero(n.y)}return r.Z.normalize(n,n)},d.octDecode=function(e,t,i){return d.octDecodeInRange(e,t,255,i)},d.octDecodeFromCartesian4=function(e,t){s.Z.typeOf.object("encoded",e),s.Z.typeOf.object("result",t);const i=e.x,n=e.y,r=e.z,o=e.w;if(i<0||i>255||n<0||n>255||r<0||r>255||o<0||o>255)throw new c.Z("x, y, z, and w must be unsigned normalized integers between 0 and 255");const a=256*i+n,u=256*r+o;return d.octDecodeInRange(a,u,65535,t)},d.octPackFloat=function(e){return s.Z.defined("encoded",e),256*e.x+e.y};const _=new n.Z;function Z(e){return e>>1^-(1&e)}d.octEncodeFloat=function(e){return d.octEncode(e,_),d.octPackFloat(_)},d.octDecodeFloat=function(e,t){s.Z.defined("value",e);const i=e/256,n=Math.floor(i),r=256*(i-n);return d.octDecode(n,r,t)},d.octPack=function(e,t,i,n){s.Z.defined("v1",e),s.Z.defined("v2",t),s.Z.defined("v3",i),s.Z.defined("result",n);const r=d.octEncodeFloat(e),o=d.octEncodeFloat(t),a=d.octEncode(i,_);return n.x=65536*a.x+r,n.y=65536*a.y+o,n},d.octUnpack=function(e,t,i,n){s.Z.defined("packed",e),s.Z.defined("v1",t),s.Z.defined("v2",i),s.Z.defined("v3",n);let r=e.x/65536;const o=Math.floor(r),a=65536*(r-o);r=e.y/65536;const c=Math.floor(r),u=65536*(r-c);d.octDecodeFloat(a,t),d.octDecodeFloat(u,i),d.octDecode(o,c,n)},d.compressTextureCoordinates=function(e){return s.Z.defined("textureCoordinates",e),4096*(4095*e.x|0)+(4095*e.y|0)},d.decompressTextureCoordinates=function(e,t){s.Z.defined("compressed",e),s.Z.defined("result",t);const i=e/4096,n=Math.floor(i);return t.x=n/4095,t.y=(e-4096*n)/4095,t},d.zigZagDeltaDecode=function(e,t,i){s.Z.defined("uBuffer",e),s.Z.defined("vBuffer",t),s.Z.typeOf.number.equals("uBuffer.length","vBuffer.length",e.length,t.length),(0,a.Z)(i)&&s.Z.typeOf.number.equals("uBuffer.length","heightBuffer.length",e.length,i.length);const n=e.length;let r=0,o=0,c=0;for(let s=0;s>11,s=n>>5&63,a=31&n,c=3*i;t[c]=o*r,t[c+1]=.015873015873015872*s,t[c+2]=a*r}return t};const g=d},474421:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(919382),r=i(357299),o=i(406144),s=i(426468),a=i(360382);function c(e,t,i){this.minimum=n.Z.clone((0,o.Z)(e,n.Z.ZERO)),this.maximum=n.Z.clone((0,o.Z)(t,n.Z.ZERO)),i=(0,s.Z)(i)?n.Z.clone(i):n.Z.midpoint(this.minimum,this.maximum,new n.Z),this.center=i}c.fromPoints=function(e,t){if((0,s.Z)(t)||(t=new c),!(0,s.Z)(e)||0===e.length)return t.minimum=n.Z.clone(n.Z.ZERO,t.minimum),t.maximum=n.Z.clone(n.Z.ZERO,t.maximum),t.center=n.Z.clone(n.Z.ZERO,t.center),t;let i=e[0].x,r=e[0].y,o=e[0].z,a=e[0].x,u=e[0].y,l=e[0].z;const h=e.length;for(let t=1;t0?a.Z.INSIDE:c+s<0?a.Z.OUTSIDE:a.Z.INTERSECTING},c.prototype.clone=function(e){return c.clone(this,e)},c.prototype.intersectPlane=function(e){return c.intersectPlane(this,e)},c.prototype.equals=function(e){return c.equals(this,e)};const l=c},742931:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(357299),r=i(406144),o=i(523501),s=i(795788),a=i(426468),c=i(446938);const u="https://dev.virtualearth.net/REST/v1/Locations";function l(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).key;if(!(0,a.Z)(t))throw new c.Z("options.key is required.");this._key=t;const i={key:t};(0,a.Z)(e.culture)&&(i.culture=e.culture),this._resource=new s.Z({url:u,queryParameters:i})}Object.defineProperties(l.prototype,{url:{get:function(){return u}},key:{get:function(){return this._key}}}),l.prototype.geocode=function(e){return n.Z.typeOf.string("query",e),this._resource.getDerivedResource({queryParameters:{query:e}}).fetchJsonp("jsonp").then((function(e){return 0===e.resourceSets.length?[]:e.resourceSets[0].resources.map((function(e){const t=e.bbox,i=t[0],n=t[1],r=t[2],s=t[3];return{displayName:e.name,destination:o.Z.fromDegrees(n,i,s,r)}}))}))};const h=l},152124:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});var n=i(337968),r=i(698907),o=i(357299),s=i(406144),a=i(426468),c=i(921099),u=i(360382),l=i(523501);function h(e,t,i,n){this.x=(0,s.Z)(e,0),this.y=(0,s.Z)(t,0),this.width=(0,s.Z)(i,0),this.height=(0,s.Z)(n,0)}h.packedLength=4,h.pack=function(e,t,i){return o.Z.typeOf.object("value",e),o.Z.defined("array",t),i=(0,s.Z)(i,0),t[i++]=e.x,t[i++]=e.y,t[i++]=e.width,t[i]=e.height,t},h.unpack=function(e,t,i){return o.Z.defined("array",e),t=(0,s.Z)(t,0),(0,a.Z)(i)||(i=new h),i.x=e[t++],i.y=e[t++],i.width=e[t++],i.height=e[t],i},h.fromPoints=function(e,t){if((0,a.Z)(t)||(t=new h),!(0,a.Z)(e)||0===e.length)return t.x=0,t.y=0,t.width=0,t.height=0,t;const i=e.length;let n=e[0].x,r=e[0].y,o=e[0].x,s=e[0].y;for(let t=1;ti.width?i.width=n:n<0&&(i.width-=n,i.x=t.x),r>i.height?i.height=r:r<0&&(i.height-=r,i.y=t.y),i},h.intersect=function(e,t){o.Z.typeOf.object("left",e),o.Z.typeOf.object("right",t);const i=e.x,n=e.y,r=t.x,s=t.y;return i>r+t.width||i+e.widths+t.height?u.Z.OUTSIDE:u.Z.INTERSECTING},h.equals=function(e,t){return e===t||(0,a.Z)(e)&&(0,a.Z)(t)&&e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height},h.prototype.clone=function(e){return h.clone(this,e)},h.prototype.intersect=function(e){return h.intersect(this,e)},h.prototype.equals=function(e){return h.equals(this,e)};const m=h},360791:(e,t,i)=>{"use strict";i.d(t,{Z:()=>$});var n=i(919382),r=i(698907),o=i(357299),s=i(406144),a=i(426468),c=i(253316),u=i(921099),l=i(360382),h=i(62001),d=i(362017),f=i(165373),p=i(583917),m=i(523501);function _(e,t){this.center=n.Z.clone((0,s.Z)(e,n.Z.ZERO)),this.radius=(0,s.Z)(t,0)}const Z=new n.Z,g=new n.Z,y=new n.Z,b=new n.Z,A=new n.Z,w=new n.Z,v=new n.Z,T=new n.Z,C=new n.Z,E=new n.Z,x=new n.Z,S=new n.Z,O=4/3*d.Z.PI;_.fromPoints=function(e,t){if((0,a.Z)(t)||(t=new _),!(0,a.Z)(e)||0===e.length)return t.center=n.Z.clone(n.Z.ZERO,t.center),t.radius=0,t;const i=n.Z.clone(e[0],v),r=n.Z.clone(i,Z),o=n.Z.clone(i,g),s=n.Z.clone(i,y),c=n.Z.clone(i,b),u=n.Z.clone(i,A),l=n.Z.clone(i,w),h=e.length;let d;for(d=1;dc.x&&n.Z.clone(i,c),au.y&&n.Z.clone(i,u),hl.z&&n.Z.clone(i,l)}const f=n.Z.magnitudeSquared(n.Z.subtract(c,r,T)),p=n.Z.magnitudeSquared(n.Z.subtract(u,o,T)),m=n.Z.magnitudeSquared(n.Z.subtract(l,s,T));let O=r,I=c,D=f;p>D&&(D=p,O=o,I=u),m>D&&(D=m,O=s,I=l);const P=C;P.x=.5*(O.x+I.x),P.y=.5*(O.y+I.y),P.z=.5*(O.z+I.z);let R=n.Z.magnitudeSquared(n.Z.subtract(I,P,T)),B=Math.sqrt(R);const M=E;M.x=r.x,M.y=o.y,M.z=s.z;const L=x;L.x=c.x,L.y=u.y,L.z=l.z;const N=n.Z.midpoint(M,L,S);let F=0;for(d=0;dF&&(F=t);const r=n.Z.magnitudeSquared(n.Z.subtract(i,P,T));if(r>R){const e=Math.sqrt(r);B=.5*(B+e),R=B*B;const t=e-B;P.x=(B*P.x+t*i.x)/e,P.y=(B*P.y+t*i.y)/e,P.z=(B*P.z+t*i.z)/e}}return Bd.x&&n.Z.clone(c,d),rf.y&&n.Z.clone(c,f),op.z&&n.Z.clone(c,p)}const I=n.Z.magnitudeSquared(n.Z.subtract(d,u,T)),D=n.Z.magnitudeSquared(n.Z.subtract(f,l,T)),P=n.Z.magnitudeSquared(n.Z.subtract(p,h,T));let R=u,B=d,M=I;D>M&&(M=D,R=l,B=f),P>M&&(M=P,R=h,B=p);const L=C;L.x=.5*(R.x+B.x),L.y=.5*(R.y+B.y),L.z=.5*(R.z+B.z);let N=n.Z.magnitudeSquared(n.Z.subtract(B,L,T)),F=Math.sqrt(N);const k=E;k.x=u.x,k.y=l.y,k.z=h.z;const U=x;U.x=d.x,U.y=f.y,U.z=p.z;const V=n.Z.midpoint(k,U,S);let z=0;for(O=0;Oz&&(z=i);const r=n.Z.magnitudeSquared(n.Z.subtract(c,L,T));if(r>N){const e=Math.sqrt(r);F=.5*(F+e),N=F*F;const t=e-F;L.x=(F*L.x+t*c.x)/e,L.y=(F*L.y+t*c.y)/e,L.z=(F*L.z+t*c.z)/e}}return Fu.x&&n.Z.clone(r,u),al.y&&n.Z.clone(r,l),dh.z&&n.Z.clone(r,h)}const p=n.Z.magnitudeSquared(n.Z.subtract(u,o,T)),m=n.Z.magnitudeSquared(n.Z.subtract(l,s,T)),O=n.Z.magnitudeSquared(n.Z.subtract(h,c,T));let I=o,D=u,P=p;m>P&&(P=m,I=s,D=l),O>P&&(P=O,I=c,D=h);const R=C;R.x=.5*(I.x+D.x),R.y=.5*(I.y+D.y),R.z=.5*(I.z+D.z);let B=n.Z.magnitudeSquared(n.Z.subtract(D,R,T)),M=Math.sqrt(B);const L=E;L.x=o.x,L.y=s.y,L.z=c.z;const N=x;N.x=u.x,N.y=l.y,N.z=h.z;const F=n.Z.midpoint(L,N,S);let k=0;for(f=0;fk&&(k=i);const o=n.Z.magnitudeSquared(n.Z.subtract(r,R,T));if(o>B){const e=Math.sqrt(o);M=.5*(M+e),B=M*M;const t=e-M;R.x=(M*R.x+t*r.x)/e,R.y=(M*R.y+t*r.y)/e,R.z=(M*R.z+t*r.z)/e}}return M=h+u)return e.clone(i),i;if(u>=h+s)return t.clone(i),i;const d=.5*(s+h+u),f=n.Z.multiplyByScalar(l,(-s+d)/h,V);return n.Z.add(f,r,f),n.Z.clone(f,i.center),i.radius=d,i};const z=new n.Z;_.expand=function(e,t,i){o.Z.typeOf.object("sphere",e),o.Z.typeOf.object("point",t),i=_.clone(e,i);const r=n.Z.magnitude(n.Z.subtract(t,i.center,z));return r>i.radius&&(i.radius=r),i},_.intersectPlane=function(e,t){o.Z.typeOf.object("sphere",e),o.Z.typeOf.object("plane",t);const i=e.center,r=e.radius,s=t.normal,a=n.Z.dot(s,i)+t.distance;return a<-r?l.Z.OUTSIDE:a{"use strict";i.d(t,{Z:()=>T});var n=i(170099),r=i(360791),o=i(919382),s=i(357299),a=i(997274),c=i(406144),u=i(426468),l=i(446938),h=i(915067),d=i(611843),f=i(451628),p=i(215925),m=i(195809),_=i(172674);const Z=new o.Z;function g(e){const t=(e=(0,c.Z)(e,c.Z.EMPTY_OBJECT)).minimum,i=e.maximum;if(s.Z.typeOf.object("min",t),s.Z.typeOf.object("max",i),(0,u.Z)(e.offsetAttribute)&&e.offsetAttribute===p.Z.TOP)throw new l.Z("GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry.");const n=(0,c.Z)(e.vertexFormat,_.Z.DEFAULT);this._minimum=o.Z.clone(t),this._maximum=o.Z.clone(i),this._vertexFormat=n,this._offsetAttribute=e.offsetAttribute,this._workerName="createBoxGeometry"}g.fromDimensions=function(e){const t=(e=(0,c.Z)(e,c.Z.EMPTY_OBJECT)).dimensions;s.Z.typeOf.object("dimensions",t),s.Z.typeOf.number.greaterThanOrEquals("dimensions.x",t.x,0),s.Z.typeOf.number.greaterThanOrEquals("dimensions.y",t.y,0),s.Z.typeOf.number.greaterThanOrEquals("dimensions.z",t.z,0);const i=o.Z.multiplyByScalar(t,.5,new o.Z);return new g({minimum:o.Z.negate(i,new o.Z),maximum:i,vertexFormat:e.vertexFormat,offsetAttribute:e.offsetAttribute})},g.fromAxisAlignedBoundingBox=function(e){return s.Z.typeOf.object("boundingBox",e),new g({minimum:e.minimum,maximum:e.maximum})},g.packedLength=2*o.Z.packedLength+_.Z.packedLength+1,g.pack=function(e,t,i){return s.Z.typeOf.object("value",e),s.Z.defined("array",t),i=(0,c.Z)(i,0),o.Z.pack(e._minimum,t,i),o.Z.pack(e._maximum,t,i+o.Z.packedLength),_.Z.pack(e._vertexFormat,t,i+2*o.Z.packedLength),t[i+2*o.Z.packedLength+_.Z.packedLength]=(0,c.Z)(e._offsetAttribute,-1),t};const y=new o.Z,b=new o.Z,A=new _.Z,w={minimum:y,maximum:b,vertexFormat:A,offsetAttribute:void 0};let v;g.unpack=function(e,t,i){s.Z.defined("array",e),t=(0,c.Z)(t,0);const n=o.Z.unpack(e,t,y),r=o.Z.unpack(e,t+o.Z.packedLength,b),a=_.Z.unpack(e,t+2*o.Z.packedLength,A),l=e[t+2*o.Z.packedLength+_.Z.packedLength];return(0,u.Z)(i)?(i._minimum=o.Z.clone(n,i._minimum),i._maximum=o.Z.clone(r,i._maximum),i._vertexFormat=_.Z.clone(a,i._vertexFormat),i._offsetAttribute=-1===l?void 0:l,i):(w.offsetAttribute=-1===l?void 0:l,new g(w))},g.createGeometry=function(e){const t=e._minimum,i=e._maximum,s=e._vertexFormat;if(o.Z.equals(t,i))return;const c=new f.Z;let l,_;if(s.position&&(s.st||s.normal||s.tangent||s.bitangent)){if(s.position&&(_=new Float64Array(72),_[0]=t.x,_[1]=t.y,_[2]=i.z,_[3]=i.x,_[4]=t.y,_[5]=i.z,_[6]=i.x,_[7]=i.y,_[8]=i.z,_[9]=t.x,_[10]=i.y,_[11]=i.z,_[12]=t.x,_[13]=t.y,_[14]=t.z,_[15]=i.x,_[16]=t.y,_[17]=t.z,_[18]=i.x,_[19]=i.y,_[20]=t.z,_[21]=t.x,_[22]=i.y,_[23]=t.z,_[24]=i.x,_[25]=t.y,_[26]=t.z,_[27]=i.x,_[28]=i.y,_[29]=t.z,_[30]=i.x,_[31]=i.y,_[32]=i.z,_[33]=i.x,_[34]=t.y,_[35]=i.z,_[36]=t.x,_[37]=t.y,_[38]=t.z,_[39]=t.x,_[40]=i.y,_[41]=t.z,_[42]=t.x,_[43]=i.y,_[44]=i.z,_[45]=t.x,_[46]=t.y,_[47]=i.z,_[48]=t.x,_[49]=i.y,_[50]=t.z,_[51]=i.x,_[52]=i.y,_[53]=t.z,_[54]=i.x,_[55]=i.y,_[56]=i.z,_[57]=t.x,_[58]=i.y,_[59]=i.z,_[60]=t.x,_[61]=t.y,_[62]=t.z,_[63]=i.x,_[64]=t.y,_[65]=t.z,_[66]=i.x,_[67]=t.y,_[68]=i.z,_[69]=t.x,_[70]=t.y,_[71]=i.z,c.position=new d.Z({componentDatatype:a.Z.DOUBLE,componentsPerAttribute:3,values:_})),s.normal){const e=new Float32Array(72);e[0]=0,e[1]=0,e[2]=1,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=1,e[9]=0,e[10]=0,e[11]=1,e[12]=0,e[13]=0,e[14]=-1,e[15]=0,e[16]=0,e[17]=-1,e[18]=0,e[19]=0,e[20]=-1,e[21]=0,e[22]=0,e[23]=-1,e[24]=1,e[25]=0,e[26]=0,e[27]=1,e[28]=0,e[29]=0,e[30]=1,e[31]=0,e[32]=0,e[33]=1,e[34]=0,e[35]=0,e[36]=-1,e[37]=0,e[38]=0,e[39]=-1,e[40]=0,e[41]=0,e[42]=-1,e[43]=0,e[44]=0,e[45]=-1,e[46]=0,e[47]=0,e[48]=0,e[49]=1,e[50]=0,e[51]=0,e[52]=1,e[53]=0,e[54]=0,e[55]=1,e[56]=0,e[57]=0,e[58]=1,e[59]=0,e[60]=0,e[61]=-1,e[62]=0,e[63]=0,e[64]=-1,e[65]=0,e[66]=0,e[67]=-1,e[68]=0,e[69]=0,e[70]=-1,e[71]=0,c.normal=new d.Z({componentDatatype:a.Z.FLOAT,componentsPerAttribute:3,values:e})}if(s.st){const e=new Float32Array(48);e[0]=0,e[1]=0,e[2]=1,e[3]=0,e[4]=1,e[5]=1,e[6]=0,e[7]=1,e[8]=1,e[9]=0,e[10]=0,e[11]=0,e[12]=0,e[13]=1,e[14]=1,e[15]=1,e[16]=0,e[17]=0,e[18]=1,e[19]=0,e[20]=1,e[21]=1,e[22]=0,e[23]=1,e[24]=1,e[25]=0,e[26]=0,e[27]=0,e[28]=0,e[29]=1,e[30]=1,e[31]=1,e[32]=1,e[33]=0,e[34]=0,e[35]=0,e[36]=0,e[37]=1,e[38]=1,e[39]=1,e[40]=0,e[41]=0,e[42]=1,e[43]=0,e[44]=1,e[45]=1,e[46]=0,e[47]=1,c.st=new d.Z({componentDatatype:a.Z.FLOAT,componentsPerAttribute:2,values:e})}if(s.tangent){const e=new Float32Array(72);e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e[6]=1,e[7]=0,e[8]=0,e[9]=1,e[10]=0,e[11]=0,e[12]=-1,e[13]=0,e[14]=0,e[15]=-1,e[16]=0,e[17]=0,e[18]=-1,e[19]=0,e[20]=0,e[21]=-1,e[22]=0,e[23]=0,e[24]=0,e[25]=1,e[26]=0,e[27]=0,e[28]=1,e[29]=0,e[30]=0,e[31]=1,e[32]=0,e[33]=0,e[34]=1,e[35]=0,e[36]=0,e[37]=-1,e[38]=0,e[39]=0,e[40]=-1,e[41]=0,e[42]=0,e[43]=-1,e[44]=0,e[45]=0,e[46]=-1,e[47]=0,e[48]=-1,e[49]=0,e[50]=0,e[51]=-1,e[52]=0,e[53]=0,e[54]=-1,e[55]=0,e[56]=0,e[57]=-1,e[58]=0,e[59]=0,e[60]=1,e[61]=0,e[62]=0,e[63]=1,e[64]=0,e[65]=0,e[66]=1,e[67]=0,e[68]=0,e[69]=1,e[70]=0,e[71]=0,c.tangent=new d.Z({componentDatatype:a.Z.FLOAT,componentsPerAttribute:3,values:e})}if(s.bitangent){const e=new Float32Array(72);e[0]=0,e[1]=1,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=1,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=1,e[14]=0,e[15]=0,e[16]=1,e[17]=0,e[18]=0,e[19]=1,e[20]=0,e[21]=0,e[22]=1,e[23]=0,e[24]=0,e[25]=0,e[26]=1,e[27]=0,e[28]=0,e[29]=1,e[30]=0,e[31]=0,e[32]=1,e[33]=0,e[34]=0,e[35]=1,e[36]=0,e[37]=0,e[38]=1,e[39]=0,e[40]=0,e[41]=1,e[42]=0,e[43]=0,e[44]=1,e[45]=0,e[46]=0,e[47]=1,e[48]=0,e[49]=0,e[50]=1,e[51]=0,e[52]=0,e[53]=1,e[54]=0,e[55]=0,e[56]=1,e[57]=0,e[58]=0,e[59]=1,e[60]=0,e[61]=0,e[62]=1,e[63]=0,e[64]=0,e[65]=1,e[66]=0,e[67]=0,e[68]=1,e[69]=0,e[70]=0,e[71]=1,c.bitangent=new d.Z({componentDatatype:a.Z.FLOAT,componentsPerAttribute:3,values:e})}l=new Uint16Array(36),l[0]=0,l[1]=1,l[2]=2,l[3]=0,l[4]=2,l[5]=3,l[6]=6,l[7]=5,l[8]=4,l[9]=7,l[10]=6,l[11]=4,l[12]=8,l[13]=9,l[14]=10,l[15]=8,l[16]=10,l[17]=11,l[18]=14,l[19]=13,l[20]=12,l[21]=15,l[22]=14,l[23]=12,l[24]=18,l[25]=17,l[26]=16,l[27]=19,l[28]=18,l[29]=16,l[30]=20,l[31]=21,l[32]=22,l[33]=20,l[34]=22,l[35]=23}else _=new Float64Array(24),_[0]=t.x,_[1]=t.y,_[2]=t.z,_[3]=i.x,_[4]=t.y,_[5]=t.z,_[6]=i.x,_[7]=i.y,_[8]=t.z,_[9]=t.x,_[10]=i.y,_[11]=t.z,_[12]=t.x,_[13]=t.y,_[14]=i.z,_[15]=i.x,_[16]=t.y,_[17]=i.z,_[18]=i.x,_[19]=i.y,_[20]=i.z,_[21]=t.x,_[22]=i.y,_[23]=i.z,c.position=new d.Z({componentDatatype:a.Z.DOUBLE,componentsPerAttribute:3,values:_}),l=new Uint16Array(36),l[0]=4,l[1]=5,l[2]=6,l[3]=4,l[4]=6,l[5]=7,l[6]=1,l[7]=0,l[8]=3,l[9]=1,l[10]=3,l[11]=2,l[12]=1,l[13]=6,l[14]=5,l[15]=1,l[16]=2,l[17]=6,l[18]=2,l[19]=3,l[20]=7,l[21]=2,l[22]=7,l[23]=6,l[24]=3,l[25]=0,l[26]=4,l[27]=3,l[28]=4,l[29]=7,l[30]=0,l[31]=1,l[32]=5,l[33]=0,l[34]=5,l[35]=4;const g=o.Z.subtract(i,t,Z),y=.5*o.Z.magnitude(g);if((0,u.Z)(e._offsetAttribute)){const t=_.length,i=new Uint8Array(t/3),r=e._offsetAttribute===p.Z.NONE?0:1;(0,n.Z)(i,r),c.applyOffset=new d.Z({componentDatatype:a.Z.UNSIGNED_BYTE,componentsPerAttribute:1,values:i})}return new h.Z({attributes:c,indices:l,primitiveType:m.Z.TRIANGLES,boundingSphere:new r.Z(o.Z.ZERO,y),offsetAttribute:e._offsetAttribute})},g.getUnitBox=function(){return(0,u.Z)(v)||(v=g.createGeometry(g.fromDimensions({dimensions:new o.Z(1,1,1),vertexFormat:_.Z.POSITION_ONLY}))),v};const T=g},101985:(e,t,i)=>{"use strict";i.d(t,{Z:()=>A});var n=i(170099),r=i(360791),o=i(919382),s=i(357299),a=i(997274),c=i(406144),u=i(426468),l=i(446938),h=i(915067),d=i(611843),f=i(451628),p=i(215925),m=i(195809);const _=new o.Z;function Z(e){const t=(e=(0,c.Z)(e,c.Z.EMPTY_OBJECT)).minimum,i=e.maximum;if(s.Z.typeOf.object("min",t),s.Z.typeOf.object("max",i),(0,u.Z)(e.offsetAttribute)&&e.offsetAttribute===p.Z.TOP)throw new l.Z("GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry.");this._min=o.Z.clone(t),this._max=o.Z.clone(i),this._offsetAttribute=e.offsetAttribute,this._workerName="createBoxOutlineGeometry"}Z.fromDimensions=function(e){const t=(e=(0,c.Z)(e,c.Z.EMPTY_OBJECT)).dimensions;s.Z.typeOf.object("dimensions",t),s.Z.typeOf.number.greaterThanOrEquals("dimensions.x",t.x,0),s.Z.typeOf.number.greaterThanOrEquals("dimensions.y",t.y,0),s.Z.typeOf.number.greaterThanOrEquals("dimensions.z",t.z,0);const i=o.Z.multiplyByScalar(t,.5,new o.Z);return new Z({minimum:o.Z.negate(i,new o.Z),maximum:i,offsetAttribute:e.offsetAttribute})},Z.fromAxisAlignedBoundingBox=function(e){return s.Z.typeOf.object("boundindBox",e),new Z({minimum:e.minimum,maximum:e.maximum})},Z.packedLength=2*o.Z.packedLength+1,Z.pack=function(e,t,i){return s.Z.typeOf.object("value",e),s.Z.defined("array",t),i=(0,c.Z)(i,0),o.Z.pack(e._min,t,i),o.Z.pack(e._max,t,i+o.Z.packedLength),t[i+2*o.Z.packedLength]=(0,c.Z)(e._offsetAttribute,-1),t};const g=new o.Z,y=new o.Z,b={minimum:g,maximum:y,offsetAttribute:void 0};Z.unpack=function(e,t,i){s.Z.defined("array",e),t=(0,c.Z)(t,0);const n=o.Z.unpack(e,t,g),r=o.Z.unpack(e,t+o.Z.packedLength,y),a=e[t+2*o.Z.packedLength];return(0,u.Z)(i)?(i._min=o.Z.clone(n,i._min),i._max=o.Z.clone(r,i._max),i._offsetAttribute=-1===a?void 0:a,i):(b.offsetAttribute=-1===a?void 0:a,new Z(b))},Z.createGeometry=function(e){const t=e._min,i=e._max;if(o.Z.equals(t,i))return;const s=new f.Z,c=new Uint16Array(24),l=new Float64Array(24);l[0]=t.x,l[1]=t.y,l[2]=t.z,l[3]=i.x,l[4]=t.y,l[5]=t.z,l[6]=i.x,l[7]=i.y,l[8]=t.z,l[9]=t.x,l[10]=i.y,l[11]=t.z,l[12]=t.x,l[13]=t.y,l[14]=i.z,l[15]=i.x,l[16]=t.y,l[17]=i.z,l[18]=i.x,l[19]=i.y,l[20]=i.z,l[21]=t.x,l[22]=i.y,l[23]=i.z,s.position=new d.Z({componentDatatype:a.Z.DOUBLE,componentsPerAttribute:3,values:l}),c[0]=4,c[1]=5,c[2]=5,c[3]=6,c[4]=6,c[5]=7,c[6]=7,c[7]=4,c[8]=0,c[9]=1,c[10]=1,c[11]=2,c[12]=2,c[13]=3,c[14]=3,c[15]=0,c[16]=0,c[17]=4,c[18]=1,c[19]=5,c[20]=2,c[21]=6,c[22]=3,c[23]=7;const Z=o.Z.subtract(i,t,_),g=.5*o.Z.magnitude(Z);if((0,u.Z)(e._offsetAttribute)){const t=l.length,i=new Uint8Array(t/3),r=e._offsetAttribute===p.Z.NONE?0:1;(0,n.Z)(i,r),s.applyOffset=new d.Z({componentDatatype:a.Z.UNSIGNED_BYTE,componentsPerAttribute:1,values:i})}return new h.Z({attributes:s,indices:c,primitiveType:m.Z.LINES,boundingSphere:new r.Z(o.Z.ZERO,g),offsetAttribute:e._offsetAttribute})};const A=Z},337968:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(357299),r=i(406144),o=i(426468),s=i(446938),a=i(362017);function c(e,t){this.x=(0,r.Z)(e,0),this.y=(0,r.Z)(t,0)}c.fromElements=function(e,t,i){return(0,o.Z)(i)?(i.x=e,i.y=t,i):new c(e,t)},c.clone=function(e,t){if((0,o.Z)(e))return(0,o.Z)(t)?(t.x=e.x,t.y=e.y,t):new c(e.x,e.y)},c.fromCartesian3=c.clone,c.fromCartesian4=c.clone,c.packedLength=2,c.pack=function(e,t,i){return n.Z.typeOf.object("value",e),n.Z.defined("array",t),i=(0,r.Z)(i,0),t[i++]=e.x,t[i]=e.y,t},c.unpack=function(e,t,i){return n.Z.defined("array",e),t=(0,r.Z)(t,0),(0,o.Z)(i)||(i=new c),i.x=e[t++],i.y=e[t],i},c.packArray=function(e,t){n.Z.defined("array",e);const i=e.length,r=2*i;if((0,o.Z)(t)){if(!Array.isArray(t)&&t.length!==r)throw new s.Z("If result is a typed array, it must have exactly array.length * 2 elements");t.length!==r&&(t.length=r)}else t=new Array(r);for(let n=0;n{"use strict";i.d(t,{Z:()=>Z});var n=i(357299),r=i(406144),o=i(426468),s=i(446938),a=i(362017);function c(e,t,i){this.x=(0,r.Z)(e,0),this.y=(0,r.Z)(t,0),this.z=(0,r.Z)(i,0)}c.fromSpherical=function(e,t){n.Z.typeOf.object("spherical",e),(0,o.Z)(t)||(t=new c);const i=e.clock,s=e.cone,a=(0,r.Z)(e.magnitude,1),u=a*Math.sin(s);return t.x=u*Math.cos(i),t.y=u*Math.sin(i),t.z=a*Math.cos(s),t},c.fromElements=function(e,t,i,n){return(0,o.Z)(n)?(n.x=e,n.y=t,n.z=i,n):new c(e,t,i)},c.clone=function(e,t){if((0,o.Z)(e))return(0,o.Z)(t)?(t.x=e.x,t.y=e.y,t.z=e.z,t):new c(e.x,e.y,e.z)},c.fromCartesian4=c.clone,c.packedLength=3,c.pack=function(e,t,i){return n.Z.typeOf.object("value",e),n.Z.defined("array",t),i=(0,r.Z)(i,0),t[i++]=e.x,t[i++]=e.y,t[i]=e.z,t},c.unpack=function(e,t,i){return n.Z.defined("array",e),t=(0,r.Z)(t,0),(0,o.Z)(i)||(i=new c),i.x=e[t++],i.y=e[t++],i.z=e[t],i},c.packArray=function(e,t){n.Z.defined("array",e);const i=e.length,r=3*i;if((0,o.Z)(t)){if(!Array.isArray(t)&&t.length!==r)throw new s.Z("If result is a typed array, it must have exactly array.length * 3 elements");t.length!==r&&(t.length=r)}else t=new Array(r);for(let n=0;n{"use strict";i.d(t,{Z:()=>_});var n=i(357299),r=i(406144),o=i(426468),s=i(446938),a=i(362017);function c(e,t,i,n){this.x=(0,r.Z)(e,0),this.y=(0,r.Z)(t,0),this.z=(0,r.Z)(i,0),this.w=(0,r.Z)(n,0)}c.fromElements=function(e,t,i,n,r){return(0,o.Z)(r)?(r.x=e,r.y=t,r.z=i,r.w=n,r):new c(e,t,i,n)},c.fromColor=function(e,t){return n.Z.typeOf.object("color",e),(0,o.Z)(t)?(t.x=e.red,t.y=e.green,t.z=e.blue,t.w=e.alpha,t):new c(e.red,e.green,e.blue,e.alpha)},c.clone=function(e,t){if((0,o.Z)(e))return(0,o.Z)(t)?(t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t):new c(e.x,e.y,e.z,e.w)},c.packedLength=4,c.pack=function(e,t,i){return n.Z.typeOf.object("value",e),n.Z.defined("array",t),i=(0,r.Z)(i,0),t[i++]=e.x,t[i++]=e.y,t[i++]=e.z,t[i]=e.w,t},c.unpack=function(e,t,i){return n.Z.defined("array",e),t=(0,r.Z)(t,0),(0,o.Z)(i)||(i=new c),i.x=e[t++],i.y=e[t++],i.z=e[t++],i.w=e[t],i},c.packArray=function(e,t){n.Z.defined("array",e);const i=e.length,r=4*i;if((0,o.Z)(t)){if(!Array.isArray(t)&&t.length!==r)throw new s.Z("If result is a typed array, it must have exactly array.length * 4 elements");t.length!==r&&(t.length=r)}else t=new Array(r);for(let n=0;n{"use strict";i.d(t,{Z:()=>_});var n=i(919382),r=i(357299),o=i(406144),s=i(426468),a=i(362017),c=i(547810);function u(e,t,i){this.longitude=(0,o.Z)(e,0),this.latitude=(0,o.Z)(t,0),this.height=(0,o.Z)(i,0)}u.fromRadians=function(e,t,i,n){return r.Z.typeOf.number("longitude",e),r.Z.typeOf.number("latitude",t),i=(0,o.Z)(i,0),(0,s.Z)(n)?(n.longitude=e,n.latitude=t,n.height=i,n):new u(e,t,i)},u.fromDegrees=function(e,t,i,n){return r.Z.typeOf.number("longitude",e),r.Z.typeOf.number("latitude",t),e=a.Z.toRadians(e),t=a.Z.toRadians(t),u.fromRadians(e,t,i,n)};const l=new n.Z,h=new n.Z,d=new n.Z,f=new n.Z(1/6378137,1/6378137,1/6356752.314245179),p=new n.Z(1/40680631590769,1/40680631590769,1/40408299984661.445),m=a.Z.EPSILON1;u.fromCartesian=function(e,t,i){const r=(0,s.Z)(t)?t.oneOverRadii:f,o=(0,s.Z)(t)?t.oneOverRadiiSquared:p,_=(0,s.Z)(t)?t._centerToleranceSquared:m,Z=(0,c.Z)(e,r,o,_,h);if(!(0,s.Z)(Z))return;let g=n.Z.multiplyComponents(Z,o,l);g=n.Z.normalize(g,g);const y=n.Z.subtract(e,Z,d),b=Math.atan2(g.y,g.x),A=Math.asin(g.z),w=a.Z.sign(n.Z.dot(y,e))*n.Z.magnitude(y);return(0,s.Z)(i)?(i.longitude=b,i.latitude=A,i.height=w,i):new u(b,A,w)},u.toCartesian=function(e,t,i){return r.Z.defined("cartographic",e),n.Z.fromRadians(e.longitude,e.latitude,e.height,t,i)},u.clone=function(e,t){if((0,s.Z)(e))return(0,s.Z)(t)?(t.longitude=e.longitude,t.latitude=e.latitude,t.height=e.height,t):new u(e.longitude,e.latitude,e.height)},u.equals=function(e,t){return e===t||(0,s.Z)(e)&&(0,s.Z)(t)&&e.longitude===t.longitude&&e.latitude===t.latitude&&e.height===t.height},u.equalsEpsilon=function(e,t,i){return i=(0,o.Z)(i,0),e===t||(0,s.Z)(e)&&(0,s.Z)(t)&&Math.abs(e.longitude-t.longitude)<=i&&Math.abs(e.latitude-t.latitude)<=i&&Math.abs(e.height-t.height)<=i},u.ZERO=Object.freeze(new u(0,0,0)),u.prototype.clone=function(e){return u.clone(this,e)},u.prototype.equals=function(e){return u.equals(this,e)},u.prototype.equalsEpsilon=function(e,t){return u.equalsEpsilon(this,e,t)},u.prototype.toString=function(){return"("+this.longitude+", "+this.latitude+", "+this.height+")"};const _=u},251652:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(527758),r=i(919382),o=i(357299);function s(){}s.prototype.geocode=function(e){o.Z.typeOf.string("query",e);const t=e.match(/[^\s,\n]+/g);if(2===t.length||3===t.length){let i=+t[0],o=+t[1];const s=3===t.length?+t[2]:300;if(isNaN(i)&&isNaN(o)){const e=/^(\d+.?\d*)([nsew])/i;for(let n=0;n{"use strict";i.d(t,{Z:()=>Z});var n=i(919382),r=i(114754),o=i(357299),s=i(406144),a=i(426468),c=i(92317),u=i(583917),l=i(54791);const h=new r.Z,d=new n.Z,f=new n.Z,p=new n.Z,m=new n.Z;function _(e){const t=(e=(0,s.Z)(e,s.Z.EMPTY_OBJECT)).points,i=e.times;let r=e.firstTangent,l=e.lastTangent;if(o.Z.defined("points",t),o.Z.defined("times",i),o.Z.typeOf.number.greaterThanOrEquals("points.length",t.length,2),o.Z.typeOf.number.equals("times.length","points.length",i.length,t.length),t.length>2&&((0,a.Z)(r)||(r=p,n.Z.multiplyByScalar(t[1],2,r),n.Z.subtract(r,t[2],r),n.Z.subtract(r,t[0],r),n.Z.multiplyByScalar(r,.5,r)),!(0,a.Z)(l))){const e=t.length-1;l=m,n.Z.multiplyByScalar(t[e-1],2,l),n.Z.subtract(t[e],l,l),n.Z.add(l,t[e-2],l),n.Z.multiplyByScalar(l,.5,l)}this._times=i,this._points=t,this._firstTangent=n.Z.clone(r),this._lastTangent=n.Z.clone(l),this._evaluateFunction=function(e){const t=e.points,i=e.times;if(t.length<3){const e=i[0],r=1/(i[1]-e),o=t[0],s=t[1];return function(t,i){(0,a.Z)(i)||(i=new n.Z);const c=(t-e)*r;return n.Z.lerp(o,s,c,i)}}return function(r,o){(0,a.Z)(o)||(o=new n.Z);const s=e._lastTimeIndex=e.findTimeInterval(r,e._lastTimeIndex),l=(r-i[s])/(i[s+1]-i[s]),p=h;let m,Z,g,y,b;return p.z=l,p.y=l*l,p.x=p.y*l,p.w=1,0===s?(m=t[0],Z=t[1],g=e.firstTangent,y=n.Z.subtract(t[2],m,d),n.Z.multiplyByScalar(y,.5,y),b=u.Z.multiplyByVector(c.Z.hermiteCoefficientMatrix,p,p)):s===t.length-2?(m=t[s],Z=t[s+1],y=e.lastTangent,g=n.Z.subtract(Z,t[s-1],d),n.Z.multiplyByScalar(g,.5,g),b=u.Z.multiplyByVector(c.Z.hermiteCoefficientMatrix,p,p)):(m=t[s-1],Z=t[s],g=t[s+1],y=t[s+2],b=u.Z.multiplyByVector(_.catmullRomCoefficientMatrix,p,p)),o=n.Z.multiplyByScalar(m,b.x,o),n.Z.multiplyByScalar(Z,b.y,f),n.Z.add(o,f,o),n.Z.multiplyByScalar(g,b.z,f),n.Z.add(o,f,o),n.Z.multiplyByScalar(y,b.w,f),n.Z.add(o,f,o)}}(this),this._lastTimeIndex=0}Object.defineProperties(_.prototype,{times:{get:function(){return this._times}},points:{get:function(){return this._points}},firstTangent:{get:function(){return this._firstTangent}},lastTangent:{get:function(){return this._lastTangent}}}),_.catmullRomCoefficientMatrix=new u.Z(-.5,1,-.5,0,1.5,-2.5,0,1,-1.5,2,.5,0,.5,-.5,0,0),_.prototype.findTimeInterval=l.Z.prototype.findTimeInterval,_.prototype.wrapTime=l.Z.prototype.wrapTime,_.prototype.clampTime=l.Z.prototype.clampTime,_.prototype.evaluate=function(e,t){return this._evaluateFunction(e,t)};const Z=_},948518:(e,t,i)=>{"use strict";i.d(t,{Z:()=>P});var n=i(527758),r=i(247976),o=i(360791),s=i(919382),a=i(846748),c=i(406144),u=i(426468),l=i(446938),h=i(197685),d=i(910946),f=i(310526),p=i(987606),m=i(520715),_=i(546135),Z=i(126874),g=i(863314),y=i(261045),b=i(690220),A=i(795788),w=i(50128),v=i(950714),T=i(969698),C=i(723822);function E(e){this.resource=e.resource,this.version=e.version,this.isHeightmap=e.isHeightmap,this.tileUrlTemplates=e.tileUrlTemplates,this.availability=e.availability,this.hasVertexNormals=e.hasVertexNormals,this.hasWaterMask=e.hasWaterMask,this.hasMetadata=e.hasMetadata,this.availabilityLevels=e.availabilityLevels,this.availabilityTilesLoaded=e.availabilityTilesLoaded,this.littleEndianExtensionSize=e.littleEndianExtensionSize,this.availabilityPromiseCache={}}function x(e){if(!(0,u.Z)(e)||!(0,u.Z)(e.url))throw new l.Z("options.url is required.");this._heightmapWidth=65,this._heightmapStructure=void 0,this._hasWaterMask=!1,this._hasVertexNormals=!1,this._ellipsoid=e.ellipsoid,this._requestVertexNormals=(0,c.Z)(e.requestVertexNormals,!1),this._requestWaterMask=(0,c.Z)(e.requestWaterMask,!1),this._requestMetadata=(0,c.Z)(e.requestMetadata,!0),this._errorEvent=new h.Z;let t=e.credit;"string"==typeof t&&(t=new a.Z(t)),this._credit=t,this._availability=void 0;const i=n.Z.defer();this._ready=!1,this._readyPromise=i,this._tileCredits=void 0;const r=this;let o,s,p;const m=this._layers=[];let _="";const Z=[];let g=0;function y(e){let t;if(!e.format)return t="The tile format is not specified in the layer.json file.",void(p=C.Z.handleError(p,r,r._errorEvent,t,void 0,void 0,void 0,S));if(!e.tiles||0===e.tiles.length)return t="The layer.json file does not specify any tile URL templates.",void(p=C.Z.handleError(p,r,r._errorEvent,t,void 0,void 0,void 0,S));let i=!1,a=!1,c=!1,l=!0,h=!1;if("heightmap-1.0"===e.format)h=!0,(0,u.Z)(r._heightmapStructure)||(r._heightmapStructure={heightScale:.2,heightOffset:-1e3,elementsPerHeight:1,stride:1,elementMultiplier:256,isBigEndian:!1,lowestEncodedHeight:0,highestEncodedHeight:65535}),a=!0,r._requestWaterMask=!0;else if(0!==e.format.indexOf("quantized-mesh-1."))return t='The tile format "'+e.format+'" is invalid or not supported.',void(p=C.Z.handleError(p,r,r._errorEvent,t,void 0,void 0,void 0,S));const A=e.tiles,w=e.maxzoom;if(g=Math.max(g,w),e.projection&&"EPSG:4326"!==e.projection){if("EPSG:3857"!==e.projection)return t='The projection "'+e.projection+'" is invalid or not supported.',void(p=C.Z.handleError(p,r,r._errorEvent,t,void 0,void 0,void 0,S));r._tilingScheme=new f.Z({numberOfLevelZeroTilesX:1,numberOfLevelZeroTilesY:1,ellipsoid:r._ellipsoid})}else r._tilingScheme=new d.Z({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:1,ellipsoid:r._ellipsoid});if(r._levelZeroMaximumGeometricError=v.Z.getEstimatedLevelZeroGeometricErrorForAHeightmap(r._tilingScheme.ellipsoid,r._heightmapWidth,r._tilingScheme.getNumberOfXTilesAtLevel(0)),e.scheme&&"tms"!==e.scheme&&"slippyMap"!==e.scheme)return t='The scheme "'+e.scheme+'" is invalid or not supported.',void(p=C.Z.handleError(p,r,r._errorEvent,t,void 0,void 0,void 0,S));let x;r._scheme=e.scheme,(0,u.Z)(e.extensions)&&-1!==e.extensions.indexOf("octvertexnormals")?i=!0:(0,u.Z)(e.extensions)&&-1!==e.extensions.indexOf("vertexnormals")&&(i=!0,l=!1),(0,u.Z)(e.extensions)&&-1!==e.extensions.indexOf("watermask")&&(a=!0),(0,u.Z)(e.extensions)&&-1!==e.extensions.indexOf("metadata")&&(c=!0);const O=e.metadataAvailability,I=e.available;let D;if((0,u.Z)(I)&&!(0,u.Z)(O)){D=new T.Z(r._tilingScheme,I.length);for(let e=0;e0&&(_+=" "),_+=e.attribution),m.push(new E({resource:o,version:e.version,isHeightmap:h,tileUrlTemplates:A,availability:D,hasVertexNormals:i,hasWaterMask:a,hasMetadata:c,availabilityLevels:O,availabilityTilesLoaded:x,littleEndianExtensionSize:l}));const P=e.parentUrl;if((0,u.Z)(P)){if(!(0,u.Z)(D))return console.log("A layer.json can't have a parentUrl if it does't have an available array."),n.Z.resolve();o=o.getDerivedResource({url:P}),o.appendForwardSlash(),s=o.getDerivedResource({url:"layer.json"});const e=s.fetchJson();return(0,n.Z)(e,y,b)}return n.Z.resolve()}function b(e){const t="An error occurred while accessing "+s.url+".";p=C.Z.handleError(p,r,r._errorEvent,t,void 0,void 0,void 0,S)}function w(e){y(e).then((function(){if((0,u.Z)(p))return;const e=Z.length;if(e>0){const t=r._availability=new T.Z(r._tilingScheme,g);for(let i=0;i0){const e=new a.Z(_);(0,u.Z)(r._tileCredits)?r._tileCredits.push(e):r._tileCredits=[e]}r._ready=!0,r._readyPromise.resolve(!0)}))}function x(e){(0,u.Z)(e)&&404===e.statusCode?w({tilejson:"2.1.0",format:"heightmap-1.0",version:"1.0.0",scheme:"tms",tiles:["{z}/{x}/{y}.terrain?v={version}"]}):b()}function S(){(0,n.Z)(s.fetchJson()).then(w).otherwise(x)}(0,n.Z)(e.url).then((function(e){const t=A.Z.createIfNeeded(e);t.appendForwardSlash(),o=t,s=o.getDerivedResource({url:"layer.json"}),r._tileCredits=t.credits,S()})).otherwise((function(e){i.reject(e)}))}function S(e){return(0,u.Z)(e)&&0!==e.length?{Accept:"application/vnd.quantized-mesh;extensions="+e.join("-")+",application/octet-stream;q=0.9,*/*;q=0.01"}:{Accept:"application/vnd.quantized-mesh,application/octet-stream;q=0.9,*/*;q=0.01"}}function O(e,t,i,a,c,l){if(!(0,u.Z)(c))return n.Z.reject(new w.Z("Terrain tile doesn't exist"));const h=c.tileUrlTemplates;if(0===h.length)return;let d;d=e._scheme&&"tms"!==e._scheme?i:e._tilingScheme.getNumberOfYTilesAtLevel(a)-i-1;const f=[];let y,b;e._requestVertexNormals&&c.hasVertexNormals&&f.push(c.littleEndianExtensionSize?"octvertexnormals":"vertexnormals"),e._requestWaterMask&&c.hasWaterMask&&f.push("watermask"),e._requestMetadata&&c.hasMetadata&&f.push("metadata");const A=h[(t+d+a)%h.length],v=c.resource;(0,u.Z)(v._ionEndpoint)&&!(0,u.Z)(v._ionEndpoint.externalType)?(0!==f.length&&(b={extensions:f.join("-")}),y=S(void 0)):y=S(f);const T=v.getDerivedResource({url:A,templateValues:{version:c.version,z:a,x:t,y:d},queryParameters:b,headers:y,request:l}).fetchArrayBuffer();return(0,u.Z)(T)?T.then((function(n){return(0,u.Z)(e._heightmapStructure)?function(e,t,i,n,r){const o=new Uint16Array(t,0,e._heightmapWidth*e._heightmapWidth);return new m.Z({buffer:o,childTileMask:new Uint8Array(t,o.byteLength,1)[0],waterMask:new Uint8Array(t,o.byteLength+1,t.byteLength-o.byteLength-1),width:e._heightmapWidth,height:e._heightmapWidth,structure:e._heightmapStructure,credits:e._tileCredits})}(e,n):function(e,t,i,n,a,c){const l=c.littleEndianExtensionSize;let h=0;const d=3*Float64Array.BYTES_PER_ELEMENT,f=4*Float64Array.BYTES_PER_ELEMENT,m=3*Uint16Array.BYTES_PER_ELEMENT;let y=Uint16Array.BYTES_PER_ELEMENT,b=3*y;const A=new DataView(t),w=new s.Z(A.getFloat64(h,!0),A.getFloat64(h+8,!0),A.getFloat64(h+16,!0));h+=d;const v=A.getFloat32(h,!0);h+=Float32Array.BYTES_PER_ELEMENT;const T=A.getFloat32(h,!0);h+=Float32Array.BYTES_PER_ELEMENT;const C=new o.Z(new s.Z(A.getFloat64(h,!0),A.getFloat64(h+8,!0),A.getFloat64(h+16,!0)),A.getFloat64(h+d,!0));h+=f;const E=new s.Z(A.getFloat64(h,!0),A.getFloat64(h+8,!0),A.getFloat64(h+16,!0));h+=d;const x=A.getUint32(h,!0);h+=Uint32Array.BYTES_PER_ELEMENT;const S=new Uint16Array(t,h,3*x);h+=x*m,x>65536&&(y=Uint32Array.BYTES_PER_ELEMENT,b=3*y);const O=S.subarray(0,x),I=S.subarray(x,2*x),D=S.subarray(2*x,3*x);r.Z.zigZagDeltaDecode(O,I,D),h%y!=0&&(h+=y-h%y);const P=A.getUint32(h,!0);h+=Uint32Array.BYTES_PER_ELEMENT;const R=_.Z.createTypedArrayFromArrayBuffer(x,t,h,3*P);h+=P*b;let B=0;const M=R.length;for(let e=0;e0){const n=(0,p.Z)(new Uint8Array(t),h+Uint32Array.BYTES_PER_ELEMENT,r).available;if((0,u.Z)(n))for(let t=0;tthis._availability._maximumLevel)return!1;if(this._availability.isTileAvailable(i,e,t))return!0;if(!this._hasMetadata)return!1;const n=this._layers,r=n.length;for(let o=0;othis._availability._maximumLevel||this._availability.isTileAvailable(i,e,t)||!this._hasMetadata)return;const n=this._layers,r=n.length;for(let o=0;o{"use strict";i.d(t,{Z:()=>a});var n=i(426468),r=i(446938);const o={};function s(e,t,i){return"Expected "+i+" to be typeof "+t+", actual typeof was "+e}o.typeOf={},o.defined=function(e,t){if(!(0,n.Z)(t))throw new r.Z(function(e){return e+" is required, actual value was undefined"}(e))},o.typeOf.func=function(e,t){if("function"!=typeof t)throw new r.Z(s(typeof t,"function",e))},o.typeOf.string=function(e,t){if("string"!=typeof t)throw new r.Z(s(typeof t,"string",e))},o.typeOf.number=function(e,t){if("number"!=typeof t)throw new r.Z(s(typeof t,"number",e))},o.typeOf.number.lessThan=function(e,t,i){if(o.typeOf.number(e,t),t>=i)throw new r.Z("Expected "+e+" to be less than "+i+", actual value was "+t)},o.typeOf.number.lessThanOrEquals=function(e,t,i){if(o.typeOf.number(e,t),t>i)throw new r.Z("Expected "+e+" to be less than or equal to "+i+", actual value was "+t)},o.typeOf.number.greaterThan=function(e,t,i){if(o.typeOf.number(e,t),t<=i)throw new r.Z("Expected "+e+" to be greater than "+i+", actual value was "+t)},o.typeOf.number.greaterThanOrEquals=function(e,t,i){if(o.typeOf.number(e,t),t{"use strict";i.d(t,{Z:()=>f});var n=i(919382),r=i(357299),o=i(406144),s=i(426468),a=i(664279),c=i(253316),u=i(172674);function l(e){const t=(e=(0,o.Z)(e,o.Z.EMPTY_OBJECT)).radius;r.Z.typeOf.number("radius",t);const i={center:e.center,semiMajorAxis:t,semiMinorAxis:t,ellipsoid:e.ellipsoid,height:e.height,extrudedHeight:e.extrudedHeight,granularity:e.granularity,vertexFormat:e.vertexFormat,stRotation:e.stRotation,shadowVolume:e.shadowVolume};this._ellipseGeometry=new a.Z(i),this._workerName="createCircleGeometry"}l.packedLength=a.Z.packedLength,l.pack=function(e,t,i){return r.Z.typeOf.object("value",e),a.Z.pack(e._ellipseGeometry,t,i)};const h=new a.Z({center:new n.Z,semiMajorAxis:1,semiMinorAxis:1}),d={center:new n.Z,radius:void 0,ellipsoid:c.Z.clone(c.Z.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,vertexFormat:new u.Z,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};l.unpack=function(e,t,i){const r=a.Z.unpack(e,t,h);return d.center=n.Z.clone(r._center,d.center),d.ellipsoid=c.Z.clone(r._ellipsoid,d.ellipsoid),d.height=r._height,d.extrudedHeight=r._extrudedHeight,d.granularity=r._granularity,d.vertexFormat=u.Z.clone(r._vertexFormat,d.vertexFormat),d.stRotation=r._stRotation,d.shadowVolume=r._shadowVolume,(0,s.Z)(i)?(d.semiMajorAxis=r._semiMajorAxis,d.semiMinorAxis=r._semiMinorAxis,i._ellipseGeometry=new a.Z(d),i):(d.radius=r._semiMajorAxis,new l(d))},l.createGeometry=function(e){return a.Z.createGeometry(e._ellipseGeometry)},l.createShadowVolume=function(e,t,i){const n=e._ellipseGeometry._granularity,r=e._ellipseGeometry._ellipsoid,o=t(n,r),s=i(n,r);return new l({center:e._ellipseGeometry._center,radius:e._ellipseGeometry._semiMajorAxis,ellipsoid:r,stRotation:e._ellipseGeometry._stRotation,granularity:n,extrudedHeight:o,height:s,vertexFormat:u.Z.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(l.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}});const f=l},862463:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(919382),r=i(357299),o=i(406144),s=i(426468),a=i(526301),c=i(253316);function u(e){const t=(e=(0,o.Z)(e,o.Z.EMPTY_OBJECT)).radius;r.Z.typeOf.number("radius",t);const i={center:e.center,semiMajorAxis:t,semiMinorAxis:t,ellipsoid:e.ellipsoid,height:e.height,extrudedHeight:e.extrudedHeight,granularity:e.granularity,numberOfVerticalLines:e.numberOfVerticalLines};this._ellipseGeometry=new a.Z(i),this._workerName="createCircleOutlineGeometry"}u.packedLength=a.Z.packedLength,u.pack=function(e,t,i){return r.Z.typeOf.object("value",e),a.Z.pack(e._ellipseGeometry,t,i)};const l=new a.Z({center:new n.Z,semiMajorAxis:1,semiMinorAxis:1}),h={center:new n.Z,radius:void 0,ellipsoid:c.Z.clone(c.Z.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,numberOfVerticalLines:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0};u.unpack=function(e,t,i){const r=a.Z.unpack(e,t,l);return h.center=n.Z.clone(r._center,h.center),h.ellipsoid=c.Z.clone(r._ellipsoid,h.ellipsoid),h.height=r._height,h.extrudedHeight=r._extrudedHeight,h.granularity=r._granularity,h.numberOfVerticalLines=r._numberOfVerticalLines,(0,s.Z)(i)?(h.semiMajorAxis=r._semiMajorAxis,h.semiMinorAxis=r._semiMinorAxis,i._ellipseGeometry=new a.Z(h),i):(h.radius=r._semiMajorAxis,new u(h))},u.createGeometry=function(e){return a.Z.createGeometry(e._ellipseGeometry)};const d=u},322380:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(449745),r=i(27210),o=i(406144),s=i(426468),a=i(446938),c=i(197685),u=i(485083),l=i(40080);function h(e){let t=(e=(0,o.Z)(e,o.Z.EMPTY_OBJECT)).currentTime,i=e.startTime,h=e.stopTime;if(t=(0,s.Z)(t)?l.Z.clone(t):(0,s.Z)(i)?l.Z.clone(i):(0,s.Z)(h)?l.Z.addDays(h,-1,new l.Z):l.Z.now(),i=(0,s.Z)(i)?l.Z.clone(i):l.Z.clone(t),h=(0,s.Z)(h)?l.Z.clone(h):l.Z.addDays(i,1,new l.Z),l.Z.greaterThan(i,h))throw new a.Z("startTime must come before stopTime.");this.startTime=i,this.stopTime=h,this.clockRange=(0,o.Z)(e.clockRange,n.Z.UNBOUNDED),this.canAnimate=(0,o.Z)(e.canAnimate,!0),this.onTick=new c.Z,this.onStop=new c.Z,this._currentTime=void 0,this._multiplier=void 0,this._clockStep=void 0,this._shouldAnimate=void 0,this._lastSystemTime=(0,u.Z)(),this.currentTime=t,this.multiplier=(0,o.Z)(e.multiplier,1),this.shouldAnimate=(0,o.Z)(e.shouldAnimate,!1),this.clockStep=(0,o.Z)(e.clockStep,r.Z.SYSTEM_CLOCK_MULTIPLIER)}Object.defineProperties(h.prototype,{currentTime:{get:function(){return this._currentTime},set:function(e){l.Z.equals(this._currentTime,e)||(this._clockStep===r.Z.SYSTEM_CLOCK&&(this._clockStep=r.Z.SYSTEM_CLOCK_MULTIPLIER),this._currentTime=e)}},multiplier:{get:function(){return this._multiplier},set:function(e){this._multiplier!==e&&(this._clockStep===r.Z.SYSTEM_CLOCK&&(this._clockStep=r.Z.SYSTEM_CLOCK_MULTIPLIER),this._multiplier=e)}},clockStep:{get:function(){return this._clockStep},set:function(e){e===r.Z.SYSTEM_CLOCK&&(this._multiplier=1,this._shouldAnimate=!0,this._currentTime=l.Z.now()),this._clockStep=e}},shouldAnimate:{get:function(){return this._shouldAnimate},set:function(e){this._shouldAnimate!==e&&(this._clockStep===r.Z.SYSTEM_CLOCK&&(this._clockStep=r.Z.SYSTEM_CLOCK_MULTIPLIER),this._shouldAnimate=e)}}}),h.prototype.tick=function(){const e=(0,u.Z)();let t=l.Z.clone(this._currentTime);if(this.canAnimate&&this._shouldAnimate){const i=this._clockStep;if(i===r.Z.SYSTEM_CLOCK)t=l.Z.now(t);else{const o=this._multiplier;if(i===r.Z.TICK_DEPENDENT)t=l.Z.addSeconds(t,o,t);else{const i=e-this._lastSystemTime;t=l.Z.addSeconds(t,o*(i/1e3),t)}const s=this.clockRange,a=this.startTime,c=this.stopTime;if(s===n.Z.CLAMPED)l.Z.lessThan(t,a)?t=l.Z.clone(a,t):l.Z.greaterThan(t,c)&&(t=l.Z.clone(c,t),this.onStop.raiseEvent(this));else if(s===n.Z.LOOP_STOP)for(l.Z.lessThan(t,a)&&(t=l.Z.clone(a,t));l.Z.greaterThan(t,c);)t=l.Z.addSeconds(a,l.Z.secondsDifference(t,c),t),this.onStop.raiseEvent(this)}}return this._currentTime=t,this._lastSystemTime=e,this.onTick.raiseEvent(this),t};const d=h},449745:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({UNBOUNDED:0,CLAMPED:1,LOOP_STOP:2})},27210:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({TICK_DEPENDENT:0,SYSTEM_CLOCK_MULTIPLIER:1,SYSTEM_CLOCK:2})},545125:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Z});var n=i(357299),r=i(406144),o=i(426468),s=i(488802),a=i(362017);function c(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),6*i<1?e+6*(t-e)*i:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e}function u(e,t,i,n){this.red=(0,r.Z)(e,1),this.green=(0,r.Z)(t,1),this.blue=(0,r.Z)(i,1),this.alpha=(0,r.Z)(n,1)}let l,h,d;u.fromCartesian4=function(e,t){return n.Z.typeOf.object("cartesian",e),(0,o.Z)(t)?(t.red=e.x,t.green=e.y,t.blue=e.z,t.alpha=e.w,t):new u(e.x,e.y,e.z,e.w)},u.fromBytes=function(e,t,i,n,s){return e=u.byteToFloat((0,r.Z)(e,255)),t=u.byteToFloat((0,r.Z)(t,255)),i=u.byteToFloat((0,r.Z)(i,255)),n=u.byteToFloat((0,r.Z)(n,255)),(0,o.Z)(s)?(s.red=e,s.green=t,s.blue=i,s.alpha=n,s):new u(e,t,i,n)},u.fromAlpha=function(e,t,i){return n.Z.typeOf.object("color",e),n.Z.typeOf.number("alpha",t),(0,o.Z)(i)?(i.red=e.red,i.green=e.green,i.blue=e.blue,i.alpha=t,i):new u(e.red,e.green,e.blue,t)},s.Z.supportsTypedArrays()&&(l=new ArrayBuffer(4),h=new Uint32Array(l),d=new Uint8Array(l)),u.fromRgba=function(e,t){return h[0]=e,u.fromBytes(d[0],d[1],d[2],d[3],t)},u.fromHsl=function(e,t,i,n,s){e=(0,r.Z)(e,0)%1,t=(0,r.Z)(t,0),i=(0,r.Z)(i,0),n=(0,r.Z)(n,1);let a=i,l=i,h=i;if(0!==t){let n;n=i<.5?i*(1+t):i+t-i*t;const r=2*i-n;a=c(r,n,e+1/3),l=c(r,n,e),h=c(r,n,e-1/3)}return(0,o.Z)(s)?(s.red=a,s.green=l,s.blue=h,s.alpha=n,s):new u(a,l,h,n)},u.fromRandom=function(e,t){let i=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).red;if(!(0,o.Z)(i)){const t=(0,r.Z)(e.minimumRed,0),o=(0,r.Z)(e.maximumRed,1);n.Z.typeOf.number.lessThanOrEquals("minimumRed",t,o),i=t+a.Z.nextRandomNumber()*(o-t)}let s=e.green;if(!(0,o.Z)(s)){const t=(0,r.Z)(e.minimumGreen,0),i=(0,r.Z)(e.maximumGreen,1);n.Z.typeOf.number.lessThanOrEquals("minimumGreen",t,i),s=t+a.Z.nextRandomNumber()*(i-t)}let c=e.blue;if(!(0,o.Z)(c)){const t=(0,r.Z)(e.minimumBlue,0),i=(0,r.Z)(e.maximumBlue,1);n.Z.typeOf.number.lessThanOrEquals("minimumBlue",t,i),c=t+a.Z.nextRandomNumber()*(i-t)}let l=e.alpha;if(!(0,o.Z)(l)){const t=(0,r.Z)(e.minimumAlpha,0),i=(0,r.Z)(e.maximumAlpha,1);n.Z.typeOf.number.lessThanOrEquals("minumumAlpha",t,i),l=t+a.Z.nextRandomNumber()*(i-t)}return(0,o.Z)(t)?(t.red=i,t.green=s,t.blue=c,t.alpha=l,t):new u(i,s,c,l)};const f=/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?$/i,p=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i,m=/^rgba?\(\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)(?:\s*,\s*([0-9.]+))?\s*\)$/i,_=/^hsla?\(\s*([0-9.]+)\s*,\s*([0-9.]+%)\s*,\s*([0-9.]+%)(?:\s*,\s*([0-9.]+))?\s*\)$/i;u.fromCssColorString=function(e,t){n.Z.typeOf.string("color",e),(0,o.Z)(t)||(t=new u);const i=u[(e=e.replace(/\s/g,"")).toUpperCase()];if((0,o.Z)(i))return u.clone(i,t),t;let s=f.exec(e);return null!==s?(t.red=parseInt(s[1],16)/15,t.green=parseInt(s[2],16)/15,t.blue=parseInt(s[3],16)/15,t.alpha=parseInt((0,r.Z)(s[4],"f"),16)/15,t):(s=p.exec(e),null!==s?(t.red=parseInt(s[1],16)/255,t.green=parseInt(s[2],16)/255,t.blue=parseInt(s[3],16)/255,t.alpha=parseInt((0,r.Z)(s[4],"ff"),16)/255,t):(s=m.exec(e),null!==s?(t.red=parseFloat(s[1])/("%"===s[1].substr(-1)?100:255),t.green=parseFloat(s[2])/("%"===s[2].substr(-1)?100:255),t.blue=parseFloat(s[3])/("%"===s[3].substr(-1)?100:255),t.alpha=parseFloat((0,r.Z)(s[4],"1.0")),t):(s=_.exec(e),null!==s?u.fromHsl(parseFloat(s[1])/360,parseFloat(s[2])/100,parseFloat(s[3])/100,parseFloat((0,r.Z)(s[4],"1.0")),t):t=void 0)))},u.packedLength=4,u.pack=function(e,t,i){return n.Z.typeOf.object("value",e),n.Z.defined("array",t),i=(0,r.Z)(i,0),t[i++]=e.red,t[i++]=e.green,t[i++]=e.blue,t[i]=e.alpha,t},u.unpack=function(e,t,i){return n.Z.defined("array",e),t=(0,r.Z)(t,0),(0,o.Z)(i)||(i=new u),i.red=e[t++],i.green=e[t++],i.blue=e[t++],i.alpha=e[t],i},u.byteToFloat=function(e){return e/255},u.floatToByte=function(e){return 1===e?255:256*e|0},u.clone=function(e,t){if((0,o.Z)(e))return(0,o.Z)(t)?(t.red=e.red,t.green=e.green,t.blue=e.blue,t.alpha=e.alpha,t):new u(e.red,e.green,e.blue,e.alpha)},u.equals=function(e,t){return e===t||(0,o.Z)(e)&&(0,o.Z)(t)&&e.red===t.red&&e.green===t.green&&e.blue===t.blue&&e.alpha===t.alpha},u.equalsArray=function(e,t,i){return e.red===t[i]&&e.green===t[i+1]&&e.blue===t[i+2]&&e.alpha===t[i+3]},u.prototype.clone=function(e){return u.clone(this,e)},u.prototype.equals=function(e){return u.equals(this,e)},u.prototype.equalsEpsilon=function(e,t){return this===e||(0,o.Z)(e)&&Math.abs(this.red-e.red)<=t&&Math.abs(this.green-e.green)<=t&&Math.abs(this.blue-e.blue)<=t&&Math.abs(this.alpha-e.alpha)<=t},u.prototype.toString=function(){return"("+this.red+", "+this.green+", "+this.blue+", "+this.alpha+")"},u.prototype.toCssColorString=function(){const e=u.floatToByte(this.red),t=u.floatToByte(this.green),i=u.floatToByte(this.blue);return 1===this.alpha?"rgb("+e+","+t+","+i+")":"rgba("+e+","+t+","+i+","+this.alpha+")"},u.prototype.toCssHexString=function(){let e=u.floatToByte(this.red).toString(16);e.length<2&&(e="0"+e);let t=u.floatToByte(this.green).toString(16);t.length<2&&(t="0"+t);let i=u.floatToByte(this.blue).toString(16);if(i.length<2&&(i="0"+i),this.alpha<1){let n=u.floatToByte(this.alpha).toString(16);return n.length<2&&(n="0"+n),"#"+e+t+i+n}return"#"+e+t+i},u.prototype.toBytes=function(e){const t=u.floatToByte(this.red),i=u.floatToByte(this.green),n=u.floatToByte(this.blue),r=u.floatToByte(this.alpha);return(0,o.Z)(e)?(e[0]=t,e[1]=i,e[2]=n,e[3]=r,e):[t,i,n,r]},u.prototype.toRgba=function(){return d[0]=u.floatToByte(this.red),d[1]=u.floatToByte(this.green),d[2]=u.floatToByte(this.blue),d[3]=u.floatToByte(this.alpha),h[0]},u.prototype.brighten=function(e,t){return n.Z.typeOf.number("magnitude",e),n.Z.typeOf.number.greaterThanOrEquals("magnitude",e,0),n.Z.typeOf.object("result",t),e=1-e,t.red=1-(1-this.red)*e,t.green=1-(1-this.green)*e,t.blue=1-(1-this.blue)*e,t.alpha=this.alpha,t},u.prototype.darken=function(e,t){return n.Z.typeOf.number("magnitude",e),n.Z.typeOf.number.greaterThanOrEquals("magnitude",e,0),n.Z.typeOf.object("result",t),e=1-e,t.red=this.red*e,t.green=this.green*e,t.blue=this.blue*e,t.alpha=this.alpha,t},u.prototype.withAlpha=function(e,t){return u.fromAlpha(this,e,t)},u.add=function(e,t,i){return n.Z.typeOf.object("left",e),n.Z.typeOf.object("right",t),n.Z.typeOf.object("result",i),i.red=e.red+t.red,i.green=e.green+t.green,i.blue=e.blue+t.blue,i.alpha=e.alpha+t.alpha,i},u.subtract=function(e,t,i){return n.Z.typeOf.object("left",e),n.Z.typeOf.object("right",t),n.Z.typeOf.object("result",i),i.red=e.red-t.red,i.green=e.green-t.green,i.blue=e.blue-t.blue,i.alpha=e.alpha-t.alpha,i},u.multiply=function(e,t,i){return n.Z.typeOf.object("left",e),n.Z.typeOf.object("right",t),n.Z.typeOf.object("result",i),i.red=e.red*t.red,i.green=e.green*t.green,i.blue=e.blue*t.blue,i.alpha=e.alpha*t.alpha,i},u.divide=function(e,t,i){return n.Z.typeOf.object("left",e),n.Z.typeOf.object("right",t),n.Z.typeOf.object("result",i),i.red=e.red/t.red,i.green=e.green/t.green,i.blue=e.blue/t.blue,i.alpha=e.alpha/t.alpha,i},u.mod=function(e,t,i){return n.Z.typeOf.object("left",e),n.Z.typeOf.object("right",t),n.Z.typeOf.object("result",i),i.red=e.red%t.red,i.green=e.green%t.green,i.blue=e.blue%t.blue,i.alpha=e.alpha%t.alpha,i},u.lerp=function(e,t,i,r){return n.Z.typeOf.object("start",e),n.Z.typeOf.object("end",t),n.Z.typeOf.number("t",i),n.Z.typeOf.object("result",r),r.red=a.Z.lerp(e.red,t.red,i),r.green=a.Z.lerp(e.green,t.green,i),r.blue=a.Z.lerp(e.blue,t.blue,i),r.alpha=a.Z.lerp(e.alpha,t.alpha,i),r},u.multiplyByScalar=function(e,t,i){return n.Z.typeOf.object("color",e),n.Z.typeOf.number("scalar",t),n.Z.typeOf.object("result",i),i.red=e.red*t,i.green=e.green*t,i.blue=e.blue*t,i.alpha=e.alpha*t,i},u.divideByScalar=function(e,t,i){return n.Z.typeOf.object("color",e),n.Z.typeOf.number("scalar",t),n.Z.typeOf.object("result",i),i.red=e.red/t,i.green=e.green/t,i.blue=e.blue/t,i.alpha=e.alpha/t,i},u.ALICEBLUE=Object.freeze(u.fromCssColorString("#F0F8FF")),u.ANTIQUEWHITE=Object.freeze(u.fromCssColorString("#FAEBD7")),u.AQUA=Object.freeze(u.fromCssColorString("#00FFFF")),u.AQUAMARINE=Object.freeze(u.fromCssColorString("#7FFFD4")),u.AZURE=Object.freeze(u.fromCssColorString("#F0FFFF")),u.BEIGE=Object.freeze(u.fromCssColorString("#F5F5DC")),u.BISQUE=Object.freeze(u.fromCssColorString("#FFE4C4")),u.BLACK=Object.freeze(u.fromCssColorString("#000000")),u.BLANCHEDALMOND=Object.freeze(u.fromCssColorString("#FFEBCD")),u.BLUE=Object.freeze(u.fromCssColorString("#0000FF")),u.BLUEVIOLET=Object.freeze(u.fromCssColorString("#8A2BE2")),u.BROWN=Object.freeze(u.fromCssColorString("#A52A2A")),u.BURLYWOOD=Object.freeze(u.fromCssColorString("#DEB887")),u.CADETBLUE=Object.freeze(u.fromCssColorString("#5F9EA0")),u.CHARTREUSE=Object.freeze(u.fromCssColorString("#7FFF00")),u.CHOCOLATE=Object.freeze(u.fromCssColorString("#D2691E")),u.CORAL=Object.freeze(u.fromCssColorString("#FF7F50")),u.CORNFLOWERBLUE=Object.freeze(u.fromCssColorString("#6495ED")),u.CORNSILK=Object.freeze(u.fromCssColorString("#FFF8DC")),u.CRIMSON=Object.freeze(u.fromCssColorString("#DC143C")),u.CYAN=Object.freeze(u.fromCssColorString("#00FFFF")),u.DARKBLUE=Object.freeze(u.fromCssColorString("#00008B")),u.DARKCYAN=Object.freeze(u.fromCssColorString("#008B8B")),u.DARKGOLDENROD=Object.freeze(u.fromCssColorString("#B8860B")),u.DARKGRAY=Object.freeze(u.fromCssColorString("#A9A9A9")),u.DARKGREEN=Object.freeze(u.fromCssColorString("#006400")),u.DARKGREY=u.DARKGRAY,u.DARKKHAKI=Object.freeze(u.fromCssColorString("#BDB76B")),u.DARKMAGENTA=Object.freeze(u.fromCssColorString("#8B008B")),u.DARKOLIVEGREEN=Object.freeze(u.fromCssColorString("#556B2F")),u.DARKORANGE=Object.freeze(u.fromCssColorString("#FF8C00")),u.DARKORCHID=Object.freeze(u.fromCssColorString("#9932CC")),u.DARKRED=Object.freeze(u.fromCssColorString("#8B0000")),u.DARKSALMON=Object.freeze(u.fromCssColorString("#E9967A")),u.DARKSEAGREEN=Object.freeze(u.fromCssColorString("#8FBC8F")),u.DARKSLATEBLUE=Object.freeze(u.fromCssColorString("#483D8B")),u.DARKSLATEGRAY=Object.freeze(u.fromCssColorString("#2F4F4F")),u.DARKSLATEGREY=u.DARKSLATEGRAY,u.DARKTURQUOISE=Object.freeze(u.fromCssColorString("#00CED1")),u.DARKVIOLET=Object.freeze(u.fromCssColorString("#9400D3")),u.DEEPPINK=Object.freeze(u.fromCssColorString("#FF1493")),u.DEEPSKYBLUE=Object.freeze(u.fromCssColorString("#00BFFF")),u.DIMGRAY=Object.freeze(u.fromCssColorString("#696969")),u.DIMGREY=u.DIMGRAY,u.DODGERBLUE=Object.freeze(u.fromCssColorString("#1E90FF")),u.FIREBRICK=Object.freeze(u.fromCssColorString("#B22222")),u.FLORALWHITE=Object.freeze(u.fromCssColorString("#FFFAF0")),u.FORESTGREEN=Object.freeze(u.fromCssColorString("#228B22")),u.FUCHSIA=Object.freeze(u.fromCssColorString("#FF00FF")),u.GAINSBORO=Object.freeze(u.fromCssColorString("#DCDCDC")),u.GHOSTWHITE=Object.freeze(u.fromCssColorString("#F8F8FF")),u.GOLD=Object.freeze(u.fromCssColorString("#FFD700")),u.GOLDENROD=Object.freeze(u.fromCssColorString("#DAA520")),u.GRAY=Object.freeze(u.fromCssColorString("#808080")),u.GREEN=Object.freeze(u.fromCssColorString("#008000")),u.GREENYELLOW=Object.freeze(u.fromCssColorString("#ADFF2F")),u.GREY=u.GRAY,u.HONEYDEW=Object.freeze(u.fromCssColorString("#F0FFF0")),u.HOTPINK=Object.freeze(u.fromCssColorString("#FF69B4")),u.INDIANRED=Object.freeze(u.fromCssColorString("#CD5C5C")),u.INDIGO=Object.freeze(u.fromCssColorString("#4B0082")),u.IVORY=Object.freeze(u.fromCssColorString("#FFFFF0")),u.KHAKI=Object.freeze(u.fromCssColorString("#F0E68C")),u.LAVENDER=Object.freeze(u.fromCssColorString("#E6E6FA")),u.LAVENDAR_BLUSH=Object.freeze(u.fromCssColorString("#FFF0F5")),u.LAWNGREEN=Object.freeze(u.fromCssColorString("#7CFC00")),u.LEMONCHIFFON=Object.freeze(u.fromCssColorString("#FFFACD")),u.LIGHTBLUE=Object.freeze(u.fromCssColorString("#ADD8E6")),u.LIGHTCORAL=Object.freeze(u.fromCssColorString("#F08080")),u.LIGHTCYAN=Object.freeze(u.fromCssColorString("#E0FFFF")),u.LIGHTGOLDENRODYELLOW=Object.freeze(u.fromCssColorString("#FAFAD2")),u.LIGHTGRAY=Object.freeze(u.fromCssColorString("#D3D3D3")),u.LIGHTGREEN=Object.freeze(u.fromCssColorString("#90EE90")),u.LIGHTGREY=u.LIGHTGRAY,u.LIGHTPINK=Object.freeze(u.fromCssColorString("#FFB6C1")),u.LIGHTSEAGREEN=Object.freeze(u.fromCssColorString("#20B2AA")),u.LIGHTSKYBLUE=Object.freeze(u.fromCssColorString("#87CEFA")),u.LIGHTSLATEGRAY=Object.freeze(u.fromCssColorString("#778899")),u.LIGHTSLATEGREY=u.LIGHTSLATEGRAY,u.LIGHTSTEELBLUE=Object.freeze(u.fromCssColorString("#B0C4DE")),u.LIGHTYELLOW=Object.freeze(u.fromCssColorString("#FFFFE0")),u.LIME=Object.freeze(u.fromCssColorString("#00FF00")),u.LIMEGREEN=Object.freeze(u.fromCssColorString("#32CD32")),u.LINEN=Object.freeze(u.fromCssColorString("#FAF0E6")),u.MAGENTA=Object.freeze(u.fromCssColorString("#FF00FF")),u.MAROON=Object.freeze(u.fromCssColorString("#800000")),u.MEDIUMAQUAMARINE=Object.freeze(u.fromCssColorString("#66CDAA")),u.MEDIUMBLUE=Object.freeze(u.fromCssColorString("#0000CD")),u.MEDIUMORCHID=Object.freeze(u.fromCssColorString("#BA55D3")),u.MEDIUMPURPLE=Object.freeze(u.fromCssColorString("#9370DB")),u.MEDIUMSEAGREEN=Object.freeze(u.fromCssColorString("#3CB371")),u.MEDIUMSLATEBLUE=Object.freeze(u.fromCssColorString("#7B68EE")),u.MEDIUMSPRINGGREEN=Object.freeze(u.fromCssColorString("#00FA9A")),u.MEDIUMTURQUOISE=Object.freeze(u.fromCssColorString("#48D1CC")),u.MEDIUMVIOLETRED=Object.freeze(u.fromCssColorString("#C71585")),u.MIDNIGHTBLUE=Object.freeze(u.fromCssColorString("#191970")),u.MINTCREAM=Object.freeze(u.fromCssColorString("#F5FFFA")),u.MISTYROSE=Object.freeze(u.fromCssColorString("#FFE4E1")),u.MOCCASIN=Object.freeze(u.fromCssColorString("#FFE4B5")),u.NAVAJOWHITE=Object.freeze(u.fromCssColorString("#FFDEAD")),u.NAVY=Object.freeze(u.fromCssColorString("#000080")),u.OLDLACE=Object.freeze(u.fromCssColorString("#FDF5E6")),u.OLIVE=Object.freeze(u.fromCssColorString("#808000")),u.OLIVEDRAB=Object.freeze(u.fromCssColorString("#6B8E23")),u.ORANGE=Object.freeze(u.fromCssColorString("#FFA500")),u.ORANGERED=Object.freeze(u.fromCssColorString("#FF4500")),u.ORCHID=Object.freeze(u.fromCssColorString("#DA70D6")),u.PALEGOLDENROD=Object.freeze(u.fromCssColorString("#EEE8AA")),u.PALEGREEN=Object.freeze(u.fromCssColorString("#98FB98")),u.PALETURQUOISE=Object.freeze(u.fromCssColorString("#AFEEEE")),u.PALEVIOLETRED=Object.freeze(u.fromCssColorString("#DB7093")),u.PAPAYAWHIP=Object.freeze(u.fromCssColorString("#FFEFD5")),u.PEACHPUFF=Object.freeze(u.fromCssColorString("#FFDAB9")),u.PERU=Object.freeze(u.fromCssColorString("#CD853F")),u.PINK=Object.freeze(u.fromCssColorString("#FFC0CB")),u.PLUM=Object.freeze(u.fromCssColorString("#DDA0DD")),u.POWDERBLUE=Object.freeze(u.fromCssColorString("#B0E0E6")),u.PURPLE=Object.freeze(u.fromCssColorString("#800080")),u.RED=Object.freeze(u.fromCssColorString("#FF0000")),u.ROSYBROWN=Object.freeze(u.fromCssColorString("#BC8F8F")),u.ROYALBLUE=Object.freeze(u.fromCssColorString("#4169E1")),u.SADDLEBROWN=Object.freeze(u.fromCssColorString("#8B4513")),u.SALMON=Object.freeze(u.fromCssColorString("#FA8072")),u.SANDYBROWN=Object.freeze(u.fromCssColorString("#F4A460")),u.SEAGREEN=Object.freeze(u.fromCssColorString("#2E8B57")),u.SEASHELL=Object.freeze(u.fromCssColorString("#FFF5EE")),u.SIENNA=Object.freeze(u.fromCssColorString("#A0522D")),u.SILVER=Object.freeze(u.fromCssColorString("#C0C0C0")),u.SKYBLUE=Object.freeze(u.fromCssColorString("#87CEEB")),u.SLATEBLUE=Object.freeze(u.fromCssColorString("#6A5ACD")),u.SLATEGRAY=Object.freeze(u.fromCssColorString("#708090")),u.SLATEGREY=u.SLATEGRAY,u.SNOW=Object.freeze(u.fromCssColorString("#FFFAFA")),u.SPRINGGREEN=Object.freeze(u.fromCssColorString("#00FF7F")),u.STEELBLUE=Object.freeze(u.fromCssColorString("#4682B4")),u.TAN=Object.freeze(u.fromCssColorString("#D2B48C")),u.TEAL=Object.freeze(u.fromCssColorString("#008080")),u.THISTLE=Object.freeze(u.fromCssColorString("#D8BFD8")),u.TOMATO=Object.freeze(u.fromCssColorString("#FF6347")),u.TURQUOISE=Object.freeze(u.fromCssColorString("#40E0D0")),u.VIOLET=Object.freeze(u.fromCssColorString("#EE82EE")),u.WHEAT=Object.freeze(u.fromCssColorString("#F5DEB3")),u.WHITE=Object.freeze(u.fromCssColorString("#FFFFFF")),u.WHITESMOKE=Object.freeze(u.fromCssColorString("#F5F5F5")),u.YELLOW=Object.freeze(u.fromCssColorString("#FFFF00")),u.YELLOWGREEN=Object.freeze(u.fromCssColorString("#9ACD32")),u.TRANSPARENT=Object.freeze(new u(0,0,0,0));const Z=u},182934:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(545125),r=i(997274),o=i(406144),s=i(426468),a=i(446938);function c(e,t,i,r){e=(0,o.Z)(e,1),t=(0,o.Z)(t,1),i=(0,o.Z)(i,1),r=(0,o.Z)(r,1),this.value=new Uint8Array([n.Z.floatToByte(e),n.Z.floatToByte(t),n.Z.floatToByte(i),n.Z.floatToByte(r)])}Object.defineProperties(c.prototype,{componentDatatype:{get:function(){return r.Z.UNSIGNED_BYTE}},componentsPerAttribute:{get:function(){return 4}},normalize:{get:function(){return!0}}}),c.fromColor=function(e){if(!(0,s.Z)(e))throw new a.Z("color is required.");return new c(e.red,e.green,e.blue,e.alpha)},c.toValue=function(e,t){if(!(0,s.Z)(e))throw new a.Z("color is required.");return(0,s.Z)(t)?e.toBytes(t):new Uint8Array(e.toBytes())},c.equals=function(e,t){return e===t||(0,s.Z)(e)&&(0,s.Z)(t)&&e.value[0]===t.value[0]&&e.value[1]===t.value[1]&&e.value[2]===t.value[2]&&e.value[3]===t.value[3]};const u=c},997274:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(406144),r=i(426468),o=i(446938),s=i(619287);const a={BYTE:s.Z.BYTE,UNSIGNED_BYTE:s.Z.UNSIGNED_BYTE,SHORT:s.Z.SHORT,UNSIGNED_SHORT:s.Z.UNSIGNED_SHORT,INT:s.Z.INT,UNSIGNED_INT:s.Z.UNSIGNED_INT,FLOAT:s.Z.FLOAT,DOUBLE:s.Z.DOUBLE,getSizeInBytes:function(e){if(!(0,r.Z)(e))throw new o.Z("value is required.");switch(e){case a.BYTE:return Int8Array.BYTES_PER_ELEMENT;case a.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case a.SHORT:return Int16Array.BYTES_PER_ELEMENT;case a.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case a.INT:return Int32Array.BYTES_PER_ELEMENT;case a.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT;case a.FLOAT:return Float32Array.BYTES_PER_ELEMENT;case a.DOUBLE:return Float64Array.BYTES_PER_ELEMENT;default:throw new o.Z("componentDatatype is not a valid value.")}},fromTypedArray:function(e){return e instanceof Int8Array?a.BYTE:e instanceof Uint8Array?a.UNSIGNED_BYTE:e instanceof Int16Array?a.SHORT:e instanceof Uint16Array?a.UNSIGNED_SHORT:e instanceof Int32Array?a.INT:e instanceof Uint32Array?a.UNSIGNED_INT:e instanceof Float32Array?a.FLOAT:e instanceof Float64Array?a.DOUBLE:void 0},validate:function(e){return(0,r.Z)(e)&&(e===a.BYTE||e===a.UNSIGNED_BYTE||e===a.SHORT||e===a.UNSIGNED_SHORT||e===a.INT||e===a.UNSIGNED_INT||e===a.FLOAT||e===a.DOUBLE)},createTypedArray:function(e,t){if(!(0,r.Z)(e))throw new o.Z("componentDatatype is required.");if(!(0,r.Z)(t))throw new o.Z("valuesOrLength is required.");switch(e){case a.BYTE:return new Int8Array(t);case a.UNSIGNED_BYTE:return new Uint8Array(t);case a.SHORT:return new Int16Array(t);case a.UNSIGNED_SHORT:return new Uint16Array(t);case a.INT:return new Int32Array(t);case a.UNSIGNED_INT:return new Uint32Array(t);case a.FLOAT:return new Float32Array(t);case a.DOUBLE:return new Float64Array(t);default:throw new o.Z("componentDatatype is not a valid value.")}},createArrayBufferView:function(e,t,i,s){if(!(0,r.Z)(e))throw new o.Z("componentDatatype is required.");if(!(0,r.Z)(t))throw new o.Z("buffer is required.");switch(i=(0,n.Z)(i,0),s=(0,n.Z)(s,(t.byteLength-i)/a.getSizeInBytes(e)),e){case a.BYTE:return new Int8Array(t,i,s);case a.UNSIGNED_BYTE:return new Uint8Array(t,i,s);case a.SHORT:return new Int16Array(t,i,s);case a.UNSIGNED_SHORT:return new Uint16Array(t,i,s);case a.INT:return new Int32Array(t,i,s);case a.UNSIGNED_INT:return new Uint32Array(t,i,s);case a.FLOAT:return new Float32Array(t,i,s);case a.DOUBLE:return new Float64Array(t,i,s);default:throw new o.Z("componentDatatype is not a valid value.")}},fromName:function(e){switch(e){case"BYTE":return a.BYTE;case"UNSIGNED_BYTE":return a.UNSIGNED_BYTE;case"SHORT":return a.SHORT;case"UNSIGNED_SHORT":return a.UNSIGNED_SHORT;case"INT":return a.INT;case"UNSIGNED_INT":return a.UNSIGNED_INT;case"FLOAT":return a.FLOAT;case"DOUBLE":return a.DOUBLE;default:throw new o.Z("name is not a valid value.")}}},c=Object.freeze(a)},442832:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(426468);function r(e,t,i,n,r){this._format=e,this._datatype=t,this._width=i,this._height=n,this._buffer=r}Object.defineProperties(r.prototype,{internalFormat:{get:function(){return this._format}},pixelDatatype:{get:function(){return this._datatype}},width:{get:function(){return this._width}},height:{get:function(){return this._height}},bufferView:{get:function(){return this._buffer}}}),r.clone=function(e){if((0,n.Z)(e))return new r(e._format,e._datatype,e._width,e._height,e._buffer)},r.prototype.clone=function(){return r.clone(this)};const o=r},528233:(e,t,i)=>{"use strict";i.d(t,{Z:()=>j});var n=i(554875),r=i(152124),o=i(360791),s=i(337968),a=i(919382),c=i(357299),u=i(997274),l=i(930392),h=i(406144),d=i(426468),f=i(253316),p=i(915067),m=i(611843),_=i(451628),Z=i(952254),g=i(423035),y=i(546135),b=i(362017),A=i(165373),w=i(189662),v=i(944593),T=i(195809),C=i(129782),E=i(172674);const x=new a.Z,S=new r.Z,O=new s.Z,I=new s.Z,D=new a.Z,P=new a.Z,R=new a.Z,B=new a.Z,M=new a.Z,L=new a.Z,N=new C.Z,F=new A.Z,k=new A.Z,U=new a.Z;function V(e,t,i,n,r,o,c,l){const h=e.positions;let d=v.Z.triangulate(e.positions2D,e.holes);d.length<3&&(d=[0,1,2]);const f=y.Z.createTypedArray(h.length,d.length);f.set(d);let Z=F;if(0!==n){let e=C.Z.fromAxisAngle(o,n,N);if(Z=A.Z.fromQuaternion(e,Z),t.tangent||t.bitangent){e=C.Z.fromAxisAngle(o,-n,N);const i=A.Z.fromQuaternion(e,k);c=a.Z.normalize(A.Z.multiplyByVector(i,c,c),c),t.bitangent&&(l=a.Z.normalize(a.Z.cross(o,c,l),l))}}else Z=A.Z.clone(A.Z.IDENTITY,Z);const g=I;t.st&&(g.x=i.x,g.y=i.y);const w=h.length,E=3*w,S=new Float64Array(E),D=t.normal?new Float32Array(E):void 0,P=t.tangent?new Float32Array(E):void 0,R=t.bitangent?new Float32Array(E):void 0,B=t.st?new Float32Array(2*w):void 0;let M=0,L=0,U=0,V=0,z=0;for(let e=0;e{"use strict";i.d(t,{Z:()=>m});var n=i(337968),r=i(919382),o=i(357299),s=i(165373),a=i(126874);const c={},u=new r.Z,l=new r.Z,h=new r.Z,d=new r.Z,f=new a.Z;function p(e,t,i,o,s){const a=r.Z.subtract(e,t,u),c=r.Z.dot(i,a),l=r.Z.dot(o,a);return n.Z.fromElements(c,l,s)}c.validOutline=function(e){o.Z.defined("positions",e);const t=a.Z.fromPoints(e,f).halfAxes,i=s.Z.getColumn(t,0,l),n=s.Z.getColumn(t,1,h),c=s.Z.getColumn(t,2,d),u=r.Z.magnitude(i),p=r.Z.magnitude(n),m=r.Z.magnitude(c);return!(0===u&&(0===p||0===m)||0===p&&0===m)},c.computeProjectTo2DArguments=function(e,t,i,n){o.Z.defined("positions",e),o.Z.defined("centerResult",t),o.Z.defined("planeAxis1Result",i),o.Z.defined("planeAxis2Result",n);const c=a.Z.fromPoints(e,f),u=c.halfAxes,p=s.Z.getColumn(u,0,l),m=s.Z.getColumn(u,1,h),_=s.Z.getColumn(u,2,d),Z=r.Z.magnitude(p),g=r.Z.magnitude(m),y=r.Z.magnitude(_),b=Math.min(Z,g,y);if(0===Z&&(0===g||0===y)||0===g&&0===y)return!1;let A,w;return b!==g&&b!==y||(A=p),b===Z?A=m:b===y&&(w=m),b!==Z&&b!==g||(w=_),r.Z.normalize(A,i),r.Z.normalize(w,n),r.Z.clone(c.center,t),!0},c.createProjectPointsTo2DFunction=function(e,t,i){return function(n){const r=new Array(n.length);for(let o=0;o{"use strict";i.d(t,{Z:()=>w});var n=i(554875),r=i(360791),o=i(919382),s=i(357299),a=i(997274),c=i(930392),u=i(406144),l=i(426468),h=i(915067),d=i(611843),f=i(451628),p=i(952254),m=i(423035),_=i(546135),Z=i(189662),g=i(195809);function y(e){const t=e.length,i=new Float64Array(3*t),n=_.Z.createTypedArray(t,2*t);let r=0,o=0;for(let s=0;s{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({ROUNDED:0,MITERED:1,BEVELED:2})},622548:(e,t,i)=>{"use strict";i.d(t,{Z:()=>X});var n=i(170099),r=i(554875),o=i(360791),s=i(919382),a=i(698907),c=i(357299),u=i(997274),l=i(422956),h=i(397422),d=i(406144),f=i(426468),p=i(253316),m=i(915067),_=i(611843),Z=i(451628),g=i(215925),y=i(546135),b=i(362017),A=i(944593),w=i(195809),v=i(523501),T=i(172674);const C=new s.Z,E=new s.Z,x=new s.Z,S=new s.Z,O=new s.Z,I=new s.Z,D=new s.Z,P=new s.Z;function R(e,t){for(let i=0;is;p--)o=b.Z.PI_OVER_TWO-p*r,e[n++]=1-t*(1+Math.cos(o)),e[n++]=.5*(1+Math.sin(o));for(p=s;p>0;p--)o=b.Z.PI_OVER_TWO-r*p,e[n++]=1-i*(1+Math.cos(o)),e[n++]=.5*(1+Math.sin(o));for(p=g-T;p>0;p--)e[n++]=p*i,e[n++]=1;for(p=1;p0;p--)e[n++]=(p-1)*i,e[n++]=1}l.st=new _.Z({componentDatatype:u.Z.FLOAT,componentsPerAttribute:2,values:e})}return t.normal&&(l.normal=new _.Z({componentDatatype:u.Z.FLOAT,componentsPerAttribute:3,values:M.normals})),t.tangent&&(l.tangent=new _.Z({componentDatatype:u.Z.FLOAT,componentsPerAttribute:3,values:M.tangents})),t.bitangent&&(l.bitangent=new _.Z({componentDatatype:u.Z.FLOAT,componentsPerAttribute:3,values:M.bitangents})),{attributes:l,indices:W}}function L(e,t,i){i[t++]=e[0],i[t++]=e[1],i[t++]=e[2];for(let n=3;n{"use strict";i.d(t,{Z:()=>B});var n=i(919382),r=i(422956),o=i(426468),s=i(362017),a=i(165373),c=i(372944),u=i(677308),l=i(129782);const h={},d=new n.Z,f=new n.Z,p=new n.Z,m=new n.Z,_=[new n.Z,new n.Z],Z=new n.Z,g=new n.Z,y=new n.Z,b=new n.Z,A=new n.Z,w=new n.Z,v=new n.Z,T=new n.Z,C=new n.Z,E=new n.Z,x=new l.Z,S=new a.Z;function O(e,t,i,o,c){const u=n.Z.angleBetween(n.Z.subtract(t,e,d),n.Z.subtract(i,e,f)),h=o===r.Z.BEVELED?1:Math.ceil(u/s.Z.toRadians(5))+1,p=3*h,m=new Array(p);let _;m[p-3]=i.x,m[p-2]=i.y,m[p-1]=i.z,_=c?a.Z.fromQuaternion(l.Z.fromAxisAngle(n.Z.negate(e,d),u/h,x),S):a.Z.fromQuaternion(l.Z.fromAxisAngle(e,u/h,x),S);let Z=0;t=n.Z.clone(t,d);for(let e=0;e{"use strict";i.d(t,{Z:()=>O});var n=i(170099),r=i(554875),o=i(360791),s=i(919382),a=i(357299),c=i(997274),u=i(422956),l=i(397422),h=i(406144),d=i(426468),f=i(253316),p=i(915067),m=i(611843),_=i(451628),Z=i(215925),g=i(546135),y=i(362017),b=i(944593),A=i(195809);const w=new s.Z,v=new s.Z,T=new s.Z;function C(e,t){const i=[],n=e.positions,r=e.corners,o=e.endPositions,a=new _.Z;let h,f,p,Z=0,y=0,b=0;for(f=0;f{"use strict";i.d(t,{Z:()=>l});var n=i(923717),r=i(357299),o=i(406144),s=i(426468);let a=0;const c={};function u(e,t){let i;r.Z.typeOf.string("html",e);const n=e;(0,s.Z)(c[n])?i=c[n]:(i=a++,c[n]=i),t=(0,o.Z)(t,!1),this._id=i,this._html=e,this._showOnScreen=t,this._element=void 0}Object.defineProperties(u.prototype,{html:{get:function(){return this._html}},id:{get:function(){return this._id}},showOnScreen:{get:function(){return this._showOnScreen}},element:{get:function(){if(!(0,s.Z)(this._element)){const e=n.Z.sanitize(this._html),t=document.createElement("div");t._creditId=this._id,t.style.display="inline",t.innerHTML=e;const i=t.querySelectorAll("a");for(let e=0;e{"use strict";i.d(t,{Z:()=>a});var n=i(446938),r=i(935963);const o={};function s(e,t,i,n){const r=e,o=t/3,s=i/3,a=n,c=r*s,u=o*a,l=o*o,h=s*s,d=r*s-l,f=r*a-o*s,p=o*a-h,m=4*d*p-f*f;let _,Z;if(m<0){let e,t,i;l*u>=c*h?(e=r,t=d,i=-2*o*d+r*f):(e=a,t=p,i=-a*f+2*s*p);const n=-(i<0?-1:1)*Math.abs(e)*Math.sqrt(-m);Z=-i+n;const g=Z/2,y=g<0?-Math.pow(-g,1/3):Math.pow(g,1/3),b=Z===n?-y:-t/y;return _=t<=0?y+b:-i/(y*y+b*b+t),l*u>=c*h?[(_-o)/r]:[-a/(_+s)]}const g=d,y=-2*o*d+r*f,b=p,A=-a*f+2*s*p,w=Math.sqrt(m),v=Math.sqrt(3)/2;let T=Math.abs(Math.atan2(r*w,-y)/3);_=2*Math.sqrt(-g);let C=Math.cos(T);Z=_*C;let E=_*(-C/2-v*Math.sin(T));const x=Z+E>2*o?Z-o:E-o,S=r,O=x/S;T=Math.abs(Math.atan2(a*w,-A)/3),_=2*Math.sqrt(-b),C=Math.cos(T),Z=_*C,E=_*(-C/2-v*Math.sin(T));const I=-a,D=Z+E<2*s?Z+s:E+s,P=I/D,R=-x*D-S*I,B=(s*R-o*(x*I))/(-o*R+s*(S*D));return O<=B?O<=P?B<=P?[O,B,P]:[O,P,B]:[P,O,B]:O<=P?[B,O,P]:B<=P?[B,P,O]:[P,B,O]}o.computeDiscriminant=function(e,t,i,r){if("number"!=typeof e)throw new n.Z("a is a required number.");if("number"!=typeof t)throw new n.Z("b is a required number.");if("number"!=typeof i)throw new n.Z("c is a required number.");if("number"!=typeof r)throw new n.Z("d is a required number.");const o=t*t,s=i*i;return 18*e*t*i*r+o*s-e*e*27*(r*r)-4*(e*s*i+o*t*r)},o.computeRealRoots=function(e,t,i,o){if("number"!=typeof e)throw new n.Z("a is a required number.");if("number"!=typeof t)throw new n.Z("b is a required number.");if("number"!=typeof i)throw new n.Z("c is a required number.");if("number"!=typeof o)throw new n.Z("d is a required number.");let a,c;if(0===e)return r.Z.computeRealRoots(t,i,o);if(0===t){if(0===i){if(0===o)return[0,0,0];c=-o/e;const t=c<0?-Math.pow(-c,1/3):Math.pow(c,1/3);return[t,t,t]}return 0===o?(a=r.Z.computeRealRoots(e,0,i),0===a.Length?[0]:[a[0],0,a[1]]):s(e,0,i,o)}return 0===i?0===o?(c=-t/e,c<0?[c,0,0]:[0,0,c]):s(e,t,0,o):0===o?(a=r.Z.computeRealRoots(e,t,i),0===a.length?[0]:a[1]<=0?[a[0],a[1],0]:a[0]>=0?[0,a[0],a[1]]:[a[0],0,a[1]]):s(e,t,i,o)};const a=o},700725:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});var n=i(919382),r=i(114754),o=i(406144),s=i(426468),a=i(446938),c=i(360382),u=i(634878);function l(e){this.planes=(0,o.Z)(e,[])}const h=[new n.Z,new n.Z,new n.Z];n.Z.clone(n.Z.UNIT_X,h[0]),n.Z.clone(n.Z.UNIT_Y,h[1]),n.Z.clone(n.Z.UNIT_Z,h[2]);const d=new n.Z,f=new n.Z,p=new u.Z(new n.Z(1,0,0),0);l.fromBoundingSphere=function(e,t){if(!(0,s.Z)(e))throw new a.Z("boundingSphere is required.");(0,s.Z)(t)||(t=new l);const i=h.length,o=t.planes;o.length=2*i;const c=e.center,u=e.radius;let p=0;for(let e=0;e{"use strict";i.d(t,{Z:()=>p});var n=i(527758),r=i(357299),o=i(846748),s=i(406144),a=i(426468),c=i(253316),u=i(197685),l=i(910946),h=i(520715),d=i(950714);function f(e){e=(0,s.Z)(e,s.Z.EMPTY_OBJECT),r.Z.defined("options.callback",e.callback),r.Z.defined("options.width",e.width),r.Z.defined("options.height",e.height),this._callback=e.callback,this._tilingScheme=e.tilingScheme,(0,a.Z)(this._tilingScheme)||(this._tilingScheme=new l.Z({ellipsoid:(0,s.Z)(e.ellipsoid,c.Z.WGS84)})),this._width=e.width,this._height=e.height;const t=Math.max(this._width,this._height);this._levelZeroMaximumGeometricError=d.Z.getEstimatedLevelZeroGeometricErrorForAHeightmap(this._tilingScheme.ellipsoid,t,this._tilingScheme.getNumberOfXTilesAtLevel(0)),this._errorEvent=new u.Z;let i=e.credit;"string"==typeof i&&(i=new o.Z(i)),this._credit=i,this._readyPromise=n.Z.resolve(!0)}Object.defineProperties(f.prototype,{errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},tilingScheme:{get:function(){return this._tilingScheme}},ready:{get:function(){return!0}},readyPromise:{get:function(){return this._readyPromise}},hasWaterMask:{get:function(){return!1}},hasVertexNormals:{get:function(){return!1}},width:{get:function(){return this._width}},height:{get:function(){return this._height}}}),f.prototype.requestTileGeometry=function(e,t,i,r){const o=this._callback(e,t,i);if(!(0,a.Z)(o))return;const s=this._width,c=this._height;return(0,n.Z)(o).then((function(e){let t=e;return Array.isArray(t)&&(t=new Float64Array(t)),new h.Z({buffer:t,width:s,height:c})}))},f.prototype.getLevelMaximumGeometricError=function(e){return this._levelZeroMaximumGeometricError/(1<{"use strict";i.d(t,{Z:()=>O});var n=i(170099),r=i(360791),o=i(337968),s=i(919382),a=i(997274),c=i(478241),u=i(406144),l=i(426468),h=i(446938),d=i(915067),f=i(611843),p=i(451628),m=i(215925),_=i(546135),Z=i(362017),g=i(195809),y=i(172674);const b=new o.Z,A=new s.Z,w=new s.Z,v=new s.Z,T=new s.Z;function C(e){const t=(e=(0,u.Z)(e,u.Z.EMPTY_OBJECT)).length,i=e.topRadius,n=e.bottomRadius,r=(0,u.Z)(e.vertexFormat,y.Z.DEFAULT),o=(0,u.Z)(e.slices,128);if(!(0,l.Z)(t))throw new h.Z("options.length must be defined.");if(!(0,l.Z)(i))throw new h.Z("options.topRadius must be defined.");if(!(0,l.Z)(n))throw new h.Z("options.bottomRadius must be defined.");if(o<3)throw new h.Z("options.slices must be greater than or equal to 3.");if((0,l.Z)(e.offsetAttribute)&&e.offsetAttribute===m.Z.TOP)throw new h.Z("GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry.");this._length=t,this._topRadius=i,this._bottomRadius=n,this._vertexFormat=y.Z.clone(r),this._slices=o,this._offsetAttribute=e.offsetAttribute,this._workerName="createCylinderGeometry"}C.packedLength=y.Z.packedLength+5,C.pack=function(e,t,i){if(!(0,l.Z)(e))throw new h.Z("value is required");if(!(0,l.Z)(t))throw new h.Z("array is required");return i=(0,u.Z)(i,0),y.Z.pack(e._vertexFormat,t,i),i+=y.Z.packedLength,t[i++]=e._length,t[i++]=e._topRadius,t[i++]=e._bottomRadius,t[i++]=e._slices,t[i]=(0,u.Z)(e._offsetAttribute,-1),t};const E=new y.Z,x={vertexFormat:E,length:void 0,topRadius:void 0,bottomRadius:void 0,slices:void 0,offsetAttribute:void 0};let S;C.unpack=function(e,t,i){if(!(0,l.Z)(e))throw new h.Z("array is required");t=(0,u.Z)(t,0);const n=y.Z.unpack(e,t,E);t+=y.Z.packedLength;const r=e[t++],o=e[t++],s=e[t++],a=e[t++],c=e[t];return(0,l.Z)(i)?(i._vertexFormat=y.Z.clone(n,i._vertexFormat),i._length=r,i._topRadius=o,i._bottomRadius=s,i._slices=a,i._offsetAttribute=-1===c?void 0:c,i):(x.length=r,x.topRadius=o,x.bottomRadius=s,x.slices=a,x.offsetAttribute=-1===c?void 0:c,new C(x))},C.createGeometry=function(e){let t=e._length;const i=e._topRadius,u=e._bottomRadius,h=e._vertexFormat,y=e._slices;if(t<=0||i<0||u<0||0===i&&0===u)return;const C=y+y,E=y+C,x=C+C,S=c.Z.computePositions(t,i,u,y,!0),O=h.st?new Float32Array(2*x):void 0,I=h.normal?new Float32Array(3*x):void 0,D=h.tangent?new Float32Array(3*x):void 0,P=h.bitangent?new Float32Array(3*x):void 0;let R;const B=h.normal||h.tangent||h.bitangent;if(B){const e=h.tangent||h.bitangent;let n=0,r=0,o=0;const a=Math.atan2(u-i,t),c=A;c.z=Math.sin(a);const l=Math.cos(a);let d=v,f=w;for(R=0;R{"use strict";i.d(t,{Z:()=>r});var n=i(362017);const r={computePositions:function(e,t,i,r,o){const s=.5*e,a=-s,c=r+r,u=new Float64Array(3*(o?2*c:c));let l,h=0,d=0;const f=o?3*c:0,p=o?3*(c+r):3*r;for(l=0;l{"use strict";i.d(t,{Z:()=>w});var n=i(170099),r=i(360791),o=i(337968),s=i(919382),a=i(357299),c=i(997274),u=i(478241),l=i(406144),h=i(426468),d=i(446938),f=i(915067),p=i(611843),m=i(451628),_=i(215925),Z=i(546135),g=i(195809);const y=new o.Z;function b(e){const t=(e=(0,l.Z)(e,l.Z.EMPTY_OBJECT)).length,i=e.topRadius,n=e.bottomRadius,r=(0,l.Z)(e.slices,128),o=Math.max((0,l.Z)(e.numberOfVerticalLines,16),0);if(a.Z.typeOf.number("options.positions",t),a.Z.typeOf.number("options.topRadius",i),a.Z.typeOf.number("options.bottomRadius",n),a.Z.typeOf.number.greaterThanOrEquals("options.slices",r,3),(0,h.Z)(e.offsetAttribute)&&e.offsetAttribute===_.Z.TOP)throw new d.Z("GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry.");this._length=t,this._topRadius=i,this._bottomRadius=n,this._slices=r,this._numberOfVerticalLines=o,this._offsetAttribute=e.offsetAttribute,this._workerName="createCylinderOutlineGeometry"}b.packedLength=6,b.pack=function(e,t,i){return a.Z.typeOf.object("value",e),a.Z.defined("array",t),i=(0,l.Z)(i,0),t[i++]=e._length,t[i++]=e._topRadius,t[i++]=e._bottomRadius,t[i++]=e._slices,t[i++]=e._numberOfVerticalLines,t[i]=(0,l.Z)(e._offsetAttribute,-1),t};const A={length:void 0,topRadius:void 0,bottomRadius:void 0,slices:void 0,numberOfVerticalLines:void 0,offsetAttribute:void 0};b.unpack=function(e,t,i){a.Z.defined("array",e),t=(0,l.Z)(t,0);const n=e[t++],r=e[t++],o=e[t++],s=e[t++],c=e[t++],u=e[t];return(0,h.Z)(i)?(i._length=n,i._topRadius=r,i._bottomRadius=o,i._slices=s,i._numberOfVerticalLines=c,i._offsetAttribute=-1===u?void 0:u,i):(A.length=n,A.topRadius=r,A.bottomRadius=o,A.slices=s,A.numberOfVerticalLines=c,A.offsetAttribute=-1===u?void 0:u,new b(A))},b.createGeometry=function(e){let t=e._length;const i=e._topRadius,a=e._bottomRadius,l=e._slices,d=e._numberOfVerticalLines;if(t<=0||i<0||a<0||0===i&&0===a)return;const b=2*l,A=u.Z.computePositions(t,i,a,l,!1);let w,v=2*l;if(d>0){const e=Math.min(d,l);w=Math.round(l/e),v+=e}const T=Z.Z.createTypedArray(b,2*v);let C,E=0;for(C=0;C0)for(C=0;C{"use strict";function n(e){this.proxy=e}i.d(t,{Z:()=>r}),n.prototype.getURL=function(e){const t=-1===this.proxy.indexOf("?")?"?":"";return this.proxy+t+encodeURIComponent(e)};const r=n},446938:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(426468);function r(e){let t;this.name="DeveloperError",this.message=e;try{throw new Error}catch(e){t=e.stack}this.stack=t}(0,n.Z)(Object.create)&&(r.prototype=Object.create(Error.prototype),r.prototype.constructor=r),r.prototype.toString=function(){let e=this.name+": "+this.message;return(0,n.Z)(this.stack)&&(e+="\n"+this.stack.toString()),e},r.throwInstantiationError=function(){throw new r("This function defines an interface and should not be called directly.")};const o=r},744497:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(406144),r=i(426468),o=i(446938);function s(e,t){e=(0,n.Z)(e,0),this._near=e,t=(0,n.Z)(t,Number.MAX_VALUE),this._far=t}Object.defineProperties(s.prototype,{near:{get:function(){return this._near},set:function(e){this._near=e}},far:{get:function(){return this._far},set:function(e){this._far=e}}}),s.packedLength=2,s.pack=function(e,t,i){if(!(0,r.Z)(e))throw new o.Z("value is required");if(!(0,r.Z)(t))throw new o.Z("array is required");return i=(0,n.Z)(i,0),t[i++]=e.near,t[i]=e.far,t},s.unpack=function(e,t,i){if(!(0,r.Z)(e))throw new o.Z("array is required");return t=(0,n.Z)(t,0),(0,r.Z)(i)||(i=new s),i.near=e[t++],i.far=e[t],i},s.equals=function(e,t){return e===t||(0,r.Z)(e)&&(0,r.Z)(t)&&e.near===t.near&&e.far===t.far},s.clone=function(e,t){if((0,r.Z)(e))return(0,r.Z)(t)||(t=new s),t.near=e.near,t.far=e.far,t},s.prototype.clone=function(e){return s.clone(this,e)},s.prototype.equals=function(e){return s.equals(this,e)};const a=s},231432:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(997274),r=i(406144),o=i(426468),s=i(446938);function a(e,t){if(e=(0,r.Z)(e,0),(t=(0,r.Z)(t,Number.MAX_VALUE))<=e)throw new s.Z("far distance must be greater than near distance.");this.value=new Float32Array([e,t])}Object.defineProperties(a.prototype,{componentDatatype:{get:function(){return n.Z.FLOAT}},componentsPerAttribute:{get:function(){return 2}},normalize:{get:function(){return!1}}}),a.fromDistanceDisplayCondition=function(e){if(!(0,o.Z)(e))throw new s.Z("distanceDisplayCondition is required.");if(e.far<=e.near)throw new s.Z("distanceDisplayCondition.far distance must be greater than distanceDisplayCondition.near distance.");return new a(e.near,e.far)},a.toValue=function(e,t){if(!(0,o.Z)(e))throw new s.Z("distanceDisplayCondition is required.");return(0,o.Z)(t)?(t[0]=e.near,t[1]=e.far,t):new Float32Array([e.near,e.far])};const c=a},41076:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(362017),r=i(357299),o=i(426468);function s(e){r.Z.typeOf.object("options",e),r.Z.defined("options.comparator",e.comparator),(0,o.Z)(e.maximumLength)&&r.Z.typeOf.number.greaterThanOrEquals("options.maximumLength",e.maximumLength,0),this._comparator=e.comparator,this._maximumLength=e.maximumLength,this._array=(0,o.Z)(e.maximumLength)?new Array(e.maximumLength):[],this._length=0}function a(e,t,i){const n=e._array,r=n[t];n[t]=n[i],n[i]=r}function c(e,t,i){return e._comparator(e._array[t],e._array[i])<0}function u(e,t,i){return e._comparator(e._array[t],e._array[i])>0}function l(e,t){if(0===t)return;const i=Math.floor(n.Z.log2(t+1))%2==0,r=Math.floor((t-1)/2),o=c(e,t,r);for(o!==i&&(a(e,t,r),t=r);t>=3;){const i=Math.floor((t-3)/4);if(c(e,t,i)!==o)break;a(e,t,i),t=i}}function h(e,t){const i=e._length,r=Math.floor(n.Z.log2(t+1))%2==0;let o;for(;(o=2*t+1)e;)this.removeMinimum();this._array.length=e}this._maximumLength=e}},internalArray:{get:function(){return this._array}},comparator:{get:function(){return this._comparator}}}),s.prototype.clone=function(){const e=this._maximumLength,t=this._comparator,i=this._array,n=this._length,r=new s({comparator:t,maximumLength:e});r._length=n;for(let e=0;e=2&&(this._array[0]=this._array[e-1],h(this,0)),this._array[e-1]=void 0,t},s.prototype.removeMaximum=function(){const e=this._length;if(0===e)return;let t;if(this._length--,e<=2)t=this._array[e-1];else{const i=u(this,1,2)?1:2;t=this._array[i],this._array[i]=this._array[e-1],e>=4&&h(this,i)}return this._array[e-1]=void 0,t},s.prototype.getMinimum=function(){if(0!==this._length)return this._array[0]},s.prototype.getMaximum=function(){const e=this._length;if(0!==e)return e<=2?this._array[e-1]:this._array[u(this,1,2)?1:2]};const d=s},208014:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(426468);function r(){this.head=void 0,this.tail=void 0,this._length=0}function o(e,t,i){this.item=e,this.previous=t,this.next=i}function s(e,t){(0,n.Z)(t.previous)&&(0,n.Z)(t.next)?(t.previous.next=t.next,t.next.previous=t.previous):(0,n.Z)(t.previous)?(t.previous.next=void 0,e.tail=t.previous):(0,n.Z)(t.next)?(t.next.previous=void 0,e.head=t.next):(e.head=void 0,e.tail=void 0),t.next=void 0,t.previous=void 0}Object.defineProperties(r.prototype,{length:{get:function(){return this._length}}}),r.prototype.add=function(e){const t=new o(e,this.tail,void 0);return(0,n.Z)(this.tail)?(this.tail.next=t,this.tail=t):(this.head=t,this.tail=t),++this._length,t},r.prototype.remove=function(e){(0,n.Z)(e)&&(s(this,e),--this._length)},r.prototype.splice=function(e,t){if(e===t)return;s(this,t);const i=e.next;e.next=t,this.tail===e?this.tail=t:i.previous=t,t.next=i,t.previous=e};const a=r},61461:(e,t,i)=>{"use strict";i.d(t,{Z:()=>b});var n=i(527758),r=i(693465),o=i(406144),s=i(426468),a=i(280040),c=i(40080),u=i(611323),l=i(795788),h=i(50128),d=i(202712),f=i(841501);function p(e){if(e=(0,o.Z)(e,o.Z.EMPTY_OBJECT),this._dates=void 0,this._samples=void 0,this._dateColumn=-1,this._xPoleWanderRadiansColumn=-1,this._yPoleWanderRadiansColumn=-1,this._ut1MinusUtcSecondsColumn=-1,this._xCelestialPoleOffsetRadiansColumn=-1,this._yCelestialPoleOffsetRadiansColumn=-1,this._taiMinusUtcSecondsColumn=-1,this._columnCount=0,this._lastIndex=-1,this._downloadPromise=void 0,this._dataError=void 0,this._addNewLeapSeconds=(0,o.Z)(e.addNewLeapSeconds,!0),(0,s.Z)(e.data))_(this,e.data);else if((0,s.Z)(e.url)){const t=l.Z.createIfNeeded(e.url),i=this;this._downloadPromise=t.fetchJson().then((function(e){_(i,e)})).otherwise((function(){i._dataError="An error occurred while retrieving the EOP data from the URL "+t.url+"."}))}else _(this,{columnNames:["dateIso8601","modifiedJulianDateUtc","xPoleWanderRadians","yPoleWanderRadians","ut1MinusUtcSeconds","lengthOfDayCorrectionSeconds","xCelestialPoleOffsetRadians","yCelestialPoleOffsetRadians","taiMinusUtcSeconds"],samples:[]})}function m(e,t){return c.Z.compare(e.julianDate,t)}function _(e,t){if(!(0,s.Z)(t.columnNames))return void(e._dataError="Error in loaded EOP data: The columnNames property is required.");if(!(0,s.Z)(t.samples))return void(e._dataError="Error in loaded EOP data: The samples property is required.");const i=t.columnNames.indexOf("modifiedJulianDateUtc"),n=t.columnNames.indexOf("xPoleWanderRadians"),o=t.columnNames.indexOf("yPoleWanderRadians"),a=t.columnNames.indexOf("ut1MinusUtcSeconds"),l=t.columnNames.indexOf("xCelestialPoleOffsetRadians"),h=t.columnNames.indexOf("yCelestialPoleOffsetRadians"),p=t.columnNames.indexOf("taiMinusUtcSeconds");if(i<0||n<0||o<0||a<0||l<0||h<0||p<0)return void(e._dataError="Error in loaded EOP data: The columnNames property must include modifiedJulianDateUtc, xPoleWanderRadians, yPoleWanderRadians, ut1MinusUtcSeconds, xCelestialPoleOffsetRadians, yCelestialPoleOffsetRadians, and taiMinusUtcSeconds columns");const _=e._samples=t.samples,Z=e._dates=[];let g;e._dateColumn=i,e._xPoleWanderRadiansColumn=n,e._yPoleWanderRadiansColumn=o,e._ut1MinusUtcSecondsColumn=a,e._xCelestialPoleOffsetRadiansColumn=l,e._yCelestialPoleOffsetRadiansColumn=h,e._taiMinusUtcSecondsColumn=p,e._columnCount=t.columnNames.length,e._lastIndex=void 0;const y=e._addNewLeapSeconds;for(let t=0,n=_.length;tt.length-1)return s.xPoleWander=0,s.yPoleWander=0,s.xPoleOffset=0,s.yPoleOffset=0,s.ut1MinusUtc=0,s;const u=t[r],l=t[o];if(u.equals(l)||n.equals(u))return Z(e,i,r,a,s),s;if(n.equals(l))return Z(e,i,o,a,s),s;const h=c.Z.secondsDifference(n,u)/c.Z.secondsDifference(l,u),d=r*a,f=o*a;let p=i[d+e._ut1MinusUtcSecondsColumn],m=i[f+e._ut1MinusUtcSecondsColumn];const _=m-p;if(_>.5||_<-.5){const t=i[d+e._taiMinusUtcSecondsColumn],r=i[f+e._taiMinusUtcSecondsColumn];t!==r&&(l.equals(n)?p=m:m-=r-t)}return s.xPoleWander=g(h,i[d+e._xPoleWanderRadiansColumn],i[f+e._xPoleWanderRadiansColumn]),s.yPoleWander=g(h,i[d+e._yPoleWanderRadiansColumn],i[f+e._yPoleWanderRadiansColumn]),s.xPoleOffset=g(h,i[d+e._xCelestialPoleOffsetRadiansColumn],i[f+e._xCelestialPoleOffsetRadiansColumn]),s.yPoleOffset=g(h,i[d+e._yCelestialPoleOffsetRadiansColumn],i[f+e._yCelestialPoleOffsetRadiansColumn]),s.ut1MinusUtc=g(h,p,m),s}p.NONE=Object.freeze({getPromiseToLoad:function(){return n.Z.resolve()},compute:function(e,t){return(0,s.Z)(t)?(t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0):t=new a.Z(0,0,0,0,0),t}}),p.prototype.getPromiseToLoad=function(){return(0,n.Z)(this._downloadPromise)},p.prototype.compute=function(e,t){if(!(0,s.Z)(this._samples)){if((0,s.Z)(this._dataError))throw new h.Z(this._dataError);return}if((0,s.Z)(t)||(t=new a.Z(0,0,0,0,0)),0===this._samples.length)return t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0,t;const i=this._dates,n=this._lastIndex;let o=0,u=0;if((0,s.Z)(n)){const r=i[n],a=i[n+1],l=c.Z.lessThanOrEquals(r,e),h=!(0,s.Z)(a),d=h||c.Z.greaterThanOrEquals(a,e);if(l&&d)return o=n,!h&&a.equals(e)&&++o,u=o+1,y(this,i,this._samples,e,o,u,t),t}let l=(0,r.Z)(i,e,c.Z.compare,this._dateColumn);return l>=0?(l{"use strict";i.d(t,{Z:()=>o});var n=i(860303);const r={LINEAR_NONE:n.Z.Easing.Linear.None,QUADRATIC_IN:n.Z.Easing.Quadratic.In,QUADRATIC_OUT:n.Z.Easing.Quadratic.Out,QUADRATIC_IN_OUT:n.Z.Easing.Quadratic.InOut,CUBIC_IN:n.Z.Easing.Cubic.In,CUBIC_OUT:n.Z.Easing.Cubic.Out,CUBIC_IN_OUT:n.Z.Easing.Cubic.InOut,QUARTIC_IN:n.Z.Easing.Quartic.In,QUARTIC_OUT:n.Z.Easing.Quartic.Out,QUARTIC_IN_OUT:n.Z.Easing.Quartic.InOut,QUINTIC_IN:n.Z.Easing.Quintic.In,QUINTIC_OUT:n.Z.Easing.Quintic.Out,QUINTIC_IN_OUT:n.Z.Easing.Quintic.InOut,SINUSOIDAL_IN:n.Z.Easing.Sinusoidal.In,SINUSOIDAL_OUT:n.Z.Easing.Sinusoidal.Out,SINUSOIDAL_IN_OUT:n.Z.Easing.Sinusoidal.InOut,EXPONENTIAL_IN:n.Z.Easing.Exponential.In,EXPONENTIAL_OUT:n.Z.Easing.Exponential.Out,EXPONENTIAL_IN_OUT:n.Z.Easing.Exponential.InOut,CIRCULAR_IN:n.Z.Easing.Circular.In,CIRCULAR_OUT:n.Z.Easing.Circular.Out,CIRCULAR_IN_OUT:n.Z.Easing.Circular.InOut,ELASTIC_IN:n.Z.Easing.Elastic.In,ELASTIC_OUT:n.Z.Easing.Elastic.Out,ELASTIC_IN_OUT:n.Z.Easing.Elastic.InOut,BACK_IN:n.Z.Easing.Back.In,BACK_OUT:n.Z.Easing.Back.Out,BACK_IN_OUT:n.Z.Easing.Back.InOut,BOUNCE_IN:n.Z.Easing.Bounce.In,BOUNCE_OUT:n.Z.Easing.Bounce.Out,BOUNCE_IN_OUT:n.Z.Easing.Bounce.InOut},o=Object.freeze(r)},664279:(e,t,i)=>{"use strict";i.d(t,{Z:()=>te});var n=i(170099),r=i(360791),o=i(337968),s=i(919382),a=i(698907),c=i(357299),u=i(997274),l=i(406144),h=i(426468),d=i(446938),f=i(39538),p=i(253316),m=i(921099),_=i(915067),Z=i(611843),g=i(451628),y=i(952254),b=i(215925),A=i(423035),w=i(546135),v=i(362017),T=i(165373),C=i(195809),E=i(129782),x=i(523501),S=i(172674);const O=new s.Z,I=new s.Z,D=new s.Z,P=new s.Z,R=new o.Z,B=new T.Z,M=new T.Z,L=new E.Z,N=new s.Z,F=new s.Z,k=new s.Z,U=new a.Z,V=new s.Z,z=new o.Z,H=new o.Z;function G(e,t,i){const r=t.vertexFormat,a=t.center,c=t.semiMajorAxis,l=t.semiMinorAxis,d=t.ellipsoid,p=t.stRotation,_=i?e.length/3*2:e.length/3,y=t.shadowVolume,A=r.st?new Float32Array(2*_):void 0,w=r.normal?new Float32Array(3*_):void 0,v=r.tangent?new Float32Array(3*_):void 0,C=r.bitangent?new Float32Array(3*_):void 0,x=y?new Float32Array(3*_):void 0;let S=0,P=N,G=F,q=k;const j=new m.Z(d),W=j.project(d.cartesianToCartographic(a,U),V),K=d.scaleToGeodeticSurface(a,O);d.geodeticSurfaceNormal(K,K);let Y=B,X=M;if(0!==p){let e=E.Z.fromAxisAngle(K,p,L);Y=T.Z.fromQuaternion(e,Y),e=E.Z.fromAxisAngle(K,-p,L),X=T.Z.fromQuaternion(e,X)}else Y=T.Z.clone(T.Z.IDENTITY,Y),X=T.Z.clone(T.Z.IDENTITY,X);const J=o.Z.fromElements(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,z),Q=o.Z.fromElements(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,H);let $=e.length;const ee=i?$:0,te=ee/3*2;for(let t=0;t<$;t+=3){const n=t+1,o=t+2,a=s.Z.fromArray(e,t,O);if(r.st){const e=T.Z.multiplyByVector(Y,a,I),t=j.project(d.cartesianToCartographic(e,U),D);s.Z.subtract(t,W,t),R.x=(t.x+c)/(2*c),R.y=(t.y+l)/(2*l),J.x=Math.min(R.x,J.x),J.y=Math.min(R.y,J.y),Q.x=Math.max(R.x,Q.x),Q.y=Math.max(R.y,Q.y),i&&(A[S+te]=R.x,A[S+1+te]=R.y),A[S++]=R.x,A[S++]=R.y}(r.normal||r.tangent||r.bitangent||y)&&(P=d.geodeticSurfaceNormal(a,P),y&&(x[t+ee]=-P.x,x[n+ee]=-P.y,x[o+ee]=-P.z),(r.normal||r.tangent||r.bitangent)&&((r.tangent||r.bitangent)&&(G=s.Z.normalize(s.Z.cross(s.Z.UNIT_Z,P,G),G),T.Z.multiplyByVector(X,G,G)),r.normal&&(w[t]=P.x,w[n]=P.y,w[o]=P.z,i&&(w[t+ee]=-P.x,w[n+ee]=-P.y,w[o+ee]=-P.z)),r.tangent&&(v[t]=G.x,v[n]=G.y,v[o]=G.z,i&&(v[t+ee]=-G.x,v[n+ee]=-G.y,v[o+ee]=-G.z)),r.bitangent&&(q=s.Z.normalize(s.Z.cross(P,G,q),q),C[t]=q.x,C[n]=q.y,C[o]=q.z,i&&(C[t+ee]=q.x,C[n+ee]=q.y,C[o+ee]=q.z))))}if(r.st){$=A.length;for(let e=0;e<$;e+=2)A[e]=(A[e]-J.x)/(Q.x-J.x),A[e+1]=(A[e+1]-J.y)/(Q.y-J.y)}const ie=new g.Z;if(r.position){const n=f.Z.raisePositionsToHeight(e,t,i);ie.position=new Z.Z({componentDatatype:u.Z.DOUBLE,componentsPerAttribute:3,values:n})}if(r.st&&(ie.st=new Z.Z({componentDatatype:u.Z.FLOAT,componentsPerAttribute:2,values:A})),r.normal&&(ie.normal=new Z.Z({componentDatatype:u.Z.FLOAT,componentsPerAttribute:3,values:w})),r.tangent&&(ie.tangent=new Z.Z({componentDatatype:u.Z.FLOAT,componentsPerAttribute:3,values:v})),r.bitangent&&(ie.bitangent=new Z.Z({componentDatatype:u.Z.FLOAT,componentsPerAttribute:3,values:C})),y&&(ie.extrudeDirection=new Z.Z({componentDatatype:u.Z.FLOAT,componentsPerAttribute:3,values:x})),i&&(0,h.Z)(t.offsetAttribute)){let e=new Uint8Array(_);if(t.offsetAttribute===b.Z.TOP)e=(0,n.Z)(e,1,0,_/2);else{const i=t.offsetAttribute===b.Z.NONE?0:1;e=(0,n.Z)(e,i)}ie.applyOffset=new Z.Z({componentDatatype:u.Z.UNSIGNED_BYTE,componentsPerAttribute:1,values:e})}return ie}function q(e){const t=new Array(e*(e+1)*12-6);let i,n,r,o,s,a=0;for(i=0,r=1,o=0;o<3;o++)t[a++]=r++,t[a++]=i,t[a++]=r;for(o=2;o1;--o){for(t[a++]=i++,t[a++]=i,t[a++]=r,n=2*o,s=0;sv.Z.PI&&(h.north=h.north>0?v.Z.PI_OVER_TWO-v.Z.EPSILON7:h.north,h.south=h.south<0?v.Z.EPSILON7-v.Z.PI_OVER_TWO:h.south,h.east=v.Z.PI,h.west=-v.Z.PI),h}function X(e){const t=(e=(0,l.Z)(e,l.Z.EMPTY_OBJECT)).center,i=(0,l.Z)(e.ellipsoid,p.Z.WGS84),n=e.semiMajorAxis,r=e.semiMinorAxis,o=(0,l.Z)(e.granularity,v.Z.RADIANS_PER_DEGREE),a=(0,l.Z)(e.vertexFormat,S.Z.DEFAULT);if(c.Z.defined("options.center",t),c.Z.typeOf.number("options.semiMajorAxis",n),c.Z.typeOf.number("options.semiMinorAxis",r),n{"use strict";i.d(t,{Z:()=>b});var n=i(919382),r=i(362017),o=i(165373),s=i(129782);const a={},c=new n.Z,u=new n.Z,l=new s.Z,h=new o.Z;function d(e,t,i,r,a,d,f,p,m,_){const Z=e+t;n.Z.multiplyByScalar(r,Math.cos(Z),c),n.Z.multiplyByScalar(i,Math.sin(Z),u),n.Z.add(c,u,c);let g=Math.cos(e);g*=g;let y=Math.sin(e);y*=y;const b=d/Math.sqrt(f*g+a*y)/p;return s.Z.fromAxisAngle(c,b,l),o.Z.fromQuaternion(l,h),o.Z.multiplyByVector(h,m,_),n.Z.normalize(_,_),n.Z.multiplyByScalar(_,p,_),_}const f=new n.Z,p=new n.Z,m=new n.Z,_=new n.Z;a.raisePositionsToHeight=function(e,t,i){const r=t.ellipsoid,o=t.height,s=t.extrudedHeight,a=i?e.length/3*2:e.length/3,c=new Float64Array(3*a),u=e.length,l=i?u:0;for(let t=0;t1;--M){if(E=r.Z.PI_OVER_TWO-(M-1)*C,O=d(-E,a,v,w,l,_,h,b,A,O),I=d(E+Math.PI,a,v,w,l,_,h,b,A,I),t){for(x[S++]=O.x,x[S++]=O.y,x[S++]=O.z,N=2*(M-1)+2,L=1;L{"use strict";i.d(t,{Z:()=>x});var n=i(170099),r=i(360791),o=i(919382),s=i(997274),a=i(406144),c=i(426468),u=i(446938),l=i(39538),h=i(253316),d=i(915067),f=i(611843),p=i(451628),m=i(215925),_=i(546135),Z=i(362017),g=i(195809);const y=new o.Z;let b=new o.Z;const A=new r.Z,w=new r.Z;function v(e){const t=(e=(0,a.Z)(e,a.Z.EMPTY_OBJECT)).center,i=(0,a.Z)(e.ellipsoid,h.Z.WGS84),n=e.semiMajorAxis,r=e.semiMinorAxis,s=(0,a.Z)(e.granularity,Z.Z.RADIANS_PER_DEGREE);if(!(0,c.Z)(t))throw new u.Z("center is required.");if(!(0,c.Z)(n))throw new u.Z("semiMajorAxis is required.");if(!(0,c.Z)(r))throw new u.Z("semiMinorAxis is required.");if(n0){const e=Math.min(T,v);x=Math.round(v/e);const t=Math.min(x*T,v);for(E=0;E{"use strict";i.d(t,{Z:()=>A});var n=i(919382),r=i(698907),o=i(357299),s=i(406144),a=i(426468),c=i(446938),u=i(362017),l=i(547810);function h(e,t,i,r){t=(0,s.Z)(t,0),i=(0,s.Z)(i,0),r=(0,s.Z)(r,0),o.Z.typeOf.number.greaterThanOrEquals("x",t,0),o.Z.typeOf.number.greaterThanOrEquals("y",i,0),o.Z.typeOf.number.greaterThanOrEquals("z",r,0),e._radii=new n.Z(t,i,r),e._radiiSquared=new n.Z(t*t,i*i,r*r),e._radiiToTheFourth=new n.Z(t*t*t*t,i*i*i*i,r*r*r*r),e._oneOverRadii=new n.Z(0===t?0:1/t,0===i?0:1/i,0===r?0:1/r),e._oneOverRadiiSquared=new n.Z(0===t?0:1/(t*t),0===i?0:1/(i*i),0===r?0:1/(r*r)),e._minimumRadius=Math.min(t,i,r),e._maximumRadius=Math.max(t,i,r),e._centerToleranceSquared=u.Z.EPSILON1,0!==e._radiiSquared.z&&(e._squaredXOverSquaredZ=e._radiiSquared.x/e._radiiSquared.z)}function d(e,t,i){this._radii=void 0,this._radiiSquared=void 0,this._radiiToTheFourth=void 0,this._oneOverRadii=void 0,this._oneOverRadiiSquared=void 0,this._minimumRadius=void 0,this._maximumRadius=void 0,this._centerToleranceSquared=void 0,this._squaredXOverSquaredZ=void 0,h(this,e,t,i)}Object.defineProperties(d.prototype,{radii:{get:function(){return this._radii}},radiiSquared:{get:function(){return this._radiiSquared}},radiiToTheFourth:{get:function(){return this._radiiToTheFourth}},oneOverRadii:{get:function(){return this._oneOverRadii}},oneOverRadiiSquared:{get:function(){return this._oneOverRadiiSquared}},minimumRadius:{get:function(){return this._minimumRadius}},maximumRadius:{get:function(){return this._maximumRadius}}}),d.clone=function(e,t){if(!(0,a.Z)(e))return;const i=e._radii;return(0,a.Z)(t)?(n.Z.clone(i,t._radii),n.Z.clone(e._radiiSquared,t._radiiSquared),n.Z.clone(e._radiiToTheFourth,t._radiiToTheFourth),n.Z.clone(e._oneOverRadii,t._oneOverRadii),n.Z.clone(e._oneOverRadiiSquared,t._oneOverRadiiSquared),t._minimumRadius=e._minimumRadius,t._maximumRadius=e._maximumRadius,t._centerToleranceSquared=e._centerToleranceSquared,t):new d(i.x,i.y,i.z)},d.fromCartesian3=function(e,t){return(0,a.Z)(t)||(t=new d),(0,a.Z)(e)?(h(t,e.x,e.y,e.z),t):t},d.WGS84=Object.freeze(new d(6378137,6378137,6356752.314245179)),d.UNIT_SPHERE=Object.freeze(new d(1,1,1)),d.MOON=Object.freeze(new d(u.Z.LUNAR_RADIUS,u.Z.LUNAR_RADIUS,u.Z.LUNAR_RADIUS)),d.prototype.clone=function(e){return d.clone(this,e)},d.packedLength=n.Z.packedLength,d.pack=function(e,t,i){return o.Z.typeOf.object("value",e),o.Z.defined("array",t),i=(0,s.Z)(i,0),n.Z.pack(e._radii,t,i),t},d.unpack=function(e,t,i){o.Z.defined("array",e),t=(0,s.Z)(t,0);const r=n.Z.unpack(e,t);return d.fromCartesian3(r,i)},d.prototype.geocentricSurfaceNormal=n.Z.normalize,d.prototype.geodeticSurfaceNormalCartographic=function(e,t){o.Z.typeOf.object("cartographic",e);const i=e.longitude,r=e.latitude,s=Math.cos(r),c=s*Math.cos(i),u=s*Math.sin(i),l=Math.sin(r);return(0,a.Z)(t)||(t=new n.Z),t.x=c,t.y=u,t.z=l,n.Z.normalize(t,t)},d.prototype.geodeticSurfaceNormal=function(e,t){if(!n.Z.equalsEpsilon(e,n.Z.ZERO,u.Z.EPSILON14))return(0,a.Z)(t)||(t=new n.Z),t=n.Z.multiplyComponents(e,this._oneOverRadiiSquared,t),n.Z.normalize(t,t)};const f=new n.Z,p=new n.Z;d.prototype.cartographicToCartesian=function(e,t){const i=f,r=p;this.geodeticSurfaceNormalCartographic(e,i),n.Z.multiplyComponents(this._radiiSquared,i,r);const o=Math.sqrt(n.Z.dot(i,r));return n.Z.divideByScalar(r,o,r),n.Z.multiplyByScalar(i,e.height,i),(0,a.Z)(t)||(t=new n.Z),n.Z.add(r,i,t)},d.prototype.cartographicArrayToCartesianArray=function(e,t){o.Z.defined("cartographics",e);const i=e.length;(0,a.Z)(t)?t.length=i:t=new Array(i);for(let n=0;n=this._radii.z-t))return i};const g=[.14887433898163,.43339539412925,.67940956829902,.86506336668898,.97390652851717,0],y=[.29552422471475,.26926671930999,.21908636251598,.14945134915058,.066671344308684,0];function b(e,t,i){o.Z.typeOf.number("a",e),o.Z.typeOf.number("b",t),o.Z.typeOf.func("func",i);const n=.5*(t+e),r=.5*(t-e);let s=0;for(let e=0;e<5;e++){const t=r*g[e];s+=y[e]*(i(n+t)+i(n-t))}return s*=r,s}d.prototype.surfaceArea=function(e){o.Z.typeOf.object("rectangle",e);const t=e.west;let i=e.east;const n=e.south,r=e.north;for(;i{"use strict";i.d(t,{Z:()=>m});var n=i(919382),r=i(698907),o=i(357299),s=i(406144),a=i(426468),c=i(253316),u=i(362017);function l(e,t,i,n,r,o,s){const a=function(e,t){return e*t*(4+e*(4-3*t))/16}(e,i);return(1-a)*e*t*(n+a*r*(s+a*o*(2*s*s-1)))}const h=new n.Z,d=new n.Z;function f(e,t,i,s){const a=n.Z.normalize(s.cartographicToCartesian(t,d),h),c=n.Z.normalize(s.cartographicToCartesian(i,d),d);o.Z.typeOf.number.greaterThanOrEquals("value",Math.abs(Math.abs(n.Z.angleBetween(a,c))-Math.PI),.0125),function(e,t,i,n,r,o,s){const a=(t-i)/t,c=o-n,h=Math.atan((1-a)*Math.tan(r)),d=Math.atan((1-a)*Math.tan(s)),f=Math.cos(h),p=Math.sin(h),m=Math.cos(d),_=Math.sin(d),Z=f*m,g=f*_,y=p*_,b=p*m;let A,w,v,T,C,E=c,x=u.Z.TWO_PI,S=Math.cos(E),O=Math.sin(E);do{S=Math.cos(E),O=Math.sin(E);const e=g-b*S;let t;v=Math.sqrt(m*m*O*O+e*e),w=y+Z*S,A=Math.atan2(v,w),0===v?(t=0,T=1):(t=Z*O/v,T=1-t*t),x=E,C=w-2*y/T,isFinite(C)||(C=0),E=c+l(a,t,T,A,v,w,C)}while(Math.abs(E-x)>u.Z.EPSILON12);const I=T*(t*t-i*i)/(i*i),D=I*(256+I*(I*(74-47*I)-128))/1024,P=C*C,R=i*(1+I*(4096+I*(I*(320-175*I)-768))/16384)*(A-D*v*(C+D*(w*(2*P-1)-D*C*(4*v*v-3)*(4*P-3)/6)/4)),B=Math.atan2(m*O,g-b*S),M=Math.atan2(f*O,g*S-b);e._distance=R,e._startHeading=B,e._endHeading=M,e._uSquared=I}(e,s.maximumRadius,s.minimumRadius,t.longitude,t.latitude,i.longitude,i.latitude),e._start=r.Z.clone(t,e._start),e._end=r.Z.clone(i,e._end),e._start.height=0,e._end.height=0,function(e){const t=e._uSquared,i=e._ellipsoid.maximumRadius,n=e._ellipsoid.minimumRadius,r=(i-n)/i,o=Math.cos(e._startHeading),s=Math.sin(e._startHeading),a=(1-r)*Math.tan(e._start.latitude),c=1/Math.sqrt(1+a*a),u=c*a,l=Math.atan2(a,o),h=c*s,d=h*h,f=1-d,p=Math.sqrt(f),m=t/4,_=m*m,Z=_*m,g=_*_,y=1+m-3*_/4+5*Z/4-175*g/64,b=1-m+15*_/8-35*Z/8,A=1-3*m+35*_/4,w=1-5*m,v=y*l-b*Math.sin(2*l)*m/2-A*Math.sin(4*l)*_/16-w*Math.sin(6*l)*Z/48-5*Math.sin(8*l)*g/512,T=e._constants;T.a=i,T.b=n,T.f=r,T.cosineHeading=o,T.sineHeading=s,T.tanU=a,T.cosineU=c,T.sineU=u,T.sigma=l,T.sineAlpha=h,T.sineSquaredAlpha=d,T.cosineSquaredAlpha=f,T.cosineAlpha=p,T.u2Over4=m,T.u4Over16=_,T.u6Over64=Z,T.u8Over256=g,T.a0=y,T.a1=b,T.a2=A,T.a3=w,T.distanceRatio=v}(e)}function p(e,t,i){const n=(0,s.Z)(i,c.Z.WGS84);this._ellipsoid=n,this._start=new r.Z,this._end=new r.Z,this._constants={},this._startHeading=void 0,this._endHeading=void 0,this._distance=void 0,this._uSquared=void 0,(0,a.Z)(e)&&(0,a.Z)(t)&&f(this,e,t,n)}Object.defineProperties(p.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},surfaceDistance:{get:function(){return o.Z.defined("distance",this._distance),this._distance}},start:{get:function(){return this._start}},end:{get:function(){return this._end}},startHeading:{get:function(){return o.Z.defined("distance",this._distance),this._startHeading}},endHeading:{get:function(){return o.Z.defined("distance",this._distance),this._endHeading}}}),p.prototype.setEndPoints=function(e,t){o.Z.defined("start",e),o.Z.defined("end",t),f(this,e,t,this._ellipsoid)},p.prototype.interpolateUsingFraction=function(e,t){return this.interpolateUsingSurfaceDistance(this._distance*e,t)},p.prototype.interpolateUsingSurfaceDistance=function(e,t){o.Z.defined("distance",this._distance);const i=this._constants,n=i.distanceRatio+e/i.b,s=Math.cos(2*n),c=Math.cos(4*n),u=Math.cos(6*n),h=Math.sin(2*n),d=Math.sin(4*n),f=Math.sin(6*n),p=Math.sin(8*n),m=n*n,_=n*m,Z=i.u8Over256,g=i.u2Over4,y=i.u6Over64,b=i.u4Over16;let A=2*_*Z*s/3+n*(1-g+7*b/4-15*y/4+579*Z/64-(b-15*y/4+187*Z/16)*s-(5*y/4-115*Z/16)*c-29*Z*u/16)+(g/2-b+71*y/32-85*Z/16)*h+(5*b/16-5*y/4+383*Z/96)*d-m*((y-11*Z/2)*h+5*Z*d/2)+(29*y/96-29*Z/16)*f+539*Z*p/1536;const w=Math.asin(Math.sin(A)*i.cosineAlpha),v=Math.atan(i.a/i.b*Math.tan(w));A-=i.sigma;const T=Math.cos(2*i.sigma+A),C=Math.sin(A),E=Math.cos(A),x=i.cosineU*E,S=i.sineU*C,O=Math.atan2(C*i.sineHeading,x-S*i.cosineHeading)-l(i.f,i.sineAlpha,i.cosineSquaredAlpha,A,C,E,T);return(0,a.Z)(t)?(t.longitude=this._start.longitude+O,t.latitude=v,t.height=0,t):new r.Z(this._start.longitude+O,v,0)};const m=p},675758:(e,t,i)=>{"use strict";i.d(t,{Z:()=>B});var n=i(170099),r=i(360791),o=i(337968),s=i(919382),a=i(997274),c=i(406144),u=i(426468),l=i(446938),h=i(253316),d=i(915067),f=i(611843),p=i(451628),m=i(215925),_=i(546135),Z=i(362017),g=i(195809),y=i(172674);const b=new s.Z,A=new s.Z,w=new s.Z,v=new s.Z,T=new s.Z,C=new s.Z(1,1,1),E=Math.cos,x=Math.sin;function S(e){e=(0,c.Z)(e,c.Z.EMPTY_OBJECT);const t=(0,c.Z)(e.radii,C),i=(0,c.Z)(e.innerRadii,t),n=(0,c.Z)(e.minimumClock,0),r=(0,c.Z)(e.maximumClock,Z.Z.TWO_PI),o=(0,c.Z)(e.minimumCone,0),a=(0,c.Z)(e.maximumCone,Z.Z.PI),u=Math.round((0,c.Z)(e.stackPartitions,64)),h=Math.round((0,c.Z)(e.slicePartitions,64)),d=(0,c.Z)(e.vertexFormat,y.Z.DEFAULT);if(h<3)throw new l.Z("options.slicePartitions cannot be less than three.");if(u<3)throw new l.Z("options.stackPartitions cannot be less than three.");this._radii=s.Z.clone(t),this._innerRadii=s.Z.clone(i),this._minimumClock=n,this._maximumClock=r,this._minimumCone=o,this._maximumCone=a,this._stackPartitions=u,this._slicePartitions=h,this._vertexFormat=y.Z.clone(d),this._offsetAttribute=e.offsetAttribute,this._workerName="createEllipsoidGeometry"}S.packedLength=2*s.Z.packedLength+y.Z.packedLength+7,S.pack=function(e,t,i){if(!(0,u.Z)(e))throw new l.Z("value is required");if(!(0,u.Z)(t))throw new l.Z("array is required");return i=(0,c.Z)(i,0),s.Z.pack(e._radii,t,i),i+=s.Z.packedLength,s.Z.pack(e._innerRadii,t,i),i+=s.Z.packedLength,y.Z.pack(e._vertexFormat,t,i),i+=y.Z.packedLength,t[i++]=e._minimumClock,t[i++]=e._maximumClock,t[i++]=e._minimumCone,t[i++]=e._maximumCone,t[i++]=e._stackPartitions,t[i++]=e._slicePartitions,t[i]=(0,c.Z)(e._offsetAttribute,-1),t};const O=new s.Z,I=new s.Z,D=new y.Z,P={radii:O,innerRadii:I,vertexFormat:D,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,offsetAttribute:void 0};let R;S.unpack=function(e,t,i){if(!(0,u.Z)(e))throw new l.Z("array is required");t=(0,c.Z)(t,0);const n=s.Z.unpack(e,t,O);t+=s.Z.packedLength;const r=s.Z.unpack(e,t,I);t+=s.Z.packedLength;const o=y.Z.unpack(e,t,D);t+=y.Z.packedLength;const a=e[t++],h=e[t++],d=e[t++],f=e[t++],p=e[t++],m=e[t++],_=e[t];return(0,u.Z)(i)?(i._radii=s.Z.clone(n,i._radii),i._innerRadii=s.Z.clone(r,i._innerRadii),i._vertexFormat=y.Z.clone(o,i._vertexFormat),i._minimumClock=a,i._maximumClock=h,i._minimumCone=d,i._maximumCone=f,i._stackPartitions=p,i._slicePartitions=m,i._offsetAttribute=-1===_?void 0:_,i):(P.minimumClock=a,P.maximumClock=h,P.minimumCone=d,P.maximumCone=f,P.stackPartitions=p,P.slicePartitions=m,P.offsetAttribute=-1===_?void 0:_,new S(P))},S.createGeometry=function(e){const t=e._radii;if(t.x<=0||t.y<=0||t.z<=0)return;const i=e._innerRadii;if(i.x<=0||i.y<=0||i.z<=0)return;const c=e._minimumClock,l=e._maximumClock,y=e._minimumCone,C=e._maximumCone,S=e._vertexFormat;let O,I,D=e._slicePartitions+1,P=e._stackPartitions+1;D=Math.round(D*Math.abs(l-c)/Z.Z.TWO_PI),P=Math.round(P*Math.abs(C-y)/Z.Z.PI),D<2&&(D=2),P<2&&(P=2);let R=0;const B=[y],M=[c];for(O=0;O0&&(V=!0,F+=D-1),C0&&O!==L-1&&0!==I&&I!==N-1&&(W[ue]=!0),ue++;for(R=0,O=1;O=n&&O{"use strict";i.d(t,{Z:()=>C});var n=i(170099),r=i(360791),o=i(919382),s=i(997274),a=i(406144),c=i(426468),u=i(446938),l=i(253316),h=i(915067),d=i(611843),f=i(451628),p=i(215925),m=i(546135),_=i(362017),Z=i(195809);const g=new o.Z(1,1,1),y=Math.cos,b=Math.sin;function A(e){e=(0,a.Z)(e,a.Z.EMPTY_OBJECT);const t=(0,a.Z)(e.radii,g),i=(0,a.Z)(e.innerRadii,t),n=(0,a.Z)(e.minimumClock,0),r=(0,a.Z)(e.maximumClock,_.Z.TWO_PI),s=(0,a.Z)(e.minimumCone,0),l=(0,a.Z)(e.maximumCone,_.Z.PI),h=Math.round((0,a.Z)(e.stackPartitions,10)),d=Math.round((0,a.Z)(e.slicePartitions,8)),f=Math.round((0,a.Z)(e.subdivisions,128));if(h<1)throw new u.Z("options.stackPartitions cannot be less than 1");if(d<0)throw new u.Z("options.slicePartitions cannot be less than 0");if(f<0)throw new u.Z("options.subdivisions must be greater than or equal to zero.");if((0,c.Z)(e.offsetAttribute)&&e.offsetAttribute===p.Z.TOP)throw new u.Z("GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry.");this._radii=o.Z.clone(t),this._innerRadii=o.Z.clone(i),this._minimumClock=n,this._maximumClock=r,this._minimumCone=s,this._maximumCone=l,this._stackPartitions=h,this._slicePartitions=d,this._subdivisions=f,this._offsetAttribute=e.offsetAttribute,this._workerName="createEllipsoidOutlineGeometry"}A.packedLength=2*o.Z.packedLength+8,A.pack=function(e,t,i){if(!(0,c.Z)(e))throw new u.Z("value is required");if(!(0,c.Z)(t))throw new u.Z("array is required");return i=(0,a.Z)(i,0),o.Z.pack(e._radii,t,i),i+=o.Z.packedLength,o.Z.pack(e._innerRadii,t,i),i+=o.Z.packedLength,t[i++]=e._minimumClock,t[i++]=e._maximumClock,t[i++]=e._minimumCone,t[i++]=e._maximumCone,t[i++]=e._stackPartitions,t[i++]=e._slicePartitions,t[i++]=e._subdivisions,t[i]=(0,a.Z)(e._offsetAttribute,-1),t};const w=new o.Z,v=new o.Z,T={radii:w,innerRadii:v,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0,offsetAttribute:void 0};A.unpack=function(e,t,i){if(!(0,c.Z)(e))throw new u.Z("array is required");t=(0,a.Z)(t,0);const n=o.Z.unpack(e,t,w);t+=o.Z.packedLength;const r=o.Z.unpack(e,t,v);t+=o.Z.packedLength;const s=e[t++],l=e[t++],h=e[t++],d=e[t++],f=e[t++],p=e[t++],m=e[t++],_=e[t];return(0,c.Z)(i)?(i._radii=o.Z.clone(n,i._radii),i._innerRadii=o.Z.clone(r,i._innerRadii),i._minimumClock=s,i._maximumClock=l,i._minimumCone=h,i._maximumCone=d,i._stackPartitions=f,i._slicePartitions=p,i._subdivisions=m,i._offsetAttribute=-1===_?void 0:_,i):(T.minimumClock=s,T.maximumClock=l,T.minimumCone=h,T.maximumCone=d,T.stackPartitions=f,T.slicePartitions=p,T.subdivisions=m,T.offsetAttribute=-1===_?void 0:_,new A(T))},A.createGeometry=function(e){const t=e._radii;if(t.x<=0||t.y<=0||t.z<=0)return;const i=e._innerRadii;if(i.x<=0||i.y<=0||i.z<=0)return;const o=e._minimumClock,a=e._maximumClock,u=e._minimumCone,g=e._maximumCone,A=e._subdivisions,w=l.Z.fromCartesian3(t);let v=e._slicePartitions+1,T=e._stackPartitions+1;v=Math.round(v*Math.abs(a-o)/_.Z.TWO_PI),T=Math.round(T*Math.abs(g-u)/_.Z.PI),v<2&&(v=2),T<2&&(T=2);let C=0,E=1;const x=i.x!==t.x||i.y!==t.y||i.z!==t.z;let S=!1,O=!1;x&&(E=2,u>0&&(S=!0,C+=v),g{"use strict";i.d(t,{Z:()=>g});var n=i(919382),r=i(698907),o=i(357299),s=i(406144),a=i(426468),c=i(446938),u=i(253316),l=i(362017);function h(e,t,i){if(0===e)return t*i;const n=e*e,r=n*n,o=r*n,s=o*n,a=s*n,c=a*n,u=i;return t*((1-n/4-3*r/64-5*o/256-175*s/16384-441*a/65536-4851*c/1048576)*u-(3*n/8+3*r/32+45*o/1024+105*s/4096+2205*a/131072+6237*c/524288)*Math.sin(2*u)+(15*r/256+45*o/1024+525*s/16384+1575*a/65536+155925*c/8388608)*Math.sin(4*u)-(35*o/3072+175*s/12288+3675*a/262144+13475*c/1048576)*Math.sin(6*u)+(315*s/131072+2205*a/524288+43659*c/8388608)*Math.sin(8*u)-(693*a/1310720+6237*c/5242880)*Math.sin(10*u)+1001*c/8388608*Math.sin(12*u))}function d(e,t){if(0===e)return Math.log(Math.tan(.5*(l.Z.PI_OVER_TWO+t)));const i=e*Math.sin(t);return Math.log(Math.tan(.5*(l.Z.PI_OVER_TWO+t)))-e/2*Math.log((1+i)/(1-i))}const f=new n.Z,p=new n.Z;function m(e,t,i,s){const a=n.Z.normalize(s.cartographicToCartesian(t,p),f),c=n.Z.normalize(s.cartographicToCartesian(i,p),p);o.Z.typeOf.number.greaterThanOrEquals("value",Math.abs(Math.abs(n.Z.angleBetween(a,c))-Math.PI),.0125);const u=s.maximumRadius,m=s.minimumRadius,_=u*u,Z=m*m;e._ellipticitySquared=(_-Z)/_,e._ellipticity=Math.sqrt(e._ellipticitySquared),e._start=r.Z.clone(t,e._start),e._start.height=0,e._end=r.Z.clone(i,e._end),e._end.height=0,e._heading=function(e,t,i,n,r){const o=d(e._ellipticity,i),s=d(e._ellipticity,r);return Math.atan2(l.Z.negativePiToPi(n-t),s-o)}(e,t.longitude,t.latitude,i.longitude,i.latitude),e._distance=function(e,t,i,n,r,o,s){const a=e._heading,c=o-n;let u=0;if(l.Z.equalsEpsilon(Math.abs(a),l.Z.PI_OVER_TWO,l.Z.EPSILON8))if(t===i)u=t*Math.cos(r)*l.Z.negativePiToPi(c);else{const i=Math.sin(r);u=t*Math.cos(r)*l.Z.negativePiToPi(c)/Math.sqrt(1-e._ellipticitySquared*i*i)}else{const i=h(e._ellipticity,t,r);u=(h(e._ellipticity,t,s)-i)/Math.cos(a)}return Math.abs(u)}(e,s.maximumRadius,s.minimumRadius,t.longitude,t.latitude,i.longitude,i.latitude)}function _(e,t,i,n,o,s){if(0===i)return r.Z.clone(e,s);const c=o*o;let u,f,p;if(Math.abs(l.Z.PI_OVER_TWO-Math.abs(t))>l.Z.EPSILON8){f=function(e,t,i){const n=e/i;if(0===t)return n;const r=n*n,o=r*n,s=o*n,a=t*t,c=a*a,u=c*a,l=u*a,h=l*a,d=h*a,f=Math.sin(2*n),p=Math.cos(2*n),m=Math.sin(4*n),_=Math.cos(4*n),Z=Math.sin(6*n),g=Math.cos(6*n),y=Math.sin(8*n),b=Math.cos(8*n),A=Math.sin(10*n);return n+n*a/4+7*n*c/64+15*n*u/256+579*n*l/16384+1515*n*h/65536+16837*n*d/1048576+(3*n*c/16+45*n*u/256-n*(32*r-561)*l/4096-n*(232*r-1677)*h/16384+n*(399985-90560*r+512*s)*d/5242880)*p+(21*n*u/256+483*n*l/4096-n*(224*r-1969)*h/16384-n*(33152*r-112599)*d/1048576)*_+(151*n*l/4096+4681*n*h/65536+1479*n*d/16384-453*o*d/32768)*g+(1097*n*h/65536+42783*n*d/1048576)*b+8011*n*d/1048576*Math.cos(10*n)+(3*a/8+3*c/16+213*u/2048-3*r*u/64+255*l/4096-33*r*l/512+20861*h/524288-33*r*h/512+s*h/1024+28273*d/1048576-471*r*d/8192+9*s*d/4096)*f+(21*c/256+21*u/256+533*l/8192-21*r*l/512+197*h/4096-315*r*h/4096+584039*d/16777216-12517*r*d/131072+7*s*d/2048)*m+(151*u/6144+151*l/4096+5019*h/131072-453*r*h/16384+26965*d/786432-8607*r*d/131072)*Z+(1097*l/131072+1097*h/65536+225797*d/10485760-1097*r*d/65536)*y+(8011*h/2621440+8011*d/1048576)*A+293393*d/251658240*Math.sin(12*n)}(h(o,n,e.latitude)+i*Math.cos(t),o,n);const r=d(o,e.latitude),s=d(o,f);p=Math.tan(t)*(s-r),u=l.Z.negativePiToPi(e.longitude+p)}else{let r;if(f=e.latitude,0===o)r=n*Math.cos(e.latitude);else{const t=Math.sin(e.latitude);r=n*Math.cos(e.latitude)/Math.sqrt(1-c*t*t)}p=i/r,u=t>0?l.Z.negativePiToPi(e.longitude+p):l.Z.negativePiToPi(e.longitude-p)}return(0,a.Z)(s)?(s.longitude=u,s.latitude=f,s.height=0,s):new r.Z(u,f,0)}function Z(e,t,i){const n=(0,s.Z)(i,u.Z.WGS84);this._ellipsoid=n,this._start=new r.Z,this._end=new r.Z,this._heading=void 0,this._distance=void 0,this._ellipticity=void 0,this._ellipticitySquared=void 0,(0,a.Z)(e)&&(0,a.Z)(t)&&m(this,e,t,n)}Object.defineProperties(Z.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},surfaceDistance:{get:function(){return o.Z.defined("distance",this._distance),this._distance}},start:{get:function(){return this._start}},end:{get:function(){return this._end}},heading:{get:function(){return o.Z.defined("distance",this._distance),this._heading}}}),Z.fromStartHeadingDistance=function(e,t,i,n,r){o.Z.defined("start",e),o.Z.defined("heading",t),o.Z.defined("distance",i),o.Z.typeOf.number.greaterThan("distance",i,0);const c=(0,s.Z)(n,u.Z.WGS84),h=c.maximumRadius,d=c.minimumRadius,f=h*h,p=d*d,m=Math.sqrt((f-p)/f),g=_(e,t=l.Z.negativePiToPi(t),i,c.maximumRadius,m);return!(0,a.Z)(r)||(0,a.Z)(n)&&!n.equals(r.ellipsoid)?new Z(e,g,c):(r.setEndPoints(e,g),r)},Z.prototype.setEndPoints=function(e,t){o.Z.defined("start",e),o.Z.defined("end",t),m(this,e,t,this._ellipsoid)},Z.prototype.interpolateUsingFraction=function(e,t){return this.interpolateUsingSurfaceDistance(e*this._distance,t)},Z.prototype.interpolateUsingSurfaceDistance=function(e,t){if(o.Z.typeOf.number("distance",e),!(0,a.Z)(this._distance)||0===this._distance)throw new c.Z("EllipsoidRhumbLine must have distinct start and end set.");return _(this._start,this._heading,e,this._ellipsoid.maximumRadius,this._ellipticity,t)},Z.prototype.findIntersectionWithLongitude=function(e,t){if(o.Z.typeOf.number("intersectionLongitude",e),!(0,a.Z)(this._distance)||0===this._distance)throw new c.Z("EllipsoidRhumbLine must have distinct start and end set.");const i=this._ellipticity,n=this._heading,s=Math.abs(n),u=this._start;if(e=l.Z.negativePiToPi(e),l.Z.equalsEpsilon(Math.abs(e),Math.PI,l.Z.EPSILON14)&&(e=l.Z.sign(u.longitude)*Math.PI),(0,a.Z)(t)||(t=new r.Z),Math.abs(l.Z.PI_OVER_TWO-s)<=l.Z.EPSILON8)return t.longitude=e,t.latitude=u.latitude,t.height=0,t;if(l.Z.equalsEpsilon(Math.abs(l.Z.PI_OVER_TWO-s),l.Z.PI_OVER_TWO,l.Z.EPSILON8)){if(l.Z.equalsEpsilon(e,u.longitude,l.Z.EPSILON12))return;return t.longitude=e,t.latitude=l.Z.PI_OVER_TWO*l.Z.sign(l.Z.PI_OVER_TWO-n),t.height=0,t}const h=u.latitude,d=i*Math.sin(h),f=Math.tan(.5*(l.Z.PI_OVER_TWO+h))*Math.exp((e-u.longitude)/Math.tan(n)),p=(1+d)/(1-d);let m,_=u.latitude;do{m=_;const e=i*Math.sin(m),t=(1+e)/(1-e);_=2*Math.atan(f*Math.pow(t/p,i/2))-l.Z.PI_OVER_TWO}while(!l.Z.equalsEpsilon(_,m,l.Z.EPSILON12));return t.longitude=e,t.latitude=_,t.height=0,t},Z.prototype.findIntersectionWithLatitude=function(e,t){if(o.Z.typeOf.number("intersectionLatitude",e),!(0,a.Z)(this._distance)||0===this._distance)throw new c.Z("EllipsoidRhumbLine must have distinct start and end set.");const i=this._ellipticity,n=this._heading,s=this._start;if(l.Z.equalsEpsilon(Math.abs(n),l.Z.PI_OVER_TWO,l.Z.EPSILON8))return;const u=d(i,s.latitude),h=d(i,e),f=Math.tan(n)*(h-u),p=l.Z.negativePiToPi(s.longitude+f);return(0,a.Z)(t)?(t.longitude=p,t.latitude=e,t.height=0,t):new r.Z(p,e,0)};const g=Z},460117:(e,t,i)=>{"use strict";i.d(t,{Z:()=>v});var n=i(474421),r=i(337968),o=i(919382),s=i(114754),a=i(357299),c=i(406144),u=i(426468),l=i(446938),h=i(253316),d=i(66172),f=i(583917),p=i(634878),m=i(24401),_=i(358198);const Z=new s.Z;function g(e,t){if(a.Z.defined("origin",e),e=(t=(0,c.Z)(t,h.Z.WGS84)).scaleToGeodeticSurface(e),!(0,u.Z)(e))throw new l.Z("origin must not be at the center of the ellipsoid.");const i=_.Z.eastNorthUpToFixedFrame(e,t);this._ellipsoid=t,this._origin=e,this._xAxis=o.Z.fromCartesian4(f.Z.getColumn(i,0,Z)),this._yAxis=o.Z.fromCartesian4(f.Z.getColumn(i,1,Z));const n=o.Z.fromCartesian4(f.Z.getColumn(i,2,Z));this._plane=p.Z.fromPointNormal(e,n)}Object.defineProperties(g.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},origin:{get:function(){return this._origin}},plane:{get:function(){return this._plane}},xAxis:{get:function(){return this._xAxis}},yAxis:{get:function(){return this._yAxis}},zAxis:{get:function(){return this._plane.normal}}});const y=new n.Z;g.fromPoints=function(e,t){return a.Z.defined("cartesians",e),new g(n.Z.fromPoints(e,y).center,t)};const b=new m.Z,A=new o.Z;g.prototype.projectPointOntoPlane=function(e,t){a.Z.defined("cartesian",e);const i=b;i.origin=e,o.Z.normalize(e,i.direction);let n=d.Z.rayPlane(i,this._plane,A);if((0,u.Z)(n)||(o.Z.negate(i.direction,i.direction),n=d.Z.rayPlane(i,this._plane,A)),(0,u.Z)(n)){const e=o.Z.subtract(n,this._origin,n),i=o.Z.dot(this._xAxis,e),s=o.Z.dot(this._yAxis,e);return(0,u.Z)(t)?(t.x=i,t.y=s,t):new r.Z(i,s)}},g.prototype.projectPointsOntoPlane=function(e,t){a.Z.defined("cartesians",e),(0,u.Z)(t)||(t=[]);let i=0;const n=e.length;for(let r=0;r{"use strict";i.d(t,{Z:()=>d});var n=i(527758),r=i(406144),o=i(426468),s=i(253316),a=i(197685),c=i(910946),u=i(520715),l=i(950714);function h(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),this._tilingScheme=e.tilingScheme,(0,o.Z)(this._tilingScheme)||(this._tilingScheme=new c.Z({ellipsoid:(0,r.Z)(e.ellipsoid,s.Z.WGS84)})),this._levelZeroMaximumGeometricError=l.Z.getEstimatedLevelZeroGeometricErrorForAHeightmap(this._tilingScheme.ellipsoid,64,this._tilingScheme.getNumberOfXTilesAtLevel(0)),this._errorEvent=new a.Z,this._readyPromise=n.Z.resolve(!0)}Object.defineProperties(h.prototype,{errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){}},tilingScheme:{get:function(){return this._tilingScheme}},ready:{get:function(){return!0}},readyPromise:{get:function(){return this._readyPromise}},hasWaterMask:{get:function(){return!1}},hasVertexNormals:{get:function(){return!1}},availability:{get:function(){}}}),h.prototype.requestTileGeometry=function(e,t,i,r){return n.Z.resolve(new u.Z({buffer:new Uint8Array(256),width:16,height:16}))},h.prototype.getLevelMaximumGeometricError=function(e){return this._levelZeroMaximumGeometricError/(1<{"use strict";i.d(t,{Z:()=>x});var n=i(360791),r=i(919382),o=i(357299),s=i(406144),a=i(426468),c=i(253316),u=i(523501);function l(e,t){o.Z.typeOf.object("ellipsoid",e),this._ellipsoid=e,this._cameraPosition=new r.Z,this._cameraPositionInScaledSpace=new r.Z,this._distanceToLimbInScaledSpaceSquared=0,(0,a.Z)(t)&&(this.cameraPosition=t)}Object.defineProperties(l.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},cameraPosition:{get:function(){return this._cameraPosition},set:function(e){const t=this._ellipsoid.transformPositionToScaledSpace(e,this._cameraPositionInScaledSpace),i=r.Z.magnitudeSquared(t)-1;r.Z.clone(e,this._cameraPosition),this._cameraPositionInScaledSpace=t,this._distanceToLimbInScaledSpaceSquared=i}}});const h=new r.Z;l.prototype.isPointVisible=function(e){return b(this._ellipsoid.transformPositionToScaledSpace(e,h),this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)},l.prototype.isScaledSpacePointVisible=function(e){return b(e,this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)};const d=new r.Z;l.prototype.isScaledSpacePointVisiblePossiblyUnderEllipsoid=function(e,t){const i=this._ellipsoid;let n,r;return(0,a.Z)(t)&&t<0&&i.minimumRadius>-t?(r=d,r.x=this._cameraPosition.x/(i.radii.x+t),r.y=this._cameraPosition.y/(i.radii.y+t),r.z=this._cameraPosition.z/(i.radii.z+t),n=r.x*r.x+r.y*r.y+r.z*r.z-1):(r=this._cameraPositionInScaledSpace,n=this._distanceToLimbInScaledSpaceSquared),b(e,r,n)},l.prototype.computeHorizonCullingPoint=function(e,t,i){return Z(this._ellipsoid,e,t,i)};const f=c.Z.clone(c.Z.UNIT_SPHERE);l.prototype.computeHorizonCullingPointPossiblyUnderEllipsoid=function(e,t,i,n){return Z(_(this._ellipsoid,i,f),e,t,n)},l.prototype.computeHorizonCullingPointFromVertices=function(e,t,i,n,r){return y(this._ellipsoid,e,t,i,n,r)},l.prototype.computeHorizonCullingPointFromVerticesPossiblyUnderEllipsoid=function(e,t,i,n,r,o){return y(_(this._ellipsoid,r,f),e,t,i,n,o)};const p=[];l.prototype.computeHorizonCullingPointFromRectangle=function(e,t,i){o.Z.typeOf.object("rectangle",e);const s=u.Z.subsample(e,t,0,p),a=n.Z.fromPoints(s);if(!(r.Z.magnitude(a.center)<.1*t.minimumRadius))return this.computeHorizonCullingPoint(a.center,s,i)};const m=new r.Z;function _(e,t,i){if((0,a.Z)(t)&&t<0&&e.minimumRadius>-t){const n=r.Z.fromElements(e.radii.x+t,e.radii.y+t,e.radii.z+t,m);e=c.Z.fromCartesian3(n,i)}return e}function Z(e,t,i,n){o.Z.typeOf.object("directionToPoint",t),o.Z.defined("positions",i),(0,a.Z)(n)||(n=new r.Z);const s=E(e,t);let c=0;for(let t=0,n=i.length;t0:a>o&&a*a/r.Z.magnitudeSquared(s)>o)}const A=new r.Z,w=new r.Z;function v(e,t,i){const n=e.transformPositionToScaledSpace(t,A);let o=r.Z.magnitudeSquared(n),s=Math.sqrt(o);const a=r.Z.divideByScalar(n,s,w);o=Math.max(1,o),s=Math.max(1,s);const c=1/s;return 1/(r.Z.dot(a,i)*c-r.Z.magnitude(r.Z.cross(a,i,a))*(Math.sqrt(o-1)*c))}function T(e,t,i){if(!(t<=0||t===1/0||t!=t))return r.Z.multiplyByScalar(e,t,i)}const C=new r.Z;function E(e,t){return r.Z.equals(t,r.Z.ZERO)?t:(e.transformPositionToScaledSpace(t,C),r.Z.normalize(C,C))}const x=l},275949:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(919382),r=i(357299),o=i(426468);function s(){this.high=n.Z.clone(n.Z.ZERO),this.low=n.Z.clone(n.Z.ZERO)}s.encode=function(e,t){let i;return r.Z.typeOf.number("value",e),(0,o.Z)(t)||(t={high:0,low:0}),e>=0?(i=65536*Math.floor(e/65536),t.high=i,t.low=e-i):(i=65536*Math.floor(-e/65536),t.high=-i,t.low=e+i),t};const a={high:0,low:0};s.fromCartesian=function(e,t){r.Z.typeOf.object("cartesian",e),(0,o.Z)(t)||(t=new s);const i=t.high,n=t.low;return s.encode(e.x,a),i.x=a.high,n.x=a.low,s.encode(e.y,a),i.y=a.high,n.y=a.low,s.encode(e.z,a),i.z=a.high,n.z=a.low,t};const c=new s;s.writeElements=function(e,t,i){r.Z.defined("cartesianArray",t),r.Z.typeOf.number("index",i),r.Z.typeOf.number.greaterThanOrEquals("index",i,0),s.fromCartesian(e,c);const n=c.high,o=c.low;t[i]=n.x,t[i+1]=n.y,t[i+2]=n.z,t[i+3]=o.x,t[i+4]=o.y,t[i+5]=o.z};const u=s},197685:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(357299),r=i(426468);function o(){this._listeners=[],this._scopes=[],this._toRemove=[],this._insideRaiseEvent=!1}function s(e,t){return t-e}Object.defineProperties(o.prototype,{numberOfListeners:{get:function(){return this._listeners.length-this._toRemove.length}}}),o.prototype.addEventListener=function(e,t){n.Z.typeOf.func("listener",e),this._listeners.push(e),this._scopes.push(t);const i=this;return function(){i.removeEventListener(e,t)}},o.prototype.removeEventListener=function(e,t){n.Z.typeOf.func("listener",e);const i=this._listeners,r=this._scopes;let o=-1;for(let n=0;n0){for(o.sort(s),e=0;e{"use strict";i.d(t,{Z:()=>s});var n=i(426468),r=i(446938);function o(){this._removalFunctions=[]}o.prototype.add=function(e,t,i){if(!(0,n.Z)(e))throw new r.Z("event is required");const o=e.addEventListener(t,i);this._removalFunctions.push(o);const s=this;return function(){o();const e=s._removalFunctions;e.splice(e.indexOf(o),1)}},o.prototype.removeAll=function(){const e=this._removalFunctions;for(let t=0,i=e.length;t{"use strict";i.d(t,{Z:()=>n});const n={enableModelExperimental:!1}},655633:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({NONE:0,HOLD:1,EXTRAPOLATE:2})},488802:(e,t,i)=>{"use strict";i.d(t,{Z:()=>L});var n=i(527758),r=i(406144),o=i(426468),s=i(446938),a=i(529850);let c,u,l,h,d,f,p,m,_,Z,g,y,b,A,w,v,T;function C(e){const t=e.split(".");for(let e=0,i=t.length;e0&&t.height>0,e.resolve(R._result)},t.onerror=function(){R._result=!1,e.resolve(R._result)},t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",e.promise},Object.defineProperties(R,{initialized:{get:function(){return(0,o.Z)(R._result)}}});const B=[];"undefined"!=typeof ArrayBuffer&&(B.push(Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array),"undefined"!=typeof Uint8ClampedArray&&B.push(Uint8ClampedArray),"undefined"!=typeof Uint8ClampedArray&&B.push(Uint8ClampedArray),"undefined"!=typeof BigInt64Array&&B.push(BigInt64Array),"undefined"!=typeof BigUint64Array&&B.push(BigUint64Array));const M={isChrome:E,chromeVersion:function(){return E()&&l},isSafari:x,safariVersion:function(){return x()&&d},isWebkit:S,webkitVersion:function(){return S()&&p},isInternetExplorer:O,internetExplorerVersion:function(){return O()&&_},isEdge:I,edgeVersion:function(){return I()&&g},isFirefox:D,firefoxVersion:function(){return D()&&b},isWindows:function(){return(0,o.Z)(A)||(A=/Windows/i.test(c.appVersion)),A},hardwareConcurrency:(0,r.Z)(c.hardwareConcurrency,3),supportsPointerEvents:function(){return(0,o.Z)(w)||(w=!D()&&"undefined"!=typeof PointerEvent&&(!(0,o.Z)(c.pointerEnabled)||c.pointerEnabled)),w},supportsImageRenderingPixelated:P,supportsWebP:R,imageRenderingValue:function(){return P()?v:void 0},typedArrayTypes:B,supportsBasis:function(e){return M.supportsWebAssembly()&&e.context.supportsBasis},supportsFullscreen:function(){return a.Z.supportsFullscreen()},supportsTypedArrays:function(){return"undefined"!=typeof ArrayBuffer},supportsBigInt64Array:function(){return"undefined"!=typeof BigInt64Array},supportsBigUint64Array:function(){return"undefined"!=typeof BigUint64Array},supportsBigInt:function(){return"undefined"!=typeof BigInt},supportsWebWorkers:function(){return"undefined"!=typeof Worker},supportsWebAssembly:function(){return"undefined"!=typeof WebAssembly&&!M.isEdge()}},L=M},157788:(e,t,i)=>{"use strict";i.d(t,{Z:()=>k});var n=i(360791),r=i(919382),o=i(114754),s=i(357299),a=i(997274),c=i(406144),u=i(426468),l=i(915067),h=i(611843),d=i(451628),f=i(165373),p=i(583917),m=i(610490),_=i(118121),Z=i(195809),g=i(129782),y=i(172674);function b(e){s.Z.typeOf.object("options",e),s.Z.typeOf.object("options.frustum",e.frustum),s.Z.typeOf.object("options.origin",e.origin),s.Z.typeOf.object("options.orientation",e.orientation);const t=e.frustum,i=e.orientation,n=e.origin,o=(0,c.Z)(e.vertexFormat,y.Z.DEFAULT),a=(0,c.Z)(e._drawNearPlane,!0);let u,l;t instanceof _.Z?(u=0,l=_.Z.packedLength):t instanceof m.Z&&(u=1,l=m.Z.packedLength),this._frustumType=u,this._frustum=t.clone(),this._origin=r.Z.clone(n),this._orientation=g.Z.clone(i),this._drawNearPlane=a,this._vertexFormat=o,this._workerName="createFrustumGeometry",this.packedLength=2+l+r.Z.packedLength+g.Z.packedLength+y.Z.packedLength}b.pack=function(e,t,i){s.Z.typeOf.object("value",e),s.Z.defined("array",t),i=(0,c.Z)(i,0);const n=e._frustumType,o=e._frustum;return t[i++]=n,0===n?(_.Z.pack(o,t,i),i+=_.Z.packedLength):(m.Z.pack(o,t,i),i+=m.Z.packedLength),r.Z.pack(e._origin,t,i),i+=r.Z.packedLength,g.Z.pack(e._orientation,t,i),i+=g.Z.packedLength,y.Z.pack(e._vertexFormat,t,i),t[i+=y.Z.packedLength]=e._drawNearPlane?1:0,t};const A=new _.Z,w=new m.Z,v=new g.Z,T=new r.Z,C=new y.Z;function E(e,t,i,n,r,o,s,a){const c=e/3*2;for(let r=0;r<4;++r)(0,u.Z)(t)&&(t[e]=o.x,t[e+1]=o.y,t[e+2]=o.z),(0,u.Z)(i)&&(i[e]=s.x,i[e+1]=s.y,i[e+2]=s.z),(0,u.Z)(n)&&(n[e]=a.x,n[e+1]=a.y,n[e+2]=a.z),e+=3;r[c]=0,r[c+1]=0,r[c+2]=1,r[c+3]=0,r[c+4]=1,r[c+5]=1,r[c+6]=0,r[c+7]=1}b.unpack=function(e,t,i){s.Z.defined("array",e),t=(0,c.Z)(t,0);const n=e[t++];let o;0===n?(o=_.Z.unpack(e,t,A),t+=_.Z.packedLength):(o=m.Z.unpack(e,t,w),t+=m.Z.packedLength);const a=r.Z.unpack(e,t,T);t+=r.Z.packedLength;const l=g.Z.unpack(e,t,v);t+=g.Z.packedLength;const h=y.Z.unpack(e,t,C),d=1===e[t+=y.Z.packedLength];if(!(0,u.Z)(i))return new b({frustum:o,origin:a,orientation:l,vertexFormat:h,_drawNearPlane:d});const f=n===i._frustumType?i._frustum:void 0;return i._frustum=o.clone(f),i._frustumType=n,i._origin=r.Z.clone(a,i._origin),i._orientation=g.Z.clone(l,i._orientation),i._vertexFormat=y.Z.clone(h,i._vertexFormat),i._drawNearPlane=d,i};const x=new f.Z,S=new p.Z,O=new p.Z,I=new r.Z,D=new r.Z,P=new r.Z,R=new r.Z,B=new r.Z,M=new r.Z,L=new Array(3),N=new Array(4);N[0]=new o.Z(-1,-1,1,1),N[1]=new o.Z(1,-1,1,1),N[2]=new o.Z(1,1,1,1),N[3]=new o.Z(-1,1,1,1);const F=new Array(4);for(let e=0;e<4;++e)F[e]=new o.Z;b._computeNearFarPlanes=function(e,t,i,n,s,a,l,h){const d=f.Z.fromQuaternion(t,x);let m=(0,c.Z)(a,I),_=(0,c.Z)(l,D),Z=(0,c.Z)(h,P);m=f.Z.getColumn(d,0,m),_=f.Z.getColumn(d,1,_),Z=f.Z.getColumn(d,2,Z),r.Z.normalize(m,m),r.Z.normalize(_,_),r.Z.normalize(Z,Z),r.Z.negate(m,m);const g=p.Z.computeView(e,Z,_,m,S);let y,b;if(0===i){const e=n.projectionMatrix,t=p.Z.multiply(e,g,O);b=p.Z.inverse(t,O)}else y=p.Z.inverseTransformation(g,O);(0,u.Z)(b)?(L[0]=n.near,L[1]=n.far):(L[0]=0,L[1]=n.near,L[2]=n.far);for(let t=0;t<2;++t)for(let i=0;i<4;++i){let a=o.Z.clone(N[i],F[i]);if((0,u.Z)(b)){a=p.Z.multiplyByVector(b,a,a);const i=1/a.w;r.Z.multiplyByScalar(a,i,a),r.Z.subtract(a,e,a),r.Z.normalize(a,a);const n=r.Z.dot(Z,a);r.Z.multiplyByScalar(a,L[t]/n,a),r.Z.add(a,e,a)}else{(0,u.Z)(n._offCenterFrustum)&&(n=n._offCenterFrustum);const e=L[t],i=L[t+1];a.x=.5*(a.x*(n.right-n.left)+n.left+n.right),a.y=.5*(a.y*(n.top-n.bottom)+n.bottom+n.top),a.z=.5*(a.z*(e-i)-e-i),a.w=1,p.Z.multiplyByVector(y,a,a)}s[12*t+3*i]=a.x,s[12*t+3*i+1]=a.y,s[12*t+3*i+2]=a.z}},b.createGeometry=function(e){const t=e._frustumType,i=e._frustum,o=e._origin,s=e._orientation,c=e._drawNearPlane,f=e._vertexFormat,p=c?6:5;let m=new Float64Array(72);b._computeNearFarPlanes(o,s,t,i,m);let _=24;m[_]=m[12],m[_+1]=m[13],m[_+2]=m[14],m[_+3]=m[0],m[_+4]=m[1],m[_+5]=m[2],m[_+6]=m[9],m[_+7]=m[10],m[_+8]=m[11],m[_+9]=m[21],m[_+10]=m[22],m[_+11]=m[23],_+=12,m[_]=m[15],m[_+1]=m[16],m[_+2]=m[17],m[_+3]=m[3],m[_+4]=m[4],m[_+5]=m[5],m[_+6]=m[0],m[_+7]=m[1],m[_+8]=m[2],m[_+9]=m[12],m[_+10]=m[13],m[_+11]=m[14],_+=12,m[_]=m[3],m[_+1]=m[4],m[_+2]=m[5],m[_+3]=m[15],m[_+4]=m[16],m[_+5]=m[17],m[_+6]=m[18],m[_+7]=m[19],m[_+8]=m[20],m[_+9]=m[6],m[_+10]=m[7],m[_+11]=m[8],_+=12,m[_]=m[6],m[_+1]=m[7],m[_+2]=m[8],m[_+3]=m[18],m[_+4]=m[19],m[_+5]=m[20],m[_+6]=m[21],m[_+7]=m[22],m[_+8]=m[23],m[_+9]=m[9],m[_+10]=m[10],m[_+11]=m[11],c||(m=m.subarray(12));const g=new d.Z({position:new h.Z({componentDatatype:a.Z.DOUBLE,componentsPerAttribute:3,values:m})});if((0,u.Z)(f.normal)||(0,u.Z)(f.tangent)||(0,u.Z)(f.bitangent)||(0,u.Z)(f.st)){const e=(0,u.Z)(f.normal)?new Float32Array(12*p):void 0,t=(0,u.Z)(f.tangent)?new Float32Array(12*p):void 0,i=(0,u.Z)(f.bitangent)?new Float32Array(12*p):void 0,n=(0,u.Z)(f.st)?new Float32Array(8*p):void 0,o=I,s=D,l=P,d=r.Z.negate(o,R),m=r.Z.negate(s,B),Z=r.Z.negate(l,M);_=0,c&&(E(_,e,t,i,n,Z,o,s),_+=12),E(_,e,t,i,n,l,d,s),_+=12,E(_,e,t,i,n,d,Z,s),_+=12,E(_,e,t,i,n,m,Z,d),_+=12,E(_,e,t,i,n,o,l,s),_+=12,E(_,e,t,i,n,s,l,d),(0,u.Z)(e)&&(g.normal=new h.Z({componentDatatype:a.Z.FLOAT,componentsPerAttribute:3,values:e})),(0,u.Z)(t)&&(g.tangent=new h.Z({componentDatatype:a.Z.FLOAT,componentsPerAttribute:3,values:t})),(0,u.Z)(i)&&(g.bitangent=new h.Z({componentDatatype:a.Z.FLOAT,componentsPerAttribute:3,values:i})),(0,u.Z)(n)&&(g.st=new h.Z({componentDatatype:a.Z.FLOAT,componentsPerAttribute:2,values:n}))}const y=new Uint16Array(6*p);for(let e=0;e{"use strict";i.d(t,{Z:()=>w});var n=i(360791),r=i(919382),o=i(357299),s=i(997274),a=i(406144),c=i(426468),u=i(157788),l=i(915067),h=i(611843),d=i(451628),f=i(610490),p=i(118121),m=i(195809),_=i(129782);function Z(e){o.Z.typeOf.object("options",e),o.Z.typeOf.object("options.frustum",e.frustum),o.Z.typeOf.object("options.origin",e.origin),o.Z.typeOf.object("options.orientation",e.orientation);const t=e.frustum,i=e.orientation,n=e.origin,s=(0,a.Z)(e._drawNearPlane,!0);let c,u;t instanceof p.Z?(c=0,u=p.Z.packedLength):t instanceof f.Z&&(c=1,u=f.Z.packedLength),this._frustumType=c,this._frustum=t.clone(),this._origin=r.Z.clone(n),this._orientation=_.Z.clone(i),this._drawNearPlane=s,this._workerName="createFrustumOutlineGeometry",this.packedLength=2+u+r.Z.packedLength+_.Z.packedLength}Z.pack=function(e,t,i){o.Z.typeOf.object("value",e),o.Z.defined("array",t),i=(0,a.Z)(i,0);const n=e._frustumType,s=e._frustum;return t[i++]=n,0===n?(p.Z.pack(s,t,i),i+=p.Z.packedLength):(f.Z.pack(s,t,i),i+=f.Z.packedLength),r.Z.pack(e._origin,t,i),i+=r.Z.packedLength,_.Z.pack(e._orientation,t,i),t[i+=_.Z.packedLength]=e._drawNearPlane?1:0,t};const g=new p.Z,y=new f.Z,b=new _.Z,A=new r.Z;Z.unpack=function(e,t,i){o.Z.defined("array",e),t=(0,a.Z)(t,0);const n=e[t++];let s;0===n?(s=p.Z.unpack(e,t,g),t+=p.Z.packedLength):(s=f.Z.unpack(e,t,y),t+=f.Z.packedLength);const u=r.Z.unpack(e,t,A);t+=r.Z.packedLength;const l=_.Z.unpack(e,t,b),h=1===e[t+=_.Z.packedLength];if(!(0,c.Z)(i))return new Z({frustum:s,origin:u,orientation:l,_drawNearPlane:h});const d=n===i._frustumType?i._frustum:void 0;return i._frustum=s.clone(d),i._frustumType=n,i._origin=r.Z.clone(u,i._origin),i._orientation=_.Z.clone(l,i._orientation),i._drawNearPlane=h,i},Z.createGeometry=function(e){const t=e._frustumType,i=e._frustum,r=e._origin,o=e._orientation,a=e._drawNearPlane,c=new Float64Array(24);u.Z._computeNearFarPlanes(r,o,t,i,c);const f=new d.Z({position:new h.Z({componentDatatype:s.Z.DOUBLE,componentsPerAttribute:3,values:c})});let p,_;const Z=a?2:1,g=new Uint16Array(8*(Z+1));let y=a?0:1;for(;y<2;++y)p=a?8*y:0,_=4*y,g[p]=_,g[p+1]=_+1,g[p+2]=_+1,g[p+3]=_+2,g[p+4]=_+2,g[p+5]=_+3,g[p+6]=_+3,g[p+7]=_;for(y=0;y<2;++y)p=8*(Z+y),_=4*y,g[p]=_,g[p+1]=_+4,g[p+2]=_+1,g[p+3]=_+5,g[p+4]=_+2,g[p+5]=_+6,g[p+6]=_+3,g[p+7]=_+7;return new l.Z({attributes:f,indices:g,primitiveType:m.Z.LINES,boundingSphere:n.Z.fromVertices(c)})};const w=Z},529850:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(426468);let r;const o={requestFullscreen:void 0,exitFullscreen:void 0,fullscreenEnabled:void 0,fullscreenElement:void 0,fullscreenchange:void 0,fullscreenerror:void 0},s={};Object.defineProperties(s,{element:{get:function(){if(s.supportsFullscreen())return document[o.fullscreenElement]}},changeEventName:{get:function(){if(s.supportsFullscreen())return o.fullscreenchange}},errorEventName:{get:function(){if(s.supportsFullscreen())return o.fullscreenerror}},enabled:{get:function(){if(s.supportsFullscreen())return document[o.fullscreenEnabled]}},fullscreen:{get:function(){if(s.supportsFullscreen())return null!==s.element}}}),s.supportsFullscreen=function(){if((0,n.Z)(r))return r;r=!1;const e=document.body;if("function"==typeof e.requestFullscreen)return o.requestFullscreen="requestFullscreen",o.exitFullscreen="exitFullscreen",o.fullscreenEnabled="fullscreenEnabled",o.fullscreenElement="fullscreenElement",o.fullscreenchange="fullscreenchange",o.fullscreenerror="fullscreenerror",r=!0,r;const t=["webkit","moz","o","ms","khtml"];let i;for(let n=0,s=t.length;n{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({SEARCH:0,AUTOCOMPLETE:1})},622866:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(446938);function r(){}r.prototype.geocode=n.Z.throwInstantiationError;const o=r},921099:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(919382),r=i(698907),o=i(406144),s=i(426468),a=i(446938),c=i(253316);function u(e){this._ellipsoid=(0,o.Z)(e,c.Z.WGS84),this._semimajorAxis=this._ellipsoid.maximumRadius,this._oneOverSemimajorAxis=1/this._semimajorAxis}Object.defineProperties(u.prototype,{ellipsoid:{get:function(){return this._ellipsoid}}}),u.prototype.project=function(e,t){const i=this._semimajorAxis,r=e.longitude*i,o=e.latitude*i,a=e.height;return(0,s.Z)(t)?(t.x=r,t.y=o,t.z=a,t):new n.Z(r,o,a)},u.prototype.unproject=function(e,t){if(!(0,s.Z)(e))throw new a.Z("cartesian is required");const i=this._oneOverSemimajorAxis,n=e.x*i,o=e.y*i,c=e.z;return(0,s.Z)(t)?(t.longitude=n,t.latitude=o,t.height=c,t):new r.Z(n,o,c)};const l=u},910946:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(337968),r=i(357299),o=i(406144),s=i(426468),a=i(253316),c=i(921099),u=i(362017),l=i(523501);function h(e){e=(0,o.Z)(e,o.Z.EMPTY_OBJECT),this._ellipsoid=(0,o.Z)(e.ellipsoid,a.Z.WGS84),this._rectangle=(0,o.Z)(e.rectangle,l.Z.MAX_VALUE),this._projection=new c.Z(this._ellipsoid),this._numberOfLevelZeroTilesX=(0,o.Z)(e.numberOfLevelZeroTilesX,2),this._numberOfLevelZeroTilesY=(0,o.Z)(e.numberOfLevelZeroTilesY,1)}Object.defineProperties(h.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},rectangle:{get:function(){return this._rectangle}},projection:{get:function(){return this._projection}}}),h.prototype.getNumberOfXTilesAtLevel=function(e){return this._numberOfLevelZeroTilesX<=o&&(f=o-1);let p=(r.north-e.latitude)/h|0;return p>=a&&(p=a-1),(0,s.Z)(i)?(i.x=f,i.y=p,i):new n.Z(f,p)};const d=h},915067:(e,t,i)=>{"use strict";i.d(t,{Z:()=>O});var n=i(337968),r=i(919382),o=i(698907),s=i(357299),a=i(406144),c=i(426468),u=i(446938),l=i(593242),h=i(631145),d=i(165373),f=i(583917),p=i(195809),m=i(129782),_=i(523501),Z=i(358198);function g(e){e=(0,a.Z)(e,a.Z.EMPTY_OBJECT),s.Z.typeOf.object("options.attributes",e.attributes),this.attributes=e.attributes,this.indices=e.indices,this.primitiveType=(0,a.Z)(e.primitiveType,p.Z.TRIANGLES),this.boundingSphere=e.boundingSphere,this.geometryType=(0,a.Z)(e.geometryType,l.Z.NONE),this.boundingSphereCV=e.boundingSphereCV,this.offsetAttribute=e.offsetAttribute}g.computeNumberOfVertices=function(e){s.Z.typeOf.object("geometry",e);let t=-1;for(const i in e.attributes)if(e.attributes.hasOwnProperty(i)&&(0,c.Z)(e.attributes[i])&&(0,c.Z)(e.attributes[i].values)){const n=e.attributes[i],r=n.values.length/n.componentsPerAttribute;if(t!==r&&-1!==t)throw new u.Z("All attribute lists must have the same number of attributes.");t=r}return t};const y=new o.Z,b=new r.Z,A=new f.Z,w=[new o.Z,new o.Z,new o.Z],v=[new n.Z,new n.Z,new n.Z],T=[new n.Z,new n.Z,new n.Z],C=new r.Z,E=new m.Z,x=new f.Z,S=new h.Z;g._textureCoordinateRotationPoints=function(e,t,i,s){let a;const c=_.Z.center(s,y),u=o.Z.toCartesian(c,i,b),l=Z.Z.eastNorthUpToFixedFrame(u,i,A),p=f.Z.inverse(l,A),g=v,O=w;O[0].longitude=s.west,O[0].latitude=s.south,O[1].longitude=s.west,O[1].latitude=s.north,O[2].longitude=s.east,O[2].latitude=s.south;let I=C;for(a=0;a<3;a++)o.Z.toCartesian(O[a],i,I),I=f.Z.multiplyByPointAsVector(p,I,I),g[a].x=I.x,g[a].y=I.y;const D=m.Z.fromAxisAngle(r.Z.UNIT_Z,-t,E),P=d.Z.fromQuaternion(D,x),R=e.length;let B=Number.POSITIVE_INFINITY,M=Number.POSITIVE_INFINITY,L=Number.NEGATIVE_INFINITY,N=Number.NEGATIVE_INFINITY;for(a=0;a{"use strict";i.d(t,{Z:()=>s});var n=i(406144),r=i(426468),o=i(446938);const s=function(e){if(e=(0,n.Z)(e,n.Z.EMPTY_OBJECT),!(0,r.Z)(e.componentDatatype))throw new o.Z("options.componentDatatype is required.");if(!(0,r.Z)(e.componentsPerAttribute))throw new o.Z("options.componentsPerAttribute is required.");if(e.componentsPerAttribute<1||e.componentsPerAttribute>4)throw new o.Z("options.componentsPerAttribute must be between 1 and 4.");if(!(0,r.Z)(e.values))throw new o.Z("options.values is required.");this.componentDatatype=e.componentDatatype,this.componentsPerAttribute=e.componentsPerAttribute,this.normalize=(0,n.Z)(e.normalize,!1),this.values=e.values}},451628:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(406144);const r=function(e){e=(0,n.Z)(e,n.Z.EMPTY_OBJECT),this.position=e.position,this.normal=e.normal,this.st=e.st,this.bitangent=e.bitangent,this.tangent=e.tangent,this.color=e.color}},88588:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(446938);function r(){n.Z.throwInstantiationError()}r.createGeometry=function(e){n.Z.throwInstantiationError()};const o=r},952254:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(406144),r=i(426468),o=i(446938),s=i(583917);const a=function(e){if(e=(0,n.Z)(e,n.Z.EMPTY_OBJECT),!(0,r.Z)(e.geometry))throw new o.Z("options.geometry is required.");this.geometry=e.geometry,this.modelMatrix=s.Z.clone((0,n.Z)(e.modelMatrix,s.Z.IDENTITY)),this.id=e.id,this.pickPrimitive=e.pickPrimitive,this.attributes=(0,n.Z)(e.attributes,{}),this.westHemisphereGeometry=void 0,this.eastHemisphereGeometry=void 0}},194218:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(406144),r=i(426468),o=i(446938);const s=function(e){if(e=(0,n.Z)(e,n.Z.EMPTY_OBJECT),!(0,r.Z)(e.componentDatatype))throw new o.Z("options.componentDatatype is required.");if(!(0,r.Z)(e.componentsPerAttribute))throw new o.Z("options.componentsPerAttribute is required.");if(e.componentsPerAttribute<1||e.componentsPerAttribute>4)throw new o.Z("options.componentsPerAttribute must be between 1 and 4.");if(!(0,r.Z)(e.value))throw new o.Z("options.value is required.");this.componentDatatype=e.componentDatatype,this.componentsPerAttribute=e.componentsPerAttribute,this.normalize=(0,n.Z)(e.normalize,!1),this.value=e.value}},215925:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({NONE:0,TOP:1,ALL:2})},423035:(e,t,i)=>{"use strict";i.d(t,{Z:()=>ze});var n=i(247976),r=i(176650),o=i(360791),s=i(337968),a=i(919382),c=i(114754),u=i(698907),l=i(997274),h=i(406144),d=i(426468),f=i(446938),p=i(275949),m=i(921099),_=i(915067),Z=i(611843),g=i(593242),y=i(546135),b=i(360382),A=i(66172),w=i(362017),v=i(165373),T=i(583917),C=i(634878),E=i(195809),x=i(381442);const S={};function O(e,t,i,n,r){e[t++]=i,e[t++]=n,e[t++]=n,e[t++]=r,e[t++]=r,e[t]=i}function I(e){const t={};for(const i in e)if(e.hasOwnProperty(i)&&(0,d.Z)(e[i])&&(0,d.Z)(e[i].values)){const n=e[i];t[i]=new Z.Z({componentDatatype:n.componentDatatype,componentsPerAttribute:n.componentsPerAttribute,normalize:n.normalize,values:[]})}return t}function D(e,t,i){for(const n in t)if(t.hasOwnProperty(n)&&(0,d.Z)(t[n])&&(0,d.Z)(t[n].values)){const r=t[n];for(let t=0;t=3){const i=6*(t-2),n=y.Z.createTypedArray(t,i);O(n,0,e[0],e[1],e[2]);let r=6;for(let i=3;i0){const t=e.length-1,i=6*(t-1),n=y.Z.createTypedArray(t,i),r=e[0];let o=0;for(let i=1;ir&&(r=i[e]);e.indices=x.Z.tipsify({indices:i,maximumIndex:r,cacheSize:t})}return e},S.fitToUnsignedShortIndices=function(e){if(!(0,d.Z)(e))throw new f.Z("geometry is required.");if((0,d.Z)(e.indices)&&e.primitiveType!==E.Z.TRIANGLES&&e.primitiveType!==E.Z.LINES&&e.primitiveType!==E.Z.POINTS)throw new f.Z("geometry.primitiveType must equal to PrimitiveType.TRIANGLES, PrimitiveType.LINES, or PrimitiveType.POINTS.");const t=[],i=_.Z.computeNumberOfVertices(e);if((0,d.Z)(e.indices)&&i>=w.Z.SIXTY_FOUR_KILOBYTES){let i=[],n=[],r=0,o=I(e.attributes);const s=e.indices,a=s.length;let c;e.primitiveType===E.Z.TRIANGLES?c=3:e.primitiveType===E.Z.LINES?c=2:e.primitiveType===E.Z.POINTS&&(c=1);for(let u=0;u=w.Z.SIXTY_FOUR_KILOBYTES&&(t.push(new _.Z({attributes:o,indices:n,primitiveType:e.primitiveType,boundingSphere:e.boundingSphere,boundingSphereCV:e.boundingSphereCV})),i=[],n=[],r=0,o=I(e.attributes))}0!==n.length&&t.push(new _.Z({attributes:o,indices:n,primitiveType:e.primitiveType,boundingSphere:e.boundingSphere,boundingSphereCV:e.boundingSphereCV}))}else t.push(e);return t};const P=new a.Z,R=new u.Z;S.projectTo2D=function(e,t,i,n,r){if(!(0,d.Z)(e))throw new f.Z("geometry is required.");if(!(0,d.Z)(t))throw new f.Z("attributeName is required.");if(!(0,d.Z)(i))throw new f.Z("attributeName3D is required.");if(!(0,d.Z)(n))throw new f.Z("attributeName2D is required.");if(!(0,d.Z)(e.attributes[t]))throw new f.Z("geometry must have attribute matching the attributeName argument: "+t+".");if(e.attributes[t].componentDatatype!==l.Z.DOUBLE)throw new f.Z("The attribute componentDatatype must be ComponentDatatype.DOUBLE.");const o=e.attributes[t],s=(r=(0,d.Z)(r)?r:new m.Z).ellipsoid,c=o.values,u=new Float64Array(c.length);let h=0;for(let e=0;ex&&(x=i)}return new _.Z({attributes:m,indices:w,primitiveType:p,boundingSphere:(0,d.Z)(C)?new o.Z(C,x):void 0})}S.combineInstances=function(e){if(!(0,d.Z)(e)||e.length<1)throw new f.Z("instances is required and must have length greater than zero.");const t=[],i=[],n=e.length;for(let r=0;r0&&r.push(V(t,"geometry")),i.length>0&&(r.push(V(i,"westHemisphereGeometry")),r.push(V(i,"eastHemisphereGeometry"))),r};const z=new a.Z,H=new a.Z,G=new a.Z,q=new a.Z;S.computeNormal=function(e){if(!(0,d.Z)(e))throw new f.Z("geometry is required.");if(!(0,d.Z)(e.attributes.position)||!(0,d.Z)(e.attributes.position.values))throw new f.Z("geometry.attributes.position.values is required.");if(!(0,d.Z)(e.indices))throw new f.Z("geometry.indices is required.");if(e.indices.length<2||e.indices.length%3!=0)throw new f.Z("geometry.indices length must be greater than 0 and be a multiple of 3.");if(e.primitiveType!==E.Z.TRIANGLES)throw new f.Z("geometry.primitiveType must be PrimitiveType.TRIANGLES.");const t=e.indices,i=e.attributes,n=i.position.values,r=i.position.values.length/3,o=t.length,s=new Array(r),c=new Array(o/3),u=new Array(o);let h;for(h=0;h0){for(p=0;p=0||t.x>=0||i.x>=0)return;!function(e,t,i){if(0!==e.y&&0!==t.y&&0!==i.y)return ee(e,e.y<0),ee(t,t.y<0),void ee(i,i.y<0);const n=Math.abs(e.y),r=Math.abs(t.y),o=Math.abs(i.y);let s;s=n>r?n>o?w.Z.sign(e.y):w.Z.sign(i.y):r>o?w.Z.sign(t.y):w.Z.sign(i.y);const a=s<0;ee(e,a),ee(t,a),ee(i,a)}(e,t,i);const n=e.y<0,r=t.y<0,o=i.y<0;let s=0;s+=n?1:0,s+=r?1:0,s+=o?1:0;const a=ae.indices;1===s?(a[1]=3,a[2]=4,a[5]=6,a[7]=6,a[8]=5,n?(ie(e,t,ne,oe),ie(e,i,re,se),a[0]=0,a[3]=1,a[4]=2,a[6]=1):r?(ie(t,i,ne,oe),ie(t,e,re,se),a[0]=1,a[3]=2,a[4]=0,a[6]=2):o&&(ie(i,e,ne,oe),ie(i,t,re,se),a[0]=2,a[3]=0,a[4]=1,a[6]=0)):2===s&&(a[2]=4,a[4]=4,a[5]=3,a[7]=5,a[8]=6,n?r?o||(ie(i,e,ne,oe),ie(i,t,re,se),a[0]=0,a[1]=1,a[3]=0,a[6]=2):(ie(t,i,ne,oe),ie(t,e,re,se),a[0]=2,a[1]=0,a[3]=2,a[6]=1):(ie(e,t,ne,oe),ie(e,i,re,se),a[0]=1,a[1]=2,a[3]=1,a[6]=0));const c=ae.positions;return c[0]=e,c[1]=t,c[2]=i,c.length=3,1!==s&&2!==s||(c[3]=ne,c[4]=re,c[5]=oe,c[6]=se,c.length=7),ae}function ue(e,t){const i=e.attributes;if(0===i.position.values.length)return;for(const e in i)if(i.hasOwnProperty(e)&&(0,d.Z)(i[e])&&(0,d.Z)(i[e].values)){const t=i[e];t.values=l.Z.createTypedArray(t.componentDatatype,t.values)}const n=_.Z.computeNumberOfVertices(e);return e.indices=y.Z.createTypedArray(n,e.indices),t&&(e.boundingSphere=o.Z.fromVertices(i.position.values)),e}function le(e){const t=e.attributes,i={};for(const e in t)if(t.hasOwnProperty(e)&&(0,d.Z)(t[e])&&(0,d.Z)(t[e].values)){const n=t[e];i[e]=new Z.Z({componentDatatype:n.componentDatatype,componentsPerAttribute:n.componentsPerAttribute,normalize:n.normalize,values:[]})}return new _.Z({attributes:i,indices:[],primitiveType:e.primitiveType})}function he(e,t,i){const n=(0,d.Z)(e.geometry.boundingSphere);t=ue(t,n),i=ue(i,n),(0,d.Z)(i)&&!(0,d.Z)(t)?e.geometry=i:!(0,d.Z)(i)&&(0,d.Z)(t)?e.geometry=t:(e.westHemisphereGeometry=t,e.eastHemisphereGeometry=i,e.geometry=void 0)}function de(e,t){const i=new e,n=new e,r=new e;return function(o,s,a,c,u,l,h,d){const f=e.fromArray(u,o*t,i),p=e.fromArray(u,s*t,n),m=e.fromArray(u,a*t,r);e.multiplyByScalar(f,c.x,f),e.multiplyByScalar(p,c.y,p),e.multiplyByScalar(m,c.z,m);const _=e.add(f,p,f);e.add(_,m,_),d&&e.normalize(_,_),e.pack(_,l,h*t)}}const fe=de(c.Z,4),pe=de(a.Z,3),me=de(s.Z,2),_e=new a.Z,Ze=new a.Z,ge=new a.Z,ye=new a.Z;function be(e,t,i,n,o,s,c,u,l,h,f,p,m,_,Z,g){if(!((0,d.Z)(s)||(0,d.Z)(c)||(0,d.Z)(u)||(0,d.Z)(l)||(0,d.Z)(h)||0!==_))return;const y=a.Z.fromArray(o,3*e,_e),b=a.Z.fromArray(o,3*t,Ze),A=a.Z.fromArray(o,3*i,ge),v=(0,r.Z)(n,y,b,A,ye);if((0,d.Z)(v)){if((0,d.Z)(s)&&pe(e,t,i,v,s,p.normal.values,g,!0),(0,d.Z)(h)){const n=a.Z.fromArray(h,3*e,_e),r=a.Z.fromArray(h,3*t,Ze),o=a.Z.fromArray(h,3*i,ge);let s;a.Z.multiplyByScalar(n,v.x,n),a.Z.multiplyByScalar(r,v.y,r),a.Z.multiplyByScalar(o,v.z,o),a.Z.equals(n,a.Z.ZERO)&&a.Z.equals(r,a.Z.ZERO)&&a.Z.equals(o,a.Z.ZERO)?(s=_e,s.x=0,s.y=0,s.z=0):(s=a.Z.add(n,r,n),a.Z.add(s,o,s),a.Z.normalize(s,s)),a.Z.pack(s,p.extrudeDirection.values,3*g)}if((0,d.Z)(f)&&function(e,t,i,n,r,o,s){const a=r[e]*n.x,c=r[t]*n.y,u=r[i]*n.z;o[s]=a+c+u>w.Z.EPSILON6?1:0}(e,t,i,v,f,p.applyOffset.values,g),(0,d.Z)(c)&&pe(e,t,i,v,c,p.tangent.values,g,!0),(0,d.Z)(u)&&pe(e,t,i,v,u,p.bitangent.values,g,!0),(0,d.Z)(l)&&me(e,t,i,v,l,p.st.values,g),_>0)for(let n=0;n<_;n++){const r=m[n];Ae(e,t,i,v,g,Z[r],p[r])}}}function Ae(e,t,i,n,r,o,s){const a=o.componentsPerAttribute,c=o.values,u=s.values;switch(a){case 4:fe(e,t,i,n,c,u,r,!1);break;case 3:pe(e,t,i,n,c,u,r,!1);break;case 2:me(e,t,i,n,c,u,r,!1);break;default:u[r]=c[e]*n.x+c[t]*n.y+c[i]*n.z}}function we(e,t,i,n,r,o){const s=e.position.values.length/3;if(-1!==r){const a=n[r],c=i[a];return-1===c?(i[a]=s,e.position.values.push(o.x,o.y,o.z),t.push(s),s):(t.push(c),c)}return e.position.values.push(o.x,o.y,o.z),t.push(s),s}const ve={position:!0,normal:!0,bitangent:!0,tangent:!0,st:!0,extrudeDirection:!0,applyOffset:!0};function Te(e){const t=e.geometry,i=t.attributes,n=i.position.values,r=(0,d.Z)(i.normal)?i.normal.values:void 0,o=(0,d.Z)(i.bitangent)?i.bitangent.values:void 0,s=(0,d.Z)(i.tangent)?i.tangent.values:void 0,c=(0,d.Z)(i.st)?i.st.values:void 0,u=(0,d.Z)(i.extrudeDirection)?i.extrudeDirection.values:void 0,l=(0,d.Z)(i.applyOffset)?i.applyOffset.values:void 0,h=t.indices,f=[];for(const e in i)i.hasOwnProperty(e)&&!ve[e]&&(0,d.Z)(i[e])&&f.push(e);const p=f.length,m=le(t),_=le(t);let Z,g,y,b,A;const w=[];w.length=n.length/3;const v=[];for(v.length=n.length/3,A=0;A3){const a=S.positions,d=S.indices,C=d.length;for(let E=0;E0)continue;const s=a.Z.unpack(n,e,Re);(t.y<0&&s.y>0||t.y>0&&s.y<0)&&(e-3>0?(n[e]=i[e-3],n[e+1]=i[e-2],n[e+2]=i[e-1]):a.Z.pack(t,n,e));const c=a.Z.unpack(r,e,Be);(t.y<0&&c.y>0||t.y>0&&c.y<0)&&(e+30||o.Z.intersectPlane(i,C.Z.ORIGIN_ZX_PLANE)!==b.Z.INTERSECTING))return e;if(t.geometryType!==g.Z.NONE)switch(t.geometryType){case g.Z.POLYLINES:!function(e){const t=e.geometry,i=t.attributes,n=i.position.values,r=i.prevPosition.values,o=i.nextPosition.values,u=i.expandAndWidth.values,l=(0,d.Z)(i.st)?i.st.values:void 0,h=(0,d.Z)(i.color)?i.color.values:void 0,f=le(t),p=le(t);let m,_,Z,g=!1;const y=n.length/3;for(m=0;m3&&(i[3]=0,i[4]=2,i[5]=3);let n=6;for(let e=3;e{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({NONE:0,TRIANGLES:1,LINES:2,POLYLINES:3})},218954:(e,t,i)=>{"use strict";i.d(t,{Z:()=>C});var n=i(735581),r=i(527758),o=i(913216),s=i(357299),a=i(846748),c=i(406144),u=i(426468),l=i(690708),h=i(204088),d=i(734724),f=i(362017),p=i(261045),m=i(795788),_=i(50128),Z=i(890357);const g=function(e){const t=e.length,i=new ArrayBuffer(t),n=new Uint8Array(i);for(let i=0;imF8J´Ýð.ÝuڌDt"úa"\f3"So¯9D\vŒ9Ù9L¹¿«\\ŒP_Ÿ"uxéq‘h;ÁěðMª>}æÎI‰Ææx\fa1-¤O¥~q ˆì\r1èN\v\0nPh}=\b\r•¦n£h—$[kó#ó¶s³\r\v@ÀŸØQ]ú".jßI\0¹ wUÆïj¿{GLƒîÜÜF…©­S+S4ÿ”Yä8è1ƒN¹XFkË-#†’p\x005ˆ"Ï1²&/çÃu-6,rt°#G·ÓÑ&…7râ\0ŒDÏÚ3-Þ`†i#i*|ÍKQ\r•T9w.)ê¦P¢joP™\\>TûïP[\vE‰m(w7ێJfJo™ åpâ¹q~\fmI-zþrÇòY0»]såÉ êxì ðŠB|G`°½&·q¶ÇŸÑ3‚=Ó«îc™È+S D\\qÆÌD2O<ÊÀ)=RÓaX©}e´ÜÏ\rô=ñ\b©BÚ#\tØ¿^PIøMÀËGLO÷{+ØÅ1’;µoÜl\r’ˆўÛ?âéÚ_ԄâFaZÞUϤ\0¾ýÎgñJi—æ HØ]~®q N®ÀV©‘<‚rçvì)IÖ]-ƒãÛ6©;f—‡jÕ¶=P^R¹KÇsWxÉô.Y•“oÐKW>\'\'Ç`Û;íšSD>?’mw¢\në?R¨ÆU^1I7…ôÅ&-©¿‹\'TÚÃj å*x°Öprª‹h½ˆ÷_H±~ÀXL?fù>áeÀp§Ï8i¯ðVldIœ\'­xtO‡ÞV9\0Úw\vË-‰û5Oõ\bQ`Á\nZGM&30xÚÀœFGâ[y`In7gS\n>éìF9²ñ4\rƄSuná\fYÙÞ)…{II¥wy¾IV.6ç\v:»Ob{ÒM1•/½8{¨O!áìFpv•})"xˆ\nÝ\\ÚÞQÏðüYRe|3ßóHÚ»*uÛ`²Ôüíì5¨ÿ(1-È܈F|Š["');function y(e){s.Z.defined("resourceOrUrl",e);let t=e;"string"==typeof t||t instanceof m.Z||(s.Z.typeOf.string("resourceOrUrl.url",e.url),t=e.url);const i=m.Z.createIfNeeded(t);i.appendForwardSlash(),this._resource=i,this.imageryPresent=!0,this.protoImagery=void 0,this.terrainPresent=!0,this.negativeAltitudeExponentBias=32,this.negativeAltitudeThreshold=f.Z.EPSILON12,this.providers={},this.key=void 0,this._quadPacketVersion=1,this._tileInfo={},this._subtreePromises={};const l=this;this._readyPromise=function(e){const t=e._resource.getDerivedResource({url:"dbRoot.v5",queryParameters:{output:"proto"}});if(!(0,u.Z)(T)){const e=(0,o.Z)("ThirdParty/google-earth-dbroot-parser.js"),t=window.cesiumGoogleEarthDbRootParser;T=(0,d.Z)(e).then((function(){v=window.cesiumGoogleEarthDbRootParser(n.Z),(0,u.Z)(t)?window.cesiumGoogleEarthDbRootParser=t:delete window.cesiumGoogleEarthDbRootParser}))}return T.then((function(){return t.fetchArrayBuffer()})).then((function(t){const i=v.EncryptedDbRootProto.decode(new Uint8Array(t));let n=i.encryptionData,r=n.byteOffset,o=r+n.byteLength;const s=e.key=n.buffer.slice(r,o);n=i.dbrootData,r=n.byteOffset,o=r+n.byteLength;const a=n.buffer.slice(r,o);return b.scheduleTask({buffer:a,type:"DbRoot",key:s},[a])})).then((function(t){const i=v.DbRootProto.decode(new Uint8Array(t.buffer));if(e.imageryPresent=(0,c.Z)(i.imageryPresent,e.imageryPresent),e.protoImagery=i.protoImagery,e.terrainPresent=(0,c.Z)(i.terrainPresent,e.terrainPresent),(0,u.Z)(i.endSnippet)&&(0,u.Z)(i.endSnippet.model)){const t=i.endSnippet.model;e.negativeAltitudeExponentBias=(0,c.Z)(t.negativeAltitudeExponentBias,e.negativeAltitudeExponentBias),e.negativeAltitudeThreshold=(0,c.Z)(t.compressedNegativeAltitudeThreshold,e.negativeAltitudeThreshold)}(0,u.Z)(i.databaseVersion)&&(e._quadPacketVersion=(0,c.Z)(i.databaseVersion.quadtreeVersion,e._quadPacketVersion));const n=e.providers,r=(0,c.Z)(i.providerInfo,[]),o=r.length;for(let e=0;e=0;--r){const i=1<=0;--r){const o=1<1;){if(i=r.substring(r.length-1),r=r.substring(0,r.length-1),t=this.getTileInformationFromQuadKey(r),(0,u.Z)(t)){t.hasSubtree()||t.hasChild(parseInt(i))||(n=!1);break}if(null===t){n=!1;break}}return n};const b=new Z.Z("decodeGoogleEarthEnterprisePacket");function A(e,t,i){const n=e._tileInfo;let o,s=t,a=n[s];if((0,u.Z)(a)&&(!a.hasSubtree()||a.hasChildren()))return a;for(;void 0===a&&s.length>1;)s=s.substring(0,s.length-1),a=n[s];const c=e._subtreePromises;let l=c[s];return(0,u.Z)(l)?l.then((function(){return o=new p.Z({throttle:i.throttle,throttleByServer:i.throttleByServer,type:i.type,priorityFunction:i.priorityFunction}),A(e,t,o)})):(0,u.Z)(a)&&a.hasSubtree()?(l=e.getQuadTreePacket(s,a.cnodeVersion,i),(0,u.Z)(l)?(c[s]=l,l.then((function(){return o=new p.Z({throttle:i.throttle,throttleByServer:i.throttleByServer,type:i.type,priorityFunction:i.priorityFunction}),A(e,t,o)})).always((function(){delete c[s]}))):void 0):r.Z.reject(new _.Z("Couldn't load metadata for tile "+t))}function w(e,t,i,n){return e._resource.getDerivedResource({url:"flatfile?q2-0"+t+"-q."+i.toString(),request:n})}let v,T;y.prototype.getQuadTreePacket=function(e,t,i){t=(0,c.Z)(t,1);const n=w(this,e=(0,c.Z)(e,""),t,i).fetchArrayBuffer();if(!(0,u.Z)(n))return;const r=this._tileInfo,o=this.key;return n.then((function(t){return b.scheduleTask({buffer:t,quadKey:e,type:"Metadata",key:o},[t]).then((function(t){let i,n=-1;if(""!==e){n=e.length+1;const o=t[e];i=r[e],i._bits|=o._bits,delete t[e]}const o=Object.keys(t);o.sort((function(e,t){return e.length-t.length}));const s=o.length;for(let e=0;e1){const t=r[s.substring(0,s.length-1)];e.setParent(t)}r[s]=e}else r[s]=null}}))}))},y.prototype.populateSubtree=function(e,t,i,n){return A(this,y.tileXYToQuadKey(e,t,i),n)},y.prototype.getTileInformation=function(e,t,i){const n=y.tileXYToQuadKey(e,t,i);return this._tileInfo[n]},y.prototype.getTileInformationFromQuadKey=function(e){return this._tileInfo[e]};const C=y},198596:(e,t,i)=>{"use strict";i.d(t,{Z:()=>L});var n=i(360791),r=i(337968),o=i(919382),s=i(357299),a=i(406144),c=i(426468),u=i(446938),l=i(546135),h=i(917261),d=i(362017),f=i(126874),p=i(863314),m=i(523501),_=i(890357),Z=i(774329),g=i(569269),y=i(931079);function b(e){e=(0,a.Z)(e,a.Z.EMPTY_OBJECT),s.Z.typeOf.object("options.buffer",e.buffer),s.Z.typeOf.number("options.negativeAltitudeExponentBias",e.negativeAltitudeExponentBias),s.Z.typeOf.number("options.negativeElevationThreshold",e.negativeElevationThreshold),this._buffer=e.buffer,this._credits=e.credits,this._negativeAltitudeExponentBias=e.negativeAltitudeExponentBias,this._negativeElevationThreshold=e.negativeElevationThreshold;const t=(0,a.Z)(e.childTileMask,15);let i=3&t;i|=4&t?8:0,i|=8&t?4:0,this._childTileMask=i,this._createdByUpsampling=(0,a.Z)(e.createdByUpsampling,!1),this._skirtHeight=void 0,this._bufferType=this._buffer.constructor,this._mesh=void 0,this._minimumHeight=void 0,this._maximumHeight=void 0}Object.defineProperties(b.prototype,{credits:{get:function(){return this._credits}},waterMask:{get:function(){}}});const A="createVerticesFromGoogleEarthEnterpriseBuffer",w=new _.Z(A),v=new _.Z(A,Z.Z.maximumAsynchronousTasks),T=new m.Z,C=new m.Z;b.prototype.createMesh=function(e){e=(0,a.Z)(e,a.Z.EMPTY_OBJECT),s.Z.typeOf.object("options.tilingScheme",e.tilingScheme),s.Z.typeOf.number("options.x",e.x),s.Z.typeOf.number("options.y",e.y),s.Z.typeOf.number("options.level",e.level);const t=e.tilingScheme,i=e.x,r=e.y,u=e.level,l=(0,a.Z)(e.exaggeration,1),h=(0,a.Z)(e.exaggerationRelativeHeight,0),d=(0,a.Z)(e.throttle,!0),p=t.ellipsoid;t.tileXYToNativeRectangle(i,r,u,T),t.tileXYToRectangle(i,r,u,C);const _=p.cartographicToCartesian(m.Z.center(C)),Z=40075.16/(1<=-1e-15&&f.y>=-1e-15&&f.z>=-1e-15){const e=o.decodeHeight(r,n),t=o.decodeHeight(r,a),i=o.decodeHeight(r,c);return f.x*e+f.y*t+f.z*i}}}(this,n,r):function(e,t,i,n){const r=e._buffer;let o=0,s=0,a=0;i>.5?(t>.5?(o=2,s=.5):o=3,a=.5):t>.5&&(o=1,s=.5);const c=new DataView(r);let u=0;for(let e=0;e=-1e-15&&d.y>=-1e-15&&d.z>=-1e-15)return d.x*b[e]+d.y*b[n]+d.z*b[r]}}(this,n,r,e)};const E=new _.Z("upsampleQuantizedTerrainMesh",Z.Z.maximumAsynchronousTasks);b.prototype.upsample=function(e,t,i,r,a,h,d){if(s.Z.typeOf.object("tilingScheme",e),s.Z.typeOf.number("thisX",t),s.Z.typeOf.number("thisY",i),s.Z.typeOf.number("thisLevel",r),s.Z.typeOf.number("descendantX",a),s.Z.typeOf.number("descendantY",h),s.Z.typeOf.number("descendantLevel",d),d-r>1)throw new u.Z("Upsampling through more than one level at a time is not currently supported.");const m=this._mesh;if(!(0,c.Z)(this._mesh))return;const _=2*t!==a,Z=2*i===h,g=e.ellipsoid,y=e.tileXYToRectangle(a,h,d),b=E.scheduleTask({vertices:m.vertices,indices:m.indices,indexCountWithoutSkirts:m.indexCountWithoutSkirts,vertexCountWithoutSkirts:m.vertexCountWithoutSkirts,encoding:m.encoding,minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,isEastChild:_,isNorthChild:Z,childRectangle:y,ellipsoid:g});if(!(0,c.Z)(b))return;const A=this;return b.then((function(e){const t=new Uint16Array(e.vertices),i=l.Z.createTypedArray(t.length/3,e.indices),r=A._skirtHeight;return new p.Z({quantizedVertices:t,indices:i,minimumHeight:e.minimumHeight,maximumHeight:e.maximumHeight,boundingSphere:n.Z.clone(e.boundingSphere),orientedBoundingBox:f.Z.clone(e.orientedBoundingBox),horizonOcclusionPoint:o.Z.clone(e.horizonOcclusionPoint),westIndices:e.westIndices,southIndices:e.southIndices,eastIndices:e.eastIndices,northIndices:e.northIndices,westSkirtHeight:r,southSkirtHeight:r,eastSkirtHeight:r,northSkirtHeight:r,childTileMask:0,createdByUpsampling:!0,credits:A._credits})}))},b.prototype.isChildAvailable=function(e,t,i,n){s.Z.typeOf.number("thisX",e),s.Z.typeOf.number("thisY",t),s.Z.typeOf.number("childX",i),s.Z.typeOf.number("childY",n);let r=2;return i!==2*e&&++r,n!==2*t&&(r-=2),0!=(this._childTileMask&1<{"use strict";i.d(t,{Z:()=>S});var n=i(527758),r=i(846748),o=i(406144),s=i(426468),a=i(446938),c=i(197685),u=i(910946),l=i(218954),h=i(198596),d=i(520715),f=i(40080),p=i(362017),m=i(523501),_=i(261045),Z=i(316954),g=i(690220),y=i(795788),b=i(50128),A=i(890357),w=i(723822);const v=new f.Z;function T(){this._terrainCache={},this._lastTidy=f.Z.now()}function C(e){if(e=(0,o.Z)(e,o.Z.EMPTY_OBJECT),!(0,s.Z)(e.url)&&!(0,s.Z)(e.metadata))throw new a.Z("options.url or options.metadata is required.");let t;if((0,s.Z)(e.metadata))t=e.metadata;else{const i=y.Z.createIfNeeded(e.url);t=new l.Z(i)}this._metadata=t,this._tilingScheme=new u.Z({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:2,rectangle:new m.Z(-p.Z.PI,-p.Z.PI,p.Z.PI,p.Z.PI),ellipsoid:e.ellipsoid});let i=e.credit;"string"==typeof i&&(i=new r.Z(i)),this._credit=i,this._levelZeroMaximumGeometricError=40075.16,this._terrainCache=new T,this._terrainPromises={},this._terrainRequests={},this._errorEvent=new c.Z,this._ready=!1;const h=this;let d;this._readyPromise=t.readyPromise.then((function(e){if(!t.terrainPresent){const e=new b.Z("The server "+t.url+" doesn't have terrain");return d=w.Z.handleError(d,h,h._errorEvent,e.message,void 0,void 0,void 0,e),n.Z.reject(e)}return w.Z.handleSuccess(d),h._ready=e,e})).otherwise((function(e){return d=w.Z.handleError(d,h,h._errorEvent,e.message,void 0,void 0,void 0,e),n.Z.reject(e)}))}T.prototype.add=function(e,t){this._terrainCache[e]={buffer:t,timestamp:f.Z.now()}},T.prototype.get=function(e){const t=this._terrainCache[e];if((0,s.Z)(t))return delete this._terrainCache[e],t.buffer},T.prototype.tidy=function(){if(f.Z.now(v),f.Z.secondsDifference(v,this._lastTidy)>10){const e=this._terrainCache,t=Object.keys(e),i=t.length;for(let n=0;n10&&delete e[i]}f.Z.clone(v,this._lastTidy)}},Object.defineProperties(C.prototype,{url:{get:function(){return this._metadata.url}},proxy:{get:function(){return this._metadata.proxy}},tilingScheme:{get:function(){if(!this._ready)throw new a.Z("tilingScheme must not be called before the imagery provider is ready.");return this._tilingScheme}},errorEvent:{get:function(){return this._errorEvent}},ready:{get:function(){return this._ready}},readyPromise:{get:function(){return this._readyPromise}},credit:{get:function(){return this._credit}},hasWaterMask:{get:function(){return!1}},hasVertexNormals:{get:function(){return!1}},availability:{get:function(){}}});const E=new A.Z("decodeGoogleEarthEnterprisePacket");function x(e,t,i){let n=t.getChildBitmask();if(3===t.terrainState){n=0;for(let t=0;t<4;++t){const r=i.getTileInformationFromQuadKey(e+t.toString());(0,s.Z)(r)&&r.hasTerrain()&&(n|=1<0?i:1,e._metadata.resource.getDerivedResource({url:"flatfile?f1c-0"+t+"-t."+i.toString(),request:n})}(this,g,y,T).fetchArrayBuffer();if(!(0,s.Z)(e))return;v=e.then((function(e){return(0,s.Z)(e)?E.scheduleTask({buffer:e,type:"Terrain",key:u.key},[e]).then((function(e){const t=u.getTileInformationFromQuadKey(g);t.terrainState=2,c.add(g,e[0]);const i=t.terrainProvider,n=e.length-1;for(let t=0;t{"use strict";i.d(t,{Z:()=>a});var n=i(426468),r=i(204088);const o=[1,2,4,8];function s(e,t,i,n,r,o){this._bits=e,this.cnodeVersion=t,this.imageryVersion=i,this.terrainVersion=n,this.imageryProvider=r,this.terrainProvider=o,this.ancestorHasTerrain=!1,this.terrainState=void 0}s.clone=function(e,t){return(0,n.Z)(t)?(t._bits=e._bits,t.cnodeVersion=e.cnodeVersion,t.imageryVersion=e.imageryVersion,t.terrainVersion=e.terrainVersion,t.imageryProvider=e.imageryProvider,t.terrainProvider=e.terrainProvider):t=new s(e._bits,e.cnodeVersion,e.imageryVersion,e.terrainVersion,e.imageryProvider,e.terrainProvider),t.ancestorHasTerrain=e.ancestorHasTerrain,t.terrainState=e.terrainState,t},s.prototype.setParent=function(e){this.ancestorHasTerrain=e.ancestorHasTerrain||this.hasTerrain()},s.prototype.hasSubtree=function(){return(0,r.Z)(this._bits,16)},s.prototype.hasImagery=function(){return(0,r.Z)(this._bits,64)},s.prototype.hasTerrain=function(){return(0,r.Z)(this._bits,128)},s.prototype.hasChildren=function(){return(0,r.Z)(this._bits,15)},s.prototype.hasChild=function(e){return(0,r.Z)(this._bits,o[e])},s.prototype.getChildBitmask=function(){return 15&this._bits};const a=s},542787:(e,t,i)=>{"use strict";i.d(t,{Z:()=>et});var n=i(140537),r=i(726307),o=i(554875),s=i(360791),a=i(919382),c=i(698907),u=i(357299),l=i(997274),h=i(406144),d=i(426468),f=i(446938),p=i(253316),m=i(974390),_=i(889702),Z=i(275949),g=i(921099),y=i(915067),b=i(611843),A=i(66172),w=i(362017),v=i(165373),T=i(634878),C=i(129782),E=i(523501),x=i(786409);const S=[g.Z,x.Z],O=S.length,I=Math.cos(w.Z.toRadians(30)),D=Math.cos(w.Z.toRadians(150));function P(e){const t=(e=(0,h.Z)(e,h.Z.EMPTY_OBJECT)).positions;if(!(0,d.Z)(t)||t.length<2)throw new f.Z("At least two positions are required.");if((0,d.Z)(e.arcType)&&e.arcType!==r.Z.GEODESIC&&e.arcType!==r.Z.RHUMB)throw new f.Z("Valid options for arcType are ArcType.GEODESIC and ArcType.RHUMB.");this.width=(0,h.Z)(e.width,1),this._positions=t,this.granularity=(0,h.Z)(e.granularity,9999),this.loop=(0,h.Z)(e.loop,!1),this.arcType=(0,h.Z)(e.arcType,r.Z.GEODESIC),this._ellipsoid=p.Z.WGS84,this._projectionIndex=0,this._workerName="createGroundPolylineGeometry",this._scene3DOnly=!1}Object.defineProperties(P.prototype,{packedLength:{get:function(){return 1+3*this._positions.length+1+1+1+p.Z.packedLength+1+1}}}),P.setProjectionAndEllipsoid=function(e,t){let i=0;for(let e=0;e65535?new Uint32Array(g):new Uint16Array(g),v=new Float64Array(3*m),T=new Float32Array(_),C=new Float32Array(_),x=new Float32Array(_),S=new Float32Array(_),O=new Float32Array(_);let D,P,R,B;u&&(D=new Float32Array(_),P=new Float32Array(_),R=new Float32Array(_),B=new Float32Array(2*m));const M=c.length/2;let L=0;const N=Ae;N.height=0;const F=we;F.height=0;let k=ve,U=Te;if(u)for(d=0,h=1;hI?(p=pe(t,N,_,l,Ne),m=pe(t,F,Q,h,Fe)):1===e?(m=pe(t,F,Q,h,Fe),p.x=0,p.y=w.Z.sign(N.longitude-Math.abs(F.longitude)),p.z=0):(p=pe(t,N,_,l,Ne),m.x=0,m.y=w.Z.sign(N.longitude-F.longitude),m.z=0)}const g=a.Z.distance(s,J),y=Z.Z.fromCartesian(e,qe),b=a.Z.subtract(X,e,ke),A=a.Z.normalize(b,ze);let M=a.Z.subtract(s,e,Ue);M=a.Z.normalize(M,M);let k=a.Z.cross(A,M,ze);k=a.Z.normalize(k,k);let U=a.Z.cross(M,_,He);U=a.Z.normalize(U,U);let V=a.Z.subtract(J,X,Ve);V=a.Z.normalize(V,V);let ie=a.Z.cross(Q,V,Ge);ie=a.Z.normalize(ie,ie);const ne=g/H,re=$/H;let oe,se,ae,ce=0,ue=0,he=0;if(u){ce=a.Z.distance(l,h),oe=Z.Z.fromCartesian(l,je),se=a.Z.subtract(h,l,We),ae=a.Z.normalize(se,Ke);const e=ae.x;ae.x=ae.y,ae.y=-e,ue=ce/L,he=ee/L}for(z=0;z<8;z++){const e=K+4*z,t=j+2*z,i=e+3,n=z<4?1:-1,r=2===z||3===z||6===z||7===z?1:-1;a.Z.pack(y.high,T,e),T[i]=b.x,a.Z.pack(y.low,C,e),C[i]=b.y,a.Z.pack(U,x,e),x[i]=b.z,a.Z.pack(ie,S,e),S[i]=ne*n,a.Z.pack(k,O,e);let o=re*r;0===o&&r<0&&(o=9),O[i]=o,u&&(D[e]=oe.high.x,D[e+1]=oe.high.y,D[e+2]=oe.low.x,D[e+3]=oe.low.y,R[e]=-p.y,R[e+1]=p.x,R[e+2]=m.y,R[e+3]=-m.x,P[e]=se.x,P[e+1]=se.y,P[e+2]=ae.x,P[e+3]=ae.y,B[t]=ue*n,o=he*r,0===o&&r<0&&(o=9),B[t+1]=o)}const de=Re,fe=Be,me=De,_e=Pe,ge=E.Z.fromCartographicArray(Oe,Ie),Ae=n.Z.getMinimumMaximumHeights(ge,f),we=Ae.minimumTerrainHeight,Xe=Ae.maximumTerrainHeight;te+=we,te+=Xe,Ze(e,s,we,Xe,de,me),Ze(X,J,we,Xe,fe,_e);let Je=a.Z.multiplyByScalar(k,w.Z.EPSILON5,Ye);a.Z.add(de,Je,de),a.Z.add(fe,Je,fe),a.Z.add(me,Je,me),a.Z.add(_e,Je,_e),ye(de,fe),ye(me,_e),a.Z.pack(de,v,W),a.Z.pack(fe,v,W+3),a.Z.pack(_e,v,W+6),a.Z.pack(me,v,W+9),Je=a.Z.multiplyByScalar(k,-2*w.Z.EPSILON5,Ye),a.Z.add(de,Je,de),a.Z.add(fe,Je,fe),a.Z.add(me,Je,me),a.Z.add(_e,Je,_e),ye(de,fe),ye(me,_e),a.Z.pack(de,v,W+12),a.Z.pack(fe,v,W+15),a.Z.pack(_e,v,W+18),a.Z.pack(me,v,W+21),q+=2,d+=3,j+=16,W+=24,K+=32,$+=g,ee+=ce}d=0;let ie=0;for(h=0;hI||ow.Z.PI_OVER_TWO&&(u=!0,s=a.Z.subtract(o,i,fe),h=l.cartesianToCartographic(s,he)),h.height=0;const d=e.project(h,r);return(r=a.Z.subtract(d,n,r)).z=0,r=a.Z.normalize(r,r),u&&a.Z.negate(r,r),r}const me=new a.Z,_e=new a.Z;function Ze(e,t,i,n,r,o){const s=a.Z.subtract(t,e,me);a.Z.normalize(s,s);const c=i-0;let u=a.Z.multiplyByScalar(s,c,_e);a.Z.add(e,u,r);const l=n-1e3;u=a.Z.multiplyByScalar(s,l,_e),a.Z.add(t,u,o)}const ge=new a.Z;function ye(e,t){const i=T.Z.getPointDistance(J,e),n=T.Z.getPointDistance(J,t);let r=ge;w.Z.equalsEpsilon(i,0,w.Z.EPSILON2)?(r=G(t,e,r),a.Z.multiplyByScalar(r,w.Z.EPSILON2,r),a.Z.add(e,r,e)):w.Z.equalsEpsilon(n,0,w.Z.EPSILON2)&&(r=G(e,t,r),a.Z.multiplyByScalar(r,w.Z.EPSILON2,r),a.Z.add(t,r,t))}function be(e,t){const i=Math.abs(e.longitude),n=Math.abs(t.longitude);if(w.Z.equalsEpsilon(i,w.Z.PI,w.Z.EPSILON11)){const n=w.Z.sign(t.longitude);return e.longitude=n*(i-w.Z.EPSILON11),1}if(w.Z.equalsEpsilon(n,w.Z.PI,w.Z.EPSILON11)){const i=w.Z.sign(e.longitude);return t.longitude=i*(n-w.Z.EPSILON11),2}return 0}const Ae=new c.Z,we=new c.Z,ve=new a.Z,Te=new a.Z,Ce=new a.Z,Ee=new a.Z,xe=new a.Z,Se=new a.Z,Oe=[Ae,we],Ie=new E.Z,De=new a.Z,Pe=new a.Z,Re=new a.Z,Be=new a.Z,Me=new a.Z,Le=new a.Z,Ne=new a.Z,Fe=new a.Z,ke=new a.Z,Ue=new a.Z,Ve=new a.Z,ze=new a.Z,He=new a.Z,Ge=new a.Z,qe=new Z.Z,je=new Z.Z,We=new a.Z,Ke=new a.Z,Ye=new a.Z,Xe=[new s.Z,new s.Z],Je=[0,2,1,0,3,2,0,7,3,0,4,7,0,5,4,0,1,5,5,7,4,5,6,7,5,2,6,5,1,2,3,6,2,3,7,6],Qe=Je.length;function $e(e){return new b.Z({componentDatatype:l.Z.FLOAT,componentsPerAttribute:4,normalize:!1,values:e})}P._projectNormal=pe;const et=P},651279:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(406144),r=i(426468);function o(e,t,i){this.heading=(0,n.Z)(e,0),this.pitch=(0,n.Z)(t,0),this.range=(0,n.Z)(i,0)}o.clone=function(e,t){if((0,r.Z)(e))return(0,r.Z)(t)||(t=new o),t.heading=e.heading,t.pitch=e.pitch,t.range=e.range,t};const s=o},80388:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(406144),r=i(426468),o=i(446938),s=i(362017);function a(e,t,i){this.heading=(0,n.Z)(e,0),this.pitch=(0,n.Z)(t,0),this.roll=(0,n.Z)(i,0)}a.fromQuaternion=function(e,t){if(!(0,r.Z)(e))throw new o.Z("quaternion is required");(0,r.Z)(t)||(t=new a);const i=2*(e.w*e.y-e.z*e.x),n=1-2*(e.x*e.x+e.y*e.y),c=2*(e.w*e.x+e.y*e.z),u=1-2*(e.y*e.y+e.z*e.z),l=2*(e.w*e.z+e.x*e.y);return t.heading=-Math.atan2(l,u),t.roll=Math.atan2(c,n),t.pitch=-s.Z.asinClamped(i),t},a.fromDegrees=function(e,t,i,n){if(!(0,r.Z)(e))throw new o.Z("heading is required");if(!(0,r.Z)(t))throw new o.Z("pitch is required");if(!(0,r.Z)(i))throw new o.Z("roll is required");return(0,r.Z)(n)||(n=new a),n.heading=e*s.Z.RADIANS_PER_DEGREE,n.pitch=t*s.Z.RADIANS_PER_DEGREE,n.roll=i*s.Z.RADIANS_PER_DEGREE,n},a.clone=function(e,t){if((0,r.Z)(e))return(0,r.Z)(t)?(t.heading=e.heading,t.pitch=e.pitch,t.roll=e.roll,t):new a(e.heading,e.pitch,e.roll)},a.equals=function(e,t){return e===t||(0,r.Z)(e)&&(0,r.Z)(t)&&e.heading===t.heading&&e.pitch===t.pitch&&e.roll===t.roll},a.equalsEpsilon=function(e,t,i,n){return e===t||(0,r.Z)(e)&&(0,r.Z)(t)&&s.Z.equalsEpsilon(e.heading,t.heading,i,n)&&s.Z.equalsEpsilon(e.pitch,t.pitch,i,n)&&s.Z.equalsEpsilon(e.roll,t.roll,i,n)},a.prototype.clone=function(e){return a.clone(this,e)},a.prototype.equals=function(e){return a.equals(this,e)},a.prototype.equalsEpsilon=function(e,t,i){return a.equalsEpsilon(this,e,t,i)},a.prototype.toString=function(){return"("+this.heading+", "+this.pitch+", "+this.roll+")"};const c=a},908647:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(357299),r=i(406144),o=i(426468);function s(e){n.Z.typeOf.object("options",e),n.Z.defined("options.comparator",e.comparator),this._comparator=e.comparator,this._array=[],this._length=0,this._maximumLength=void 0}function a(e,t,i){const n=e[t];e[t]=e[i],e[i]=n}Object.defineProperties(s.prototype,{length:{get:function(){return this._length}},internalArray:{get:function(){return this._array}},maximumLength:{get:function(){return this._maximumLength},set:function(e){n.Z.typeOf.number.greaterThanOrEquals("maximumLength",e,0);const t=this._length;if(e=0;--t)this.heapify(t)},s.prototype.insert=function(e){n.Z.defined("element",e);const t=this._array,i=this._comparator,r=this._maximumLength;let s,c=this._length++;for(cr&&(s=t[r],this._length=r),s},s.prototype.pop=function(e){if(e=(0,r.Z)(e,0),0===this._length)return;n.Z.typeOf.number.lessThan("index",e,this._length);const t=this._array,i=t[e];return a(t,e,--this._length),this.heapify(e),t[this._length]=void 0,i};const c=s},41532:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({NONE:0,LERC:1})},520715:(e,t,i)=>{"use strict";i.d(t,{Z:()=>O});var n=i(527758),r=i(360791),o=i(919382),s=i(357299),a=i(406144),c=i(426468),u=i(446938),l=i(921099),h=i(41532),d=i(411593),f=i(362017),p=i(126874),m=i(523501),_=i(890357),Z=i(774329),g=i(569269),y=i(931079),b=i(950714);function A(e){if(!(0,c.Z)(e)||!(0,c.Z)(e.buffer))throw new u.Z("options.buffer is required.");if(!(0,c.Z)(e.width))throw new u.Z("options.width is required.");if(!(0,c.Z)(e.height))throw new u.Z("options.height is required.");this._buffer=e.buffer,this._width=e.width,this._height=e.height,this._childTileMask=(0,a.Z)(e.childTileMask,15),this._encoding=(0,a.Z)(e.encoding,h.Z.NONE);const t=d.Z.DEFAULT_STRUCTURE;let i=e.structure;(0,c.Z)(i)?i!==t&&(i.heightScale=(0,a.Z)(i.heightScale,t.heightScale),i.heightOffset=(0,a.Z)(i.heightOffset,t.heightOffset),i.elementsPerHeight=(0,a.Z)(i.elementsPerHeight,t.elementsPerHeight),i.stride=(0,a.Z)(i.stride,t.stride),i.elementMultiplier=(0,a.Z)(i.elementMultiplier,t.elementMultiplier),i.isBigEndian=(0,a.Z)(i.isBigEndian,t.isBigEndian)):i=t,this._structure=i,this._createdByUpsampling=(0,a.Z)(e.createdByUpsampling,!1),this._waterMask=e.waterMask,this._skirtHeight=void 0,this._bufferType=this._encoding===h.Z.LERC?Float32Array:this._buffer.constructor,this._mesh=void 0}Object.defineProperties(A.prototype,{credits:{get:function(){}},waterMask:{get:function(){return this._waterMask}},childTileMask:{get:function(){return this._childTileMask}}});const w="createVerticesFromHeightmap",v=new _.Z(w),T=new _.Z(w,Z.Z.maximumAsynchronousTasks);function C(e,t,i,n,r,o,s,a,c){const u=(a-r.west)*(o-1)/(r.east-r.west),l=(c-r.south)*(s-1)/(r.north-r.south);let h=0|u,d=h+1;d>=o&&(d=o-1,h=o-2);let f=0|l,p=f+1;p>=s&&(p=s-1,f=s-2);const m=l-f;return f=s-1-f,p=s-1-p,E(u-h,m,(t.decodeHeight(e,f*o+h)-i)/n,(t.decodeHeight(e,f*o+d)-i)/n,(t.decodeHeight(e,p*o+h)-i)/n,(t.decodeHeight(e,p*o+d)-i)/n)}function E(e,t,i,n,r,o){return t=0;--s)a=a*i+e[o+s];return a}function S(e,t,i,n,r,o,s,a){let c;if(s*=r,o)for(c=0;c0;--c)e[s+c]=a/n|0,a-=e[s+c]*n,n/=i;e[s+c]=a}A.prototype.createMesh=function(e){e=(0,a.Z)(e,a.Z.EMPTY_OBJECT),s.Z.typeOf.object("options.tilingScheme",e.tilingScheme),s.Z.typeOf.number("options.x",e.x),s.Z.typeOf.number("options.y",e.y),s.Z.typeOf.number("options.level",e.level);const t=e.tilingScheme,i=e.x,u=e.y,h=e.level,d=(0,a.Z)(e.exaggeration,1),f=(0,a.Z)(e.exaggerationRelativeHeight,0),_=(0,a.Z)(e.throttle,!0),Z=t.ellipsoid,A=t.tileXYToNativeRectangle(i,u,h),w=t.tileXYToRectangle(i,u,h),C=Z.cartographicToCartesian(m.Z.center(w)),E=this._structure,x=b.Z.getEstimatedLevelZeroGeometricErrorForAHeightmap(Z,this._width,t.getNumberOfXTilesAtLevel(0))/(1<0?b.Z.getRegularGridAndSkirtIndicesAndEdgeIndices(e.gridWidth,e.gridHeight):b.Z.getRegularGridIndicesAndEdgeIndices(e.gridWidth,e.gridHeight);const i=e.gridWidth*e.gridHeight;return O._mesh=new y.Z(C,new Float32Array(e.vertices),t.indices,t.indexCountWithoutSkirts,i,e.minimumHeight,e.maximumHeight,r.Z.clone(e.boundingSphere3D),o.Z.clone(e.occludeePointInScaledSpace),e.numberOfAttributes,p.Z.clone(e.orientedBoundingBox),g.Z.clone(e.encoding),t.westIndicesSouthToNorth,t.southIndicesEastToWest,t.eastIndicesNorthToSouth,t.northIndicesWestToEast),O._buffer=void 0,O._mesh}))},A.prototype._createMeshSync=function(e){s.Z.typeOf.object("options.tilingScheme",e.tilingScheme),s.Z.typeOf.number("options.x",e.x),s.Z.typeOf.number("options.y",e.y),s.Z.typeOf.number("options.level",e.level);const t=e.tilingScheme,i=e.x,n=e.y,r=e.level,o=(0,a.Z)(e.exaggeration,1),c=(0,a.Z)(e.exaggerationRelativeHeight,0),u=t.ellipsoid,h=t.tileXYToNativeRectangle(i,n,r),f=t.tileXYToRectangle(i,n,r),p=u.cartographicToCartesian(m.Z.center(f)),_=this._structure,Z=b.Z.getEstimatedLevelZeroGeometricErrorForAHeightmap(u,this._width,t.getNumberOfXTilesAtLevel(0))/(1<0?b.Z.getRegularGridAndSkirtIndicesAndEdgeIndices(this._width,this._height):b.Z.getRegularGridIndicesAndEdgeIndices(this._width,this._height);const w=g.gridWidth*g.gridHeight;return this._mesh=new y.Z(p,g.vertices,A.indices,A.indexCountWithoutSkirts,w,g.minimumHeight,g.maximumHeight,g.boundingSphere3D,g.occludeePointInScaledSpace,g.encoding.stride,g.orientedBoundingBox,g.encoding,A.westIndicesSouthToNorth,A.southIndicesEastToWest,A.eastIndicesNorthToSouth,A.northIndicesWestToEast),this._mesh},A.prototype.interpolateHeight=function(e,t,i){const n=this._width,r=this._height,o=this._structure,s=o.stride,a=o.elementsPerHeight,u=o.elementMultiplier,l=o.isBigEndian,d=o.heightOffset,f=o.heightScale,p=(0,c.Z)(this._mesh),m=this._encoding===h.Z.LERC;if(!p&&m)return;let _;return p?_=C(this._mesh.vertices,this._mesh.encoding,d,f,e,n,r,t,i):(_=function(e,t,i,n,r,o,s,a,c,u){const l=(c-o.west)*(s-1)/(o.east-o.west),h=(u-o.south)*(a-1)/(o.north-o.south);let d=0|l,f=d+1;f>=s&&(f=s-1,d=s-2);let p=0|h,m=p+1;m>=a&&(m=a-1,p=a-2);const _=h-p;p=a-1-p,m=a-1-m;return E(l-d,_,x(e,t,i,n,r,p*s+d),x(e,t,i,n,r,p*s+f),x(e,t,i,n,r,m*s+d),x(e,t,i,n,r,m*s+f))}(this._buffer,a,u,s,l,e,n,r,t,i),_=_*f+d),_},A.prototype.upsample=function(e,t,i,n,r,o,s){if(!(0,c.Z)(e))throw new u.Z("tilingScheme is required.");if(!(0,c.Z)(t))throw new u.Z("thisX is required.");if(!(0,c.Z)(i))throw new u.Z("thisY is required.");if(!(0,c.Z)(n))throw new u.Z("thisLevel is required.");if(!(0,c.Z)(r))throw new u.Z("descendantX is required.");if(!(0,c.Z)(o))throw new u.Z("descendantY is required.");if(!(0,c.Z)(s))throw new u.Z("descendantLevel is required.");if(s-n>1)throw new u.Z("Upsampling through more than one level at a time is not currently supported.");const a=this._mesh;if(!(0,c.Z)(a))return;const l=this._width,h=this._height,d=this._structure,p=d.stride,m=new this._bufferType(l*h*p),_=a.vertices,Z=a.encoding,g=e.tileXYToRectangle(t,i,n),y=e.tileXYToRectangle(r,o,s),b=d.heightOffset,w=d.heightScale,v=d.elementsPerHeight,T=d.elementMultiplier,E=d.isBigEndian,x=Math.pow(T,v-1);for(let e=0;ed.highestEncodedHeight?d.highestEncodedHeight:n,S(m,v,T,x,p,E,e*l+i,n)}}return new A({buffer:m,width:l,height:h,childTileMask:0,structure:this._structure,createdByUpsampling:!0})},A.prototype.isChildAvailable=function(e,t,i,n){if(!(0,c.Z)(e))throw new u.Z("thisX is required.");if(!(0,c.Z)(t))throw new u.Z("thisY is required.");if(!(0,c.Z)(i))throw new u.Z("childX is required.");if(!(0,c.Z)(n))throw new u.Z("childY is required.");let r=2;return i!==2*e&&++r,n!==2*t&&(r-=2),0!=(this._childTileMask&1<{"use strict";i.d(t,{Z:()=>T});var n=i(474421),r=i(360791),o=i(337968),s=i(919382),a=i(406144),c=i(426468),u=i(446938),l=i(253316),h=i(532901),d=i(362017),f=i(583917),p=i(126874),m=i(523501),_=i(569269),Z=i(358198),g=i(786409);const y={};y.DEFAULT_STRUCTURE=Object.freeze({heightScale:1,heightOffset:0,elementsPerHeight:1,stride:1,elementMultiplier:256,isBigEndian:!1});const b=new s.Z,A=new f.Z,w=new s.Z,v=new s.Z;y.computeVertices=function(e){if(!(0,c.Z)(e)||!(0,c.Z)(e.heightmap))throw new u.Z("options.heightmap is required.");if(!(0,c.Z)(e.width)||!(0,c.Z)(e.height))throw new u.Z("options.width and options.height are required.");if(!(0,c.Z)(e.nativeRectangle))throw new u.Z("options.nativeRectangle is required.");if(!(0,c.Z)(e.skirtHeight))throw new u.Z("options.skirtHeight is required.");const t=Math.cos,i=Math.sin,T=Math.sqrt,C=Math.atan,E=Math.exp,x=d.Z.PI_OVER_TWO,S=d.Z.toRadians,O=e.heightmap,I=e.width,D=e.height,P=e.skirtHeight,R=P>0,B=(0,a.Z)(e.isGeographic,!0),M=(0,a.Z)(e.ellipsoid,l.Z.WGS84),L=1/M.maximumRadius,N=m.Z.clone(e.nativeRectangle),F=m.Z.clone(e.rectangle);let k,U,V,z;(0,c.Z)(F)?(k=F.west,U=F.south,V=F.east,z=F.north):B?(k=S(N.west),U=S(N.south),V=S(N.east),z=S(N.north)):(k=N.west*L,U=x-2*C(E(-N.south*L)),V=N.east*L,z=x-2*C(E(-N.north*L)));let H=e.relativeToCenter;const G=(0,c.Z)(H);H=G?H:s.Z.ZERO;const q=(0,a.Z)(e.includeWebMercatorT,!1),j=(0,a.Z)(e.exaggeration,1),W=(0,a.Z)(e.exaggerationRelativeHeight,0),K=1!==j,Y=(0,a.Z)(e.structure,y.DEFAULT_STRUCTURE),X=(0,a.Z)(Y.heightScale,y.DEFAULT_STRUCTURE.heightScale),J=(0,a.Z)(Y.heightOffset,y.DEFAULT_STRUCTURE.heightOffset),Q=(0,a.Z)(Y.elementsPerHeight,y.DEFAULT_STRUCTURE.elementsPerHeight),$=(0,a.Z)(Y.stride,y.DEFAULT_STRUCTURE.stride),ee=(0,a.Z)(Y.elementMultiplier,y.DEFAULT_STRUCTURE.elementMultiplier),te=(0,a.Z)(Y.isBigEndian,y.DEFAULT_STRUCTURE.isBigEndian);let ie=m.Z.computeWidth(N),ne=m.Z.computeHeight(N);const re=ie/(I-1),oe=ne/(D-1);B||(ie*=L,ne*=L);const se=M.radiiSquared,ae=se.x,ce=se.y,ue=se.z;let le=65536,he=-65536;const de=Z.Z.eastNorthUpToFixedFrame(H,M),fe=f.Z.inverseTransformation(de,A);let pe,me;q&&(pe=g.Z.geodeticLatitudeToMercatorAngle(U),me=1/(g.Z.geodeticLatitudeToMercatorAngle(z)-pe));const _e=w;_e.x=Number.POSITIVE_INFINITY,_e.y=Number.POSITIVE_INFINITY,_e.z=Number.POSITIVE_INFINITY;const Ze=v;Ze.x=Number.NEGATIVE_INFINITY,Ze.y=Number.NEGATIVE_INFINITY,Ze.z=Number.NEGATIVE_INFINITY;let ge=Number.POSITIVE_INFINITY;const ye=I*D,be=ye+(P>0?2*I+2*D:0),Ae=new Array(be),we=new Array(be),ve=new Array(be),Te=q?new Array(be):[],Ce=K?new Array(be):[];let Ee=0,xe=D,Se=0,Oe=I;R&&(--Ee,++xe,--Se,++Oe);const Ie=1e-5;for(let e=Ee;e=D&&(n=D-1);let r=N.north-oe*n;r=B?S(r):x-2*C(E(-r*L));let a=(r-U)/(z-U);a=d.Z.clamp(a,0,1);const c=e===Ee,u=e===xe-1;P>0&&(c?r+=Ie*ne:u&&(r-=Ie*ne));const l=t(r),h=i(r),p=ue*h;let m;q&&(m=(g.Z.geodeticLatitudeToMercatorAngle(r)-pe)*me);for(let e=Se;e=I&&(r=I-1);const _=n*(I*$)+r*$;let Z;if(1===Q)Z=O[_];else{let e;if(Z=0,te)for(e=0;e=0;--e)Z=Z*ee+O[_+e]}Z=Z*X+J,he=Math.max(he,Z),le=Math.min(le,Z);let g=N.west+re*r;B?g=S(g):g*=L;let y=(g-k)/(V-k);y=d.Z.clamp(y,0,1);let A=n*I+r;if(P>0){const t=e===Se,i=e===Oe-1,o=c||u||t||i;if((c||u)&&(t||i))continue;o&&(Z-=P,t?(A=ye+(D-n-1),g-=Ie*ie):u?A=ye+D+(I-r-1):i?(A=ye+D+I+n,g+=Ie*ie):c&&(A=ye+D+I+D+r))}const w=l*t(g),v=l*i(g),C=ae*w,E=ce*v,x=1/T(C*w+E*v+p*h),R=C*x,F=E*x,U=p*x,z=new s.Z;z.x=R+w*Z,z.y=F+v*Z,z.z=U+h*Z,f.Z.multiplyByPoint(fe,z,b),s.Z.minimumByComponent(b,_e,_e),s.Z.maximumByComponent(b,Ze,Ze),ge=Math.min(ge,Z),Ae[A]=z,ve[A]=new o.Z(y,a),we[A]=Z,q&&(Te[A]=m),K&&(Ce[A]=M.geodeticSurfaceNormal(z))}}const De=r.Z.fromPoints(Ae);let Pe,Re;(0,c.Z)(F)&&(Pe=p.Z.fromRectangle(F,le,he,M)),G&&(Re=new h.Z(M).computeHorizonCullingPointPossiblyUnderEllipsoid(H,Ae,le));const Be=new n.Z(_e,Ze,H),Me=new _.Z(H,Be,ge,he,de,!1,q,K,j,W),Le=new Float32Array(be*Me.stride);let Ne=0;for(let e=0;e{"use strict";i.d(t,{Z:()=>h});var n=i(406144),r=i(426468),o=i(446938),s=i(362017);const a=s.Z.factorial;function c(e,t,i,n,r,o){let s,a,u,l=0;if(n>0){for(a=0;a{"use strict";i.d(t,{Z:()=>y});var n=i(919382),r=i(114754),o=i(406144),s=i(426468),a=i(446938),c=i(24238),u=i(583917),l=i(54791),h=i(547097);const d=[],f=[],p=[],m=[];function _(e){const t=(e=(0,o.Z)(e,o.Z.EMPTY_OBJECT)).points,i=e.times,n=e.inTangents,r=e.outTangents;if(!((0,s.Z)(t)&&(0,s.Z)(i)&&(0,s.Z)(n)&&(0,s.Z)(r)))throw new a.Z("times, points, inTangents, and outTangents are required.");if(t.length<2)throw new a.Z("points.length must be greater than or equal to 2.");if(i.length!==t.length)throw new a.Z("times.length must be equal to points.length.");if(n.length!==r.length||n.length!==t.length-1)throw new a.Z("inTangents and outTangents must have a length equal to points.length - 1.");this._times=i,this._points=t,this._inTangents=n,this._outTangents=r,this._lastTimeIndex=0}Object.defineProperties(_.prototype,{times:{get:function(){return this._times}},points:{get:function(){return this._points}},inTangents:{get:function(){return this._inTangents}},outTangents:{get:function(){return this._outTangents}}}),_.createC1=function(e){const t=(e=(0,o.Z)(e,o.Z.EMPTY_OBJECT)).times,i=e.points,n=e.tangents;if(!(0,s.Z)(i)||!(0,s.Z)(t)||!(0,s.Z)(n))throw new a.Z("points, times and tangents are required.");if(i.length<2)throw new a.Z("points.length must be greater than or equal to 2.");if(t.length!==i.length||t.length!==n.length)throw new a.Z("times, points and tangents must have the same length.");const r=n.slice(0,n.length-1);return new _({times:t,points:i,inTangents:n.slice(1,n.length),outTangents:r})},_.createNaturalCubic=function(e){const t=(e=(0,o.Z)(e,o.Z.EMPTY_OBJECT)).times,i=e.points;if(!(0,s.Z)(i)||!(0,s.Z)(t))throw new a.Z("points and times are required.");if(i.length<2)throw new a.Z("points.length must be greater than or equal to 2.");if(t.length!==i.length)throw new a.Z("times.length must be equal to points.length.");if(i.length<3)return new c.Z({points:i,times:t});const r=function(e){const t=d,i=p,r=f,o=m;let a;t.length=i.length=e.length-1,r.length=o.length=e.length,t[0]=i[0]=1,r[0]=2;let c=o[0];for((0,s.Z)(c)||(c=o[0]=new n.Z),n.Z.subtract(e[1],e[0],c),n.Z.multiplyByScalar(c,3,c),a=1;a{"use strict";i.d(t,{Z:()=>a});var n=i(357299),r=i(446938);const o={};function s(e,t,i,n){if(0!==n)return;1===i&&(t.x=e-1-t.x,t.y=e-1-t.y);const r=t.x;t.x=t.y,t.y=r}o.encode2D=function(e,t,i){const o=Math.pow(2,e);if(n.Z.typeOf.number("level",e),n.Z.typeOf.number("x",t),n.Z.typeOf.number("y",i),e<1)throw new r.Z("Hilbert level cannot be less than 1.");if(t<0||t>=o||i<0||i>=o)throw new r.Z("Invalid coordinates for given level.");const a={x:t,y:i};let c,u,l,h=BigInt(0);for(l=o/2;l>0;l/=2)c=(a.x&l)>0?1:0,u=(a.y&l)>0?1:0,h+=BigInt((3*c^u)*l*l),s(o,a,c,u);return h},o.decode2D=function(e,t){if(n.Z.typeOf.number("level",e),n.Z.typeOf.bigint("index",t),e<1)throw new r.Z("Hilbert level cannot be less than 1.");if(t=BigInt(Math.pow(4,e)))throw new r.Z("Hilbert index exceeds valid maximum for given level.");const i=Math.pow(2,e),o={x:0,y:0};let a,c,u,l;for(u=1,l=t;u{"use strict";i.d(t,{Z:()=>v});var n=i(426468),r=i(816353),o=i(40080),s=i(362017),a=i(202712);const c={},u=-.0529921,l=-.1059842,h=13.0120009,d=13.3407154,f=.9856003,p=26.4057084,m=13.064993,_=.3287146,Z=1.7484877,g=-.1589763,y=.0036096,b=.1643573,A=12.9590088;let w=new o.Z;c.ComputeMoon=function(e,t){(0,n.Z)(e)||(e=o.Z.now()),w=o.Z.addSeconds(e,32.184,w);const i=o.Z.totalDays(w)-2451545,c=i/a.Z.DAYS_PER_JULIAN_CENTURY,v=(125.045+u*i)*s.Z.RADIANS_PER_DEGREE,T=(250.089+l*i)*s.Z.RADIANS_PER_DEGREE,C=(260.008+h*i)*s.Z.RADIANS_PER_DEGREE,E=(176.625+d*i)*s.Z.RADIANS_PER_DEGREE,x=(357.529+f*i)*s.Z.RADIANS_PER_DEGREE,S=(311.589+p*i)*s.Z.RADIANS_PER_DEGREE,O=(134.963+m*i)*s.Z.RADIANS_PER_DEGREE,I=(276.617+_*i)*s.Z.RADIANS_PER_DEGREE,D=(34.226+Z*i)*s.Z.RADIANS_PER_DEGREE,P=(15.134+g*i)*s.Z.RADIANS_PER_DEGREE,R=(119.743+y*i)*s.Z.RADIANS_PER_DEGREE,B=(239.961+b*i)*s.Z.RADIANS_PER_DEGREE,M=(25.053+A*i)*s.Z.RADIANS_PER_DEGREE,L=Math.sin(v),N=Math.sin(T),F=Math.sin(C),k=Math.sin(E),U=Math.sin(x),V=Math.sin(S),z=Math.sin(O),H=Math.sin(I),G=Math.sin(D),q=Math.sin(P),j=Math.sin(R),W=Math.sin(B),K=Math.sin(M),Y=Math.cos(v),X=Math.cos(T),J=Math.cos(C),Q=Math.cos(E),$=Math.cos(x),ee=Math.cos(S),te=Math.cos(O),ie=Math.cos(I),ne=Math.cos(D),re=Math.cos(P),oe=Math.cos(R),se=Math.cos(B),ae=Math.cos(M),ce=(269.9949+.0031*c-3.8787*L-.1204*N+.07*F-.0172*k+.0072*V-.0052*q+.0043*K)*s.Z.RADIANS_PER_DEGREE,ue=(66.5392+.013*c+1.5419*Y+.0239*X-.0278*J+.0068*Q-.0029*ee+9e-4*te+8e-4*re-9e-4*ae)*s.Z.RADIANS_PER_DEGREE,le=(38.3213+13.17635815*i-14e-13*i*i+3.561*L+.1208*N-.0642*F+.0158*k+.0252*U-.0066*V-.0047*z-.0046*H+.0028*G+.0052*q+.004*j+.0019*W-.0044*K)*s.Z.RADIANS_PER_DEGREE,he=(13.17635815-2*i*14e-13+3.561*Y*u+.1208*X*l-.0642*J*h+.0158*Q*d+.0252*$*f-.0066*ee*p-.0047*te*m-.0046*ie*_+.0028*ne*Z+.0052*re*g+.004*oe*y+.0019*se*b-.0044*ae*A)/86400*s.Z.RADIANS_PER_DEGREE;return(0,n.Z)(t)||(t=new r.Z),t.rightAscension=ce,t.declination=ue,t.rotation=le,t.rotationRate=he,t};const v=c},777365:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});var n=i(527758),r=i(913216),o=i(406144),s=i(426468),a=i(996563),c=i(40080),u=i(795788),l=i(841501);function h(e){e=(0,o.Z)(e,o.Z.EMPTY_OBJECT),this._xysFileUrlTemplate=u.Z.createIfNeeded(e.xysFileUrlTemplate),this._interpolationOrder=(0,o.Z)(e.interpolationOrder,9),this._sampleZeroJulianEphemerisDate=(0,o.Z)(e.sampleZeroJulianEphemerisDate,2442396.5),this._sampleZeroDateTT=new c.Z(this._sampleZeroJulianEphemerisDate,0,l.Z.TAI),this._stepSizeDays=(0,o.Z)(e.stepSizeDays,1),this._samplesPerXysFile=(0,o.Z)(e.samplesPerXysFile,1e3),this._totalSamples=(0,o.Z)(e.totalSamples,27426),this._samples=new Array(3*this._totalSamples),this._chunkDownloadsInProgress=[];const t=this._interpolationOrder,i=this._denominators=new Array(t+1),n=this._xTable=new Array(t+1),r=Math.pow(this._stepSizeDays,t);for(let e=0;e<=t;++e){i[e]=r,n[e]=e*this._stepSizeDays;for(let n=0;n<=t;++n)n!==e&&(i[e]*=e-n);i[e]=1/i[e]}this._work=new Array(t+1),this._coef=new Array(t+1)}const d=new c.Z(0,0,l.Z.TAI);function f(e,t,i){const n=d;return n.dayNumber=t,n.secondsOfDay=i,c.Z.daysDifference(n,e._sampleZeroDateTT)}function p(e,t){if(e._chunkDownloadsInProgress[t])return e._chunkDownloadsInProgress[t];const i=n.Z.defer();let o;e._chunkDownloadsInProgress[t]=i;const a=e._xysFileUrlTemplate;return o=(0,s.Z)(a)?a.getDerivedResource({templateValues:{0:t}}):new u.Z({url:(0,r.Z)("Assets/IAU2006_XYS/IAU2006_XYS_"+t+".json")}),(0,n.Z)(o.fetchJson(),(function(n){e._chunkDownloadsInProgress[t]=!1;const r=e._samples,o=n.samples,s=t*e._samplesPerXysFile*3;for(let e=0,t=o.length;e=this._totalSamples&&(c=this._totalSamples-1);const u=a/this._samplesPerXysFile|0,l=c/this._samplesPerXysFile|0,h=[];for(let e=u;e<=l;++e)h.push(p(this,e));return n.Z.all(h)},h.prototype.computeXysRadians=function(e,t,i){const n=f(this,e,t);if(n<0)return;const r=n/this._stepSizeDays|0;if(r>=this._totalSamples)return;const o=this._interpolationOrder;let c=r-(o/2|0);c<0&&(c=0);let u=c+o;u>=this._totalSamples&&(u=this._totalSamples-1,c=u-o,c<0&&(c=0));let l=!1;const h=this._samples;if((0,s.Z)(h[3*c])||(p(this,c/this._samplesPerXysFile|0),l=!0),(0,s.Z)(h[3*u])||(p(this,u/this._samplesPerXysFile|0),l=!0),l)return;(0,s.Z)(i)?(i.x=0,i.y=0,i.s=0):i=new a.Z(0,0,0);const d=n-c*this._stepSizeDays,m=this._work,_=this._denominators,Z=this._coef,g=this._xTable;let y,b;for(y=0;y<=o;++y)m[y]=d-g[y];for(y=0;y<=o;++y){for(Z[y]=1,b=0;b<=o;++b)b!==y&&(Z[y]*=m[b]);Z[y]*=_[y];let e=3*(c+y);i.x+=Z[y]*h[e++],i.y+=Z[y]*h[e++],i.s+=Z[y]*h[e]}return i};const m=h},581223:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_});var n=i(919382),r=i(426468),o=i(518605),s=i(40080),a=i(362017),c=i(165373),u=i(129782);function l(e){(0,r.Z)(e)&&"function"==typeof e||(e=o.Z.ComputeMoon),this._computeFunction=e}const h=new n.Z,d=new n.Z,f=new n.Z,p=new c.Z,m=new u.Z;l.prototype.evaluate=function(e,t){(0,r.Z)(e)||(e=s.Z.now());const i=this._computeFunction(e),o=function(e,t,i){const o=h;o.x=Math.cos(e+a.Z.PI_OVER_TWO),o.y=Math.sin(e+a.Z.PI_OVER_TWO),o.z=0;const s=Math.cos(t),u=f;u.x=s*Math.cos(e),u.y=s*Math.sin(e),u.z=Math.sin(t);const l=n.Z.cross(u,o,d);return(0,r.Z)(i)||(i=new c.Z),i[0]=o.x,i[1]=l.x,i[2]=u.x,i[3]=o.y,i[4]=l.y,i[5]=u.y,i[6]=o.z,i[7]=l.z,i[8]=u.z,i}(i.rightAscension,i.declination,t),l=a.Z.zeroToTwoPi(i.rotation),_=u.Z.fromAxisAngle(n.Z.UNIT_Z,l,m),Z=c.Z.fromQuaternion(u.Z.conjugate(_,_),p);return c.Z.multiply(Z,o,o)};const _=l},546135:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(426468),r=i(446938),o=i(362017),s=i(619287);const a={UNSIGNED_BYTE:s.Z.UNSIGNED_BYTE,UNSIGNED_SHORT:s.Z.UNSIGNED_SHORT,UNSIGNED_INT:s.Z.UNSIGNED_INT,getSizeInBytes:function(e){switch(e){case a.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case a.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case a.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT}throw new r.Z("indexDatatype is required and must be a valid IndexDatatype constant.")},fromSizeInBytes:function(e){switch(e){case 2:return a.UNSIGNED_SHORT;case 4:return a.UNSIGNED_INT;case 1:return a.UNSIGNED_BYTE;default:throw new r.Z("Size in bytes cannot be mapped to an IndexDatatype")}},validate:function(e){return(0,n.Z)(e)&&(e===a.UNSIGNED_BYTE||e===a.UNSIGNED_SHORT||e===a.UNSIGNED_INT)},createTypedArray:function(e,t){if(!(0,n.Z)(e))throw new r.Z("numberOfVertices is required.");return e>=o.Z.SIXTY_FOUR_KILOBYTES?new Uint32Array(t):new Uint16Array(t)},createTypedArrayFromArrayBuffer:function(e,t,i,s){if(!(0,n.Z)(e))throw new r.Z("numberOfVertices is required.");if(!(0,n.Z)(t))throw new r.Z("sourceArray is required.");if(!(0,n.Z)(i))throw new r.Z("byteOffset is required.");return e>=o.Z.SIXTY_FOUR_KILOBYTES?new Uint32Array(t,i,s):new Uint16Array(t,i,s)}},c=Object.freeze(a)},739719:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(446938);const r={type:void 0};r.getRequiredDataPoints=n.Z.throwInstantiationError,r.interpolateOrderZero=n.Z.throwInstantiationError,r.interpolate=n.Z.throwInstantiationError;const o=r},360382:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({OUTSIDE:-1,INTERSECTING:0,INSIDE:1})},66172:(e,t,i)=>{"use strict";i.d(t,{Z:()=>H});var n=i(919382),r=i(698907),o=i(406144),s=i(426468),a=i(446938),c=i(62001),u=i(362017),l=i(165373),h=i(935963),d=i(96994),f=i(24401);const p={rayPlane:function(e,t,i){if(!(0,s.Z)(e))throw new a.Z("ray is required.");if(!(0,s.Z)(t))throw new a.Z("plane is required.");(0,s.Z)(i)||(i=new n.Z);const r=e.origin,o=e.direction,c=t.normal,l=n.Z.dot(c,o);if(Math.abs(l)b)return;if(w=n.Z.cross(A,d,y),T=n.Z.dot(h,w),T<0||v+T>b)return;C=n.Z.dot(f,w)/b}else{if(Math.abs(b)1)return;if(w=n.Z.cross(A,d,y),T=n.Z.dot(h,w)*e,T<0||v+T>1)return;C=n.Z.dot(f,w)*e}return C},p.rayTriangle=function(e,t,i,r,o,a){const c=p.rayTriangleParametric(e,t,i,r,o);if((0,s.Z)(c)&&!(c<0))return(0,s.Z)(a)||(a=new n.Z),n.Z.multiplyByScalar(e.direction,c,a),n.Z.add(e.origin,a,a)};const b=new f.Z;p.lineSegmentTriangle=function(e,t,i,r,o,c,u){if(!(0,s.Z)(e))throw new a.Z("v0 is required.");if(!(0,s.Z)(t))throw new a.Z("v1 is required.");if(!(0,s.Z)(i))throw new a.Z("p0 is required.");if(!(0,s.Z)(r))throw new a.Z("p1 is required.");if(!(0,s.Z)(o))throw new a.Z("p2 is required.");const l=b;n.Z.clone(e,l.origin),n.Z.subtract(t,e,l.direction),n.Z.normalize(l.direction,l.direction);const h=p.rayTriangleParametric(l,i,r,o,c);if(!(!(0,s.Z)(h)||h<0||h>n.Z.distance(e,t)))return(0,s.Z)(u)||(u=new n.Z),n.Z.multiplyByScalar(l.direction,h,u),n.Z.add(l.origin,u,u)};const A={root0:0,root1:0};function w(e,t,i){(0,s.Z)(i)||(i=new c.Z);const r=e.origin,o=e.direction,a=t.center,u=t.radius*t.radius,l=n.Z.subtract(r,a,Z),h=function(e,t,i,n){const r=t*t-4*e*i;if(r<0)return;if(r>0){const i=1/(2*e),o=Math.sqrt(r),s=(-t+o)*i,a=(-t-o)*i;return su))return r.start=Math.max(r.start,0),r.stop=Math.min(r.stop,u),r};const T=new n.Z,C=new n.Z;function E(e,t,i){const n=e+t;return u.Z.sign(e)!==u.Z.sign(t)&&Math.abs(n/Math.max(Math.abs(e),Math.abs(t)))1){if(l>=0)return;const e=l*l;if(h=u-1,d=n.Z.magnitudeSquared(o),f=d*h,ef){p=l*l-f,m=-l+Math.sqrt(p);const e=m/d,t=h/m;return e=0)return i}const o=(0,s.Z)(this.rayEllipsoid(e,t)),c=t.transformPositionToScaledSpace(r,x),f=n.Z.normalize(c,c),p=n.Z.mostOrthogonalAxis(c,I),m=n.Z.normalize(n.Z.cross(p,f,S),S),_=n.Z.normalize(n.Z.cross(f,m,O),O),Z=P;Z[0]=f.x,Z[1]=f.y,Z[2]=f.z,Z[3]=m.x,Z[4]=m.y,Z[5]=m.z,Z[6]=_.x,Z[7]=_.y,Z[8]=_.z;const g=l.Z.transpose(Z,R),y=l.Z.fromScale(t.radii,B),b=l.Z.fromScale(t.oneOverRadii,M),A=L;A[0]=0,A[1]=-r.z,A[2]=r.y,A[3]=r.z,A[4]=0,A[5]=-r.x,A[6]=-r.y,A[7]=r.x,A[8]=0;const w=l.Z.multiply(l.Z.multiply(g,b,N),A,N),v=l.Z.multiply(l.Z.multiply(w,y,F),Z,F),T=l.Z.multiplyByVector(w,i,D),C=function(e,t,i,r,o){const s=1*(e[l.Z.COLUMN1ROW1]-e[l.Z.COLUMN2ROW2]),a=1*(0*E(e[l.Z.COLUMN1ROW0],e[l.Z.COLUMN0ROW1],u.Z.EPSILON15)+t.y),c=0*e[l.Z.COLUMN0ROW0]+1*e[l.Z.COLUMN2ROW2]+0*t.x+0,f=1*E(e[l.Z.COLUMN2ROW1],e[l.Z.COLUMN1ROW2],u.Z.EPSILON15),p=1*(0*E(e[l.Z.COLUMN2ROW0],e[l.Z.COLUMN0ROW2])+t.z);let m;const _=[];if(0===p&&0===f){if(m=h.Z.computeRealRoots(s,a,c),0===m.length)return _;const e=m[0],t=Math.sqrt(Math.max(1-e*e,0));if(_.push(new n.Z(0,1*e,1*-t)),_.push(new n.Z(0,1*e,1*t)),2===m.length){const e=m[1],t=Math.sqrt(Math.max(1-e*e,0));_.push(new n.Z(0,1*e,1*-t)),_.push(new n.Z(0,1*e,1*t))}return _}const Z=p*p,g=f*f,y=p*f,b=s*s+g,A=2*(a*s+y),w=2*c*s+a*a-g+Z,v=2*(c*a-y),T=c*c-Z;if(0===b&&0===A&&0===w&&0===v)return _;m=d.Z.computeRealRoots(b,A,w,v,T);const C=m.length;if(0===C)return _;for(let e=0;e0?_.push(new n.Z(0,1*t,1*-o)):0!==o?(_.push(new n.Z(0,1*t,1*-o)),_.push(new n.Z(0,1*t,1*o)),++e):_.push(new n.Z(0,1*t,1*o))}return _}(v,n.Z.negate(T,x));let z,H;const G=C.length;if(G>0){let e=n.Z.clone(n.Z.ZERO,U),s=Number.NEGATIVE_INFINITY;for(let t=0;ts&&(s=a,e=n.Z.clone(z,e))}const a=t.cartesianToCartographic(e,V);return s=u.Z.clamp(s,0,1),H=n.Z.magnitude(n.Z.subtract(e,i,I))*Math.sqrt(1-s*s),H=o?-H:H,a.height=H,t.cartographicToCartesian(a,new n.Z)}};const z=new n.Z;p.lineSegmentPlane=function(e,t,i,r){if(!(0,s.Z)(e))throw new a.Z("endPoint0 is required.");if(!(0,s.Z)(t))throw new a.Z("endPoint1 is required.");if(!(0,s.Z)(i))throw new a.Z("plane is required.");(0,s.Z)(r)||(r=new n.Z);const o=n.Z.subtract(t,e,z),c=i.normal,l=n.Z.dot(c,o);if(Math.abs(l)1?void 0:(n.Z.multiplyByScalar(o,d,r),n.Z.add(e,r,r),r)},p.trianglePlaneIntersection=function(e,t,i,r){if(!((0,s.Z)(e)&&(0,s.Z)(t)&&(0,s.Z)(i)&&(0,s.Z)(r)))throw new a.Z("p0, p1, p2, and plane are required.");const o=r.normal,c=r.distance,u=n.Z.dot(o,e)+c<0,l=n.Z.dot(o,t)+c<0,h=n.Z.dot(o,i)+c<0;let d,f,m=0;if(m+=u?1:0,m+=l?1:0,m+=h?1:0,1!==m&&2!==m||(d=new n.Z,f=new n.Z),1===m){if(u)return p.lineSegmentPlane(e,t,r,d),p.lineSegmentPlane(e,i,r,f),{positions:[e,t,i,d,f],indices:[0,3,4,1,2,4,1,4,3]};if(l)return p.lineSegmentPlane(t,i,r,d),p.lineSegmentPlane(t,e,r,f),{positions:[e,t,i,d,f],indices:[1,3,4,2,0,4,2,4,3]};if(h)return p.lineSegmentPlane(i,e,r,d),p.lineSegmentPlane(i,t,r,f),{positions:[e,t,i,d,f],indices:[2,3,4,0,1,4,0,4,3]}}else if(2===m){if(!u)return p.lineSegmentPlane(t,e,r,d),p.lineSegmentPlane(i,e,r,f),{positions:[e,t,i,d,f],indices:[1,2,4,1,4,3,0,3,4]};if(!l)return p.lineSegmentPlane(i,t,r,d),p.lineSegmentPlane(e,t,r,f),{positions:[e,t,i,d,f],indices:[2,0,4,2,4,3,1,3,4]};if(!h)return p.lineSegmentPlane(e,i,r,d),p.lineSegmentPlane(t,i,r,f),{positions:[e,t,i,d,f],indices:[0,1,4,0,4,3,2,3,4]}}};const H=p},917261:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(337968),r=i(919382),o=i(357299),s=i(426468),a=i(446938);const c={clipTriangleAtAxisAlignedThreshold:function(e,t,i,n,r,o){if(!(0,s.Z)(e))throw new a.Z("threshold is required.");if(!(0,s.Z)(t))throw new a.Z("keepAbove is required.");if(!(0,s.Z)(i))throw new a.Z("u0 is required.");if(!(0,s.Z)(n))throw new a.Z("u1 is required.");if(!(0,s.Z)(r))throw new a.Z("u2 is required.");let c,u,l;(0,s.Z)(o)?o.length=0:o=[],t?(c=ie,u=n>e,l=r>e);const h=c+u+l;let d,f,p,m,_,Z;return 1===h?c?(d=(e-i)/(n-i),f=(e-i)/(r-i),o.push(1),o.push(2),1!==f&&(o.push(-1),o.push(0),o.push(2),o.push(f)),1!==d&&(o.push(-1),o.push(0),o.push(1),o.push(d))):u?(p=(e-n)/(r-n),m=(e-n)/(i-n),o.push(2),o.push(0),1!==m&&(o.push(-1),o.push(1),o.push(0),o.push(m)),1!==p&&(o.push(-1),o.push(1),o.push(2),o.push(p))):l&&(_=(e-r)/(i-r),Z=(e-r)/(n-r),o.push(0),o.push(1),1!==Z&&(o.push(-1),o.push(2),o.push(1),o.push(Z)),1!==_&&(o.push(-1),o.push(2),o.push(0),o.push(_))):2===h?c||i===e?u||n===e?l||r===e||(f=(e-i)/(r-i),p=(e-n)/(r-n),o.push(2),o.push(-1),o.push(0),o.push(2),o.push(f),o.push(-1),o.push(1),o.push(2),o.push(p)):(Z=(e-r)/(n-r),d=(e-i)/(n-i),o.push(1),o.push(-1),o.push(2),o.push(1),o.push(Z),o.push(-1),o.push(0),o.push(1),o.push(d)):(m=(e-n)/(i-n),_=(e-r)/(i-r),o.push(0),o.push(-1),o.push(1),o.push(0),o.push(m),o.push(-1),o.push(2),o.push(0),o.push(_)):3!==h&&(o.push(0),o.push(1),o.push(2)),o},computeBarycentricCoordinates:function(e,t,i,n,o,c,u,l,h){if(!(0,s.Z)(e))throw new a.Z("x is required.");if(!(0,s.Z)(t))throw new a.Z("y is required.");if(!(0,s.Z)(i))throw new a.Z("x1 is required.");if(!(0,s.Z)(n))throw new a.Z("y1 is required.");if(!(0,s.Z)(o))throw new a.Z("x2 is required.");if(!(0,s.Z)(c))throw new a.Z("y2 is required.");if(!(0,s.Z)(u))throw new a.Z("x3 is required.");if(!(0,s.Z)(l))throw new a.Z("y3 is required.");const d=i-u,f=u-o,p=c-l,m=n-l,_=1/(p*d+f*m),Z=t-l,g=e-u,y=(p*g+f*Z)*_,b=(-m*g+d*Z)*_,A=1-y-b;return(0,s.Z)(h)?(h.x=y,h.y=b,h.z=A,h):new r.Z(y,b,A)},computeLineSegmentLineSegmentIntersection:function(e,t,i,r,a,c,u,l,h){o.Z.typeOf.number("x00",e),o.Z.typeOf.number("y00",t),o.Z.typeOf.number("x01",i),o.Z.typeOf.number("y01",r),o.Z.typeOf.number("x10",a),o.Z.typeOf.number("y10",c),o.Z.typeOf.number("x11",u),o.Z.typeOf.number("y11",l);const d=(l-c)*(i-e)-(u-a)*(r-t);if(0===d)return;const f=((u-a)*(t-c)-(l-c)*(e-a))/d,p=((i-e)*(t-c)-(r-t)*(e-a))/d;return f>=0&&f<=1&&p>=0&&p<=1?((0,s.Z)(h)||(h=new n.Z),h.x=e+f*(i-e),h.y=t+f*(r-t),h):void 0}}},62001:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(406144);const r=function(e,t){this.start=(0,n.Z)(e,0),this.stop=(0,n.Z)(t,0)}},496899:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(846748),r=i(426468),o=i(795788);let s;const a="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI2OGE2MjZlOC1mMzhiLTRkZjQtOWEwZi1jZTE0MWY0YzhlMTAiLCJpZCI6MjU5LCJpYXQiOjE2NDM3MjU1NzZ9.ptZ5tVXvMmuWRC0WhjtYTg-17nQh14fgxBsx0HJiVXQ",c={};c.defaultAccessToken=a,c.defaultServer=new o.Z({url:"https://api.cesium.com/"}),c.getDefaultTokenCredit=function(e){if(e===a){if(!(0,r.Z)(s)){const e=' This application is using Cesium\'s default ion access token. Please assign Cesium.Ion.defaultAccessToken with an access token from your ion account before making any Cesium API calls. You can sign up for a free ion account at https://cesium.com.';s=new n.Z(e,!0)}return s}};const u=c},634566:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(357299),r=i(846748),o=i(406144),s=i(426468),a=i(496899),c=i(489935),u=i(795788);function l(e){e=(0,o.Z)(e,o.Z.EMPTY_OBJECT),n.Z.typeOf.object("options.scene",e.scene);const t=(0,o.Z)(e.accessToken,a.Z.defaultAccessToken),i=u.Z.createIfNeeded((0,o.Z)(e.server,a.Z.defaultServer));i.appendForwardSlash();const l=a.Z.getDefaultTokenCredit(t);(0,s.Z)(l)&&e.scene.frameState.creditDisplay.addDefaultCredit(r.Z.clone(l));const h=i.getDerivedResource({url:"v1/geocode"});(0,s.Z)(t)&&h.appendQueryParameters({access_token:t}),this._accessToken=t,this._server=i,this._pelias=new c.Z(h)}l.prototype.geocode=function(e,t){return this._pelias.geocode(e,t)};const h=l},822302:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(111840),r=i(527758),o=i(357299),s=i(846748),a=i(406144),c=i(426468),u=i(496899),l=i(795788),h=i(50128);function d(e,t){let i;o.Z.defined("endpoint",e),o.Z.defined("endpointResource",t);const r=e.externalType,s=(0,c.Z)(r);if(s){if("3DTILES"!==r&&"STK_TERRAIN_SERVER"!==r)throw new h.Z("Ion.createResource does not support external imagery assets; use IonImageryProvider instead.");i={url:e.options.url}}else i={url:e.url,retryAttempts:1,retryCallback:f};l.Z.call(this,i),this._ionEndpoint=e,this._ionEndpointDomain=s?void 0:new n.Z(e.url).authority(),this._ionEndpointResource=t,this._ionRoot=void 0,this._pendingPromise=void 0,this._credits=void 0,this._isExternal=s}function f(e,t){const i=(0,a.Z)(e._ionRoot,e),n=i._ionEndpointResource,o="undefined"!=typeof Image;return(0,c.Z)(t)&&(401===t.statusCode||o&&t.target instanceof Image)?((0,c.Z)(i._pendingPromise)||(i._pendingPromise=n.fetchJson().then((function(e){return i._ionEndpoint=e,e})).always((function(e){return i._pendingPromise=void 0,e}))),i._pendingPromise.then((function(t){return e._ionEndpoint=t,!0}))):r.Z.resolve(!1)}(0,c.Z)(Object.create)&&(d.prototype=Object.create(l.Z.prototype),d.prototype.constructor=d),d.fromAssetId=function(e,t){const i=d._createEndpointResource(e,t);return i.fetchJson().then((function(e){return new d(e,i)}))},Object.defineProperties(d.prototype,{credits:{get:function(){return(0,c.Z)(this._ionRoot)?this._ionRoot.credits:((0,c.Z)(this._credits)||(this._credits=d.getCreditsFromEndpoint(this._ionEndpoint,this._ionEndpointResource)),this._credits)}}}),d.getCreditsFromEndpoint=function(e,t){const i=e.attributions.map(s.Z.getIonCredit),n=u.Z.getDefaultTokenCredit(t.queryParameters.access_token);return(0,c.Z)(n)&&i.push(s.Z.clone(n)),i},d.prototype.clone=function(e){const t=(0,a.Z)(this._ionRoot,this);return(0,c.Z)(e)||(e=new d(t._ionEndpoint,t._ionEndpointResource)),(e=l.Z.prototype.clone.call(this,e))._ionRoot=t,e._isExternal=this._isExternal,e},d.prototype.fetchImage=function(e){if(!this._isExternal){const t=e;e={preferBlob:!0},(0,c.Z)(t)&&(e.flipY=t.flipY,e.preferImageBitmap=t.preferImageBitmap)}return l.Z.prototype.fetchImage.call(this,e)},d.prototype._makeRequest=function(e){return this._isExternal||new n.Z(this.url).authority()!==this._ionEndpointDomain||((0,c.Z)(e.headers)||(e.headers={}),e.headers.Authorization="Bearer "+this._ionEndpoint.accessToken),l.Z.prototype._makeRequest.call(this,e)},d._createEndpointResource=function(e,t){o.Z.defined("assetId",e),t=(0,a.Z)(t,a.Z.EMPTY_OBJECT);let i=(0,a.Z)(t.server,u.Z.defaultServer);const n=(0,a.Z)(t.accessToken,u.Z.defaultAccessToken);i=l.Z.createIfNeeded(i);const r={url:"v1/assets/"+e+"/endpoint"};return(0,c.Z)(n)&&(r.queryParameters={access_token:n}),i.getDerivedResource(r)};const p=d},29699:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(40080),r=i(446680);const o=Object.freeze(n.Z.fromIso8601("0000-01-01T00:00:00Z")),s=Object.freeze(n.Z.fromIso8601("9999-12-31T24:00:00Z")),a={MINIMUM_VALUE:o,MAXIMUM_VALUE:s,MAXIMUM_INTERVAL:Object.freeze(new r.Z({start:o,stop:s}))}},40080:(e,t,i)=>{"use strict";i.d(t,{Z:()=>P});var n=i(693465),r=i(406144),o=i(426468),s=i(446938),a=i(834033),c=i(766898),u=i(611323),l=i(202712),h=i(841501);const d=new a.Z,f=[31,28,31,30,31,30,31,31,30,31,30,31];function p(e,t){return I.compare(e.julianDate,t.julianDate)}const m=new u.Z;function _(e){m.julianDate=e;const t=I.leapSeconds;let i=(0,n.Z)(t,m,p);i<0&&(i=~i),i>=t.length&&(i=t.length-1);let r=t[i].offset;i>0&&I.secondsDifference(t[i].julianDate,e)>r&&(i--,r=t[i].offset),I.addSeconds(e,r,e)}function Z(e,t){m.julianDate=e;const i=I.leapSeconds;let r=(0,n.Z)(i,m,p);if(r<0&&(r=~r),0===r)return I.addSeconds(e,-i[0].offset,t);if(r>=i.length)return I.addSeconds(e,-i[r-1].offset,t);const o=I.secondsDifference(i[r].julianDate,e);return 0===o?I.addSeconds(e,-i[r].offset,t):o<=1?void 0:I.addSeconds(e,-i[--r].offset,t)}function g(e,t,i){const n=t/l.Z.SECONDS_PER_DAY|0;return e+=n,(t-=l.Z.SECONDS_PER_DAY*n)<0&&(e--,t+=l.Z.SECONDS_PER_DAY),i.dayNumber=e,i.secondsOfDay=t,i}function y(e,t,i,n,r,o,s){const a=(t-14)/12|0,c=e+4800+a;let u=(1461*c/4|0)+(367*(t-2-12*a)/12|0)-(3*((c+100)/100|0)/4|0)+i-32075;(n-=12)<0&&(n+=24);const h=o+(n*l.Z.SECONDS_PER_HOUR+r*l.Z.SECONDS_PER_MINUTE+s*l.Z.SECONDS_PER_MILLISECOND);return h>=43200&&(u-=1),[u,h]}const b=/^(\d{4})$/,A=/^(\d{4})-(\d{2})$/,w=/^(\d{4})-?(\d{3})$/,v=/^(\d{4})-?W(\d{2})-?(\d{1})?$/,T=/^(\d{4})-?(\d{2})-?(\d{2})$/,C=/([Z+\-])?(\d{2})?:?(\d{2})?$/,E=/^(\d{2})(\.\d+)?/.source+C.source,x=/^(\d{2}):?(\d{2})(\.\d+)?/.source+C.source,S=/^(\d{2}):?(\d{2}):?(\d{2})(\.\d+)?/.source+C.source,O="Invalid ISO 8601 date.";function I(e,t,i){this.dayNumber=void 0,this.secondsOfDay=void 0,e=(0,r.Z)(e,0),t=(0,r.Z)(t,0),i=(0,r.Z)(i,h.Z.UTC);const n=0|e;g(n,t+=(e-n)*l.Z.SECONDS_PER_DAY,this),i===h.Z.UTC&&_(this)}I.fromGregorianDate=function(e,t){if(!(e instanceof a.Z))throw new s.Z("date must be a valid GregorianDate.");const i=y(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond);return(0,o.Z)(t)?(g(i[0],i[1],t),_(t),t):new I(i[0],i[1],h.Z.UTC)},I.fromDate=function(e,t){if(!(e instanceof Date)||isNaN(e.getTime()))throw new s.Z("date must be a valid JavaScript Date.");const i=y(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds());return(0,o.Z)(t)?(g(i[0],i[1],t),_(t),t):new I(i[0],i[1],h.Z.UTC)},I.fromIso8601=function(e,t){if("string"!=typeof e)throw new s.Z(O);let i,n=(e=e.replace(",",".")).split("T"),r=1,a=1,u=0,l=0,d=0,p=0;const m=n[0],Z=n[1];let C,D,P,R;if(!(0,o.Z)(m))throw new s.Z(O);if(n=m.match(T),null!==n){if(P=m.split("-").length-1,P>0&&2!==P)throw new s.Z(O);i=+n[1],r=+n[2],a=+n[3]}else if(n=m.match(A),null!==n)i=+n[1],r=+n[2];else if(n=m.match(b),null!==n)i=+n[1];else{let e;if(n=m.match(w),null!==n){if(i=+n[1],e=+n[2],D=(0,c.Z)(i),e<1||D&&e>366||!D&&e>365)throw new s.Z(O)}else{if(n=m.match(v),null===n)throw new s.Z(O);{i=+n[1];const t=+n[2],r=+n[3]||0;if(P=m.split("-").length-1,P>0&&(!(0,o.Z)(n[3])&&1!==P||(0,o.Z)(n[3])&&2!==P))throw new s.Z(O);e=7*t+r-new Date(Date.UTC(i,0,4)).getUTCDay()-3}}C=new Date(Date.UTC(i,0,1)),C.setUTCDate(e),r=C.getUTCMonth()+1,a=C.getUTCDate()}if(D=(0,c.Z)(i),r<1||r>12||a<1||(2!==r||!D)&&a>f[r-1]||D&&2===r&&a>29)throw new s.Z(O);if((0,o.Z)(Z)){if(n=Z.match(S),null!==n){if(P=Z.split(":").length-1,P>0&&2!==P&&3!==P)throw new s.Z(O);u=+n[1],l=+n[2],d=+n[3],p=1e3*+(n[4]||0),R=5}else if(n=Z.match(x),null!==n){if(P=Z.split(":").length-1,P>2)throw new s.Z(O);u=+n[1],l=+n[2],d=60*+(n[3]||0),R=4}else{if(n=Z.match(E),null===n)throw new s.Z(O);u=+n[1],l=60*+(n[2]||0),R=3}if(l>=60||d>=61||u>24||24===u&&(l>0||d>0||p>0))throw new s.Z(O);const e=n[R],t=+n[R+1],o=+(n[R+2]||0);switch(e){case"+":u-=t,l-=o;break;case"-":u+=t,l+=o;break;case"Z":break;default:l+=new Date(Date.UTC(i,r-1,a,u,l)).getTimezoneOffset()}}const B=60===d;for(B&&d--;l>=60;)l-=60,u++;for(;u>=24;)u-=24,a++;for(C=D&&2===r?29:f[r-1];a>C;)a-=C,r++,r>12&&(r-=12,i++),C=D&&2===r?29:f[r-1];for(;l<0;)l+=60,u--;for(;u<0;)u+=24,a--;for(;a<1;)r--,r<1&&(r+=12,i--),C=D&&2===r?29:f[r-1],a+=C;const M=y(i,r,a,u,l,d,p);return(0,o.Z)(t)?(g(M[0],M[1],t),_(t)):t=new I(M[0],M[1],h.Z.UTC),B&&I.addSeconds(t,1,t),t},I.now=function(e){return I.fromDate(new Date,e)};const D=new I(0,0,h.Z.TAI);I.toGregorianDate=function(e,t){if(!(0,o.Z)(e))throw new s.Z("julianDate is required.");let i=!1,n=Z(e,D);(0,o.Z)(n)||(I.addSeconds(e,-1,D),n=Z(D,D),i=!0);let r=n.dayNumber;const c=n.secondsOfDay;c>=43200&&(r+=1);let u=r+68569|0;const h=4*u/146097|0;u=u-((146097*h+3)/4|0)|0;const d=4e3*(u+1)/1461001|0;u=u-(1461*d/4|0)+31|0;const f=80*u/2447|0,p=u-(2447*f/80|0)|0;u=f/11|0;const m=f+2-12*u|0,_=100*(h-49)+d+u|0;let g=c/l.Z.SECONDS_PER_HOUR|0,y=c-g*l.Z.SECONDS_PER_HOUR;const b=y/l.Z.SECONDS_PER_MINUTE|0;y-=b*l.Z.SECONDS_PER_MINUTE;let A=0|y;const w=(y-A)/l.Z.SECONDS_PER_MILLISECOND;return g+=12,g>23&&(g-=24),i&&(A+=1),(0,o.Z)(t)?(t.year=_,t.month=m,t.day=p,t.hour=g,t.minute=b,t.second=A,t.millisecond=w,t.isLeapSecond=i,t):new a.Z(_,m,p,g,b,A,w,i)},I.toDate=function(e){if(!(0,o.Z)(e))throw new s.Z("julianDate is required.");const t=I.toGregorianDate(e,d);let i=t.second;return t.isLeapSecond&&(i-=1),new Date(Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,i,t.millisecond))},I.toIso8601=function(e,t){if(!(0,o.Z)(e))throw new s.Z("julianDate is required.");const i=I.toGregorianDate(e,d);let n=i.year,r=i.month,a=i.day,c=i.hour;const u=i.minute,l=i.second,h=i.millisecond;let f;return 1e4===n&&1===r&&1===a&&0===c&&0===u&&0===l&&0===h&&(n=9999,r=12,a=31,c=24),(0,o.Z)(t)||0===h?(0,o.Z)(t)&&0!==t?(f=(.01*h).toFixed(t).replace(".","").slice(0,t),n.toString().padStart(4,"0")+"-"+r.toString().padStart(2,"0")+"-"+a.toString().padStart(2,"0")+"T"+c.toString().padStart(2,"0")+":"+u.toString().padStart(2,"0")+":"+l.toString().padStart(2,"0")+"."+f+"Z"):n.toString().padStart(4,"0")+"-"+r.toString().padStart(2,"0")+"-"+a.toString().padStart(2,"0")+"T"+c.toString().padStart(2,"0")+":"+u.toString().padStart(2,"0")+":"+l.toString().padStart(2,"0")+"Z":(f=(.01*h).toString().replace(".",""),n.toString().padStart(4,"0")+"-"+r.toString().padStart(2,"0")+"-"+a.toString().padStart(2,"0")+"T"+c.toString().padStart(2,"0")+":"+u.toString().padStart(2,"0")+":"+l.toString().padStart(2,"0")+"."+f+"Z")},I.clone=function(e,t){if((0,o.Z)(e))return(0,o.Z)(t)?(t.dayNumber=e.dayNumber,t.secondsOfDay=e.secondsOfDay,t):new I(e.dayNumber,e.secondsOfDay,h.Z.TAI)},I.compare=function(e,t){if(!(0,o.Z)(e))throw new s.Z("left is required.");if(!(0,o.Z)(t))throw new s.Z("right is required.");const i=e.dayNumber-t.dayNumber;return 0!==i?i:e.secondsOfDay-t.secondsOfDay},I.equals=function(e,t){return e===t||(0,o.Z)(e)&&(0,o.Z)(t)&&e.dayNumber===t.dayNumber&&e.secondsOfDay===t.secondsOfDay},I.equalsEpsilon=function(e,t,i){return i=(0,r.Z)(i,0),e===t||(0,o.Z)(e)&&(0,o.Z)(t)&&Math.abs(I.secondsDifference(e,t))<=i},I.totalDays=function(e){if(!(0,o.Z)(e))throw new s.Z("julianDate is required.");return e.dayNumber+e.secondsOfDay/l.Z.SECONDS_PER_DAY},I.secondsDifference=function(e,t){if(!(0,o.Z)(e))throw new s.Z("left is required.");if(!(0,o.Z)(t))throw new s.Z("right is required.");return(e.dayNumber-t.dayNumber)*l.Z.SECONDS_PER_DAY+(e.secondsOfDay-t.secondsOfDay)},I.daysDifference=function(e,t){if(!(0,o.Z)(e))throw new s.Z("left is required.");if(!(0,o.Z)(t))throw new s.Z("right is required.");return e.dayNumber-t.dayNumber+(e.secondsOfDay-t.secondsOfDay)/l.Z.SECONDS_PER_DAY},I.computeTaiMinusUtc=function(e){m.julianDate=e;const t=I.leapSeconds;let i=(0,n.Z)(t,m,p);return i<0&&(i=~i,--i,i<0&&(i=0)),t[i].offset},I.addSeconds=function(e,t,i){if(!(0,o.Z)(e))throw new s.Z("julianDate is required.");if(!(0,o.Z)(t))throw new s.Z("seconds is required.");if(!(0,o.Z)(i))throw new s.Z("result is required.");return g(e.dayNumber,e.secondsOfDay+t,i)},I.addMinutes=function(e,t,i){if(!(0,o.Z)(e))throw new s.Z("julianDate is required.");if(!(0,o.Z)(t))throw new s.Z("minutes is required.");if(!(0,o.Z)(i))throw new s.Z("result is required.");const n=e.secondsOfDay+t*l.Z.SECONDS_PER_MINUTE;return g(e.dayNumber,n,i)},I.addHours=function(e,t,i){if(!(0,o.Z)(e))throw new s.Z("julianDate is required.");if(!(0,o.Z)(t))throw new s.Z("hours is required.");if(!(0,o.Z)(i))throw new s.Z("result is required.");const n=e.secondsOfDay+t*l.Z.SECONDS_PER_HOUR;return g(e.dayNumber,n,i)},I.addDays=function(e,t,i){if(!(0,o.Z)(e))throw new s.Z("julianDate is required.");if(!(0,o.Z)(t))throw new s.Z("days is required.");if(!(0,o.Z)(i))throw new s.Z("result is required.");return g(e.dayNumber+t,e.secondsOfDay,i)},I.lessThan=function(e,t){return I.compare(e,t)<0},I.lessThanOrEquals=function(e,t){return I.compare(e,t)<=0},I.greaterThan=function(e,t){return I.compare(e,t)>0},I.greaterThanOrEquals=function(e,t){return I.compare(e,t)>=0},I.prototype.clone=function(e){return I.clone(this,e)},I.prototype.equals=function(e){return I.equals(this,e)},I.prototype.equalsEpsilon=function(e,t){return I.equalsEpsilon(this,e,t)},I.prototype.toString=function(){return I.toIso8601(this)},I.leapSeconds=[new u.Z(new I(2441317,43210,h.Z.TAI),10),new u.Z(new I(2441499,43211,h.Z.TAI),11),new u.Z(new I(2441683,43212,h.Z.TAI),12),new u.Z(new I(2442048,43213,h.Z.TAI),13),new u.Z(new I(2442413,43214,h.Z.TAI),14),new u.Z(new I(2442778,43215,h.Z.TAI),15),new u.Z(new I(2443144,43216,h.Z.TAI),16),new u.Z(new I(2443509,43217,h.Z.TAI),17),new u.Z(new I(2443874,43218,h.Z.TAI),18),new u.Z(new I(2444239,43219,h.Z.TAI),19),new u.Z(new I(2444786,43220,h.Z.TAI),20),new u.Z(new I(2445151,43221,h.Z.TAI),21),new u.Z(new I(2445516,43222,h.Z.TAI),22),new u.Z(new I(2446247,43223,h.Z.TAI),23),new u.Z(new I(2447161,43224,h.Z.TAI),24),new u.Z(new I(2447892,43225,h.Z.TAI),25),new u.Z(new I(2448257,43226,h.Z.TAI),26),new u.Z(new I(2448804,43227,h.Z.TAI),27),new u.Z(new I(2449169,43228,h.Z.TAI),28),new u.Z(new I(2449534,43229,h.Z.TAI),29),new u.Z(new I(2450083,43230,h.Z.TAI),30),new u.Z(new I(2450630,43231,h.Z.TAI),31),new u.Z(new I(2451179,43232,h.Z.TAI),32),new u.Z(new I(2453736,43233,h.Z.TAI),33),new u.Z(new I(2454832,43234,h.Z.TAI),34),new u.Z(new I(2456109,43235,h.Z.TAI),35),new u.Z(new I(2457204,43236,h.Z.TAI),36),new u.Z(new I(2457754,43237,h.Z.TAI),37)];const P=I},907321:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(357299),r=i(442832),o=i(426468),s=i(890357);function a(){}a._transcodeTaskProcessor=new s.Z("transcodeKTX2",Number.POSITIVE_INFINITY),a._readyPromise=void 0,a.transcode=function(e,t){return n.Z.defined("supportedTargetFormats",t),(0,o.Z)(a._readyPromise)||function(){const e=a._transcodeTaskProcessor.initWebAssemblyModule({modulePath:"ThirdParty/Workers/basis_transcoder.js",wasmBinaryFile:"ThirdParty/basis_transcoder.wasm"}).then((function(){return a._transcodeTaskProcessor}));a._readyPromise=e}(),a._readyPromise.then((function(i){let n;if(e instanceof ArrayBuffer){const r=new Uint8Array(e);return n={supportedTargetFormats:t,ktx2Buffer:r},i.scheduleTask(n,[e])}return n={supportedTargetFormats:t,ktx2Buffer:e},i.scheduleTask(n,[e.buffer])})).then((function(e){const t=e.length,i=Object.keys(e[0]),n=i.length;let o;for(o=0;o{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({SHIFT:0,CTRL:1,ALT:2})},325463:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(426468);const r={type:"Lagrange",getRequiredDataPoints:function(e){return Math.max(e+1,2)},interpolateOrderZero:function(e,t,i,r,o){let s,a;(0,n.Z)(o)||(o=new Array(r));const c=t.length;for(s=0;s{"use strict";i.d(t,{Z:()=>o});var n=i(426468),r=i(446938);const o={type:"Linear",getRequiredDataPoints:function(e){return 2},interpolateOrderZero:function(e,t,i,o,s){if(2!==t.length)throw new r.Z("The xTable provided to the linear interpolator must have exactly two elements.");if(o<=0)throw new r.Z("There must be at least 1 dependent variable for each independent variable.");let a,c,u;(0,n.Z)(s)||(s=new Array(o));const l=t[0],h=t[1];if(l===h)throw new r.Z("Divide by zero error: xTable[0] and xTable[1] are equal");for(a=0;a{"use strict";i.d(t,{Z:()=>u});var n=i(919382),r=i(406144),o=i(426468),s=i(446938),a=i(54791);function c(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).points,i=e.times;if(!(0,o.Z)(t)||!(0,o.Z)(i))throw new s.Z("points and times are required.");if(t.length<2)throw new s.Z("points.length must be greater than or equal to 2.");if(i.length!==t.length)throw new s.Z("times.length must be equal to points.length.");this._times=i,this._points=t,this._lastTimeIndex=0}Object.defineProperties(c.prototype,{times:{get:function(){return this._times}},points:{get:function(){return this._points}}}),c.prototype.findTimeInterval=a.Z.prototype.findTimeInterval,c.prototype.wrapTime=a.Z.prototype.wrapTime,c.prototype.clampTime=a.Z.prototype.clampTime,c.prototype.evaluate=function(e,t){const i=this.points,r=this.times,s=this._lastTimeIndex=this.findTimeInterval(e,this._lastTimeIndex),a=(e-r[s])/(r[s+1]-r[s]);return(0,o.Z)(t)||(t=new n.Z),n.Z.lerp(i[s],i[s+1],a,t)};const u=c},853755:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(357299),r=i(406144);function o(e){e=(0,r.Z)(e,0),this._array=new Array(e),this._length=e}Object.defineProperties(o.prototype,{length:{get:function(){return this._length},set:function(e){n.Z.typeOf.number.greaterThanOrEquals("length",e,0);const t=this._array,i=this._length;if(et.length&&(t.length=e);this._length=e}},values:{get:function(){return this._array}}}),o.prototype.get=function(e){return n.Z.typeOf.number.lessThan("index",e,this._array.length),this._array[e]},o.prototype.set=function(e,t){n.Z.typeOf.number("index",e),e>=this._length&&(this.length=e+1),this._array[e]=t},o.prototype.peek=function(){return this._array[this._length-1]},o.prototype.push=function(e){const t=this.length++;this._array[t]=e},o.prototype.pop=function(){if(0===this._length)return;const e=this._array[this._length-1];return--this.length,e},o.prototype.reserve=function(e){n.Z.typeOf.number.greaterThanOrEquals("length",e,0),e>this._array.length&&(this._array.length=e)},o.prototype.resize=function(e){n.Z.typeOf.number.greaterThanOrEquals("length",e,0),this.length=e},o.prototype.trim=function(e){e=(0,r.Z)(e,this._length),this._array.length=e};const s=o},761095:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(446938);function r(){n.Z.throwInstantiationError()}Object.defineProperties(r.prototype,{ellipsoid:{get:n.Z.throwInstantiationError}}),r.prototype.project=n.Z.throwInstantiationError,r.prototype.unproject=n.Z.throwInstantiationError;const o=r},362017:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(761677),r=i(357299),o=i(406144),s=i(426468),a=i(446938);const c={EPSILON1:.1,EPSILON2:.01,EPSILON3:.001,EPSILON4:1e-4,EPSILON5:1e-5,EPSILON6:1e-6,EPSILON7:1e-7,EPSILON8:1e-8,EPSILON9:1e-9,EPSILON10:1e-10,EPSILON11:1e-11,EPSILON12:1e-12,EPSILON13:1e-13,EPSILON14:1e-14,EPSILON15:1e-15,EPSILON16:1e-16,EPSILON17:1e-17,EPSILON18:1e-18,EPSILON19:1e-19,EPSILON20:1e-20,EPSILON21:1e-21,GRAVITATIONALPARAMETER:3986004418e5,SOLAR_RADIUS:6955e5,LUNAR_RADIUS:1737400,SIXTY_FOUR_KILOBYTES:65536,FOUR_GIGABYTES:4294967296};c.sign=(0,o.Z)(Math.sign,(function(e){return 0==(e=+e)||e!=e?e:e>0?1:-1})),c.signNotZero=function(e){return e<0?-1:1},c.toSNorm=function(e,t){return t=(0,o.Z)(t,255),Math.round((.5*c.clamp(e,-1,1)+.5)*t)},c.fromSNorm=function(e,t){return t=(0,o.Z)(t,255),c.clamp(e,0,t)/t*2-1},c.normalize=function(e,t,i){return 0===(i=Math.max(i-t,0))?0:c.clamp((e-t)/i,0,1)},c.sinh=(0,o.Z)(Math.sinh,(function(e){return(Math.exp(e)-Math.exp(-e))/2})),c.cosh=(0,o.Z)(Math.cosh,(function(e){return(Math.exp(e)+Math.exp(-e))/2})),c.lerp=function(e,t,i){return(1-i)*e+i*t},c.PI=Math.PI,c.ONE_OVER_PI=1/Math.PI,c.PI_OVER_TWO=Math.PI/2,c.PI_OVER_THREE=Math.PI/3,c.PI_OVER_FOUR=Math.PI/4,c.PI_OVER_SIX=Math.PI/6,c.THREE_PI_OVER_TWO=3*Math.PI/2,c.TWO_PI=2*Math.PI,c.ONE_OVER_TWO_PI=1/(2*Math.PI),c.RADIANS_PER_DEGREE=Math.PI/180,c.DEGREES_PER_RADIAN=180/Math.PI,c.RADIANS_PER_ARCSECOND=c.RADIANS_PER_DEGREE/3600,c.toRadians=function(e){if(!(0,s.Z)(e))throw new a.Z("degrees is required.");return e*c.RADIANS_PER_DEGREE},c.toDegrees=function(e){if(!(0,s.Z)(e))throw new a.Z("radians is required.");return e*c.DEGREES_PER_RADIAN},c.convertLongitudeRange=function(e){if(!(0,s.Z)(e))throw new a.Z("angle is required.");const t=c.TWO_PI,i=e-Math.floor(e/t)*t;return i<-Math.PI?i+t:i>=Math.PI?i-t:i},c.clampToLatitudeRange=function(e){if(!(0,s.Z)(e))throw new a.Z("angle is required.");return c.clamp(e,-1*c.PI_OVER_TWO,c.PI_OVER_TWO)},c.negativePiToPi=function(e){if(!(0,s.Z)(e))throw new a.Z("angle is required.");return e>=-c.PI&&e<=c.PI?e:c.zeroToTwoPi(e+c.PI)-c.PI},c.zeroToTwoPi=function(e){if(!(0,s.Z)(e))throw new a.Z("angle is required.");if(e>=0&&e<=c.TWO_PI)return e;const t=c.mod(e,c.TWO_PI);return Math.abs(t)c.EPSILON14?c.TWO_PI:t},c.mod=function(e,t){if(!(0,s.Z)(e))throw new a.Z("m is required.");if(!(0,s.Z)(t))throw new a.Z("n is required.");if(0===t)throw new a.Z("divisor cannot be 0.");return c.sign(e)===c.sign(t)&&Math.abs(e)i},c.greaterThanOrEquals=function(e,t,i){if(!(0,s.Z)(e))throw new a.Z("first is required.");if(!(0,s.Z)(t))throw new a.Z("second is required.");if(!(0,s.Z)(i))throw new a.Z("absoluteEpsilon is required.");return e-t>-i};const u=[1];c.factorial=function(e){if("number"!=typeof e||e<0)throw new a.Z("A number greater than or equal to 0 is required.");const t=u.length;if(e>=t){let i=u[t-1];for(let n=t;n<=e;n++){const e=i*n;u.push(e),i=e}}return u[e]},c.incrementWrap=function(e,t,i){if(i=(0,o.Z)(i,0),!(0,s.Z)(e))throw new a.Z("n is required.");if(t<=i)throw new a.Z("maximumValue must be greater than minimumValue.");return++e>t&&(e=i),e},c.isPowerOfTwo=function(e){if("number"!=typeof e||e<0||e>4294967295)throw new a.Z("A number between 0 and (2^32)-1 is required.");return 0!==e&&0==(e&e-1)},c.nextPowerOfTwo=function(e){if("number"!=typeof e||e<0||e>2147483648)throw new a.Z("A number between 0 and 2^31 is required.");return--e,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e},c.previousPowerOfTwo=function(e){if("number"!=typeof e||e<0||e>4294967295)throw new a.Z("A number between 0 and (2^32)-1 is required.");return e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,((e|=e>>32)>>>0)-(e>>>1)},c.clamp=function(e,t,i){if(!(0,s.Z)(e))throw new a.Z("value is required");if(!(0,s.Z)(t))throw new a.Z("min is required.");if(!(0,s.Z)(i))throw new a.Z("max is required.");return ei?i:e};let l=new n.Z;c.setRandomNumberSeed=function(e){if(!(0,s.Z)(e))throw new a.Z("seed is required.");l=new n.Z(e)},c.nextRandomNumber=function(){return l.random()},c.randomBetween=function(e,t){return c.nextRandomNumber()*(t-e)+e},c.acosClamped=function(e){if(!(0,s.Z)(e))throw new a.Z("value is required.");return Math.acos(c.clamp(e,-1,1))},c.asinClamped=function(e){if(!(0,s.Z)(e))throw new a.Z("value is required.");return Math.asin(c.clamp(e,-1,1))},c.chordLength=function(e,t){if(!(0,s.Z)(e))throw new a.Z("angle is required.");if(!(0,s.Z)(t))throw new a.Z("radius is required.");return 2*t*Math.sin(.5*e)},c.logBase=function(e,t){if(!(0,s.Z)(e))throw new a.Z("number is required.");if(!(0,s.Z)(t))throw new a.Z("base is required.");return Math.log(e)/Math.log(t)},c.cbrt=(0,o.Z)(Math.cbrt,(function(e){const t=Math.pow(Math.abs(e),1/3);return e<0?-t:t})),c.log2=(0,o.Z)(Math.log2,(function(e){return Math.log(e)*Math.LOG2E})),c.fog=function(e,t){const i=e*t;return 1-Math.exp(-i*i)},c.fastApproximateAtan=function(e){return r.Z.typeOf.number("x",e),e*(-.1784*Math.abs(e)-.0663*e*e+1.0301)},c.fastApproximateAtan2=function(e,t){let i;r.Z.typeOf.number("x",e),r.Z.typeOf.number("y",t);let n=Math.abs(e);i=Math.abs(t);const o=Math.max(n,i);i=Math.min(n,i);const s=i/o;if(isNaN(s))throw new a.Z("either x or y must be nonzero");return n=c.fastApproximateAtan(s),n=Math.abs(t)>Math.abs(e)?c.PI_OVER_TWO-n:n,n=e<0?c.PI-n:n,n=t<0?-n:n,n};const h=c},631145:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(337968),r=i(357299),o=i(406144),s=i(426468);function a(e,t,i,n){this[0]=(0,o.Z)(e,0),this[1]=(0,o.Z)(i,0),this[2]=(0,o.Z)(t,0),this[3]=(0,o.Z)(n,0)}a.packedLength=4,a.pack=function(e,t,i){return r.Z.typeOf.object("value",e),r.Z.defined("array",t),i=(0,o.Z)(i,0),t[i++]=e[0],t[i++]=e[1],t[i++]=e[2],t[i++]=e[3],t},a.unpack=function(e,t,i){return r.Z.defined("array",e),t=(0,o.Z)(t,0),(0,s.Z)(i)||(i=new a),i[0]=e[t++],i[1]=e[t++],i[2]=e[t++],i[3]=e[t++],i},a.clone=function(e,t){if((0,s.Z)(e))return(0,s.Z)(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):new a(e[0],e[2],e[1],e[3])},a.fromArray=function(e,t,i){return r.Z.defined("array",e),t=(0,o.Z)(t,0),(0,s.Z)(i)||(i=new a),i[0]=e[t],i[1]=e[t+1],i[2]=e[t+2],i[3]=e[t+3],i},a.fromColumnMajorArray=function(e,t){return r.Z.defined("values",e),a.clone(e,t)},a.fromRowMajorArray=function(e,t){return r.Z.defined("values",e),(0,s.Z)(t)?(t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3],t):new a(e[0],e[1],e[2],e[3])},a.fromScale=function(e,t){return r.Z.typeOf.object("scale",e),(0,s.Z)(t)?(t[0]=e.x,t[1]=0,t[2]=0,t[3]=e.y,t):new a(e.x,0,0,e.y)},a.fromUniformScale=function(e,t){return r.Z.typeOf.number("scale",e),(0,s.Z)(t)?(t[0]=e,t[1]=0,t[2]=0,t[3]=e,t):new a(e,0,0,e)},a.fromRotation=function(e,t){r.Z.typeOf.number("angle",e);const i=Math.cos(e),n=Math.sin(e);return(0,s.Z)(t)?(t[0]=i,t[1]=n,t[2]=-n,t[3]=i,t):new a(i,-n,n,i)},a.toArray=function(e,t){return r.Z.typeOf.object("matrix",e),(0,s.Z)(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):[e[0],e[1],e[2],e[3]]},a.getElementIndex=function(e,t){return r.Z.typeOf.number.greaterThanOrEquals("row",t,0),r.Z.typeOf.number.lessThanOrEquals("row",t,1),r.Z.typeOf.number.greaterThanOrEquals("column",e,0),r.Z.typeOf.number.lessThanOrEquals("column",e,1),2*e+t},a.getColumn=function(e,t,i){r.Z.typeOf.object("matrix",e),r.Z.typeOf.number.greaterThanOrEquals("index",t,0),r.Z.typeOf.number.lessThanOrEquals("index",t,1),r.Z.typeOf.object("result",i);const n=2*t,o=e[n],s=e[n+1];return i.x=o,i.y=s,i},a.setColumn=function(e,t,i,n){r.Z.typeOf.object("matrix",e),r.Z.typeOf.number.greaterThanOrEquals("index",t,0),r.Z.typeOf.number.lessThanOrEquals("index",t,1),r.Z.typeOf.object("cartesian",i),r.Z.typeOf.object("result",n);const o=2*t;return(n=a.clone(e,n))[o]=i.x,n[o+1]=i.y,n},a.getRow=function(e,t,i){r.Z.typeOf.object("matrix",e),r.Z.typeOf.number.greaterThanOrEquals("index",t,0),r.Z.typeOf.number.lessThanOrEquals("index",t,1),r.Z.typeOf.object("result",i);const n=e[t],o=e[t+2];return i.x=n,i.y=o,i},a.setRow=function(e,t,i,n){return r.Z.typeOf.object("matrix",e),r.Z.typeOf.number.greaterThanOrEquals("index",t,0),r.Z.typeOf.number.lessThanOrEquals("index",t,1),r.Z.typeOf.object("cartesian",i),r.Z.typeOf.object("result",n),(n=a.clone(e,n))[t]=i.x,n[t+2]=i.y,n};const c=new n.Z;a.getScale=function(e,t){return r.Z.typeOf.object("matrix",e),r.Z.typeOf.object("result",t),t.x=n.Z.magnitude(n.Z.fromElements(e[0],e[1],c)),t.y=n.Z.magnitude(n.Z.fromElements(e[2],e[3],c)),t};const u=new n.Z;a.getMaximumScale=function(e){return a.getScale(e,u),n.Z.maximumComponent(u)},a.multiply=function(e,t,i){r.Z.typeOf.object("left",e),r.Z.typeOf.object("right",t),r.Z.typeOf.object("result",i);const n=e[0]*t[0]+e[2]*t[1],o=e[0]*t[2]+e[2]*t[3],s=e[1]*t[0]+e[3]*t[1],a=e[1]*t[2]+e[3]*t[3];return i[0]=n,i[1]=s,i[2]=o,i[3]=a,i},a.add=function(e,t,i){return r.Z.typeOf.object("left",e),r.Z.typeOf.object("right",t),r.Z.typeOf.object("result",i),i[0]=e[0]+t[0],i[1]=e[1]+t[1],i[2]=e[2]+t[2],i[3]=e[3]+t[3],i},a.subtract=function(e,t,i){return r.Z.typeOf.object("left",e),r.Z.typeOf.object("right",t),r.Z.typeOf.object("result",i),i[0]=e[0]-t[0],i[1]=e[1]-t[1],i[2]=e[2]-t[2],i[3]=e[3]-t[3],i},a.multiplyByVector=function(e,t,i){r.Z.typeOf.object("matrix",e),r.Z.typeOf.object("cartesian",t),r.Z.typeOf.object("result",i);const n=e[0]*t.x+e[2]*t.y,o=e[1]*t.x+e[3]*t.y;return i.x=n,i.y=o,i},a.multiplyByScalar=function(e,t,i){return r.Z.typeOf.object("matrix",e),r.Z.typeOf.number("scalar",t),r.Z.typeOf.object("result",i),i[0]=e[0]*t,i[1]=e[1]*t,i[2]=e[2]*t,i[3]=e[3]*t,i},a.multiplyByScale=function(e,t,i){return r.Z.typeOf.object("matrix",e),r.Z.typeOf.object("scale",t),r.Z.typeOf.object("result",i),i[0]=e[0]*t.x,i[1]=e[1]*t.x,i[2]=e[2]*t.y,i[3]=e[3]*t.y,i},a.negate=function(e,t){return r.Z.typeOf.object("matrix",e),r.Z.typeOf.object("result",t),t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},a.transpose=function(e,t){r.Z.typeOf.object("matrix",e),r.Z.typeOf.object("result",t);const i=e[0],n=e[2],o=e[1],s=e[3];return t[0]=i,t[1]=n,t[2]=o,t[3]=s,t},a.abs=function(e,t){return r.Z.typeOf.object("matrix",e),r.Z.typeOf.object("result",t),t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t[3]=Math.abs(e[3]),t},a.equals=function(e,t){return e===t||(0,s.Z)(e)&&(0,s.Z)(t)&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]},a.equalsArray=function(e,t,i){return e[0]===t[i]&&e[1]===t[i+1]&&e[2]===t[i+2]&&e[3]===t[i+3]},a.equalsEpsilon=function(e,t,i){return i=(0,o.Z)(i,0),e===t||(0,s.Z)(e)&&(0,s.Z)(t)&&Math.abs(e[0]-t[0])<=i&&Math.abs(e[1]-t[1])<=i&&Math.abs(e[2]-t[2])<=i&&Math.abs(e[3]-t[3])<=i},a.IDENTITY=Object.freeze(new a(1,0,0,1)),a.ZERO=Object.freeze(new a(0,0,0,0)),a.COLUMN0ROW0=0,a.COLUMN0ROW1=1,a.COLUMN1ROW0=2,a.COLUMN1ROW1=3,Object.defineProperties(a.prototype,{length:{get:function(){return a.packedLength}}}),a.prototype.clone=function(e){return a.clone(this,e)},a.prototype.equals=function(e){return a.equals(this,e)},a.prototype.equalsEpsilon=function(e,t){return a.equalsEpsilon(this,e,t)},a.prototype.toString=function(){return"("+this[0]+", "+this[2]+")\n("+this[1]+", "+this[3]+")"};const l=a},165373:(e,t,i)=>{"use strict";i.d(t,{Z:()=>b});var n=i(919382),r=i(357299),o=i(406144),s=i(426468),a=i(446938),c=i(362017);function u(e,t,i,n,r,s,a,c,u){this[0]=(0,o.Z)(e,0),this[1]=(0,o.Z)(n,0),this[2]=(0,o.Z)(a,0),this[3]=(0,o.Z)(t,0),this[4]=(0,o.Z)(r,0),this[5]=(0,o.Z)(c,0),this[6]=(0,o.Z)(i,0),this[7]=(0,o.Z)(s,0),this[8]=(0,o.Z)(u,0)}u.packedLength=9,u.pack=function(e,t,i){return r.Z.typeOf.object("value",e),r.Z.defined("array",t),i=(0,o.Z)(i,0),t[i++]=e[0],t[i++]=e[1],t[i++]=e[2],t[i++]=e[3],t[i++]=e[4],t[i++]=e[5],t[i++]=e[6],t[i++]=e[7],t[i++]=e[8],t},u.unpack=function(e,t,i){return r.Z.defined("array",e),t=(0,o.Z)(t,0),(0,s.Z)(i)||(i=new u),i[0]=e[t++],i[1]=e[t++],i[2]=e[t++],i[3]=e[t++],i[4]=e[t++],i[5]=e[t++],i[6]=e[t++],i[7]=e[t++],i[8]=e[t++],i},u.clone=function(e,t){if((0,s.Z)(e))return(0,s.Z)(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t):new u(e[0],e[3],e[6],e[1],e[4],e[7],e[2],e[5],e[8])},u.fromArray=function(e,t,i){return r.Z.defined("array",e),t=(0,o.Z)(t,0),(0,s.Z)(i)||(i=new u),i[0]=e[t],i[1]=e[t+1],i[2]=e[t+2],i[3]=e[t+3],i[4]=e[t+4],i[5]=e[t+5],i[6]=e[t+6],i[7]=e[t+7],i[8]=e[t+8],i},u.fromColumnMajorArray=function(e,t){return r.Z.defined("values",e),u.clone(e,t)},u.fromRowMajorArray=function(e,t){return r.Z.defined("values",e),(0,s.Z)(t)?(t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],t):new u(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},u.fromQuaternion=function(e,t){r.Z.typeOf.object("quaternion",e);const i=e.x*e.x,n=e.x*e.y,o=e.x*e.z,a=e.x*e.w,c=e.y*e.y,l=e.y*e.z,h=e.y*e.w,d=e.z*e.z,f=e.z*e.w,p=e.w*e.w,m=i-c-d+p,_=2*(n-f),Z=2*(o+h),g=2*(n+f),y=-i+c-d+p,b=2*(l-a),A=2*(o-h),w=2*(l+a),v=-i-c+d+p;return(0,s.Z)(t)?(t[0]=m,t[1]=g,t[2]=A,t[3]=_,t[4]=y,t[5]=w,t[6]=Z,t[7]=b,t[8]=v,t):new u(m,_,Z,g,y,b,A,w,v)},u.fromHeadingPitchRoll=function(e,t){r.Z.typeOf.object("headingPitchRoll",e);const i=Math.cos(-e.pitch),n=Math.cos(-e.heading),o=Math.cos(e.roll),a=Math.sin(-e.pitch),c=Math.sin(-e.heading),l=Math.sin(e.roll),h=i*n,d=-o*c+l*a*n,f=l*c+o*a*n,p=i*c,m=o*n+l*a*c,_=-l*n+o*a*c,Z=-a,g=l*i,y=o*i;return(0,s.Z)(t)?(t[0]=h,t[1]=p,t[2]=Z,t[3]=d,t[4]=m,t[5]=g,t[6]=f,t[7]=_,t[8]=y,t):new u(h,d,f,p,m,_,Z,g,y)},u.fromScale=function(e,t){return r.Z.typeOf.object("scale",e),(0,s.Z)(t)?(t[0]=e.x,t[1]=0,t[2]=0,t[3]=0,t[4]=e.y,t[5]=0,t[6]=0,t[7]=0,t[8]=e.z,t):new u(e.x,0,0,0,e.y,0,0,0,e.z)},u.fromUniformScale=function(e,t){return r.Z.typeOf.number("scale",e),(0,s.Z)(t)?(t[0]=e,t[1]=0,t[2]=0,t[3]=0,t[4]=e,t[5]=0,t[6]=0,t[7]=0,t[8]=e,t):new u(e,0,0,0,e,0,0,0,e)},u.fromCrossProduct=function(e,t){return r.Z.typeOf.object("vector",e),(0,s.Z)(t)?(t[0]=0,t[1]=e.z,t[2]=-e.y,t[3]=-e.z,t[4]=0,t[5]=e.x,t[6]=e.y,t[7]=-e.x,t[8]=0,t):new u(0,-e.z,e.y,e.z,0,-e.x,-e.y,e.x,0)},u.fromRotationX=function(e,t){r.Z.typeOf.number("angle",e);const i=Math.cos(e),n=Math.sin(e);return(0,s.Z)(t)?(t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=i,t[5]=n,t[6]=0,t[7]=-n,t[8]=i,t):new u(1,0,0,0,i,-n,0,n,i)},u.fromRotationY=function(e,t){r.Z.typeOf.number("angle",e);const i=Math.cos(e),n=Math.sin(e);return(0,s.Z)(t)?(t[0]=i,t[1]=0,t[2]=-n,t[3]=0,t[4]=1,t[5]=0,t[6]=n,t[7]=0,t[8]=i,t):new u(i,0,n,0,1,0,-n,0,i)},u.fromRotationZ=function(e,t){r.Z.typeOf.number("angle",e);const i=Math.cos(e),n=Math.sin(e);return(0,s.Z)(t)?(t[0]=i,t[1]=n,t[2]=0,t[3]=-n,t[4]=i,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t):new u(i,-n,0,n,i,0,0,0,1)},u.toArray=function(e,t){return r.Z.typeOf.object("matrix",e),(0,s.Z)(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t):[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},u.getElementIndex=function(e,t){return r.Z.typeOf.number.greaterThanOrEquals("row",t,0),r.Z.typeOf.number.lessThanOrEquals("row",t,2),r.Z.typeOf.number.greaterThanOrEquals("column",e,0),r.Z.typeOf.number.lessThanOrEquals("column",e,2),3*e+t},u.getColumn=function(e,t,i){r.Z.typeOf.object("matrix",e),r.Z.typeOf.number.greaterThanOrEquals("index",t,0),r.Z.typeOf.number.lessThanOrEquals("index",t,2),r.Z.typeOf.object("result",i);const n=3*t,o=e[n],s=e[n+1],a=e[n+2];return i.x=o,i.y=s,i.z=a,i},u.setColumn=function(e,t,i,n){r.Z.typeOf.object("matrix",e),r.Z.typeOf.number.greaterThanOrEquals("index",t,0),r.Z.typeOf.number.lessThanOrEquals("index",t,2),r.Z.typeOf.object("cartesian",i),r.Z.typeOf.object("result",n);const o=3*t;return(n=u.clone(e,n))[o]=i.x,n[o+1]=i.y,n[o+2]=i.z,n},u.getRow=function(e,t,i){r.Z.typeOf.object("matrix",e),r.Z.typeOf.number.greaterThanOrEquals("index",t,0),r.Z.typeOf.number.lessThanOrEquals("index",t,2),r.Z.typeOf.object("result",i);const n=e[t],o=e[t+3],s=e[t+6];return i.x=n,i.y=o,i.z=s,i},u.setRow=function(e,t,i,n){return r.Z.typeOf.object("matrix",e),r.Z.typeOf.number.greaterThanOrEquals("index",t,0),r.Z.typeOf.number.lessThanOrEquals("index",t,2),r.Z.typeOf.object("cartesian",i),r.Z.typeOf.object("result",n),(n=u.clone(e,n))[t]=i.x,n[t+3]=i.y,n[t+6]=i.z,n};const l=new n.Z;u.getScale=function(e,t){return r.Z.typeOf.object("matrix",e),r.Z.typeOf.object("result",t),t.x=n.Z.magnitude(n.Z.fromElements(e[0],e[1],e[2],l)),t.y=n.Z.magnitude(n.Z.fromElements(e[3],e[4],e[5],l)),t.z=n.Z.magnitude(n.Z.fromElements(e[6],e[7],e[8],l)),t};const h=new n.Z;u.getMaximumScale=function(e){return u.getScale(e,h),n.Z.maximumComponent(h)},u.multiply=function(e,t,i){r.Z.typeOf.object("left",e),r.Z.typeOf.object("right",t),r.Z.typeOf.object("result",i);const n=e[0]*t[0]+e[3]*t[1]+e[6]*t[2],o=e[1]*t[0]+e[4]*t[1]+e[7]*t[2],s=e[2]*t[0]+e[5]*t[1]+e[8]*t[2],a=e[0]*t[3]+e[3]*t[4]+e[6]*t[5],c=e[1]*t[3]+e[4]*t[4]+e[7]*t[5],u=e[2]*t[3]+e[5]*t[4]+e[8]*t[5],l=e[0]*t[6]+e[3]*t[7]+e[6]*t[8],h=e[1]*t[6]+e[4]*t[7]+e[7]*t[8],d=e[2]*t[6]+e[5]*t[7]+e[8]*t[8];return i[0]=n,i[1]=o,i[2]=s,i[3]=a,i[4]=c,i[5]=u,i[6]=l,i[7]=h,i[8]=d,i},u.add=function(e,t,i){return r.Z.typeOf.object("left",e),r.Z.typeOf.object("right",t),r.Z.typeOf.object("result",i),i[0]=e[0]+t[0],i[1]=e[1]+t[1],i[2]=e[2]+t[2],i[3]=e[3]+t[3],i[4]=e[4]+t[4],i[5]=e[5]+t[5],i[6]=e[6]+t[6],i[7]=e[7]+t[7],i[8]=e[8]+t[8],i},u.subtract=function(e,t,i){return r.Z.typeOf.object("left",e),r.Z.typeOf.object("right",t),r.Z.typeOf.object("result",i),i[0]=e[0]-t[0],i[1]=e[1]-t[1],i[2]=e[2]-t[2],i[3]=e[3]-t[3],i[4]=e[4]-t[4],i[5]=e[5]-t[5],i[6]=e[6]-t[6],i[7]=e[7]-t[7],i[8]=e[8]-t[8],i},u.multiplyByVector=function(e,t,i){r.Z.typeOf.object("matrix",e),r.Z.typeOf.object("cartesian",t),r.Z.typeOf.object("result",i);const n=t.x,o=t.y,s=t.z,a=e[0]*n+e[3]*o+e[6]*s,c=e[1]*n+e[4]*o+e[7]*s,u=e[2]*n+e[5]*o+e[8]*s;return i.x=a,i.y=c,i.z=u,i},u.multiplyByScalar=function(e,t,i){return r.Z.typeOf.object("matrix",e),r.Z.typeOf.number("scalar",t),r.Z.typeOf.object("result",i),i[0]=e[0]*t,i[1]=e[1]*t,i[2]=e[2]*t,i[3]=e[3]*t,i[4]=e[4]*t,i[5]=e[5]*t,i[6]=e[6]*t,i[7]=e[7]*t,i[8]=e[8]*t,i},u.multiplyByScale=function(e,t,i){return r.Z.typeOf.object("matrix",e),r.Z.typeOf.object("scale",t),r.Z.typeOf.object("result",i),i[0]=e[0]*t.x,i[1]=e[1]*t.x,i[2]=e[2]*t.x,i[3]=e[3]*t.y,i[4]=e[4]*t.y,i[5]=e[5]*t.y,i[6]=e[6]*t.z,i[7]=e[7]*t.z,i[8]=e[8]*t.z,i},u.negate=function(e,t){return r.Z.typeOf.object("matrix",e),r.Z.typeOf.object("result",t),t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t[4]=-e[4],t[5]=-e[5],t[6]=-e[6],t[7]=-e[7],t[8]=-e[8],t},u.transpose=function(e,t){r.Z.typeOf.object("matrix",e),r.Z.typeOf.object("result",t);const i=e[0],n=e[3],o=e[6],s=e[1],a=e[4],c=e[7],u=e[2],l=e[5],h=e[8];return t[0]=i,t[1]=n,t[2]=o,t[3]=s,t[4]=a,t[5]=c,t[6]=u,t[7]=l,t[8]=h,t};const d=new n.Z(1,1,1);u.getRotation=function(e,t){r.Z.typeOf.object("matrix",e),r.Z.typeOf.object("result",t);const i=n.Z.divideComponents(d,u.getScale(e,h),h);return u.multiplyByScale(e,i,t)};const f=[1,0,0],p=[2,2,1];function m(e){let t=0;for(let i=0;i<3;++i){const n=e[u.getElementIndex(p[i],f[i])];t+=2*n*n}return Math.sqrt(t)}function _(e,t){const i=c.Z.EPSILON15;let n=0,r=1;for(let t=0;t<3;++t){const i=Math.abs(e[u.getElementIndex(p[t],f[t])]);i>n&&(r=t,n=i)}let o=1,s=0;const a=f[r],l=p[r];if(Math.abs(e[u.getElementIndex(l,a)])>i){const t=(e[u.getElementIndex(l,l)]-e[u.getElementIndex(a,a)])/2/e[u.getElementIndex(l,a)];let i;i=t<0?-1/(-t+Math.sqrt(1+t*t)):1/(t+Math.sqrt(1+t*t)),o=1/Math.sqrt(1+i*i),s=i*o}return(t=u.clone(u.IDENTITY,t))[u.getElementIndex(a,a)]=t[u.getElementIndex(l,l)]=o,t[u.getElementIndex(l,a)]=s,t[u.getElementIndex(a,l)]=-s,t}const Z=new u,g=new u;u.computeEigenDecomposition=function(e,t){r.Z.typeOf.object("matrix",e);const i=c.Z.EPSILON20;let n=0,o=0;(0,s.Z)(t)||(t={});const a=t.unitary=u.clone(u.IDENTITY,t.unitary),l=t.diagonal=u.clone(e,t.diagonal),h=i*function(e){let t=0;for(let i=0;i<9;++i){const n=e[i];t+=n*n}return Math.sqrt(t)}(l);for(;o<10&&m(l)>h;)_(l,Z),u.transpose(Z,g),u.multiply(l,Z,l),u.multiply(g,l,l),u.multiply(a,Z,a),++n>2&&(++o,n=0);return t},u.abs=function(e,t){return r.Z.typeOf.object("matrix",e),r.Z.typeOf.object("result",t),t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t[3]=Math.abs(e[3]),t[4]=Math.abs(e[4]),t[5]=Math.abs(e[5]),t[6]=Math.abs(e[6]),t[7]=Math.abs(e[7]),t[8]=Math.abs(e[8]),t},u.determinant=function(e){r.Z.typeOf.object("matrix",e);const t=e[0],i=e[3],n=e[6],o=e[1],s=e[4],a=e[7],c=e[2],u=e[5],l=e[8];return t*(s*l-u*a)+o*(u*n-i*l)+c*(i*a-s*n)},u.inverse=function(e,t){r.Z.typeOf.object("matrix",e),r.Z.typeOf.object("result",t);const i=e[0],n=e[1],o=e[2],s=e[3],l=e[4],h=e[5],d=e[6],f=e[7],p=e[8],m=u.determinant(e);if(Math.abs(m)<=c.Z.EPSILON15)throw new a.Z("matrix is not invertible");t[0]=l*p-f*h,t[1]=f*o-n*p,t[2]=n*h-l*o,t[3]=d*h-s*p,t[4]=i*p-d*o,t[5]=s*o-i*h,t[6]=s*f-d*l,t[7]=d*n-i*f,t[8]=i*l-s*n;const _=1/m;return u.multiplyByScalar(t,_,t)};const y=new u;u.inverseTranspose=function(e,t){return r.Z.typeOf.object("matrix",e),r.Z.typeOf.object("result",t),u.inverse(u.transpose(e,y),t)},u.equals=function(e,t){return e===t||(0,s.Z)(e)&&(0,s.Z)(t)&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]},u.equalsEpsilon=function(e,t,i){return i=(0,o.Z)(i,0),e===t||(0,s.Z)(e)&&(0,s.Z)(t)&&Math.abs(e[0]-t[0])<=i&&Math.abs(e[1]-t[1])<=i&&Math.abs(e[2]-t[2])<=i&&Math.abs(e[3]-t[3])<=i&&Math.abs(e[4]-t[4])<=i&&Math.abs(e[5]-t[5])<=i&&Math.abs(e[6]-t[6])<=i&&Math.abs(e[7]-t[7])<=i&&Math.abs(e[8]-t[8])<=i},u.IDENTITY=Object.freeze(new u(1,0,0,0,1,0,0,0,1)),u.ZERO=Object.freeze(new u(0,0,0,0,0,0,0,0,0)),u.COLUMN0ROW0=0,u.COLUMN0ROW1=1,u.COLUMN0ROW2=2,u.COLUMN1ROW0=3,u.COLUMN1ROW1=4,u.COLUMN1ROW2=5,u.COLUMN2ROW0=6,u.COLUMN2ROW1=7,u.COLUMN2ROW2=8,Object.defineProperties(u.prototype,{length:{get:function(){return u.packedLength}}}),u.prototype.clone=function(e){return u.clone(this,e)},u.prototype.equals=function(e){return u.equals(this,e)},u.equalsArray=function(e,t,i){return e[0]===t[i]&&e[1]===t[i+1]&&e[2]===t[i+2]&&e[3]===t[i+3]&&e[4]===t[i+4]&&e[5]===t[i+5]&&e[6]===t[i+6]&&e[7]===t[i+7]&&e[8]===t[i+8]},u.prototype.equalsEpsilon=function(e,t){return u.equalsEpsilon(this,e,t)},u.prototype.toString=function(){return"("+this[0]+", "+this[3]+", "+this[6]+")\n("+this[1]+", "+this[4]+", "+this[7]+")\n("+this[2]+", "+this[5]+", "+this[8]+")"};const b=u},583917:(e,t,i)=>{"use strict";i.d(t,{Z:()=>T});var n=i(919382),r=i(114754),o=i(357299),s=i(406144),a=i(426468),c=i(362017),u=i(165373),l=i(50128);function h(e,t,i,n,r,o,a,c,u,l,h,d,f,p,m,_){this[0]=(0,s.Z)(e,0),this[1]=(0,s.Z)(r,0),this[2]=(0,s.Z)(u,0),this[3]=(0,s.Z)(f,0),this[4]=(0,s.Z)(t,0),this[5]=(0,s.Z)(o,0),this[6]=(0,s.Z)(l,0),this[7]=(0,s.Z)(p,0),this[8]=(0,s.Z)(i,0),this[9]=(0,s.Z)(a,0),this[10]=(0,s.Z)(h,0),this[11]=(0,s.Z)(m,0),this[12]=(0,s.Z)(n,0),this[13]=(0,s.Z)(c,0),this[14]=(0,s.Z)(d,0),this[15]=(0,s.Z)(_,0)}h.packedLength=16,h.pack=function(e,t,i){return o.Z.typeOf.object("value",e),o.Z.defined("array",t),i=(0,s.Z)(i,0),t[i++]=e[0],t[i++]=e[1],t[i++]=e[2],t[i++]=e[3],t[i++]=e[4],t[i++]=e[5],t[i++]=e[6],t[i++]=e[7],t[i++]=e[8],t[i++]=e[9],t[i++]=e[10],t[i++]=e[11],t[i++]=e[12],t[i++]=e[13],t[i++]=e[14],t[i]=e[15],t},h.unpack=function(e,t,i){return o.Z.defined("array",e),t=(0,s.Z)(t,0),(0,a.Z)(i)||(i=new h),i[0]=e[t++],i[1]=e[t++],i[2]=e[t++],i[3]=e[t++],i[4]=e[t++],i[5]=e[t++],i[6]=e[t++],i[7]=e[t++],i[8]=e[t++],i[9]=e[t++],i[10]=e[t++],i[11]=e[t++],i[12]=e[t++],i[13]=e[t++],i[14]=e[t++],i[15]=e[t],i},h.clone=function(e,t){if((0,a.Z)(e))return(0,a.Z)(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t):new h(e[0],e[4],e[8],e[12],e[1],e[5],e[9],e[13],e[2],e[6],e[10],e[14],e[3],e[7],e[11],e[15])},h.fromArray=h.unpack,h.fromColumnMajorArray=function(e,t){return o.Z.defined("values",e),h.clone(e,t)},h.fromRowMajorArray=function(e,t){return o.Z.defined("values",e),(0,a.Z)(t)?(t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15],t):new h(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])},h.fromRotationTranslation=function(e,t,i){return o.Z.typeOf.object("rotation",e),t=(0,s.Z)(t,n.Z.ZERO),(0,a.Z)(i)?(i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=0,i[4]=e[3],i[5]=e[4],i[6]=e[5],i[7]=0,i[8]=e[6],i[9]=e[7],i[10]=e[8],i[11]=0,i[12]=t.x,i[13]=t.y,i[14]=t.z,i[15]=1,i):new h(e[0],e[3],e[6],t.x,e[1],e[4],e[7],t.y,e[2],e[5],e[8],t.z,0,0,0,1)},h.fromTranslationQuaternionRotationScale=function(e,t,i,n){o.Z.typeOf.object("translation",e),o.Z.typeOf.object("rotation",t),o.Z.typeOf.object("scale",i),(0,a.Z)(n)||(n=new h);const r=i.x,s=i.y,c=i.z,u=t.x*t.x,l=t.x*t.y,d=t.x*t.z,f=t.x*t.w,p=t.y*t.y,m=t.y*t.z,_=t.y*t.w,Z=t.z*t.z,g=t.z*t.w,y=t.w*t.w,b=u-p-Z+y,A=2*(l-g),w=2*(d+_),v=2*(l+g),T=-u+p-Z+y,C=2*(m-f),E=2*(d-_),x=2*(m+f),S=-u-p+Z+y;return n[0]=b*r,n[1]=v*r,n[2]=E*r,n[3]=0,n[4]=A*s,n[5]=T*s,n[6]=x*s,n[7]=0,n[8]=w*c,n[9]=C*c,n[10]=S*c,n[11]=0,n[12]=e.x,n[13]=e.y,n[14]=e.z,n[15]=1,n},h.fromTranslationRotationScale=function(e,t){return o.Z.typeOf.object("translationRotationScale",e),h.fromTranslationQuaternionRotationScale(e.translation,e.rotation,e.scale,t)},h.fromTranslation=function(e,t){return o.Z.typeOf.object("translation",e),h.fromRotationTranslation(u.Z.IDENTITY,e,t)},h.fromScale=function(e,t){return o.Z.typeOf.object("scale",e),(0,a.Z)(t)?(t[0]=e.x,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e.y,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e.z,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t):new h(e.x,0,0,0,0,e.y,0,0,0,0,e.z,0,0,0,0,1)},h.fromUniformScale=function(e,t){return o.Z.typeOf.number("scale",e),(0,a.Z)(t)?(t[0]=e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t):new h(e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1)};const d=new n.Z,f=new n.Z,p=new n.Z;h.fromCamera=function(e,t){o.Z.typeOf.object("camera",e);const i=e.position,r=e.direction,s=e.up;o.Z.typeOf.object("camera.position",i),o.Z.typeOf.object("camera.direction",r),o.Z.typeOf.object("camera.up",s),n.Z.normalize(r,d),n.Z.normalize(n.Z.cross(d,s,f),f),n.Z.normalize(n.Z.cross(f,d,p),p);const c=f.x,u=f.y,l=f.z,m=d.x,_=d.y,Z=d.z,g=p.x,y=p.y,b=p.z,A=i.x,w=i.y,v=i.z,T=c*-A+u*-w+l*-v,C=g*-A+y*-w+b*-v,E=m*A+_*w+Z*v;return(0,a.Z)(t)?(t[0]=c,t[1]=g,t[2]=-m,t[3]=0,t[4]=u,t[5]=y,t[6]=-_,t[7]=0,t[8]=l,t[9]=b,t[10]=-Z,t[11]=0,t[12]=T,t[13]=C,t[14]=E,t[15]=1,t):new h(c,u,l,T,g,y,b,C,-m,-_,-Z,E,0,0,0,1)},h.computePerspectiveFieldOfView=function(e,t,i,n,r){o.Z.typeOf.number.greaterThan("fovY",e,0),o.Z.typeOf.number.lessThan("fovY",e,Math.PI),o.Z.typeOf.number.greaterThan("near",i,0),o.Z.typeOf.number.greaterThan("far",n,0),o.Z.typeOf.object("result",r);const s=1/Math.tan(.5*e),a=s/t,c=(n+i)/(i-n),u=2*n*i/(i-n);return r[0]=a,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=s,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=c,r[11]=-1,r[12]=0,r[13]=0,r[14]=u,r[15]=0,r},h.computeOrthographicOffCenter=function(e,t,i,n,r,s,a){o.Z.typeOf.number("left",e),o.Z.typeOf.number("right",t),o.Z.typeOf.number("bottom",i),o.Z.typeOf.number("top",n),o.Z.typeOf.number("near",r),o.Z.typeOf.number("far",s),o.Z.typeOf.object("result",a);let c=1/(t-e),u=1/(n-i),l=1/(s-r);const h=-(t+e)*c,d=-(n+i)*u,f=-(s+r)*l;return c*=2,u*=2,l*=-2,a[0]=c,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=u,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=l,a[11]=0,a[12]=h,a[13]=d,a[14]=f,a[15]=1,a},h.computePerspectiveOffCenter=function(e,t,i,n,r,s,a){o.Z.typeOf.number("left",e),o.Z.typeOf.number("right",t),o.Z.typeOf.number("bottom",i),o.Z.typeOf.number("top",n),o.Z.typeOf.number("near",r),o.Z.typeOf.number("far",s),o.Z.typeOf.object("result",a);const c=2*r/(t-e),u=2*r/(n-i),l=(t+e)/(t-e),h=(n+i)/(n-i),d=-(s+r)/(s-r),f=-2*s*r/(s-r);return a[0]=c,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=u,a[6]=0,a[7]=0,a[8]=l,a[9]=h,a[10]=d,a[11]=-1,a[12]=0,a[13]=0,a[14]=f,a[15]=0,a},h.computeInfinitePerspectiveOffCenter=function(e,t,i,n,r,s){o.Z.typeOf.number("left",e),o.Z.typeOf.number("right",t),o.Z.typeOf.number("bottom",i),o.Z.typeOf.number("top",n),o.Z.typeOf.number("near",r),o.Z.typeOf.object("result",s);const a=2*r/(t-e),c=2*r/(n-i),u=(t+e)/(t-e),l=(n+i)/(n-i),h=-2*r;return s[0]=a,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=c,s[6]=0,s[7]=0,s[8]=u,s[9]=l,s[10]=-1,s[11]=-1,s[12]=0,s[13]=0,s[14]=h,s[15]=0,s},h.computeViewportTransformation=function(e,t,i,n){(0,a.Z)(n)||(n=new h),e=(0,s.Z)(e,s.Z.EMPTY_OBJECT);const r=(0,s.Z)(e.x,0),o=(0,s.Z)(e.y,0),c=(0,s.Z)(e.width,0),u=(0,s.Z)(e.height,0);t=(0,s.Z)(t,0);const l=.5*c,d=.5*u,f=.5*((i=(0,s.Z)(i,1))-t),p=l,m=d,_=f,Z=r+l,g=o+d,y=t+f;return n[0]=p,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=m,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=_,n[11]=0,n[12]=Z,n[13]=g,n[14]=y,n[15]=1,n},h.computeView=function(e,t,i,r,s){return o.Z.typeOf.object("position",e),o.Z.typeOf.object("direction",t),o.Z.typeOf.object("up",i),o.Z.typeOf.object("right",r),o.Z.typeOf.object("result",s),s[0]=r.x,s[1]=i.x,s[2]=-t.x,s[3]=0,s[4]=r.y,s[5]=i.y,s[6]=-t.y,s[7]=0,s[8]=r.z,s[9]=i.z,s[10]=-t.z,s[11]=0,s[12]=-n.Z.dot(r,e),s[13]=-n.Z.dot(i,e),s[14]=n.Z.dot(t,e),s[15]=1,s},h.toArray=function(e,t){return o.Z.typeOf.object("matrix",e),(0,a.Z)(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t):[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]},h.getElementIndex=function(e,t){return o.Z.typeOf.number.greaterThanOrEquals("row",t,0),o.Z.typeOf.number.lessThanOrEquals("row",t,3),o.Z.typeOf.number.greaterThanOrEquals("column",e,0),o.Z.typeOf.number.lessThanOrEquals("column",e,3),4*e+t},h.getColumn=function(e,t,i){o.Z.typeOf.object("matrix",e),o.Z.typeOf.number.greaterThanOrEquals("index",t,0),o.Z.typeOf.number.lessThanOrEquals("index",t,3),o.Z.typeOf.object("result",i);const n=4*t,r=e[n],s=e[n+1],a=e[n+2],c=e[n+3];return i.x=r,i.y=s,i.z=a,i.w=c,i},h.setColumn=function(e,t,i,n){o.Z.typeOf.object("matrix",e),o.Z.typeOf.number.greaterThanOrEquals("index",t,0),o.Z.typeOf.number.lessThanOrEquals("index",t,3),o.Z.typeOf.object("cartesian",i),o.Z.typeOf.object("result",n);const r=4*t;return(n=h.clone(e,n))[r]=i.x,n[r+1]=i.y,n[r+2]=i.z,n[r+3]=i.w,n},h.setTranslation=function(e,t,i){return o.Z.typeOf.object("matrix",e),o.Z.typeOf.object("translation",t),o.Z.typeOf.object("result",i),i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[3],i[4]=e[4],i[5]=e[5],i[6]=e[6],i[7]=e[7],i[8]=e[8],i[9]=e[9],i[10]=e[10],i[11]=e[11],i[12]=t.x,i[13]=t.y,i[14]=t.z,i[15]=e[15],i};const m=new n.Z;h.setScale=function(e,t,i){o.Z.typeOf.object("matrix",e),o.Z.typeOf.object("scale",t),o.Z.typeOf.object("result",i);const r=h.getScale(e,m),s=n.Z.divideComponents(t,r,m);return h.multiplyByScale(e,s,i)},h.getRow=function(e,t,i){o.Z.typeOf.object("matrix",e),o.Z.typeOf.number.greaterThanOrEquals("index",t,0),o.Z.typeOf.number.lessThanOrEquals("index",t,3),o.Z.typeOf.object("result",i);const n=e[t],r=e[t+4],s=e[t+8],a=e[t+12];return i.x=n,i.y=r,i.z=s,i.w=a,i},h.setRow=function(e,t,i,n){return o.Z.typeOf.object("matrix",e),o.Z.typeOf.number.greaterThanOrEquals("index",t,0),o.Z.typeOf.number.lessThanOrEquals("index",t,3),o.Z.typeOf.object("cartesian",i),o.Z.typeOf.object("result",n),(n=h.clone(e,n))[t]=i.x,n[t+4]=i.y,n[t+8]=i.z,n[t+12]=i.w,n};const _=new n.Z;h.getScale=function(e,t){return o.Z.typeOf.object("matrix",e),o.Z.typeOf.object("result",t),t.x=n.Z.magnitude(n.Z.fromElements(e[0],e[1],e[2],_)),t.y=n.Z.magnitude(n.Z.fromElements(e[4],e[5],e[6],_)),t.z=n.Z.magnitude(n.Z.fromElements(e[8],e[9],e[10],_)),t};const Z=new n.Z;h.getMaximumScale=function(e){return h.getScale(e,Z),n.Z.maximumComponent(Z)},h.multiply=function(e,t,i){o.Z.typeOf.object("left",e),o.Z.typeOf.object("right",t),o.Z.typeOf.object("result",i);const n=e[0],r=e[1],s=e[2],a=e[3],c=e[4],u=e[5],l=e[6],h=e[7],d=e[8],f=e[9],p=e[10],m=e[11],_=e[12],Z=e[13],g=e[14],y=e[15],b=t[0],A=t[1],w=t[2],v=t[3],T=t[4],C=t[5],E=t[6],x=t[7],S=t[8],O=t[9],I=t[10],D=t[11],P=t[12],R=t[13],B=t[14],M=t[15],L=n*b+c*A+d*w+_*v,N=r*b+u*A+f*w+Z*v,F=s*b+l*A+p*w+g*v,k=a*b+h*A+m*w+y*v,U=n*T+c*C+d*E+_*x,V=r*T+u*C+f*E+Z*x,z=s*T+l*C+p*E+g*x,H=a*T+h*C+m*E+y*x,G=n*S+c*O+d*I+_*D,q=r*S+u*O+f*I+Z*D,j=s*S+l*O+p*I+g*D,W=a*S+h*O+m*I+y*D,K=n*P+c*R+d*B+_*M,Y=r*P+u*R+f*B+Z*M,X=s*P+l*R+p*B+g*M,J=a*P+h*R+m*B+y*M;return i[0]=L,i[1]=N,i[2]=F,i[3]=k,i[4]=U,i[5]=V,i[6]=z,i[7]=H,i[8]=G,i[9]=q,i[10]=j,i[11]=W,i[12]=K,i[13]=Y,i[14]=X,i[15]=J,i},h.add=function(e,t,i){return o.Z.typeOf.object("left",e),o.Z.typeOf.object("right",t),o.Z.typeOf.object("result",i),i[0]=e[0]+t[0],i[1]=e[1]+t[1],i[2]=e[2]+t[2],i[3]=e[3]+t[3],i[4]=e[4]+t[4],i[5]=e[5]+t[5],i[6]=e[6]+t[6],i[7]=e[7]+t[7],i[8]=e[8]+t[8],i[9]=e[9]+t[9],i[10]=e[10]+t[10],i[11]=e[11]+t[11],i[12]=e[12]+t[12],i[13]=e[13]+t[13],i[14]=e[14]+t[14],i[15]=e[15]+t[15],i},h.subtract=function(e,t,i){return o.Z.typeOf.object("left",e),o.Z.typeOf.object("right",t),o.Z.typeOf.object("result",i),i[0]=e[0]-t[0],i[1]=e[1]-t[1],i[2]=e[2]-t[2],i[3]=e[3]-t[3],i[4]=e[4]-t[4],i[5]=e[5]-t[5],i[6]=e[6]-t[6],i[7]=e[7]-t[7],i[8]=e[8]-t[8],i[9]=e[9]-t[9],i[10]=e[10]-t[10],i[11]=e[11]-t[11],i[12]=e[12]-t[12],i[13]=e[13]-t[13],i[14]=e[14]-t[14],i[15]=e[15]-t[15],i},h.multiplyTransformation=function(e,t,i){o.Z.typeOf.object("left",e),o.Z.typeOf.object("right",t),o.Z.typeOf.object("result",i);const n=e[0],r=e[1],s=e[2],a=e[4],c=e[5],u=e[6],l=e[8],h=e[9],d=e[10],f=e[12],p=e[13],m=e[14],_=t[0],Z=t[1],g=t[2],y=t[4],b=t[5],A=t[6],w=t[8],v=t[9],T=t[10],C=t[12],E=t[13],x=t[14],S=n*_+a*Z+l*g,O=r*_+c*Z+h*g,I=s*_+u*Z+d*g,D=n*y+a*b+l*A,P=r*y+c*b+h*A,R=s*y+u*b+d*A,B=n*w+a*v+l*T,M=r*w+c*v+h*T,L=s*w+u*v+d*T,N=n*C+a*E+l*x+f,F=r*C+c*E+h*x+p,k=s*C+u*E+d*x+m;return i[0]=S,i[1]=O,i[2]=I,i[3]=0,i[4]=D,i[5]=P,i[6]=R,i[7]=0,i[8]=B,i[9]=M,i[10]=L,i[11]=0,i[12]=N,i[13]=F,i[14]=k,i[15]=1,i},h.multiplyByMatrix3=function(e,t,i){o.Z.typeOf.object("matrix",e),o.Z.typeOf.object("rotation",t),o.Z.typeOf.object("result",i);const n=e[0],r=e[1],s=e[2],a=e[4],c=e[5],u=e[6],l=e[8],h=e[9],d=e[10],f=t[0],p=t[1],m=t[2],_=t[3],Z=t[4],g=t[5],y=t[6],b=t[7],A=t[8],w=n*f+a*p+l*m,v=r*f+c*p+h*m,T=s*f+u*p+d*m,C=n*_+a*Z+l*g,E=r*_+c*Z+h*g,x=s*_+u*Z+d*g,S=n*y+a*b+l*A,O=r*y+c*b+h*A,I=s*y+u*b+d*A;return i[0]=w,i[1]=v,i[2]=T,i[3]=0,i[4]=C,i[5]=E,i[6]=x,i[7]=0,i[8]=S,i[9]=O,i[10]=I,i[11]=0,i[12]=e[12],i[13]=e[13],i[14]=e[14],i[15]=e[15],i},h.multiplyByTranslation=function(e,t,i){o.Z.typeOf.object("matrix",e),o.Z.typeOf.object("translation",t),o.Z.typeOf.object("result",i);const n=t.x,r=t.y,s=t.z,a=n*e[0]+r*e[4]+s*e[8]+e[12],c=n*e[1]+r*e[5]+s*e[9]+e[13],u=n*e[2]+r*e[6]+s*e[10]+e[14];return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[3],i[4]=e[4],i[5]=e[5],i[6]=e[6],i[7]=e[7],i[8]=e[8],i[9]=e[9],i[10]=e[10],i[11]=e[11],i[12]=a,i[13]=c,i[14]=u,i[15]=e[15],i};const g=new n.Z;h.multiplyByUniformScale=function(e,t,i){return o.Z.typeOf.object("matrix",e),o.Z.typeOf.number("scale",t),o.Z.typeOf.object("result",i),g.x=t,g.y=t,g.z=t,h.multiplyByScale(e,g,i)},h.multiplyByScale=function(e,t,i){o.Z.typeOf.object("matrix",e),o.Z.typeOf.object("scale",t),o.Z.typeOf.object("result",i);const n=t.x,r=t.y,s=t.z;return 1===n&&1===r&&1===s?h.clone(e,i):(i[0]=n*e[0],i[1]=n*e[1],i[2]=n*e[2],i[3]=0,i[4]=r*e[4],i[5]=r*e[5],i[6]=r*e[6],i[7]=0,i[8]=s*e[8],i[9]=s*e[9],i[10]=s*e[10],i[11]=0,i[12]=e[12],i[13]=e[13],i[14]=e[14],i[15]=1,i)},h.multiplyByVector=function(e,t,i){o.Z.typeOf.object("matrix",e),o.Z.typeOf.object("cartesian",t),o.Z.typeOf.object("result",i);const n=t.x,r=t.y,s=t.z,a=t.w,c=e[0]*n+e[4]*r+e[8]*s+e[12]*a,u=e[1]*n+e[5]*r+e[9]*s+e[13]*a,l=e[2]*n+e[6]*r+e[10]*s+e[14]*a,h=e[3]*n+e[7]*r+e[11]*s+e[15]*a;return i.x=c,i.y=u,i.z=l,i.w=h,i},h.multiplyByPointAsVector=function(e,t,i){o.Z.typeOf.object("matrix",e),o.Z.typeOf.object("cartesian",t),o.Z.typeOf.object("result",i);const n=t.x,r=t.y,s=t.z,a=e[0]*n+e[4]*r+e[8]*s,c=e[1]*n+e[5]*r+e[9]*s,u=e[2]*n+e[6]*r+e[10]*s;return i.x=a,i.y=c,i.z=u,i},h.multiplyByPoint=function(e,t,i){o.Z.typeOf.object("matrix",e),o.Z.typeOf.object("cartesian",t),o.Z.typeOf.object("result",i);const n=t.x,r=t.y,s=t.z,a=e[0]*n+e[4]*r+e[8]*s+e[12],c=e[1]*n+e[5]*r+e[9]*s+e[13],u=e[2]*n+e[6]*r+e[10]*s+e[14];return i.x=a,i.y=c,i.z=u,i},h.multiplyByScalar=function(e,t,i){return o.Z.typeOf.object("matrix",e),o.Z.typeOf.number("scalar",t),o.Z.typeOf.object("result",i),i[0]=e[0]*t,i[1]=e[1]*t,i[2]=e[2]*t,i[3]=e[3]*t,i[4]=e[4]*t,i[5]=e[5]*t,i[6]=e[6]*t,i[7]=e[7]*t,i[8]=e[8]*t,i[9]=e[9]*t,i[10]=e[10]*t,i[11]=e[11]*t,i[12]=e[12]*t,i[13]=e[13]*t,i[14]=e[14]*t,i[15]=e[15]*t,i},h.negate=function(e,t){return o.Z.typeOf.object("matrix",e),o.Z.typeOf.object("result",t),t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t[4]=-e[4],t[5]=-e[5],t[6]=-e[6],t[7]=-e[7],t[8]=-e[8],t[9]=-e[9],t[10]=-e[10],t[11]=-e[11],t[12]=-e[12],t[13]=-e[13],t[14]=-e[14],t[15]=-e[15],t},h.transpose=function(e,t){o.Z.typeOf.object("matrix",e),o.Z.typeOf.object("result",t);const i=e[1],n=e[2],r=e[3],s=e[6],a=e[7],c=e[11];return t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=i,t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=s,t[10]=e[10],t[11]=e[14],t[12]=r,t[13]=a,t[14]=c,t[15]=e[15],t},h.abs=function(e,t){return o.Z.typeOf.object("matrix",e),o.Z.typeOf.object("result",t),t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t[3]=Math.abs(e[3]),t[4]=Math.abs(e[4]),t[5]=Math.abs(e[5]),t[6]=Math.abs(e[6]),t[7]=Math.abs(e[7]),t[8]=Math.abs(e[8]),t[9]=Math.abs(e[9]),t[10]=Math.abs(e[10]),t[11]=Math.abs(e[11]),t[12]=Math.abs(e[12]),t[13]=Math.abs(e[13]),t[14]=Math.abs(e[14]),t[15]=Math.abs(e[15]),t},h.equals=function(e,t){return e===t||(0,a.Z)(e)&&(0,a.Z)(t)&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[3]===t[3]&&e[7]===t[7]&&e[11]===t[11]&&e[15]===t[15]},h.equalsEpsilon=function(e,t,i){return i=(0,s.Z)(i,0),e===t||(0,a.Z)(e)&&(0,a.Z)(t)&&Math.abs(e[0]-t[0])<=i&&Math.abs(e[1]-t[1])<=i&&Math.abs(e[2]-t[2])<=i&&Math.abs(e[3]-t[3])<=i&&Math.abs(e[4]-t[4])<=i&&Math.abs(e[5]-t[5])<=i&&Math.abs(e[6]-t[6])<=i&&Math.abs(e[7]-t[7])<=i&&Math.abs(e[8]-t[8])<=i&&Math.abs(e[9]-t[9])<=i&&Math.abs(e[10]-t[10])<=i&&Math.abs(e[11]-t[11])<=i&&Math.abs(e[12]-t[12])<=i&&Math.abs(e[13]-t[13])<=i&&Math.abs(e[14]-t[14])<=i&&Math.abs(e[15]-t[15])<=i},h.getTranslation=function(e,t){return o.Z.typeOf.object("matrix",e),o.Z.typeOf.object("result",t),t.x=e[12],t.y=e[13],t.z=e[14],t},h.getMatrix3=function(e,t){return o.Z.typeOf.object("matrix",e),o.Z.typeOf.object("result",t),t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t};const y=new u.Z,b=new u.Z,A=new r.Z,w=new r.Z(0,0,0,1);h.inverse=function(e,t){o.Z.typeOf.object("matrix",e),o.Z.typeOf.object("result",t);const i=e[0],n=e[4],s=e[8],a=e[12],d=e[1],f=e[5],p=e[9],m=e[13],_=e[2],Z=e[6],g=e[10],v=e[14],T=e[3],C=e[7],E=e[11],x=e[15];let S=g*x,O=v*E,I=Z*x,D=v*C,P=Z*E,R=g*C,B=_*x,M=v*T,L=_*E,N=g*T,F=_*C,k=Z*T;const U=S*f+D*p+P*m-(O*f+I*p+R*m),V=O*d+B*p+N*m-(S*d+M*p+L*m),z=I*d+M*f+F*m-(D*d+B*f+k*m),H=R*d+L*f+k*p-(P*d+N*f+F*p),G=O*n+I*s+R*a-(S*n+D*s+P*a),q=S*i+M*s+L*a-(O*i+B*s+N*a),j=D*i+B*n+k*a-(I*i+M*n+F*a),W=P*i+N*n+F*s-(R*i+L*n+k*s);S=s*m,O=a*p,I=n*m,D=a*f,P=n*p,R=s*f,B=i*m,M=a*d,L=i*p,N=s*d,F=i*f,k=n*d;const K=S*C+D*E+P*x-(O*C+I*E+R*x),Y=O*T+B*E+N*x-(S*T+M*E+L*x),X=I*T+M*C+F*x-(D*T+B*C+k*x),J=R*T+L*C+k*E-(P*T+N*C+F*E),Q=I*g+R*v+O*Z-(P*v+S*Z+D*g),$=L*v+S*_+M*g-(B*g+N*v+O*_),ee=B*Z+k*v+D*_-(F*v+I*_+M*Z),te=F*g+P*_+N*Z-(L*Z+k*g+R*_);let ie=i*U+n*V+s*z+a*H;if(Math.abs(ie){"use strict";i.d(t,{Z:()=>h});var n=i(357299),r=i(426468),o=i(446938);const s={};function a(e){return 1431655765&((e=858993459&((e=252645135&((e=16711935&(e^e<<8))^e<<4))^e<<2))^e<<1)}function c(e){return 153391689&((e=51130563&((e=50393103&((e=50331903&(e^e<<16))^e<<8))^e<<4))^e<<2)}function u(e){return 65535&((e=16711935&((e=252645135&((e=858993459&((e&=1431655765)^e>>1))^e>>2))^e>>4))^e>>8)}function l(e){return 1023&((e=4278190335&((e=50393103&((e=51130563&((e&=153391689)^e>>2))^e>>4))^e>>8))^e>>16)}s.encode2D=function(e,t){if(n.Z.typeOf.number("x",e),n.Z.typeOf.number("y",t),e<0||e>65535||t<0||t>65535)throw new o.Z("inputs must be 16-bit unsigned integers");return(a(e)|a(t)<<1)>>>0},s.decode2D=function(e,t){if(n.Z.typeOf.number("mortonIndex",e),e<0||e>4294967295)throw new o.Z("input must be a 32-bit unsigned integer");return(0,r.Z)(t)||(t=new Array(2)),t[0]=u(e),t[1]=u(e>>1),t},s.encode3D=function(e,t,i){if(n.Z.typeOf.number("x",e),n.Z.typeOf.number("y",t),n.Z.typeOf.number("z",i),e<0||e>1023||t<0||t>1023||i<0||i>1023)throw new o.Z("inputs must be 10-bit unsigned integers");return c(e)|c(t)<<1|c(i)<<2},s.decode3D=function(e,t){if(n.Z.typeOf.number("mortonIndex",e),e<0||e>1073741823)throw new o.Z("input must be a 30-bit unsigned integer");return(0,r.Z)(t)||(t=new Array(3)),t[0]=l(e),t[1]=l(e>>1),t[2]=l(e>>2),t};const h=s},530109:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(406144),r=i(426468),o=i(446938);function s(e,t,i,r){this.near=(0,n.Z)(e,0),this.nearValue=(0,n.Z)(t,0),this.far=(0,n.Z)(i,1),this.farValue=(0,n.Z)(r,0)}s.clone=function(e,t){if((0,r.Z)(e))return(0,r.Z)(t)?(t.near=e.near,t.nearValue=e.nearValue,t.far=e.far,t.farValue=e.farValue,t):new s(e.near,e.nearValue,e.far,e.farValue)},s.packedLength=4,s.pack=function(e,t,i){if(!(0,r.Z)(e))throw new o.Z("value is required");if(!(0,r.Z)(t))throw new o.Z("array is required");return i=(0,n.Z)(i,0),t[i++]=e.near,t[i++]=e.nearValue,t[i++]=e.far,t[i]=e.farValue,t},s.unpack=function(e,t,i){if(!(0,r.Z)(e))throw new o.Z("array is required");return t=(0,n.Z)(t,0),(0,r.Z)(i)||(i=new s),i.near=e[t++],i.nearValue=e[t++],i.far=e[t++],i.farValue=e[t],i},s.equals=function(e,t){return e===t||(0,r.Z)(e)&&(0,r.Z)(t)&&e.near===t.near&&e.nearValue===t.nearValue&&e.far===t.far&&e.farValue===t.farValue},s.prototype.clone=function(e){return s.clone(this,e)},s.prototype.equals=function(e){return s.equals(this,e)};const a=s},817200:(e,t,i)=>{"use strict";i.d(t,{Z:()=>C});var n=i(360791),r=i(919382),o=i(406144),s=i(426468),a=i(446938),c=i(253316),u=i(362017),l=i(523501),h=i(137134);function d(e,t){if(!(0,s.Z)(e))throw new a.Z("occluderBoundingSphere is required.");if(!(0,s.Z)(t))throw new a.Z("camera position is required.");this._occluderPosition=r.Z.clone(e.center),this._occluderRadius=e.radius,this._horizonDistance=0,this._horizonPlaneNormal=void 0,this._horizonPlanePosition=void 0,this._cameraPosition=void 0,this.cameraPosition=t}const f=new r.Z;Object.defineProperties(d.prototype,{position:{get:function(){return this._occluderPosition}},radius:{get:function(){return this._occluderRadius}},cameraPosition:{set:function(e){if(!(0,s.Z)(e))throw new a.Z("cameraPosition is required.");e=r.Z.clone(e,this._cameraPosition);const t=r.Z.subtract(this._occluderPosition,e,f);let i=r.Z.magnitudeSquared(t);const n=this._occluderRadius*this._occluderRadius;let o,c,u;if(i>n){o=Math.sqrt(i-n),i=1/Math.sqrt(i),c=r.Z.multiplyByScalar(t,i,f);const s=o*o*i;u=r.Z.add(e,r.Z.multiplyByScalar(c,s,f),f)}else o=Number.MAX_VALUE;this._horizonDistance=o,this._horizonPlaneNormal=c,this._horizonPlanePosition=u,this._cameraPosition=e}}}),d.fromBoundingSphere=function(e,t,i){if(!(0,s.Z)(e))throw new a.Z("occluderBoundingSphere is required.");if(!(0,s.Z)(t))throw new a.Z("camera position is required.");return(0,s.Z)(i)?(r.Z.clone(e.center,i._occluderPosition),i._occluderRadius=e.radius,i.cameraPosition=t,i):new d(e,t)};const p=new r.Z;d.prototype.isPointVisible=function(e){if(this._horizonDistance!==Number.MAX_VALUE){let t=r.Z.subtract(e,this._occluderPosition,p),i=this._occluderRadius;if(i=r.Z.magnitudeSquared(t)-i*i,i>0)return i=Math.sqrt(i)+this._horizonDistance,t=r.Z.subtract(e,this._cameraPosition,t),i*i>r.Z.magnitudeSquared(t)}return!1};const m=new r.Z;d.prototype.isBoundingSphereVisible=function(e){const t=r.Z.clone(e.center,m),i=e.radius;if(this._horizonDistance!==Number.MAX_VALUE){let e=r.Z.subtract(t,this._occluderPosition,p),n=this._occluderRadius-i;if(n=r.Z.magnitudeSquared(e)-n*n,i0&&(n=Math.sqrt(n)+this._horizonDistance,e=r.Z.subtract(t,this._cameraPosition,e),n*n+i*i>r.Z.magnitudeSquared(e));if(n>0){e=r.Z.subtract(t,this._cameraPosition,e);const o=r.Z.magnitudeSquared(e),s=this._occluderRadius*this._occluderRadius,a=i*i;return(this._horizonDistance*this._horizonDistance+s)*a>o*s||(n=Math.sqrt(n)+this._horizonDistance,n*n+a>o)}return!0}return!1};const _=new r.Z;d.prototype.computeVisibility=function(e){if(!(0,s.Z)(e))throw new a.Z("occludeeBS is required.");const t=r.Z.clone(e.center),i=e.radius;if(i>this._occluderRadius)return h.Z.FULL;if(this._horizonDistance!==Number.MAX_VALUE){let e=r.Z.subtract(t,this._occluderPosition,_),n=this._occluderRadius-i;const o=r.Z.magnitudeSquared(e);if(n=o-n*n,n>0){n=Math.sqrt(n)+this._horizonDistance,e=r.Z.subtract(t,this._cameraPosition,e);const s=r.Z.magnitudeSquared(e);return n*n+i*i0?(n=Math.sqrt(n)+this._horizonDistance,s-i?h.Z.PARTIAL:h.Z.FULL))}}return h.Z.NONE};const Z=new r.Z;d.computeOccludeePoint=function(e,t,i){if(!(0,s.Z)(e))throw new a.Z("occluderBoundingSphere is required.");if(!(0,s.Z)(i))throw new a.Z("positions is required.");if(0===i.length)throw new a.Z("positions must contain at least one element");const n=r.Z.clone(t),o=r.Z.clone(e.center),c=e.radius,u=i.length;if(r.Z.equals(o,t))throw new a.Z("occludeePosition must be different than occluderBoundingSphere.center");const l=r.Z.normalize(r.Z.subtract(n,o,Z),Z),h=-r.Z.dot(l,o),f=d._anyRotationVector(o,l,h);let p,m=d._horizonToPlaneNormalDotProduct(e,l,h,f,i[0]);if(!m)return;for(let t=1;tn.y?0:1;(0===o&&n.z>n.x||1===o&&n.z>n.y)&&(o=2);const s=new r.Z;let a;0===o?(n.x=e.x,n.y=e.y+1,n.z=e.z+1,a=r.Z.UNIT_X):1===o?(n.x=e.x+1,n.y=e.y,n.z=e.z+1,a=r.Z.UNIT_Y):(n.x=e.x+1,n.y=e.y+1,n.z=e.z,a=r.Z.UNIT_Z);const c=(r.Z.dot(t,n)+i)/-r.Z.dot(t,a);return r.Z.normalize(r.Z.subtract(r.Z.add(n,r.Z.multiplyByScalar(a,c,s),n),e,n),n)};const b=new r.Z;d._rotationVector=function(e,t,i,n,o){let s=r.Z.subtract(n,e,b);if(s=r.Z.normalize(s,s),r.Z.dot(t,s)<.9999999847691291){const e=r.Z.cross(t,s,s);if(r.Z.magnitude(e)>u.Z.EPSILON13)return r.Z.normalize(e,new r.Z)}return o};const A=new r.Z,w=new r.Z,v=new r.Z,T=new r.Z;d._horizonToPlaneNormalDotProduct=function(e,t,i,n,o){const s=r.Z.clone(o,A),a=r.Z.clone(e.center,w),c=e.radius;let u=r.Z.subtract(a,s,v);const l=r.Z.magnitudeSquared(u),h=c*c;if(l{"use strict";i.d(t,{Z:()=>c});var n=i(357299),r=i(997274),o=i(406144),s=i(426468);function a(e,t,i){e=(0,o.Z)(e,0),t=(0,o.Z)(t,0),i=(0,o.Z)(i,0),this.value=new Float32Array([e,t,i])}Object.defineProperties(a.prototype,{componentDatatype:{get:function(){return r.Z.FLOAT}},componentsPerAttribute:{get:function(){return 3}},normalize:{get:function(){return!1}}}),a.fromCartesian3=function(e){return n.Z.defined("offset",e),new a(e.x,e.y,e.z)},a.toValue=function(e,t){return n.Z.defined("offset",e),(0,s.Z)(t)||(t=new Float32Array([e.x,e.y,e.z])),t[0]=e.x,t[1]=e.y,t[2]=e.z,t};const c=a},529527:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(919382),r=i(357299),o=i(307260),s=i(406144),a=i(426468),c=i(523501),u=i(795788);function l(e,t,i){r.Z.defined("url",e),r.Z.defined("apiKey",t),(0,a.Z)(i)&&r.Z.typeOf.object("params",i),(e=u.Z.createIfNeeded(e)).appendForwardSlash(),e.setQueryParameters({key:t}),this._url=e,this._params=(0,s.Z)(i,{})}Object.defineProperties(l.prototype,{url:{get:function(){return this._url}},params:{get:function(){return this._params}}}),l.prototype.geocode=function(e){return r.Z.typeOf.string("query",e),this._url.getDerivedResource({url:"json",queryParameters:(0,o.Z)(this._params,{q:e})}).fetchJson().then((function(e){return e.results.map((function(e){let t;const i=e.bounds;if((0,a.Z)(i))t=c.Z.fromDegrees(i.southwest.lng,i.southwest.lat,i.northeast.lng,i.northeast.lat);else{const i=e.geometry.lat,r=e.geometry.lng;t=n.Z.fromDegrees(i,r)}return{displayName:e.formatted,destination:t}}))}))};const h=l},126874:(e,t,i)=>{"use strict";i.d(t,{Z:()=>de});var n=i(360791),r=i(337968),o=i(919382),s=i(698907),a=i(357299),c=i(406144),u=i(426468),l=i(446938),h=i(253316),d=i(460117),f=i(360382),p=i(62001),m=i(362017),_=i(165373),Z=i(634878),g=i(523501);function y(e,t){this.center=o.Z.clone((0,c.Z)(e,o.Z.ZERO)),this.halfAxes=_.Z.clone((0,c.Z)(t,_.Z.ZERO))}y.packedLength=o.Z.packedLength+_.Z.packedLength,y.pack=function(e,t,i){return a.Z.typeOf.object("value",e),a.Z.defined("array",t),i=(0,c.Z)(i,0),o.Z.pack(e.center,t,i),_.Z.pack(e.halfAxes,t,i+o.Z.packedLength),t},y.unpack=function(e,t,i){return a.Z.defined("array",e),t=(0,c.Z)(t,0),(0,u.Z)(i)||(i=new y),o.Z.unpack(e,t,i.center),_.Z.unpack(e,t+o.Z.packedLength,i.halfAxes),i};const b=new o.Z,A=new o.Z,w=new o.Z,v=new o.Z,T=new o.Z,C=new o.Z,E=new _.Z,x={unitary:new _.Z,diagonal:new _.Z};y.fromPoints=function(e,t){if((0,u.Z)(t)||(t=new y),!(0,u.Z)(e)||0===e.length)return t.halfAxes=_.Z.ZERO,t.center=o.Z.ZERO,t;let i;const n=e.length,r=o.Z.clone(e[0],b);for(i=1;im.Z.TWO_PI)throw new l.Z("Rectangle width must be between 0 and 2*pi");if(e.height<0||e.height>m.Z.PI)throw new l.Z("Rectangle height must be between 0 and pi");if((0,u.Z)(n)&&!m.Z.equalsEpsilon(n.radii.x,n.radii.y,m.Z.EPSILON15))throw new l.Z("Ellipsoid must be an ellipsoid of revolution (radii.x == radii.y)");let a,f,p,_,y,b,A;if(t=(0,c.Z)(t,0),i=(0,c.Z)(i,0),n=(0,c.Z)(n,h.Z.WGS84),e.width<=m.Z.PI){const o=g.Z.center(e,D),c=n.cartographicToCartesian(o,P),u=new d.Z(c,n);A=u.plane;const l=o.longitude,h=e.south<0&&e.north>0?0:o.latitude,m=s.Z.fromRadians(l,e.north,i,R),w=s.Z.fromRadians(e.west,e.north,i,B),v=s.Z.fromRadians(e.west,h,i,M),T=s.Z.fromRadians(e.west,e.south,i,L),C=s.Z.fromRadians(l,e.south,i,N),E=n.cartographicToCartesian(m,F);let x=n.cartographicToCartesian(w,k);const S=n.cartographicToCartesian(v,U);let O=n.cartographicToCartesian(T,V);const K=n.cartographicToCartesian(C,z),Y=u.projectPointToNearestOnPlane(E,H),X=u.projectPointToNearestOnPlane(x,G),J=u.projectPointToNearestOnPlane(S,q),Q=u.projectPointToNearestOnPlane(O,j),$=u.projectPointToNearestOnPlane(K,W);return a=Math.min(X.x,J.x,Q.x),f=-a,_=Math.max(X.y,Y.y),p=Math.min(Q.y,$.y),w.height=T.height=t,x=n.cartographicToCartesian(w,k),O=n.cartographicToCartesian(T,V),y=Math.min(Z.Z.getPointDistance(A,x),Z.Z.getPointDistance(A,O)),b=i,I(u.origin,u.xAxis,u.yAxis,u.zAxis,a,f,p,_,y,b,r)}const w=e.south>0,v=e.north<0,T=w?e.south:v?e.north:0,C=g.Z.center(e,D).longitude,E=o.Z.fromRadians(C,T,i,n,K);E.z=0;const x=Math.abs(E.x)=h?f.Z.INSIDE:f.Z.INTERSECTING};const ne=new o.Z,re=new o.Z,oe=new o.Z,se=new o.Z,ae=new o.Z,ce=new o.Z;y.distanceSquaredTo=function(e,t){if(!(0,u.Z)(e))throw new l.Z("box is required.");if(!(0,u.Z)(t))throw new l.Z("cartesian is required.");const i=o.Z.subtract(t,e.center,S),n=e.halfAxes;let r=_.Z.getColumn(n,0,ne),s=_.Z.getColumn(n,1,re),a=_.Z.getColumn(n,2,oe);const c=o.Z.magnitude(r),h=o.Z.magnitude(s),d=o.Z.magnitude(a);let f=!0,p=!0,Z=!0;c>0?o.Z.divideByScalar(r,c,r):f=!1,h>0?o.Z.divideByScalar(s,h,s):p=!1,d>0?o.Z.divideByScalar(a,d,a):Z=!1;const g=!f+!p+!Z;let y,b,A;if(1===g){let e=r;y=s,b=a,p?Z||(e=a,b=r):(e=s,y=r),A=o.Z.cross(y,b,ae),e===r?r=A:e===s?s=A:e===a&&(a=A)}else if(2===g){y=r,p?y=s:Z&&(y=a);let e=o.Z.UNIT_Y;e.equalsEpsilon(y,m.Z.EPSILON3)&&(e=o.Z.UNIT_X),b=o.Z.cross(y,e,se),o.Z.normalize(b,b),A=o.Z.cross(y,b,ae),o.Z.normalize(A,A),y===r?(s=b,a=A):y===s?(a=b,r=A):y===a&&(r=b,s=A)}else 3===g&&(r=o.Z.UNIT_X,s=o.Z.UNIT_Y,a=o.Z.UNIT_Z);const w=ce;w.x=o.Z.dot(i,r),w.y=o.Z.dot(i,s),w.z=o.Z.dot(i,a);let v,T=0;return w.x<-c?(v=w.x+c,T+=v*v):w.x>c&&(v=w.x-c,T+=v*v),w.y<-h?(v=w.y+h,T+=v*v):w.y>h&&(v=w.y-h,T+=v*v),w.z<-d?(v=w.z+d,T+=v*v):w.z>d&&(v=w.z-d,T+=v*v),T};const ue=new o.Z,le=new o.Z;y.computePlaneDistances=function(e,t,i,n){if(!(0,u.Z)(e))throw new l.Z("box is required.");if(!(0,u.Z)(t))throw new l.Z("position is required.");if(!(0,u.Z)(i))throw new l.Z("direction is required.");(0,u.Z)(n)||(n=new p.Z);let r=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY;const a=e.center,c=e.halfAxes,h=_.Z.getColumn(c,0,ne),d=_.Z.getColumn(c,1,re),f=_.Z.getColumn(c,2,oe),m=o.Z.add(h,d,ue);o.Z.add(m,f,m),o.Z.add(m,a,m);const Z=o.Z.subtract(m,t,le);let g=o.Z.dot(i,Z);return r=Math.min(g,r),s=Math.max(g,s),o.Z.add(a,h,m),o.Z.add(m,d,m),o.Z.subtract(m,f,m),o.Z.subtract(m,t,Z),g=o.Z.dot(i,Z),r=Math.min(g,r),s=Math.max(g,s),o.Z.add(a,h,m),o.Z.subtract(m,d,m),o.Z.add(m,f,m),o.Z.subtract(m,t,Z),g=o.Z.dot(i,Z),r=Math.min(g,r),s=Math.max(g,s),o.Z.add(a,h,m),o.Z.subtract(m,d,m),o.Z.subtract(m,f,m),o.Z.subtract(m,t,Z),g=o.Z.dot(i,Z),r=Math.min(g,r),s=Math.max(g,s),o.Z.subtract(a,h,m),o.Z.add(m,d,m),o.Z.add(m,f,m),o.Z.subtract(m,t,Z),g=o.Z.dot(i,Z),r=Math.min(g,r),s=Math.max(g,s),o.Z.subtract(a,h,m),o.Z.add(m,d,m),o.Z.subtract(m,f,m),o.Z.subtract(m,t,Z),g=o.Z.dot(i,Z),r=Math.min(g,r),s=Math.max(g,s),o.Z.subtract(a,h,m),o.Z.subtract(m,d,m),o.Z.add(m,f,m),o.Z.subtract(m,t,Z),g=o.Z.dot(i,Z),r=Math.min(g,r),s=Math.max(g,s),o.Z.subtract(a,h,m),o.Z.subtract(m,d,m),o.Z.subtract(m,f,m),o.Z.subtract(m,t,Z),g=o.Z.dot(i,Z),r=Math.min(g,r),s=Math.max(g,s),n.start=r,n.stop=s,n};const he=new n.Z;y.isOccluded=function(e,t){if(!(0,u.Z)(e))throw new l.Z("box is required.");if(!(0,u.Z)(t))throw new l.Z("occluder is required.");const i=n.Z.fromOrientedBoundingBox(e,he);return!t.isBoundingSphereVisible(i)},y.prototype.intersectPlane=function(e){return y.intersectPlane(this,e)},y.prototype.distanceSquaredTo=function(e){return y.distanceSquaredTo(this,e)},y.prototype.computePlaneDistances=function(e,t,i){return y.computePlaneDistances(this,e,t,i)},y.prototype.isOccluded=function(e){return y.isOccluded(this,e)},y.equals=function(e,t){return e===t||(0,u.Z)(e)&&(0,u.Z)(t)&&o.Z.equals(e.center,t.center)&&_.Z.equals(e.halfAxes,t.halfAxes)},y.prototype.clone=function(e){return y.clone(this,e)},y.prototype.equals=function(e){return y.equals(this,e)};const de=y},610490:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(357299),r=i(406144),o=i(426468),s=i(446938),a=i(362017),c=i(736404);function u(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),this._offCenterFrustum=new c.Z,this.width=e.width,this._width=void 0,this.aspectRatio=e.aspectRatio,this._aspectRatio=void 0,this.near=(0,r.Z)(e.near,1),this._near=this.near,this.far=(0,r.Z)(e.far,5e8),this._far=this.far}function l(e){if(!((0,o.Z)(e.width)&&(0,o.Z)(e.aspectRatio)&&(0,o.Z)(e.near)&&(0,o.Z)(e.far)))throw new s.Z("width, aspectRatio, near, or far parameters are not set.");const t=e._offCenterFrustum;if(e.width!==e._width||e.aspectRatio!==e._aspectRatio||e.near!==e._near||e.far!==e._far){if(e.aspectRatio<0)throw new s.Z("aspectRatio must be positive.");if(e.near<0||e.near>e.far)throw new s.Z("near must be greater than zero and less than far.");e._aspectRatio=e.aspectRatio,e._width=e.width,e._near=e.near,e._far=e.far;const i=1/e.aspectRatio;t.right=.5*e.width,t.left=-t.right,t.top=i*t.right,t.bottom=-t.top,t.near=e.near,t.far=e.far}}u.packedLength=4,u.pack=function(e,t,i){return n.Z.typeOf.object("value",e),n.Z.defined("array",t),i=(0,r.Z)(i,0),t[i++]=e.width,t[i++]=e.aspectRatio,t[i++]=e.near,t[i]=e.far,t},u.unpack=function(e,t,i){return n.Z.defined("array",e),t=(0,r.Z)(t,0),(0,o.Z)(i)||(i=new u),i.width=e[t++],i.aspectRatio=e[t++],i.near=e[t++],i.far=e[t],i},Object.defineProperties(u.prototype,{projectionMatrix:{get:function(){return l(this),this._offCenterFrustum.projectionMatrix}}}),u.prototype.computeCullingVolume=function(e,t,i){return l(this),this._offCenterFrustum.computeCullingVolume(e,t,i)},u.prototype.getPixelDimensions=function(e,t,i,n,r){return l(this),this._offCenterFrustum.getPixelDimensions(e,t,i,n,r)},u.prototype.clone=function(e){return(0,o.Z)(e)||(e=new u),e.aspectRatio=this.aspectRatio,e.width=this.width,e.near=this.near,e.far=this.far,e._aspectRatio=void 0,e._width=void 0,e._near=void 0,e._far=void 0,this._offCenterFrustum.clone(e._offCenterFrustum),e},u.prototype.equals=function(e){return!!((0,o.Z)(e)&&e instanceof u)&&(l(this),l(e),this.width===e.width&&this.aspectRatio===e.aspectRatio&&this._offCenterFrustum.equals(e._offCenterFrustum))},u.prototype.equalsEpsilon=function(e,t,i){return!!((0,o.Z)(e)&&e instanceof u)&&(l(this),l(e),a.Z.equalsEpsilon(this.width,e.width,t,i)&&a.Z.equalsEpsilon(this.aspectRatio,e.aspectRatio,t,i)&&this._offCenterFrustum.equalsEpsilon(e._offCenterFrustum,t,i))};const h=u},736404:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Z});var n=i(919382),r=i(114754),o=i(700725),s=i(406144),a=i(426468),c=i(446938),u=i(362017),l=i(583917);function h(e){e=(0,s.Z)(e,s.Z.EMPTY_OBJECT),this.left=e.left,this._left=void 0,this.right=e.right,this._right=void 0,this.top=e.top,this._top=void 0,this.bottom=e.bottom,this._bottom=void 0,this.near=(0,s.Z)(e.near,1),this._near=this.near,this.far=(0,s.Z)(e.far,5e8),this._far=this.far,this._cullingVolume=new o.Z,this._orthographicMatrix=new l.Z}function d(e){if(!((0,a.Z)(e.right)&&(0,a.Z)(e.left)&&(0,a.Z)(e.top)&&(0,a.Z)(e.bottom)&&(0,a.Z)(e.near)&&(0,a.Z)(e.far)))throw new c.Z("right, left, top, bottom, near, or far parameters are not set.");if(e.top!==e._top||e.bottom!==e._bottom||e.left!==e._left||e.right!==e._right||e.near!==e._near||e.far!==e._far){if(e.left>e.right)throw new c.Z("right must be greater than left.");if(e.bottom>e.top)throw new c.Z("top must be greater than bottom.");if(e.near<=0||e.near>e.far)throw new c.Z("near must be greater than zero and less than far.");e._left=e.left,e._right=e.right,e._top=e.top,e._bottom=e.bottom,e._near=e.near,e._far=e.far,e._orthographicMatrix=l.Z.computeOrthographicOffCenter(e.left,e.right,e.bottom,e.top,e.near,e.far,e._orthographicMatrix)}}Object.defineProperties(h.prototype,{projectionMatrix:{get:function(){return d(this),this._orthographicMatrix}}});const f=new n.Z,p=new n.Z,m=new n.Z,_=new n.Z;h.prototype.computeCullingVolume=function(e,t,i){if(!(0,a.Z)(e))throw new c.Z("position is required.");if(!(0,a.Z)(t))throw new c.Z("direction is required.");if(!(0,a.Z)(i))throw new c.Z("up is required.");const o=this._cullingVolume.planes,s=this.top,u=this.bottom,l=this.right,h=this.left,d=this.near,Z=this.far,g=n.Z.cross(t,i,f);n.Z.normalize(g,g);const y=p;n.Z.multiplyByScalar(t,d,y),n.Z.add(e,y,y);const b=m;n.Z.multiplyByScalar(g,h,b),n.Z.add(y,b,b);let A=o[0];return(0,a.Z)(A)||(A=o[0]=new r.Z),A.x=g.x,A.y=g.y,A.z=g.z,A.w=-n.Z.dot(g,b),n.Z.multiplyByScalar(g,l,b),n.Z.add(y,b,b),A=o[1],(0,a.Z)(A)||(A=o[1]=new r.Z),A.x=-g.x,A.y=-g.y,A.z=-g.z,A.w=-n.Z.dot(n.Z.negate(g,_),b),n.Z.multiplyByScalar(i,u,b),n.Z.add(y,b,b),A=o[2],(0,a.Z)(A)||(A=o[2]=new r.Z),A.x=i.x,A.y=i.y,A.z=i.z,A.w=-n.Z.dot(i,b),n.Z.multiplyByScalar(i,s,b),n.Z.add(y,b,b),A=o[3],(0,a.Z)(A)||(A=o[3]=new r.Z),A.x=-i.x,A.y=-i.y,A.z=-i.z,A.w=-n.Z.dot(n.Z.negate(i,_),b),A=o[4],(0,a.Z)(A)||(A=o[4]=new r.Z),A.x=t.x,A.y=t.y,A.z=t.z,A.w=-n.Z.dot(t,y),n.Z.multiplyByScalar(t,Z,b),n.Z.add(e,b,b),A=o[5],(0,a.Z)(A)||(A=o[5]=new r.Z),A.x=-t.x,A.y=-t.y,A.z=-t.z,A.w=-n.Z.dot(n.Z.negate(t,_),b),this._cullingVolume},h.prototype.getPixelDimensions=function(e,t,i,n,r){if(d(this),!(0,a.Z)(e)||!(0,a.Z)(t))throw new c.Z("Both drawingBufferWidth and drawingBufferHeight are required.");if(e<=0)throw new c.Z("drawingBufferWidth must be greater than zero.");if(t<=0)throw new c.Z("drawingBufferHeight must be greater than zero.");if(!(0,a.Z)(i))throw new c.Z("distance is required.");if(!(0,a.Z)(n))throw new c.Z("pixelRatio is required.");if(n<=0)throw new c.Z("pixelRatio must be greater than zero.");if(!(0,a.Z)(r))throw new c.Z("A result object is required.");const o=n*(this.right-this.left)/e,s=n*(this.top-this.bottom)/t;return r.x=o,r.y=s,r},h.prototype.clone=function(e){return(0,a.Z)(e)||(e=new h),e.left=this.left,e.right=this.right,e.top=this.top,e.bottom=this.bottom,e.near=this.near,e.far=this.far,e._left=void 0,e._right=void 0,e._top=void 0,e._bottom=void 0,e._near=void 0,e._far=void 0,e},h.prototype.equals=function(e){return(0,a.Z)(e)&&e instanceof h&&this.right===e.right&&this.left===e.left&&this.top===e.top&&this.bottom===e.bottom&&this.near===e.near&&this.far===e.far},h.prototype.equalsEpsilon=function(e,t,i){return e===this||(0,a.Z)(e)&&e instanceof h&&u.Z.equalsEpsilon(this.right,e.right,t,i)&&u.Z.equalsEpsilon(this.left,e.left,t,i)&&u.Z.equalsEpsilon(this.top,e.top,t,i)&&u.Z.equalsEpsilon(this.bottom,e.bottom,t,i)&&u.Z.equalsEpsilon(this.near,e.near,t,i)&&u.Z.equalsEpsilon(this.far,e.far,t,i)};const Z=h},350598:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(446938);const r={packedLength:void 0,pack:n.Z.throwInstantiationError,unpack:n.Z.throwInstantiationError}},91788:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(446938);const r={packedInterpolationLength:void 0,convertPackedArrayForInterpolation:n.Z.throwInstantiationError,unpackInterpolationResult:n.Z.throwInstantiationError}},489935:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(919382),r=i(357299),o=i(426468),s=i(640839),a=i(523501),c=i(795788);function u(e){r.Z.defined("url",e),this._url=c.Z.createIfNeeded(e),this._url.appendForwardSlash()}Object.defineProperties(u.prototype,{url:{get:function(){return this._url}}}),u.prototype.geocode=function(e,t){return r.Z.typeOf.string("query",e),this._url.getDerivedResource({url:t===s.Z.AUTOCOMPLETE?"autocomplete":"search",queryParameters:{text:e}}).fetchJson().then((function(e){return e.features.map((function(e){let t;const i=e.bbox;if((0,o.Z)(i))t=a.Z.fromDegrees(i[0],i[1],i[2],i[3]);else{const i=e.geometry.coordinates[0],r=e.geometry.coordinates[1];t=n.Z.fromDegrees(i,r)}return{displayName:e.properties.label,destination:t}}))}))};const l=u},118121:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(357299),r=i(406144),o=i(426468),s=i(446938),a=i(362017),c=i(348808);function u(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),this._offCenterFrustum=new c.Z,this.fov=e.fov,this._fov=void 0,this._fovy=void 0,this._sseDenominator=void 0,this.aspectRatio=e.aspectRatio,this._aspectRatio=void 0,this.near=(0,r.Z)(e.near,1),this._near=this.near,this.far=(0,r.Z)(e.far,5e8),this._far=this.far,this.xOffset=(0,r.Z)(e.xOffset,0),this._xOffset=this.xOffset,this.yOffset=(0,r.Z)(e.yOffset,0),this._yOffset=this.yOffset}function l(e){if(!((0,o.Z)(e.fov)&&(0,o.Z)(e.aspectRatio)&&(0,o.Z)(e.near)&&(0,o.Z)(e.far)))throw new s.Z("fov, aspectRatio, near, or far parameters are not set.");const t=e._offCenterFrustum;if(e.fov!==e._fov||e.aspectRatio!==e._aspectRatio||e.near!==e._near||e.far!==e._far||e.xOffset!==e._xOffset||e.yOffset!==e._yOffset){if(e.fov<0||e.fov>=Math.PI)throw new s.Z("fov must be in the range [0, PI).");if(e.aspectRatio<0)throw new s.Z("aspectRatio must be positive.");if(e.near<0||e.near>e.far)throw new s.Z("near must be greater than zero and less than far.");e._aspectRatio=e.aspectRatio,e._fov=e.fov,e._fovy=e.aspectRatio<=1?e.fov:2*Math.atan(Math.tan(.5*e.fov)/e.aspectRatio),e._near=e.near,e._far=e.far,e._sseDenominator=2*Math.tan(.5*e._fovy),e._xOffset=e.xOffset,e._yOffset=e.yOffset,t.top=e.near*Math.tan(.5*e._fovy),t.bottom=-t.top,t.right=e.aspectRatio*t.top,t.left=-t.right,t.near=e.near,t.far=e.far,t.right+=e.xOffset,t.left+=e.xOffset,t.top+=e.yOffset,t.bottom+=e.yOffset}}u.packedLength=6,u.pack=function(e,t,i){return n.Z.typeOf.object("value",e),n.Z.defined("array",t),i=(0,r.Z)(i,0),t[i++]=e.fov,t[i++]=e.aspectRatio,t[i++]=e.near,t[i++]=e.far,t[i++]=e.xOffset,t[i]=e.yOffset,t},u.unpack=function(e,t,i){return n.Z.defined("array",e),t=(0,r.Z)(t,0),(0,o.Z)(i)||(i=new u),i.fov=e[t++],i.aspectRatio=e[t++],i.near=e[t++],i.far=e[t++],i.xOffset=e[t++],i.yOffset=e[t],i},Object.defineProperties(u.prototype,{projectionMatrix:{get:function(){return l(this),this._offCenterFrustum.projectionMatrix}},infiniteProjectionMatrix:{get:function(){return l(this),this._offCenterFrustum.infiniteProjectionMatrix}},fovy:{get:function(){return l(this),this._fovy}},sseDenominator:{get:function(){return l(this),this._sseDenominator}}}),u.prototype.computeCullingVolume=function(e,t,i){return l(this),this._offCenterFrustum.computeCullingVolume(e,t,i)},u.prototype.getPixelDimensions=function(e,t,i,n,r){return l(this),this._offCenterFrustum.getPixelDimensions(e,t,i,n,r)},u.prototype.clone=function(e){return(0,o.Z)(e)||(e=new u),e.aspectRatio=this.aspectRatio,e.fov=this.fov,e.near=this.near,e.far=this.far,e._aspectRatio=void 0,e._fov=void 0,e._near=void 0,e._far=void 0,this._offCenterFrustum.clone(e._offCenterFrustum),e},u.prototype.equals=function(e){return!!((0,o.Z)(e)&&e instanceof u)&&(l(this),l(e),this.fov===e.fov&&this.aspectRatio===e.aspectRatio&&this._offCenterFrustum.equals(e._offCenterFrustum))},u.prototype.equalsEpsilon=function(e,t,i){return!!((0,o.Z)(e)&&e instanceof u)&&(l(this),l(e),a.Z.equalsEpsilon(this.fov,e.fov,t,i)&&a.Z.equalsEpsilon(this.aspectRatio,e.aspectRatio,t,i)&&this._offCenterFrustum.equalsEpsilon(e._offCenterFrustum,t,i))};const h=u},348808:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Z});var n=i(919382),r=i(114754),o=i(700725),s=i(406144),a=i(426468),c=i(446938),u=i(362017),l=i(583917);function h(e){e=(0,s.Z)(e,s.Z.EMPTY_OBJECT),this.left=e.left,this._left=void 0,this.right=e.right,this._right=void 0,this.top=e.top,this._top=void 0,this.bottom=e.bottom,this._bottom=void 0,this.near=(0,s.Z)(e.near,1),this._near=this.near,this.far=(0,s.Z)(e.far,5e8),this._far=this.far,this._cullingVolume=new o.Z,this._perspectiveMatrix=new l.Z,this._infinitePerspective=new l.Z}function d(e){if(!((0,a.Z)(e.right)&&(0,a.Z)(e.left)&&(0,a.Z)(e.top)&&(0,a.Z)(e.bottom)&&(0,a.Z)(e.near)&&(0,a.Z)(e.far)))throw new c.Z("right, left, top, bottom, near, or far parameters are not set.");const t=e.top,i=e.bottom,n=e.right,r=e.left,o=e.near,s=e.far;if(t!==e._top||i!==e._bottom||r!==e._left||n!==e._right||o!==e._near||s!==e._far){if(e.near<=0||e.near>e.far)throw new c.Z("near must be greater than zero and less than far.");e._left=r,e._right=n,e._top=t,e._bottom=i,e._near=o,e._far=s,e._perspectiveMatrix=l.Z.computePerspectiveOffCenter(r,n,i,t,o,s,e._perspectiveMatrix),e._infinitePerspective=l.Z.computeInfinitePerspectiveOffCenter(r,n,i,t,o,e._infinitePerspective)}}Object.defineProperties(h.prototype,{projectionMatrix:{get:function(){return d(this),this._perspectiveMatrix}},infiniteProjectionMatrix:{get:function(){return d(this),this._infinitePerspective}}});const f=new n.Z,p=new n.Z,m=new n.Z,_=new n.Z;h.prototype.computeCullingVolume=function(e,t,i){if(!(0,a.Z)(e))throw new c.Z("position is required.");if(!(0,a.Z)(t))throw new c.Z("direction is required.");if(!(0,a.Z)(i))throw new c.Z("up is required.");const o=this._cullingVolume.planes,s=this.top,u=this.bottom,l=this.right,h=this.left,d=this.near,Z=this.far,g=n.Z.cross(t,i,f),y=p;n.Z.multiplyByScalar(t,d,y),n.Z.add(e,y,y);const b=m;n.Z.multiplyByScalar(t,Z,b),n.Z.add(e,b,b);const A=_;n.Z.multiplyByScalar(g,h,A),n.Z.add(y,A,A),n.Z.subtract(A,e,A),n.Z.normalize(A,A),n.Z.cross(A,i,A),n.Z.normalize(A,A);let w=o[0];return(0,a.Z)(w)||(w=o[0]=new r.Z),w.x=A.x,w.y=A.y,w.z=A.z,w.w=-n.Z.dot(A,e),n.Z.multiplyByScalar(g,l,A),n.Z.add(y,A,A),n.Z.subtract(A,e,A),n.Z.cross(i,A,A),n.Z.normalize(A,A),w=o[1],(0,a.Z)(w)||(w=o[1]=new r.Z),w.x=A.x,w.y=A.y,w.z=A.z,w.w=-n.Z.dot(A,e),n.Z.multiplyByScalar(i,u,A),n.Z.add(y,A,A),n.Z.subtract(A,e,A),n.Z.cross(g,A,A),n.Z.normalize(A,A),w=o[2],(0,a.Z)(w)||(w=o[2]=new r.Z),w.x=A.x,w.y=A.y,w.z=A.z,w.w=-n.Z.dot(A,e),n.Z.multiplyByScalar(i,s,A),n.Z.add(y,A,A),n.Z.subtract(A,e,A),n.Z.cross(A,g,A),n.Z.normalize(A,A),w=o[3],(0,a.Z)(w)||(w=o[3]=new r.Z),w.x=A.x,w.y=A.y,w.z=A.z,w.w=-n.Z.dot(A,e),w=o[4],(0,a.Z)(w)||(w=o[4]=new r.Z),w.x=t.x,w.y=t.y,w.z=t.z,w.w=-n.Z.dot(t,y),n.Z.negate(t,A),w=o[5],(0,a.Z)(w)||(w=o[5]=new r.Z),w.x=A.x,w.y=A.y,w.z=A.z,w.w=-n.Z.dot(A,b),this._cullingVolume},h.prototype.getPixelDimensions=function(e,t,i,n,r){if(d(this),!(0,a.Z)(e)||!(0,a.Z)(t))throw new c.Z("Both drawingBufferWidth and drawingBufferHeight are required.");if(e<=0)throw new c.Z("drawingBufferWidth must be greater than zero.");if(t<=0)throw new c.Z("drawingBufferHeight must be greater than zero.");if(!(0,a.Z)(i))throw new c.Z("distance is required.");if(!(0,a.Z)(n))throw new c.Z("pixelRatio is required");if(n<=0)throw new c.Z("pixelRatio must be greater than zero.");if(!(0,a.Z)(r))throw new c.Z("A result object is required.");const o=1/this.near;let s=this.top*o;const u=2*n*i*s/t;s=this.right*o;const l=2*n*i*s/e;return r.x=l,r.y=u,r},h.prototype.clone=function(e){return(0,a.Z)(e)||(e=new h),e.right=this.right,e.left=this.left,e.top=this.top,e.bottom=this.bottom,e.near=this.near,e.far=this.far,e._left=void 0,e._right=void 0,e._top=void 0,e._bottom=void 0,e._near=void 0,e._far=void 0,e},h.prototype.equals=function(e){return(0,a.Z)(e)&&e instanceof h&&this.right===e.right&&this.left===e.left&&this.top===e.top&&this.bottom===e.bottom&&this.near===e.near&&this.far===e.far},h.prototype.equalsEpsilon=function(e,t,i){return e===this||(0,a.Z)(e)&&e instanceof h&&u.Z.equalsEpsilon(this.right,e.right,t,i)&&u.Z.equalsEpsilon(this.left,e.left,t,i)&&u.Z.equalsEpsilon(this.top,e.top,t,i)&&u.Z.equalsEpsilon(this.bottom,e.bottom,t,i)&&u.Z.equalsEpsilon(this.near,e.near,t,i)&&u.Z.equalsEpsilon(this.far,e.far,t,i)};const Z=h},684066:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(913216),r=i(545125),o=i(426468),s=i(446938),a=i(795788),c=i(986384);function u(){this._cache={}}u.prototype.fromColor=function(e,t){if(!(0,o.Z)(e))throw new s.Z("color is required");if(!(0,o.Z)(t))throw new s.Z("size is required");return f(void 0,void 0,e,t,this._cache)},u.prototype.fromUrl=function(e,t,i){if(!(0,o.Z)(e))throw new s.Z("url is required");if(!(0,o.Z)(t))throw new s.Z("color is required");if(!(0,o.Z)(i))throw new s.Z("size is required");return f(e,void 0,t,i,this._cache)},u.prototype.fromMakiIconId=function(e,t,i){if(!(0,o.Z)(e))throw new s.Z("id is required");if(!(0,o.Z)(t))throw new s.Z("color is required");if(!(0,o.Z)(i))throw new s.Z("size is required");return f((0,n.Z)("Assets/Textures/maki/"+encodeURIComponent(e)+".png"),void 0,t,i,this._cache)},u.prototype.fromText=function(e,t,i){if(!(0,o.Z)(e))throw new s.Z("text is required");if(!(0,o.Z)(t))throw new s.Z("color is required");if(!(0,o.Z)(i))throw new s.Z("size is required");return f(void 0,e,t,i,this._cache)};const l=new r.Z;function h(e,t,i){const n=i/2.5;let o=n,s=n;t.width>t.height?s=n*(t.height/t.width):t.width{"use strict";i.d(t,{Z:()=>s});var n=i(687931),r=i(619287);const o={DEPTH_COMPONENT:r.Z.DEPTH_COMPONENT,DEPTH_STENCIL:r.Z.DEPTH_STENCIL,ALPHA:r.Z.ALPHA,RGB:r.Z.RGB,RGBA:r.Z.RGBA,LUMINANCE:r.Z.LUMINANCE,LUMINANCE_ALPHA:r.Z.LUMINANCE_ALPHA,RGB_DXT1:r.Z.COMPRESSED_RGB_S3TC_DXT1_EXT,RGBA_DXT1:r.Z.COMPRESSED_RGBA_S3TC_DXT1_EXT,RGBA_DXT3:r.Z.COMPRESSED_RGBA_S3TC_DXT3_EXT,RGBA_DXT5:r.Z.COMPRESSED_RGBA_S3TC_DXT5_EXT,RGB_PVRTC_4BPPV1:r.Z.COMPRESSED_RGB_PVRTC_4BPPV1_IMG,RGB_PVRTC_2BPPV1:r.Z.COMPRESSED_RGB_PVRTC_2BPPV1_IMG,RGBA_PVRTC_4BPPV1:r.Z.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG,RGBA_PVRTC_2BPPV1:r.Z.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG,RGBA_ASTC:r.Z.COMPRESSED_RGBA_ASTC_4x4_WEBGL,RGB_ETC1:r.Z.COMPRESSED_RGB_ETC1_WEBGL,RGB8_ETC2:r.Z.COMPRESSED_RGB8_ETC2,RGBA8_ETC2_EAC:r.Z.COMPRESSED_RGBA8_ETC2_EAC,RGBA_BC7:r.Z.COMPRESSED_RGBA_BPTC_UNORM,componentsLength:function(e){switch(e){case o.RGB:return 3;case o.RGBA:return 4;case o.LUMINANCE_ALPHA:return 2;case o.ALPHA:case o.LUMINANCE:default:return 1}},validate:function(e){return e===o.DEPTH_COMPONENT||e===o.DEPTH_STENCIL||e===o.ALPHA||e===o.RGB||e===o.RGBA||e===o.LUMINANCE||e===o.LUMINANCE_ALPHA||e===o.RGB_DXT1||e===o.RGBA_DXT1||e===o.RGBA_DXT3||e===o.RGBA_DXT5||e===o.RGB_PVRTC_4BPPV1||e===o.RGB_PVRTC_2BPPV1||e===o.RGBA_PVRTC_4BPPV1||e===o.RGBA_PVRTC_2BPPV1||e===o.RGBA_ASTC||e===o.RGB_ETC1||e===o.RGB8_ETC2||e===o.RGBA8_ETC2_EAC||e===o.RGBA_BC7},isColorFormat:function(e){return e===o.ALPHA||e===o.RGB||e===o.RGBA||e===o.LUMINANCE||e===o.LUMINANCE_ALPHA},isDepthFormat:function(e){return e===o.DEPTH_COMPONENT||e===o.DEPTH_STENCIL},isCompressedFormat:function(e){return e===o.RGB_DXT1||e===o.RGBA_DXT1||e===o.RGBA_DXT3||e===o.RGBA_DXT5||e===o.RGB_PVRTC_4BPPV1||e===o.RGB_PVRTC_2BPPV1||e===o.RGBA_PVRTC_4BPPV1||e===o.RGBA_PVRTC_2BPPV1||e===o.RGBA_ASTC||e===o.RGB_ETC1||e===o.RGB8_ETC2||e===o.RGBA8_ETC2_EAC||e===o.RGBA_BC7},isDXTFormat:function(e){return e===o.RGB_DXT1||e===o.RGBA_DXT1||e===o.RGBA_DXT3||e===o.RGBA_DXT5},isPVRTCFormat:function(e){return e===o.RGB_PVRTC_4BPPV1||e===o.RGB_PVRTC_2BPPV1||e===o.RGBA_PVRTC_4BPPV1||e===o.RGBA_PVRTC_2BPPV1},isASTCFormat:function(e){return e===o.RGBA_ASTC},isETC1Format:function(e){return e===o.RGB_ETC1},isETC2Format:function(e){return e===o.RGB8_ETC2||e===o.RGBA8_ETC2_EAC},isBC7Format:function(e){return e===o.RGBA_BC7},compressedTextureSizeInBytes:function(e,t,i){switch(e){case o.RGB_DXT1:case o.RGBA_DXT1:case o.RGB_ETC1:case o.RGB8_ETC2:return Math.floor((t+3)/4)*Math.floor((i+3)/4)*8;case o.RGBA_DXT3:case o.RGBA_DXT5:case o.RGBA_ASTC:case o.RGBA8_ETC2_EAC:return Math.floor((t+3)/4)*Math.floor((i+3)/4)*16;case o.RGB_PVRTC_4BPPV1:case o.RGBA_PVRTC_4BPPV1:return Math.floor((Math.max(t,8)*Math.max(i,8)*4+7)/8);case o.RGB_PVRTC_2BPPV1:case o.RGBA_PVRTC_2BPPV1:return Math.floor((Math.max(t,16)*Math.max(i,8)*2+7)/8);case o.RGBA_BC7:return Math.ceil(t/4)*Math.ceil(i/4)*16;default:return 0}},textureSizeInBytes:function(e,t,i,r){let s=o.componentsLength(e);return n.Z.isPacked(t)&&(s=1),s*n.Z.sizeInBytes(t)*i*r},alignmentInBytes:function(e,t,i){const n=o.textureSizeInBytes(e,t,i,1)%4;return 0===n?4:2===n?2:1},createTypedArray:function(e,t,i,r){let s;const a=n.Z.sizeInBytes(t);return s=a===Uint8Array.BYTES_PER_ELEMENT?Uint8Array:a===Uint16Array.BYTES_PER_ELEMENT?Uint16Array:a===Float32Array.BYTES_PER_ELEMENT&&t===n.Z.FLOAT?Float32Array:Uint32Array,new s(o.componentsLength(e)*i*r)},flipY:function(e,t,i,n,r){if(1===r)return e;const s=o.createTypedArray(t,i,n,r),a=o.componentsLength(t),c=n*a;for(let t=0;t{"use strict";i.d(t,{Z:()=>_});var n=i(919382),r=i(114754),o=i(357299),s=i(426468),a=i(446938),c=i(362017),u=i(583917);function l(e,t){if(o.Z.typeOf.object("normal",e),!c.Z.equalsEpsilon(n.Z.magnitude(e),1,c.Z.EPSILON6))throw new a.Z("normal must be normalized.");o.Z.typeOf.number("distance",t),this.normal=n.Z.clone(e),this.distance=t}l.fromPointNormal=function(e,t,i){if(o.Z.typeOf.object("point",e),o.Z.typeOf.object("normal",t),!c.Z.equalsEpsilon(n.Z.magnitude(t),1,c.Z.EPSILON6))throw new a.Z("normal must be normalized.");const r=-n.Z.dot(t,e);return(0,s.Z)(i)?(n.Z.clone(t,i.normal),i.distance=r,i):new l(t,r)};const h=new n.Z;l.fromCartesian4=function(e,t){o.Z.typeOf.object("coefficients",e);const i=n.Z.fromCartesian4(e,h),r=e.w;if(!c.Z.equalsEpsilon(n.Z.magnitude(i),1,c.Z.EPSILON6))throw new a.Z("normal must be normalized.");return(0,s.Z)(t)?(n.Z.clone(i,t.normal),t.distance=r,t):new l(i,r)},l.getPointDistance=function(e,t){return o.Z.typeOf.object("plane",e),o.Z.typeOf.object("point",t),n.Z.dot(e.normal,t)+e.distance};const d=new n.Z;l.projectPointOntoPlane=function(e,t,i){o.Z.typeOf.object("plane",e),o.Z.typeOf.object("point",t),(0,s.Z)(i)||(i=new n.Z);const r=l.getPointDistance(e,t),a=n.Z.multiplyByScalar(e.normal,r,d);return n.Z.subtract(t,a,i)};const f=new u.Z,p=new r.Z,m=new n.Z;l.transform=function(e,t,i){o.Z.typeOf.object("plane",e),o.Z.typeOf.object("transform",t);const s=e.normal,a=e.distance,c=u.Z.inverseTranspose(t,f);let h=r.Z.fromElements(s.x,s.y,s.z,a,p);h=u.Z.multiplyByVector(c,h,h);const d=n.Z.fromCartesian4(h,m);return h=r.Z.divideByScalar(h,n.Z.magnitude(d),h),l.fromCartesian4(h,i)},l.clone=function(e,t){return o.Z.typeOf.object("plane",e),(0,s.Z)(t)?(n.Z.clone(e.normal,t.normal),t.distance=e.distance,t):new l(e.normal,e.distance)},l.equals=function(e,t){return o.Z.typeOf.object("left",e),o.Z.typeOf.object("right",t),e.distance===t.distance&&n.Z.equals(e.normal,t.normal)},l.ORIGIN_XY_PLANE=Object.freeze(new l(n.Z.UNIT_Z,0)),l.ORIGIN_YZ_PLANE=Object.freeze(new l(n.Z.UNIT_X,0)),l.ORIGIN_ZX_PLANE=Object.freeze(new l(n.Z.UNIT_Y,0));const _=l},900478:(e,t,i)=>{"use strict";i.d(t,{Z:()=>y});var n=i(360791),r=i(919382),o=i(357299),s=i(997274),a=i(406144),c=i(426468),u=i(915067),l=i(611843),h=i(451628),d=i(195809),f=i(172674);function p(e){e=(0,a.Z)(e,a.Z.EMPTY_OBJECT);const t=(0,a.Z)(e.vertexFormat,f.Z.DEFAULT);this._vertexFormat=t,this._workerName="createPlaneGeometry"}p.packedLength=f.Z.packedLength,p.pack=function(e,t,i){return o.Z.typeOf.object("value",e),o.Z.defined("array",t),i=(0,a.Z)(i,0),f.Z.pack(e._vertexFormat,t,i),t};const m=new f.Z,_={vertexFormat:m};p.unpack=function(e,t,i){o.Z.defined("array",e),t=(0,a.Z)(t,0);const n=f.Z.unpack(e,t,m);return(0,c.Z)(i)?(i._vertexFormat=f.Z.clone(n,i._vertexFormat),i):new p(_)};const Z=new r.Z(-.5,-.5,0),g=new r.Z(.5,.5,0);p.createGeometry=function(e){const t=e._vertexFormat,i=new h.Z;let o,a;if(t.position){if(a=new Float64Array(12),a[0]=Z.x,a[1]=Z.y,a[2]=0,a[3]=g.x,a[4]=Z.y,a[5]=0,a[6]=g.x,a[7]=g.y,a[8]=0,a[9]=Z.x,a[10]=g.y,a[11]=0,i.position=new l.Z({componentDatatype:s.Z.DOUBLE,componentsPerAttribute:3,values:a}),t.normal){const e=new Float32Array(12);e[0]=0,e[1]=0,e[2]=1,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=1,e[9]=0,e[10]=0,e[11]=1,i.normal=new l.Z({componentDatatype:s.Z.FLOAT,componentsPerAttribute:3,values:e})}if(t.st){const e=new Float32Array(8);e[0]=0,e[1]=0,e[2]=1,e[3]=0,e[4]=1,e[5]=1,e[6]=0,e[7]=1,i.st=new l.Z({componentDatatype:s.Z.FLOAT,componentsPerAttribute:2,values:e})}if(t.tangent){const e=new Float32Array(12);e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e[6]=1,e[7]=0,e[8]=0,e[9]=1,e[10]=0,e[11]=0,i.tangent=new l.Z({componentDatatype:s.Z.FLOAT,componentsPerAttribute:3,values:e})}if(t.bitangent){const e=new Float32Array(12);e[0]=0,e[1]=1,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=1,e[8]=0,e[9]=0,e[10]=1,e[11]=0,i.bitangent=new l.Z({componentDatatype:s.Z.FLOAT,componentsPerAttribute:3,values:e})}o=new Uint16Array(6),o[0]=0,o[1]=1,o[2]=2,o[3]=0,o[4]=2,o[5]=3}return new u.Z({attributes:i,indices:o,primitiveType:d.Z.TRIANGLES,boundingSphere:new n.Z(r.Z.ZERO,Math.sqrt(2))})};const y=p},979790:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});var n=i(360791),r=i(919382),o=i(357299),s=i(997274),a=i(426468),c=i(915067),u=i(611843),l=i(451628),h=i(195809);function d(){this._workerName="createPlaneOutlineGeometry"}d.packedLength=0,d.pack=function(e,t){return o.Z.defined("value",e),o.Z.defined("array",t),t},d.unpack=function(e,t,i){return o.Z.defined("array",e),(0,a.Z)(i)?i:new d};const f=new r.Z(-.5,-.5,0),p=new r.Z(.5,.5,0);d.createGeometry=function(){const e=new l.Z,t=new Uint16Array(8),i=new Float64Array(12);return i[0]=f.x,i[1]=f.y,i[2]=f.z,i[3]=p.x,i[4]=f.y,i[5]=f.z,i[6]=p.x,i[7]=p.y,i[8]=f.z,i[9]=f.x,i[10]=p.y,i[11]=f.z,e.position=new u.Z({componentDatatype:s.Z.DOUBLE,componentsPerAttribute:3,values:i}),t[0]=0,t[1]=1,t[2]=1,t[3]=2,t[4]=2,t[5]=3,t[6]=3,t[7]=0,new c.Z({attributes:e,indices:t,primitiveType:h.Z.LINES,boundingSphere:new n.Z(r.Z.ZERO,Math.sqrt(2))})};const m=d},357385:(e,t,i)=>{"use strict";i.d(t,{Z:()=>he});var n=i(726307),r=i(170099),o=i(152124),s=i(360791),a=i(337968),c=i(919382),u=i(698907),l=i(357299),h=i(997274),d=i(406144),f=i(426468),p=i(446938),m=i(253316),_=i(974390),Z=i(460117),g=i(915067),y=i(611843),b=i(952254),A=i(215925),w=i(423035),v=i(546135),T=i(362017),C=i(165373),E=i(189662),x=i(944593),S=i(129782),O=i(523501),I=i(172674),D=i(674833);const P=new u.Z,R=new u.Z;function B(e,t,i,n){const r=n.cartesianToCartographic(e,P).height,o=n.cartesianToCartographic(t,R);o.height=r,n.cartographicToCartesian(o,t);const s=n.cartesianToCartographic(i,R);s.height=r-100,n.cartographicToCartesian(s,i)}const M=new o.Z,L=new c.Z,N=new c.Z,F=new c.Z,k=new c.Z,U=new c.Z,V=new c.Z;let z=new c.Z,H=new c.Z,G=new c.Z;const q=new a.Z,j=new a.Z,W=new c.Z,K=new S.Z,Y=new C.Z,X=new C.Z;function J(e){const t=e.vertexFormat,i=e.geometry,n=e.shadowVolume,o=i.attributes.position.values;let s=o.length;const u=e.wall,l=e.top||u,d=e.bottom||u;if(t.st||t.normal||t.tangent||t.bitangent||n){const r=e.boundingRectangle,f=e.tangentPlane,p=e.ellipsoid,m=e.stRotation,_=e.perPositionHeight,Z=q;Z.x=r.x,Z.y=r.y;const g=t.st?new Float32Array(s/3*2):void 0;let b;t.normal&&(b=_&&l&&!u?i.attributes.normal.values:new Float32Array(s));const A=t.tangent?new Float32Array(s):void 0,w=t.bitangent?new Float32Array(s):void 0,v=n?new Float32Array(s):void 0;let E=0,x=0,O=N,I=F,D=k,P=!0,R=Y,M=X;if(0!==m){let e=S.Z.fromAxisAngle(f._plane.normal,m,K);R=C.Z.fromQuaternion(e,R),e=S.Z.fromAxisAngle(f._plane.normal,-m,K),M=C.Z.fromQuaternion(e,M)}else R=C.Z.clone(C.Z.IDENTITY,R),M=C.Z.clone(C.Z.IDENTITY,M);let J=0,Q=0;l&&d&&(J=s/2,Q=s/3,s/=2);for(let i=0;iee.eastOverIDL-ee.westOverIDL&&(o.west=ee.westOverIDL,o.east=ee.eastOverIDL,o.east>T.Z.PI&&(o.east=o.east-T.Z.TWO_PI),o.west>T.Z.PI&&(o.west=o.west-T.Z.TWO_PI)),o}const ne=new u.Z;function re(e,t,i,n){const r=e.surfaceDistance,o=Math.ceil(r*t),s=o>0?r/(o-1):Number.POSITIVE_INFINITY;let a=0;for(let t=0;t=0?r:r+T.Z.TWO_PI;n.westOverIDL=Math.min(n.westOverIDL,c),n.eastOverIDL=Math.max(n.eastOverIDL,c)}}const oe=[];function se(e,t,i,n,r,o,s,a,c){const u={walls:[]};let l;if(o||s){const n=E.Z.createGeometryFromPositions(e,t,i,r,a,c),h=n.attributes.position.values,d=n.indices;let f,p;if(o&&s){const e=h.concat(h);f=e.length/3,p=v.Z.createTypedArray(f,2*d.length),p.set(d);const t=d.length,i=f/2;for(l=0;l{"use strict";i.d(t,{Z:()=>H});var n=i(726307),r=i(554875),o=i(337968),s=i(919382),a=i(698907),c=i(997274),u=i(406144),l=i(426468),h=i(253316),d=i(889702),f=i(915067),p=i(611843),m=i(451628),_=i(423035),Z=i(546135),g=i(362017),y=i(165373),b=i(944593),A=i(195809),w=i(129782),v=i(188684),T=i(674833);const C={computeHierarchyPackedLength:function(e){let t=0;const i=[e];for(;i.length>0;){const e=i.pop();if(!(0,l.Z)(e))continue;t+=2;const n=e.positions,r=e.holes;if((0,l.Z)(n)&&(t+=n.length*s.Z.packedLength),(0,l.Z)(r)){const e=r.length;for(let t=0;t0;){const e=n.pop();if(!(0,l.Z)(e))continue;const r=e.positions,o=e.holes;if(t[i++]=(0,l.Z)(r)?r.length:0,t[i++]=(0,l.Z)(o)?o.length:0,(0,l.Z)(r)){const e=r.length;for(let n=0;n0?new Array(n):void 0;for(let n=0;n{"use strict";i.d(t,{Z:()=>P});var n=i(726307),r=i(170099),o=i(360791),s=i(357299),a=i(997274),c=i(406144),u=i(426468),l=i(446938),h=i(253316),d=i(460117),f=i(915067),p=i(611843),m=i(451628),_=i(952254),Z=i(215925),g=i(423035),y=i(546135),b=i(362017),A=i(189662),w=i(944593),v=i(195809),T=i(674833);const C=[],E=[];function x(e,t,i,r,o){const s=d.Z.fromPoints(t,e).projectPointsOntoPlane(t,C);let c,u;w.Z.computeWindingOrder2D(s)===T.Z.CLOCKWISE&&(s.reverse(),t=t.slice().reverse());let l=t.length,h=0;if(r)for(c=new Float64Array(2*l*3),u=0;u{"use strict";i.d(t,{Z:()=>P});var n=i(686094),r=i(337968),o=i(919382),s=i(698907),a=i(357299),c=i(997274),u=i(406144),l=i(426468),h=i(253316),d=i(889702),f=i(915067),p=i(611843),m=i(362017),_=i(195809),Z=i(674833);const g=new o.Z,y=new o.Z,b={computeArea2D:function(e){a.Z.defined("positions",e),a.Z.typeOf.number.greaterThanOrEquals("positions.length",e.length,3);const t=e.length;let i=0;for(let n=t-1,r=0;r0?Z.Z.COUNTER_CLOCKWISE:Z.Z.CLOCKWISE},triangulate:function(e,t){a.Z.defined("positions",e);const i=r.Z.packArray(e);return(0,n.Z)(i,t,2)}},A=new o.Z,w=new o.Z,v=new o.Z,T=new o.Z,C=new o.Z,E=new o.Z,x=new o.Z;b.computeSubdivision=function(e,t,i,n){n=(0,u.Z)(n,m.Z.RADIANS_PER_DEGREE),a.Z.typeOf.object("ellipsoid",e),a.Z.defined("positions",t),a.Z.defined("indices",i),a.Z.typeOf.number.greaterThanOrEquals("indices.length",i.length,3),a.Z.typeOf.number.equals("indices.length % 3","0",i.length%3,0),a.Z.typeOf.number.greaterThan("granularity",n,0);const r=i.slice(0);let s;const h=t.length,d=new Array(3*h);let Z=0;for(s=0;s0;){const e=r.pop(),t=r.pop(),i=r.pop(),n=o.Z.fromArray(d,3*i,A),a=o.Z.fromArray(d,3*t,w),c=o.Z.fromArray(d,3*e,v),u=o.Z.multiplyByScalar(o.Z.normalize(n,T),b,T),h=o.Z.multiplyByScalar(o.Z.normalize(a,C),b,C),f=o.Z.multiplyByScalar(o.Z.normalize(c,E),b,E),p=o.Z.magnitudeSquared(o.Z.subtract(u,h,x)),m=o.Z.magnitudeSquared(o.Z.subtract(h,f,x)),_=o.Z.magnitudeSquared(o.Z.subtract(f,u,x)),Z=Math.max(p,m,_);let S,I;Z>O?p===Z?(S=Math.min(i,t)+" "+Math.max(i,t),s=y[S],(0,l.Z)(s)||(I=o.Z.add(n,a,x),o.Z.multiplyByScalar(I,.5,I),d.push(I.x,I.y,I.z),s=d.length/3-1,y[S]=s),r.push(i,s,e),r.push(s,t,e)):m===Z?(S=Math.min(t,e)+" "+Math.max(t,e),s=y[S],(0,l.Z)(s)||(I=o.Z.add(a,c,x),o.Z.multiplyByScalar(I,.5,I),d.push(I.x,I.y,I.z),s=d.length/3-1,y[S]=s),r.push(t,s,i),r.push(s,e,i)):_===Z&&(S=Math.min(e,i)+" "+Math.max(e,i),s=y[S],(0,l.Z)(s)||(I=o.Z.add(c,n,x),o.Z.multiplyByScalar(I,.5,I),d.push(I.x,I.y,I.z),s=d.length/3-1,y[S]=s),r.push(e,s,t),r.push(s,i,t)):(g.push(i),g.push(t),g.push(e))}return new f.Z({attributes:{position:new p.Z({componentDatatype:c.Z.DOUBLE,componentsPerAttribute:3,values:d})},indices:g,primitiveType:_.Z.TRIANGLES})};const S=new s.Z,O=new s.Z,I=new s.Z,D=new s.Z;b.computeRhumbLineSubdivision=function(e,t,i,n){n=(0,u.Z)(n,m.Z.RADIANS_PER_DEGREE),a.Z.typeOf.object("ellipsoid",e),a.Z.defined("positions",t),a.Z.defined("indices",i),a.Z.typeOf.number.greaterThanOrEquals("indices.length",i.length,3),a.Z.typeOf.number.equals("indices.length % 3","0",i.length%3,0),a.Z.typeOf.number.greaterThan("granularity",n,0);const r=i.slice(0);let s;const h=t.length,Z=new Array(3*h);let g=0;for(s=0;s0;){const t=r.pop(),i=r.pop(),n=r.pop(),a=o.Z.fromArray(Z,3*n,A),c=o.Z.fromArray(Z,3*i,w),u=o.Z.fromArray(Z,3*t,v),h=e.cartesianToCartographic(a,S),d=e.cartesianToCartographic(c,O),f=e.cartesianToCartographic(u,I);E.setEndPoints(h,d);const p=E.surfaceDistance;P.setEndPoints(d,f);const m=P.surfaceDistance;R.setEndPoints(f,h);const _=R.surfaceDistance,g=Math.max(p,m,_);let T,B,M,L;g>C?p===g?(T=Math.min(n,i)+" "+Math.max(n,i),s=b[T],(0,l.Z)(s)||(B=E.interpolateUsingFraction(.5,D),M=.5*(h.height+d.height),L=o.Z.fromRadians(B.longitude,B.latitude,M,e,x),Z.push(L.x,L.y,L.z),s=Z.length/3-1,b[T]=s),r.push(n,s,t),r.push(s,i,t)):m===g?(T=Math.min(i,t)+" "+Math.max(i,t),s=b[T],(0,l.Z)(s)||(B=P.interpolateUsingFraction(.5,D),M=.5*(d.height+f.height),L=o.Z.fromRadians(B.longitude,B.latitude,M,e,x),Z.push(L.x,L.y,L.z),s=Z.length/3-1,b[T]=s),r.push(i,s,n),r.push(s,t,n)):_===g&&(T=Math.min(t,n)+" "+Math.max(t,n),s=b[T],(0,l.Z)(s)||(B=R.interpolateUsingFraction(.5,D),M=.5*(f.height+h.height),L=o.Z.fromRadians(B.longitude,B.latitude,M,e,x),Z.push(L.x,L.y,L.z),s=Z.length/3-1,b[T]=s),r.push(t,s,i),r.push(s,n,i)):(y.push(n),y.push(i),y.push(t))}return new f.Z({attributes:{position:new p.Z({componentDatatype:c.Z.DOUBLE,componentsPerAttribute:3,values:Z})},indices:y,primitiveType:_.Z.TRIANGLES})},b.scaleToGeodeticHeight=function(e,t,i,n){i=(0,u.Z)(i,h.Z.WGS84);let r=g,s=y;if(t=(0,u.Z)(t,0),n=(0,u.Z)(n,!0),(0,l.Z)(e)){const a=e.length;for(let c=0;c{"use strict";i.d(t,{Z:()=>P});var n=i(726307),r=i(554875),o=i(360791),s=i(919382),a=i(545125),c=i(997274),u=i(406144),l=i(426468),h=i(446938),d=i(253316),f=i(915067),p=i(611843),m=i(451628),_=i(593242),Z=i(546135),g=i(362017),y=i(372944),b=i(195809),A=i(172674);const w=[];function v(e,t,i,n,r){const o=w;let s;o.length=r;const c=i.red,u=i.green,l=i.blue,h=i.alpha,d=n.red,f=n.green,p=n.blue,m=n.alpha;if(a.Z.equals(i,n)){for(s=0;s0?new Array(r):void 0;for(n=0;n0){let e=0,t=P[0];u=u.filter((function(i,n){let r=!1;return r=h?n===t||0===n&&1===t:n+1===t,!r||(e++,t=P[e],!1)}))}let B=R.length;if(B<2||t<=0)return;if(d===n.Z.GEODESIC||d===n.Z.RHUMB){let e,t;d===n.Z.GEODESIC?(e=g.Z.chordLength(A,T.maximumRadius),t=y.Z.numberOfPoints):(e=A,t=y.Z.numberOfPointsRhumbLine);const i=y.Z.extractHeights(R,T);if((0,l.Z)(u)){let i=1;for(C=0;C{"use strict";i.d(t,{Z:()=>F});var n=i(919382),r=i(698907),o=i(406144),s=i(426468),a=i(446938),c=i(253316),u=i(974390),l=i(889702),h=i(66172),d=i(362017),f=i(583917),p=i(634878);const m={numberOfPoints:function(e,t,i){const r=n.Z.distance(e,t);return Math.ceil(r/i)},numberOfPointsRhumbLine:function(e,t,i){const n=Math.pow(e.longitude-t.longitude,2)+Math.pow(e.latitude-t.latitude,2);return Math.max(1,Math.ceil(Math.sqrt(n/(i*i))))}},_=new r.Z;m.extractHeights=function(e,t){const i=e.length,n=new Array(i);for(let r=0;r0){t=(0,o.Z)(t,f.Z.IDENTITY);const a=f.Z.inverseTransformation(t,Z),c=f.Z.multiplyByPoint(a,n.Z.ZERO,g),u=n.Z.normalize(f.Z.multiplyByPointAsVector(a,n.Z.UNIT_Y,y),y),l=p.Z.fromPointNormal(c,u,b),d=n.Z.normalize(f.Z.multiplyByPointAsVector(a,n.Z.UNIT_X,A),A),m=p.Z.fromPointNormal(c,d,w);let _=1;i.push(n.Z.clone(e[0]));let C=i[0];const E=e.length;for(let t=1;t{"use strict";i.d(t,{Z:()=>D});var n=i(554875),r=i(152124),o=i(360791),s=i(337968),a=i(919382),c=i(997274),u=i(422956),l=i(406144),h=i(426468),d=i(446938),f=i(253316),p=i(915067),m=i(611843),_=i(451628),Z=i(423035),g=i(546135),y=i(362017),b=i(594798),A=i(944593),w=i(677308),v=i(195809),T=i(172674),C=i(674833);function E(e){const t=(e=(0,l.Z)(e,l.Z.EMPTY_OBJECT)).polylinePositions,i=e.shapePositions;if(!(0,h.Z)(t))throw new d.Z("options.polylinePositions is required.");if(!(0,h.Z)(i))throw new d.Z("options.shapePositions is required.");this._positions=t,this._shape=i,this._ellipsoid=f.Z.clone((0,l.Z)(e.ellipsoid,f.Z.WGS84)),this._cornerType=(0,l.Z)(e.cornerType,u.Z.ROUNDED),this._vertexFormat=T.Z.clone((0,l.Z)(e.vertexFormat,T.Z.DEFAULT)),this._granularity=(0,l.Z)(e.granularity,y.Z.RADIANS_PER_DEGREE),this._workerName="createPolylineVolumeGeometry";let n=1+t.length*a.Z.packedLength;n+=1+i.length*s.Z.packedLength,this.packedLength=n+f.Z.packedLength+T.Z.packedLength+2}E.pack=function(e,t,i){if(!(0,h.Z)(e))throw new d.Z("value is required");if(!(0,h.Z)(t))throw new d.Z("array is required");let n;i=(0,l.Z)(i,0);const r=e._positions;let o=r.length;for(t[i++]=o,n=0;n{"use strict";i.d(t,{Z:()=>J});var n=i(337968),r=i(919382),o=i(114754),s=i(698907),a=i(422956),c=i(460117),u=i(362017),l=i(165373),h=i(583917),d=i(372944),f=i(129782),p=i(358198),m=i(594798);const _=[new r.Z,new r.Z],Z=new r.Z,g=new r.Z,y=new r.Z,b=new r.Z,A=new r.Z,w=new r.Z,v=new r.Z,T=new r.Z,C=new r.Z,E=new r.Z,x=new r.Z,S={};let O=new s.Z;function I(e,t,i,n){const o=e[0],s=e[1],a=r.Z.angleBetween(o,s),c=Math.ceil(a/n),u=new Array(c);let l;if(t===i){for(l=0;l=0?-l:l}(f,t,e,s);L=l.Z.fromRotationZ(_,L),U.z=a,B=h.Z.multiplyTransformation(B,h.Z.fromRotationTranslation(L,U,M),B);const Z=N;Z[0]=u;for(let e=0;e0){const i=p?2:1;for(let n=0;n<_;n++)t=l.Z.multiplyByVector(Z,t,t),g=r.Z.subtract(t,e,E),g=r.Z.normalize(g,g),o||(g=r.Z.negate(g,g)),y=s.scaleToGeodeticSurface(t,x),c=V(y,g,h,c,s,d,1,i)}else g=r.Z.subtract(t,e,E),g=r.Z.normalize(g,g),o||(g=r.Z.negate(g,g)),y=s.scaleToGeodeticSurface(t,x),c=V(y,g,h,c,s,d,1,1),i=r.Z.clone(i,j),g=r.Z.subtract(i,e,E),g=r.Z.normalize(g,g),o||(g=r.Z.negate(g,g)),y=s.scaleToGeodeticSurface(i,x),c=V(y,g,h,c,s,d,1,1);return c}S.removeDuplicatesFromShape=function(e){const t=e.length,i=[];for(let r=t-1,o=0;o=0};const Y=new r.Z,X=new r.Z;S.computePositions=function(e,t,i,n,o){const s=n._ellipsoid,c=function(e,t){const i=new Array(e.length);for(let n=0;n{"use strict";i.d(t,{Z:()=>x});var n=i(554875),r=i(152124),o=i(360791),s=i(337968),a=i(919382),c=i(997274),u=i(422956),l=i(406144),h=i(426468),d=i(446938),f=i(253316),p=i(915067),m=i(611843),_=i(451628),Z=i(546135),g=i(362017),y=i(944593),b=i(677308),A=i(195809),w=i(674833);function v(e){const t=(e=(0,l.Z)(e,l.Z.EMPTY_OBJECT)).polylinePositions,i=e.shapePositions;if(!(0,h.Z)(t))throw new d.Z("options.polylinePositions is required.");if(!(0,h.Z)(i))throw new d.Z("options.shapePositions is required.");this._positions=t,this._shape=i,this._ellipsoid=f.Z.clone((0,l.Z)(e.ellipsoid,f.Z.WGS84)),this._cornerType=(0,l.Z)(e.cornerType,u.Z.ROUNDED),this._granularity=(0,l.Z)(e.granularity,g.Z.RADIANS_PER_DEGREE),this._workerName="createPolylineVolumeOutlineGeometry";let n=1+t.length*a.Z.packedLength;n+=1+i.length*s.Z.packedLength,this.packedLength=n+f.Z.packedLength+2}v.pack=function(e,t,i){if(!(0,h.Z)(e))throw new d.Z("value is required");if(!(0,h.Z)(t))throw new d.Z("array is required");let n;i=(0,l.Z)(i,0);const r=e._positions;let o=r.length;for(t[i++]=o,n=0;n{"use strict";i.d(t,{Z:()=>o});var n=i(619287);const r={POINTS:n.Z.POINTS,LINES:n.Z.LINES,LINE_LOOP:n.Z.LINE_LOOP,LINE_STRIP:n.Z.LINE_STRIP,TRIANGLES:n.Z.TRIANGLES,TRIANGLE_STRIP:n.Z.TRIANGLE_STRIP,TRIANGLE_FAN:n.Z.TRIANGLE_FAN,validate:function(e){return e===r.POINTS||e===r.LINES||e===r.LINE_LOOP||e===r.LINE_STRIP||e===r.TRIANGLES||e===r.TRIANGLE_STRIP||e===r.TRIANGLE_FAN}},o=Object.freeze(r)},905342:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(446938);function r(){n.Z.throwInstantiationError()}r.prototype.getURL=n.Z.throwInstantiationError;const o=r},935963:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(446938),r=i(362017);const o={};function s(e,t,i){const n=e+t;return r.Z.sign(e)!==r.Z.sign(t)&&Math.abs(n/Math.max(Math.abs(e),Math.abs(t)))n&&n/t0?[c/e,i/c]:[i/c,c/e]};const a=o},863314:(e,t,i)=>{"use strict";i.d(t,{Z:()=>P});var n=i(527758),r=i(360791),o=i(337968),s=i(919382),a=i(357299),c=i(406144),u=i(426468),l=i(446938),h=i(546135),d=i(917261),f=i(362017),p=i(126874),m=i(890357),_=i(774329),Z=i(569269),g=i(931079);function y(e){if(!(0,u.Z)(e)||!(0,u.Z)(e.quantizedVertices))throw new l.Z("options.quantizedVertices is required.");if(!(0,u.Z)(e.indices))throw new l.Z("options.indices is required.");if(!(0,u.Z)(e.minimumHeight))throw new l.Z("options.minimumHeight is required.");if(!(0,u.Z)(e.maximumHeight))throw new l.Z("options.maximumHeight is required.");if(!(0,u.Z)(e.maximumHeight))throw new l.Z("options.maximumHeight is required.");if(!(0,u.Z)(e.boundingSphere))throw new l.Z("options.boundingSphere is required.");if(!(0,u.Z)(e.horizonOcclusionPoint))throw new l.Z("options.horizonOcclusionPoint is required.");if(!(0,u.Z)(e.westIndices))throw new l.Z("options.westIndices is required.");if(!(0,u.Z)(e.southIndices))throw new l.Z("options.southIndices is required.");if(!(0,u.Z)(e.eastIndices))throw new l.Z("options.eastIndices is required.");if(!(0,u.Z)(e.northIndices))throw new l.Z("options.northIndices is required.");if(!(0,u.Z)(e.westSkirtHeight))throw new l.Z("options.westSkirtHeight is required.");if(!(0,u.Z)(e.southSkirtHeight))throw new l.Z("options.southSkirtHeight is required.");if(!(0,u.Z)(e.eastSkirtHeight))throw new l.Z("options.eastSkirtHeight is required.");if(!(0,u.Z)(e.northSkirtHeight))throw new l.Z("options.northSkirtHeight is required.");this._quantizedVertices=e.quantizedVertices,this._encodedNormals=e.encodedNormals,this._indices=e.indices,this._minimumHeight=e.minimumHeight,this._maximumHeight=e.maximumHeight,this._boundingSphere=e.boundingSphere,this._orientedBoundingBox=e.orientedBoundingBox,this._horizonOcclusionPoint=e.horizonOcclusionPoint,this._credits=e.credits;const t=this._quantizedVertices.length/3,i=this._uValues=this._quantizedVertices.subarray(0,t),n=this._vValues=this._quantizedVertices.subarray(t,2*t);function r(e,t){return n[e]-n[t]}function o(e,t){return i[e]-i[t]}this._heightValues=this._quantizedVertices.subarray(2*t,3*t),this._westIndices=A(e.westIndices,r,t),this._southIndices=A(e.southIndices,o,t),this._eastIndices=A(e.eastIndices,r,t),this._northIndices=A(e.northIndices,o,t),this._westSkirtHeight=e.westSkirtHeight,this._southSkirtHeight=e.southSkirtHeight,this._eastSkirtHeight=e.eastSkirtHeight,this._northSkirtHeight=e.northSkirtHeight,this._childTileMask=(0,c.Z)(e.childTileMask,15),this._createdByUpsampling=(0,c.Z)(e.createdByUpsampling,!1),this._waterMask=e.waterMask,this._mesh=void 0}Object.defineProperties(y.prototype,{credits:{get:function(){return this._credits}},waterMask:{get:function(){return this._waterMask}},childTileMask:{get:function(){return this._childTileMask}},canUpsample:{get:function(){return(0,u.Z)(this._mesh)}}});const b=[];function A(e,t,i){b.length=e.length;let n=!1;for(let i=0,r=e.length;i0&&t(e[i-1],e[i])>0;return n?(b.sort(t),h.Z.createTypedArray(i,b)):e}const w="createVerticesFromQuantizedTerrainMesh",v=new m.Z(w),T=new m.Z(w,_.Z.maximumAsynchronousTasks);y.prototype.createMesh=function(e){e=(0,c.Z)(e,c.Z.EMPTY_OBJECT),a.Z.typeOf.object("options.tilingScheme",e.tilingScheme),a.Z.typeOf.number("options.x",e.x),a.Z.typeOf.number("options.y",e.y),a.Z.typeOf.number("options.level",e.level);const t=e.tilingScheme,i=e.x,r=e.y,o=e.level,l=(0,c.Z)(e.exaggeration,1),d=(0,c.Z)(e.exaggerationRelativeHeight,0),f=(0,c.Z)(e.throttle,!0),p=t.ellipsoid,m=t.tileXYToRectangle(i,r,o),_=(f?T:v).scheduleTask({minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,quantizedVertices:this._quantizedVertices,octEncodedNormals:this._encodedNormals,includeWebMercatorT:!0,indices:this._indices,westIndices:this._westIndices,southIndices:this._southIndices,eastIndices:this._eastIndices,northIndices:this._northIndices,westSkirtHeight:this._westSkirtHeight,southSkirtHeight:this._southSkirtHeight,eastSkirtHeight:this._eastSkirtHeight,northSkirtHeight:this._northSkirtHeight,rectangle:m,relativeToCenter:this._boundingSphere.center,ellipsoid:p,exaggeration:l,exaggerationRelativeHeight:d});if(!(0,u.Z)(_))return;const y=this;return(0,n.Z)(_,(function(e){const t=y._quantizedVertices.length/3,i=t+y._westIndices.length+y._southIndices.length+y._eastIndices.length+y._northIndices.length,n=h.Z.createTypedArray(i,e.indices),r=new Float32Array(e.vertices),o=e.center,a=e.minimumHeight,u=e.maximumHeight,l=y._boundingSphere,d=y._orientedBoundingBox,f=(0,c.Z)(s.Z.clone(e.occludeePointInScaledSpace),y._horizonOcclusionPoint),p=e.vertexStride,m=Z.Z.clone(e.encoding);return y._mesh=new g.Z(o,r,n,e.indexCountWithoutSkirts,t,a,u,l,f,p,d,m,e.westIndicesSouthToNorth,e.southIndicesEastToWest,e.eastIndicesNorthToSouth,e.northIndicesWestToEast),y._quantizedVertices=void 0,y._encodedNormals=void 0,y._indices=void 0,y._uValues=void 0,y._vValues=void 0,y._heightValues=void 0,y._westIndices=void 0,y._southIndices=void 0,y._eastIndices=void 0,y._northIndices=void 0,y._mesh}))};const C=new m.Z("upsampleQuantizedTerrainMesh",_.Z.maximumAsynchronousTasks);y.prototype.upsample=function(e,t,i,o,a,c,d){if(!(0,u.Z)(e))throw new l.Z("tilingScheme is required.");if(!(0,u.Z)(t))throw new l.Z("thisX is required.");if(!(0,u.Z)(i))throw new l.Z("thisY is required.");if(!(0,u.Z)(o))throw new l.Z("thisLevel is required.");if(!(0,u.Z)(a))throw new l.Z("descendantX is required.");if(!(0,u.Z)(c))throw new l.Z("descendantY is required.");if(!(0,u.Z)(d))throw new l.Z("descendantLevel is required.");if(d-o>1)throw new l.Z("Upsampling through more than one level at a time is not currently supported.");const f=this._mesh;if(!(0,u.Z)(this._mesh))return;const m=2*t!==a,_=2*i===c,Z=e.ellipsoid,g=e.tileXYToRectangle(a,c,d),b=C.scheduleTask({vertices:f.vertices,vertexCountWithoutSkirts:f.vertexCountWithoutSkirts,indices:f.indices,indexCountWithoutSkirts:f.indexCountWithoutSkirts,encoding:f.encoding,minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,isEastChild:m,isNorthChild:_,childRectangle:g,ellipsoid:Z});if(!(0,u.Z)(b))return;let A=Math.min(this._westSkirtHeight,this._eastSkirtHeight);A=Math.min(A,this._southSkirtHeight),A=Math.min(A,this._northSkirtHeight);const w=m?.5*A:this._westSkirtHeight,v=_?.5*A:this._southSkirtHeight,T=m?this._eastSkirtHeight:.5*A,E=_?this._northSkirtHeight:.5*A,x=this._credits;return(0,n.Z)(b).then((function(e){const t=new Uint16Array(e.vertices),i=h.Z.createTypedArray(t.length/3,e.indices);let n;return(0,u.Z)(e.encodedNormals)&&(n=new Uint8Array(e.encodedNormals)),new y({quantizedVertices:t,indices:i,encodedNormals:n,minimumHeight:e.minimumHeight,maximumHeight:e.maximumHeight,boundingSphere:r.Z.clone(e.boundingSphere),orientedBoundingBox:p.Z.clone(e.orientedBoundingBox),horizonOcclusionPoint:s.Z.clone(e.horizonOcclusionPoint),westIndices:e.westIndices,southIndices:e.southIndices,eastIndices:e.eastIndices,northIndices:e.northIndices,westSkirtHeight:w,southSkirtHeight:v,eastSkirtHeight:T,northSkirtHeight:E,childTileMask:0,credits:x,createdByUpsampling:!0})}))};const E=32767,x=new s.Z;function S(e,t,i,n,r,o,s,a){const c=Math.min(i,r,s),u=Math.max(i,r,s),l=Math.min(n,o,a),h=Math.max(n,o,a);return e>=c&&e<=u&&t>=l&&t<=h}y.prototype.interpolateHeight=function(e,t,i){let n=f.Z.clamp((t-e.west)/e.width,0,1);n*=E;let r=f.Z.clamp((i-e.south)/e.height,0,1);return r*=E,(0,u.Z)(this._mesh)?function(e,t,i){const n=e._mesh,r=n.vertices,o=n.encoding,s=n.indices;for(let e=0,n=s.length;e=-1e-15&&e.y>=-1e-15&&e.z>=-1e-15){const t=o.decodeHeight(r,n),i=o.decodeHeight(r,a),s=o.decodeHeight(r,c);return e.x*t+e.y*i+e.z*s}}}}(this,n,r):function(e,t,i){const n=e._uValues,r=e._vValues,o=e._heightValues,s=e._indices;for(let a=0,c=s.length;a=-1e-15&&n.y>=-1e-15&&n.z>=-1e-15){const t=n.x*o[c]+n.y*o[u]+n.z*o[l];return f.Z.lerp(e._minimumHeight,e._maximumHeight,t/E)}}}}(this,n,r)};const O=new o.Z,I=new o.Z,D=new o.Z;y.prototype.isChildAvailable=function(e,t,i,n){if(!(0,u.Z)(e))throw new l.Z("thisX is required.");if(!(0,u.Z)(t))throw new l.Z("thisY is required.");if(!(0,u.Z)(i))throw new l.Z("childX is required.");if(!(0,u.Z)(n))throw new l.Z("childY is required.");let r=2;return i!==2*e&&++r,n!==2*t&&(r-=2),0!=(this._childTileMask&1<{"use strict";i.d(t,{Z:()=>c});var n=i(312690),r=i(446938),o=i(362017),s=i(935963);const a={};a.computeDiscriminant=function(e,t,i,n,o){if("number"!=typeof e)throw new r.Z("a is a required number.");if("number"!=typeof t)throw new r.Z("b is a required number.");if("number"!=typeof i)throw new r.Z("c is a required number.");if("number"!=typeof n)throw new r.Z("d is a required number.");if("number"!=typeof o)throw new r.Z("e is a required number.");const s=e*e,a=t*t,c=a*t,u=i*i,l=u*i,h=n*n,d=h*n,f=o*o;return a*u*h-4*c*d-4*e*l*h+18*e*t*i*d-27*s*h*h+s*e*256*(f*o)+o*(18*c*i*n-4*a*l+16*e*u*u-80*e*t*u*n-6*e*a*h+144*s*i*h)+f*(144*e*a*i-27*a*a-128*s*u-192*s*t*n)},a.computeRealRoots=function(e,t,i,a,c){if("number"!=typeof e)throw new r.Z("a is a required number.");if("number"!=typeof t)throw new r.Z("b is a required number.");if("number"!=typeof i)throw new r.Z("c is a required number.");if("number"!=typeof a)throw new r.Z("d is a required number.");if("number"!=typeof c)throw new r.Z("e is a required number.");if(Math.abs(e)0){const t=-e/4,i=h[h.length-1];if(Math.abs(i)=0&&n>=0){const e=Math.sqrt(i),r=Math.sqrt(n);return[t-r,t-e,t+e,t+r]}if(i>=0&&n<0)return r=Math.sqrt(i),[t-r,t+r];if(i<0&&n>=0)return r=Math.sqrt(n),[t-r,t+r]}return[]}if(i>0){const e=Math.sqrt(i),n=(c+i-u/e)/2,r=(c+i+u/e)/2,o=s.Z.computeRealRoots(1,e,n),a=s.Z.computeRealRoots(1,-e,r);return 0!==o.length?(o[0]+=t,o[1]+=t,0!==a.length?(a[0]+=t,a[1]+=t,o[1]<=a[0]?[o[0],o[1],a[0],a[1]]:a[1]<=o[0]?[a[0],a[1],o[0],o[1]]:o[0]>=a[0]&&o[1]<=a[1]?[a[0],o[0],o[1],a[1]]:a[0]>=o[0]&&a[1]<=o[1]?[o[0],a[0],a[1],o[1]]:o[0]>a[0]&&o[0]0){const n=h[0],c=t-n,u=c*c,l=e/2,d=c/2,f=u-4*r,p=u+4*Math.abs(r),m=a-4*n,_=a+4*Math.abs(n);let Z,g,y,b,A,w;if(n<0||f*_=T[0]&&v[1]<=T[1]?[T[0],v[0],v[1],T[1]]:T[0]>=v[0]&&T[1]<=v[1]?[v[0],T[0],T[1],v[1]]:v[0]>T[0]&&v[0]{"use strict";i.d(t,{Z:()=>N});var n=i(919382),r=i(357299),o=i(406144),s=i(426468),a=i(488802),c=i(362017),u=i(165373);function l(e,t,i,n){this.x=(0,o.Z)(e,0),this.y=(0,o.Z)(t,0),this.z=(0,o.Z)(i,0),this.w=(0,o.Z)(n,0)}let h=new n.Z;l.fromAxisAngle=function(e,t,i){r.Z.typeOf.object("axis",e),r.Z.typeOf.number("angle",t);const o=t/2,a=Math.sin(o);h=n.Z.normalize(e,h);const c=h.x*a,u=h.y*a,d=h.z*a,f=Math.cos(o);return(0,s.Z)(i)?(i.x=c,i.y=u,i.z=d,i.w=f,i):new l(c,u,d,f)};const d=[1,2,0],f=new Array(3);l.fromRotationMatrix=function(e,t){let i,n,o,a,c;r.Z.typeOf.object("matrix",e);const h=e[u.Z.COLUMN0ROW0],p=e[u.Z.COLUMN1ROW1],m=e[u.Z.COLUMN2ROW2],_=h+p+m;if(_>0)i=Math.sqrt(_+1),c=.5*i,i=.5/i,n=(e[u.Z.COLUMN1ROW2]-e[u.Z.COLUMN2ROW1])*i,o=(e[u.Z.COLUMN2ROW0]-e[u.Z.COLUMN0ROW2])*i,a=(e[u.Z.COLUMN0ROW1]-e[u.Z.COLUMN1ROW0])*i;else{const t=d;let r=0;p>h&&(r=1),m>h&&m>p&&(r=2);const s=t[r],l=t[s];i=Math.sqrt(e[u.Z.getElementIndex(r,r)]-e[u.Z.getElementIndex(s,s)]-e[u.Z.getElementIndex(l,l)]+1);const _=f;_[r]=.5*i,i=.5/i,c=(e[u.Z.getElementIndex(l,s)]-e[u.Z.getElementIndex(s,l)])*i,_[s]=(e[u.Z.getElementIndex(s,r)]+e[u.Z.getElementIndex(r,s)])*i,_[l]=(e[u.Z.getElementIndex(l,r)]+e[u.Z.getElementIndex(r,l)])*i,n=-_[0],o=-_[1],a=-_[2]}return(0,s.Z)(t)?(t.x=n,t.y=o,t.z=a,t.w=c,t):new l(n,o,a,c)};const p=new l;let m=new l,_=new l,Z=new l;l.fromHeadingPitchRoll=function(e,t){return r.Z.typeOf.object("headingPitchRoll",e),Z=l.fromAxisAngle(n.Z.UNIT_X,e.roll,p),_=l.fromAxisAngle(n.Z.UNIT_Y,-e.pitch,t),t=l.multiply(_,Z,_),m=l.fromAxisAngle(n.Z.UNIT_Z,-e.heading,p),l.multiply(m,t,t)};const g=new n.Z,y=new n.Z,b=new l,A=new l,w=new l;l.packedLength=4,l.pack=function(e,t,i){return r.Z.typeOf.object("value",e),r.Z.defined("array",t),i=(0,o.Z)(i,0),t[i++]=e.x,t[i++]=e.y,t[i++]=e.z,t[i]=e.w,t},l.unpack=function(e,t,i){return r.Z.defined("array",e),t=(0,o.Z)(t,0),(0,s.Z)(i)||(i=new l),i.x=e[t],i.y=e[t+1],i.z=e[t+2],i.w=e[t+3],i},l.packedInterpolationLength=3,l.convertPackedArrayForInterpolation=function(e,t,i,n){l.unpack(e,4*i,w),l.conjugate(w,w);for(let r=0,o=i-t+1;r=0?o=1:(o=-1,s=-s);const a=s-1,c=1-i,u=i*i,h=c*c;for(let e=7;e>=0;--e)M[e]=(R[e]*u-B[e])*a,L[e]=(R[e]*h-B[e])*a;const d=o*i*(1+M[0]*(1+M[1]*(1+M[2]*(1+M[3]*(1+M[4]*(1+M[5]*(1+M[6]*(1+M[7])))))))),f=c*(1+L[0]*(1+L[1]*(1+L[2]*(1+L[3]*(1+L[4]*(1+L[5]*(1+L[6]*(1+L[7])))))))),p=l.multiplyByScalar(e,f,D);return l.multiplyByScalar(t,d,n),l.add(p,n,n)},l.fastSquad=function(e,t,i,n,o,s){r.Z.typeOf.object("q0",e),r.Z.typeOf.object("q1",t),r.Z.typeOf.object("s0",i),r.Z.typeOf.object("s1",n),r.Z.typeOf.number("t",o),r.Z.typeOf.object("result",s);const a=l.fastSlerp(e,t,o,O),c=l.fastSlerp(i,n,o,I);return l.fastSlerp(a,c,2*o*(1-o),s)},l.equals=function(e,t){return e===t||(0,s.Z)(e)&&(0,s.Z)(t)&&e.x===t.x&&e.y===t.y&&e.z===t.z&&e.w===t.w},l.equalsEpsilon=function(e,t,i){return i=(0,o.Z)(i,0),e===t||(0,s.Z)(e)&&(0,s.Z)(t)&&Math.abs(e.x-t.x)<=i&&Math.abs(e.y-t.y)<=i&&Math.abs(e.z-t.z)<=i&&Math.abs(e.w-t.w)<=i},l.ZERO=Object.freeze(new l(0,0,0,0)),l.IDENTITY=Object.freeze(new l(0,0,0,1)),l.prototype.clone=function(e){return l.clone(this,e)},l.prototype.equals=function(e){return l.equals(this,e)},l.prototype.equalsEpsilon=function(e,t){return l.equalsEpsilon(this,e,t)},l.prototype.toString=function(){return"("+this.x+", "+this.y+", "+this.z+", "+this.w+")"};const N=l},913601:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(406144),r=i(426468),o=i(446938),s=i(129782),a=i(54791);function c(e){const t=(e=(0,n.Z)(e,n.Z.EMPTY_OBJECT)).points,i=e.times;if(!(0,r.Z)(t)||!(0,r.Z)(i))throw new o.Z("points and times are required.");if(t.length<2)throw new o.Z("points.length must be greater than or equal to 2.");if(i.length!==t.length)throw new o.Z("times.length must be equal to points.length.");this._times=i,this._points=t,this._evaluateFunction=function(e){const t=e.points,i=e.times;return function(n,o){(0,r.Z)(o)||(o=new s.Z);const a=e._lastTimeIndex=e.findTimeInterval(n,e._lastTimeIndex),c=(n-i[a])/(i[a+1]-i[a]),u=t[a],l=t[a+1];return s.Z.fastSlerp(u,l,c,o)}}(this),this._lastTimeIndex=0}Object.defineProperties(c.prototype,{times:{get:function(){return this._times}},points:{get:function(){return this._points}}}),c.prototype.findTimeInterval=a.Z.prototype.findTimeInterval,c.prototype.wrapTime=a.Z.prototype.wrapTime,c.prototype.clampTime=a.Z.prototype.clampTime,c.prototype.evaluate=function(e,t){return this._evaluateFunction(e,t)};const u=c},188684:(e,t,i)=>{"use strict";function n(){this._array=[],this._offset=0,this._length=0}i.d(t,{Z:()=>r}),Object.defineProperties(n.prototype,{length:{get:function(){return this._length}}}),n.prototype.enqueue=function(e){this._array.push(e),this._length++},n.prototype.dequeue=function(){if(0===this._length)return;const e=this._array;let t=this._offset;const i=e[t];return e[t]=void 0,t++,t>10&&2*t>e.length&&(this._array=e.slice(t),t=0),this._offset=t,this._length--,i},n.prototype.peek=function(){if(0!==this._length)return this._array[this._offset]},n.prototype.contains=function(e){return-1!==this._array.indexOf(e)},n.prototype.clear=function(){this._array.length=this._offset=this._length=0},n.prototype.sort=function(e){this._offset>0&&(this._array=this._array.slice(this._offset),this._offset=0),this._array.sort(e)};const r=n},24401:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(919382),r=i(357299),o=i(406144),s=i(426468);function a(e,t){t=n.Z.clone((0,o.Z)(t,n.Z.ZERO)),n.Z.equals(t,n.Z.ZERO)||n.Z.normalize(t,t),this.origin=n.Z.clone((0,o.Z)(e,n.Z.ZERO)),this.direction=t}a.clone=function(e,t){if((0,s.Z)(e))return(0,s.Z)(t)?(t.origin=n.Z.clone(e.origin),t.direction=n.Z.clone(e.direction),t):new a(e.origin,e.direction)},a.getPoint=function(e,t,i){return r.Z.typeOf.object("ray",e),r.Z.typeOf.number("t",t),(0,s.Z)(i)||(i=new n.Z),i=n.Z.multiplyByScalar(e.direction,t,i),n.Z.add(e.origin,i,i)};const c=a},384072:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(376308),r=i(357299);function o(){this._tree=new n.Z}function s(){this.minX=0,this.minY=0,this.maxX=0,this.maxY=0,this.id=""}function a(e,t){return e.id===t.id}s.fromRectangleAndId=function(e,t,i){return i.minX=t.west,i.minY=t.south,i.maxX=t.east,i.maxY=t.north,i.id=e,i},o.prototype.insert=function(e,t){r.Z.typeOf.string("id",e),r.Z.typeOf.object("rectangle",t);const i=s.fromRectangleAndId(e,t,new s);this._tree.insert(i)};const c=new s;o.prototype.remove=function(e,t){r.Z.typeOf.string("id",e),r.Z.typeOf.object("rectangle",t);const i=s.fromRectangleAndId(e,t,c);this._tree.remove(i,a)};const u=new s;o.prototype.collides=function(e){r.Z.typeOf.object("rectangle",e);const t=s.fromRectangleAndId("",e,u);return this._tree.collides(t)};const l=o},236915:(e,t,i)=>{"use strict";i.d(t,{Z:()=>se});var n=i(170099),r=i(360791),o=i(337968),s=i(919382),a=i(698907),c=i(357299),u=i(997274),l=i(406144),h=i(426468),d=i(446938),f=i(253316),p=i(915067),m=i(611843),_=i(451628),Z=i(952254),g=i(215925),y=i(423035),b=i(546135),A=i(362017),w=i(631145),v=i(165373),T=i(944593),C=i(195809),E=i(129782),x=i(523501),S=i(582908),O=i(172674);const I=new s.Z,D=new s.Z,P=new s.Z,R=new s.Z,B=new x.Z,M=new o.Z,L=new r.Z,N=new r.Z;function F(e,t){const i=new p.Z({attributes:new _.Z,primitiveType:C.Z.TRIANGLES});return i.attributes.position=new m.Z({componentDatatype:u.Z.DOUBLE,componentsPerAttribute:3,values:t.positions}),e.normal&&(i.attributes.normal=new m.Z({componentDatatype:u.Z.FLOAT,componentsPerAttribute:3,values:t.normals})),e.tangent&&(i.attributes.tangent=new m.Z({componentDatatype:u.Z.FLOAT,componentsPerAttribute:3,values:t.tangents})),e.bitangent&&(i.attributes.bitangent=new m.Z({componentDatatype:u.Z.FLOAT,componentsPerAttribute:3,values:t.bitangents})),i}const k=new s.Z,U=new s.Z;function V(e,t){const i=e._vertexFormat,n=e._ellipsoid,r=t.height,o=t.width,a=t.northCap,c=t.southCap;let l=0,h=r,d=r,f=0;a&&(l=1,d-=1,f+=1),c&&(h-=1,d-=1,f+=1),f+=o*d;const p=i.position?new Float64Array(3*f):void 0,_=i.st?new Float32Array(2*f):void 0;let Z=0,g=0;const y=I,A=M;let w=Number.MAX_VALUE,T=Number.MAX_VALUE,C=-Number.MAX_VALUE,E=-Number.MAX_VALUE;for(let e=l;e1||E>1))for(let e=0;e<_.length;e+=2)_[e]=(_[e]-w)/(C-w),_[e+1]=(_[e+1]-T)/(E-T);const x=function(e,t,i,n){const r=e.length,o=t.normal?new Float32Array(r):void 0,a=t.tangent?new Float32Array(r):void 0,c=t.bitangent?new Float32Array(r):void 0;let u=0;const l=R,h=P;let d=D;if(t.normal||t.tangent||t.bitangent)for(let f=0;f0;p-=f)_e=3*p,se=z(se,he,_e,w,x),he+=6,o.st&&(ue=H(ue,de,2*p,N),de+=4),i&&(fe+=3,ae[fe++]=q[_e],ae[fe++]=q[_e+1],ae[fe++]=q[_e+2]),le&&(ce[pe++]=1,pe+=1);if(Q){const e=me;for(_e=3*e,p=0;p<2;p++)se=z(se,he,_e,w,x),he+=6,o.st&&(ue=H(ue,de,2*e,N),de+=4),i&&(fe+=3,ae[fe++]=q[_e],ae[fe++]=q[_e+1],ae[fe++]=q[_e+2]),le&&(ce[pe++]=1,pe+=1)}else for(p=f-1;p>=0;p--)_e=3*p,se=z(se,he,_e,w,x),he+=6,o.st&&(ue=H(ue,de,2*p,N),de+=4),i&&(fe+=3,ae[fe++]=q[_e],ae[fe++]=q[_e+1],ae[fe++]=q[_e+2]),le&&(ce[pe++]=1,pe+=1);let Ze=function(e,t,i){const n=e.length,r=t.normal?new Float32Array(n):void 0,o=t.tangent?new Float32Array(n):void 0,a=t.bitangent?new Float32Array(n):void 0;let c=0,u=0,l=0,h=!0,d=R,f=P,p=D;if(t.normal||t.tangent||t.bitangent)for(let m=0;m{"use strict";i.d(t,{Z:()=>A});var n=i(919382),r=i(698907),o=i(426468),s=i(446938),a=i(921099),c=i(362017),u=i(631145),l=i(523501);const h=Math.cos,d=Math.sin,f=Math.sqrt,p={computePosition:function(e,t,i,n,r,s,a){const c=t.radiiSquared,u=e.nwCorner,l=e.boundingRectangle;let p=u.latitude-e.granYCos*n+r*e.granXSin;const m=h(p),_=d(p),Z=c.z*_;let g=u.longitude+n*e.granYSin+r*e.granXCos;const y=m*h(g),b=m*d(g),A=c.x*y,w=c.y*b,v=f(A*y+w*b+Z*_);if(s.x=A/v,s.y=w/v,s.z=Z/v,i){const t=e.stNwCorner;(0,o.Z)(t)?(p=t.latitude-e.stGranYCos*n+r*e.stGranXSin,g=t.longitude+n*e.stGranYSin+r*e.stGranXCos,a.x=(g-e.stWest)*e.lonScalar,a.y=(p-e.stSouth)*e.latScalar):(a.x=(g-l.west)*e.lonScalar,a.y=(p-l.south)*e.latScalar)}}},m=new u.Z;let _=new n.Z;const Z=new r.Z;let g=new n.Z;const y=new a.Z;function b(e,t,i,r,o,s,a){const c=Math.cos(t),l=r*c,h=i*c,d=Math.sin(t),f=r*d,p=i*d;_=y.project(e,_),_=n.Z.subtract(_,g,_);const Z=u.Z.fromRotation(t,m);_=u.Z.multiplyByVector(Z,_,_),_=n.Z.add(_,g,_),s-=1,a-=1;const b=(e=y.unproject(_,e)).latitude,A=b+s*p,w=b-l*a,v=b-l*a+s*p,T=Math.max(b,A,w,v),C=Math.min(b,A,w,v),E=e.longitude,x=E+s*h,S=E+a*f,O=E+a*f+s*h;return{north:T,south:C,east:Math.max(E,x,S,O),west:Math.min(E,x,S,O),granYCos:l,granYSin:f,granXCos:h,granXSin:p,nwCorner:e}}p.computeOptions=function(e,t,i,n,r,o,a){let u,h=e.east,d=e.west,f=e.north,p=e.south,m=!1,_=!1;f===c.Z.PI_OVER_TWO&&(m=!0),p===-c.Z.PI_OVER_TWO&&(_=!0);const A=f-p;u=d>h?c.Z.TWO_PI-d+h:h-d;const w=Math.ceil(u/t)+1,v=Math.ceil(A/t)+1,T=u/(w-1),C=A/(v-1),E=l.Z.northwest(e,o),x=l.Z.center(e,Z);0===i&&0===n||(x.longitudec.Z.PI_OVER_TWO||p<-c.Z.PI_OVER_TWO||p>c.Z.PI_OVER_TWO)throw new s.Z("Rotated rectangle is invalid. It crosses over either the north or south pole.");D.granYCos=e.granYCos,D.granYSin=e.granYSin,D.granXCos=e.granXCos,D.granXSin=e.granXSin,I.north=f,I.south=p,I.east=h,I.west=d}if(0!==n){i-=n;const e=l.Z.northwest(I,a),t=b(e,i,T,C,0,w,v);D.stGranYCos=t.granYCos,D.stGranXCos=t.granXCos,D.stGranYSin=t.granYSin,D.stGranXSin=t.granXSin,D.stNwCorner=e,D.stWest=t.west,D.stSouth=t.south}return D};const A=p},947989:(e,t,i)=>{"use strict";i.d(t,{Z:()=>P});var n=i(170099),r=i(360791),o=i(919382),s=i(698907),a=i(997274),c=i(406144),u=i(426468),l=i(446938),h=i(253316),d=i(915067),f=i(611843),p=i(451628),m=i(215925),_=i(546135),Z=i(362017),g=i(944593),y=i(195809),b=i(523501),A=i(582908);const w=new r.Z,v=new r.Z,T=new o.Z,C=new b.Z;function E(e,t){const i=e._ellipsoid,n=t.height,r=t.width,o=t.northCap,s=t.southCap;let c=n,u=2,l=0,h=4;o&&(u-=1,c-=1,l+=1,h-=2),s&&(u-=1,c-=1,l+=1,h-=2),l+=u*r+2*c-h;const m=new Float64Array(3*l);let Z,g=0,b=0;const w=T;if(o)A.Z.computePosition(t,i,!1,b,0,w),m[g++]=w.x,m[g++]=w.y,m[g++]=w.z;else for(Z=0;Z=0;Z--)A.Z.computePosition(t,i,!1,b,Z,w),m[g++]=w.x,m[g++]=w.y,m[g++]=w.z;for(Z=0,b=n-2;b>0;b--)A.Z.computePosition(t,i,!1,b,Z,w),m[g++]=w.x,m[g++]=w.y,m[g++]=w.z;const v=m.length/3*2,C=_.Z.createTypedArray(m.length/3,v);let E=0;for(let e=0;e{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({FIXED:0,INERTIAL:1})},261045:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(406144),r=i(426468),o=i(316954),s=i(690220);function a(e){e=(0,n.Z)(e,n.Z.EMPTY_OBJECT);const t=(0,n.Z)(e.throttleByServer,!1),i=(0,n.Z)(e.throttle,!1);this.url=e.url,this.requestFunction=e.requestFunction,this.cancelFunction=e.cancelFunction,this.priorityFunction=e.priorityFunction,this.priority=(0,n.Z)(e.priority,0),this.throttle=i,this.throttleByServer=t,this.type=(0,n.Z)(e.type,s.Z.OTHER),this.serverKey=void 0,this.state=o.Z.UNISSUED,this.deferred=void 0,this.cancelled=!1}a.prototype.cancel=function(){this.cancelled=!0},a.prototype.clone=function(e){return(0,r.Z)(e)?(e.url=this.url,e.requestFunction=this.requestFunction,e.cancelFunction=this.cancelFunction,e.priorityFunction=this.priorityFunction,e.priority=this.priority,e.throttle=this.throttle,e.throttleByServer=this.throttleByServer,e.type=this.type,e.serverKey=this.serverKey,e.state=this.RequestState.UNISSUED,e.deferred=void 0,e.cancelled=!1,e):new a(this)};const c=a},773651:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(426468),r=i(851749);function o(e,t,i){this.statusCode=e,this.response=t,this.responseHeaders=i,"string"==typeof this.responseHeaders&&(this.responseHeaders=(0,r.Z)(this.responseHeaders))}o.prototype.toString=function(){let e="Request has failed.";return(0,n.Z)(this.statusCode)&&(e+=" Status Code: "+this.statusCode),e};const s=o},336217:(e,t,i)=>{"use strict";i.d(t,{Z:()=>C});var n=i(111840),r=i(527758),o=i(357299),s=i(406144),a=i(426468),c=i(197685),u=i(908647),l=i(566448),h=i(241634),d=i(316954);const f={numberOfAttemptedRequests:0,numberOfActiveRequests:0,numberOfCancelledRequests:0,numberOfCancelledActiveRequests:0,numberOfFailedRequests:0,numberOfActiveRequestsEver:0,lastNumberOfActiveRequests:0};let p=20;const m=new u.Z({comparator:function(e,t){return e.priority-t.priority}});m.maximumLength=p,m.reserve(p);const _=[];let Z={};const g="undefined"!=typeof document?new n.Z(document.location.href):new n.Z,y=new c.Z;function b(){}function A(e){(0,a.Z)(e.priorityFunction)&&(e.priority=e.priorityFunction())}function w(e){return e.state===d.Z.UNISSUED&&(e.state=d.Z.ISSUED,e.deferred=r.Z.defer()),e.deferred.promise}function v(e){const t=w(e);return e.state=d.Z.ACTIVE,_.push(e),++f.numberOfActiveRequests,++f.numberOfActiveRequestsEver,++Z[e.serverKey],e.requestFunction().then(function(e){return function(t){if(e.state===d.Z.CANCELLED)return;const i=e.deferred;--f.numberOfActiveRequests,--Z[e.serverKey],y.raiseEvent(),e.state=d.Z.RECEIVED,e.deferred=void 0,i.resolve(t)}}(e)).otherwise(function(e){return function(t){e.state!==d.Z.CANCELLED&&(++f.numberOfFailedRequests,--f.numberOfActiveRequests,--Z[e.serverKey],y.raiseEvent(t),e.state=d.Z.FAILED,e.deferred.reject(t))}}(e)),t}function T(e){const t=e.state===d.Z.ACTIVE;if(e.state=d.Z.CANCELLED,++f.numberOfCancelledRequests,(0,a.Z)(e.deferred)){const t=e.deferred;e.deferred=void 0,t.reject()}t&&(--f.numberOfActiveRequests,--Z[e.serverKey],++f.numberOfCancelledActiveRequests),(0,a.Z)(e.cancelFunction)&&e.cancelFunction()}b.maximumRequests=50,b.maximumRequestsPerServer=6,b.requestsByServer={"api.cesium.com:443":18,"assets.cesium.com:443":18},b.throttleRequests=!0,b.debugShowStatistics=!1,b.requestCompletedEvent=y,Object.defineProperties(b,{statistics:{get:function(){return f}},priorityHeapLength:{get:function(){return p},set:function(e){if(ee;)T(m.pop());p=e,m.maximumLength=e,m.reserve(e)}}}),b.serverHasOpenSlots=function(e,t){t=(0,s.Z)(t,1);const i=(0,s.Z)(b.requestsByServer[e],b.maximumRequestsPerServer);return Z[e]+t<=i},b.heapHasOpenSlots=function(e){return m.length+e<=p},b.update=function(){let e,t,i=0;const n=_.length;for(e=0;e0&&(_[e-i]=t):++i;_.length-=i;const r=m.internalArray,o=m.length;for(e=0;e0;)t=m.pop(),t.cancelled?T(t):!t.throttleByServer||b.serverHasOpenSlots(t.serverKey)?(v(t),++a):T(t);b.debugShowStatistics&&(0===f.numberOfActiveRequests&&f.lastNumberOfActiveRequests>0&&(f.numberOfAttemptedRequests>0&&(console.log("Number of attempted requests: "+f.numberOfAttemptedRequests),f.numberOfAttemptedRequests=0),f.numberOfCancelledRequests>0&&(console.log("Number of cancelled requests: "+f.numberOfCancelledRequests),f.numberOfCancelledRequests=0),f.numberOfCancelledActiveRequests>0&&(console.log("Number of cancelled active requests: "+f.numberOfCancelledActiveRequests),f.numberOfCancelledActiveRequests=0),f.numberOfFailedRequests>0&&(console.log("Number of failed requests: "+f.numberOfFailedRequests),f.numberOfFailedRequests=0)),f.lastNumberOfActiveRequests=f.numberOfActiveRequests)},b.getServerKey=function(e){o.Z.typeOf.string("url",e);let t=new n.Z(e);""===t.scheme()&&(t=new n.Z(e).absoluteTo(g),t.normalize());let i=t.authority();/:/.test(i)||(i=i+":"+("https"===t.scheme()?"443":"80"));const r=Z[i];return(0,a.Z)(r)||(Z[i]=0),i},b.request=function(e){if(o.Z.typeOf.object("request",e),o.Z.typeOf.string("request.url",e.url),o.Z.typeOf.func("request.requestFunction",e.requestFunction),(0,h.Z)(e.url)||(0,l.Z)(e.url))return y.raiseEvent(),e.state=d.Z.RECEIVED,e.requestFunction();if(++f.numberOfAttemptedRequests,(0,a.Z)(e.serverKey)||(e.serverKey=b.getServerKey(e.url)),b.throttleRequests&&e.throttleByServer&&!b.serverHasOpenSlots(e.serverKey))return;if(!b.throttleRequests||!e.throttle)return v(e);if(_.length>=b.maximumRequests)return;A(e);const t=m.insert(e);if((0,a.Z)(t)){if(t===e)return;T(t)}return w(e)},b.clearForSpecs=function(){for(;m.length>0;)T(m.pop());const e=_.length;for(let t=0;t{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({UNISSUED:0,ISSUED:1,ACTIVE:2,RECEIVED:3,CANCELLED:4,FAILED:5})},690220:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({TERRAIN:0,IMAGERY:1,TILES3D:2,OTHER:3})},795788:(e,t,i)=>{"use strict";i.d(t,{Z:()=>H});var n=i(111840),r=i(527758),o=i(611065),s=i(357299),a=i(556592),c=i(307260),u=i(406144),l=i(426468),h=i(446938),d=i(47628),f=i(151298),p=i(44537),m=i(566448),_=i(532242),Z=i(241634),g=i(734724),y=i(362017),b=i(847300),A=i(632207),w=i(261045),v=i(773651),T=i(336217),C=i(316954),E=i(50128),x=i(127204),S=i(348764).Buffer;const O=function(){try{const e=new XMLHttpRequest;return e.open("GET","#",!0),e.responseType="blob","blob"===e.responseType}catch(e){return!1}}();function I(e,t,i,n){const r=e.query();if(0===r.length)return{};let o;if(-1===r.indexOf("=")){const e={};e[r]=void 0,o=e}else o=(0,A.Z)(r);t._queryParameters=i?R(o,t._queryParameters,n):o,e.search("")}function D(e,t){return(0,l.Z)(e)?(0,l.Z)(e.clone)?e.clone():(0,a.Z)(e):t}function P(e){if(e.state===C.Z.ISSUED||e.state===C.Z.ACTIVE)throw new E.Z("The Resource is already being fetched.");e.state=C.Z.UNISSUED,e.deferred=void 0}function R(e,t,i){if(!i)return(0,c.Z)(e,t);const n=(0,a.Z)(e,!0);for(const e in t)if(t.hasOwnProperty(e)){let i=n[e];const r=t[e];(0,l.Z)(i)?(Array.isArray(i)||(i=n[e]=[i]),n[e]=i.concat(r)):n[e]=Array.isArray(r)?r.slice():r}return n}function B(e){"string"==typeof(e=(0,u.Z)(e,u.Z.EMPTY_OBJECT))&&(e={url:e}),s.Z.typeOf.string("options.url",e.url),this._url=void 0,this._templateValues=D(e.templateValues,{}),this._queryParameters=D(e.queryParameters,{}),this.headers=D(e.headers,{}),this.request=(0,u.Z)(e.request,new w.Z),this.proxy=e.proxy,this.retryCallback=e.retryCallback,this.retryAttempts=(0,u.Z)(e.retryAttempts,0),this._retryCount=0;const t=new n.Z(e.url);I(t,this,!0,!0),t.fragment(""),this._url=t.toString()}let M;function L(e){const t=e.resource,i=e.flipY,n=e.skipColorSpaceConversion,o=e.preferImageBitmap,s=t.request;s.url=t.url,s.requestFunction=function(){let e=!1;t.isDataUri||t.isBlobUri||(e=t.isCrossOriginUrl);const a=r.Z.defer();return B._Implementations.createImage(s,e,a,i,n,o),a.promise};const a=T.Z.request(s);if((0,l.Z)(a))return a.otherwise((function(e){return s.state!==C.Z.FAILED?r.Z.reject(e):t.retryOnError(e).then((function(a){return a?(s.state=C.Z.UNISSUED,s.deferred=void 0,L({resource:t,flipY:i,skipColorSpaceConversion:n,preferImageBitmap:o})):r.Z.reject(e)}))}))}function N(e,t,i){const n={};n[t]=i,e.setQueryParameters(n);const o=e.request;o.url=e.url,o.requestFunction=function(){const t=r.Z.defer();return window[i]=function(e){t.resolve(e);try{delete window[i]}catch(e){window[i]=void 0}},B._Implementations.loadAndExecuteScript(e.url,i,t),t.promise};const s=T.Z.request(o);if((0,l.Z)(s))return s.otherwise((function(n){return o.state!==C.Z.FAILED?r.Z.reject(n):e.retryOnError(n).then((function(s){return s?(o.state=C.Z.UNISSUED,o.deferred=void 0,N(e,t,i)):r.Z.reject(n)}))}))}B.createIfNeeded=function(e){return e instanceof B?e.getDerivedResource({request:e.request}):"string"!=typeof e?e:new B({url:e})},B.supportsImageBitmapOptions=function(){return(0,l.Z)(M)?M:"function"!=typeof createImageBitmap?(M=r.Z.resolve(!1),M):(M=B.fetchBlob({url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWP4////fwAJ+wP9CNHoHgAAAABJRU5ErkJggg=="}).then((function(e){return createImageBitmap(e,{imageOrientation:"flipY",premultiplyAlpha:"none",colorSpaceConversion:"none"})})).then((function(e){return!0})).otherwise((function(){return!1})),M)},Object.defineProperties(B,{isBlobSupported:{get:function(){return O}}}),Object.defineProperties(B.prototype,{queryParameters:{get:function(){return this._queryParameters}},templateValues:{get:function(){return this._templateValues}},url:{get:function(){return this.getUrlComponent(!0,!0)},set:function(e){const t=new n.Z(e);I(t,this,!1),t.fragment(""),this._url=t.toString()}},extension:{get:function(){return(0,p.Z)(this._url)}},isDataUri:{get:function(){return(0,Z.Z)(this._url)}},isBlobUri:{get:function(){return(0,m.Z)(this._url)}},isCrossOriginUrl:{get:function(){return(0,_.Z)(this._url)}},hasHeaders:{get:function(){return Object.keys(this.headers).length>0}}}),B.prototype.toString=function(){return this.getUrlComponent(!0,!0)},B.prototype.getUrlComponent=function(e,t){if(this.isDataUri)return this._url;const i=new n.Z(this._url);e&&function(e,t){const i=t._queryParameters,n=Object.keys(i);1!==n.length||(0,l.Z)(i[n[0]])?e.search((0,b.Z)(i)):e.search(n[0])}(i,this);let r=i.toString().replace(/%7B/g,"{").replace(/%7D/g,"}");const o=this._templateValues;return r=r.replace(/{(.*?)}/g,(function(e,t){const i=o[t];return(0,l.Z)(i)?encodeURIComponent(i):e})),t&&(0,l.Z)(this.proxy)&&(r=this.proxy.getURL(r)),r},B.prototype.setQueryParameters=function(e,t){this._queryParameters=t?R(this._queryParameters,e,!1):R(e,this._queryParameters,!1)},B.prototype.appendQueryParameters=function(e){this._queryParameters=R(e,this._queryParameters,!0)},B.prototype.setTemplateValues=function(e,t){this._templateValues=t?(0,c.Z)(this._templateValues,e):(0,c.Z)(e,this._templateValues)},B.prototype.getDerivedResource=function(e){const t=this.clone();if(t._retryCount=0,(0,l.Z)(e.url)){const i=new n.Z(e.url);I(i,t,!0,(0,u.Z)(e.preserveQueryParameters,!1)),i.fragment(""),""!==i.scheme()?t._url=i.toString():t._url=i.absoluteTo(new n.Z((0,d.Z)(this._url))).toString()}return(0,l.Z)(e.queryParameters)&&(t._queryParameters=(0,c.Z)(e.queryParameters,t._queryParameters)),(0,l.Z)(e.templateValues)&&(t._templateValues=(0,c.Z)(e.templateValues,t.templateValues)),(0,l.Z)(e.headers)&&(t.headers=(0,c.Z)(e.headers,t.headers)),(0,l.Z)(e.proxy)&&(t.proxy=e.proxy),(0,l.Z)(e.request)&&(t.request=e.request),(0,l.Z)(e.retryCallback)&&(t.retryCallback=e.retryCallback),(0,l.Z)(e.retryAttempts)&&(t.retryAttempts=e.retryAttempts),t},B.prototype.retryOnError=function(e){const t=this.retryCallback;if("function"!=typeof t||this._retryCount>=this.retryAttempts)return(0,r.Z)(!1);const i=this;return(0,r.Z)(t(this,e)).then((function(e){return++i._retryCount,e}))},B.prototype.clone=function(e){return(0,l.Z)(e)||(e=new B({url:this._url})),e._url=this._url,e._queryParameters=(0,a.Z)(this._queryParameters),e._templateValues=(0,a.Z)(this._templateValues),e.headers=(0,a.Z)(this.headers),e.proxy=this.proxy,e.retryCallback=this.retryCallback,e.retryAttempts=this.retryAttempts,e._retryCount=0,e.request=this.request.clone(),e},B.prototype.getBaseUri=function(e){return(0,f.Z)(this.getUrlComponent(e),e)},B.prototype.appendForwardSlash=function(){this._url=(0,o.Z)(this._url)},B.prototype.fetchArrayBuffer=function(){return this.fetch({responseType:"arraybuffer"})},B.fetchArrayBuffer=function(e){return new B(e).fetchArrayBuffer()},B.prototype.fetchBlob=function(){return this.fetch({responseType:"blob"})},B.fetchBlob=function(e){return new B(e).fetchBlob()},B.prototype.fetchImage=function(e){e=(0,u.Z)(e,u.Z.EMPTY_OBJECT);const t=(0,u.Z)(e.preferImageBitmap,!1),i=(0,u.Z)(e.preferBlob,!1),n=(0,u.Z)(e.flipY,!1),o=(0,u.Z)(e.skipColorSpaceConversion,!1);if(P(this.request),!O||this.isDataUri||this.isBlobUri||!this.hasHeaders&&!i)return L({resource:this,flipY:n,skipColorSpaceConversion:o,preferImageBitmap:t});const s=this.fetchBlob();if(!(0,l.Z)(s))return;let a,c,h,d;return B.supportsImageBitmapOptions().then((function(e){return a=e,c=a&&t,s})).then((function(e){if(!(0,l.Z)(e))return;if(d=e,c)return B.createImageBitmapFromBlob(e,{flipY:n,premultiplyAlpha:!1,skipColorSpaceConversion:o});const t=window.URL.createObjectURL(e);return h=new B({url:t}),L({resource:h,flipY:n,skipColorSpaceConversion:o,preferImageBitmap:!1})})).then((function(e){if((0,l.Z)(e))return e.blob=d,c||window.URL.revokeObjectURL(h.url),e})).otherwise((function(e){return(0,l.Z)(h)&&window.URL.revokeObjectURL(h.url),e.blob=d,r.Z.reject(e)}))},B.fetchImage=function(e){return new B(e).fetchImage({flipY:e.flipY,skipColorSpaceConversion:e.skipColorSpaceConversion,preferBlob:e.preferBlob,preferImageBitmap:e.preferImageBitmap})},B.prototype.fetchText=function(){return this.fetch({responseType:"text"})},B.fetchText=function(e){return new B(e).fetchText()},B.prototype.fetchJson=function(){const e=this.fetch({responseType:"text",headers:{Accept:"application/json,*/*;q=0.01"}});if((0,l.Z)(e))return e.then((function(e){if((0,l.Z)(e))return JSON.parse(e)}))},B.fetchJson=function(e){return new B(e).fetchJson()},B.prototype.fetchXML=function(){return this.fetch({responseType:"document",overrideMimeType:"text/xml"})},B.fetchXML=function(e){return new B(e).fetchXML()},B.prototype.fetchJsonp=function(e){let t;e=(0,u.Z)(e,"callback"),P(this.request);do{t="loadJsonp"+y.Z.nextRandomNumber().toString().substring(2,8)}while((0,l.Z)(window[t]));return N(this,e,t)},B.fetchJsonp=function(e){return new B(e).fetchJsonp(e.callbackParameterName)},B.prototype._makeRequest=function(e){const t=this;P(t.request);const i=t.request;i.url=t.url,i.requestFunction=function(){const n=e.responseType,o=(0,c.Z)(e.headers,t.headers),s=e.overrideMimeType,a=e.method,u=e.data,h=r.Z.defer(),d=B._Implementations.loadWithXhr(t.url,n,a,u,o,h,s);return(0,l.Z)(d)&&(0,l.Z)(d.abort)&&(i.cancelFunction=function(){d.abort()}),h.promise};const n=T.Z.request(i);if((0,l.Z)(n))return n.then((function(e){return i.cancelFunction=void 0,e})).otherwise((function(n){return i.cancelFunction=void 0,i.state!==C.Z.FAILED?r.Z.reject(n):t.retryOnError(n).then((function(o){return o?(i.state=C.Z.UNISSUED,i.deferred=void 0,t.fetch(e)):r.Z.reject(n)}))}))};const F=/^data:(.*?)(;base64)?,(.*)$/;function k(e,t){const i=decodeURIComponent(t);return e?atob(i):i}function U(e,t){const i=k(e,t),n=new ArrayBuffer(i.length),r=new Uint8Array(n);for(let e=0;e=300)return void o.reject(new v.Z(e.statusCode,e,e.headers));const i=[];e.on("data",(function(e){i.push(e)})),e.on("end",(function(){const n=S.concat(i);"gzip"===e.headers["content-encoding"]?u.gunzip(n,(function(e,i){e?o.reject(new E.Z("Error decompressing response.")):o.resolve(V(i,t))})):o.resolve(V(n,t))}))})).on("error",(function(e){o.reject(new v.Z)})).end()}(e,t,i,0,r,o);const c=new XMLHttpRequest;if(x.Z.contains(e)&&(c.withCredentials=!0),c.open(i,e,!0),(0,l.Z)(s)&&(0,l.Z)(c.overrideMimeType)&&c.overrideMimeType(s),(0,l.Z)(r))for(const e in r)r.hasOwnProperty(e)&&c.setRequestHeader(e,r[e]);(0,l.Z)(t)&&(c.responseType=t);let d=!1;return"string"==typeof e&&(d=0===e.indexOf("file://")||"undefined"!=typeof window&&"file://"===window.location.origin),c.onload=function(){if((c.status<200||c.status>=300)&&(!d||0!==c.status))return void o.reject(new v.Z(c.status,c.response,c.getAllResponseHeaders()));const e=c.response,n=c.responseType;if("HEAD"===i||"OPTIONS"===i){const e=c.getAllResponseHeaders().trim().split(/[\r\n]+/),t={};return e.forEach((function(e){const i=e.split(": "),n=i.shift();t[n]=i.join(": ")})),void o.resolve(t)}if(204===c.status)o.resolve();else if(!(0,l.Z)(e)||(0,l.Z)(t)&&n!==t)if("json"===t&&"string"==typeof e)try{o.resolve(JSON.parse(e))}catch(e){o.reject(e)}else(""===n||"document"===n)&&(0,l.Z)(c.responseXML)&&c.responseXML.hasChildNodes()?o.resolve(c.responseXML):""!==n&&"text"!==n||!(0,l.Z)(c.responseText)?o.reject(new E.Z("Invalid XMLHttpRequest response type.")):o.resolve(c.responseText);else o.resolve(e)},c.onerror=function(e){o.reject(new v.Z)},c.send(n),c},B._Implementations.loadAndExecuteScript=function(e,t,i){return(0,g.Z)(e,t).otherwise(i.reject)},B._DefaultImplementations={},B._DefaultImplementations.createImage=B._Implementations.createImage,B._DefaultImplementations.loadWithXhr=B._Implementations.loadWithXhr,B._DefaultImplementations.loadAndExecuteScript=B._Implementations.loadAndExecuteScript,B.DEFAULT=Object.freeze(new B({url:"undefined"==typeof document?"":document.location.href.split("?")[0]}));const H=B},50128:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(426468);function r(e){let t;this.name="RuntimeError",this.message=e;try{throw new Error}catch(e){t=e.stack}this.stack=t}(0,n.Z)(Object.create)&&(r.prototype=Object.create(Error.prototype),r.prototype.constructor=r),r.prototype.toString=function(){let e=this.name+": "+this.message;return(0,n.Z)(this.stack)&&(e+="\n"+this.stack.toString()),e};const o=r},820074:(e,t,i)=>{"use strict";i.d(t,{Z:()=>C});var n=i(919382),r=i(698907),o=i(357299),s=i(406144),a=i(426468),c=i(446938),u=i(253316),l=i(488802),h=i(50128);const d=[],f=[],p=[[0,1,3,2],[0,2,3,1],[3,2,0,1],[3,1,0,2]],m=[1,0,0,3];function _(e){if(!l.Z.supportsBigInt())throw new h.Z("S2 required BigInt support");if(!(0,a.Z)(e))throw new c.Z("cell ID is required.");if(!_.isValidId(e))throw new c.Z("cell ID is invalid.");this._cellId=e,this._level=_.getLevel(e)}function Z(e){0===d.length&&(w(0,0,0,0,0,0),w(0,0,0,1,0,1),w(0,0,0,2,0,2),w(0,0,0,3,0,3));var t=Number(e>>BigInt(61));let i=1&t,n=0,r=0;for(let t=7;t>=0;t--){const o=(1<<2*(7===t?2:4))-1;i+=Number(e>>BigInt(2*t*4+1)&BigInt(o))<<2,i=f[i];const s=4*t;n+=i>>6<>2&15)<=.5?1/3*(4*e*e-1):1/3*(1-4*(1-e)*(1-e))}function b(e){return 1/2147483648*e}function A(e){return 1/1073741824*e}function w(e,t,i,n,r,o){if(4===e){const e=(t<<4)+i;d[(e<<2)+n]=(r<<2)+o,f[(r<<2)+n]=(e<<2)+o}else{e++,i<<=1,r<<=2;const s=p[o];w(e,(t<<=1)+(s[0]>>1),i+(1&s[0]),n,r,o^m[0]),w(e,t+(s[1]>>1),i+(1&s[1]),n,r+1,o^m[1]),w(e,t+(s[2]>>1),i+(1&s[2]),n,r+2,o^m[2]),w(e,t+(s[3]>>1),i+(1&s[3]),n,r+3,o^m[3])}}function v(e){return e&~e+BigInt(1)}_.fromToken=function(e){if(o.Z.typeOf.string("token",e),!_.isValidToken(e))throw new c.Z("token is invalid.");return new _(_.getIdFromToken(e))},_.isValidId=function(e){return o.Z.typeOf.bigint("cellId",e),!(e<=0||e>>BigInt(61)>5||!(e&~e+BigInt(1)&BigInt("0x1555555555555555")))},_.isValidToken=function(e){return o.Z.typeOf.string("token",e),!!/^[0-9a-fA-F]{1,16}$/.test(e)&&_.isValidId(_.getIdFromToken(e))},_.getIdFromToken=function(e){return o.Z.typeOf.string("token",e),BigInt("0x"+e+"0".repeat(16-e.length))},_.getTokenFromId=function(e){o.Z.typeOf.bigint("cellId",e);const t=Math.floor(T[(-(i=e)&i)%BigInt(67)]/4);var i;const n=e.toString(16).replace(/0*$/,"");return Array(17-t-n.length).join("0")+n},_.getLevel=function(e){if(o.Z.typeOf.bigint("cellId",e),!_.isValidId(e))throw new c.Z;let t=0;for(;e!==BigInt(0)&&!(e&BigInt(1));)t++,e>>=BigInt(1);return 30-(t>>1)},_.prototype.getChild=function(e){if(o.Z.typeOf.number("index",e),e<0||e>3)throw new c.Z("child index must be in the range [0-3].");if(30===this._level)throw new c.Z("cannot get child of leaf cell.");var t=v(this._cellId)>>BigInt(2);return new _(this._cellId+BigInt(2*e+1-4)*t)},_.prototype.getParent=function(){if(0===this._level)throw new c.Z("cannot get parent of root cell.");var e=v(this._cellId)<>BigInt(2))&BigInt(1),c=s?1:a?2:0;return[n,(r<<1)+c,(o<<1)+c]}(e,t);return function(e,t,i){const n=b(t),r=b(i);return g(e,y(n),y(r))}(i[0],i[1],i[2])}(this._cellId,this._level);t=n.Z.normalize(t,t);const i=new r.Z.fromCartesian(t,u.Z.UNIT_SPHERE);return r.Z.toCartesian(i,e,new n.Z)},_.prototype.getVertex=function(e,t){if(o.Z.typeOf.number("index",e),e<0||e>3)throw new c.Z("vertex index must be in the range [0-3].");t=(0,s.Z)(t,u.Z.WGS84);let i=function(e,t,i){const n=Z(e),r=function(e,t){const i=[[],[]],n=function(e){return 1<<30-e>>>0}(t);for(let t=0;t<2;++t){const r=e[t]&-n,o=r+n;i[t][0]=y(A(r)),i[t][1]=y(A(o))}return i}([n[1],n[2]],t),o=i>>1&1;return g(n[0],r[0][o^1&i],r[1][o])}(this._cellId,this._level,e);i=n.Z.normalize(i,i);const a=new r.Z.fromCartesian(i,u.Z.UNIT_SPHERE);return r.Z.toCartesian(a,t,new n.Z)},_.fromFacePositionLevel=function(e,t,i){if(o.Z.typeOf.bigint("position",t),e<0||e>5)throw new c.Z("Invalid S2 Face (must be within 0-5)");if(i<0||i>30)throw new c.Z("Invalid level (must be within 0-30)");if(t<0||t>=Math.pow(4,i))throw new c.Z("Invalid Hilbert position for level");const n=(e<4?"0":"")+(e<2?"0":"")+e.toString(2),r=t.toString(2),s=Array(2*i-r.length+1).join("0"),a=Array(61-2*i).join("0");return new _(BigInt("0b"+n+s+r+"1"+a))};const T=[64,0,1,39,2,15,40,23,3,12,16,59,41,19,24,54,4,64,13,10,17,62,60,28,42,30,20,51,25,44,55,47,5,32,65,38,14,22,11,58,18,53,63,9,61,27,29,50,43,46,31,37,21,57,52,8,26,49,45,36,56,7,48,35,6,34,33,0],C=_},208613:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(997274),r=i(406144),o=i(426468),s=i(446938);function a(e){e=(0,r.Z)(e,!0),this.value=a.toValue(e)}Object.defineProperties(a.prototype,{componentDatatype:{get:function(){return n.Z.UNSIGNED_BYTE}},componentsPerAttribute:{get:function(){return 1}},normalize:{get:function(){return!1}}}),a.toValue=function(e,t){if(!(0,o.Z)(e))throw new s.Z("show is required.");return(0,o.Z)(t)?(t[0]=e,t):new Uint8Array([e])};const c=a},846264:(e,t,i)=>{"use strict";i.d(t,{Z:()=>C});var n=i(919382),r=i(426468),o=i(446938),s=i(40080),a=i(362017),c=i(165373),u=i(202712),l=i(841501);const h={};function d(e,t){t=s.Z.addSeconds(e,32.184,t);const i=s.Z.totalDays(t)-2451545;return s.Z.addSeconds(t,function(e){const t=6.239996+.0172019696544*e;return.001657*Math.sin(t+.01671*Math.sin(t))}(i),t)}const f=new s.Z(2451545,0,l.Z.TAI),p=a.Z.RADIANS_PER_DEGREE,m=a.Z.RADIANS_PER_ARCSECOND,_=new c.Z;function Z(e,t,i,s,u,l,h){if(i<0&&(i=-i,u+=a.Z.PI),i<0||i>a.Z.PI)throw new o.Z("The inclination is out of range. Inclination must be greater than or equal to zero and less than or equal to Pi radians.");const d=e*(1-t),f=s-u,p=u,m=function(e,t){if(t<0||t>=1)throw new o.Z("eccentricity out of range.");return function(e,t){if(t<0||t>=1)throw new o.Z("eccentricity out of range.");const i=Math.floor(e/a.Z.TWO_PI);e-=i*a.Z.TWO_PI;const n=Math.cos(e)-t,r=Math.sin(e)*Math.sqrt(1-t*t);let s=Math.atan2(r,n);return s=a.Z.zeroToTwoPi(s),e<0&&(s-=a.Z.TWO_PI),s+=i*a.Z.TWO_PI,s}(function(e,t){if(t<0||t>=1)throw new o.Z("eccentricity out of range.");const i=Math.floor(e/a.Z.TWO_PI);let n,r=(e-=i*a.Z.TWO_PI)+t*Math.sin(e)/(1-Math.sin(e+t)+Math.sin(e)),s=Number.MAX_VALUE;for(n=0;n<50&&Math.abs(s-r)>g;++n)s=r,r=s-(s-t*Math.sin(s)-e)/(1-t*Math.cos(s));if(n>=50)throw new o.Z("Kepler equation did not converge");return s=r+i*a.Z.TWO_PI,s}(e,t),t)}(l-s,t),Z=function(e,t){if(e<0)throw new o.Z("eccentricity cannot be negative.");return e<=0?"Circular":e<1?"Elliptical":e<=1?"Parabolic":"Hyperbolic"}(t);if("Hyperbolic"===Z&&Math.abs(a.Z.negativePiToPi(m))>=Math.acos(-1/t))throw new o.Z("The true anomaly of the hyperbolic orbit lies outside of the bounds of the hyperbola.");!function(e,t,i,n){if(t<0||t>a.Z.PI)throw new o.Z("inclination out of range");const s=Math.cos(e),u=Math.sin(e),l=Math.cos(t),h=Math.sin(t),d=Math.cos(i),f=Math.sin(i);(0,r.Z)(n)?(n[0]=d*s-f*u*l,n[1]=f*s+d*u*l,n[2]=u*h,n[3]=-d*u-f*s*l,n[4]=-f*u+d*s*l,n[5]=s*h,n[6]=f*h,n[7]=-d*h,n[8]=l):n=new c.Z(d*s-f*u*l,-d*u-f*s*l,f*h,f*s+d*u*l,-f*u+d*s*l,-d*h,u*h,s*h,l)}(f,i,p,_);const y=d*(1+t),b=Math.cos(m),A=Math.sin(m),w=1+t*b;if(w<=a.Z.Epsilon10)throw new o.Z("elements cannot be converted to cartesian");const v=y/w;return(0,r.Z)(h)?(h.x=v*b,h.y=v*A,h.z=0):h=new n.Z(v*b,v*A,0),c.Z.multiplyByVector(_,h,h)}const g=a.Z.EPSILON8,y=100.46645683*p,b=1295977422.83429*m,A=new s.Z(0,0,l.Z.TAI);function w(e,t){d(e,A);const i=(A.dayNumber-f.dayNumber+(A.secondsOfDay-f.secondsOfDay)/u.Z.SECONDS_PER_DAY)/u.Z.DAYS_PER_JULIAN_CENTURY,n=i*i,r=n*i,o=r*i;let s=383397.7725+.004*i,a=.055545526-16e-9*i;const c=5.15668983*p;let l=-8e-5*i+.02966*n-42e-6*r-13e-8*o;const h=83.35324312*p;let _=14643420.2669*i-38.2702*n-.045047*r+21301e-8*o;const g=125.04455501*p;let y=-6967919.3631*i+6.3602*n+.007625*r-3586e-8*o;const b=218.31664563*p;let w=1732559343.4847*i-6.391*n+.006588*r-3169e-8*o;const v=297.85019547*p+m*(1602961601.209*i-6.3706*n+.006593*r-3169e-8*o),T=134.96340251*p+m*(1717915923.2178*i+31.8792*n+.051635*r-2447e-7*o),C=357.52910918*p+m*(129596581.0481*i-.5532*n+136e-6*r-1149e-8*o),E=310.17137918*p-m*(6967051.436*i+6.2068*n+.007618*r-3219e-8*o),x=2*v,S=4*v,O=6*v,I=2*T,D=3*T,P=4*T,R=2*(93.27209062*p+m*(1739527262.8478*i-12.7512*n-.001037*r+417e-8*o));s+=3400.4*Math.cos(x)-635.6*Math.cos(x-T)-235.6*Math.cos(T)+218.1*Math.cos(x-C)+181*Math.cos(x+T),a+=.014216*Math.cos(x-T)+.008551*Math.cos(x-I)-.001383*Math.cos(T)+.001356*Math.cos(x+T)-.001147*Math.cos(S-D)-914e-6*Math.cos(S-I)+869e-6*Math.cos(x-C-T)-627e-6*Math.cos(x)-394e-6*Math.cos(S-P)+282e-6*Math.cos(x-C-I)-279e-6*Math.cos(v-T)-236e-6*Math.cos(I)+231e-6*Math.cos(S)+229e-6*Math.cos(O-P)-201e-6*Math.cos(I-R),l+=486.26*Math.cos(x-R)-40.13*Math.cos(x)+37.51*Math.cos(R)+25.73*Math.cos(I-R)+19.97*Math.cos(x-C-R),_+=-55609*Math.sin(x-T)-34711*Math.sin(x-I)-9792*Math.sin(T)+9385*Math.sin(S-D)+7505*Math.sin(S-I)+5318*Math.sin(x+T)+3484*Math.sin(S-P)-3417*Math.sin(x-C-T)-2530*Math.sin(O-P)-2376*Math.sin(x)-2075*Math.sin(x-D)-1883*Math.sin(I)-1736*Math.sin(O-5*T)+1626*Math.sin(C)-1370*Math.sin(O-D),y+=-5392*Math.sin(x-R)-540*Math.sin(C)-441*Math.sin(x)+423*Math.sin(R)-288*Math.sin(I-R),w+=-3332.9*Math.sin(x)+1197.4*Math.sin(x-T)-662.5*Math.sin(C)+396.3*Math.sin(T)-218*Math.sin(x-C);const B=2*E,M=3*E;l+=46.997*Math.cos(E)*i-.614*Math.cos(x-R+E)*i+.614*Math.cos(x-R-E)*i-.0297*Math.cos(B)*n-.0335*Math.cos(E)*n+.0012*Math.cos(x-R+B)*n-16e-5*Math.cos(E)*r+4e-5*Math.cos(M)*r+4e-5*Math.cos(B)*r;const L=2.116*Math.sin(E)*i-.111*Math.sin(x-R-E)*i-.0015*Math.sin(E)*n;return _+=L,w+=L,y+=-520.77*Math.sin(E)*i+13.66*Math.sin(x-R+E)*i+1.12*Math.sin(x-E)*i-1.06*Math.sin(R-E)*i+.66*Math.sin(B)*n+.371*Math.sin(E)*n-.035*Math.sin(x-R+B)*n-.015*Math.sin(x-R+E)*n+.0014*Math.sin(E)*r-.0011*Math.sin(M)*r-9e-4*Math.sin(B)*r,s*=1e3,Z(s,a,c+l*m,h+_*m,g+y*m,b+w*m,t)}const v=new c.Z(1.0000000000000002,5619723173785822e-31,4690511510146299e-34,-5154129427414611e-31,.9174820620691819,-.39777715593191376,-223970096136568e-30,.39777715593191376,.9174820620691819);let T=new n.Z;h.computeSunPositionInEarthInertialFrame=function(e,t){return(0,r.Z)(e)||(e=s.Z.now()),(0,r.Z)(t)||(t=new n.Z),T=function(e,t){d(e,A);const i=(A.dayNumber-f.dayNumber+(A.secondsOfDay-f.secondsOfDay)/u.Z.SECONDS_PER_DAY)/(10*u.Z.DAYS_PER_JULIAN_CENTURY),n=.3595362*i,r=149598022260.7121+957426.3679999999*Math.cos(16002*n)+-2243968.05*Math.sin(16002*n)+-2273887.624*Math.cos(21863*n)+-688150.202*Math.sin(21863*n)+927506.794*Math.cos(32004*n)+1017265.516*Math.sin(32004*n)+-119678.29599999999*Math.cos(10931*n)+807828.498*Math.sin(10931*n)+478713.18399999995*Math.cos(14529*n)+209437.01799999998*Math.sin(14529*n)+-613351.267*Math.cos(16368*n)+359034.888*Math.sin(16368*n)+284235.953*Math.cos(15318*n)+-418874.03599999996*Math.sin(15318*n)+-164557.657*Math.cos(32794*n)+329115.314*Math.sin(32794*n),o=y+b*i+-325e-7*Math.cos(10*n)+-105e-7*Math.sin(10*n)+-322e-7*Math.cos(16002*n)+-137e-7*Math.sin(16002*n)+-7899999999999999e-21*Math.cos(21863*n)+258e-7*Math.sin(21863*n)+23199999999999998e-21*Math.cos(10931*n)+35e-7*Math.sin(10931*n)+-5199999999999999e-21*Math.cos(1473*n)+-11599999999999999e-21*Math.sin(1473*n)+97e-7*Math.cos(32004*n)+-88e-7*Math.sin(32004*n)+55e-7*Math.cos(4387*n)+-112e-7*Math.sin(4387*n)+-41e-7*Math.cos(73*n)+-8e-6*Math.sin(73*n);return Z(r,.0167086342-.0004203654*i,469.97289*m*i,102.93734808*p+11612.3529*m*i,174.87317577*p-8679.27034*m*i,o,t)}(e,T),t=n.Z.negate(T,t),function(e,t){t=w(e,t),n.Z.multiplyByScalar(t,-.01215058143522694,t)}(e,T),n.Z.subtract(t,T,t),c.Z.multiplyByVector(v,t,t),t},h.computeMoonPositionInEarthInertialFrame=function(e,t){return(0,r.Z)(e)||(e=s.Z.now()),t=w(e,t),c.Z.multiplyByVector(v,t,t),t};const C=h},251299:(e,t,i)=>{"use strict";i.d(t,{Z:()=>T});var n=i(726307),r=i(360791),o=i(919382),s=i(545125),a=i(997274),c=i(406144),u=i(426468),l=i(446938),h=i(253316),d=i(915067),f=i(611843),p=i(451628),m=i(546135),_=i(362017),Z=i(372944),g=i(195809);function y(e,t,i,n,r,o,a){const c=Z.Z.numberOfPoints(e,t,r);let u;const l=i.red,h=i.green,d=i.blue,f=i.alpha,p=n.red,m=n.green,_=n.blue,g=n.alpha;if(s.Z.equals(i,n)){for(u=0;u0?new Array(r):void 0;for(n=0;n0&&(o.Z.pack(r,S,e),e+=3,D=i[E-1],I[n++]=s.Z.floatToByte(D.red),I[n++]=s.Z.floatToByte(D.green),I[n++]=s.Z.floatToByte(D.blue),I[n++]=s.Z.floatToByte(D.alpha)),C&&E===x-1)break;o.Z.pack(r,S,e),e+=3,(0,u.Z)(i)&&(D=i[E],I[n++]=s.Z.floatToByte(D.red),I[n++]=s.Z.floatToByte(D.green),I[n++]=s.Z.floatToByte(D.blue),I[n++]=s.Z.floatToByte(D.alpha))}}const R=new p.Z;R.position=new f.Z({componentDatatype:a.Z.DOUBLE,componentsPerAttribute:3,values:S}),(0,u.Z)(i)&&(R.color=new f.Z({componentDatatype:a.Z.UNSIGNED_BYTE,componentsPerAttribute:4,values:I,normalize:!0})),O=S.length/3;const B=2*(O-1),M=m.Z.createTypedArray(O,B);let L=0;for(E=0;E{"use strict";i.d(t,{Z:()=>d});var n=i(919382),r=i(357299),o=i(406144),s=i(426468),a=i(675758),c=i(172674);function u(e){const t=(0,o.Z)(e.radius,1),i={radii:new n.Z(t,t,t),stackPartitions:e.stackPartitions,slicePartitions:e.slicePartitions,vertexFormat:e.vertexFormat};this._ellipsoidGeometry=new a.Z(i),this._workerName="createSphereGeometry"}u.packedLength=a.Z.packedLength,u.pack=function(e,t,i){return r.Z.typeOf.object("value",e),a.Z.pack(e._ellipsoidGeometry,t,i)};const l=new a.Z,h={radius:void 0,radii:new n.Z,vertexFormat:new c.Z,stackPartitions:void 0,slicePartitions:void 0};u.unpack=function(e,t,i){const r=a.Z.unpack(e,t,l);return h.vertexFormat=c.Z.clone(r._vertexFormat,h.vertexFormat),h.stackPartitions=r._stackPartitions,h.slicePartitions=r._slicePartitions,(0,s.Z)(i)?(n.Z.clone(r._radii,h.radii),i._ellipsoidGeometry=new a.Z(h),i):(h.radius=r._radii.x,new u(h))},u.createGeometry=function(e){return a.Z.createGeometry(e._ellipsoidGeometry)};const d=u},974403:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(919382),r=i(357299),o=i(406144),s=i(426468),a=i(737212);function c(e){const t=(0,o.Z)(e.radius,1),i={radii:new n.Z(t,t,t),stackPartitions:e.stackPartitions,slicePartitions:e.slicePartitions,subdivisions:e.subdivisions};this._ellipsoidGeometry=new a.Z(i),this._workerName="createSphereOutlineGeometry"}c.packedLength=a.Z.packedLength,c.pack=function(e,t,i){return r.Z.typeOf.object("value",e),a.Z.pack(e._ellipsoidGeometry,t,i)};const u=new a.Z,l={radius:void 0,radii:new n.Z,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0};c.unpack=function(e,t,i){const r=a.Z.unpack(e,t,u);return l.stackPartitions=r._stackPartitions,l.slicePartitions=r._slicePartitions,l.subdivisions=r._subdivisions,(0,s.Z)(i)?(n.Z.clone(r._radii,l.radii),i._ellipsoidGeometry=new a.Z(l),i):(l.radius=r._radii.x,new c(l))},c.createGeometry=function(e){return a.Z.createGeometry(e._ellipsoidGeometry)};const h=c},972252:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(357299),r=i(406144),o=i(426468);function s(e,t,i){this.clock=(0,r.Z)(e,0),this.cone=(0,r.Z)(t,0),this.magnitude=(0,r.Z)(i,1)}s.fromCartesian3=function(e,t){n.Z.typeOf.object("cartesian3",e);const i=e.x,r=e.y,a=e.z,c=i*i+r*r;return(0,o.Z)(t)||(t=new s),t.clock=Math.atan2(r,i),t.cone=Math.atan2(Math.sqrt(c),a),t.magnitude=Math.sqrt(c+a*a),t},s.clone=function(e,t){if((0,o.Z)(e))return(0,o.Z)(t)?(t.clock=e.clock,t.cone=e.cone,t.magnitude=e.magnitude,t):new s(e.clock,e.cone,e.magnitude)},s.normalize=function(e,t){return n.Z.typeOf.object("spherical",e),(0,o.Z)(t)?(t.clock=e.clock,t.cone=e.cone,t.magnitude=1,t):new s(e.clock,e.cone,1)},s.equals=function(e,t){return e===t||(0,o.Z)(e)&&(0,o.Z)(t)&&e.clock===t.clock&&e.cone===t.cone&&e.magnitude===t.magnitude},s.equalsEpsilon=function(e,t,i){return i=(0,r.Z)(i,0),e===t||(0,o.Z)(e)&&(0,o.Z)(t)&&Math.abs(e.clock-t.clock)<=i&&Math.abs(e.cone-t.cone)<=i&&Math.abs(e.magnitude-t.magnitude)<=i},s.prototype.equals=function(e){return s.equals(this,e)},s.prototype.clone=function(e){return s.clone(this,e)},s.prototype.equalsEpsilon=function(e,t){return s.equalsEpsilon(this,e,t)},s.prototype.toString=function(){return"("+this.clock+", "+this.cone+", "+this.magnitude+")"};const a=s},54791:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(357299),r=i(406144),o=i(426468),s=i(446938),a=i(362017);function c(){this.times=void 0,this.points=void 0,s.Z.throwInstantiationError()}c.prototype.evaluate=s.Z.throwInstantiationError,c.prototype.findTimeInterval=function(e,t){const i=this.times,n=i.length;if(!(0,o.Z)(e))throw new s.Z("time is required.");if(ei[n-1])throw new s.Z("time is out of range.");if(e>=i[t=(0,r.Z)(t,0)]){if(t+1=0&&e>=i[t-1])return t-1;let a;if(e>i[t])for(a=t;a=i[a]&&e=0&&!(e>=i[a]&&ei&&(s=Math.floor((e-i)/o)+1,e-=s*o),e},c.prototype.clampTime=function(e){n.Z.typeOf.number("time",e);const t=this.times;return a.Z.clamp(e,t[0],t[t.length-1])};const u=c},890357:(e,t,i)=>{"use strict";i.d(t,{Z:()=>v});var n=i(111840),r=i(527758),o=i(913216),s=i(406144),a=i(426468),c=i(54879),u=i(446938),l=i(197685),h=i(488802),d=i(532242),f=i(795788),p=i(50128);function m(){if(!(0,a.Z)(A._canTransferArrayBuffer)){const e=new Worker(g("Workers/transferTypedArrayTest.js"));e.postMessage=(0,s.Z)(e.webkitPostMessage,e.postMessage);const t=99,i=new Int8Array([t]);try{e.postMessage({array:i},[i.buffer])}catch(e){return A._canTransferArrayBuffer=!1,A._canTransferArrayBuffer}const n=r.Z.defer();e.onmessage=function(i){const r=i.data.array,o=(0,a.Z)(r)&&r[0]===t;n.resolve(o),e.terminate(),A._canTransferArrayBuffer=o},A._canTransferArrayBuffer=n.promise}return A._canTransferArrayBuffer}const _=new l.Z;function Z(e,t){--e._activeTasks;const i=t.id;if(!(0,a.Z)(i))return;const n=e._deferreds,r=n[i];if((0,a.Z)(t.error)){let e=t.error;"RuntimeError"===e.name?(e=new p.Z(t.error.message),e.stack=t.error.stack):"DeveloperError"===e.name&&(e=new u.Z(t.error.message),e.stack=t.error.stack),_.raiseEvent(e),r.reject(e)}else _.raiseEvent(),r.resolve(t.result);delete n[i]}function g(e){let t=(0,o.Z)(e);if((0,d.Z)(t)){const e='importScripts("'+t+'");';let i;try{i=new Blob([e],{type:"application/javascript"})}catch(t){const n=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder);n.append(e),i=n.getBlob("application/javascript")}t=(window.URL||window.webkitURL).createObjectURL(i)}return t}let y;function b(e){const t=new Worker(((0,a.Z)(y)||(y=g("Workers/cesiumWorkerBootstrapper.js")),y));t.postMessage=(0,s.Z)(t.webkitPostMessage,t.postMessage);const i={loaderConfig:{paths:{Workers:(0,o.Z)("Workers")},baseUrl:o.Z.getCesiumBaseUrl().url},workerModule:e._workerPath};return t.postMessage(i),t.onmessage=function(t){Z(e,t.data)},t}function A(e,t){const i=new n.Z(e);this._workerPath=0!==i.scheme().length&&0===i.fragment().length?e:A._workerModulePrefix+e,this._maximumActiveTasks=(0,s.Z)(t,Number.POSITIVE_INFINITY),this._activeTasks=0,this._deferreds={},this._nextID=0}const w=[];A.prototype.scheduleTask=function(e,t){if((0,a.Z)(this._worker)||(this._worker=b(this)),this._activeTasks>=this._maximumActiveTasks)return;++this._activeTasks;const i=this;return(0,r.Z)(m(),(function(n){(0,a.Z)(t)?n||(t.length=0):t=w;const o=i._nextID++,s=r.Z.defer();return i._deferreds[o]=s,i._worker.postMessage({id:o,parameters:e,canTransferArrayBuffer:n},t),s.promise}))},A.prototype.initWebAssemblyModule=function(e){(0,a.Z)(this._worker)||(this._worker=b(this));const t=r.Z.defer(),i=this,n=this._worker;return function(e,t){const i={modulePath:void 0,wasmBinaryFile:void 0,wasmBinary:void 0};if(!h.Z.supportsWebAssembly()){if(!(0,a.Z)(t.fallbackModulePath))throw new p.Z("This browser does not support Web Assembly, and no backup module was provided for "+e._workerPath);return i.modulePath=(0,o.Z)(t.fallbackModulePath),r.Z.resolve(i)}return i.modulePath=(0,o.Z)(t.modulePath),i.wasmBinaryFile=(0,o.Z)(t.wasmBinaryFile),f.Z.fetchArrayBuffer({url:i.wasmBinaryFile}).then((function(e){return i.wasmBinary=e,i}))}(this,e).then((function(e){return(0,r.Z)(m(),(function(r){let o;const s=e.wasmBinary;(0,a.Z)(s)&&r&&(o=[s]),n.onmessage=function(e){n.onmessage=function(e){Z(i,e.data)},t.resolve(e.data)},n.postMessage({webAssemblyConfig:e},o)}))})),t},A.prototype.isDestroyed=function(){return!1},A.prototype.destroy=function(){return(0,a.Z)(this._worker)&&this._worker.terminate(),(0,c.Z)(this)},A.taskCompletedEvent=_,A._defaultWorkerModulePrefix="Workers/",A._workerModulePrefix=A._defaultWorkerModulePrefix,A._canTransferArrayBuffer=void 0;const v=A},774329:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(446938);function r(){n.Z.throwInstantiationError()}Object.defineProperties(r.prototype,{credits:{get:n.Z.throwInstantiationError},waterMask:{get:n.Z.throwInstantiationError}}),r.prototype.interpolateHeight=n.Z.throwInstantiationError,r.prototype.isChildAvailable=n.Z.throwInstantiationError,r.prototype.createMesh=n.Z.throwInstantiationError,r.prototype.upsample=n.Z.throwInstantiationError,r.prototype.wasCreatedByUpsampling=n.Z.throwInstantiationError,r.maximumAsynchronousTasks=5;const o=r},569269:(e,t,i)=>{"use strict";i.d(t,{Z:()=>T});var n=i(247976),r=i(337968),o=i(919382),s=i(997274),a=i(406144),c=i(426468),u=i(362017),l=i(583917),h=i(957443),d=i(854948);const f=new o.Z,p=new o.Z,m=new r.Z,_=new l.Z,Z=new l.Z,g=Math.pow(2,12);function y(e,t,i,n,r,s,u,h,m,y){let b,A,w=d.Z.NONE;if((0,c.Z)(t)&&(0,c.Z)(i)&&(0,c.Z)(n)&&(0,c.Z)(r)){const e=t.minimum,s=t.maximum,a=o.Z.subtract(s,e,p),c=n-i;w=Math.max(o.Z.maximumComponent(a),c){"use strict";i.d(t,{Z:()=>s});var n=i(919382);const r={getHeight:function(e,t,i){return(e-i)*t+i}},o=new n.Z;r.getPosition=function(e,t,i,s,a){const c=t.cartesianToCartographic(e,o),u=r.getHeight(c.height,i,s);return n.Z.fromRadians(c.longitude,c.latitude,u,t,a)};const s=r},931079:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(406144);const r=function(e,t,i,r,o,s,a,c,u,l,h,d,f,p,m,_){this.center=e,this.vertices=t,this.stride=(0,n.Z)(l,6),this.indices=i,this.indexCountWithoutSkirts=r,this.vertexCountWithoutSkirts=o,this.minimumHeight=s,this.maximumHeight=a,this.boundingSphere3D=c,this.occludeePointInScaledSpace=u,this.orientedBoundingBox=h,this.encoding=d,this.westIndicesSouthToNorth=f,this.southIndicesEastToWest=p,this.eastIndicesNorthToSouth=m,this.northIndicesWestToEast=_}},950714:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(426468),r=i(446938),o=i(546135),s=i(362017);function a(){r.Z.throwInstantiationError()}Object.defineProperties(a.prototype,{errorEvent:{get:r.Z.throwInstantiationError},credit:{get:r.Z.throwInstantiationError},tilingScheme:{get:r.Z.throwInstantiationError},ready:{get:r.Z.throwInstantiationError},readyPromise:{get:r.Z.throwInstantiationError},hasWaterMask:{get:r.Z.throwInstantiationError},hasVertexNormals:{get:r.Z.throwInstantiationError},availability:{get:r.Z.throwInstantiationError}});const c=[];a.getRegularGridIndices=function(e,t){if(e*t>=s.Z.FOUR_GIGABYTES)throw new r.Z("The total number of vertices (width * height) must be less than 4,294,967,296.");let i=c[e];(0,n.Z)(i)||(c[e]=i=[]);let o=i[t];return(0,n.Z)(o)||(o=e*t=s.Z.FOUR_GIGABYTES)throw new r.Z("The total number of vertices (width * height) must be less than 4,294,967,296.");let i=u[e];(0,n.Z)(i)||(u[e]=i=[]);let o=i[t];if(!(0,n.Z)(o)){const n=a.getRegularGridIndices(e,t),r=h(e,t),s=r.westIndicesSouthToNorth,c=r.southIndicesEastToWest,u=r.eastIndicesNorthToSouth,l=r.northIndicesWestToEast;o=i[t]={indices:n,westIndicesSouthToNorth:s,southIndicesEastToWest:c,eastIndicesNorthToSouth:u,northIndicesWestToEast:l}}return o};const l=[];function h(e,t){const i=new Array(t),n=new Array(e),r=new Array(t),o=new Array(e);let s;for(s=0;s=s.Z.FOUR_GIGABYTES)throw new r.Z("The total number of vertices (width * height) must be less than 4,294,967,296.");let i=l[e];(0,n.Z)(i)||(l[e]=i=[]);let c=i[t];if(!(0,n.Z)(c)){const n=e*t,r=(e-1)*(t-1)*6,s=2*e+2*t,u=n+s,l=r+6*Math.max(0,s-4),f=h(e,t),p=f.westIndicesSouthToNorth,m=f.southIndicesEastToWest,_=f.eastIndicesNorthToSouth,Z=f.northIndicesWestToEast,g=o.Z.createTypedArray(u,l);d(e,t,g,0),a.addSkirtIndices(p,m,_,Z,n,g,r),c=i[t]={indices:g,westIndicesSouthToNorth:p,southIndicesEastToWest:m,eastIndicesNorthToSouth:_,northIndicesWestToEast:Z,indexCountWithoutSkirts:r}}return c},a.addSkirtIndices=function(e,t,i,n,r,o,s){let a=r;s=f(e,a,o,s),a+=e.length,s=f(t,a,o,s),a+=t.length,s=f(i,a,o,s),a+=i.length,f(n,a,o,s)},a.heightmapTerrainQuality=.25,a.getEstimatedLevelZeroGeometricErrorForAHeightmap=function(e,t,i){return 2*e.maximumRadius*Math.PI*a.heightmapTerrainQuality/(t*i)},a.prototype.requestTileGeometry=r.Z.throwInstantiationError,a.prototype.getLevelMaximumGeometricError=r.Z.throwInstantiationError,a.prototype.getTileDataAvailable=r.Z.throwInstantiationError,a.prototype.loadTileDataAvailability=r.Z.throwInstantiationError;const p=a},854948:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({NONE:0,BITS12:1})},969698:(e,t,i)=>{"use strict";i.d(t,{Z:()=>C});var n=i(693465),r=i(698907),o=i(426468),s=i(523501);function a(e,t){this._tilingScheme=e,this._maximumLevel=t,this._rootNodes=[]}const c=new s.Z;function u(e,t,i,n){const r=n.length;for(let o=0;o=0;--n)if((0,o.Z)(i[n])&&0===i[n].length)return n;return 0};const p=new r.Z;function m(e,t,i,n,r){this.tilingScheme=e,this.parent=t,this.level=i,this.x=n,this.y=r,this.extent=e.tileXYToRectangle(n,r,i),this.rectangles=[],this._sw=void 0,this._se=void 0,this._nw=void 0,this._ne=void 0}function _(e,t,i,n,r){this.level=e,this.west=t,this.south=i,this.east=n,this.north=r}function Z(e,t){const i=Math.max(e.west,t.west),n=Math.max(e.south,t.south),r=Math.min(e.east,t.east);return n=e.west&&t.east<=e.east&&t.south>=e.south&&t.north<=e.north}function A(e,t){return t.longitude>=e.west&&t.longitude<=e.east&&t.latitude>=e.south&&t.latitude<=e.north}function w(e,t,i){let n=0,r=!1;for(;!r;){const e=t._nw&&A(t._nw.extent,i),o=t._ne&&A(t._ne.extent,i),s=t._sw&&A(t._sw.extent,i),a=t._se&&A(t._se.extent,i);if(e+o+s+a>1){e&&(n=Math.max(n,w(t,t._nw,i))),o&&(n=Math.max(n,w(t,t._ne,i))),s&&(n=Math.max(n,w(t,t._sw,i))),a&&(n=Math.max(n,w(t,t._se,i)));break}e?t=t._nw:o?t=t._ne:s?t=t._sw:a?t=t._se:r=!0}for(;t!==e;){const e=t.rectangles;for(let t=e.length-1;t>=0&&e[t].level>n;--t){const r=e[t];A(r,i)&&(n=r.level)}t=t.parent}return n}function v(e,t,i){if(!t)return;let n,r=!1;for(n=0;nt.east&&i.push(new s.Z(t.east,r.south,r.east,r.north)),r.southt.north&&i.push(new s.Z(Math.max(t.west,r.west),t.north,Math.min(t.east,r.east),r.north))):i.push(r)}return i}a.prototype.isTileAvailable=function(e,t,i){const n=this._tilingScheme.tileXYToRectangle(t,i,e,c);return s.Z.center(n,p),this.computeMaximumLevelAtPosition(p)>=e},a.prototype.computeChildMaskForTile=function(e,t,i){const n=e+1;if(n>=this._maximumLevel)return 0;let r=0;return r|=this.isTileAvailable(n,2*t,2*i+1)?1:0,r|=this.isTileAvailable(n,2*t+1,2*i+1)?2:0,r|=this.isTileAvailable(n,2*t,2*i)?4:0,r|=this.isTileAvailable(n,2*t+1,2*i)?8:0,r},Object.defineProperties(m.prototype,{nw:{get:function(){return this._nw||(this._nw=new m(this.tilingScheme,this,this.level+1,2*this.x,2*this.y)),this._nw}},ne:{get:function(){return this._ne||(this._ne=new m(this.tilingScheme,this,this.level+1,2*this.x+1,2*this.y)),this._ne}},sw:{get:function(){return this._sw||(this._sw=new m(this.tilingScheme,this,this.level+1,2*this.x,2*this.y+1)),this._sw}},se:{get:function(){return this._se||(this._se=new m(this.tilingScheme,this,this.level+1,2*this.x+1,2*this.y+1)),this._se}}});const C=a},856776:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n={WEST:0,NORTH:1,EAST:2,SOUTH:3,NORTHWEST:4,NORTHEAST:5,SOUTHWEST:6,SOUTHEAST:7}},723822:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(406144),r=i(426468),o=i(347296);function s(e,t,i,r,o,s,a){this.provider=e,this.message=t,this.x=i,this.y=r,this.level=o,this.timesRetried=(0,n.Z)(s,0),this.retry=!1,this.error=a}s.handleError=function(e,t,i,n,a,c,u,l,h){let d=e;return(0,r.Z)(e)?(d.provider=t,d.message=n,d.x=a,d.y=c,d.level=u,d.retry=!1,d.error=h,++d.timesRetried):d=new s(t,n,a,c,u,0,h),i.numberOfListeners>0?i.raiseEvent(d):console.log('An error occurred in "'+t.constructor.name+'": '+(0,o.Z)(n)),d.retry&&(0,r.Z)(l)&&l(),d},s.handleSuccess=function(e){(0,r.Z)(e)&&(e.timesRetried=-1)};const a=s},638634:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(446938);function r(e){throw new n.Z("This type should not be instantiated directly. Instead, use WebMercatorTilingScheme or GeographicTilingScheme.")}Object.defineProperties(r.prototype,{ellipsoid:{get:n.Z.throwInstantiationError},rectangle:{get:n.Z.throwInstantiationError},projection:{get:n.Z.throwInstantiationError}}),r.prototype.getNumberOfXTilesAtLevel=n.Z.throwInstantiationError,r.prototype.getNumberOfYTilesAtLevel=n.Z.throwInstantiationError,r.prototype.rectangleToNativeRectangle=n.Z.throwInstantiationError,r.prototype.tileXYToNativeRectangle=n.Z.throwInstantiationError,r.prototype.tileXYToRectangle=n.Z.throwInstantiationError,r.prototype.positionToTileXY=n.Z.throwInstantiationError;const o=r},202712:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({SECONDS_PER_MILLISECOND:.001,SECONDS_PER_MINUTE:60,MINUTES_PER_HOUR:60,HOURS_PER_DAY:24,SECONDS_PER_HOUR:3600,MINUTES_PER_DAY:1440,SECONDS_PER_DAY:86400,DAYS_PER_JULIAN_CENTURY:36525,PICOSECOND:1e-9,MODIFIED_JULIAN_DATE_DIFFERENCE:2400000.5})},446680:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(357299),r=i(406144),o=i(426468),s=i(446938),a=i(40080);function c(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),this.start=(0,o.Z)(e.start)?a.Z.clone(e.start):new a.Z,this.stop=(0,o.Z)(e.stop)?a.Z.clone(e.stop):new a.Z,this.data=e.data,this.isStartIncluded=(0,r.Z)(e.isStartIncluded,!0),this.isStopIncluded=(0,r.Z)(e.isStopIncluded,!0)}Object.defineProperties(c.prototype,{isEmpty:{get:function(){const e=a.Z.compare(this.stop,this.start);return e<0||0===e&&(!this.isStartIncluded||!this.isStopIncluded)}}});const u={start:void 0,stop:void 0,isStartIncluded:void 0,isStopIncluded:void 0,data:void 0};c.fromIso8601=function(e,t){n.Z.typeOf.object("options",e),n.Z.typeOf.string("options.iso8601",e.iso8601);const i=e.iso8601.split("/");if(2!==i.length)throw new s.Z("options.iso8601 is an invalid ISO 8601 interval.");const l=a.Z.fromIso8601(i[0]),h=a.Z.fromIso8601(i[1]),d=(0,r.Z)(e.isStartIncluded,!0),f=(0,r.Z)(e.isStopIncluded,!0),p=e.data;return(0,o.Z)(t)?(t.start=l,t.stop=h,t.isStartIncluded=d,t.isStopIncluded=f,t.data=p,t):(u.start=l,u.stop=h,u.isStartIncluded=d,u.isStopIncluded=f,u.data=p,new c(u))},c.toIso8601=function(e,t){return n.Z.typeOf.object("timeInterval",e),a.Z.toIso8601(e.start,t)+"/"+a.Z.toIso8601(e.stop,t)},c.clone=function(e,t){if((0,o.Z)(e))return(0,o.Z)(t)?(t.start=e.start,t.stop=e.stop,t.isStartIncluded=e.isStartIncluded,t.isStopIncluded=e.isStopIncluded,t.data=e.data,t):new c(e)},c.equals=function(e,t,i){return e===t||(0,o.Z)(e)&&(0,o.Z)(t)&&(e.isEmpty&&t.isEmpty||e.isStartIncluded===t.isStartIncluded&&e.isStopIncluded===t.isStopIncluded&&a.Z.equals(e.start,t.start)&&a.Z.equals(e.stop,t.stop)&&(e.data===t.data||(0,o.Z)(i)&&i(e.data,t.data)))},c.equalsEpsilon=function(e,t,i,n){return i=(0,r.Z)(i,0),e===t||(0,o.Z)(e)&&(0,o.Z)(t)&&(e.isEmpty&&t.isEmpty||e.isStartIncluded===t.isStartIncluded&&e.isStopIncluded===t.isStopIncluded&&a.Z.equalsEpsilon(e.start,t.start,i)&&a.Z.equalsEpsilon(e.stop,t.stop,i)&&(e.data===t.data||(0,o.Z)(n)&&n(e.data,t.data)))},c.intersect=function(e,t,i,r){if(n.Z.typeOf.object("left",e),!(0,o.Z)(t))return c.clone(c.EMPTY,i);const s=e.start,u=e.stop,l=t.start,h=t.stop,d=a.Z.greaterThanOrEquals(l,s)&&a.Z.greaterThanOrEquals(u,l),f=!d&&a.Z.lessThanOrEquals(l,s)&&a.Z.lessThanOrEquals(s,h);if(!d&&!f)return c.clone(c.EMPTY,i);const p=e.isStartIncluded,m=e.isStopIncluded,_=t.isStartIncluded,Z=t.isStopIncluded,g=a.Z.lessThan(u,h);return(0,o.Z)(i)||(i=new c),i.start=d?l:s,i.isStartIncluded=p&&_||!a.Z.equals(l,s)&&(d&&_||f&&p),i.stop=g?u:h,i.isStopIncluded=g?m:m&&Z||!a.Z.equals(h,u)&&Z,i.data=(0,o.Z)(r)?r(e.data,t.data):e.data,i},c.contains=function(e,t){if(n.Z.typeOf.object("timeInterval",e),n.Z.typeOf.object("julianDate",t),e.isEmpty)return!1;const i=a.Z.compare(e.start,t);if(0===i)return e.isStartIncluded;const r=a.Z.compare(t,e.stop);return 0===r?e.isStopIncluded:i<0&&r<0},c.prototype.clone=function(e){return c.clone(this,e)},c.prototype.equals=function(e,t){return c.equals(this,e,t)},c.prototype.equalsEpsilon=function(e,t,i){return c.equalsEpsilon(this,e,t,i)},c.prototype.toString=function(){return c.toIso8601(this)},c.EMPTY=Object.freeze(new c({start:new a.Z,stop:new a.Z,isStartIncluded:!1,isStopIncluded:!1}));const l=c},796319:(e,t,i)=>{"use strict";i.d(t,{Z:()=>v});var n=i(693465),r=i(406144),o=i(426468),s=i(446938),a=i(197685),c=i(834033),u=i(766898),l=i(29699),h=i(40080),d=i(446680);function f(e,t){return h.Z.compare(e.start,t.start)}function p(e){if(this._intervals=[],this._changedEvent=new a.Z,(0,o.Z)(e)){const t=e.length;for(let i=0;i0&&(this._intervals.length=0,this._changedEvent.raiseEvent(this))},p.prototype.findIntervalContainingDate=function(e){const t=this.indexOf(e);return t>=0?this._intervals[t]:void 0},p.prototype.findDataForIntervalContainingDate=function(e){const t=this.indexOf(e);return t>=0?this._intervals[t].data:void 0},p.prototype.contains=function(e){return this.indexOf(e)>=0};const m=new d.Z;p.prototype.indexOf=function(e){if(!(0,o.Z)(e))throw new s.Z("date is required");const t=this._intervals;m.start=e,m.stop=e;let i=(0,n.Z)(t,m,f);return i>=0?t[i].isStartIncluded?i:i>0&&t[i-1].stop.equals(e)&&t[i-1].isStopIncluded?i-1:~i:(i=~i,i>0&&i-10&&e.isStartIncluded&&i[a-1].isStartIncluded&&i[a-1].start.equals(e.start)?--a:a0&&(r=h.Z.compare(i[a-1].stop,e.start),(r>0||0===r&&(i[a-1].isStopIncluded||e.isStartIncluded))&&(((0,o.Z)(t)?t(i[a-1].data,e.data):i[a-1].data===e.data)?(e=h.Z.greaterThan(e.stop,i[a-1].stop)?new d.Z({start:i[a-1].start,stop:e.stop,isStartIncluded:i[a-1].isStartIncluded,isStopIncluded:e.isStopIncluded,data:e.data}):new d.Z({start:i[a-1].start,stop:i[a-1].stop,isStartIncluded:i[a-1].isStartIncluded,isStopIncluded:i[a-1].isStopIncluded||e.stop.equals(i[a-1].stop)&&e.isStopIncluded,data:e.data}),i.splice(a-1,1),--a):(r=h.Z.compare(i[a-1].stop,e.stop),(r>0||0===r&&i[a-1].isStopIncluded&&!e.isStopIncluded)&&i.splice(a,0,new d.Z({start:e.stop,stop:i[a-1].stop,isStartIncluded:!e.isStopIncluded,isStopIncluded:i[a-1].isStopIncluded,data:i[a-1].data})),i[a-1]=new d.Z({start:i[a-1].start,stop:e.start,isStartIncluded:i[a-1].isStartIncluded,isStopIncluded:!e.isStartIncluded,data:i[a-1].data}))));a0||0===r&&(e.isStopIncluded||i[a].isStartIncluded));)if((0,o.Z)(t)?t(i[a].data,e.data):i[a].data===e.data)e=new d.Z({start:e.start,stop:h.Z.greaterThan(i[a].stop,e.stop)?i[a].stop:e.stop,isStartIncluded:e.isStartIncluded,isStopIncluded:h.Z.greaterThan(i[a].stop,e.stop)?i[a].isStopIncluded:e.isStopIncluded,data:e.data}),i.splice(a,1);else{if(i[a]=new d.Z({start:e.stop,stop:i[a].stop,isStartIncluded:!e.isStopIncluded,isStopIncluded:i[a].isStopIncluded,data:i[a].data}),!i[a].isEmpty)break;i.splice(a,1)}i.splice(a,0,e),this._changedEvent.raiseEvent(this)},p.prototype.removeInterval=function(e){if(!(0,o.Z)(e))throw new s.Z("interval is required");if(e.isEmpty)return!1;const t=this._intervals;let i=(0,n.Z)(t,e,f);i<0&&(i=~i);let r=!1;for(i>0&&(h.Z.greaterThan(t[i-1].stop,e.start)||t[i-1].stop.equals(e.start)&&t[i-1].isStopIncluded&&e.isStartIncluded)&&(r=!0,(h.Z.greaterThan(t[i-1].stop,e.stop)||t[i-1].isStopIncluded&&!e.isStopIncluded&&t[i-1].stop.equals(e.stop))&&t.splice(i,0,new d.Z({start:e.stop,stop:t[i-1].stop,isStartIncluded:!e.isStopIncluded,isStopIncluded:t[i-1].isStopIncluded,data:t[i-1].data})),t[i-1]=new d.Z({start:t[i-1].start,stop:e.start,isStartIncluded:t[i-1].isStartIncluded,isStopIncluded:!e.isStartIncluded,data:t[i-1].data})),i=1e3&&(r+=Math.floor(n/1e3),n%=1e3),r>=60&&(s+=Math.floor(r/60),r%=60),s>=60&&(a+=Math.floor(s/60),s%=60),a>=24&&(c+=Math.floor(a/24),a%=24),Z[2]=(0,u.Z)(d)?29:28;c>Z[l]||l>=13;)c>Z[l]&&(c-=Z[l],++l),l>=13&&(--l,d+=Math.floor(l/12),l%=12,++l),Z[2]=(0,u.Z)(d)?29:28;return _.millisecond=n,_.second=r,_.minute=s,_.hour=a,_.day=c,_.month=l,_.year=d,h.Z.fromGregorianDate(_,i)}const y=new h.Z,b=/P(?:([\d.,]+)Y)?(?:([\d.,]+)M)?(?:([\d.,]+)W)?(?:([\d.,]+)D)?(?:T(?:([\d.,]+)H)?(?:([\d.,]+)M)?(?:([\d.,]+)S)?)?/;function A(e,t){if(!(0,o.Z)(e)||0===e.length)return!1;if(t.year=0,t.month=0,t.day=0,t.hour=0,t.minute=0,t.second=0,t.millisecond=0,"P"===e[0]){const i=e.match(b);if(!(0,o.Z)(i))return!1;if((0,o.Z)(i[1])&&(t.year=Number(i[1].replace(",","."))),(0,o.Z)(i[2])&&(t.month=Number(i[2].replace(",","."))),(0,o.Z)(i[3])&&(t.day=7*Number(i[3].replace(",","."))),(0,o.Z)(i[4])&&(t.day+=Number(i[4].replace(",","."))),(0,o.Z)(i[5])&&(t.hour=Number(i[5].replace(",","."))),(0,o.Z)(i[6])&&(t.minute=Number(i[6].replace(",","."))),(0,o.Z)(i[7])){const e=Number(i[7].replace(",","."));t.second=Math.floor(e),t.millisecond=e%1*1e3}}else"Z"!==e[e.length-1]&&(e+="Z"),h.Z.toGregorianDate(h.Z.fromIso8601(e,y),t);return t.year||t.month||t.day||t.hour||t.minute||t.second||t.millisecond}const w=new c.Z;p.fromIso8601=function(e,t){if(!(0,o.Z)(e))throw new s.Z("options is required.");if(!(0,o.Z)(e.iso8601))throw new s.Z("options.iso8601 is required.");const i=e.iso8601.split("/"),n=h.Z.fromIso8601(i[0]),r=h.Z.fromIso8601(i[1]),a=[];if(A(i[2],w)){let e=h.Z.clone(n);for(a.push(e);h.Z.compare(e,r)<0;)e=g(e,w),h.Z.compare(r,e)<=0&&h.Z.clone(r,e),a.push(e)}else a.push(n,r);return p.fromJulianDateArray({julianDates:a,isStartIncluded:e.isStartIncluded,isStopIncluded:e.isStopIncluded,leadingInterval:e.leadingInterval,trailingInterval:e.trailingInterval,dataCallback:e.dataCallback},t)},p.fromIso8601DateArray=function(e,t){if(!(0,o.Z)(e))throw new s.Z("options is required.");if(!(0,o.Z)(e.iso8601Dates))throw new s.Z("options.iso8601Dates is required.");return p.fromJulianDateArray({julianDates:e.iso8601Dates.map((function(e){return h.Z.fromIso8601(e)})),isStartIncluded:e.isStartIncluded,isStopIncluded:e.isStopIncluded,leadingInterval:e.leadingInterval,trailingInterval:e.trailingInterval,dataCallback:e.dataCallback},t)},p.fromIso8601DurationArray=function(e,t){if(!(0,o.Z)(e))throw new s.Z("options is required.");if(!(0,o.Z)(e.epoch))throw new s.Z("options.epoch is required.");if(!(0,o.Z)(e.iso8601Durations))throw new s.Z("options.iso8601Durations is required.");const i=e.epoch,n=e.iso8601Durations,a=(0,r.Z)(e.relativeToPrevious,!1),c=[];let u,l;const h=n.length;for(let e=0;e{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({UTC:0,TAI:1})},381442:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(406144),r=i(426468),o=i(446938);const s={calculateACMR:function(e){const t=(e=(0,n.Z)(e,n.Z.EMPTY_OBJECT)).indices;let i=e.maximumIndex;const s=(0,n.Z)(e.cacheSize,24);if(!(0,r.Z)(t))throw new o.Z("indices is required.");const a=t.length;if(a<3||a%3!=0)throw new o.Z("indices length must be a multiple of three.");if(i<=0)throw new o.Z("maximumIndex must be greater than zero.");if(s<3)throw new o.Z("cacheSize must be greater than two.");if(!(0,r.Z)(i)){i=0;let e=0,n=t[e];for(;ei&&(i=n),++e,n=t[e]}const c=[];for(let e=0;es&&(c[t[e]]=u,++u);return(u-s+1)/(a/3)},tipsify:function(e){const t=(e=(0,n.Z)(e,n.Z.EMPTY_OBJECT)).indices,i=e.maximumIndex,s=(0,n.Z)(e.cacheSize,24);let a;function c(e,t,i,n,r,o,s){let c,u=-1,l=-1,h=0;for(;hl||-1===l)&&(l=c,u=e)),++h}return-1===u?function(e,t,i,n){for(;t.length>=1;){const i=t[t.length-1];if(t.splice(t.length-1,1),e[i].numLiveTriangles>0)return i}for(;a0)return++a,a-1;++a}return-1}(n,o,0,s):u}if(!(0,r.Z)(t))throw new o.Z("indices is required.");const u=t.length;if(u<3||u%3!=0)throw new o.Z("indices length must be a multiple of three.");if(i<=0)throw new o.Z("maximumIndex must be greater than zero.");if(s<3)throw new o.Z("cacheSize must be greater than two.");let l=0,h=0,d=t[h];const f=u;if((0,r.Z)(i))l=i+1;else{for(;hl&&(l=d),++h,d=t[h];if(-1===l)return 0;++l}const p=[];let m;for(m=0;ms&&(A.timeStamp=g,++g),++h}Z=c(0,s,y,p,g,b,l)}return T}},a=s},358198:(e,t,i)=>{"use strict";i.d(t,{Z:()=>ae});var n=i(527758),r=i(337968),o=i(919382),s=i(114754),a=i(698907),c=i(357299),u=i(406144),l=i(426468),h=i(446938),d=i(61461),f=i(280040),p=i(253316),m=i(80388),_=i(777365),Z=i(996563),g=i(40080),y=i(362017),b=i(165373),A=i(583917),w=i(129782),v=i(202712);const T={},C={up:{south:"east",north:"west",west:"south",east:"north"},down:{south:"west",north:"east",west:"north",east:"south"},south:{up:"west",down:"east",west:"down",east:"up"},north:{up:"east",down:"west",west:"up",east:"down"},west:{up:"north",down:"south",north:"down",south:"up"},east:{up:"south",down:"north",north:"up",south:"down"}},E={north:[-1,0,0],east:[0,1,0],up:[0,0,1],south:[1,0,0],west:[0,-1,0],down:[0,0,-1]},x={},S={east:new o.Z,north:new o.Z,up:new o.Z,west:new o.Z,south:new o.Z,down:new o.Z};let O=new o.Z,I=new o.Z,D=new o.Z;T.localFrameToFixedFrameGenerator=function(e,t){if(!C.hasOwnProperty(e)||!C[e].hasOwnProperty(t))throw new h.Z("firstAxis and secondAxis must be east, north, up, west, south or down.");const i=C[e][t];let n;const r=e+t;return(0,l.Z)(x[r])?n=x[r]:(n=function(n,r,s){if(!(0,l.Z)(n))throw new h.Z("origin is required.");if((0,l.Z)(s)||(s=new A.Z),o.Z.equalsEpsilon(n,o.Z.ZERO,y.Z.EPSILON14))o.Z.unpack(E[e],0,O),o.Z.unpack(E[t],0,I),o.Z.unpack(E[i],0,D);else if(y.Z.equalsEpsilon(n.x,0,y.Z.EPSILON14)&&y.Z.equalsEpsilon(n.y,0,y.Z.EPSILON14)){const r=y.Z.sign(n.z);o.Z.unpack(E[e],0,O),"east"!==e&&"west"!==e&&o.Z.multiplyByScalar(O,r,O),o.Z.unpack(E[t],0,I),"east"!==t&&"west"!==t&&o.Z.multiplyByScalar(I,r,I),o.Z.unpack(E[i],0,D),"east"!==i&&"west"!==i&&o.Z.multiplyByScalar(D,r,D)}else{(r=(0,u.Z)(r,p.Z.WGS84)).geodeticSurfaceNormal(n,S.up);const s=S.up,a=S.east;a.x=-n.y,a.y=n.x,a.z=0,o.Z.normalize(a,S.east),o.Z.cross(s,a,S.north),o.Z.multiplyByScalar(S.up,-1,S.down),o.Z.multiplyByScalar(S.east,-1,S.west),o.Z.multiplyByScalar(S.north,-1,S.south),O=S[e],I=S[t],D=S[i]}return s[0]=O.x,s[1]=O.y,s[2]=O.z,s[3]=0,s[4]=I.x,s[5]=I.y,s[6]=I.z,s[7]=0,s[8]=D.x,s[9]=D.y,s[10]=D.z,s[11]=0,s[12]=n.x,s[13]=n.y,s[14]=n.z,s[15]=1,s},x[r]=n),n},T.eastNorthUpToFixedFrame=T.localFrameToFixedFrameGenerator("east","north"),T.northEastDownToFixedFrame=T.localFrameToFixedFrameGenerator("north","east"),T.northUpEastToFixedFrame=T.localFrameToFixedFrameGenerator("north","up"),T.northWestUpToFixedFrame=T.localFrameToFixedFrameGenerator("north","west");const P=new w.Z,R=new o.Z(1,1,1),B=new A.Z;T.headingPitchRollToFixedFrame=function(e,t,i,n,r){c.Z.typeOf.object("HeadingPitchRoll",t),n=(0,u.Z)(n,T.eastNorthUpToFixedFrame);const s=w.Z.fromHeadingPitchRoll(t,P),a=A.Z.fromTranslationQuaternionRotationScale(o.Z.ZERO,s,R,B);return r=n(e,i,r),A.Z.multiply(r,a,r)};const M=new A.Z,L=new b.Z;T.headingPitchRollQuaternion=function(e,t,i,n,r){c.Z.typeOf.object("HeadingPitchRoll",t);const o=T.headingPitchRollToFixedFrame(e,t,i,n,M),s=A.Z.getMatrix3(o,L);return w.Z.fromRotationMatrix(s,r)};const N=new o.Z(1,1,1),F=new o.Z,k=new A.Z,U=new A.Z,V=new b.Z,z=new w.Z;T.fixedFrameToHeadingPitchRoll=function(e,t,i,n){c.Z.defined("transform",e),t=(0,u.Z)(t,p.Z.WGS84),i=(0,u.Z)(i,T.eastNorthUpToFixedFrame),(0,l.Z)(n)||(n=new m.Z);const r=A.Z.getTranslation(e,F);if(o.Z.equals(r,o.Z.ZERO))return n.heading=0,n.pitch=0,n.roll=0,n;let s=A.Z.inverseTransformation(i(r,t,k),k),a=A.Z.setScale(e,N,U);a=A.Z.setTranslation(a,o.Z.ZERO,a),s=A.Z.multiply(s,a,s);let h=w.Z.fromRotationMatrix(A.Z.getMatrix3(s,V),z);return h=w.Z.normalize(h,h),m.Z.fromQuaternion(h,n)};const H=y.Z.TWO_PI/86400;let G=new g.Z;T.computeTemeToPseudoFixedMatrix=function(e,t){if(!(0,l.Z)(e))throw new h.Z("date is required.");G=g.Z.addSeconds(e,-g.Z.computeTaiMinusUtc(e),G);const i=G.dayNumber,n=G.secondsOfDay;let r;const o=i-2451545;r=n>=43200?(o+.5)/v.Z.DAYS_PER_JULIAN_CENTURY:(o-.5)/v.Z.DAYS_PER_JULIAN_CENTURY;const s=(24110.54841+r*(8640184.812866+r*(.093104+-62e-7*r)))*H%y.Z.TWO_PI+(72921158553e-15+11772758384668e-32*(i-2451545.5))*((n+.5*v.Z.SECONDS_PER_DAY)%v.Z.SECONDS_PER_DAY),a=Math.cos(s),c=Math.sin(s);return(0,l.Z)(t)?(t[0]=a,t[1]=-c,t[2]=0,t[3]=c,t[4]=a,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t):new b.Z(a,c,0,-c,a,0,0,0,1)},T.iau2006XysData=new _.Z,T.earthOrientationParameters=d.Z.NONE;const q=32.184;T.preloadIcrfFixed=function(e){const t=e.start.dayNumber,i=e.start.secondsOfDay+q,r=e.stop.dayNumber,o=e.stop.secondsOfDay+q,s=T.iau2006XysData.preload(t,i,r,o),a=T.earthOrientationParameters.getPromiseToLoad();return n.Z.all([s,a])},T.computeIcrfToFixedMatrix=function(e,t){if(!(0,l.Z)(e))throw new h.Z("date is required.");(0,l.Z)(t)||(t=new b.Z);const i=T.computeFixedToIcrfMatrix(e,t);if((0,l.Z)(i))return b.Z.transpose(i,t)};const j=new Z.Z(0,0,0),W=new f.Z(0,0,0,0,0,0),K=new b.Z,Y=new b.Z;T.computeFixedToIcrfMatrix=function(e,t){if(!(0,l.Z)(e))throw new h.Z("date is required.");(0,l.Z)(t)||(t=new b.Z);const i=T.earthOrientationParameters.compute(e,W);if(!(0,l.Z)(i))return;const n=e.dayNumber,r=e.secondsOfDay+q,o=T.iau2006XysData.computeXysRadians(n,r,j);if(!(0,l.Z)(o))return;const s=o.x+i.xPoleOffset,a=o.y+i.yPoleOffset,c=1/(1+Math.sqrt(1-s*s-a*a)),u=K;u[0]=1-c*s*s,u[3]=-c*s*a,u[6]=s,u[1]=-c*s*a,u[4]=1-c*a*a,u[7]=a,u[2]=-s,u[5]=-a,u[8]=1-c*(s*s+a*a);const d=b.Z.fromRotationZ(-o.s,Y),f=b.Z.multiply(u,d,K),p=e.dayNumber-2451545,m=(e.secondsOfDay-g.Z.computeTaiMinusUtc(e)+i.ut1MinusUtc)/v.Z.SECONDS_PER_DAY;let _=.779057273264+m+.00273781191135448*(p+m);_=_%1*y.Z.TWO_PI;const Z=b.Z.fromRotationZ(_,Y),A=b.Z.multiply(f,Z,K),w=Math.cos(i.xPoleWander),C=Math.cos(i.yPoleWander),E=Math.sin(i.xPoleWander),x=Math.sin(i.yPoleWander);let S=n-2451545+r/v.Z.SECONDS_PER_DAY;S/=36525;const O=-47e-6*S*y.Z.RADIANS_PER_DEGREE/3600,I=Math.cos(O),D=Math.sin(O),P=Y;return P[0]=w*I,P[1]=w*D,P[2]=E,P[3]=-C*D+x*E*I,P[4]=C*I+x*E*D,P[5]=-x*w,P[6]=-x*D-C*E*I,P[7]=x*I-C*E*D,P[8]=C*w,b.Z.multiply(A,P,t)};const X=new s.Z;T.pointToWindowCoordinates=function(e,t,i,n){return(n=T.pointToGLWindowCoordinates(e,t,i,n)).y=2*t[5]-n.y,n},T.pointToGLWindowCoordinates=function(e,t,i,n){if(!(0,l.Z)(e))throw new h.Z("modelViewProjectionMatrix is required.");if(!(0,l.Z)(t))throw new h.Z("viewportTransformation is required.");if(!(0,l.Z)(i))throw new h.Z("point is required.");(0,l.Z)(n)||(n=new r.Z);const o=X;return A.Z.multiplyByVector(e,s.Z.fromElements(i.x,i.y,i.z,1,o),o),s.Z.multiplyByScalar(o,1/o.w,o),A.Z.multiplyByVector(t,o,o),r.Z.fromCartesian4(o,n)};const J=new o.Z,Q=new o.Z,$=new o.Z;T.rotationMatrixFromPositionVelocity=function(e,t,i,n){if(!(0,l.Z)(e))throw new h.Z("position is required.");if(!(0,l.Z)(t))throw new h.Z("velocity is required.");const r=(0,u.Z)(i,p.Z.WGS84).geodeticSurfaceNormal(e,J);let s=o.Z.cross(t,r,Q);o.Z.equalsEpsilon(s,o.Z.ZERO,y.Z.EPSILON6)&&(s=o.Z.clone(o.Z.UNIT_X,s));const a=o.Z.cross(s,t,$);return o.Z.normalize(a,a),o.Z.cross(t,a,s),o.Z.negate(s,s),o.Z.normalize(s,s),(0,l.Z)(n)||(n=new b.Z),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=s.x,n[4]=s.y,n[5]=s.z,n[6]=a.x,n[7]=a.y,n[8]=a.z,n};const ee=new A.Z(0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,1),te=new a.Z,ie=new o.Z,ne=new o.Z,re=new b.Z,oe=new A.Z,se=new A.Z;T.basisTo2D=function(e,t,i){if(!(0,l.Z)(e))throw new h.Z("projection is required.");if(!(0,l.Z)(t))throw new h.Z("matrix is required.");if(!(0,l.Z)(i))throw new h.Z("result is required.");const n=A.Z.getTranslation(t,ne),r=e.ellipsoid,s=r.cartesianToCartographic(n,te),a=e.project(s,ie);o.Z.fromElements(a.z,a.x,a.y,a);const c=T.eastNorthUpToFixedFrame(n,r,oe),u=A.Z.inverseTransformation(c,se),d=A.Z.getMatrix3(t,re),f=A.Z.multiplyByMatrix3(u,d,i);return A.Z.multiply(ee,f,i),A.Z.setTranslation(i,a,i),i},T.wgs84To2DModelMatrix=function(e,t,i){if(!(0,l.Z)(e))throw new h.Z("projection is required.");if(!(0,l.Z)(t))throw new h.Z("center is required.");if(!(0,l.Z)(i))throw new h.Z("result is required.");const n=e.ellipsoid,r=T.eastNorthUpToFixedFrame(t,n,oe),s=A.Z.inverseTransformation(r,se),a=n.cartesianToCartographic(t,te),c=e.project(a,ie);o.Z.fromElements(c.z,c.x,c.y,c);const u=A.Z.fromTranslation(c,oe);return A.Z.multiply(ee,s,i),A.Z.multiply(u,i,i),i};const ae=T},988131:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(919382),r=i(406144),o=i(426468),s=i(129782);const a=new n.Z(1,1,1),c=n.Z.ZERO,u=s.Z.IDENTITY;function l(e,t,i){this.translation=n.Z.clone((0,r.Z)(e,c)),this.rotation=s.Z.clone((0,r.Z)(t,u)),this.scale=n.Z.clone((0,r.Z)(i,a))}l.prototype.equals=function(e){return this===e||(0,o.Z)(e)&&n.Z.equals(this.translation,e.translation)&&s.Z.equals(this.rotation,e.rotation)&&n.Z.equals(this.scale,e.scale)};const h=l},547097:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(919382),r=i(426468),o=i(446938);const s={solve:function(e,t,i,s){if(!((0,r.Z)(e)&&e instanceof Array))throw new o.Z("The array lower is required.");if(!((0,r.Z)(t)&&t instanceof Array))throw new o.Z("The array diagonal is required.");if(!((0,r.Z)(i)&&i instanceof Array))throw new o.Z("The array upper is required.");if(!((0,r.Z)(s)&&s instanceof Array))throw new o.Z("The array right is required.");if(t.length!==s.length)throw new o.Z("diagonal and right must have the same lengths.");if(e.length!==i.length)throw new o.Z("lower and upper must have the same lengths.");if(e.length!==t.length-1)throw new o.Z("lower and upper must be one less than the length of diagonal.");const a=new Array(i.length),c=new Array(s.length),u=new Array(s.length);let l,h;for(l=0;l=0;--l)u[l]=n.Z.subtract(c[l],n.Z.multiplyByScalar(u[l+1],a[l],u[l]),u[l]);return u}}},127204:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(111840),r=i(426468),o=i(446938);const s={};let a={};s.add=function(e,t){if(!(0,r.Z)(e))throw new o.Z("host is required.");if(!(0,r.Z)(t)||t<=0)throw new o.Z("port is required to be greater than 0.");const i=e.toLowerCase()+":"+t;(0,r.Z)(a[i])||(a[i]=!0)},s.remove=function(e,t){if(!(0,r.Z)(e))throw new o.Z("host is required.");if(!(0,r.Z)(t)||t<=0)throw new o.Z("port is required to be greater than 0.");const i=e.toLowerCase()+":"+t;(0,r.Z)(a[i])&&delete a[i]},s.contains=function(e){if(!(0,r.Z)(e))throw new o.Z("url is required.");const t=function(e){const t=new n.Z(e);t.normalize();let i=t.authority();if(0!==i.length){if(t.authority(i),-1!==i.indexOf("@")){const e=i.split("@");i=e[1]}if(-1===i.indexOf(":")){let e=t.scheme();if(0===e.length&&(e=window.location.protocol,e=e.substring(0,e.length-1)),"http"===e)i+=":80";else{if("https"!==e)return;i+=":443"}}return i}}(e);return!(!(0,r.Z)(t)||!(0,r.Z)(a[t]))},s.clear=function(){a={}};const c=s},456336:(e,t,i)=>{"use strict";i.d(t,{Z:()=>v});var n=i(527758),r=i(846748),o=i(406144),s=i(426468),a=i(446938),c=i(253316),u=i(197685),l=i(910946),h=i(33709),d=i(520715),f=i(362017),p=i(523501),m=i(795788),_=i(950714),Z=i(723822);function g(e,t){this.rectangle=e,this.maxLevel=t}function y(e){if(e=(0,o.Z)(e,o.Z.EMPTY_OBJECT),!(0,s.Z)(e.url))throw new a.Z("options.url is required.");const t=m.Z.createIfNeeded(e.url);this._resource=t,this._errorEvent=new u.Z,this._ready=!1,this._readyPromise=n.Z.defer(),this._terrainDataStructure={heightScale:.001,heightOffset:-1e3,elementsPerHeight:3,stride:4,elementMultiplier:256,isBigEndian:!0,lowestEncodedHeight:0,highestEncodedHeight:16777215};let i=e.credit;"string"==typeof i&&(i=new r.Z(i)),this._credit=i,this._tilingScheme=void 0,this._rectangles=[];const h=this;let d;const y=(0,o.Z)(e.ellipsoid,c.Z.WGS84);function b(e){const t=e.getElementsByTagName("SRS")[0].textContent;if("EPSG:4326"!==t)return void A("SRS "+t+" is not supported.");h._tilingScheme=new l.Z({ellipsoid:y});const i=e.getElementsByTagName("TileFormat")[0];h._heightmapWidth=parseInt(i.getAttribute("width"),10),h._heightmapHeight=parseInt(i.getAttribute("height"),10),h._levelZeroMaximumGeometricError=_.Z.getEstimatedLevelZeroGeometricErrorForAHeightmap(y,Math.min(h._heightmapWidth,h._heightmapHeight),h._tilingScheme.getNumberOfXTilesAtLevel(0));const n=e.getElementsByTagName("DataExtent");for(let e=0;e{"use strict";i.d(t,{Z:()=>a});var n=i(406144),r=i(426468),o=i(446938);function s(e){e=(0,n.Z)(e,n.Z.EMPTY_OBJECT),this.position=(0,n.Z)(e.position,!1),this.normal=(0,n.Z)(e.normal,!1),this.st=(0,n.Z)(e.st,!1),this.bitangent=(0,n.Z)(e.bitangent,!1),this.tangent=(0,n.Z)(e.tangent,!1),this.color=(0,n.Z)(e.color,!1)}s.POSITION_ONLY=Object.freeze(new s({position:!0})),s.POSITION_AND_NORMAL=Object.freeze(new s({position:!0,normal:!0})),s.POSITION_NORMAL_AND_ST=Object.freeze(new s({position:!0,normal:!0,st:!0})),s.POSITION_AND_ST=Object.freeze(new s({position:!0,st:!0})),s.POSITION_AND_COLOR=Object.freeze(new s({position:!0,color:!0})),s.ALL=Object.freeze(new s({position:!0,normal:!0,st:!0,tangent:!0,bitangent:!0})),s.DEFAULT=s.POSITION_NORMAL_AND_ST,s.packedLength=6,s.pack=function(e,t,i){if(!(0,r.Z)(e))throw new o.Z("value is required");if(!(0,r.Z)(t))throw new o.Z("array is required");return i=(0,n.Z)(i,0),t[i++]=e.position?1:0,t[i++]=e.normal?1:0,t[i++]=e.st?1:0,t[i++]=e.tangent?1:0,t[i++]=e.bitangent?1:0,t[i]=e.color?1:0,t},s.unpack=function(e,t,i){if(!(0,r.Z)(e))throw new o.Z("array is required");return t=(0,n.Z)(t,0),(0,r.Z)(i)||(i=new s),i.position=1===e[t++],i.normal=1===e[t++],i.st=1===e[t++],i.tangent=1===e[t++],i.bitangent=1===e[t++],i.color=1===e[t],i},s.clone=function(e,t){if((0,r.Z)(e))return(0,r.Z)(t)||(t=new s),t.position=e.position,t.normal=e.normal,t.st=e.st,t.tangent=e.tangent,t.bitangent=e.bitangent,t.color=e.color,t};const a=s},950326:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(406144),r=i(426468),o=i(54879),s=i(29699),a=i(40080);function c(e){e=(0,n.Z)(e,n.Z.EMPTY_OBJECT),this._clock=void 0,this._element=void 0,this._clockSubscription=void 0,this._seekFunction=void 0,this._lastPlaybackRate=void 0,this.clock=e.clock,this.element=e.element,this.epoch=(0,n.Z)(e.epoch,s.Z.MINIMUM_VALUE),this.tolerance=(0,n.Z)(e.tolerance,1),this._seeking=!1,this._seekFunction=void 0,this._firstTickAfterSeek=!1}Object.defineProperties(c.prototype,{clock:{get:function(){return this._clock},set:function(e){const t=this._clock;t!==e&&((0,r.Z)(t)&&(this._clockSubscription(),this._clockSubscription=void 0),(0,r.Z)(e)&&(this._clockSubscription=e.onTick.addEventListener(c.prototype._onTick,this)),this._clock=e)}},element:{get:function(){return this._element},set:function(e){const t=this._element;var i;t!==e&&((0,r.Z)(t)&&t.removeEventListener("seeked",this._seekFunction,!1),(0,r.Z)(e)&&(this._seeking=!1,this._seekFunction=(i=this,function(){i._seeking=!1,i._firstTickAfterSeek=!0}),e.addEventListener("seeked",this._seekFunction,!1)),this._element=e,this._seeking=!1,this._firstTickAfterSeek=!1)}}}),c.prototype.destroy=function(){return this.element=void 0,this.clock=void 0,(0,o.Z)(this)},c.prototype.isDestroyed=function(){return!1},c.prototype._trySetPlaybackRate=function(e){if(this._lastPlaybackRate===e.multiplier)return;const t=this._element;try{t.playbackRate=e.multiplier}catch(e){t.playbackRate=0}this._lastPlaybackRate=e.multiplier},c.prototype._onTick=function(e){const t=this._element;if(!(0,r.Z)(t)||t.readyState<2)return;const i=t.paused,o=e.shouldAnimate;if(o===i&&(o?t.play():t.pause()),this._seeking||this._firstTickAfterSeek)return void(this._firstTickAfterSeek=!1);this._trySetPlaybackRate(e);const c=e.currentTime,u=(0,n.Z)(this.epoch,s.Z.MINIMUM_VALUE);let l=a.Z.secondsDifference(c,u);const h=t.duration;let d;const f=t.currentTime;t.loop?(l%=h,l<0&&(l=h-l),d=l):d=l>h?h:l<0?0:l;const p=o?(0,n.Z)(this.tolerance,1):.001;Math.abs(d-f)>p&&(this._seeking=!0,t.currentTime=d)};const u=c},137134:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({NONE:-1,PARTIAL:0,FULL:1})},918506:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({VK_FORMAT_UNDEFINED:0,VK_FORMAT_R4G4_UNORM_PACK8:1,VK_FORMAT_R4G4B4A4_UNORM_PACK16:2,VK_FORMAT_B4G4R4A4_UNORM_PACK16:3,VK_FORMAT_R5G6B5_UNORM_PACK16:4,VK_FORMAT_B5G6R5_UNORM_PACK16:5,VK_FORMAT_R5G5B5A1_UNORM_PACK16:6,VK_FORMAT_B5G5R5A1_UNORM_PACK16:7,VK_FORMAT_A1R5G5B5_UNORM_PACK16:8,VK_FORMAT_R8_UNORM:9,VK_FORMAT_R8_SNORM:10,VK_FORMAT_R8_USCALED:11,VK_FORMAT_R8_SSCALED:12,VK_FORMAT_R8_UINT:13,VK_FORMAT_R8_SINT:14,VK_FORMAT_R8_SRGB:15,VK_FORMAT_R8G8_UNORM:16,VK_FORMAT_R8G8_SNORM:17,VK_FORMAT_R8G8_USCALED:18,VK_FORMAT_R8G8_SSCALED:19,VK_FORMAT_R8G8_UINT:20,VK_FORMAT_R8G8_SINT:21,VK_FORMAT_R8G8_SRGB:22,VK_FORMAT_R8G8B8_UNORM:23,VK_FORMAT_R8G8B8_SNORM:24,VK_FORMAT_R8G8B8_USCALED:25,VK_FORMAT_R8G8B8_SSCALED:26,VK_FORMAT_R8G8B8_UINT:27,VK_FORMAT_R8G8B8_SINT:28,VK_FORMAT_R8G8B8_SRGB:29,VK_FORMAT_B8G8R8_UNORM:30,VK_FORMAT_B8G8R8_SNORM:31,VK_FORMAT_B8G8R8_USCALED:32,VK_FORMAT_B8G8R8_SSCALED:33,VK_FORMAT_B8G8R8_UINT:34,VK_FORMAT_B8G8R8_SINT:35,VK_FORMAT_B8G8R8_SRGB:36,VK_FORMAT_R8G8B8A8_UNORM:37,VK_FORMAT_R8G8B8A8_SNORM:38,VK_FORMAT_R8G8B8A8_USCALED:39,VK_FORMAT_R8G8B8A8_SSCALED:40,VK_FORMAT_R8G8B8A8_UINT:41,VK_FORMAT_R8G8B8A8_SINT:42,VK_FORMAT_R8G8B8A8_SRGB:43,VK_FORMAT_B8G8R8A8_UNORM:44,VK_FORMAT_B8G8R8A8_SNORM:45,VK_FORMAT_B8G8R8A8_USCALED:46,VK_FORMAT_B8G8R8A8_SSCALED:47,VK_FORMAT_B8G8R8A8_UINT:48,VK_FORMAT_B8G8R8A8_SINT:49,VK_FORMAT_B8G8R8A8_SRGB:50,VK_FORMAT_A8B8G8R8_UNORM_PACK32:51,VK_FORMAT_A8B8G8R8_SNORM_PACK32:52,VK_FORMAT_A8B8G8R8_USCALED_PACK32:53,VK_FORMAT_A8B8G8R8_SSCALED_PACK32:54,VK_FORMAT_A8B8G8R8_UINT_PACK32:55,VK_FORMAT_A8B8G8R8_SINT_PACK32:56,VK_FORMAT_A8B8G8R8_SRGB_PACK32:57,VK_FORMAT_A2R10G10B10_UNORM_PACK32:58,VK_FORMAT_A2R10G10B10_SNORM_PACK32:59,VK_FORMAT_A2R10G10B10_USCALED_PACK32:60,VK_FORMAT_A2R10G10B10_SSCALED_PACK32:61,VK_FORMAT_A2R10G10B10_UINT_PACK32:62,VK_FORMAT_A2R10G10B10_SINT_PACK32:63,VK_FORMAT_A2B10G10R10_UNORM_PACK32:64,VK_FORMAT_A2B10G10R10_SNORM_PACK32:65,VK_FORMAT_A2B10G10R10_USCALED_PACK32:66,VK_FORMAT_A2B10G10R10_SSCALED_PACK32:67,VK_FORMAT_A2B10G10R10_UINT_PACK32:68,VK_FORMAT_A2B10G10R10_SINT_PACK32:69,VK_FORMAT_R16_UNORM:70,VK_FORMAT_R16_SNORM:71,VK_FORMAT_R16_USCALED:72,VK_FORMAT_R16_SSCALED:73,VK_FORMAT_R16_UINT:74,VK_FORMAT_R16_SINT:75,VK_FORMAT_R16_SFLOAT:76,VK_FORMAT_R16G16_UNORM:77,VK_FORMAT_R16G16_SNORM:78,VK_FORMAT_R16G16_USCALED:79,VK_FORMAT_R16G16_SSCALED:80,VK_FORMAT_R16G16_UINT:81,VK_FORMAT_R16G16_SINT:82,VK_FORMAT_R16G16_SFLOAT:83,VK_FORMAT_R16G16B16_UNORM:84,VK_FORMAT_R16G16B16_SNORM:85,VK_FORMAT_R16G16B16_USCALED:86,VK_FORMAT_R16G16B16_SSCALED:87,VK_FORMAT_R16G16B16_UINT:88,VK_FORMAT_R16G16B16_SINT:89,VK_FORMAT_R16G16B16_SFLOAT:90,VK_FORMAT_R16G16B16A16_UNORM:91,VK_FORMAT_R16G16B16A16_SNORM:92,VK_FORMAT_R16G16B16A16_USCALED:93,VK_FORMAT_R16G16B16A16_SSCALED:94,VK_FORMAT_R16G16B16A16_UINT:95,VK_FORMAT_R16G16B16A16_SINT:96,VK_FORMAT_R16G16B16A16_SFLOAT:97,VK_FORMAT_R32_UINT:98,VK_FORMAT_R32_SINT:99,VK_FORMAT_R32_SFLOAT:100,VK_FORMAT_R32G32_UINT:101,VK_FORMAT_R32G32_SINT:102,VK_FORMAT_R32G32_SFLOAT:103,VK_FORMAT_R32G32B32_UINT:104,VK_FORMAT_R32G32B32_SINT:105,VK_FORMAT_R32G32B32_SFLOAT:106,VK_FORMAT_R32G32B32A32_UINT:107,VK_FORMAT_R32G32B32A32_SINT:108,VK_FORMAT_R32G32B32A32_SFLOAT:109,VK_FORMAT_R64_UINT:110,VK_FORMAT_R64_SINT:111,VK_FORMAT_R64_SFLOAT:112,VK_FORMAT_R64G64_UINT:113,VK_FORMAT_R64G64_SINT:114,VK_FORMAT_R64G64_SFLOAT:115,VK_FORMAT_R64G64B64_UINT:116,VK_FORMAT_R64G64B64_SINT:117,VK_FORMAT_R64G64B64_SFLOAT:118,VK_FORMAT_R64G64B64A64_UINT:119,VK_FORMAT_R64G64B64A64_SINT:120,VK_FORMAT_R64G64B64A64_SFLOAT:121,VK_FORMAT_B10G11R11_UFLOAT_PACK32:122,VK_FORMAT_E5B9G9R9_UFLOAT_PACK32:123,VK_FORMAT_D16_UNORM:124,VK_FORMAT_X8_D24_UNORM_PACK32:125,VK_FORMAT_D32_SFLOAT:126,VK_FORMAT_S8_UINT:127,VK_FORMAT_D16_UNORM_S8_UINT:128,VK_FORMAT_D24_UNORM_S8_UINT:129,VK_FORMAT_D32_SFLOAT_S8_UINT:130,VK_FORMAT_BC1_RGB_UNORM_BLOCK:131,VK_FORMAT_BC1_RGB_SRGB_BLOCK:132,VK_FORMAT_BC1_RGBA_UNORM_BLOCK:133,VK_FORMAT_BC1_RGBA_SRGB_BLOCK:134,VK_FORMAT_BC2_UNORM_BLOCK:135,VK_FORMAT_BC2_SRGB_BLOCK:136,VK_FORMAT_BC3_UNORM_BLOCK:137,VK_FORMAT_BC3_SRGB_BLOCK:138,VK_FORMAT_BC4_UNORM_BLOCK:139,VK_FORMAT_BC4_SNORM_BLOCK:140,VK_FORMAT_BC5_UNORM_BLOCK:141,VK_FORMAT_BC5_SNORM_BLOCK:142,VK_FORMAT_BC6H_UFLOAT_BLOCK:143,VK_FORMAT_BC6H_SFLOAT_BLOCK:144,VK_FORMAT_BC7_UNORM_BLOCK:145,VK_FORMAT_BC7_SRGB_BLOCK:146,VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK:147,VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK:148,VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK:149,VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK:150,VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK:151,VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK:152,VK_FORMAT_EAC_R11_UNORM_BLOCK:153,VK_FORMAT_EAC_R11_SNORM_BLOCK:154,VK_FORMAT_EAC_R11G11_UNORM_BLOCK:155,VK_FORMAT_EAC_R11G11_SNORM_BLOCK:156,VK_FORMAT_ASTC_4x4_UNORM_BLOCK:157,VK_FORMAT_ASTC_4x4_SRGB_BLOCK:158,VK_FORMAT_ASTC_5x4_UNORM_BLOCK:159,VK_FORMAT_ASTC_5x4_SRGB_BLOCK:160,VK_FORMAT_ASTC_5x5_UNORM_BLOCK:161,VK_FORMAT_ASTC_5x5_SRGB_BLOCK:162,VK_FORMAT_ASTC_6x5_UNORM_BLOCK:163,VK_FORMAT_ASTC_6x5_SRGB_BLOCK:164,VK_FORMAT_ASTC_6x6_UNORM_BLOCK:165,VK_FORMAT_ASTC_6x6_SRGB_BLOCK:166,VK_FORMAT_ASTC_8x5_UNORM_BLOCK:167,VK_FORMAT_ASTC_8x5_SRGB_BLOCK:168,VK_FORMAT_ASTC_8x6_UNORM_BLOCK:169,VK_FORMAT_ASTC_8x6_SRGB_BLOCK:170,VK_FORMAT_ASTC_8x8_UNORM_BLOCK:171,VK_FORMAT_ASTC_8x8_SRGB_BLOCK:172,VK_FORMAT_ASTC_10x5_UNORM_BLOCK:173,VK_FORMAT_ASTC_10x5_SRGB_BLOCK:174,VK_FORMAT_ASTC_10x6_UNORM_BLOCK:175,VK_FORMAT_ASTC_10x6_SRGB_BLOCK:176,VK_FORMAT_ASTC_10x8_UNORM_BLOCK:177,VK_FORMAT_ASTC_10x8_SRGB_BLOCK:178,VK_FORMAT_ASTC_10x10_UNORM_BLOCK:179,VK_FORMAT_ASTC_10x10_SRGB_BLOCK:180,VK_FORMAT_ASTC_12x10_UNORM_BLOCK:181,VK_FORMAT_ASTC_12x10_SRGB_BLOCK:182,VK_FORMAT_ASTC_12x12_UNORM_BLOCK:183,VK_FORMAT_ASTC_12x12_SRGB_BLOCK:184,VK_FORMAT_G8B8G8R8_422_UNORM:1000156e3,VK_FORMAT_B8G8R8G8_422_UNORM:1000156001,VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM:1000156002,VK_FORMAT_G8_B8R8_2PLANE_420_UNORM:1000156003,VK_FORMAT_G8_B8_R8_3PLANE_422_UNORM:1000156004,VK_FORMAT_G8_B8R8_2PLANE_422_UNORM:1000156005,VK_FORMAT_G8_B8_R8_3PLANE_444_UNORM:1000156006,VK_FORMAT_R10X6_UNORM_PACK16:1000156007,VK_FORMAT_R10X6G10X6_UNORM_2PACK16:1000156008,VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16:1000156009,VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16:1000156010,VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16:1000156011,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16:1000156012,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16:1000156013,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16:1000156014,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16:1000156015,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16:1000156016,VK_FORMAT_R12X4_UNORM_PACK16:1000156017,VK_FORMAT_R12X4G12X4_UNORM_2PACK16:1000156018,VK_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16:1000156019,VK_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16:1000156020,VK_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16:1000156021,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16:1000156022,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16:1000156023,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16:1000156024,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16:1000156025,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16:1000156026,VK_FORMAT_G16B16G16R16_422_UNORM:1000156027,VK_FORMAT_B16G16R16G16_422_UNORM:1000156028,VK_FORMAT_G16_B16_R16_3PLANE_420_UNORM:1000156029,VK_FORMAT_G16_B16R16_2PLANE_420_UNORM:1000156030,VK_FORMAT_G16_B16_R16_3PLANE_422_UNORM:1000156031,VK_FORMAT_G16_B16R16_2PLANE_422_UNORM:1000156032,VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM:1000156033,VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG:1000054e3,VK_FORMAT_PVRTC1_4BPP_UNORM_BLOCK_IMG:1000054001,VK_FORMAT_PVRTC2_2BPP_UNORM_BLOCK_IMG:1000054002,VK_FORMAT_PVRTC2_4BPP_UNORM_BLOCK_IMG:1000054003,VK_FORMAT_PVRTC1_2BPP_SRGB_BLOCK_IMG:1000054004,VK_FORMAT_PVRTC1_4BPP_SRGB_BLOCK_IMG:1000054005,VK_FORMAT_PVRTC2_2BPP_SRGB_BLOCK_IMG:1000054006,VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG:1000054007,VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK_EXT:1000066e3,VK_FORMAT_ASTC_5x4_SFLOAT_BLOCK_EXT:1000066001,VK_FORMAT_ASTC_5x5_SFLOAT_BLOCK_EXT:1000066002,VK_FORMAT_ASTC_6x5_SFLOAT_BLOCK_EXT:1000066003,VK_FORMAT_ASTC_6x6_SFLOAT_BLOCK_EXT:1000066004,VK_FORMAT_ASTC_8x5_SFLOAT_BLOCK_EXT:1000066005,VK_FORMAT_ASTC_8x6_SFLOAT_BLOCK_EXT:1000066006,VK_FORMAT_ASTC_8x8_SFLOAT_BLOCK_EXT:1000066007,VK_FORMAT_ASTC_10x5_SFLOAT_BLOCK_EXT:1000066008,VK_FORMAT_ASTC_10x6_SFLOAT_BLOCK_EXT:1000066009,VK_FORMAT_ASTC_10x8_SFLOAT_BLOCK_EXT:1000066010,VK_FORMAT_ASTC_10x10_SFLOAT_BLOCK_EXT:1000066011,VK_FORMAT_ASTC_12x10_SFLOAT_BLOCK_EXT:1000066012,VK_FORMAT_ASTC_12x12_SFLOAT_BLOCK_EXT:1000066013,VK_FORMAT_G8B8G8R8_422_UNORM_KHR:1000156e3,VK_FORMAT_B8G8R8G8_422_UNORM_KHR:1000156001,VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM_KHR:1000156002,VK_FORMAT_G8_B8R8_2PLANE_420_UNORM_KHR:1000156003,VK_FORMAT_G8_B8_R8_3PLANE_422_UNORM_KHR:1000156004,VK_FORMAT_G8_B8R8_2PLANE_422_UNORM_KHR:1000156005,VK_FORMAT_G8_B8_R8_3PLANE_444_UNORM_KHR:1000156006,VK_FORMAT_R10X6_UNORM_PACK16_KHR:1000156007,VK_FORMAT_R10X6G10X6_UNORM_2PACK16_KHR:1000156008,VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16_KHR:1000156009,VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16_KHR:1000156010,VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16_KHR:1000156011,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16_KHR:1000156012,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16_KHR:1000156013,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16_KHR:1000156014,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16_KHR:1000156015,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16_KHR:1000156016,VK_FORMAT_R12X4_UNORM_PACK16_KHR:1000156017,VK_FORMAT_R12X4G12X4_UNORM_2PACK16_KHR:1000156018,VK_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16_KHR:1000156019,VK_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16_KHR:1000156020,VK_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16_KHR:1000156021,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16_KHR:1000156022,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16_KHR:1000156023,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16_KHR:1000156024,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16_KHR:1000156025,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16_KHR:1000156026,VK_FORMAT_G16B16G16R16_422_UNORM_KHR:1000156027,VK_FORMAT_B16G16R16G16_422_UNORM_KHR:1000156028,VK_FORMAT_G16_B16_R16_3PLANE_420_UNORM_KHR:1000156029,VK_FORMAT_G16_B16R16_2PLANE_420_UNORM_KHR:1000156030,VK_FORMAT_G16_B16_R16_3PLANE_422_UNORM_KHR:1000156031,VK_FORMAT_G16_B16R16_2PLANE_422_UNORM_KHR:1000156032,VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM_KHR:1000156033})},441774:(e,t,i)=>{"use strict";i.d(t,{Z:()=>O});var n=i(360791),r=i(919382),o=i(997274),s=i(406144),a=i(426468),c=i(446938),u=i(253316),l=i(915067),h=i(611843),d=i(451628),f=i(546135),p=i(362017),m=i(195809),_=i(172674),Z=i(633208);const g=new r.Z,y=new r.Z,b=new r.Z,A=new r.Z,w=new r.Z,v=new r.Z,T=new r.Z;function C(e){const t=(e=(0,s.Z)(e,s.Z.EMPTY_OBJECT)).positions,i=e.maximumHeights,n=e.minimumHeights;if(!(0,a.Z)(t))throw new c.Z("options.positions is required.");if((0,a.Z)(i)&&i.length!==t.length)throw new c.Z("options.positions and options.maximumHeights must have the same length.");if((0,a.Z)(n)&&n.length!==t.length)throw new c.Z("options.positions and options.minimumHeights must have the same length.");const o=(0,s.Z)(e.vertexFormat,_.Z.DEFAULT),l=(0,s.Z)(e.granularity,p.Z.RADIANS_PER_DEGREE),h=(0,s.Z)(e.ellipsoid,u.Z.WGS84);this._positions=t,this._minimumHeights=n,this._maximumHeights=i,this._vertexFormat=_.Z.clone(o),this._granularity=l,this._ellipsoid=u.Z.clone(h),this._workerName="createWallGeometry";let d=1+t.length*r.Z.packedLength+2;(0,a.Z)(n)&&(d+=n.length),(0,a.Z)(i)&&(d+=i.length),this.packedLength=d+u.Z.packedLength+_.Z.packedLength+1}C.pack=function(e,t,i){if(!(0,a.Z)(e))throw new c.Z("value is required");if(!(0,a.Z)(t))throw new c.Z("array is required");let n;i=(0,s.Z)(i,0);const o=e._positions;let l=o.length;for(t[i++]=l,n=0;n0)for(h=new Array(o),n=0;n0)for(d=new Array(o),n=0;n{"use strict";i.d(t,{Z:()=>_});var n=i(554875),r=i(919382),o=i(698907),s=i(426468),a=i(362017),c=i(372944);const u={};function l(e,t){return a.Z.equalsEpsilon(e.latitude,t.latitude,a.Z.EPSILON10)&&a.Z.equalsEpsilon(e.longitude,t.longitude,a.Z.EPSILON10)}const h=new o.Z,d=new o.Z,f=new Array(2),p=new Array(2),m={positions:void 0,height:void 0,granularity:void 0,ellipsoid:void 0};u.computePositions=function(e,t,i,u,_,Z){const g=function(e,t,i,a){const c=(t=(0,n.Z)(t,r.Z.equalsEpsilon)).length;if(c<2)return;const u=(0,s.Z)(a),f=(0,s.Z)(i),p=new Array(c),m=new Array(c),_=new Array(c),Z=t[0];p[0]=Z;const g=e.cartesianToCartographic(Z,h);f&&(g.height=i[0]),m[0]=g.height,_[0]=u?a[0]:0;let y=m[0]===_[0],b=1;for(let n=1;n{"use strict";i.d(t,{Z:()=>w});var n=i(360791),r=i(919382),o=i(997274),s=i(406144),a=i(426468),c=i(446938),u=i(253316),l=i(915067),h=i(611843),d=i(451628),f=i(546135),p=i(362017),m=i(195809),_=i(633208);const Z=new r.Z,g=new r.Z;function y(e){const t=(e=(0,s.Z)(e,s.Z.EMPTY_OBJECT)).positions,i=e.maximumHeights,n=e.minimumHeights;if(!(0,a.Z)(t))throw new c.Z("options.positions is required.");if((0,a.Z)(i)&&i.length!==t.length)throw new c.Z("options.positions and options.maximumHeights must have the same length.");if((0,a.Z)(n)&&n.length!==t.length)throw new c.Z("options.positions and options.minimumHeights must have the same length.");const o=(0,s.Z)(e.granularity,p.Z.RADIANS_PER_DEGREE),l=(0,s.Z)(e.ellipsoid,u.Z.WGS84);this._positions=t,this._minimumHeights=n,this._maximumHeights=i,this._granularity=o,this._ellipsoid=u.Z.clone(l),this._workerName="createWallOutlineGeometry";let h=1+t.length*r.Z.packedLength+2;(0,a.Z)(n)&&(h+=n.length),(0,a.Z)(i)&&(h+=i.length),this.packedLength=h+u.Z.packedLength+1}y.pack=function(e,t,i){if(!(0,a.Z)(e))throw new c.Z("value is required");if(!(0,a.Z)(t))throw new c.Z("array is required");let n;i=(0,s.Z)(i,0);const o=e._positions;let l=o.length;for(t[i++]=l,n=0;n0)for(h=new Array(o),n=0;n0)for(d=new Array(o),n=0;n{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,ZERO:0,ONE:1,SRC_COLOR:768,ONE_MINUS_SRC_COLOR:769,SRC_ALPHA:770,ONE_MINUS_SRC_ALPHA:771,DST_ALPHA:772,ONE_MINUS_DST_ALPHA:773,DST_COLOR:774,ONE_MINUS_DST_COLOR:775,SRC_ALPHA_SATURATE:776,FUNC_ADD:32774,BLEND_EQUATION:32777,BLEND_EQUATION_RGB:32777,BLEND_EQUATION_ALPHA:34877,FUNC_SUBTRACT:32778,FUNC_REVERSE_SUBTRACT:32779,BLEND_DST_RGB:32968,BLEND_SRC_RGB:32969,BLEND_DST_ALPHA:32970,BLEND_SRC_ALPHA:32971,CONSTANT_COLOR:32769,ONE_MINUS_CONSTANT_COLOR:32770,CONSTANT_ALPHA:32771,ONE_MINUS_CONSTANT_ALPHA:32772,BLEND_COLOR:32773,ARRAY_BUFFER:34962,ELEMENT_ARRAY_BUFFER:34963,ARRAY_BUFFER_BINDING:34964,ELEMENT_ARRAY_BUFFER_BINDING:34965,STREAM_DRAW:35040,STATIC_DRAW:35044,DYNAMIC_DRAW:35048,BUFFER_SIZE:34660,BUFFER_USAGE:34661,CURRENT_VERTEX_ATTRIB:34342,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,CULL_FACE:2884,BLEND:3042,DITHER:3024,STENCIL_TEST:2960,DEPTH_TEST:2929,SCISSOR_TEST:3089,POLYGON_OFFSET_FILL:32823,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_COVERAGE:32928,NO_ERROR:0,INVALID_ENUM:1280,INVALID_VALUE:1281,INVALID_OPERATION:1282,OUT_OF_MEMORY:1285,CW:2304,CCW:2305,LINE_WIDTH:2849,ALIASED_POINT_SIZE_RANGE:33901,ALIASED_LINE_WIDTH_RANGE:33902,CULL_FACE_MODE:2885,FRONT_FACE:2886,DEPTH_RANGE:2928,DEPTH_WRITEMASK:2930,DEPTH_CLEAR_VALUE:2931,DEPTH_FUNC:2932,STENCIL_CLEAR_VALUE:2961,STENCIL_FUNC:2962,STENCIL_FAIL:2964,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STENCIL_BACK_FUNC:34816,STENCIL_BACK_FAIL:34817,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,VIEWPORT:2978,SCISSOR_BOX:3088,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,UNPACK_ALIGNMENT:3317,PACK_ALIGNMENT:3333,MAX_TEXTURE_SIZE:3379,MAX_VIEWPORT_DIMS:3386,SUBPIXEL_BITS:3408,RED_BITS:3410,GREEN_BITS:3411,BLUE_BITS:3412,ALPHA_BITS:3413,DEPTH_BITS:3414,STENCIL_BITS:3415,POLYGON_OFFSET_UNITS:10752,POLYGON_OFFSET_FACTOR:32824,TEXTURE_BINDING_2D:32873,SAMPLE_BUFFERS:32936,SAMPLES:32937,SAMPLE_COVERAGE_VALUE:32938,SAMPLE_COVERAGE_INVERT:32939,COMPRESSED_TEXTURE_FORMATS:34467,DONT_CARE:4352,FASTEST:4353,NICEST:4354,GENERATE_MIPMAP_HINT:33170,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,FRAGMENT_SHADER:35632,VERTEX_SHADER:35633,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VARYING_VECTORS:36348,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_FRAGMENT_UNIFORM_VECTORS:36349,SHADER_TYPE:35663,DELETE_STATUS:35712,LINK_STATUS:35714,VALIDATE_STATUS:35715,ATTACHED_SHADERS:35717,ACTIVE_UNIFORMS:35718,ACTIVE_ATTRIBUTES:35721,SHADING_LANGUAGE_VERSION:35724,CURRENT_PROGRAM:35725,NEVER:512,LESS:513,EQUAL:514,LEQUAL:515,GREATER:516,NOTEQUAL:517,GEQUAL:518,ALWAYS:519,KEEP:7680,REPLACE:7681,INCR:7682,DECR:7683,INVERT:5386,INCR_WRAP:34055,DECR_WRAP:34056,VENDOR:7936,RENDERER:7937,VERSION:7938,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TEXTURE_2D:3553,TEXTURE:5890,TEXTURE_CUBE_MAP:34067,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,MAX_CUBE_MAP_TEXTURE_SIZE:34076,TEXTURE0:33984,TEXTURE1:33985,TEXTURE2:33986,TEXTURE3:33987,TEXTURE4:33988,TEXTURE5:33989,TEXTURE6:33990,TEXTURE7:33991,TEXTURE8:33992,TEXTURE9:33993,TEXTURE10:33994,TEXTURE11:33995,TEXTURE12:33996,TEXTURE13:33997,TEXTURE14:33998,TEXTURE15:33999,TEXTURE16:34e3,TEXTURE17:34001,TEXTURE18:34002,TEXTURE19:34003,TEXTURE20:34004,TEXTURE21:34005,TEXTURE22:34006,TEXTURE23:34007,TEXTURE24:34008,TEXTURE25:34009,TEXTURE26:34010,TEXTURE27:34011,TEXTURE28:34012,TEXTURE29:34013,TEXTURE30:34014,TEXTURE31:34015,ACTIVE_TEXTURE:34016,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,SAMPLER_2D:35678,SAMPLER_CUBE:35680,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,IMPLEMENTATION_COLOR_READ_TYPE:35738,IMPLEMENTATION_COLOR_READ_FORMAT:35739,COMPILE_STATUS:35713,LOW_FLOAT:36336,MEDIUM_FLOAT:36337,HIGH_FLOAT:36338,LOW_INT:36339,MEDIUM_INT:36340,HIGH_INT:36341,FRAMEBUFFER:36160,RENDERBUFFER:36161,RGBA4:32854,RGB5_A1:32855,RGB565:36194,DEPTH_COMPONENT16:33189,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,DEPTH_STENCIL:34041,RENDERBUFFER_WIDTH:36162,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_STENCIL_SIZE:36181,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306,NONE:0,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_UNSUPPORTED:36061,FRAMEBUFFER_BINDING:36006,RENDERBUFFER_BINDING:36007,MAX_RENDERBUFFER_SIZE:34024,INVALID_FRAMEBUFFER_OPERATION:1286,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,CONTEXT_LOST_WEBGL:37442,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,BROWSER_DEFAULT_WEBGL:37444,COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_RGB_PVRTC_4BPPV1_IMG:35840,COMPRESSED_RGB_PVRTC_2BPPV1_IMG:35841,COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:35842,COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:35843,COMPRESSED_RGBA_ASTC_4x4_WEBGL:37808,COMPRESSED_RGB_ETC1_WEBGL:36196,COMPRESSED_RGBA_BPTC_UNORM:36492,HALF_FLOAT_OES:36193,DOUBLE:5130,READ_BUFFER:3074,UNPACK_ROW_LENGTH:3314,UNPACK_SKIP_ROWS:3315,UNPACK_SKIP_PIXELS:3316,PACK_ROW_LENGTH:3330,PACK_SKIP_ROWS:3331,PACK_SKIP_PIXELS:3332,COLOR:6144,DEPTH:6145,STENCIL:6146,RED:6403,RGB8:32849,RGBA8:32856,RGB10_A2:32857,TEXTURE_BINDING_3D:32874,UNPACK_SKIP_IMAGES:32877,UNPACK_IMAGE_HEIGHT:32878,TEXTURE_3D:32879,TEXTURE_WRAP_R:32882,MAX_3D_TEXTURE_SIZE:32883,UNSIGNED_INT_2_10_10_10_REV:33640,MAX_ELEMENTS_VERTICES:33e3,MAX_ELEMENTS_INDICES:33001,TEXTURE_MIN_LOD:33082,TEXTURE_MAX_LOD:33083,TEXTURE_BASE_LEVEL:33084,TEXTURE_MAX_LEVEL:33085,MIN:32775,MAX:32776,DEPTH_COMPONENT24:33190,MAX_TEXTURE_LOD_BIAS:34045,TEXTURE_COMPARE_MODE:34892,TEXTURE_COMPARE_FUNC:34893,CURRENT_QUERY:34917,QUERY_RESULT:34918,QUERY_RESULT_AVAILABLE:34919,STREAM_READ:35041,STREAM_COPY:35042,STATIC_READ:35045,STATIC_COPY:35046,DYNAMIC_READ:35049,DYNAMIC_COPY:35050,MAX_DRAW_BUFFERS:34852,DRAW_BUFFER0:34853,DRAW_BUFFER1:34854,DRAW_BUFFER2:34855,DRAW_BUFFER3:34856,DRAW_BUFFER4:34857,DRAW_BUFFER5:34858,DRAW_BUFFER6:34859,DRAW_BUFFER7:34860,DRAW_BUFFER8:34861,DRAW_BUFFER9:34862,DRAW_BUFFER10:34863,DRAW_BUFFER11:34864,DRAW_BUFFER12:34865,DRAW_BUFFER13:34866,DRAW_BUFFER14:34867,DRAW_BUFFER15:34868,MAX_FRAGMENT_UNIFORM_COMPONENTS:35657,MAX_VERTEX_UNIFORM_COMPONENTS:35658,SAMPLER_3D:35679,SAMPLER_2D_SHADOW:35682,FRAGMENT_SHADER_DERIVATIVE_HINT:35723,PIXEL_PACK_BUFFER:35051,PIXEL_UNPACK_BUFFER:35052,PIXEL_PACK_BUFFER_BINDING:35053,PIXEL_UNPACK_BUFFER_BINDING:35055,FLOAT_MAT2x3:35685,FLOAT_MAT2x4:35686,FLOAT_MAT3x2:35687,FLOAT_MAT3x4:35688,FLOAT_MAT4x2:35689,FLOAT_MAT4x3:35690,SRGB:35904,SRGB8:35905,SRGB8_ALPHA8:35907,COMPARE_REF_TO_TEXTURE:34894,RGBA32F:34836,RGB32F:34837,RGBA16F:34842,RGB16F:34843,VERTEX_ATTRIB_ARRAY_INTEGER:35069,MAX_ARRAY_TEXTURE_LAYERS:35071,MIN_PROGRAM_TEXEL_OFFSET:35076,MAX_PROGRAM_TEXEL_OFFSET:35077,MAX_VARYING_COMPONENTS:35659,TEXTURE_2D_ARRAY:35866,TEXTURE_BINDING_2D_ARRAY:35869,R11F_G11F_B10F:35898,UNSIGNED_INT_10F_11F_11F_REV:35899,RGB9_E5:35901,UNSIGNED_INT_5_9_9_9_REV:35902,TRANSFORM_FEEDBACK_BUFFER_MODE:35967,MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS:35968,TRANSFORM_FEEDBACK_VARYINGS:35971,TRANSFORM_FEEDBACK_BUFFER_START:35972,TRANSFORM_FEEDBACK_BUFFER_SIZE:35973,TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:35976,RASTERIZER_DISCARD:35977,MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS:35978,MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS:35979,INTERLEAVED_ATTRIBS:35980,SEPARATE_ATTRIBS:35981,TRANSFORM_FEEDBACK_BUFFER:35982,TRANSFORM_FEEDBACK_BUFFER_BINDING:35983,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,RED_INTEGER:36244,RGB_INTEGER:36248,RGBA_INTEGER:36249,SAMPLER_2D_ARRAY:36289,SAMPLER_2D_ARRAY_SHADOW:36292,SAMPLER_CUBE_SHADOW:36293,UNSIGNED_INT_VEC2:36294,UNSIGNED_INT_VEC3:36295,UNSIGNED_INT_VEC4:36296,INT_SAMPLER_2D:36298,INT_SAMPLER_3D:36299,INT_SAMPLER_CUBE:36300,INT_SAMPLER_2D_ARRAY:36303,UNSIGNED_INT_SAMPLER_2D:36306,UNSIGNED_INT_SAMPLER_3D:36307,UNSIGNED_INT_SAMPLER_CUBE:36308,UNSIGNED_INT_SAMPLER_2D_ARRAY:36311,DEPTH_COMPONENT32F:36012,DEPTH32F_STENCIL8:36013,FLOAT_32_UNSIGNED_INT_24_8_REV:36269,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:33296,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:33297,FRAMEBUFFER_ATTACHMENT_RED_SIZE:33298,FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:33299,FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:33300,FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:33301,FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:33302,FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:33303,FRAMEBUFFER_DEFAULT:33304,UNSIGNED_INT_24_8:34042,DEPTH24_STENCIL8:35056,UNSIGNED_NORMALIZED:35863,DRAW_FRAMEBUFFER_BINDING:36006,READ_FRAMEBUFFER:36008,DRAW_FRAMEBUFFER:36009,READ_FRAMEBUFFER_BINDING:36010,RENDERBUFFER_SAMPLES:36011,FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:36052,MAX_COLOR_ATTACHMENTS:36063,COLOR_ATTACHMENT1:36065,COLOR_ATTACHMENT2:36066,COLOR_ATTACHMENT3:36067,COLOR_ATTACHMENT4:36068,COLOR_ATTACHMENT5:36069,COLOR_ATTACHMENT6:36070,COLOR_ATTACHMENT7:36071,COLOR_ATTACHMENT8:36072,COLOR_ATTACHMENT9:36073,COLOR_ATTACHMENT10:36074,COLOR_ATTACHMENT11:36075,COLOR_ATTACHMENT12:36076,COLOR_ATTACHMENT13:36077,COLOR_ATTACHMENT14:36078,COLOR_ATTACHMENT15:36079,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:36182,MAX_SAMPLES:36183,HALF_FLOAT:5131,RG:33319,RG_INTEGER:33320,R8:33321,RG8:33323,R16F:33325,R32F:33326,RG16F:33327,RG32F:33328,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,VERTEX_ARRAY_BINDING:34229,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,SIGNED_NORMALIZED:36764,COPY_READ_BUFFER:36662,COPY_WRITE_BUFFER:36663,COPY_READ_BUFFER_BINDING:36662,COPY_WRITE_BUFFER_BINDING:36663,UNIFORM_BUFFER:35345,UNIFORM_BUFFER_BINDING:35368,UNIFORM_BUFFER_START:35369,UNIFORM_BUFFER_SIZE:35370,MAX_VERTEX_UNIFORM_BLOCKS:35371,MAX_FRAGMENT_UNIFORM_BLOCKS:35373,MAX_COMBINED_UNIFORM_BLOCKS:35374,MAX_UNIFORM_BUFFER_BINDINGS:35375,MAX_UNIFORM_BLOCK_SIZE:35376,MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS:35377,MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:35379,UNIFORM_BUFFER_OFFSET_ALIGNMENT:35380,ACTIVE_UNIFORM_BLOCKS:35382,UNIFORM_TYPE:35383,UNIFORM_SIZE:35384,UNIFORM_BLOCK_INDEX:35386,UNIFORM_OFFSET:35387,UNIFORM_ARRAY_STRIDE:35388,UNIFORM_MATRIX_STRIDE:35389,UNIFORM_IS_ROW_MAJOR:35390,UNIFORM_BLOCK_BINDING:35391,UNIFORM_BLOCK_DATA_SIZE:35392,UNIFORM_BLOCK_ACTIVE_UNIFORMS:35394,UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES:35395,UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER:35396,UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER:35398,INVALID_INDEX:4294967295,MAX_VERTEX_OUTPUT_COMPONENTS:37154,MAX_FRAGMENT_INPUT_COMPONENTS:37157,MAX_SERVER_WAIT_TIMEOUT:37137,OBJECT_TYPE:37138,SYNC_CONDITION:37139,SYNC_STATUS:37140,SYNC_FLAGS:37141,SYNC_FENCE:37142,SYNC_GPU_COMMANDS_COMPLETE:37143,UNSIGNALED:37144,SIGNALED:37145,ALREADY_SIGNALED:37146,TIMEOUT_EXPIRED:37147,CONDITION_SATISFIED:37148,WAIT_FAILED:37149,SYNC_FLUSH_COMMANDS_BIT:1,VERTEX_ATTRIB_ARRAY_DIVISOR:35070,ANY_SAMPLES_PASSED:35887,ANY_SAMPLES_PASSED_CONSERVATIVE:36202,SAMPLER_BINDING:35097,RGB10_A2UI:36975,INT_2_10_10_10_REV:36255,TRANSFORM_FEEDBACK:36386,TRANSFORM_FEEDBACK_PAUSED:36387,TRANSFORM_FEEDBACK_ACTIVE:36388,TRANSFORM_FEEDBACK_BINDING:36389,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497,TEXTURE_IMMUTABLE_FORMAT:37167,MAX_ELEMENT_INDEX:36203,TEXTURE_IMMUTABLE_LEVELS:33503,MAX_TEXTURE_MAX_ANISOTROPY_EXT:34047})},786409:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(919382),r=i(698907),o=i(406144),s=i(426468),a=i(446938),c=i(253316),u=i(362017);function l(e){this._ellipsoid=(0,o.Z)(e,c.Z.WGS84),this._semimajorAxis=this._ellipsoid.maximumRadius,this._oneOverSemimajorAxis=1/this._semimajorAxis}Object.defineProperties(l.prototype,{ellipsoid:{get:function(){return this._ellipsoid}}}),l.mercatorAngleToGeodeticLatitude=function(e){return u.Z.PI_OVER_TWO-2*Math.atan(Math.exp(-e))},l.geodeticLatitudeToMercatorAngle=function(e){e>l.MaximumLatitude?e=l.MaximumLatitude:e<-l.MaximumLatitude&&(e=-l.MaximumLatitude);const t=Math.sin(e);return.5*Math.log((1+t)/(1-t))},l.MaximumLatitude=l.mercatorAngleToGeodeticLatitude(Math.PI),l.prototype.project=function(e,t){const i=this._semimajorAxis,r=e.longitude*i,o=l.geodeticLatitudeToMercatorAngle(e.latitude)*i,a=e.height;return(0,s.Z)(t)?(t.x=r,t.y=o,t.z=a,t):new n.Z(r,o,a)},l.prototype.unproject=function(e,t){if(!(0,s.Z)(e))throw new a.Z("cartesian is required");const i=this._oneOverSemimajorAxis,n=e.x*i,o=l.mercatorAngleToGeodeticLatitude(e.y*i),c=e.z;return(0,s.Z)(t)?(t.longitude=n,t.latitude=o,t.height=c,t):new r.Z(n,o,c)};const h=l},310526:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(337968),r=i(406144),o=i(426468),s=i(253316),a=i(523501),c=i(786409);function u(e){if(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),this._ellipsoid=(0,r.Z)(e.ellipsoid,s.Z.WGS84),this._numberOfLevelZeroTilesX=(0,r.Z)(e.numberOfLevelZeroTilesX,1),this._numberOfLevelZeroTilesY=(0,r.Z)(e.numberOfLevelZeroTilesY,1),this._projection=new c.Z(this._ellipsoid),(0,o.Z)(e.rectangleSouthwestInMeters)&&(0,o.Z)(e.rectangleNortheastInMeters))this._rectangleSouthwestInMeters=e.rectangleSouthwestInMeters,this._rectangleNortheastInMeters=e.rectangleNortheastInMeters;else{const e=this._ellipsoid.maximumRadius*Math.PI;this._rectangleSouthwestInMeters=new n.Z(-e,-e),this._rectangleNortheastInMeters=new n.Z(e,e)}const t=this._projection.unproject(this._rectangleSouthwestInMeters),i=this._projection.unproject(this._rectangleNortheastInMeters);this._rectangle=new a.Z(t.longitude,t.latitude,i.longitude,i.latitude)}Object.defineProperties(u.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},rectangle:{get:function(){return this._rectangle}},projection:{get:function(){return this._projection}}}),u.prototype.getNumberOfXTilesAtLevel=function(e){return this._numberOfLevelZeroTilesX<=s&&(d=s-1);let f=(this._rectangleNortheastInMeters.y-h.y)/l|0;return f>=c&&(f=c-1),(0,o.Z)(i)?(i.x=d,i.y=f,i):new n.Z(d,f)};const l=u},445363:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(357299),r=i(406144),o=i(426468),s=i(446938),a=i(54791);function c(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).weights,i=e.times;if(n.Z.defined("weights",t),n.Z.defined("times",i),n.Z.typeOf.number.greaterThanOrEquals("weights.length",t.length,3),t.length%i.length!=0)throw new s.Z("times.length must be a factor of weights.length.");this._times=i,this._weights=t,this._count=t.length/i.length,this._lastTimeIndex=0}Object.defineProperties(c.prototype,{times:{get:function(){return this._times}},weights:{get:function(){return this._weights}}}),c.prototype.findTimeInterval=a.Z.prototype.findTimeInterval,c.prototype.wrapTime=a.Z.prototype.wrapTime,c.prototype.clampTime=a.Z.prototype.clampTime,c.prototype.evaluate=function(e,t){const i=this.weights,n=this.times,r=this._lastTimeIndex=this.findTimeInterval(e,this._lastTimeIndex),s=(e-n[r])/(n[r+1]-n[r]);(0,o.Z)(t)||(t=new Array(this._count));for(let e=0;e{"use strict";i.d(t,{Z:()=>o});var n=i(619287);const r={CLOCKWISE:n.Z.CW,COUNTER_CLOCKWISE:n.Z.CCW,validate:function(e){return e===r.CLOCKWISE||e===r.COUNTER_CLOCKWISE}},o=Object.freeze(r)},170099:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(357299),r=i(406144),o=i(426468);const s=function(e,t,i,s){if(n.Z.defined("array",e),n.Z.defined("value",t),(0,o.Z)(i)&&n.Z.typeOf.number("start",i),(0,o.Z)(s)&&n.Z.typeOf.number("end",s),"function"==typeof e.fill)return e.fill(t,i,s);const a=e.length>>>0,c=(0,r.Z)(i,0);let u=c<0?Math.max(a+c,0):Math.min(c,a);const l=(0,r.Z)(s,a),h=l<0?Math.max(a+l,0):Math.min(l,a);for(;u{"use strict";i.d(t,{Z:()=>a});var n=i(357299),r=i(406144),o=i(426468);const s=i(362017).Z.EPSILON10,a=function(e,t,i,a){if(n.Z.defined("equalsEpsilon",t),!(0,o.Z)(e))return;i=(0,r.Z)(i,!1);const c=(0,o.Z)(a),u=e.length;if(u<2)return e;let l,h,d,f=e[0],p=0,m=-1;for(l=1;l{"use strict";i.d(t,{Z:()=>s});var n=i(357299),r=i(426468),o=i(488802);const s=function(e,t,i){if(n.Z.defined("array",e),(0,r.Z)(t)&&n.Z.typeOf.number("begin",t),(0,r.Z)(i)&&n.Z.typeOf.number("end",i),"function"==typeof e.slice)return e.slice(t,i);let s=Array.prototype.slice.call(e,t,i);const a=o.Z.typedArrayTypes,c=a.length;for(let t=0;t{"use strict";i.d(t,{Z:()=>h});var n=i(337968),r=i(919382),o=i(357299),s=i(426468),a=i(362017);const c=new r.Z,u=new r.Z,l=new r.Z,h=function(e,t,i,h,d){let f,p,m,_,Z,g,y,b;if(o.Z.defined("point",e),o.Z.defined("p0",t),o.Z.defined("p1",i),o.Z.defined("p2",h),(0,s.Z)(d)||(d=new r.Z),(0,s.Z)(t.z)){if(r.Z.equalsEpsilon(e,t,a.Z.EPSILON14))return r.Z.clone(r.Z.UNIT_X,d);if(r.Z.equalsEpsilon(e,i,a.Z.EPSILON14))return r.Z.clone(r.Z.UNIT_Y,d);if(r.Z.equalsEpsilon(e,h,a.Z.EPSILON14))return r.Z.clone(r.Z.UNIT_Z,d);f=r.Z.subtract(i,t,c),p=r.Z.subtract(h,t,u),m=r.Z.subtract(e,t,l),_=r.Z.dot(f,f),Z=r.Z.dot(f,p),g=r.Z.dot(f,m),y=r.Z.dot(p,p),b=r.Z.dot(p,m)}else{if(n.Z.equalsEpsilon(e,t,a.Z.EPSILON14))return r.Z.clone(r.Z.UNIT_X,d);if(n.Z.equalsEpsilon(e,i,a.Z.EPSILON14))return r.Z.clone(r.Z.UNIT_Y,d);if(n.Z.equalsEpsilon(e,h,a.Z.EPSILON14))return r.Z.clone(r.Z.UNIT_Z,d);f=n.Z.subtract(i,t,c),p=n.Z.subtract(h,t,u),m=n.Z.subtract(e,t,l),_=n.Z.dot(f,f),Z=n.Z.dot(f,p),g=n.Z.dot(f,m),y=n.Z.dot(p,p),b=n.Z.dot(p,m)}d.y=y*g-Z*b,d.z=_*b-Z*g;const A=_*y-Z*Z;if(0!==A)return d.y/=A,d.z/=A,d.x=1-d.y-d.z,d}},693465:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(357299);const r=function(e,t,i){n.Z.defined("array",e),n.Z.defined("itemToFind",t),n.Z.defined("comparator",i);let r,o,s=0,a=e.length-1;for(;s<=a;)if(r=~~((s+a)/2),o=i(e[r],t),o<0)s=r+1;else{if(!(o>0))return r;a=r-1}return~(a+1)}},913216:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n,r,o,s=i(426468),a=i(446938),c=(i(47628),i(795788));function u(e){return"undefined"==typeof document?e:((0,s.Z)(n)||(n=document.createElement("a")),n.href=e,n.href=n.href,n.href)}function l(){if((0,s.Z)(r))return r;var e;if(e="dist/cesium",!(0,s.Z)(e))throw new a.Z("Unable to determine Cesium base URL automatically, try defining a global variable called CESIUM_BASE_URL.");return(r=new c.Z({url:u(e)})).appendForwardSlash(),r}function h(e){return u(require.toUrl("../"+e))}function d(e){return l().getDerivedResource({url:e}).url}function f(e){return(0,s.Z)(o)||(o="object"==typeof define&&(0,s.Z)(define.amd)&&!define.amd.toUrlUndefined&&(0,s.Z)(require.toUrl)?h:d),o(e)}f._cesiumScriptRegex=/((?:.*\/)|^)Cesium\.js(?:\?|\#|$)/,f._buildModuleUrlFromBaseUrl=d,f._clearBaseResource=function(){r=void 0},f.setBaseUrl=function(e){r=c.Z.DEFAULT.getDerivedResource({url:e})},f.getCesiumBaseUrl=l;const p=f},124193:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(426468);let r;"undefined"!=typeof cancelAnimationFrame&&(r=cancelAnimationFrame),function(){if(!(0,n.Z)(r)&&"undefined"!=typeof window){const e=["webkit","moz","ms","o"];let t=0;const i=e.length;for(;t{"use strict";i.d(t,{Z:()=>r});var n=i(406144);const r=function e(t,i){if(null===t||"object"!=typeof t)return t;i=(0,n.Z)(i,!1);const r=new t.constructor;for(const n in t)if(t.hasOwnProperty(n)){let o=t[n];i&&(o=e(o,i)),r[n]=o}return r}},307260:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(406144),r=i(426468);const o=function e(t,i,o){o=(0,n.Z)(o,!1);const s={},a=(0,r.Z)(t),c=(0,r.Z)(i);let u,l,h;if(a)for(u in t)t.hasOwnProperty(u)&&(l=t[u],c&&o&&"object"==typeof l&&i.hasOwnProperty(u)?(h=i[u],s[u]="object"==typeof h?e(l,h,o):l):s[u]=l);if(c)for(u in i)i.hasOwnProperty(u)&&!s.hasOwnProperty(u)&&(h=i[u],s[u]=h);return s}},500166:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(948518),r=i(406144),o=i(822302);const s=function(e){return e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),new n.Z({url:o.Z.fromAssetId(1),requestVertexNormals:(0,r.Z)(e.requestVertexNormals,!1),requestWaterMask:(0,r.Z)(e.requestWaterMask,!1)})}},194442:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(357299),r=i(50128);function o(e,t){if(o.passThroughDataForTesting)return t;n.Z.typeOf.object("key",e),n.Z.typeOf.object("data",t);const i=e.byteLength;if(0===i||i%4!=0)throw new r.Z("The length of key must be greater than 0 and a multiple of 4.");const s=new DataView(t),a=s.getUint32(0,!0);if(1953029805===a||2917034100===a)return t;const c=new DataView(e);let u=0;const l=t.byteLength,h=l-l%8,d=i;let f,p=8;for(;u=d&&(p=(p+8)%24,f=p);u{"use strict";i.d(t,{Z:()=>l});var n=i(247976),r=i(919382),o=i(698907),s=i(362017);const a=32767,c=new o.Z,u=new r.Z,l=function(e,t,i,l,h){const d=e.length/3,f=e.subarray(0,d),p=e.subarray(d,2*d),m=e.subarray(2*d,3*d);n.Z.zigZagDeltaDecode(f,p,m);const _=new Float64Array(e.length);for(let e=0;e{"use strict";function n(e,t){return null!=e?e:t}i.d(t,{Z:()=>r}),n.EMPTY_OBJECT=Object.freeze({});const r=n},859071:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(426468),r=i(446938),o=i(594798);const s=function(e,t){if(!(0,n.Z)(e)||!(0,n.Z)(t))throw new r.Z("identifier and message are required.");(0,o.Z)(e,t)}},54879:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(406144),r=i(446938);function o(){return!0}const s=function(e,t){function i(){throw new r.Z(t)}t=(0,n.Z)(t,"This object was destroyed, i.e., destroy() was called.");for(const t in e)"function"==typeof e[t]&&(e[t]=i);e.isDestroyed=o}},151298:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(111840),r=i(426468),o=i(446938);const s=function(e,t){if(!(0,r.Z)(e))throw new o.Z("uri is required.");let i="";const s=e.lastIndexOf("/");return-1!==s&&(i=e.substring(0,s+1)),t?(0!==(e=new n.Z(e)).query().length&&(i+="?"+e.query()),0!==e.fragment().length&&(i+="#"+e.fragment()),i):i}},44537:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(111840),r=i(426468),o=i(446938);const s=function(e){if(!(0,r.Z)(e))throw new o.Z("uri is required.");const t=new n.Z(e);t.normalize();let i=t.path(),s=i.lastIndexOf("/");return-1!==s&&(i=i.substr(s+1)),s=i.lastIndexOf("."),i=-1===s?"":i.substr(s+1),i}},812655:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(111840),r=i(426468),o=i(446938);const s=function(e){if(!(0,r.Z)(e))throw new o.Z("uri is required.");const t=new n.Z(e);t.normalize();let i=t.path();const s=i.lastIndexOf("/");return-1!==s&&(i=i.substr(s+1)),i}},33709:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(426468);const r={},o=function(e,t,i){(0,n.Z)(t)||(t=e.width),(0,n.Z)(i)||(i=e.height);let o=r[t];(0,n.Z)(o)||(o={},r[t]=o);let s=o[i];if(!(0,n.Z)(s)){const e=document.createElement("canvas");e.width=t,e.height=i,s=e.getContext("2d"),s.globalCompositeOperation="copy",o[i]=s}return s.drawImage(e,0,0,t,i),s.getImageData(0,0,t,i).data}},987606:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(482103);const r=function(e,t,i){return JSON.parse((0,n.Z)(e,t,i))}},707009:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(406144),r=i(482103);const o=function(e,t){return t=(0,n.Z)(t,0),(0,r.Z)(e,t,Math.min(4,e.length))}},482103:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(406144),r=i(426468),o=i(446938),s=i(50128);function a(e,t,i){if(!(0,r.Z)(e))throw new o.Z("uint8Array is required.");if(t<0)throw new o.Z("byteOffset cannot be negative.");if(i<0)throw new o.Z("byteLength cannot be negative.");if(t+i>e.byteLength)throw new o.Z("sub-region exceeds array bounds.");return t=(0,n.Z)(t,0),i=(0,n.Z)(i,e.byteLength-t),e=e.subarray(t,t+i),a.decode(e)}function c(e,t,i){return t<=e&&e<=i}a.decodeWithTextDecoder=function(e){return new TextDecoder("utf-8").decode(e)},a.decodeWithFromCharCode=function(e){let t="";const i=function(e){let t=0,i=0,n=0,r=128,o=191;const a=[],u=e.length;for(let l=0;l>10),56320+(1023&n)))}return t},"undefined"!=typeof TextDecoder?a.decode=a.decodeWithTextDecoder:a.decode=a.decodeWithFromCharCode;const u=a},485083:(e,t,i)=>{"use strict";let n;i.d(t,{Z:()=>r}),n="undefined"!=typeof performance&&"function"==typeof performance.now&&isFinite(performance.now())?function(){return performance.now()}:function(){return Date.now()};const r=n},566448:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(357299);const r=/^blob:/i,o=function(e){return n.Z.typeOf.string("uri",e),r.test(e)}},241634:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(357299);const r=/^data:/i,o=function(e){return n.Z.typeOf.string("uri",e),r.test(e)}},766898:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(446938);const r=function(e){if(null===e||isNaN(e))throw new n.Z("year is required and must be a number.");return e%4==0&&e%100!=0||e%400==0}},734724:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(527758);const r=function(e){const t=n.Z.defer(),i=document.createElement("script");i.async=!0,i.src=e;const r=document.getElementsByTagName("head")[0];return i.onload=function(){i.onload=void 0,r.removeChild(i),t.resolve()},i.onerror=function(e){t.reject(e)},r.appendChild(i),t.promise}},312562:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(527758),r=i(357299),o=i(406144),s=i(426468),a=i(795788);const c=function(e){const t=e.uint8Array,i=e.format,c=e.request,u=(0,o.Z)(e.flipY,!1),l=(0,o.Z)(e.skipColorSpaceConversion,!1);r.Z.typeOf.object("uint8Array",t),r.Z.typeOf.string("format",i);const h=new Blob([t],{type:i});let d;return a.Z.supportsImageBitmapOptions().then((function(e){return e?(0,n.Z)(a.Z.createImageBitmapFromBlob(h,{flipY:u,premultiplyAlpha:!1,skipColorSpaceConversion:l})):(d=window.URL.createObjectURL(h),new a.Z({url:d,request:c}).fetchImage({flipY:u,skipColorSpaceConversion:l}))})).then((function(e){return(0,s.Z)(d)&&window.URL.revokeObjectURL(d),e})).otherwise((function(e){return(0,s.Z)(d)&&window.URL.revokeObjectURL(d),n.Z.reject(e)}))}},210510:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(357299),r=i(795788),o=i(907321),s=i(527758);let a;function c(e){let t;return n.Z.defined("resourceOrUrlOrBuffer",e),t=e instanceof ArrayBuffer||ArrayBuffer.isView(e)?s.Z.resolve(e):r.Z.createIfNeeded(e).fetchArrayBuffer(),t.then((function(e){return o.Z.transcode(e,a)}))}c.setKTX2SupportedFormats=function(e,t,i,n,r,o){a={s3tc:e,pvrtc:t,astc:i,etc:n,etc1:r,bc7:o}};const u=c},457345:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(426468),r=i(446938);const o=[],s=[];function a(e,t,i,n,r){if(n>=r)return;const c=Math.floor(.5*(n+r));a(e,t,i,n,c),a(e,t,i,c+1,r),function(e,t,i,n,r,a){const c=r-n+1,u=a-r,l=o,h=s;let d,f;for(d=0;d=u||t(n,o,i)<=0)?(e[r]=n,++d):f{"use strict";i.d(t,{Z:()=>o});var n=i(426468),r=i(446938);const o=function(e){if(!(0,n.Z)(e))throw new r.Z("obj is required.");let t="";for(const i in e)if(e.hasOwnProperty(i)){const n=e[i],r=encodeURIComponent(i)+"=";if(Array.isArray(n))for(let e=0,i=n.length;e{"use strict";i.d(t,{Z:()=>c});var n=i(406144),r=i(426468),o=i(446938);const s={};function a(e,t){if(!(0,r.Z)(e))throw new o.Z("identifier is required.");(0,r.Z)(s[e])||(s[e]=!0,console.warn((0,n.Z)(t,e)))}a.geometryOutlines="Entity geometry outlines are unsupported on terrain. Outlines will be disabled. To enable outlines, disable geometry terrain clamping by explicitly setting height to 0.",a.geometryZIndex="Entity geometry with zIndex are unsupported when height or extrudedHeight are defined. zIndex will be ignored",a.geometryHeightReference="Entity corridor, ellipse, polygon or rectangle with heightReference must also have a defined height. heightReference will be ignored",a.geometryExtrudedHeightReference="Entity corridor, ellipse, polygon or rectangle with extrudedHeightReference must also have a defined extrudedHeight. extrudedHeightReference will be ignored";const c=a},667240:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(176650),r=i(919382),o=i(426468);const s=new r.Z,a=function(e,t,i,r){const a=(0,n.Z)(e,t,i,r,s);return!!(0,o.Z)(a)&&a.x>0&&a.y>0&&a.z>0}},632207:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(426468),r=i(446938);const o=function(e){if(!(0,n.Z)(e))throw new r.Z("queryString is required.");const t={};if(""===e)return t;const i=e.replace(/\+/g,"%20").split(/[&;]/);for(let e=0,r=i.length;e{"use strict";i.d(t,{Z:()=>s});var n=i(426468),r=i(485083);let o;"undefined"!=typeof requestAnimationFrame&&(o=requestAnimationFrame),function(){if(!(0,n.Z)(o)&&"undefined"!=typeof window){const e=["webkit","moz","ms","o"];let t=0;const i=e.length;for(;t{"use strict";i.d(t,{Z:()=>c});var n=i(527758),r=i(357299);function o(e,t,i){const n=t.interpolateHeight(i,e.longitude,e.latitude);return void 0!==n&&(e.height=n,!0)}function s(e){const t=e.positions,i=e.tilingScheme.tileXYToRectangle(e.x,e.y,e.level);return function(r){let s=!1;for(let e=0;e{"use strict";i.d(t,{Z:()=>u});var n=i(527758),r=i(337968),o=i(426468),s=i(446938),a=i(830738);const c=new r.Z,u=function e(t,i){if(!(0,o.Z)(t))throw new s.Z("terrainProvider is required.");if(!(0,o.Z)(i))throw new s.Z("positions is required.");return t.readyPromise.then((function(){const r=[],u=[],l=t.availability;if(!(0,o.Z)(l))throw new s.Z("sampleTerrainMostDetailed requires a terrain provider that has tile availability.");const h=[];for(let e=0;e0)return e(t,n)})).then((function(){return i}))}))}},547810:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(919382),r=i(426468),o=i(446938),s=i(362017);const a=new n.Z,c=new n.Z,u=function(e,t,i,u,l){if(!(0,r.Z)(e))throw new o.Z("cartesian is required.");if(!(0,r.Z)(t))throw new o.Z("oneOverRadii is required.");if(!(0,r.Z)(i))throw new o.Z("oneOverRadiiSquared is required.");if(!(0,r.Z)(u))throw new o.Z("centerToleranceSquared is required.");const h=e.x,d=e.y,f=e.z,p=t.x,m=t.y,_=t.z,Z=h*h*p*p,g=d*d*m*m,y=f*f*_*_,b=Z+g+y,A=Math.sqrt(1/b),w=n.Z.multiplyByScalar(e,A,a);if(bs.Z.EPSILON12);return(0,r.Z)(l)?(l.x=h*O,l.y=d*I,l.z=f*D,l):new n.Z(h*O,d*I,f*D)}},206275:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(426468),r=i(446938);const o=function(e,t){if(!(0,n.Z)(e))throw new r.Z("array is required.");if(!(0,n.Z)(t)||t<1)throw new r.Z("numberOfArrays must be greater than 0.");const i=[],o=e.length;let s=0;for(;s{"use strict";i.d(t,{Z:()=>r});var n=i(619287);const r=function(e){switch(e){case n.Z.FLOAT:return"float";case n.Z.FLOAT_VEC2:return"vec2";case n.Z.FLOAT_VEC3:return"vec3";case n.Z.FLOAT_VEC4:return"vec4";case n.Z.FLOAT_MAT2:return"mat2";case n.Z.FLOAT_MAT3:return"mat3";case n.Z.FLOAT_MAT4:return"mat4";case n.Z.SAMPLER_2D:return"sampler2D";case n.Z.BOOL:return"bool"}}},654357:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(446938);const r=function(e,t,i){if("function"!=typeof t)throw new n.Z("oldFunction is required to be a function.");if("function"!=typeof i)throw new n.Z("oldFunction is required to be a function.");return function(){i.apply(e,arguments),t.apply(e,arguments)}}},986384:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(545125),r=i(406144),o=i(426468),s=i(446938);let a;const c=function(e,t){if(!(0,o.Z)(e))throw new s.Z("text is required.");if(""===e)return;t=(0,r.Z)(t,r.Z.EMPTY_OBJECT);const i=(0,r.Z)(t.font,"10px sans-serif"),c=(0,r.Z)(t.stroke,!1),u=(0,r.Z)(t.fill,!0),l=(0,r.Z)(t.strokeWidth,1),h=(0,r.Z)(t.backgroundColor,n.Z.TRANSPARENT),d=(0,r.Z)(t.padding,0),f=2*d,p=document.createElement("canvas");p.width=1,p.height=1,p.style.font=i;const m=p.getContext("2d");(0,o.Z)(a)||((0,o.Z)(m.imageSmoothingEnabled)?a="imageSmoothingEnabled":(0,o.Z)(m.mozImageSmoothingEnabled)?a="mozImageSmoothingEnabled":(0,o.Z)(m.webkitImageSmoothingEnabled)?a="webkitImageSmoothingEnabled":(0,o.Z)(m.msImageSmoothingEnabled)&&(a="msImageSmoothingEnabled")),m.font=i,m.lineJoin="round",m.lineWidth=l,m[a]=!1,p.style.visibility="hidden",document.body.appendChild(p);const _=function(e,t,i,n,r){const o=e.measureText(t);if(/\S/.test(t)){const s=document.defaultView.getComputedStyle(e.canvas).getPropertyValue("font-size").replace("px",""),a=document.createElement("canvas"),c=100,u=o.width+c|0,l=3*s,h=l/2;a.width=u,a.height=l;const d=a.getContext("2d");d.font=i,d.fillStyle="white",d.fillRect(0,0,a.width+1,a.height+1),n&&(d.strokeStyle="black",d.lineWidth=e.lineWidth,d.strokeText(t,c/2,h)),r&&(d.fillStyle="black",d.fillText(t,c/2,h));const f=d.getImageData(0,0,u,l).data,p=f.length,m=4*u;let _,Z,g,y;for(_=0;_=0;--_)if(255!==f[_]){y=_/m|0;break}let b=-1;for(_=0;_{"use strict";i.d(t,{Z:()=>u});var n=i(406144),r=i(426468),o=i(446938),s=i(197685),a=i(528531);function c(e){this._definitionChanged=new s.Z,this._show=void 0,this._showSubscription=void 0,this._image=void 0,this._imageSubscription=void 0,this._scale=void 0,this._scaleSubscription=void 0,this._pixelOffset=void 0,this._pixelOffsetSubscription=void 0,this._eyeOffset=void 0,this._eyeOffsetSubscription=void 0,this._horizontalOrigin=void 0,this._horizontalOriginSubscription=void 0,this._verticalOrigin=void 0,this._verticalOriginSubscription=void 0,this._heightReference=void 0,this._heightReferenceSubscription=void 0,this._color=void 0,this._colorSubscription=void 0,this._rotation=void 0,this._rotationSubscription=void 0,this._alignedAxis=void 0,this._alignedAxisSubscription=void 0,this._sizeInMeters=void 0,this._sizeInMetersSubscription=void 0,this._width=void 0,this._widthSubscription=void 0,this._height=void 0,this._heightSubscription=void 0,this._scaleByDistance=void 0,this._scaleByDistanceSubscription=void 0,this._translucencyByDistance=void 0,this._translucencyByDistanceSubscription=void 0,this._pixelOffsetScaleByDistance=void 0,this._pixelOffsetScaleByDistanceSubscription=void 0,this._imageSubRegion=void 0,this._imageSubRegionSubscription=void 0,this._distanceDisplayCondition=void 0,this._distanceDisplayConditionSubscription=void 0,this._disableDepthTestDistance=void 0,this._disableDepthTestDistanceSubscription=void 0,this.merge((0,n.Z)(e,n.Z.EMPTY_OBJECT))}Object.defineProperties(c.prototype,{definitionChanged:{get:function(){return this._definitionChanged}},show:(0,a.Z)("show"),image:(0,a.Z)("image"),scale:(0,a.Z)("scale"),pixelOffset:(0,a.Z)("pixelOffset"),eyeOffset:(0,a.Z)("eyeOffset"),horizontalOrigin:(0,a.Z)("horizontalOrigin"),verticalOrigin:(0,a.Z)("verticalOrigin"),heightReference:(0,a.Z)("heightReference"),color:(0,a.Z)("color"),rotation:(0,a.Z)("rotation"),alignedAxis:(0,a.Z)("alignedAxis"),sizeInMeters:(0,a.Z)("sizeInMeters"),width:(0,a.Z)("width"),height:(0,a.Z)("height"),scaleByDistance:(0,a.Z)("scaleByDistance"),translucencyByDistance:(0,a.Z)("translucencyByDistance"),pixelOffsetScaleByDistance:(0,a.Z)("pixelOffsetScaleByDistance"),imageSubRegion:(0,a.Z)("imageSubRegion"),distanceDisplayCondition:(0,a.Z)("distanceDisplayCondition"),disableDepthTestDistance:(0,a.Z)("disableDepthTestDistance")}),c.prototype.clone=function(e){return(0,r.Z)(e)?(e.show=this._show,e.image=this._image,e.scale=this._scale,e.pixelOffset=this._pixelOffset,e.eyeOffset=this._eyeOffset,e.horizontalOrigin=this._horizontalOrigin,e.verticalOrigin=this._verticalOrigin,e.heightReference=this._heightReference,e.color=this._color,e.rotation=this._rotation,e.alignedAxis=this._alignedAxis,e.sizeInMeters=this._sizeInMeters,e.width=this._width,e.height=this._height,e.scaleByDistance=this._scaleByDistance,e.translucencyByDistance=this._translucencyByDistance,e.pixelOffsetScaleByDistance=this._pixelOffsetScaleByDistance,e.imageSubRegion=this._imageSubRegion,e.distanceDisplayCondition=this._distanceDisplayCondition,e.disableDepthTestDistance=this._disableDepthTestDistance,e):new c(this)},c.prototype.merge=function(e){if(!(0,r.Z)(e))throw new o.Z("source is required.");this.show=(0,n.Z)(this._show,e.show),this.image=(0,n.Z)(this._image,e.image),this.scale=(0,n.Z)(this._scale,e.scale),this.pixelOffset=(0,n.Z)(this._pixelOffset,e.pixelOffset),this.eyeOffset=(0,n.Z)(this._eyeOffset,e.eyeOffset),this.horizontalOrigin=(0,n.Z)(this._horizontalOrigin,e.horizontalOrigin),this.verticalOrigin=(0,n.Z)(this._verticalOrigin,e.verticalOrigin),this.heightReference=(0,n.Z)(this._heightReference,e.heightReference),this.color=(0,n.Z)(this._color,e.color),this.rotation=(0,n.Z)(this._rotation,e.rotation),this.alignedAxis=(0,n.Z)(this._alignedAxis,e.alignedAxis),this.sizeInMeters=(0,n.Z)(this._sizeInMeters,e.sizeInMeters),this.width=(0,n.Z)(this._width,e.width),this.height=(0,n.Z)(this._height,e.height),this.scaleByDistance=(0,n.Z)(this._scaleByDistance,e.scaleByDistance),this.translucencyByDistance=(0,n.Z)(this._translucencyByDistance,e.translucencyByDistance),this.pixelOffsetScaleByDistance=(0,n.Z)(this._pixelOffsetScaleByDistance,e.pixelOffsetScaleByDistance),this.imageSubRegion=(0,n.Z)(this._imageSubRegion,e.imageSubRegion),this.distanceDisplayCondition=(0,n.Z)(this._distanceDisplayCondition,e.distanceDisplayCondition),this.disableDepthTestDistance=(0,n.Z)(this._disableDepthTestDistance,e.disableDepthTestDistance)};const u=c},941878:(e,t,i)=>{"use strict";i.d(t,{Z:()=>N});var n=i(878438),r=i(152124),o=i(337968),s=i(919382),a=i(545125),c=i(426468),u=i(54879),l=i(446938),h=i(744497),d=i(530109),f=i(110499),p=i(121015),m=i(825497),_=i(120896),Z=i(444147);const g=a.Z.WHITE,y=s.Z.ZERO,b=f.Z.NONE,A=o.Z.ZERO,w=s.Z.ZERO,v=p.Z.CENTER,T=m.Z.CENTER,C=new s.Z,E=new a.Z,x=new s.Z,S=new o.Z,O=new d.Z,I=new d.Z,D=new d.Z,P=new r.Z,R=new h.Z;function B(e){this.entity=e,this.billboard=void 0,this.textureValue=void 0}function M(e,t){if(!(0,c.Z)(e))throw new l.Z("entityCluster is required.");if(!(0,c.Z)(t))throw new l.Z("entityCollection is required.");t.collectionChanged.addEventListener(M.prototype._onCollectionChanged,this),this._cluster=e,this._entityCollection=t,this._items=new n.Z,this._onCollectionChanged(t,t.values,[],[])}function L(e,t,i){(0,c.Z)(e)&&(e.billboard=void 0,i.removeBillboard(t))}M.prototype.update=function(e){if(!(0,c.Z)(e))throw new l.Z("time is required.");const t=this._items.values,i=this._cluster;for(let n=0,r=t.length;n-1;r--)o=t[r],(0,c.Z)(o._billboard)&&(0,c.Z)(o._position)&&s.set(o.id,new B(o));for(r=n.length-1;r>-1;r--)o=n[r],(0,c.Z)(o._billboard)&&(0,c.Z)(o._position)?s.contains(o.id)||s.set(o.id,new B(o)):(L(s.get(o.id),o,a),s.remove(o.id));for(r=i.length-1;r>-1;r--)o=i[r],L(s.get(o.id),o,a),s.remove(o.id)};const N=M},120896:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({DONE:0,PENDING:1,FAILED:2})},959267:(e,t,i)=>{"use strict";i.d(t,{Z:()=>P});var n=i(96823),r=i(101985),o=i(919382),s=i(357299),a=i(545125),c=i(182934),u=i(426468),l=i(446938),h=i(231432),d=i(952254),f=i(215925),p=i(29699),m=i(81203),_=i(208613),Z=i(110499),g=i(112546),y=i(578721),b=i(141653),A=i(955701),w=i(710923),v=i(565544),T=i(444147);const C=o.Z.ZERO,E=new o.Z,x=new o.Z,S=new a.Z;function O(e){this.id=e,this.vertexFormat=void 0,this.dimensions=void 0,this.offsetAttribute=void 0}function I(e,t){w.Z.call(this,{entity:e,scene:t,geometryOptions:new O(e),geometryPropertyName:"box",observedPropertyNames:["availability","position","orientation","box"]}),this._onEntityPropertyChanged(e,"box",e.box,void 0)}function D(e,t,i){A.Z.call(this,e,t,i)}(0,u.Z)(Object.create)&&(I.prototype=Object.create(w.Z.prototype),I.prototype.constructor=I),Object.defineProperties(I.prototype,{terrainOffsetProperty:{get:function(){return this._terrainOffsetProperty}}}),I.prototype.createFillGeometryInstance=function(e){if(s.Z.defined("time",e),!this._fillEnabled)throw new l.Z("This instance does not represent a filled geometry.");const t=this._entity,i=t.isAvailable(e),r=new _.Z(i&&t.isShowing&&this._showProperty.getValue(e)&&this._fillProperty.getValue(e)),o=this._distanceDisplayConditionProperty.getValue(e),f={show:r,distanceDisplayCondition:h.Z.fromDistanceDisplayCondition(o),color:void 0,offset:void 0};if(this._materialProperty instanceof b.Z){let t;(0,u.Z)(this._materialProperty.color)&&(this._materialProperty.color.isConstant||i)&&(t=this._materialProperty.color.getValue(e,S)),(0,u.Z)(t)||(t=a.Z.WHITE),f.color=c.Z.fromColor(t)}return(0,u.Z)(this._options.offsetAttribute)&&(f.offset=m.Z.fromCartesian3(T.Z.getValueOrDefault(this._terrainOffsetProperty,e,C,E))),new d.Z({id:t,geometry:n.Z.fromDimensions(this._options),modelMatrix:t.computeModelMatrixForHeightReference(e,t.box.heightReference,.5*this._options.dimensions.z,this._scene.mapProjection.ellipsoid),attributes:f})},I.prototype.createOutlineGeometryInstance=function(e){if(s.Z.defined("time",e),!this._outlineEnabled)throw new l.Z("This instance does not represent an outlined geometry.");const t=this._entity,i=t.isAvailable(e),n=T.Z.getValueOrDefault(this._outlineColorProperty,e,a.Z.BLACK,S),o=this._distanceDisplayConditionProperty.getValue(e),f={show:new _.Z(i&&t.isShowing&&this._showProperty.getValue(e)&&this._showOutlineProperty.getValue(e)),color:c.Z.fromColor(n),distanceDisplayCondition:h.Z.fromDistanceDisplayCondition(o),offset:void 0};return(0,u.Z)(this._options.offsetAttribute)&&(f.offset=m.Z.fromCartesian3(T.Z.getValueOrDefault(this._terrainOffsetProperty,e,C,E))),new d.Z({id:t,geometry:r.Z.fromDimensions(this._options),modelMatrix:t.computeModelMatrixForHeightReference(e,t.box.heightReference,.5*this._options.dimensions.z,this._scene.mapProjection.ellipsoid),attributes:f})},I.prototype._computeCenter=function(e,t){return T.Z.getValueOrUndefined(this._entity.position,e,t)},I.prototype._isHidden=function(e,t){return!(0,u.Z)(t.dimensions)||!(0,u.Z)(e.position)||w.Z.prototype._isHidden.call(this,e,t)},I.prototype._isDynamic=function(e,t){return!(e.position.isConstant&&T.Z.isConstant(e.orientation)&&t.dimensions.isConstant&&T.Z.isConstant(t.outlineWidth))},I.prototype._setStaticOptions=function(e,t){const i=T.Z.getValueOrDefault(t.heightReference,p.Z.MINIMUM_VALUE,Z.Z.NONE),n=this._options;n.vertexFormat=this._materialProperty instanceof b.Z?y.Z.VERTEX_FORMAT:g.Z.MaterialSupport.TEXTURED.vertexFormat,n.dimensions=t.dimensions.getValue(p.Z.MINIMUM_VALUE,n.dimensions),n.offsetAttribute=i!==Z.Z.NONE?f.Z.ALL:void 0},I.prototype._onEntityPropertyChanged=v.Z,I.DynamicGeometryUpdater=D,(0,u.Z)(Object.create)&&(D.prototype=Object.create(A.Z.prototype),D.prototype.constructor=D),D.prototype._isHidden=function(e,t,i){const n=T.Z.getValueOrUndefined(e.position,i,x),r=this._options.dimensions;return!(0,u.Z)(n)||!(0,u.Z)(r)||A.Z.prototype._isHidden.call(this,e,t,i)},D.prototype._setOptions=function(e,t,i){const n=T.Z.getValueOrDefault(t.heightReference,i,Z.Z.NONE),r=this._options;r.dimensions=T.Z.getValueOrUndefined(t.dimensions,i,r.dimensions),r.offsetAttribute=n!==Z.Z.NONE?f.Z.ALL:void 0};const P=I},317814:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(406144),r=i(426468),o=i(446938),s=i(197685),a=i(489351),c=i(528531);function u(e){this._definitionChanged=new s.Z,this._show=void 0,this._showSubscription=void 0,this._dimensions=void 0,this._dimensionsSubscription=void 0,this._heightReference=void 0,this._heightReferenceSubscription=void 0,this._fill=void 0,this._fillSubscription=void 0,this._material=void 0,this._materialSubscription=void 0,this._outline=void 0,this._outlineSubscription=void 0,this._outlineColor=void 0,this._outlineColorSubscription=void 0,this._outlineWidth=void 0,this._outlineWidthSubscription=void 0,this._shadows=void 0,this._shadowsSubscription=void 0,this._distanceDisplayCondition=void 0,this._distanceDisplayConditionSubscription=void 0,this.merge((0,n.Z)(e,n.Z.EMPTY_OBJECT))}Object.defineProperties(u.prototype,{definitionChanged:{get:function(){return this._definitionChanged}},show:(0,c.Z)("show"),dimensions:(0,c.Z)("dimensions"),heightReference:(0,c.Z)("heightReference"),fill:(0,c.Z)("fill"),material:(0,a.Z)("material"),outline:(0,c.Z)("outline"),outlineColor:(0,c.Z)("outlineColor"),outlineWidth:(0,c.Z)("outlineWidth"),shadows:(0,c.Z)("shadows"),distanceDisplayCondition:(0,c.Z)("distanceDisplayCondition")}),u.prototype.clone=function(e){return(0,r.Z)(e)?(e.show=this.show,e.dimensions=this.dimensions,e.heightReference=this.heightReference,e.fill=this.fill,e.material=this.material,e.outline=this.outline,e.outlineColor=this.outlineColor,e.outlineWidth=this.outlineWidth,e.shadows=this.shadows,e.distanceDisplayCondition=this.distanceDisplayCondition,e):new u(this)},u.prototype.merge=function(e){if(!(0,r.Z)(e))throw new o.Z("source is required.");this.show=(0,n.Z)(this.show,e.show),this.dimensions=(0,n.Z)(this.dimensions,e.dimensions),this.heightReference=(0,n.Z)(this.heightReference,e.heightReference),this.fill=(0,n.Z)(this.fill,e.fill),this.material=(0,n.Z)(this.material,e.material),this.outline=(0,n.Z)(this.outline,e.outline),this.outlineColor=(0,n.Z)(this.outlineColor,e.outlineColor),this.outlineWidth=(0,n.Z)(this.outlineWidth,e.outlineWidth),this.shadows=(0,n.Z)(this.shadows,e.shadows),this.distanceDisplayCondition=(0,n.Z)(this.distanceDisplayCondition,e.distanceDisplayCondition)};const l=u},88934:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(426468),r=i(446938),o=i(197685);function s(e,t){this._callback=void 0,this._isConstant=void 0,this._definitionChanged=new o.Z,this.setCallback(e,t)}Object.defineProperties(s.prototype,{isConstant:{get:function(){return this._isConstant}},definitionChanged:{get:function(){return this._definitionChanged}}}),s.prototype.getValue=function(e,t){return this._callback(e,t)},s.prototype.setCallback=function(e,t){if(!(0,n.Z)(e))throw new r.Z("callback is required.");if(!(0,n.Z)(t))throw new r.Z("isConstant is required.");const i=this._callback!==e||this._isConstant!==t;this._callback=e,this._isConstant=t,i&&this._definitionChanged.raiseEvent(this)},s.prototype.equals=function(e){return this===e||e instanceof s&&this._callback===e._callback&&this._isConstant===e._isConstant};const a=s},183938:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(406144),r=i(426468),o=i(446938),s=i(197685),a=i(528531);function c(e){this._definitionChanged=new s.Z,this._show=void 0,this._showSubscription=void 0,this._uri=void 0,this._uriSubscription=void 0,this._maximumScreenSpaceError=void 0,this._maximumScreenSpaceErrorSubscription=void 0,this.merge((0,n.Z)(e,n.Z.EMPTY_OBJECT))}Object.defineProperties(c.prototype,{definitionChanged:{get:function(){return this._definitionChanged}},show:(0,a.Z)("show"),uri:(0,a.Z)("uri"),maximumScreenSpaceError:(0,a.Z)("maximumScreenSpaceError")}),c.prototype.clone=function(e){return(0,r.Z)(e)?(e.show=this.show,e.uri=this.uri,e.maximumScreenSpaceError=this.maximumScreenSpaceError,e):new c(this)},c.prototype.merge=function(e){if(!(0,r.Z)(e))throw new o.Z("source is required.");this.show=(0,n.Z)(this.show,e.show),this.uri=(0,n.Z)(this.uri,e.uri),this.maximumScreenSpaceError=(0,n.Z)(this.maximumScreenSpaceError,e.maximumScreenSpaceError)};const u=c},765175:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Z});var n=i(878438),r=i(360791),o=i(426468),s=i(54879),a=i(446938),c=i(583917),u=i(795788),l=i(465210),h=i(120896),d=i(444147);const f=new c.Z;function p(e,t){if(!(0,o.Z)(e))throw new a.Z("scene is required.");if(!(0,o.Z)(t))throw new a.Z("entityCollection is required.");t.collectionChanged.addEventListener(p.prototype._onCollectionChanged,this),this._scene=e,this._primitives=e.primitives,this._entityCollection=t,this._tilesetHash={},this._entitiesToVisualize=new n.Z,this._onCollectionChanged(t,t.values,[],[])}function m(e,t,i,n){const r=i[t.id];(0,o.Z)(r)&&(n.removeAndDestroy(r.tilesetPrimitive),delete i[t.id])}function _(e,t,i){e.readyPromise.otherwise((function(e){console.error(e),i[t.id].loadFail=!0}))}p.prototype.update=function(e){if(!(0,o.Z)(e))throw new a.Z("time is required.");const t=this._entitiesToVisualize.values,i=this._tilesetHash,n=this._primitives;for(let r=0,s=t.length;r-1;n--)m(0,e[n],t,i);return(0,s.Z)(this)},p.prototype.getBoundingSphere=function(e,t){if(!(0,o.Z)(e))throw new a.Z("entity is required.");if(!(0,o.Z)(t))throw new a.Z("result is required.");const i=this._tilesetHash[e.id];if(!(0,o.Z)(i)||i.loadFail)return h.Z.FAILED;const n=i.tilesetPrimitive;return(0,o.Z)(n)&&n.show?n.ready?(r.Z.clone(n.boundingSphere,t),h.Z.DONE):h.Z.PENDING:h.Z.FAILED},p.prototype._onCollectionChanged=function(e,t,i,n){let r,s;const a=this._entitiesToVisualize,c=this._tilesetHash,u=this._primitives;for(r=t.length-1;r>-1;r--)s=t[r],(0,o.Z)(s._tileset)&&a.set(s.id,s);for(r=n.length-1;r>-1;r--)s=n[r],(0,o.Z)(s._tileset)?a.set(s.id,s):(m(0,s,c,u),a.remove(s.id));for(r=i.length-1;r>-1;r--)s=i[r],m(0,s,c,u),a.remove(s.id)};const Z=p},393589:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(337968),r=i(545125),o=i(406144),s=i(426468),a=i(197685),c=i(528531),u=i(444147);const l=r.Z.WHITE,h=r.Z.BLACK,d=new n.Z(2,2);function f(e){e=(0,o.Z)(e,o.Z.EMPTY_OBJECT),this._definitionChanged=new a.Z,this._evenColor=void 0,this._evenColorSubscription=void 0,this._oddColor=void 0,this._oddColorSubscription=void 0,this._repeat=void 0,this._repeatSubscription=void 0,this.evenColor=e.evenColor,this.oddColor=e.oddColor,this.repeat=e.repeat}Object.defineProperties(f.prototype,{isConstant:{get:function(){return u.Z.isConstant(this._evenColor)&&u.Z.isConstant(this._oddColor)&&u.Z.isConstant(this._repeat)}},definitionChanged:{get:function(){return this._definitionChanged}},evenColor:(0,c.Z)("evenColor"),oddColor:(0,c.Z)("oddColor"),repeat:(0,c.Z)("repeat")}),f.prototype.getType=function(e){return"Checkerboard"},f.prototype.getValue=function(e,t){return(0,s.Z)(t)||(t={}),t.lightColor=u.Z.getValueOrClonedDefault(this._evenColor,e,l,t.lightColor),t.darkColor=u.Z.getValueOrClonedDefault(this._oddColor,e,h,t.darkColor),t.repeat=u.Z.getValueOrDefault(this._repeat,e,d),t},f.prototype.equals=function(e){return this===e||e instanceof f&&u.Z.equals(this._evenColor,e._evenColor)&&u.Z.equals(this._oddColor,e._oddColor)&&u.Z.equals(this._repeat,e._repeat)};const p=f},141653:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(545125),r=i(426468),o=i(197685),s=i(528531),a=i(444147);function c(e){this._definitionChanged=new o.Z,this._color=void 0,this._colorSubscription=void 0,this.color=e}Object.defineProperties(c.prototype,{isConstant:{get:function(){return a.Z.isConstant(this._color)}},definitionChanged:{get:function(){return this._definitionChanged}},color:(0,s.Z)("color")}),c.prototype.getType=function(e){return"Color"},c.prototype.getValue=function(e,t){return(0,r.Z)(t)||(t={}),t.color=a.Z.getValueOrClonedDefault(this._color,e,n.Z.WHITE,t.color),t},c.prototype.equals=function(e){return this===e||e instanceof c&&a.Z.equals(this._color,e._color)};const u=c},524458:(e,t,i)=>{"use strict";i.d(t,{Z:()=>g});var n=i(416974),r=i(426468),o=i(446938),s=i(362017),a=i(55316),c=i(63553);const u={id:void 0},l=new Array(2);function h(e){const t=e.propertyNames,i=t.length;for(let n=0;n-1;_--)l=p[_],f(0,b,A,l);for(s=i-1;s>=0;s--)for(Z=t[s],Z.collectionChanged.addEventListener(m.prototype._onCollectionChanged,e),p=Z.values,A=Z.id,_=p.length-1;_>-1;_--){l=p[_],d(e,b,A,l);let t=y.getById(l.id);(0,r.Z)(t)||(t=g.getById(l.id),(0,r.Z)(t)?h(t):(u.id=l.id,t=new a.Z(u)),y.add(t)),t.merge(l)}e._collectionsCopy=t.slice(0),g.suspendEvents(),g.removeAll();const w=y.values;for(s=0;sthis._collections.length)throw new o.Z("index must be less than or equal to the number of collections.")}i?this._collections.splice(t,0,e):(t=this._collections.length,this._collections.push(e)),p(this)},m.prototype.removeCollection=function(e){const t=this._collections.indexOf(e);return-1!==t&&(this._collections.splice(t,1),p(this),!0)},m.prototype.removeAllCollections=function(){this._collections.length=0,p(this)},m.prototype.containsCollection=function(e){return-1!==this._collections.indexOf(e)},m.prototype.contains=function(e){return this._composite.contains(e)},m.prototype.indexOfCollection=function(e){return this._collections.indexOf(e)},m.prototype.getCollection=function(e){if(!(0,r.Z)(e))throw new o.Z("index is required.","index");return this._collections[e]},m.prototype.getCollectionsLength=function(){return this._collections.length},m.prototype.raiseCollection=function(e){const t=_(this._collections,e);Z(this,t,t+1)},m.prototype.lowerCollection=function(e){const t=_(this._collections,e);Z(this,t,t-1)},m.prototype.raiseCollectionToTop=function(e){const t=_(this._collections,e);t!==this._collections.length-1&&(this._collections.splice(t,1),this._collections.push(e),p(this))},m.prototype.lowerCollectionToBottom=function(e){const t=_(this._collections,e);0!==t&&(this._collections.splice(t,1),this._collections.splice(0,0,e),p(this))},m.prototype.suspendEvents=function(){this._suspendCount++,this._composite.suspendEvents()},m.prototype.resumeEvents=function(){if(0===this._suspendCount)throw new o.Z("resumeEvents can not be called before suspendEvents.");this._suspendCount--,this._shouldRecomposite&&0===this._suspendCount&&(p(this),this._shouldRecomposite=!1),this._composite.resumeEvents()},m.prototype.computeAvailability=function(){return this._composite.computeAvailability()},m.prototype.getById=function(e){return this._composite.getById(e)},m.prototype._onCollectionChanged=function(e,t,i){const n=this._collectionsCopy,o=n.length,s=this._composite;let c,l,p,m;s.suspendEvents();const _=i.length,Z=this._eventHash,g=e.id;for(c=0;c<_;c++){const e=i[c];f(0,Z,g,e);const t=e.id;for(l=o-1;l>=0;l--)p=n[l].getById(t),(0,r.Z)(p)&&((0,r.Z)(m)||(m=s.getById(t),h(m)),m.merge(p));(0,r.Z)(m)||s.removeById(t),m=void 0}const y=t.length;for(c=0;c=0;l--)p=n[l].getById(i),(0,r.Z)(p)&&((0,r.Z)(m)||(m=s.getById(i),(0,r.Z)(m)?h(m):(u.id=i,m=new a.Z(u),s.add(m))),m.merge(p));m=void 0}s.resumeEvents()},m.prototype._onDefinitionChanged=function(e,t,i,n){const o=this._collections,s=this._composite,a=o.length,c=e.id,u=s.getById(c);let l=u[t];const h=!(0,r.Z)(l);let d=!0;for(let i=a-1;i>=0;i--){const n=o[i].getById(e.id);if((0,r.Z)(n)){const e=n[t];if((0,r.Z)(e)){if(d){if(d=!1,!(0,r.Z)(e.merge)||!(0,r.Z)(e.clone)){l=e;break}l=e.clone(l)}l.merge(e)}}}h&&-1===u.propertyNames.indexOf(t)&&u.addProperty(t),u[t]=l};const g=m},944813:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(426468),r=i(446938),o=i(197685),s=i(711656),a=i(444147);function c(){this._definitionChanged=new o.Z,this._composite=new s.Z,this._composite.definitionChanged.addEventListener(c.prototype._raiseDefinitionChanged,this)}Object.defineProperties(c.prototype,{isConstant:{get:function(){return this._composite.isConstant}},definitionChanged:{get:function(){return this._definitionChanged}},intervals:{get:function(){return this._composite._intervals}}}),c.prototype.getType=function(e){if(!(0,n.Z)(e))throw new r.Z("time is required");const t=this._composite._intervals.findDataForIntervalContainingDate(e);if((0,n.Z)(t))return t.getType(e)},c.prototype.getValue=function(e,t){if(!(0,n.Z)(e))throw new r.Z("time is required");const i=this._composite._intervals.findDataForIntervalContainingDate(e);if((0,n.Z)(i))return i.getValue(e,t)},c.prototype.equals=function(e){return this===e||e instanceof c&&this._composite.equals(e._composite,a.Z.equals)},c.prototype._raiseDefinitionChanged=function(){this._definitionChanged.raiseEvent(this)};const u=c},755058:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(406144),r=i(426468),o=i(446938),s=i(197685),a=i(656331),c=i(711656),u=i(444147);function l(e){this._referenceFrame=(0,n.Z)(e,a.Z.FIXED),this._definitionChanged=new s.Z,this._composite=new c.Z,this._composite.definitionChanged.addEventListener(l.prototype._raiseDefinitionChanged,this)}Object.defineProperties(l.prototype,{isConstant:{get:function(){return this._composite.isConstant}},definitionChanged:{get:function(){return this._definitionChanged}},intervals:{get:function(){return this._composite.intervals}},referenceFrame:{get:function(){return this._referenceFrame},set:function(e){this._referenceFrame=e}}}),l.prototype.getValue=function(e,t){return this.getValueInReferenceFrame(e,a.Z.FIXED,t)},l.prototype.getValueInReferenceFrame=function(e,t,i){if(!(0,r.Z)(e))throw new o.Z("time is required.");if(!(0,r.Z)(t))throw new o.Z("referenceFrame is required.");const n=this._composite._intervals.findDataForIntervalContainingDate(e);if((0,r.Z)(n))return n.getValueInReferenceFrame(e,t,i)},l.prototype.equals=function(e){return this===e||e instanceof l&&this._referenceFrame===e._referenceFrame&&this._composite.equals(e._composite,u.Z.equals)},l.prototype._raiseDefinitionChanged=function(){this._definitionChanged.raiseEvent(this)};const h=l},711656:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(426468),r=i(446938),o=i(197685),s=i(242100),a=i(796319),c=i(444147);function u(){this._eventHelper=new s.Z,this._definitionChanged=new o.Z,this._intervals=new a.Z,this._intervals.changedEvent.addEventListener(u.prototype._intervalsChanged,this)}Object.defineProperties(u.prototype,{isConstant:{get:function(){return this._intervals.isEmpty}},definitionChanged:{get:function(){return this._definitionChanged}},intervals:{get:function(){return this._intervals}}}),u.prototype.getValue=function(e,t){if(!(0,n.Z)(e))throw new r.Z("time is required");const i=this._intervals.findDataForIntervalContainingDate(e);if((0,n.Z)(i))return i.getValue(e,t)},u.prototype.equals=function(e){return this===e||e instanceof u&&this._intervals.equals(e._intervals,c.Z.equals)},u.prototype._intervalsChanged=function(){!function(e,t,i,r){function o(){i.raiseEvent(e)}const s=[];t.removeAll();const a=r.length;for(let e=0;e{"use strict";i.d(t,{Z:()=>h});var n=i(919382),r=i(406144),o=i(426468),s=i(446938),a=i(197685),c=i(656331),u=i(70143);function l(e,t){this._definitionChanged=new a.Z,this._value=n.Z.clone(e),this._referenceFrame=(0,r.Z)(t,c.Z.FIXED)}Object.defineProperties(l.prototype,{isConstant:{get:function(){return!(0,o.Z)(this._value)||this._referenceFrame===c.Z.FIXED}},definitionChanged:{get:function(){return this._definitionChanged}},referenceFrame:{get:function(){return this._referenceFrame}}}),l.prototype.getValue=function(e,t){return this.getValueInReferenceFrame(e,c.Z.FIXED,t)},l.prototype.setValue=function(e,t){let i=!1;n.Z.equals(this._value,e)||(i=!0,this._value=n.Z.clone(e)),(0,o.Z)(t)&&this._referenceFrame!==t&&(i=!0,this._referenceFrame=t),i&&this._definitionChanged.raiseEvent(this)},l.prototype.getValueInReferenceFrame=function(e,t,i){if(!(0,o.Z)(e))throw new s.Z("time is required.");if(!(0,o.Z)(t))throw new s.Z("referenceFrame is required.");return u.Z.convertToReferenceFrame(e,this._value,this._referenceFrame,t,i)},l.prototype.equals=function(e){return this===e||e instanceof l&&n.Z.equals(this._value,e._value)&&this._referenceFrame===e._referenceFrame};const h=l},243110:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(426468),r=i(197685);function o(e){this._value=void 0,this._hasClone=!1,this._hasEquals=!1,this._definitionChanged=new r.Z,this.setValue(e)}Object.defineProperties(o.prototype,{isConstant:{value:!0},definitionChanged:{get:function(){return this._definitionChanged}}}),o.prototype.getValue=function(e,t){return this._hasClone?this._value.clone(t):this._value},o.prototype.setValue=function(e){const t=this._value;if(t!==e){const i=(0,n.Z)(e),r=i&&"function"==typeof e.clone,o=i&&"function"==typeof e.equals;(!o||!e.equals(t))&&(this._hasClone=r,this._hasEquals=o,this._value=r?e.clone(this._value):e,this._definitionChanged.raiseEvent(this))}},o.prototype.equals=function(e){return this===e||e instanceof o&&(!this._hasEquals&&this._value===e._value||this._hasEquals&&this._value.equals(e._value))},o.prototype.valueOf=function(){return this._value},o.prototype.toString=function(){return String(this._value)};const s=o},102708:(e,t,i)=>{"use strict";i.d(t,{Z:()=>R});var n=i(140537),r=i(919382),o=i(357299),s=i(545125),a=i(182934),c=i(622548),u=i(588780),l=i(426468),h=i(446938),d=i(231432),f=i(952254),p=i(29699),m=i(81203),_=i(523501),Z=i(208613),g=i(110499),y=i(112546),b=i(578721),A=i(141653),w=i(955701),v=i(710923),T=i(585156),C=i(444147);const E=new s.Z,x=r.Z.ZERO,S=new r.Z,O=new _.Z;function I(e){this.id=e,this.vertexFormat=void 0,this.positions=void 0,this.width=void 0,this.cornerType=void 0,this.height=void 0,this.extrudedHeight=void 0,this.granularity=void 0,this.offsetAttribute=void 0}function D(e,t){T.Z.call(this,{entity:e,scene:t,geometryOptions:new I(e),geometryPropertyName:"corridor",observedPropertyNames:["availability","corridor"]}),this._onEntityPropertyChanged(e,"corridor",e.corridor,void 0)}function P(e,t,i){w.Z.call(this,e,t,i)}(0,l.Z)(Object.create)&&(D.prototype=Object.create(T.Z.prototype),D.prototype.constructor=D),D.prototype.createFillGeometryInstance=function(e){if(o.Z.defined("time",e),!this._fillEnabled)throw new h.Z("This instance does not represent a filled geometry.");const t=this._entity,i=t.isAvailable(e),n={show:new Z.Z(i&&t.isShowing&&this._showProperty.getValue(e)&&this._fillProperty.getValue(e)),distanceDisplayCondition:d.Z.fromDistanceDisplayCondition(this._distanceDisplayConditionProperty.getValue(e)),offset:void 0,color:void 0};if(this._materialProperty instanceof A.Z){let t;(0,l.Z)(this._materialProperty.color)&&(this._materialProperty.color.isConstant||i)&&(t=this._materialProperty.color.getValue(e,E)),(0,l.Z)(t)||(t=s.Z.WHITE),n.color=a.Z.fromColor(t)}return(0,l.Z)(this._options.offsetAttribute)&&(n.offset=m.Z.fromCartesian3(C.Z.getValueOrDefault(this._terrainOffsetProperty,e,x,S))),new f.Z({id:t,geometry:new c.Z(this._options),attributes:n})},D.prototype.createOutlineGeometryInstance=function(e){if(o.Z.defined("time",e),!this._outlineEnabled)throw new h.Z("This instance does not represent an outlined geometry.");const t=this._entity,i=t.isAvailable(e),n=C.Z.getValueOrDefault(this._outlineColorProperty,e,s.Z.BLACK,E),r={show:new Z.Z(i&&t.isShowing&&this._showProperty.getValue(e)&&this._showOutlineProperty.getValue(e)),color:a.Z.fromColor(n),distanceDisplayCondition:d.Z.fromDistanceDisplayCondition(this._distanceDisplayConditionProperty.getValue(e)),offset:void 0};return(0,l.Z)(this._options.offsetAttribute)&&(r.offset=m.Z.fromCartesian3(C.Z.getValueOrDefault(this._terrainOffsetProperty,e,x,S))),new f.Z({id:t,geometry:new u.Z(this._options),attributes:r})},D.prototype._computeCenter=function(e,t){const i=C.Z.getValueOrUndefined(this._entity.corridor.positions,e);if((0,l.Z)(i)&&0!==i.length)return r.Z.clone(i[Math.floor(i.length/2)],t)},D.prototype._isHidden=function(e,t){return!(0,l.Z)(t.positions)||!(0,l.Z)(t.width)||v.Z.prototype._isHidden.call(this,e,t)},D.prototype._isDynamic=function(e,t){return!t.positions.isConstant||!C.Z.isConstant(t.height)||!C.Z.isConstant(t.extrudedHeight)||!C.Z.isConstant(t.granularity)||!C.Z.isConstant(t.width)||!C.Z.isConstant(t.outlineWidth)||!C.Z.isConstant(t.cornerType)||!C.Z.isConstant(t.zIndex)||this._onTerrain&&!C.Z.isConstant(this._materialProperty)&&!(this._materialProperty instanceof A.Z)},D.prototype._setStaticOptions=function(e,t){let i=C.Z.getValueOrUndefined(t.height,p.Z.MINIMUM_VALUE);const r=C.Z.getValueOrDefault(t.heightReference,p.Z.MINIMUM_VALUE,g.Z.NONE);let o=C.Z.getValueOrUndefined(t.extrudedHeight,p.Z.MINIMUM_VALUE);const s=C.Z.getValueOrDefault(t.extrudedHeightReference,p.Z.MINIMUM_VALUE,g.Z.NONE);(0,l.Z)(o)&&!(0,l.Z)(i)&&(i=0);const a=this._options;a.vertexFormat=this._materialProperty instanceof A.Z?b.Z.VERTEX_FORMAT:y.Z.MaterialSupport.TEXTURED.vertexFormat,a.positions=t.positions.getValue(p.Z.MINIMUM_VALUE,a.positions),a.width=t.width.getValue(p.Z.MINIMUM_VALUE),a.granularity=C.Z.getValueOrUndefined(t.granularity,p.Z.MINIMUM_VALUE),a.cornerType=C.Z.getValueOrUndefined(t.cornerType,p.Z.MINIMUM_VALUE),a.offsetAttribute=T.Z.computeGeometryOffsetAttribute(i,r,o,s),a.height=T.Z.getGeometryHeight(i,r),o=T.Z.getGeometryExtrudedHeight(o,s),o===T.Z.CLAMP_TO_GROUND&&(o=n.Z.getMinimumMaximumHeights(c.Z.computeRectangle(a,O)).minimumTerrainHeight),a.extrudedHeight=o},D.DynamicGeometryUpdater=P,(0,l.Z)(Object.create)&&(P.prototype=Object.create(w.Z.prototype),P.prototype.constructor=P),P.prototype._isHidden=function(e,t,i){const n=this._options;return!(0,l.Z)(n.positions)||!(0,l.Z)(n.width)||w.Z.prototype._isHidden.call(this,e,t,i)},P.prototype._setOptions=function(e,t,i){const r=this._options;let o=C.Z.getValueOrUndefined(t.height,i);const s=C.Z.getValueOrDefault(t.heightReference,i,g.Z.NONE);let a=C.Z.getValueOrUndefined(t.extrudedHeight,i);const u=C.Z.getValueOrDefault(t.extrudedHeightReference,i,g.Z.NONE);(0,l.Z)(a)&&!(0,l.Z)(o)&&(o=0),r.positions=C.Z.getValueOrUndefined(t.positions,i),r.width=C.Z.getValueOrUndefined(t.width,i),r.granularity=C.Z.getValueOrUndefined(t.granularity,i),r.cornerType=C.Z.getValueOrUndefined(t.cornerType,i),r.offsetAttribute=T.Z.computeGeometryOffsetAttribute(o,s,a,u),r.height=T.Z.getGeometryHeight(o,s),a=T.Z.getGeometryExtrudedHeight(a,u),a===T.Z.CLAMP_TO_GROUND&&(a=n.Z.getMinimumMaximumHeights(c.Z.computeRectangle(r,O)).minimumTerrainHeight),r.extrudedHeight=a};const R=D},703018:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(406144),r=i(426468),o=i(446938),s=i(197685),a=i(489351),c=i(528531);function u(e){this._definitionChanged=new s.Z,this._show=void 0,this._showSubscription=void 0,this._positions=void 0,this._positionsSubscription=void 0,this._width=void 0,this._widthSubscription=void 0,this._height=void 0,this._heightSubscription=void 0,this._heightReference=void 0,this._heightReferenceSubscription=void 0,this._extrudedHeight=void 0,this._extrudedHeightSubscription=void 0,this._extrudedHeightReference=void 0,this._extrudedHeightReferenceSubscription=void 0,this._cornerType=void 0,this._cornerTypeSubscription=void 0,this._granularity=void 0,this._granularitySubscription=void 0,this._fill=void 0,this._fillSubscription=void 0,this._material=void 0,this._materialSubscription=void 0,this._outline=void 0,this._outlineSubscription=void 0,this._outlineColor=void 0,this._outlineColorSubscription=void 0,this._outlineWidth=void 0,this._outlineWidthSubscription=void 0,this._shadows=void 0,this._shadowsSubscription=void 0,this._distanceDisplayCondition=void 0,this._distanceDisplayConditionSubscription=void 0,this._classificationType=void 0,this._classificationTypeSubscription=void 0,this._zIndex=void 0,this._zIndexSubscription=void 0,this.merge((0,n.Z)(e,n.Z.EMPTY_OBJECT))}Object.defineProperties(u.prototype,{definitionChanged:{get:function(){return this._definitionChanged}},show:(0,c.Z)("show"),positions:(0,c.Z)("positions"),width:(0,c.Z)("width"),height:(0,c.Z)("height"),heightReference:(0,c.Z)("heightReference"),extrudedHeight:(0,c.Z)("extrudedHeight"),extrudedHeightReference:(0,c.Z)("extrudedHeightReference"),cornerType:(0,c.Z)("cornerType"),granularity:(0,c.Z)("granularity"),fill:(0,c.Z)("fill"),material:(0,a.Z)("material"),outline:(0,c.Z)("outline"),outlineColor:(0,c.Z)("outlineColor"),outlineWidth:(0,c.Z)("outlineWidth"),shadows:(0,c.Z)("shadows"),distanceDisplayCondition:(0,c.Z)("distanceDisplayCondition"),classificationType:(0,c.Z)("classificationType"),zIndex:(0,c.Z)("zIndex")}),u.prototype.clone=function(e){return(0,r.Z)(e)?(e.show=this.show,e.positions=this.positions,e.width=this.width,e.height=this.height,e.heightReference=this.heightReference,e.extrudedHeight=this.extrudedHeight,e.extrudedHeightReference=this.extrudedHeightReference,e.cornerType=this.cornerType,e.granularity=this.granularity,e.fill=this.fill,e.material=this.material,e.outline=this.outline,e.outlineColor=this.outlineColor,e.outlineWidth=this.outlineWidth,e.shadows=this.shadows,e.distanceDisplayCondition=this.distanceDisplayCondition,e.classificationType=this.classificationType,e.zIndex=this.zIndex,e):new u(this)},u.prototype.merge=function(e){if(!(0,r.Z)(e))throw new o.Z("source is required.");this.show=(0,n.Z)(this.show,e.show),this.positions=(0,n.Z)(this.positions,e.positions),this.width=(0,n.Z)(this.width,e.width),this.height=(0,n.Z)(this.height,e.height),this.heightReference=(0,n.Z)(this.heightReference,e.heightReference),this.extrudedHeight=(0,n.Z)(this.extrudedHeight,e.extrudedHeight),this.extrudedHeightReference=(0,n.Z)(this.extrudedHeightReference,e.extrudedHeightReference),this.cornerType=(0,n.Z)(this.cornerType,e.cornerType),this.granularity=(0,n.Z)(this.granularity,e.granularity),this.fill=(0,n.Z)(this.fill,e.fill),this.material=(0,n.Z)(this.material,e.material),this.outline=(0,n.Z)(this.outline,e.outline),this.outlineColor=(0,n.Z)(this.outlineColor,e.outlineColor),this.outlineWidth=(0,n.Z)(this.outlineWidth,e.outlineWidth),this.shadows=(0,n.Z)(this.shadows,e.shadows),this.distanceDisplayCondition=(0,n.Z)(this.distanceDisplayCondition,e.distanceDisplayCondition),this.classificationType=(0,n.Z)(this.classificationType,e.classificationType),this.zIndex=(0,n.Z)(this.zIndex,e.zIndex)};const l=u},859751:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(426468),r=i(446938),o=i(197685),s=i(343387),a=i(783781),c=i(63553);function u(e){this._name=e,this._clock=void 0,this._changed=new o.Z,this._error=new o.Z,this._isLoading=!1,this._loading=new o.Z,this._entityCollection=new c.Z(this),this._entityCluster=new a.Z}Object.defineProperties(u.prototype,{name:{get:function(){return this._name},set:function(e){this._name!==e&&(this._name=e,this._changed.raiseEvent(this))}},clock:{get:function(){return this._clock},set:function(e){this._clock!==e&&(this._clock=e,this._changed.raiseEvent(this))}},entities:{get:function(){return this._entityCollection}},isLoading:{get:function(){return this._isLoading},set:function(e){s.Z.setLoading(this,e)}},changedEvent:{get:function(){return this._changed}},errorEvent:{get:function(){return this._error}},loadingEvent:{get:function(){return this._loading}},show:{get:function(){return this._entityCollection.show},set:function(e){this._entityCollection.show=e}},clustering:{get:function(){return this._entityCluster},set:function(e){if(!(0,n.Z)(e))throw new r.Z("value must be defined.");this._entityCluster=e}}}),u.prototype.update=function(e){return!0};const l=u},426376:(e,t,i)=>{"use strict";i.d(t,{Z:()=>P});var n=i(919382),r=i(357299),o=i(545125),s=i(182934),a=i(269570),c=i(211884),u=i(426468),l=i(446938),h=i(231432),d=i(952254),f=i(215925),p=i(29699),m=i(81203),_=i(208613),Z=i(110499),g=i(112546),y=i(578721),b=i(141653),A=i(955701),w=i(710923),v=i(565544),T=i(444147);const C=n.Z.ZERO,E=new n.Z,x=new n.Z,S=new o.Z;function O(e){this.id=e,this.vertexFormat=void 0,this.length=void 0,this.topRadius=void 0,this.bottomRadius=void 0,this.slices=void 0,this.numberOfVerticalLines=void 0,this.offsetAttribute=void 0}function I(e,t){w.Z.call(this,{entity:e,scene:t,geometryOptions:new O(e),geometryPropertyName:"cylinder",observedPropertyNames:["availability","position","orientation","cylinder"]}),this._onEntityPropertyChanged(e,"cylinder",e.cylinder,void 0)}function D(e,t,i){A.Z.call(this,e,t,i)}(0,u.Z)(Object.create)&&(I.prototype=Object.create(w.Z.prototype),I.prototype.constructor=I),Object.defineProperties(I.prototype,{terrainOffsetProperty:{get:function(){return this._terrainOffsetProperty}}}),I.prototype.createFillGeometryInstance=function(e){if(r.Z.defined("time",e),!this._fillEnabled)throw new l.Z("This instance does not represent a filled geometry.");const t=this._entity,i=t.isAvailable(e),n=new _.Z(i&&t.isShowing&&this._showProperty.getValue(e)&&this._fillProperty.getValue(e)),c=this._distanceDisplayConditionProperty.getValue(e),f={show:n,distanceDisplayCondition:h.Z.fromDistanceDisplayCondition(c),color:void 0,offset:void 0};if(this._materialProperty instanceof b.Z){let t;(0,u.Z)(this._materialProperty.color)&&(this._materialProperty.color.isConstant||i)&&(t=this._materialProperty.color.getValue(e,S)),(0,u.Z)(t)||(t=o.Z.WHITE),f.color=s.Z.fromColor(t)}return(0,u.Z)(this._options.offsetAttribute)&&(f.offset=m.Z.fromCartesian3(T.Z.getValueOrDefault(this._terrainOffsetProperty,e,C,E))),new d.Z({id:t,geometry:new a.Z(this._options),modelMatrix:t.computeModelMatrixForHeightReference(e,t.cylinder.heightReference,.5*this._options.length,this._scene.mapProjection.ellipsoid),attributes:f})},I.prototype.createOutlineGeometryInstance=function(e){if(r.Z.defined("time",e),!this._outlineEnabled)throw new l.Z("This instance does not represent an outlined geometry.");const t=this._entity,i=t.isAvailable(e),n=T.Z.getValueOrDefault(this._outlineColorProperty,e,o.Z.BLACK,S),a=this._distanceDisplayConditionProperty.getValue(e),f={show:new _.Z(i&&t.isShowing&&this._showProperty.getValue(e)&&this._showOutlineProperty.getValue(e)),color:s.Z.fromColor(n),distanceDisplayCondition:h.Z.fromDistanceDisplayCondition(a),offset:void 0};return(0,u.Z)(this._options.offsetAttribute)&&(f.offset=m.Z.fromCartesian3(T.Z.getValueOrDefault(this._terrainOffsetProperty,e,C,E))),new d.Z({id:t,geometry:new c.Z(this._options),modelMatrix:t.computeModelMatrixForHeightReference(e,t.cylinder.heightReference,.5*this._options.length,this._scene.mapProjection.ellipsoid),attributes:f})},I.prototype._computeCenter=function(e,t){return T.Z.getValueOrUndefined(this._entity.position,e,t)},I.prototype._isHidden=function(e,t){return!(0,u.Z)(e.position)||!(0,u.Z)(t.length)||!(0,u.Z)(t.topRadius)||!(0,u.Z)(t.bottomRadius)||w.Z.prototype._isHidden.call(this,e,t)},I.prototype._isDynamic=function(e,t){return!(e.position.isConstant&&T.Z.isConstant(e.orientation)&&t.length.isConstant&&t.topRadius.isConstant&&t.bottomRadius.isConstant&&T.Z.isConstant(t.slices)&&T.Z.isConstant(t.outlineWidth)&&T.Z.isConstant(t.numberOfVerticalLines))},I.prototype._setStaticOptions=function(e,t){const i=T.Z.getValueOrDefault(t.heightReference,p.Z.MINIMUM_VALUE,Z.Z.NONE),n=this._options;n.vertexFormat=this._materialProperty instanceof b.Z?y.Z.VERTEX_FORMAT:g.Z.MaterialSupport.TEXTURED.vertexFormat,n.length=t.length.getValue(p.Z.MINIMUM_VALUE),n.topRadius=t.topRadius.getValue(p.Z.MINIMUM_VALUE),n.bottomRadius=t.bottomRadius.getValue(p.Z.MINIMUM_VALUE),n.slices=T.Z.getValueOrUndefined(t.slices,p.Z.MINIMUM_VALUE),n.numberOfVerticalLines=T.Z.getValueOrUndefined(t.numberOfVerticalLines,p.Z.MINIMUM_VALUE),n.offsetAttribute=i!==Z.Z.NONE?f.Z.ALL:void 0},I.prototype._onEntityPropertyChanged=v.Z,I.DynamicGeometryUpdater=D,(0,u.Z)(Object.create)&&(D.prototype=Object.create(A.Z.prototype),D.prototype.constructor=D),D.prototype._isHidden=function(e,t,i){const n=this._options,r=T.Z.getValueOrUndefined(e.position,i,x);return!(0,u.Z)(r)||!(0,u.Z)(n.length)||!(0,u.Z)(n.topRadius)||!(0,u.Z)(n.bottomRadius)||A.Z.prototype._isHidden.call(this,e,t,i)},D.prototype._setOptions=function(e,t,i){const n=T.Z.getValueOrDefault(t.heightReference,i,Z.Z.NONE),r=this._options;r.length=T.Z.getValueOrUndefined(t.length,i),r.topRadius=T.Z.getValueOrUndefined(t.topRadius,i),r.bottomRadius=T.Z.getValueOrUndefined(t.bottomRadius,i),r.slices=T.Z.getValueOrUndefined(t.slices,i),r.numberOfVerticalLines=T.Z.getValueOrUndefined(t.numberOfVerticalLines,i),r.offsetAttribute=n!==Z.Z.NONE?f.Z.ALL:void 0};const P=I},183839:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(406144),r=i(426468),o=i(446938),s=i(197685),a=i(489351),c=i(528531);function u(e){this._definitionChanged=new s.Z,this._show=void 0,this._showSubscription=void 0,this._length=void 0,this._lengthSubscription=void 0,this._topRadius=void 0,this._topRadiusSubscription=void 0,this._bottomRadius=void 0,this._bottomRadiusSubscription=void 0,this._heightReference=void 0,this._heightReferenceSubscription=void 0,this._fill=void 0,this._fillSubscription=void 0,this._material=void 0,this._materialSubscription=void 0,this._outline=void 0,this._outlineSubscription=void 0,this._outlineColor=void 0,this._outlineColorSubscription=void 0,this._outlineWidth=void 0,this._outlineWidthSubscription=void 0,this._numberOfVerticalLines=void 0,this._numberOfVerticalLinesSubscription=void 0,this._slices=void 0,this._slicesSubscription=void 0,this._shadows=void 0,this._shadowsSubscription=void 0,this._distanceDisplayCondition=void 0,this._distanceDisplayConditionSubscription=void 0,this.merge((0,n.Z)(e,n.Z.EMPTY_OBJECT))}Object.defineProperties(u.prototype,{definitionChanged:{get:function(){return this._definitionChanged}},show:(0,c.Z)("show"),length:(0,c.Z)("length"),topRadius:(0,c.Z)("topRadius"),bottomRadius:(0,c.Z)("bottomRadius"),heightReference:(0,c.Z)("heightReference"),fill:(0,c.Z)("fill"),material:(0,a.Z)("material"),outline:(0,c.Z)("outline"),outlineColor:(0,c.Z)("outlineColor"),outlineWidth:(0,c.Z)("outlineWidth"),numberOfVerticalLines:(0,c.Z)("numberOfVerticalLines"),slices:(0,c.Z)("slices"),shadows:(0,c.Z)("shadows"),distanceDisplayCondition:(0,c.Z)("distanceDisplayCondition")}),u.prototype.clone=function(e){return(0,r.Z)(e)?(e.show=this.show,e.length=this.length,e.topRadius=this.topRadius,e.bottomRadius=this.bottomRadius,e.heightReference=this.heightReference,e.fill=this.fill,e.material=this.material,e.outline=this.outline,e.outlineColor=this.outlineColor,e.outlineWidth=this.outlineWidth,e.numberOfVerticalLines=this.numberOfVerticalLines,e.slices=this.slices,e.shadows=this.shadows,e.distanceDisplayCondition=this.distanceDisplayCondition,e):new u(this)},u.prototype.merge=function(e){if(!(0,r.Z)(e))throw new o.Z("source is required.");this.show=(0,n.Z)(this.show,e.show),this.length=(0,n.Z)(this.length,e.length),this.topRadius=(0,n.Z)(this.topRadius,e.topRadius),this.bottomRadius=(0,n.Z)(this.bottomRadius,e.bottomRadius),this.heightReference=(0,n.Z)(this.heightReference,e.heightReference),this.fill=(0,n.Z)(this.fill,e.fill),this.material=(0,n.Z)(this.material,e.material),this.outline=(0,n.Z)(this.outline,e.outline),this.outlineColor=(0,n.Z)(this.outlineColor,e.outlineColor),this.outlineWidth=(0,n.Z)(this.outlineWidth,e.outlineWidth),this.numberOfVerticalLines=(0,n.Z)(this.numberOfVerticalLines,e.numberOfVerticalLines),this.slices=(0,n.Z)(this.slices,e.slices),this.shadows=(0,n.Z)(this.shadows,e.shadows),this.distanceDisplayCondition=(0,n.Z)(this.distanceDisplayCondition,e.distanceDisplayCondition)};const l=u},744402:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Mt});var n=i(726307),r=i(152124),o=i(337968),s=i(919382),a=i(698907),c=i(449745),u=i(27210),l=i(545125),h=i(422956),d=i(846748),f=i(416974),p=i(406144),m=i(426468),_=i(446938),Z=i(744497),g=i(253316),y=i(197685),b=i(655633),A=i(812655),w=i(492581),v=i(29699),T=i(40080),C=i(325463),E=i(751432),x=i(362017),S=i(530109),O=i(943418),I=i(129782),D=i(523501),P=i(656331),R=i(795788),B=i(50128),M=i(972252),L=i(446680),N=i(796319),F=i(576049),k=i(567485),U=i(110499),V=i(121015),z=i(234320),H=i(556198),G=i(825497),q=i(111840),j=i(527758),W=i(552759),K=i(317814),Y=i(88934),X=i(393589),J=i(141653),Q=i(944813),$=i(755058),ee=i(711656),te=i(408335),ie=i(243110),ne=i(703018),re=i(183839),oe=i(343387),se=i(293392),ae=i(146352),ce=i(817652),ue=i(783781),le=i(63553),he=i(488024),de=i(620392),fe=i(381544),pe=i(822638),me=i(299169),_e=i(35811),Ze=i(717178),ge=i(563367),ye=i(682448),be=i(921279),Ae=i(179078),we=i(450457),ve=i(673162),Te=i(705682),Ce=i(395948),Ee=i(444147),xe=i(795729),Se=i(339637),Oe=i(511121),Ie=i(685596),De=i(387570),Pe=i(617899),Re=i(404420),Be=i(125781),Me=i(885144),Le=i(95355),Ne=i(280297),Fe=i(466668),ke=i(655272),Ue=i(937157),Ve=i(183938);function ze(){}let He;function Ge(e,t){return"#"===t[0]&&(t=He+t),Ie.Z.fromString(e,t)}function qe(e,t,i){if((0,m.Z)(i.reference))return Ge(t,i.reference);if((0,m.Z)(i.velocityReference)){const n=Ge(t,i.velocityReference);switch(e){case s.Z:case ze:return new ke.Z(n,e===ze);case I.Z:return new Fe.Z(n)}}throw new B.Z(JSON.stringify(i)+" is not valid CZML.")}ze.packedLength=s.Z.packedLength,ze.unpack=s.Z.unpack,ze.pack=s.Z.pack;const je=new s.Z,We=new M.Z,Ke=new a.Z,Ye=new L.Z,Xe=new I.Z;function Je(e,t){const i=(0,p.Z)(e.uri,e);return(0,m.Z)(t)?t.getDerivedResource({url:i}):R.Z.createIfNeeded(i)}function Qe(e){const t=e.cartesian;if((0,m.Z)(t))return t;const i=e.cartesianVelocity;if((0,m.Z)(i))return i;const n=e.unitCartesian;if((0,m.Z)(n))return n;const r=e.unitSpherical;if((0,m.Z)(r))return function(e){const t=e.length;if(We.magnitude=1,2===t)return We.clock=e[0],We.cone=e[1],s.Z.fromSpherical(We,je),[je.x,je.y,je.z];const i=new Array(t/3*4);for(let n=0,r=0;nf&&e!==Object}const C="function"==typeof e.unpack&&e!==De.Z;if(!w&&!A)return void(t[i]=b?new ie.Z(C?e.unpack(_,0):_):qe(e,d,a));let E,O=t[i];const P=a.epoch;if((0,m.Z)(P)&&(E=T.Z.fromIso8601(P)),w&&!A)return O instanceof Re.Z||(t[i]=O=new Re.Z(e)),O.addSamplesPackedArray(_,E),void nt(a,O);let R;if(!w&&A)return y=y.clone(),y.data=b?C?e.unpack(_,0):_:qe(e,d,a),(0,m.Z)(O)||(t[i]=O=b?new Ne.Z:new ee.Z),void(b&&O instanceof Ne.Z?O.intervals.addInterval(y):O instanceof ee.Z?(b&&(y.data=new ie.Z(y.data)),O.intervals.addInterval(y)):(t[i]=O=at(O),b&&(y.data=new ie.Z(y.data)),O.intervals.addInterval(y)));(0,m.Z)(O)||(t[i]=O=new ee.Z),O instanceof ee.Z||(t[i]=O=at(O));const M=O.intervals;R=M.findInterval(y),(0,m.Z)(R)&&R.data instanceof Re.Z||(R=y.clone(),R.data=new Re.Z(e),M.addInterval(R)),R.data.addSamplesPackedArray(_,E),nt(a,R.data)}function lt(e,t){if(e instanceof Re.Z)e.removeSamples(t);else if(e instanceof Ne.Z)e.intervals.removeInterval(t);else if(e instanceof ee.Z){const i=e.intervals;for(let e=0;eu),!Z&&!f)return void(e[t]=d?new te.Z(s.Z.unpack(l),_):Ge(o,i.reference));let g,y=e[t];const b=i.epoch;if((0,m.Z)(b)&&(g=T.Z.fromIso8601(b)),Z&&!f)return y instanceof Pe.Z&&(!(0,m.Z)(_)||y.referenceFrame===_)||(e[t]=y=new Pe.Z(_,c)),y.addSamplesPackedArray(l,g),void nt(i,y);let A;if(!Z&&f)return a=a.clone(),a.data=d?s.Z.unpack(l):Ge(o,i.reference),(0,m.Z)(y)||(y=d?new Le.Z(_):new $.Z(_),e[t]=y),void(d&&y instanceof Le.Z&&(0,m.Z)(_)&&y.referenceFrame===_?y.intervals.addInterval(a):y instanceof $.Z?(d&&(a.data=new te.Z(a.data,_)),y.intervals.addInterval(a)):(e[t]=y=ct(y),d&&(a.data=new te.Z(a.data,_)),y.intervals.addInterval(a)));(0,m.Z)(y)?y instanceof $.Z||(e[t]=y=ct(y)):e[t]=y=new $.Z(_);const w=y.intervals;A=w.findInterval(a),(0,m.Z)(A)&&A.data instanceof Pe.Z&&(!(0,m.Z)(_)||A.data.referenceFrame===_)||(A=a.clone(),A.data=new Pe.Z(_,c),w.addInterval(A)),A.data.addSamplesPackedArray(l,g),nt(i,A.data)}function ft(e,t){if(e instanceof Pe.Z)e.removeSamples(t);else if(e instanceof Le.Z)e.intervals.removeInterval(t);else if(e instanceof $.Z){const i=e.intervals;for(let e=0;e. version format.");const n=t._documentPacket;(0,m.Z)(e.name)&&(n.name=e.name);const r=e.clock;if((0,m.Z)(r)){const e=n.clock;(0,m.Z)(e)?(e.interval=(0,p.Z)(r.interval,e.interval),e.currentTime=(0,p.Z)(r.currentTime,e.currentTime),e.range=(0,p.Z)(r.range,e.range),e.step=(0,p.Z)(r.step,e.step),e.multiplier=(0,p.Z)(r.multiplier,e.multiplier)):n.clock={interval:r.interval,currentTime:r.currentTime,range:r.range,step:r.step,multiplier:r.multiplier}}}(e,r);else{const r=t.getOrCreateEntity(o),s=e.parent;(0,m.Z)(s)&&(r.parent=t.getOrCreateEntity(s));for(let o=i.length-1;o>-1;o--)i[o](r,e,t,n)}He=void 0}function Pt(e,t,i,n){if(!(0,m.Z)(t))throw new _.Z("czml is required.");let r=t,o=(i=(0,p.Z)(i,p.Z.EMPTY_OBJECT)).sourceUri,s=i.credit;if("string"==typeof s&&(s=new d.Z(s)),e._credit=s,"string"==typeof t||t instanceof R.Z){r=(t=R.Z.createIfNeeded(t)).fetchJson(),o=(0,p.Z)(o,t.clone());const i=e._resourceCredits,n=t.credits;if((0,m.Z)(n)){const e=n.length;for(let t=0;t{"use strict";i.d(t,{Z:()=>o});var n=i(446938);function r(){n.Z.throwInstantiationError()}Object.defineProperties(r.prototype,{name:{get:n.Z.throwInstantiationError},clock:{get:n.Z.throwInstantiationError},entities:{get:n.Z.throwInstantiationError},isLoading:{get:n.Z.throwInstantiationError},changedEvent:{get:n.Z.throwInstantiationError},errorEvent:{get:n.Z.throwInstantiationError},loadingEvent:{get:n.Z.throwInstantiationError},show:{get:n.Z.throwInstantiationError},clustering:{get:n.Z.throwInstantiationError}}),r.prototype.update=function(e){n.Z.throwInstantiationError()},r.setLoading=function(e,t){e._isLoading!==t&&(t?e._entityCollection.suspendEvents():e._entityCollection.resumeEvents(),e._isLoading=t,e._loading.raiseEvent(e,t))};const o=r},293392:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(322380),r=i(406144),o=i(426468),s=i(446938),a=i(197685),c=i(40080),u=i(852376);function l(){this._definitionChanged=new a.Z,this._startTime=void 0,this._stopTime=void 0,this._currentTime=void 0,this._clockRange=void 0,this._clockStep=void 0,this._multiplier=void 0}Object.defineProperties(l.prototype,{definitionChanged:{get:function(){return this._definitionChanged}},startTime:(0,u.Z)("startTime"),stopTime:(0,u.Z)("stopTime"),currentTime:(0,u.Z)("currentTime"),clockRange:(0,u.Z)("clockRange"),clockStep:(0,u.Z)("clockStep"),multiplier:(0,u.Z)("multiplier")}),l.prototype.clone=function(e){return(0,o.Z)(e)||(e=new l),e.startTime=this.startTime,e.stopTime=this.stopTime,e.currentTime=this.currentTime,e.clockRange=this.clockRange,e.clockStep=this.clockStep,e.multiplier=this.multiplier,e},l.prototype.equals=function(e){return this===e||(0,o.Z)(e)&&c.Z.equals(this.startTime,e.startTime)&&c.Z.equals(this.stopTime,e.stopTime)&&c.Z.equals(this.currentTime,e.currentTime)&&this.clockRange===e.clockRange&&this.clockStep===e.clockStep&&this.multiplier===e.multiplier},l.prototype.merge=function(e){if(!(0,o.Z)(e))throw new s.Z("source is required.");this.startTime=(0,r.Z)(this.startTime,e.startTime),this.stopTime=(0,r.Z)(this.stopTime,e.stopTime),this.currentTime=(0,r.Z)(this.currentTime,e.currentTime),this.clockRange=(0,r.Z)(this.clockRange,e.clockRange),this.clockStep=(0,r.Z)(this.clockStep,e.clockStep),this.multiplier=(0,r.Z)(this.multiplier,e.multiplier)},l.prototype.getValue=function(e){return(0,o.Z)(e)||(e=new n.Z),e.startTime=(0,r.Z)(this.startTime,e.startTime),e.stopTime=(0,r.Z)(this.stopTime,e.stopTime),e.currentTime=(0,r.Z)(this.currentTime,e.currentTime),e.clockRange=(0,r.Z)(this.clockRange,e.clockRange),e.multiplier=(0,r.Z)(this.multiplier,e.multiplier),e.clockStep=(0,r.Z)(this.clockStep,e.clockStep),e};const h=l},83417:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});var n=i(406144),r=i(426468),o=i(54879),s=i(446938),a=i(197685),c=i(362017),u=i(527758);function l(){this._dataSources=[],this._dataSourceAdded=new a.Z,this._dataSourceRemoved=new a.Z,this._dataSourceMoved=new a.Z}function h(e,t){if(!(0,r.Z)(t))throw new s.Z("dataSource is required.");const i=e.indexOf(t);if(-1===i)throw new s.Z("dataSource is not in this collection.");return i}function d(e,t,i){const n=e._dataSources,r=n.length-1;if((t=c.Z.clamp(t,0,r))===(i=c.Z.clamp(i,0,r)))return;const o=n[t];n[t]=n[i],n[i]=o,e.dataSourceMoved.raiseEvent(o,i,t)}Object.defineProperties(l.prototype,{length:{get:function(){return this._dataSources.length}},dataSourceAdded:{get:function(){return this._dataSourceAdded}},dataSourceRemoved:{get:function(){return this._dataSourceRemoved}},dataSourceMoved:{get:function(){return this._dataSourceMoved}}}),l.prototype.add=function(e){if(!(0,r.Z)(e))throw new s.Z("dataSource is required.");const t=this,i=this._dataSources;return(0,u.Z)(e,(function(e){return i===t._dataSources&&(t._dataSources.push(e),t._dataSourceAdded.raiseEvent(t,e)),e}))},l.prototype.remove=function(e,t){t=(0,n.Z)(t,!1);const i=this._dataSources.indexOf(e);return-1!==i&&(this._dataSources.splice(i,1),this._dataSourceRemoved.raiseEvent(this,e),t&&"function"==typeof e.destroy&&e.destroy(),!0)},l.prototype.removeAll=function(e){e=(0,n.Z)(e,!1);const t=this._dataSources;for(let i=0,n=t.length;i{"use strict";i.d(t,{Z:()=>x});var n=i(140537),r=i(360791),o=i(357299),s=i(406144),a=i(426468),c=i(54879),u=i(242100),l=i(284283),h=i(975023),d=i(846888),f=i(417067),p=i(941878),m=i(120896),_=i(859751),Z=i(21525),g=i(784482),y=i(123082),b=i(765175),A=i(466853),w=i(387666),v=i(675218);function T(e){o.Z.typeOf.object("options",e),o.Z.typeOf.object("options.scene",e.scene),o.Z.typeOf.object("options.dataSourceCollection",e.dataSourceCollection),h.Z.initializeTerrainHeights(),l.Z.initializeTerrainHeights();const t=e.scene,i=e.dataSourceCollection;this._eventHelper=new u.Z,this._eventHelper.add(i.dataSourceAdded,this._onDataSourceAdded,this),this._eventHelper.add(i.dataSourceRemoved,this._onDataSourceRemoved,this),this._eventHelper.add(i.dataSourceMoved,this._onDataSourceMoved,this),this._eventHelper.add(t.postRender,this._postRender,this),this._dataSourceCollection=i,this._scene=t,this._visualizersCallback=(0,s.Z)(e.visualizersCallback,T.defaultVisualizersCallback);let n=!1;const r=new f.Z,a=new f.Z;i.length>0&&(t.primitives.add(r),t.groundPrimitives.add(a),n=!0),this._primitives=r,this._groundPrimitives=a;for(let e=0,t=i.length;e{"use strict";i.d(t,{Z:()=>a});var n=i(878438),r=i(426468),o=i(120896);function s(e,t){this._primitives=e,this._orderedGroundPrimitives=t,this._dynamicUpdaters=new n.Z}s.prototype.add=function(e,t){this._dynamicUpdaters.set(t.id,t.createDynamicUpdater(this._primitives,this._orderedGroundPrimitives))},s.prototype.remove=function(e){const t=e.id,i=this._dynamicUpdaters.get(t);(0,r.Z)(i)&&(this._dynamicUpdaters.remove(t),i.destroy())},s.prototype.update=function(e){const t=this._dynamicUpdaters.values;for(let i=0,n=t.length;i{"use strict";i.d(t,{Z:()=>Z});var n=i(360791),r=i(357299),o=i(426468),s=i(54879),a=i(446938),c=i(975023),u=i(112546),l=i(578721),h=i(939800),d=i(120896),f=i(141653),p=i(332315),m=i(444147);function _(e,t,i){r.Z.defined("geometryUpdater",e),r.Z.defined("primitives",t),r.Z.defined("orderedGroundPrimitives",i),this._primitives=t,this._orderedGroundPrimitives=i,this._primitive=void 0,this._outlinePrimitive=void 0,this._geometryUpdater=e,this._options=e._options,this._entity=e._entity,this._material=void 0}_.prototype._isHidden=function(e,t,i){return!e.isShowing||!e.isAvailable(i)||!m.Z.getValueOrDefault(t.show,i,!0)},_.prototype._setOptions=a.Z.throwInstantiationError,_.prototype.update=function(e){r.Z.defined("time",e);const t=this._geometryUpdater,i=t._onTerrain,n=this._primitives,s=this._orderedGroundPrimitives;i?s.remove(this._primitive):(n.removeAndDestroy(this._primitive),n.removeAndDestroy(this._outlinePrimitive),this._outlinePrimitive=void 0),this._primitive=void 0;const a=this._entity,d=a[this._geometryUpdater._geometryPropertyName];if(this._setOptions(a,d,e),this._isHidden(a,d,e))return;const _=this._geometryUpdater.shadowsProperty.getValue(e),Z=this._options;if(!(0,o.Z)(d.fill)||d.fill.getValue(e)){const r=t.fillMaterialProperty,o=r instanceof f.Z;let a;const d=t._getIsClosed(Z);if(o)a=new l.Z({closed:d,flat:i&&!t._supportsMaterialsforEntitiesOnTerrain});else{const t=p.Z.getValue(e,r,this._material);this._material=t,a=new u.Z({material:t,translucent:t.isTranslucent(),closed:d})}if(i)Z.vertexFormat=l.Z.VERTEX_FORMAT,this._primitive=s.add(new c.Z({geometryInstances:this._geometryUpdater.createFillGeometryInstance(e),appearance:a,asynchronous:!1,shadows:_,classificationType:this._geometryUpdater.classificationTypeProperty.getValue(e)}),m.Z.getValueOrUndefined(this._geometryUpdater.zIndex,e));else{Z.vertexFormat=a.vertexFormat;const t=this._geometryUpdater.createFillGeometryInstance(e);o&&(a.translucent=255!==t.attributes.color.value[3]),this._primitive=n.add(new h.Z({geometryInstances:t,appearance:a,asynchronous:!1,shadows:_}))}}if(!i&&(0,o.Z)(d.outline)&&d.outline.getValue(e)){const i=this._geometryUpdater.createOutlineGeometryInstance(e),r=m.Z.getValueOrDefault(d.outlineWidth,e,1);this._outlinePrimitive=n.add(new h.Z({geometryInstances:i,appearance:new l.Z({flat:!0,translucent:255!==i.attributes.color.value[3],renderState:{lineWidth:t._scene.clampLineWidth(r)}}),asynchronous:!1,shadows:_}))}},_.prototype.getBoundingSphere=function(e){if(!(0,o.Z)(e))throw new a.Z("result is required.");const t=this._entity,i=this._primitive,r=this._outlinePrimitive;let s;return(0,o.Z)(i)&&i.show&&i.ready&&(s=i.getGeometryInstanceAttributes(t),(0,o.Z)(s)&&(0,o.Z)(s.boundingSphere))||(0,o.Z)(r)&&r.show&&r.ready&&(s=r.getGeometryInstanceAttributes(t),(0,o.Z)(s)&&(0,o.Z)(s.boundingSphere))?(n.Z.clone(s.boundingSphere,e),d.Z.DONE):(0,o.Z)(i)&&!i.ready||(0,o.Z)(r)&&!r.ready?d.Z.PENDING:d.Z.FAILED},_.prototype.isDestroyed=function(){return!1},_.prototype.destroy=function(){const e=this._primitives,t=this._orderedGroundPrimitives;this._geometryUpdater._onTerrain?t.remove(this._primitive):e.removeAndDestroy(this._primitive),e.removeAndDestroy(this._outlinePrimitive),(0,s.Z)(this)};const Z=_},119927:(e,t,i)=>{"use strict";i.d(t,{Z:()=>R});var n=i(140537),r=i(919382),o=i(357299),s=i(545125),a=i(182934),c=i(426468),u=i(446938),l=i(231432),h=i(664279),d=i(526301),f=i(952254),p=i(29699),m=i(81203),_=i(523501),Z=i(208613),g=i(110499),y=i(112546),b=i(578721),A=i(141653),w=i(955701),v=i(710923),T=i(585156),C=i(444147);const E=new s.Z,x=r.Z.ZERO,S=new r.Z,O=new _.Z;function I(e){this.id=e,this.vertexFormat=void 0,this.center=void 0,this.semiMajorAxis=void 0,this.semiMinorAxis=void 0,this.rotation=void 0,this.height=void 0,this.extrudedHeight=void 0,this.granularity=void 0,this.stRotation=void 0,this.numberOfVerticalLines=void 0,this.offsetAttribute=void 0}function D(e,t){T.Z.call(this,{entity:e,scene:t,geometryOptions:new I(e),geometryPropertyName:"ellipse",observedPropertyNames:["availability","position","ellipse"]}),this._onEntityPropertyChanged(e,"ellipse",e.ellipse,void 0)}function P(e,t,i){w.Z.call(this,e,t,i)}(0,c.Z)(Object.create)&&(D.prototype=Object.create(T.Z.prototype),D.prototype.constructor=D),D.prototype.createFillGeometryInstance=function(e){if(o.Z.defined("time",e),!this._fillEnabled)throw new u.Z("This instance does not represent a filled geometry.");const t=this._entity,i=t.isAvailable(e),n={show:new Z.Z(i&&t.isShowing&&this._showProperty.getValue(e)&&this._fillProperty.getValue(e)),distanceDisplayCondition:l.Z.fromDistanceDisplayCondition(this._distanceDisplayConditionProperty.getValue(e)),offset:void 0,color:void 0};if(this._materialProperty instanceof A.Z){let t;(0,c.Z)(this._materialProperty.color)&&(this._materialProperty.color.isConstant||i)&&(t=this._materialProperty.color.getValue(e,E)),(0,c.Z)(t)||(t=s.Z.WHITE),n.color=a.Z.fromColor(t)}return(0,c.Z)(this._options.offsetAttribute)&&(n.offset=m.Z.fromCartesian3(C.Z.getValueOrDefault(this._terrainOffsetProperty,e,x,S))),new f.Z({id:t,geometry:new h.Z(this._options),attributes:n})},D.prototype.createOutlineGeometryInstance=function(e){if(o.Z.defined("time",e),!this._outlineEnabled)throw new u.Z("This instance does not represent an outlined geometry.");const t=this._entity,i=t.isAvailable(e),n=C.Z.getValueOrDefault(this._outlineColorProperty,e,s.Z.BLACK,E),r=this._distanceDisplayConditionProperty.getValue(e),h={show:new Z.Z(i&&t.isShowing&&this._showProperty.getValue(e)&&this._showOutlineProperty.getValue(e)),color:a.Z.fromColor(n),distanceDisplayCondition:l.Z.fromDistanceDisplayCondition(r),offset:void 0};return(0,c.Z)(this._options.offsetAttribute)&&(h.offset=m.Z.fromCartesian3(C.Z.getValueOrDefault(this._terrainOffsetProperty,e,x,S))),new f.Z({id:t,geometry:new d.Z(this._options),attributes:h})},D.prototype._computeCenter=function(e,t){return C.Z.getValueOrUndefined(this._entity.position,e,t)},D.prototype._isHidden=function(e,t){const i=e.position;return!(0,c.Z)(i)||!(0,c.Z)(t.semiMajorAxis)||!(0,c.Z)(t.semiMinorAxis)||v.Z.prototype._isHidden.call(this,e,t)},D.prototype._isDynamic=function(e,t){return!e.position.isConstant||!t.semiMajorAxis.isConstant||!t.semiMinorAxis.isConstant||!C.Z.isConstant(t.rotation)||!C.Z.isConstant(t.height)||!C.Z.isConstant(t.extrudedHeight)||!C.Z.isConstant(t.granularity)||!C.Z.isConstant(t.stRotation)||!C.Z.isConstant(t.outlineWidth)||!C.Z.isConstant(t.numberOfVerticalLines)||!C.Z.isConstant(t.zIndex)||this._onTerrain&&!C.Z.isConstant(this._materialProperty)&&!(this._materialProperty instanceof A.Z)},D.prototype._setStaticOptions=function(e,t){let i=C.Z.getValueOrUndefined(t.height,p.Z.MINIMUM_VALUE);const r=C.Z.getValueOrDefault(t.heightReference,p.Z.MINIMUM_VALUE,g.Z.NONE);let o=C.Z.getValueOrUndefined(t.extrudedHeight,p.Z.MINIMUM_VALUE);const s=C.Z.getValueOrDefault(t.extrudedHeightReference,p.Z.MINIMUM_VALUE,g.Z.NONE);(0,c.Z)(o)&&!(0,c.Z)(i)&&(i=0);const a=this._options;a.vertexFormat=this._materialProperty instanceof A.Z?b.Z.VERTEX_FORMAT:y.Z.MaterialSupport.TEXTURED.vertexFormat,a.center=e.position.getValue(p.Z.MINIMUM_VALUE,a.center),a.semiMajorAxis=t.semiMajorAxis.getValue(p.Z.MINIMUM_VALUE,a.semiMajorAxis),a.semiMinorAxis=t.semiMinorAxis.getValue(p.Z.MINIMUM_VALUE,a.semiMinorAxis),a.rotation=C.Z.getValueOrUndefined(t.rotation,p.Z.MINIMUM_VALUE),a.granularity=C.Z.getValueOrUndefined(t.granularity,p.Z.MINIMUM_VALUE),a.stRotation=C.Z.getValueOrUndefined(t.stRotation,p.Z.MINIMUM_VALUE),a.numberOfVerticalLines=C.Z.getValueOrUndefined(t.numberOfVerticalLines,p.Z.MINIMUM_VALUE),a.offsetAttribute=T.Z.computeGeometryOffsetAttribute(i,r,o,s),a.height=T.Z.getGeometryHeight(i,r),o=T.Z.getGeometryExtrudedHeight(o,s),o===T.Z.CLAMP_TO_GROUND&&(o=n.Z.getMinimumMaximumHeights(h.Z.computeRectangle(a,O)).minimumTerrainHeight),a.extrudedHeight=o},D.DynamicGeometryUpdater=P,(0,c.Z)(Object.create)&&(P.prototype=Object.create(w.Z.prototype),P.prototype.constructor=P),P.prototype._isHidden=function(e,t,i){const n=this._options;return!(0,c.Z)(n.center)||!(0,c.Z)(n.semiMajorAxis)||!(0,c.Z)(n.semiMinorAxis)||w.Z.prototype._isHidden.call(this,e,t,i)},P.prototype._setOptions=function(e,t,i){const r=this._options;let o=C.Z.getValueOrUndefined(t.height,i);const s=C.Z.getValueOrDefault(t.heightReference,i,g.Z.NONE);let a=C.Z.getValueOrUndefined(t.extrudedHeight,i);const u=C.Z.getValueOrDefault(t.extrudedHeightReference,i,g.Z.NONE);(0,c.Z)(a)&&!(0,c.Z)(o)&&(o=0),r.center=C.Z.getValueOrUndefined(e.position,i,r.center),r.semiMajorAxis=C.Z.getValueOrUndefined(t.semiMajorAxis,i),r.semiMinorAxis=C.Z.getValueOrUndefined(t.semiMinorAxis,i),r.rotation=C.Z.getValueOrUndefined(t.rotation,i),r.granularity=C.Z.getValueOrUndefined(t.granularity,i),r.stRotation=C.Z.getValueOrUndefined(t.stRotation,i),r.numberOfVerticalLines=C.Z.getValueOrUndefined(t.numberOfVerticalLines,i),r.offsetAttribute=T.Z.computeGeometryOffsetAttribute(o,s,a,u),r.height=T.Z.getGeometryHeight(o,s),a=T.Z.getGeometryExtrudedHeight(a,u),a===T.Z.CLAMP_TO_GROUND&&(a=n.Z.getMinimumMaximumHeights(h.Z.computeRectangle(r,O)).minimumTerrainHeight),r.extrudedHeight=a};const R=D},146352:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(406144),r=i(426468),o=i(446938),s=i(197685),a=i(489351),c=i(528531);function u(e){this._definitionChanged=new s.Z,this._show=void 0,this._showSubscription=void 0,this._semiMajorAxis=void 0,this._semiMajorAxisSubscription=void 0,this._semiMinorAxis=void 0,this._semiMinorAxisSubscription=void 0,this._height=void 0,this._heightSubscription=void 0,this._heightReference=void 0,this._heightReferenceSubscription=void 0,this._extrudedHeight=void 0,this._extrudedHeightSubscription=void 0,this._extrudedHeightReference=void 0,this._extrudedHeightReferenceSubscription=void 0,this._rotation=void 0,this._rotationSubscription=void 0,this._stRotation=void 0,this._stRotationSubscription=void 0,this._granularity=void 0,this._granularitySubscription=void 0,this._fill=void 0,this._fillSubscription=void 0,this._material=void 0,this._materialSubscription=void 0,this._outline=void 0,this._outlineSubscription=void 0,this._outlineColor=void 0,this._outlineColorSubscription=void 0,this._outlineWidth=void 0,this._outlineWidthSubscription=void 0,this._numberOfVerticalLines=void 0,this._numberOfVerticalLinesSubscription=void 0,this._shadows=void 0,this._shadowsSubscription=void 0,this._distanceDisplayCondition=void 0,this._distanceDisplayConditionSubscription=void 0,this._classificationType=void 0,this._classificationTypeSubscription=void 0,this._zIndex=void 0,this._zIndexSubscription=void 0,this.merge((0,n.Z)(e,n.Z.EMPTY_OBJECT))}Object.defineProperties(u.prototype,{definitionChanged:{get:function(){return this._definitionChanged}},show:(0,c.Z)("show"),semiMajorAxis:(0,c.Z)("semiMajorAxis"),semiMinorAxis:(0,c.Z)("semiMinorAxis"),height:(0,c.Z)("height"),heightReference:(0,c.Z)("heightReference"),extrudedHeight:(0,c.Z)("extrudedHeight"),extrudedHeightReference:(0,c.Z)("extrudedHeightReference"),rotation:(0,c.Z)("rotation"),stRotation:(0,c.Z)("stRotation"),granularity:(0,c.Z)("granularity"),fill:(0,c.Z)("fill"),material:(0,a.Z)("material"),outline:(0,c.Z)("outline"),outlineColor:(0,c.Z)("outlineColor"),outlineWidth:(0,c.Z)("outlineWidth"),numberOfVerticalLines:(0,c.Z)("numberOfVerticalLines"),shadows:(0,c.Z)("shadows"),distanceDisplayCondition:(0,c.Z)("distanceDisplayCondition"),classificationType:(0,c.Z)("classificationType"),zIndex:(0,c.Z)("zIndex")}),u.prototype.clone=function(e){return(0,r.Z)(e)?(e.show=this.show,e.semiMajorAxis=this.semiMajorAxis,e.semiMinorAxis=this.semiMinorAxis,e.height=this.height,e.heightReference=this.heightReference,e.extrudedHeight=this.extrudedHeight,e.extrudedHeightReference=this.extrudedHeightReference,e.rotation=this.rotation,e.stRotation=this.stRotation,e.granularity=this.granularity,e.fill=this.fill,e.material=this.material,e.outline=this.outline,e.outlineColor=this.outlineColor,e.outlineWidth=this.outlineWidth,e.numberOfVerticalLines=this.numberOfVerticalLines,e.shadows=this.shadows,e.distanceDisplayCondition=this.distanceDisplayCondition,e.classificationType=this.classificationType,e.zIndex=this.zIndex,e):new u(this)},u.prototype.merge=function(e){if(!(0,r.Z)(e))throw new o.Z("source is required.");this.show=(0,n.Z)(this.show,e.show),this.semiMajorAxis=(0,n.Z)(this.semiMajorAxis,e.semiMajorAxis),this.semiMinorAxis=(0,n.Z)(this.semiMinorAxis,e.semiMinorAxis),this.height=(0,n.Z)(this.height,e.height),this.heightReference=(0,n.Z)(this.heightReference,e.heightReference),this.extrudedHeight=(0,n.Z)(this.extrudedHeight,e.extrudedHeight),this.extrudedHeightReference=(0,n.Z)(this.extrudedHeightReference,e.extrudedHeightReference),this.rotation=(0,n.Z)(this.rotation,e.rotation),this.stRotation=(0,n.Z)(this.stRotation,e.stRotation),this.granularity=(0,n.Z)(this.granularity,e.granularity),this.fill=(0,n.Z)(this.fill,e.fill),this.material=(0,n.Z)(this.material,e.material),this.outline=(0,n.Z)(this.outline,e.outline),this.outlineColor=(0,n.Z)(this.outlineColor,e.outlineColor),this.outlineWidth=(0,n.Z)(this.outlineWidth,e.outlineWidth),this.numberOfVerticalLines=(0,n.Z)(this.numberOfVerticalLines,e.numberOfVerticalLines),this.shadows=(0,n.Z)(this.shadows,e.shadows),this.distanceDisplayCondition=(0,n.Z)(this.distanceDisplayCondition,e.distanceDisplayCondition),this.classificationType=(0,n.Z)(this.classificationType,e.classificationType),this.zIndex=(0,n.Z)(this.zIndex,e.zIndex)};const l=u},237290:(e,t,i)=>{"use strict";i.d(t,{Z:()=>U});var n=i(919382),r=i(357299),o=i(545125),s=i(182934),a=i(406144),c=i(426468),u=i(744497),l=i(231432),h=i(675758),d=i(737212),f=i(952254),p=i(215925),m=i(29699),_=i(583917),Z=i(81203),g=i(208613),y=i(110499),b=i(112546),A=i(578721),w=i(939800),v=i(506678),T=i(141653),C=i(955701),E=i(710923),x=i(565544),S=i(332315),O=i(444147);const I=new T.Z(o.Z.WHITE),D=n.Z.ZERO,P=new n.Z,R=new n.Z,B=new n.Z,M=new o.Z,L=new n.Z(1,1,1);function N(e){this.id=e,this.vertexFormat=void 0,this.radii=void 0,this.innerRadii=void 0,this.minimumClock=void 0,this.maximumClock=void 0,this.minimumCone=void 0,this.maximumCone=void 0,this.stackPartitions=void 0,this.slicePartitions=void 0,this.subdivisions=void 0,this.offsetAttribute=void 0}function F(e,t){E.Z.call(this,{entity:e,scene:t,geometryOptions:new N(e),geometryPropertyName:"ellipsoid",observedPropertyNames:["availability","position","orientation","ellipsoid"]}),this._onEntityPropertyChanged(e,"ellipsoid",e.ellipsoid,void 0)}function k(e,t,i){C.Z.call(this,e,t,i),this._scene=e._scene,this._modelMatrix=new _.Z,this._attributes=void 0,this._outlineAttributes=void 0,this._lastSceneMode=void 0,this._lastShow=void 0,this._lastOutlineShow=void 0,this._lastOutlineWidth=void 0,this._lastOutlineColor=void 0,this._lastOffset=new n.Z,this._material={}}(0,c.Z)(Object.create)&&(F.prototype=Object.create(E.Z.prototype),F.prototype.constructor=F),Object.defineProperties(F.prototype,{terrainOffsetProperty:{get:function(){return this._terrainOffsetProperty}}}),F.prototype.createFillGeometryInstance=function(e,t,i){r.Z.defined("time",e);const n=this._entity,a=n.isAvailable(e);let u;const d=new g.Z(a&&n.isShowing&&this._showProperty.getValue(e)&&this._fillProperty.getValue(e)),p=this._distanceDisplayConditionProperty.getValue(e),m={show:d,distanceDisplayCondition:l.Z.fromDistanceDisplayCondition(p),color:void 0,offset:void 0};if(this._materialProperty instanceof T.Z){let t;(0,c.Z)(this._materialProperty.color)&&(this._materialProperty.color.isConstant||a)&&(t=this._materialProperty.color.getValue(e,M)),(0,c.Z)(t)||(t=o.Z.WHITE),u=s.Z.fromColor(t),m.color=u}return(0,c.Z)(this._options.offsetAttribute)&&(m.offset=Z.Z.fromCartesian3(O.Z.getValueOrDefault(this._terrainOffsetProperty,e,D,P))),new f.Z({id:n,geometry:new h.Z(this._options),modelMatrix:t?void 0:n.computeModelMatrixForHeightReference(e,n.ellipsoid.heightReference,.5*this._options.radii.z,this._scene.mapProjection.ellipsoid,i),attributes:m})},F.prototype.createOutlineGeometryInstance=function(e,t,i){r.Z.defined("time",e);const n=this._entity,a=n.isAvailable(e),u=O.Z.getValueOrDefault(this._outlineColorProperty,e,o.Z.BLACK,M),h=this._distanceDisplayConditionProperty.getValue(e),p={show:new g.Z(a&&n.isShowing&&this._showProperty.getValue(e)&&this._showOutlineProperty.getValue(e)),color:s.Z.fromColor(u),distanceDisplayCondition:l.Z.fromDistanceDisplayCondition(h),offset:void 0};return(0,c.Z)(this._options.offsetAttribute)&&(p.offset=Z.Z.fromCartesian3(O.Z.getValueOrDefault(this._terrainOffsetProperty,e,D,P))),new f.Z({id:n,geometry:new d.Z(this._options),modelMatrix:t?void 0:n.computeModelMatrixForHeightReference(e,n.ellipsoid.heightReference,.5*this._options.radii.z,this._scene.mapProjection.ellipsoid,i),attributes:p})},F.prototype._computeCenter=function(e,t){return O.Z.getValueOrUndefined(this._entity.position,e,t)},F.prototype._isHidden=function(e,t){return!(0,c.Z)(e.position)||!(0,c.Z)(t.radii)||E.Z.prototype._isHidden.call(this,e,t)},F.prototype._isDynamic=function(e,t){return!(e.position.isConstant&&O.Z.isConstant(e.orientation)&&t.radii.isConstant&&O.Z.isConstant(t.innerRadii)&&O.Z.isConstant(t.stackPartitions)&&O.Z.isConstant(t.slicePartitions)&&O.Z.isConstant(t.outlineWidth)&&O.Z.isConstant(t.minimumClock)&&O.Z.isConstant(t.maximumClock)&&O.Z.isConstant(t.minimumCone)&&O.Z.isConstant(t.maximumCone)&&O.Z.isConstant(t.subdivisions))},F.prototype._setStaticOptions=function(e,t){const i=O.Z.getValueOrDefault(t.heightReference,m.Z.MINIMUM_VALUE,y.Z.NONE),n=this._options;n.vertexFormat=this._materialProperty instanceof T.Z?A.Z.VERTEX_FORMAT:b.Z.MaterialSupport.TEXTURED.vertexFormat,n.radii=t.radii.getValue(m.Z.MINIMUM_VALUE,n.radii),n.innerRadii=O.Z.getValueOrUndefined(t.innerRadii,n.radii),n.minimumClock=O.Z.getValueOrUndefined(t.minimumClock,m.Z.MINIMUM_VALUE),n.maximumClock=O.Z.getValueOrUndefined(t.maximumClock,m.Z.MINIMUM_VALUE),n.minimumCone=O.Z.getValueOrUndefined(t.minimumCone,m.Z.MINIMUM_VALUE),n.maximumCone=O.Z.getValueOrUndefined(t.maximumCone,m.Z.MINIMUM_VALUE),n.stackPartitions=O.Z.getValueOrUndefined(t.stackPartitions,m.Z.MINIMUM_VALUE),n.slicePartitions=O.Z.getValueOrUndefined(t.slicePartitions,m.Z.MINIMUM_VALUE),n.subdivisions=O.Z.getValueOrUndefined(t.subdivisions,m.Z.MINIMUM_VALUE),n.offsetAttribute=i!==y.Z.NONE?p.Z.ALL:void 0},F.prototype._onEntityPropertyChanged=x.Z,F.DynamicGeometryUpdater=k,(0,c.Z)(Object.create)&&(k.prototype=Object.create(C.Z.prototype),k.prototype.constructor=k),k.prototype.update=function(e){r.Z.defined("time",e);const t=this._entity,i=t.ellipsoid;if(!t.isShowing||!t.isAvailable(e)||!O.Z.getValueOrDefault(i.show,e,!0))return(0,c.Z)(this._primitive)&&(this._primitive.show=!1),void((0,c.Z)(this._outlinePrimitive)&&(this._outlinePrimitive.show=!1));const h=O.Z.getValueOrUndefined(i.radii,e,R);let d=(0,c.Z)(h)?t.computeModelMatrixForHeightReference(e,i.heightReference,.5*h.z,this._scene.mapProjection.ellipsoid,this._modelMatrix):void 0;if(!(0,c.Z)(d)||!(0,c.Z)(h))return(0,c.Z)(this._primitive)&&(this._primitive.show=!1),void((0,c.Z)(this._outlinePrimitive)&&(this._outlinePrimitive.show=!1));const f=O.Z.getValueOrDefault(i.fill,e,!0),m=O.Z.getValueOrDefault(i.outline,e,!1),T=O.Z.getValueOrClonedDefault(i.outlineColor,e,o.Z.BLACK,M),C=S.Z.getValue(e,(0,a.Z)(i.material,I),this._material),E=O.Z.getValueOrUndefined(i.innerRadii,e,B),x=O.Z.getValueOrUndefined(i.minimumClock,e),N=O.Z.getValueOrUndefined(i.maximumClock,e),F=O.Z.getValueOrUndefined(i.minimumCone,e),k=O.Z.getValueOrUndefined(i.maximumCone,e),U=O.Z.getValueOrUndefined(i.stackPartitions,e),V=O.Z.getValueOrUndefined(i.slicePartitions,e),z=O.Z.getValueOrUndefined(i.subdivisions,e),H=O.Z.getValueOrDefault(i.outlineWidth,e,1),G=O.Z.getValueOrDefault(i.heightReference,e,y.Z.NONE),q=G!==y.Z.NONE?p.Z.ALL:void 0,j=this._scene.mode,W=j===v.Z.SCENE3D&&G===y.Z.NONE,K=this._options,Y=this._geometryUpdater.shadowsProperty.getValue(e),X=this._geometryUpdater.distanceDisplayConditionProperty.getValue(e),J=O.Z.getValueOrDefault(this._geometryUpdater.terrainOffsetProperty,e,D,P);if(!W||this._lastSceneMode!==j||!(0,c.Z)(this._primitive)||K.stackPartitions!==U||K.slicePartitions!==V||(0,c.Z)(E)&&!n.Z.equals(K.innerRadii!==E)||K.minimumClock!==x||K.maximumClock!==N||K.minimumCone!==F||K.maximumCone!==k||K.subdivisions!==z||this._lastOutlineWidth!==H||K.offsetAttribute!==q){const t=this._primitives;if(t.removeAndDestroy(this._primitive),t.removeAndDestroy(this._outlinePrimitive),this._primitive=void 0,this._outlinePrimitive=void 0,this._lastSceneMode=j,this._lastOutlineWidth=H,K.stackPartitions=U,K.slicePartitions=V,K.subdivisions=z,K.offsetAttribute=q,K.radii=n.Z.clone(W?L:h,K.radii),(0,c.Z)(E))if(W){const e=n.Z.magnitude(h);K.innerRadii=n.Z.fromElements(E.x/e,E.y/e,E.z/e,K.innerRadii)}else K.innerRadii=n.Z.clone(E,K.innerRadii);else K.innerRadii=void 0;K.minimumClock=x,K.maximumClock=N,K.minimumCone=F,K.maximumCone=k;const i=new b.Z({material:C,translucent:C.isTranslucent(),closed:!0});K.vertexFormat=i.vertexFormat;const r=this._geometryUpdater.createFillGeometryInstance(e,W,this._modelMatrix);this._primitive=t.add(new w.Z({geometryInstances:r,appearance:i,asynchronous:!1,shadows:Y}));const s=this._geometryUpdater.createOutlineGeometryInstance(e,W,this._modelMatrix);this._outlinePrimitive=t.add(new w.Z({geometryInstances:s,appearance:new A.Z({flat:!0,translucent:255!==s.attributes.color.value[3],renderState:{lineWidth:this._geometryUpdater._scene.clampLineWidth(H)}}),asynchronous:!1,shadows:Y})),this._lastShow=f,this._lastOutlineShow=m,this._lastOutlineColor=o.Z.clone(T,this._lastOutlineColor),this._lastDistanceDisplayCondition=X,this._lastOffset=n.Z.clone(J,this._lastOffset)}else if(this._primitive.ready){const e=this._primitive,i=this._outlinePrimitive;e.show=!0,i.show=!0,e.appearance.material=C;let r=this._attributes;(0,c.Z)(r)||(r=e.getGeometryInstanceAttributes(t),this._attributes=r),f!==this._lastShow&&(r.show=g.Z.toValue(f,r.show),this._lastShow=f);let a=this._outlineAttributes;(0,c.Z)(a)||(a=i.getGeometryInstanceAttributes(t),this._outlineAttributes=a),m!==this._lastOutlineShow&&(a.show=g.Z.toValue(m,a.show),this._lastOutlineShow=m),o.Z.equals(T,this._lastOutlineColor)||(a.color=s.Z.toValue(T,a.color),o.Z.clone(T,this._lastOutlineColor)),u.Z.equals(X,this._lastDistanceDisplayCondition)||(r.distanceDisplayCondition=l.Z.toValue(X,r.distanceDisplayCondition),a.distanceDisplayCondition=l.Z.toValue(X,a.distanceDisplayCondition),u.Z.clone(X,this._lastDistanceDisplayCondition)),n.Z.equals(J,this._lastOffset)||(r.offset=Z.Z.toValue(J,r.offset),a.offset=Z.Z.toValue(J,r.offset),n.Z.clone(J,this._lastOffset))}W&&(h.x=Math.max(h.x,.001),h.y=Math.max(h.y,.001),h.z=Math.max(h.z,.001),d=_.Z.multiplyByScale(d,h,d),this._primitive.modelMatrix=d,this._outlinePrimitive.modelMatrix=d)};const U=F},817652:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(406144),r=i(426468),o=i(446938),s=i(197685),a=i(489351),c=i(528531);function u(e){this._definitionChanged=new s.Z,this._show=void 0,this._showSubscription=void 0,this._radii=void 0,this._radiiSubscription=void 0,this._innerRadii=void 0,this._innerRadiiSubscription=void 0,this._minimumClock=void 0,this._minimumClockSubscription=void 0,this._maximumClock=void 0,this._maximumClockSubscription=void 0,this._minimumCone=void 0,this._minimumConeSubscription=void 0,this._maximumCone=void 0,this._maximumConeSubscription=void 0,this._heightReference=void 0,this._heightReferenceSubscription=void 0,this._fill=void 0,this._fillSubscription=void 0,this._material=void 0,this._materialSubscription=void 0,this._outline=void 0,this._outlineSubscription=void 0,this._outlineColor=void 0,this._outlineColorSubscription=void 0,this._outlineWidth=void 0,this._outlineWidthSubscription=void 0,this._stackPartitions=void 0,this._stackPartitionsSubscription=void 0,this._slicePartitions=void 0,this._slicePartitionsSubscription=void 0,this._subdivisions=void 0,this._subdivisionsSubscription=void 0,this._shadows=void 0,this._shadowsSubscription=void 0,this._distanceDisplayCondition=void 0,this._distanceDisplayConditionSubscription=void 0,this.merge((0,n.Z)(e,n.Z.EMPTY_OBJECT))}Object.defineProperties(u.prototype,{definitionChanged:{get:function(){return this._definitionChanged}},show:(0,c.Z)("show"),radii:(0,c.Z)("radii"),innerRadii:(0,c.Z)("innerRadii"),minimumClock:(0,c.Z)("minimumClock"),maximumClock:(0,c.Z)("maximumClock"),minimumCone:(0,c.Z)("minimumCone"),maximumCone:(0,c.Z)("maximumCone"),heightReference:(0,c.Z)("heightReference"),fill:(0,c.Z)("fill"),material:(0,a.Z)("material"),outline:(0,c.Z)("outline"),outlineColor:(0,c.Z)("outlineColor"),outlineWidth:(0,c.Z)("outlineWidth"),stackPartitions:(0,c.Z)("stackPartitions"),slicePartitions:(0,c.Z)("slicePartitions"),subdivisions:(0,c.Z)("subdivisions"),shadows:(0,c.Z)("shadows"),distanceDisplayCondition:(0,c.Z)("distanceDisplayCondition")}),u.prototype.clone=function(e){return(0,r.Z)(e)?(e.show=this.show,e.radii=this.radii,e.innerRadii=this.innerRadii,e.minimumClock=this.minimumClock,e.maximumClock=this.maximumClock,e.minimumCone=this.minimumCone,e.maximumCone=this.maximumCone,e.heightReference=this.heightReference,e.fill=this.fill,e.material=this.material,e.outline=this.outline,e.outlineColor=this.outlineColor,e.outlineWidth=this.outlineWidth,e.stackPartitions=this.stackPartitions,e.slicePartitions=this.slicePartitions,e.subdivisions=this.subdivisions,e.shadows=this.shadows,e.distanceDisplayCondition=this.distanceDisplayCondition,e):new u(this)},u.prototype.merge=function(e){if(!(0,r.Z)(e))throw new o.Z("source is required.");this.show=(0,n.Z)(this.show,e.show),this.radii=(0,n.Z)(this.radii,e.radii),this.innerRadii=(0,n.Z)(this.innerRadii,e.innerRadii),this.minimumClock=(0,n.Z)(this.minimumClock,e.minimumClock),this.maximumClock=(0,n.Z)(this.maximumClock,e.maximumClock),this.minimumCone=(0,n.Z)(this.minimumCone,e.minimumCone),this.maximumCone=(0,n.Z)(this.maximumCone,e.maximumCone),this.heightReference=(0,n.Z)(this.heightReference,e.heightReference),this.fill=(0,n.Z)(this.fill,e.fill),this.material=(0,n.Z)(this.material,e.material),this.outline=(0,n.Z)(this.outline,e.outline),this.outlineColor=(0,n.Z)(this.outlineColor,e.outlineColor),this.outlineWidth=(0,n.Z)(this.outlineWidth,e.outlineWidth),this.stackPartitions=(0,n.Z)(this.stackPartitions,e.stackPartitions),this.slicePartitions=(0,n.Z)(this.slicePartitions,e.slicePartitions),this.subdivisions=(0,n.Z)(this.subdivisions,e.subdivisions),this.shadows=(0,n.Z)(this.shadows,e.shadows),this.distanceDisplayCondition=(0,n.Z)(this.distanceDisplayCondition,e.distanceDisplayCondition)};const l=u},55316:(e,t,i)=>{"use strict";i.d(t,{Z:()=>K});var n=i(919382),r=i(698907),o=i(357299),s=i(416974),a=i(406144),c=i(426468),u=i(446938),l=i(197685),h=i(362017),d=i(165373),f=i(583917),p=i(129782),m=i(358198),_=i(284283),Z=i(975023),g=i(110499),y=i(552759),b=i(317814),A=i(408335),w=i(703018),v=i(528531),T=i(852376),C=i(183839),E=i(146352),x=i(817652),S=i(381544),O=i(822638),I=i(183938),D=i(35811),P=i(605837),R=i(717178),B=i(563367),M=i(450457),L=i(705682),N=i(444147),F=i(339637),k=i(511121),U=i(937157);const V=new r.Z;function z(e,t){return(0,v.Z)(e,void 0,(function(e){return e instanceof t?e:new t(e)}))}function H(e){let t=(e=(0,a.Z)(e,a.Z.EMPTY_OBJECT)).id;(0,c.Z)(t)||(t=(0,s.Z)()),this._availability=void 0,this._id=t,this._definitionChanged=new l.Z,this._name=e.name,this._show=(0,a.Z)(e.show,!0),this._parent=void 0,this._propertyNames=["billboard","box","corridor","cylinder","description","ellipse","ellipsoid","label","model","tileset","orientation","path","plane","point","polygon","polyline","polylineVolume","position","properties","rectangle","viewFrom","wall"],this._billboard=void 0,this._billboardSubscription=void 0,this._box=void 0,this._boxSubscription=void 0,this._corridor=void 0,this._corridorSubscription=void 0,this._cylinder=void 0,this._cylinderSubscription=void 0,this._description=void 0,this._descriptionSubscription=void 0,this._ellipse=void 0,this._ellipseSubscription=void 0,this._ellipsoid=void 0,this._ellipsoidSubscription=void 0,this._label=void 0,this._labelSubscription=void 0,this._model=void 0,this._modelSubscription=void 0,this._tileset=void 0,this._tilesetSubscription=void 0,this._orientation=void 0,this._orientationSubscription=void 0,this._path=void 0,this._pathSubscription=void 0,this._plane=void 0,this._planeSubscription=void 0,this._point=void 0,this._pointSubscription=void 0,this._polygon=void 0,this._polygonSubscription=void 0,this._polyline=void 0,this._polylineSubscription=void 0,this._polylineVolume=void 0,this._polylineVolumeSubscription=void 0,this._position=void 0,this._positionSubscription=void 0,this._properties=void 0,this._propertiesSubscription=void 0,this._rectangle=void 0,this._rectangleSubscription=void 0,this._viewFrom=void 0,this._viewFromSubscription=void 0,this._wall=void 0,this._wallSubscription=void 0,this._children=[],this.entityCollection=void 0,this.parent=e.parent,this.merge(e)}function G(e,t,i){const n=t.length;for(let e=0;e{"use strict";i.d(t,{Z:()=>M});var n=i(152124),r=i(337968),o=i(919382),s=i(406144),a=i(426468),c=i(532901),u=i(197685),l=i(583917),h=i(959064),d=i(631754),f=i(218978),p=i(892512),m=i(906602),_=i(997023),Z=i(506678),g=i(384457);function y(e){e=(0,s.Z)(e,s.Z.EMPTY_OBJECT),this._enabled=(0,s.Z)(e.enabled,!1),this._pixelRange=(0,s.Z)(e.pixelRange,80),this._minimumClusterSize=(0,s.Z)(e.minimumClusterSize,2),this._clusterBillboards=(0,s.Z)(e.clusterBillboards,!0),this._clusterLabels=(0,s.Z)(e.clusterLabels,!0),this._clusterPoints=(0,s.Z)(e.clusterPoints,!0),this._labelCollection=void 0,this._billboardCollection=void 0,this._pointCollection=void 0,this._clusterBillboardCollection=void 0,this._clusterLabelCollection=void 0,this._clusterPointCollection=void 0,this._collectionIndicesByEntity={},this._unusedLabelIndices=[],this._unusedBillboardIndices=[],this._unusedPointIndices=[],this._previousClusters=[],this._previousHeight=void 0,this._enabledDirty=!1,this._clusterDirty=!1,this._cluster=void 0,this._removeEventListener=void 0,this._clusterEvent=new u.Z,this.show=(0,s.Z)(e.show,!0)}function b(e){return e.coord.x}function A(e){return e.coord.y}function w(e,t){e.x-=t,e.y-=t,e.width+=2*t,e.height+=2*t}const v=new n.Z;function T(e,t,i,r,o){if((0,a.Z)(e._labelCollection)&&r._clusterLabels?o=f.Z.getScreenSpaceBoundingBox(e,t,o):(0,a.Z)(e._billboardCollection)&&r._clusterBillboards?o=h.Z.getScreenSpaceBoundingBox(e,t,o):(0,a.Z)(e._pointPrimitiveCollection)&&r._clusterPoints&&(o=m.Z.getScreenSpaceBoundingBox(e,t,o)),w(o,i),r._clusterLabels&&!(0,a.Z)(e._labelCollection)&&(0,a.Z)(e.id)&&x(r,e.id.id)&&(0,a.Z)(e.id._label)){const s=r._collectionIndicesByEntity[e.id.id].labelIndex,a=r._labelCollection.get(s),c=f.Z.getScreenSpaceBoundingBox(a,t,v);w(c,i),o=n.Z.union(o,c,o)}return o}function C(e,t){if(e.clusterShow=!0,!(0,a.Z)(e._labelCollection)&&(0,a.Z)(e.id)&&x(t,e.id.id)&&(0,a.Z)(e.id._label)){const i=t._collectionIndicesByEntity[e.id.id].labelIndex;t._labelCollection.get(i).clusterShow=!0}}function E(e,t,i,n){const r={billboard:n._clusterBillboardCollection.add(),label:n._clusterLabelCollection.add(),point:n._clusterPointCollection.add()};r.billboard.show=!1,r.point.show=!1,r.label.show=!0,r.label.text=t.toLocaleString(),r.label.id=i,r.billboard.position=r.label.position=r.point.position=e,n._clusterEvent.raiseEvent(i,r)}function x(e,t){return(0,a.Z)(e)&&(0,a.Z)(e._collectionIndicesByEntity[t])&&(0,a.Z)(e._collectionIndicesByEntity[t].labelIndex)}function S(e,t,i,n,r){if(!(0,a.Z)(e))return;const o=e.length;for(let s=0;s0?(s=l.pop(),c=o.get(s)):(c=o.add(),s=o.length-1),u[n]=s,this._clusterDirty=!0,c}}function R(e,t){const i=e._collectionIndicesByEntity[t];(0,a.Z)(i.billboardIndex)||(0,a.Z)(i.labelIndex)||(0,a.Z)(i.pointIndex)||delete e._collectionIndicesByEntity[t]}function B(e){if(!(0,a.Z)(e))return;const t=e.length;for(let i=0;i=v)for(E(e.position,K,W,i),P.push(e),U=0;U=v){const e=o.Z.multiplyByScalar(s,1/K,s);for(E(e,K,W,i),P.push({position:e,width:r.width,height:r.height,minimumWidth:z.width,minimumHeight:z.height}),U=0;U0&&0===this._labelCollection.get(0)._glyphs.length&&(t=e.commandList,e.commandList=[],this._labelCollection.update(e),e.commandList=t),(0,a.Z)(this._billboardCollection)&&this._billboardCollection.length>0&&!(0,a.Z)(this._billboardCollection.get(0).width)&&(t=e.commandList,e.commandList=[],this._billboardCollection.update(e),e.commandList=t),this._enabledDirty&&(this._enabledDirty=!1,(i=this).enabled||((0,a.Z)(i._clusterLabelCollection)&&i._clusterLabelCollection.destroy(),(0,a.Z)(i._clusterBillboardCollection)&&i._clusterBillboardCollection.destroy(),(0,a.Z)(i._clusterPointCollection)&&i._clusterPointCollection.destroy(),i._clusterLabelCollection=void 0,i._clusterBillboardCollection=void 0,i._clusterPointCollection=void 0,B(i._labelCollection),B(i._billboardCollection),B(i._pointCollection)),this._clusterDirty=!0),this._clusterDirty&&(this._clusterDirty=!1,this._cluster()),(0,a.Z)(this._clusterLabelCollection)&&this._clusterLabelCollection.update(e),(0,a.Z)(this._clusterBillboardCollection)&&this._clusterBillboardCollection.update(e),(0,a.Z)(this._clusterPointCollection)&&this._clusterPointCollection.update(e),(0,a.Z)(this._labelCollection)&&this._labelCollection.update(e),(0,a.Z)(this._billboardCollection)&&this._billboardCollection.update(e),(0,a.Z)(this._pointCollection)&&this._pointCollection.update(e)},y.prototype.destroy=function(){this._labelCollection=this._labelCollection&&this._labelCollection.destroy(),this._billboardCollection=this._billboardCollection&&this._billboardCollection.destroy(),this._pointCollection=this._pointCollection&&this._pointCollection.destroy(),this._clusterLabelCollection=this._clusterLabelCollection&&this._clusterLabelCollection.destroy(),this._clusterBillboardCollection=this._clusterBillboardCollection&&this._clusterBillboardCollection.destroy(),this._clusterPointCollection=this._clusterPointCollection&&this._clusterPointCollection.destroy(),(0,a.Z)(this._removeEventListener)&&(this._removeEventListener(),this._removeEventListener=void 0),this._labelCollection=void 0,this._billboardCollection=void 0,this._pointCollection=void 0,this._clusterBillboardCollection=void 0,this._clusterLabelCollection=void 0,this._clusterPointCollection=void 0,this._collectionIndicesByEntity=void 0,this._unusedLabelIndices=[],this._unusedBillboardIndices=[],this._unusedPointIndices=[],this._previousClusters=[],this._previousHeight=void 0,this._enabledDirty=!1,this._pixelRangeDirty=!1,this._minimumClusterSizeDirty=!1};const M=y},63553:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_});var n=i(878438),r=i(416974),o=i(426468),s=i(446938),a=i(197685),c=i(29699),u=i(40080),l=i(50128),h=i(446680),d=i(55316);const f={id:void 0};function p(e){if(e._firing)e._refire=!0;else if(0===e._suspendCount){const t=e._addedEntities,i=e._removedEntities,n=e._changedEntities;if(0!==n.length||0!==t.length||0!==i.length){e._firing=!0;do{e._refire=!1;const r=t.values.slice(0),o=i.values.slice(0),s=n.values.slice(0);t.removeAll(),i.removeAll(),n.removeAll(),e._collectionChanged.raiseEvent(e,r,o,s)}while(e._refire);e._firing=!1}}}function m(e){this._owner=e,this._entities=new n.Z,this._addedEntities=new n.Z,this._removedEntities=new n.Z,this._changedEntities=new n.Z,this._suspendCount=0,this._collectionChanged=new a.Z,this._id=(0,r.Z)(),this._show=!0,this._firing=!1,this._refire=!1}m.prototype.suspendEvents=function(){this._suspendCount++},m.prototype.resumeEvents=function(){if(0===this._suspendCount)throw new s.Z("resumeEvents can not be called before suspendEvents.");this._suspendCount--,p(this)},m.collectionChangedEventCallback=void 0,Object.defineProperties(m.prototype,{collectionChanged:{get:function(){return this._collectionChanged}},id:{get:function(){return this._id}},values:{get:function(){return this._entities.values}},show:{get:function(){return this._show},set:function(e){if(!(0,o.Z)(e))throw new s.Z("value is required.");if(e===this._show)return;let t;this.suspendEvents();const i=[],n=this._entities.values,r=n.length;for(t=0;t{"use strict";i.d(t,{Z:()=>O});var n=i(919382),r=i(357299),o=i(406144),s=i(426468),a=i(253316),c=i(651279),u=i(40080),l=i(362017),h=i(165373),d=i(583917),f=i(358198),p=i(506678);const m=new h.Z,_=new h.Z,Z=new h.Z,g=new d.Z,y=new n.Z,b=new n.Z,A=new n.Z,w=new n.Z,v=new n.Z,T=new n.Z,C=new u.Z;function E(e,t,i){r.Z.defined("entity",e),r.Z.defined("scene",t),this.entity=e,this.scene=t,this.ellipsoid=(0,o.Z)(i,a.Z.WGS84),this.boundingSphere=void 0,this._lastEntity=void 0,this._mode=void 0,this._lastCartesian=new n.Z,this._defaultOffset3D=void 0,this._offset3D=new n.Z}Object.defineProperties(E,{defaultOffset3D:{get:function(){return this._defaultOffset3D},set:function(e){this._defaultOffset3D=n.Z.clone(e,new n.Z)}}}),E.defaultOffset3D=new n.Z(-14e3,3500,3500);const x=new c.Z,S=new n.Z;E.prototype.update=function(e,t){r.Z.defined("time",e);const i=this.scene,o=this.ellipsoid,a=i.mode;if(a===p.Z.MORPHING)return;const c=this.entity,d=c.position;if(!(0,s.Z)(d))return;const O=c!==this._lastEntity,I=a!==this._mode,D=i.camera;let P=O||I,R=!0;if(O){const i=c.viewFrom,r=(0,s.Z)(i);if(!r&&(0,s.Z)(t)){x.pitch=-l.Z.PI_OVER_FOUR,x.range=0;const i=d.getValue(e,S);if((0,s.Z)(i)){const e=2-1/Math.max(1,n.Z.magnitude(i)/o.maximumRadius);x.pitch*=e}D.viewBoundingSphere(t,x),this.boundingSphere=t,P=!1,R=!1}else r&&(0,s.Z)(i.getValue(e,this._offset3D))||n.Z.clone(E._defaultOffset3D,this._offset3D)}else I||this._mode===p.Z.SCENE2D||n.Z.clone(D.position,this._offset3D);this._lastEntity=c,this._mode=a,function(e,t,i,r,o,a,c){const d=e.scene.mode;let E=o.getValue(a,e._lastCartesian);if((0,s.Z)(E)){let i,x,S,O,I,D,P=!1,R=!1;if(d===p.Z.SCENE3D){u.Z.addSeconds(a,.001,C);let e=o.getValue(C,y);if((0,s.Z)(e)||(u.Z.addSeconds(a,-.001,C),e=o.getValue(C,y),R=!0),(0,s.Z)(e)){let t,r=f.Z.computeFixedToIcrfMatrix(a,m),o=f.Z.computeFixedToIcrfMatrix(C,_);(0,s.Z)(r)&&(0,s.Z)(o)?t=h.Z.transpose(r,Z):(t=f.Z.computeTemeToPseudoFixedMatrix(a,Z),r=h.Z.transpose(t,m),o=f.Z.computeTemeToPseudoFixedMatrix(C,_),h.Z.transpose(o,o));const u=h.Z.multiplyByVector(r,E,v),d=h.Z.multiplyByVector(o,e,T);n.Z.subtract(u,d,w);const p=1e3*n.Z.magnitude(w),g=l.Z.GRAVITATIONALPARAMETER,O=-g/(p*p-2*g/n.Z.magnitude(u));O<0||O>1.25*c.maximumRadius?(i=b,n.Z.normalize(E,i),n.Z.negate(i,i),S=n.Z.clone(n.Z.UNIT_Z,A),x=n.Z.cross(S,i,y),n.Z.magnitude(x)>l.Z.EPSILON7&&(n.Z.normalize(i,i),n.Z.normalize(x,x),S=n.Z.cross(i,x,A),n.Z.normalize(S,S),P=!0)):n.Z.equalsEpsilon(E,e,l.Z.EPSILON7)||(S=b,n.Z.normalize(u,S),n.Z.normalize(d,d),x=n.Z.cross(S,d,A),R&&(x=n.Z.multiplyByScalar(x,-1,x)),n.Z.equalsEpsilon(x,n.Z.ZERO,l.Z.EPSILON7)||(i=n.Z.cross(x,S,y),h.Z.multiplyByVector(t,i,i),h.Z.multiplyByVector(t,x,x),h.Z.multiplyByVector(t,S,S),n.Z.normalize(i,i),n.Z.normalize(x,x),n.Z.normalize(S,S),P=!0))}}(0,s.Z)(e.boundingSphere)&&(E=e.boundingSphere.center),r&&(O=n.Z.clone(t.position,w),I=n.Z.clone(t.direction,v),D=n.Z.clone(t.up,T));const B=g;P?(B[0]=i.x,B[1]=i.y,B[2]=i.z,B[3]=0,B[4]=x.x,B[5]=x.y,B[6]=x.z,B[7]=0,B[8]=S.x,B[9]=S.y,B[10]=S.z,B[11]=0,B[12]=E.x,B[13]=E.y,B[14]=E.z,B[15]=0):f.Z.eastNorthUpToFixedFrame(E,c,B),t._setTransform(B),r&&(n.Z.clone(O,t.position),n.Z.clone(I,t.direction),n.Z.clone(D,t.up),n.Z.cross(I,D,t.right))}if(i){const i=d===p.Z.SCENE2D||n.Z.equals(e._offset3D,n.Z.ZERO)?void 0:e._offset3D;t.lookAtTransform(t.transform,i)}}(this,D,P,R,d,e,o)};const O=E},391222:(e,t,i)=>{"use strict";i.d(t,{Z:()=>ue});var n=i(726307),r=i(919382),o=i(545125),s=i(416974),a=i(846748),c=i(406144),u=i(426468),l=i(446938),h=i(197685),d=i(812655),f=i(684066),p=i(943418),m=i(795788),_=i(50128),Z=i(110499),g=i(825497),y=i(495431),b=i(527758),A=i(552759),w=i(88934),v=i(141653),T=i(408335),C=i(243110),E=i(343387),x=i(783781),S=i(63553),O=i(563367),I=i(450457);function D(e){return r.Z.fromDegrees(e[0],e[1],e[2])}const P={"urn:ogc:def:crs:OGC:1.3:CRS84":D,"EPSG:4326":D,"urn:ogc:def:crs:EPSG::4326":D},R={},B={};let M,L=48,N=o.Z.ROYALBLUE,F=o.Z.YELLOW,k=2,U=o.Z.fromBytes(255,255,0,100),V=!1;const z={small:24,medium:48,large:64},H=["title","description","marker-size","marker-symbol","marker-color","stroke","stroke-opacity","stroke-width","fill","fill-opacity"];function G(e,t){let i="";for(const n in e)if(e.hasOwnProperty(n)){if(n===t||-1!==H.indexOf(n))continue;const r=e[n];(0,u.Z)(r)&&(i+="object"==typeof r?""+n+""+G(r)+"":""+n+""+r+"")}return i.length>0&&(i=''+i+"
"),i}function q(e,t){return new w.Z(function(e,t,i){let n;return function(r,o){return(0,u.Z)(n)||(n=e(t,i)),n}}(G,e,t),!0)}function j(e,t,i){let n=e.id;if((0,u.Z)(n)&&"Feature"===e.type){let e=2,i=n;for(;(0,u.Z)(t.getById(i));)i=n+"_"+e,e++;n=i}else n=(0,s.Z)();const r=t.getOrCreateEntity(n),o=e.properties;if((0,u.Z)(o)){let e;r.properties=o;const t=o.title;if((0,u.Z)(t))r.name=t,e="title";else{let t=Number.MAX_VALUE;for(const i in o)if(o.hasOwnProperty(i)&&o[i]){const n=i.toLowerCase();if(t>1&&"title"===n){t=1,e=i;break}t>2&&"name"===n?(t=2,e=i):t>3&&/title/i.test(i)?(t=3,e=i):t>4&&/name/i.test(i)&&(t=4,e=i)}(0,u.Z)(e)&&(r.name=o[e])}const n=o.description;null!==n&&(r.description=(0,u.Z)(n)?new C.Z(n):i(o,e))}return r}function W(e,t){const i=new Array(e.length);for(let n=0;n2?d.perPositionHeight=new C.Z(!0):s.clampToGround||(d.height=0),j(t,e._entityCollection,s.describe).polygon=d}function oe(e,t,i,n,r){re(e,t,n,i.coordinates,r)}function se(e,t,i,n,r){const o=i.coordinates;for(let i=0;i{"use strict";i.d(t,{Z:()=>S});var n=i(357299),r=i(545125),o=i(406144),s=i(426468),a=i(54879),c=i(446938),u=i(744497),l=i(197685),h=i(29699),d=i(594798),f=i(576049),p=i(556198),m=i(141653),_=i(243110),Z=i(55316),g=i(444147);const y=new m.Z(r.Z.WHITE),b=new _.Z(!0),A=new _.Z(!0),w=new _.Z(!1),v=new _.Z(r.Z.BLACK),T=new _.Z(p.Z.DISABLED),C=new _.Z(new u.Z),E=new _.Z(f.Z.BOTH);function x(e){n.Z.defined("options.entity",e.entity),n.Z.defined("options.scene",e.scene),n.Z.defined("options.geometryOptions",e.geometryOptions),n.Z.defined("options.geometryPropertyName",e.geometryPropertyName),n.Z.defined("options.observedPropertyNames",e.observedPropertyNames);const t=e.entity,i=e.geometryPropertyName;this._entity=t,this._scene=e.scene,this._fillEnabled=!1,this._isClosed=!1,this._onTerrain=!1,this._dynamic=!1,this._outlineEnabled=!1,this._geometryChanged=new l.Z,this._showProperty=void 0,this._materialProperty=void 0,this._showOutlineProperty=void 0,this._outlineColorProperty=void 0,this._outlineWidth=1,this._shadowsProperty=void 0,this._distanceDisplayConditionProperty=void 0,this._classificationTypeProperty=void 0,this._options=e.geometryOptions,this._geometryPropertyName=i,this._id=i+"-"+t.id,this._observedPropertyNames=e.observedPropertyNames,this._supportsMaterialsforEntitiesOnTerrain=Z.Z.supportsMaterialsforEntitiesOnTerrain(e.scene)}Object.defineProperties(x.prototype,{id:{get:function(){return this._id}},entity:{get:function(){return this._entity}},fillEnabled:{get:function(){return this._fillEnabled}},hasConstantFill:{get:function(){return!this._fillEnabled||!(0,s.Z)(this._entity.availability)&&g.Z.isConstant(this._showProperty)&&g.Z.isConstant(this._fillProperty)}},fillMaterialProperty:{get:function(){return this._materialProperty}},outlineEnabled:{get:function(){return this._outlineEnabled}},hasConstantOutline:{get:function(){return!this._outlineEnabled||!(0,s.Z)(this._entity.availability)&&g.Z.isConstant(this._showProperty)&&g.Z.isConstant(this._showOutlineProperty)}},outlineColorProperty:{get:function(){return this._outlineColorProperty}},outlineWidth:{get:function(){return this._outlineWidth}},shadowsProperty:{get:function(){return this._shadowsProperty}},distanceDisplayConditionProperty:{get:function(){return this._distanceDisplayConditionProperty}},classificationTypeProperty:{get:function(){return this._classificationTypeProperty}},isDynamic:{get:function(){return this._dynamic}},isClosed:{get:function(){return this._isClosed}},onTerrain:{get:function(){return this._onTerrain}},geometryChanged:{get:function(){return this._geometryChanged}}}),x.prototype.isOutlineVisible=function(e){const t=this._entity,i=this._outlineEnabled&&t.isAvailable(e)&&this._showProperty.getValue(e)&&this._showOutlineProperty.getValue(e);return(0,o.Z)(i,!1)},x.prototype.isFilled=function(e){const t=this._entity,i=this._fillEnabled&&t.isAvailable(e)&&this._showProperty.getValue(e)&&this._fillProperty.getValue(e);return(0,o.Z)(i,!1)},x.prototype.createFillGeometryInstance=c.Z.throwInstantiationError,x.prototype.createOutlineGeometryInstance=c.Z.throwInstantiationError,x.prototype.isDestroyed=function(){return!1},x.prototype.destroy=function(){(0,a.Z)(this)},x.prototype._isHidden=function(e,t){const i=t.show;return(0,s.Z)(i)&&i.isConstant&&!i.getValue(h.Z.MINIMUM_VALUE)},x.prototype._isOnTerrain=function(e,t){return!1},x.prototype._getIsClosed=function(e){return!0},x.prototype._isDynamic=c.Z.throwInstantiationError,x.prototype._setStaticOptions=c.Z.throwInstantiationError,x.prototype._onEntityPropertyChanged=function(e,t,i,n){if(-1===this._observedPropertyNames.indexOf(t))return;const r=this._entity[this._geometryPropertyName];if(!(0,s.Z)(r))return void((this._fillEnabled||this._outlineEnabled)&&(this._fillEnabled=!1,this._outlineEnabled=!1,this._geometryChanged.raiseEvent(this)));const a=r.fill,c=!(0,s.Z)(a)||!a.isConstant||a.getValue(h.Z.MINIMUM_VALUE),u=r.outline;let l=(0,s.Z)(u);if(l&&u.isConstant&&(l=u.getValue(h.Z.MINIMUM_VALUE)),!c&&!l)return void((this._fillEnabled||this._outlineEnabled)&&(this._fillEnabled=!1,this._outlineEnabled=!1,this._geometryChanged.raiseEvent(this)));const f=r.show;if(this._isHidden(e,r))return void((this._fillEnabled||this._outlineEnabled)&&(this._fillEnabled=!1,this._outlineEnabled=!1,this._geometryChanged.raiseEvent(this)));this._materialProperty=(0,o.Z)(r.material,y),this._fillProperty=(0,o.Z)(a,A),this._showProperty=(0,o.Z)(f,b),this._showOutlineProperty=(0,o.Z)(r.outline,w),this._outlineColorProperty=l?(0,o.Z)(r.outlineColor,v):void 0,this._shadowsProperty=(0,o.Z)(r.shadows,T),this._distanceDisplayConditionProperty=(0,o.Z)(r.distanceDisplayCondition,C),this._classificationTypeProperty=(0,o.Z)(r.classificationType,E),this._fillEnabled=c;const p=this._isOnTerrain(e,r)&&(this._supportsMaterialsforEntitiesOnTerrain||this._materialProperty instanceof m.Z);if(l&&p&&((0,d.Z)(d.Z.geometryOutlines),l=!1),this._onTerrain=p,this._outlineEnabled=l,this._isDynamic(e,r))this._dynamic||(this._dynamic=!0,this._geometryChanged.raiseEvent(this));else{this._setStaticOptions(e,r),this._isClosed=this._getIsClosed(this._options);const t=r.outlineWidth;this._outlineWidth=(0,s.Z)(t)?t.getValue(h.Z.MINIMUM_VALUE):1,this._dynamic=!1,this._geometryChanged.raiseEvent(this)}},x.prototype.createDynamicUpdater=function(e,t){if(n.Z.defined("primitives",e),n.Z.defined("groundPrimitives",t),!this._dynamic)throw new c.Z("This instance does not represent dynamic geometry.");return new this.constructor.DynamicGeometryUpdater(this,e,t)};const S=x},21525:(e,t,i)=>{"use strict";i.d(t,{Z:()=>U});var n=i(878438),r=i(360791),o=i(357299),s=i(406144),a=i(426468),c=i(54879),u=i(197685),l=i(242100),h=i(576049),d=i(112546),f=i(578721),p=i(556198),m=i(120896),_=i(959267),Z=i(141653),g=i(102708),y=i(426376),b=i(730029),A=i(119927),w=i(237290),v=i(55316),T=i(830511),C=i(960446),E=i(255451),x=i(517833),S=i(587636),O=i(330382),I=i(869306),D=i(644618),P=i(240629),R=i(13668);const B=[],M=[_.Z,y.Z,g.Z,A.Z,w.Z,T.Z,C.Z,E.Z,x.Z,R.Z];function L(e,t){this.entity=e,this.scene=t;const i=new Array(M.length),n=new u.Z;function r(e){n.raiseEvent(e)}const o=new l.Z;for(let n=0;n-1;c--)u=a[c],l=u.id,h=this._updaterSets.get(l),h.entity===u?h.forEach((function(t){d._removeUpdater(t),d._insertUpdaterIntoBatch(e,t)})):(r.push(u),i.push(u));for(c=r.length-1;c>-1;c--)u=r[c],l=u.id,h=this._updaterSets.get(l),h.forEach(this._removeUpdater.bind(this)),h.destroy(),this._updaterSets.remove(l),this._subscriptions.get(l)(),this._subscriptions.remove(l);for(c=i.length-1;c>-1;c--)u=i[c],l=u.id,h=new L(u,this._scene),this._updaterSets.set(l,h),h.forEach((function(t){d._insertUpdaterIntoBatch(e,t)})),this._subscriptions.set(l,h.geometryChanged.addEventListener(N._onGeometryChanged,this));t.removeAll(),n.removeAll(),s.removeAll();let f=!0;const p=this._batches,m=p.length;for(c=0;c-1;s--)c=i[s],a=c.id,n.remove(a)||(r.set(a,c),o.remove(a));for(s=t.length-1;s>-1;s--)c=t[s],a=c.id,r.remove(a)?o.set(a,c):n.set(a,c)};const U=N},488024:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});var n=i(337968),r=i(545125),o=i(406144),s=i(426468),a=i(197685),c=i(528531),u=i(444147);const l=r.Z.WHITE,h=new n.Z(8,8),d=new n.Z(0,0),f=new n.Z(1,1);function p(e){e=(0,o.Z)(e,o.Z.EMPTY_OBJECT),this._definitionChanged=new a.Z,this._color=void 0,this._colorSubscription=void 0,this._cellAlpha=void 0,this._cellAlphaSubscription=void 0,this._lineCount=void 0,this._lineCountSubscription=void 0,this._lineThickness=void 0,this._lineThicknessSubscription=void 0,this._lineOffset=void 0,this._lineOffsetSubscription=void 0,this.color=e.color,this.cellAlpha=e.cellAlpha,this.lineCount=e.lineCount,this.lineThickness=e.lineThickness,this.lineOffset=e.lineOffset}Object.defineProperties(p.prototype,{isConstant:{get:function(){return u.Z.isConstant(this._color)&&u.Z.isConstant(this._cellAlpha)&&u.Z.isConstant(this._lineCount)&&u.Z.isConstant(this._lineThickness)&&u.Z.isConstant(this._lineOffset)}},definitionChanged:{get:function(){return this._definitionChanged}},color:(0,c.Z)("color"),cellAlpha:(0,c.Z)("cellAlpha"),lineCount:(0,c.Z)("lineCount"),lineThickness:(0,c.Z)("lineThickness"),lineOffset:(0,c.Z)("lineOffset")}),p.prototype.getType=function(e){return"Grid"},p.prototype.getValue=function(e,t){return(0,s.Z)(t)||(t={}),t.color=u.Z.getValueOrClonedDefault(this._color,e,l,t.color),t.cellAlpha=u.Z.getValueOrDefault(this._cellAlpha,e,.1),t.lineCount=u.Z.getValueOrClonedDefault(this._lineCount,e,h,t.lineCount),t.lineThickness=u.Z.getValueOrClonedDefault(this._lineThickness,e,f,t.lineThickness),t.lineOffset=u.Z.getValueOrClonedDefault(this._lineOffset,e,d,t.lineOffset),t},p.prototype.equals=function(e){return this===e||e instanceof p&&u.Z.equals(this._color,e._color)&&u.Z.equals(this._cellAlpha,e._cellAlpha)&&u.Z.equals(this._lineCount,e._lineCount)&&u.Z.equals(this._lineThickness,e._lineThickness)&&u.Z.equals(this._lineOffset,e._lineOffset)};const m=p},585156:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Z});var n=i(357299),r=i(406144),o=i(426468),s=i(446938),a=i(215925),c=i(594798),u=i(975023),l=i(110499),h=i(88934),d=i(243110),f=i(710923),p=i(68750);const m=new d.Z(0);function _(e){f.Z.call(this,e),this._zIndex=0,this._terrainOffsetProperty=void 0}(0,o.Z)(Object.create)&&(_.prototype=Object.create(f.Z.prototype),_.prototype.constructor=_),Object.defineProperties(_.prototype,{zIndex:{get:function(){return this._zIndex}},terrainOffsetProperty:{get:function(){return this._terrainOffsetProperty}}}),_.prototype._isOnTerrain=function(e,t){return this._fillEnabled&&!(0,o.Z)(t.height)&&!(0,o.Z)(t.extrudedHeight)&&u.Z.isSupported(this._scene)},_.prototype._getIsClosed=function(e){const t=e.height,i=e.extrudedHeight;return 0===t||(0,o.Z)(i)&&i!==t},_.prototype._computeCenter=s.Z.throwInstantiationError,_.prototype._onEntityPropertyChanged=function(e,t,i,n){if(f.Z.prototype._onEntityPropertyChanged.call(this,e,t,i,n),-1===this._observedPropertyNames.indexOf(t))return;const s=this._entity[this._geometryPropertyName];if(!(0,o.Z)(s))return;(0,o.Z)(s.zIndex)&&((0,o.Z)(s.height)||(0,o.Z)(s.extrudedHeight))&&(0,c.Z)(c.Z.geometryZIndex),this._zIndex=(0,r.Z)(s.zIndex,m),(0,o.Z)(this._terrainOffsetProperty)&&(this._terrainOffsetProperty.destroy(),this._terrainOffsetProperty=void 0);const a=s.heightReference,u=s.extrudedHeightReference;if((0,o.Z)(a)||(0,o.Z)(u)){const e=new h.Z(this._computeCenter.bind(this),!this._dynamic);this._terrainOffsetProperty=new p.Z(this._scene,e,a,u)}},_.prototype.destroy=function(){(0,o.Z)(this._terrainOffsetProperty)&&(this._terrainOffsetProperty.destroy(),this._terrainOffsetProperty=void 0),f.Z.prototype.destroy.call(this)},_.getGeometryHeight=function(e,t){if(n.Z.defined("heightReference",t),(0,o.Z)(e))return t!==l.Z.CLAMP_TO_GROUND?e:0;t!==l.Z.NONE&&(0,c.Z)(c.Z.geometryHeightReference)},_.getGeometryExtrudedHeight=function(e,t){if(n.Z.defined("extrudedHeightReference",t),(0,o.Z)(e))return t!==l.Z.CLAMP_TO_GROUND?e:_.CLAMP_TO_GROUND;t!==l.Z.NONE&&(0,c.Z)(c.Z.geometryExtrudedHeightReference)},_.CLAMP_TO_GROUND="clamp",_.computeGeometryOffsetAttribute=function(e,t,i,n){(0,o.Z)(e)&&(0,o.Z)(t)||(t=l.Z.NONE),(0,o.Z)(i)&&(0,o.Z)(n)||(n=l.Z.NONE);let r=0;return t!==l.Z.NONE&&r++,n===l.Z.RELATIVE_TO_GROUND&&r++,2===r?a.Z.ALL:1===r?a.Z.TOP:void 0};const Z=_},620392:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});var n=i(337968),r=i(545125),o=i(406144),s=i(426468),a=i(197685),c=i(528531),u=i(444147);const l=new n.Z(1,1),h=r.Z.WHITE;function d(e){e=(0,o.Z)(e,o.Z.EMPTY_OBJECT),this._definitionChanged=new a.Z,this._image=void 0,this._imageSubscription=void 0,this._repeat=void 0,this._repeatSubscription=void 0,this._color=void 0,this._colorSubscription=void 0,this._transparent=void 0,this._transparentSubscription=void 0,this.image=e.image,this.repeat=e.repeat,this.color=e.color,this.transparent=e.transparent}Object.defineProperties(d.prototype,{isConstant:{get:function(){return u.Z.isConstant(this._image)&&u.Z.isConstant(this._repeat)}},definitionChanged:{get:function(){return this._definitionChanged}},image:(0,c.Z)("image"),repeat:(0,c.Z)("repeat"),color:(0,c.Z)("color"),transparent:(0,c.Z)("transparent")}),d.prototype.getType=function(e){return"Image"},d.prototype.getValue=function(e,t){return(0,s.Z)(t)||(t={}),t.image=u.Z.getValueOrUndefined(this._image,e),t.repeat=u.Z.getValueOrClonedDefault(this._repeat,e,l,t.repeat),t.color=u.Z.getValueOrClonedDefault(this._color,e,h,t.color),u.Z.getValueOrDefault(this._transparent,e,!1)&&(t.color.alpha=Math.min(.99,t.color.alpha)),t},d.prototype.equals=function(e){return this===e||e instanceof d&&u.Z.equals(this._image,e._image)&&u.Z.equals(this._repeat,e._repeat)&&u.Z.equals(this._color,e._color)&&u.Z.equals(this._transparent,e._transparent)};const f=d},973918:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Mt});var n=i(726307),r=i(878438),o=i(152124),s=i(913216),a=i(337968),c=i(919382),u=i(698907),l=i(449745),h=i(27210),d=i(556592),f=i(545125),p=i(416974),m=i(846748),_=i(406144),Z=i(426468),g=i(446938),y=i(253316),b=i(197685),A=i(44537),w=i(812655),v=i(485083),T=i(651279),C=i(80388),E=i(29699),x=i(40080),S=i(362017),O=i(530109),I=i(847300),D=i(594798),P=i(684066),R=i(943418),B=i(632207),M=i(523501),L=i(795788),N=i(50128),F=i(446680),k=i(796319),U=i(110499),V=i(121015),z=i(234320),H=i(506678),G=i(489676),q=i(111840),j=i(527758),W=i(108840),K=i(78320),Y=i(552759),X=i(755058),J=i(343387),Q=i(293392),$=i(55316),ee=i(783781),te=i(63553),ie=i(722901),ne=i(96753),re=i(914474),oe=i(995183),se=i(320865),ae=i(381544),ce=i(35811),ue=i(563367),le=i(450457),he=i(395948),de=i(511121),fe=i(685596),pe=i(617899),me=i(500590),_e=i(280297),Ze=i(937157);const ge={avi:"video/x-msvideo",bmp:"image/bmp",bz2:"application/x-bzip2",chm:"application/vnd.ms-htmlhelp",css:"text/css",csv:"text/csv",doc:"application/msword",dvi:"application/x-dvi",eps:"application/postscript",flv:"video/x-flv",gif:"image/gif",gz:"application/x-gzip",htm:"text/html",html:"text/html",ico:"image/vnd.microsoft.icon",jnlp:"application/x-java-jnlp-file",jpeg:"image/jpeg",jpg:"image/jpeg",m3u:"audio/x-mpegurl",m4v:"video/mp4",mathml:"application/mathml+xml",mid:"audio/midi",midi:"audio/midi",mov:"video/quicktime",mp3:"audio/mpeg",mp4:"video/mp4",mp4v:"video/mp4",mpeg:"video/mpeg",mpg:"video/mpeg",odp:"application/vnd.oasis.opendocument.presentation",ods:"application/vnd.oasis.opendocument.spreadsheet",odt:"application/vnd.oasis.opendocument.text",ogg:"application/ogg",pdf:"application/pdf",png:"image/png",pps:"application/vnd.ms-powerpoint",ppt:"application/vnd.ms-powerpoint",ps:"application/postscript",qt:"video/quicktime",rdf:"application/rdf+xml",rss:"application/rss+xml",rtf:"application/rtf",svg:"image/svg+xml",swf:"application/x-shockwave-flash",text:"text/plain",tif:"image/tiff",tiff:"image/tiff",txt:"text/plain",wav:"audio/x-wav",wma:"audio/x-ms-wma",wmv:"video/x-ms-wmv",xml:"application/xml",zip:"application/zip",detectFromFilename:function(e){let t=e.toLowerCase();return t=(0,A.Z)(t),ge[t]}};let ye;"undefined"!=typeof DOMParser&&(ye=new DOMParser);const be=new G.Z({stripPrefix:!1,email:!1,replaceFn:function(e){if(!e.protocolUrlMatch)return!1}}),Ae=32,we=2414016,ve=16093e3,Te=[null,void 0,"http://www.opengis.net/kml/2.2","http://earth.google.com/kml/2.2","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.0"],Ce=["http://www.google.com/kml/ext/2.2"],Ee={kml:Te,gx:Ce,atom:["http://www.w3.org/2005/Atom"],kmlgx:Te.concat(Ce)},xe={Document:pt,Folder:function(e,t,i,n){const r=ft(e,t,i),o=(0,d.Z)(i);o.parentEntity=r.entity,pt(0,t,o,n)},Placemark:function(e,t,i,n){const r=ft(e,t,i),o=r.entity,s=r.styleEntity;let a=!1;const c=t.childNodes;for(let t=0,n=c.length;t0||"onExpire"===s||"onStop"===t){const t=Ue(i,"NetworkLinkControl",Ee.kml),n=(0,Z.Z)(t),o=x.Z.now(),h={id:(0,p.Z)(),href:u,cookie:{},lastUpdated:o,updating:!1,entity:r,viewBoundScale:c,needsUpdate:!1,cameraUpdateTime:o};let d=0;if(n&&(h.cookie=(0,B.Z)((0,_.Z)(Ge(t,"cookie",Ee.kml),"")),d=(0,_.Z)(He(t,"minRefreshPeriod",Ee.kml),0)),"onInterval"===s)n&&(l=Math.max(d,l)),h.refreshMode=bt,h.time=l;else if("onExpire"===s){let e;if(n&&(e=Ge(t,"expires",Ee.kml)),(0,Z.Z)(e))try{const t=x.Z.fromIso8601(e),i=x.Z.secondsDifference(t,o);i>0&&i",t);let n,r,o;for(;-1!==t&&tthis._started+this._timeThreshold))return void this._giveUpTime();n=this._nextNode()}this._pop()&&e&&this._process(!0)};const We={maximumRed:void 0,red:void 0,maximumGreen:void 0,green:void 0,maximumBlue:void 0,blue:void 0};function Ke(e,t){if(!(0,Z.Z)(e)||/^\s*$/gm.test(e))return;"#"===e[0]&&(e=e.substring(1));const i=parseInt(e.substring(0,2),16)/255,n=parseInt(e.substring(2,4),16)/255,r=parseInt(e.substring(4,6),16)/255,o=parseInt(e.substring(6,8),16)/255;return t?(o>0?(We.maximumRed=o,We.red=void 0):(We.maximumRed=void 0,We.red=0),r>0?(We.maximumGreen=r,We.green=void 0):(We.maximumGreen=void 0,We.green=0),n>0?(We.maximumBlue=n,We.blue=void 0):(We.maximumBlue=void 0,We.blue=0),We.alpha=i,f.Z.fromRandom(We)):new f.Z(o,r,n,i)}function Ye(e,t,i){const n=Ge(e,t,i);if((0,Z.Z)(n))return Ke(n,"random"===Ge(e,"colorMode",i))}function Xe(){const e=new Y.Z;return e.width=Ae,e.height=Ae,e.scaleByDistance=new O.Z(we,1,ve,.1),e.pixelOffsetScaleByDistance=new O.Z(we,1,ve,.1),e}function Je(){const e=new ue.Z;return e.outline=!0,e.outlineColor=f.Z.WHITE,e}function Qe(){const e=new ae.Z;return e.translucencyByDistance=new O.Z(3e6,1,5e6,0),e.pixelOffset=new a.Z(17,0),e.horizontalOrigin=V.Z.LEFT,e.font="16px sans-serif",e.style=z.Z.FILL_AND_OUTLINE,e}function $e(e,t,i,n,r){let o=Ge(e,"href",Ee.kml);if(!(0,Z.Z)(o)||0===o.length)return;if(0===o.indexOf("root://icons/palette-")){const t=o.charAt(21);let i=(0,_.Z)(He(e,"x",Ee.gx),0),n=(0,_.Z)(He(e,"y",Ee.gx),0);i=Math.min(i/32,7),n=7-Math.min(n/32,7),o="https://maps.google.com/mapfiles/kml/pal"+t+"/icon"+(8*n+i)+".png"}const s=je(o,i,n);if(r){const i=Ge(e,"refreshMode",Ee.kml),n=Ge(e,"viewRefreshMode",Ee.kml);"onInterval"===i||"onExpire"===i?(0,D.Z)("kml-refreshMode-"+i,"KML - Unsupported Icon refreshMode: "+i):"onStop"!==n&&"onRegion"!==n||(0,D.Z)("kml-refreshMode-"+n,"KML - Unsupported Icon viewRefreshMode: "+n);const r=(0,_.Z)(Ge(e,"viewBoundScale",Ee.kml),1),o="onStop"===n?"BBOX=[bboxWest],[bboxSouth],[bboxEast],[bboxNorth]":"",a=(0,_.Z)(Ge(e,"viewFormat",Ee.kml),o),c=Ge(e,"httpQuery",Ee.kml);(0,Z.Z)(a)&&s.setQueryParameters((0,B.Z)(vt(a))),(0,Z.Z)(c)&&s.setQueryParameters((0,B.Z)(vt(c)));const u=t._ellipsoid;return St(s,t._camera,t._canvas,r,t._lastCameraView.bbox,u),s}return s}function et(e,t,i,n,r){let s=He(t,"scale",Ee.kml);const u=He(t,"heading",Ee.kml),l=Ye(t,"color",Ee.kml),h=Ue(t,"Icon",Ee.kml);let d=$e(h,e,n,r,!1);(0,Z.Z)(h)&&!(0,Z.Z)(d)&&(d=!1);const f=He(h,"x",Ee.gx),p=He(h,"y",Ee.gx),m=He(h,"w",Ee.gx),g=He(h,"h",Ee.gx),y=Ue(t,"hotSpot",Ee.kml),b=Fe(y,"x"),A=Fe(y,"y"),w=ke(y,"xunits"),v=ke(y,"yunits");let T,C,E=i.billboard;(0,Z.Z)(E)||(E=Xe(),i.billboard=E),E.image=d,E.scale=s,E.color=l,((0,Z.Z)(f)||(0,Z.Z)(p)||(0,Z.Z)(m)||(0,Z.Z)(g))&&(E.imageSubRegion=new o.Z(f,p,m,g)),(0,Z.Z)(u)&&0!==u&&(E.rotation=S.Z.toRadians(-u),E.alignedAxis=c.Z.UNIT_Z),s=(0,_.Z)(s,1),(0,Z.Z)(b)&&("pixels"===w?T=-b*s:"insetPixels"===w?T=(b-Ae)*s:"fraction"===w&&(T=-b*Ae*s),T+=16*s),(0,Z.Z)(A)&&("pixels"===v?C=A*s:"insetPixels"===v?C=(-A+Ae)*s:"fraction"===v&&(C=A*Ae*s),C-=16*s),((0,Z.Z)(T)||(0,Z.Z)(C))&&(E.pixelOffset=new a.Z(T,C))}function tt(e,t,i,n,r){for(let o=0,s=t.childNodes.length;o:clampToSeaFloor is currently not supported, using :clampToGround."),U.Z.CLAMP_TO_GROUND):"relativeToSeaFloor"===t?((0,D.Z)("kml-gx:altitudeMode-relativeToSeaFloor","KML - :relativeToSeaFloor is currently not supported, using :relativeToGround."),U.Z.RELATIVE_TO_GROUND):((0,Z.Z)(e)?(0,D.Z)("kml-altitudeMode-unknown","KML - Unknown :"+e+", using :CLAMP_TO_GROUND."):(0,D.Z)("kml-gx:altitudeMode-unknown","KML - Unknown :"+t+", using :CLAMP_TO_GROUND."),U.Z.CLAMP_TO_GROUND)}function st(e,t,i){return"relativeToSeaFloor"===i||"absolute"===t||"relativeToGround"===t?e:(((0,Z.Z)(t)&&"clampToGround"!==t||(0,Z.Z)(i)&&"clampToSeaFloor"!==i)&&(0,D.Z)("kml-altitudeMode-unknown","KML - Unknown altitudeMode: "+(0,_.Z)(t,i)),new me.Z(e))}function at(e,t,i,n){let r=t.label;(0,Z.Z)(r)||(r=(0,Z.Z)(i.label)?i.label.clone():Qe(),t.label=r),r.text=t.name;let o=t.billboard;(0,Z.Z)(o)||(o=(0,Z.Z)(i.billboard)?i.billboard.clone():Xe(),t.billboard=o),(0,Z.Z)(o.image)?o.image.getValue()||(o.image=void 0):o.image=e._pinBuilder.fromColor(f.Z.YELLOW,64);let s=1;(0,Z.Z)(o.scale)&&(s=o.scale.getValue(),0!==s?r.pixelOffset=new a.Z(16*s+1,0):(r.pixelOffset=void 0,r.horizontalOrigin=void 0)),(0,Z.Z)(n)&&e._clampToGround&&(o.heightReference=n,r.heightReference=n)}function ct(e,t){let i=e.path;(0,Z.Z)(i)||(i=new ce.Z,i.leadTime=0,e.path=i);const n=t.polyline;(0,Z.Z)(n)&&(i.material=n.material,i.width=n.width)}function ut(e,t,i,r,o){const s=Ue(i,"coordinates",Ee.kml),a=Ge(i,"altitudeMode",Ee.kml),c=Ge(i,"altitudeMode",Ee.gx),u=qe(i,"extrude",Ee.kml),l=qe(i,"tessellate",Ee.kml),h=Me(a,c),d=He(i,"drawOrder",Ee.gx),p=e._ellipsoid,m=Ne(s,p);let g=o.polyline;if(h&&u){const e=new Ze.Z;r.wall=e,e.positions=m;const t=o.polygon;(0,Z.Z)(t)&&(e.fill=t.fill,e.material=t.material),e.outline=!0,(0,Z.Z)(g)?(e.outlineColor=(0,Z.Z)(g.material)?g.material.color:f.Z.WHITE,e.outlineWidth=g.width):(0,Z.Z)(t)&&(e.outlineColor=(0,Z.Z)(t.material)?t.material.color:f.Z.WHITE)}else if(e._clampToGround&&!h&&l){const e=new le.Z;e.clampToGround=!0,r.polyline=e,e.positions=m,(0,Z.Z)(g)?(e.material=(0,Z.Z)(g.material)?g.material.color.getValue(E.Z.MINIMUM_VALUE):f.Z.WHITE,e.width=(0,_.Z)(g.width,1)):(e.material=f.Z.WHITE,e.width=1),e.zIndex=d}else(0,Z.Z)(d)&&(0,D.Z)("kml-gx:drawOrder","KML - gx:drawOrder is not supported in LineStrings when clampToGround is false"),e._clampToGround&&!l&&(0,D.Z)("kml-line-tesselate","Ignoring clampToGround for KML lines without the tessellate flag."),g=(0,Z.Z)(g)?g.clone():new le.Z,r.polyline=g,g.positions=function(e,t,i,n){if(!(0,Z.Z)(e))return;if("relativeToSeaFloor"===i||"absolute"===t||"relativeToGround"===t)return e;((0,Z.Z)(t)&&"clampToGround"!==t||(0,Z.Z)(i)&&"clampToSeaFloor"!==i)&&(0,D.Z)("kml-altitudeMode-unknown","KML - Unknown altitudeMode: "+(0,_.Z)(t,i));const r=e.length;for(let t=0;t0&&(0,D.Z)("kml-gx:angles","KML - gx:angles are not supported in gx:Tracks");const f=Math.min(a.length,u.length),p=[],m=[];for(let e=0;e0&&n.availability.addInterval(new F.Z({start:m[0],stop:m[m.length-1]})),h&&l&&rt(t,n,r),!0},MultiTrack:function(e,t,i,n,r){const o=qe(i,"interpolate",Ee.gx),s=ze(i,"Track",Ee.gx);let a,c,u,l=!1;const h=new _e.Z,d=new k.Z,f=new X.Z,p=e._ellipsoid;for(let e=0,t=s.length;e0)){for(g='',o=0;o";g+="
"+(0,_.Z)(d.displayName,s)+""+(0,_.Z)(d.value,"")+"
"}if(!(0,Z.Z)(g))return;g=be.link(g),dt.innerHTML=g;const y=dt.querySelectorAll("a");for(o=0;o1&&(Pe(dt,"a","href",n),Pe(dt,"link","href",n),Pe(dt,"area","href",n),Pe(dt,"img","src",n),Pe(dt,"iframe","src",n),Pe(dt,"video","src",n),Pe(dt,"audio","src",n),Pe(dt,"source","src",n),Pe(dt,"track","src",n),Pe(dt,"input","src",n),Pe(dt,"embed","src",n),Pe(dt,"script","src",n),Pe(dt,"video","poster",n)),Re(dt,"a","href",r),Re(dt,"link","href",r),Re(dt,"area","href",r),Re(dt,"img","src",r),Re(dt,"iframe","src",r),Re(dt,"video","src",r),Re(dt,"audio","src",r),Re(dt,"source","src",r),Re(dt,"track","src",r),Re(dt,"input","src",r),Re(dt,"embed","src",r),Re(dt,"script","src",r),Re(dt,"video","poster",r);let b='
",dt.innerHTML="",t.description=b}(t,a,u,s,o);const b=e._ellipsoid;return gt(t,a,b),Zt(t,a,b),(0,Z.Z)(Ue(t,"Region",Ee.kml))&&(0,D.Z)("kml-region","KML - Placemark Regions are unsupported"),{entity:a,styleEntity:u}}function pt(e,t,i,n){n.addNodes(t.childNodes,i),n.process()}"undefined"!=typeof document&&(dt=document.createElement("div"));const mt={FlyTo:function(e,t,i){const n=He(t,"duration",Ee.gx),r=Ge(t,"flyToMode",Ee.gx),o={kml:{}};gt(t,o,i),Zt(t,o,i);const s=o.kml.lookAt||o.kml.camera,a=new oe.Z(n,r,s);e.addPlaylistEntry(a)},Wait:function(e,t){const i=He(t,"duration",Ee.gx);e.addPlaylistEntry(new se.Z(i))},SoundCue:_t,AnimatedUpdate:_t,TourControl:_t};function _t(e,t){(0,D.Z)("KML Tour unsupported node "+t.localName)}function Zt(e,t,i){const n=Ue(e,"Camera",Ee.kml);if((0,Z.Z)(n)){const e=(0,_.Z)(He(n,"longitude",Ee.kml),0),r=(0,_.Z)(He(n,"latitude",Ee.kml),0),o=(0,_.Z)(He(n,"altitude",Ee.kml),0),s=(0,_.Z)(He(n,"heading",Ee.kml),0),a=(0,_.Z)(He(n,"tilt",Ee.kml),0),u=(0,_.Z)(He(n,"roll",Ee.kml),0),l=c.Z.fromDegrees(e,r,o,i),h=C.Z.fromDegrees(s,a-90,u);t.kml.camera=new ie.Z(l,h)}}function gt(e,t,i){const n=Ue(e,"LookAt",Ee.kml);if((0,Z.Z)(n)){const e=(0,_.Z)(He(n,"longitude",Ee.kml),0),r=(0,_.Z)(He(n,"latitude",Ee.kml),0),o=(0,_.Z)(He(n,"altitude",Ee.kml),0);let s=He(n,"heading",Ee.kml),a=He(n,"tilt",Ee.kml);const u=(0,_.Z)(He(n,"range",Ee.kml),0);a=S.Z.toRadians((0,_.Z)(a,0)),s=S.Z.toRadians((0,_.Z)(s,0));const l=new T.Z(s,a-S.Z.PI_OVER_TWO,u),h=c.Z.fromDegrees(e,r,o,i);t.kml.lookAt=new ne.Z(h,l)}}function yt(e,t,i,n){e._unsupportedNode.raiseEvent(e,i.parentEntity,t,i.entityCollection,i.styleCollection,i.sourceResource,i.uriResolver),(0,D.Z)("kml-unsupportedFeature-"+t.nodeName,"KML - Unsupported feature: "+t.nodeName)}const bt=0,At=1,wt=2;function vt(e){if(!(0,Z.Z)(e)||0===e.length)return"";const t=e[0];return"&"!==t&&"?"!==t||(e=e.substring(1)),e}const Tt=new M.Z,Ct=new u.Z,Et=new a.Z,xt=new c.Z;function St(e,t,i,n,r,o){function s(e){return e<-S.Z.PI_OVER_TWO?-S.Z.PI_OVER_TWO:e>S.Z.PI_OVER_TWO?S.Z.PI_OVER_TWO:e}function a(e){return e>S.Z.PI?e-S.Z.TWO_PI:e<-S.Z.PI?e+S.Z.TWO_PI:e}let u=(0,I.Z)(e.queryParameters);if(u=u.replace(/%5B/g,"[").replace(/%5D/g,"]"),(0,Z.Z)(t)&&t._mode!==H.Z.MORPHING){let e,l;if(r=(0,_.Z)(r,Tt),(0,Z.Z)(i)&&(Et.x=.5*i.clientWidth,Et.y=.5*i.clientHeight,e=t.pickEllipsoid(Et,o,xt)),(0,Z.Z)(e)?l=o.cartesianToCartographic(e,Ct):(l=M.Z.center(r,Ct),e=o.cartographicToCartesian(l)),(0,Z.Z)(n)&&!S.Z.equalsEpsilon(n,1,S.Z.EPSILON9)){const e=r.width*n*.5,t=r.height*n*.5;r=new M.Z(a(l.longitude-e),s(l.latitude-t),a(l.longitude+e),s(l.latitude+t))}u=u.replace("[bboxWest]",S.Z.toDegrees(r.west).toString()),u=u.replace("[bboxSouth]",S.Z.toDegrees(r.south).toString()),u=u.replace("[bboxEast]",S.Z.toDegrees(r.east).toString()),u=u.replace("[bboxNorth]",S.Z.toDegrees(r.north).toString());const h=S.Z.toDegrees(l.longitude).toString(),d=S.Z.toDegrees(l.latitude).toString();u=u.replace("[lookatLon]",h),u=u.replace("[lookatLat]",d),u=u.replace("[lookatTilt]",S.Z.toDegrees(t.pitch).toString()),u=u.replace("[lookatHeading]",S.Z.toDegrees(t.heading).toString()),u=u.replace("[lookatRange]",c.Z.distance(t.positionWC,e)),u=u.replace("[lookatTerrainLon]",h),u=u.replace("[lookatTerrainLat]",d),u=u.replace("[lookatTerrainAlt]",l.height.toString()),o.cartesianToCartographic(t.positionWC,Ct),u=u.replace("[cameraLon]",S.Z.toDegrees(Ct.longitude).toString()),u=u.replace("[cameraLat]",S.Z.toDegrees(Ct.latitude).toString()),u=u.replace("[cameraAlt]",S.Z.toDegrees(Ct.height).toString());const f=t.frustum,p=f.aspectRatio;let m="",g="";if((0,Z.Z)(p)){const e=S.Z.toDegrees(f.fov);p>1?(m=e,g=e/p):(g=e,m=e*p)}u=u.replace("[horizFov]",m.toString()),u=u.replace("[vertFov]",g.toString())}else u=u.replace("[bboxWest]","-180"),u=u.replace("[bboxSouth]","-90"),u=u.replace("[bboxEast]","180"),u=u.replace("[bboxNorth]","90"),u=u.replace("[lookatLon]",""),u=u.replace("[lookatLat]",""),u=u.replace("[lookatRange]",""),u=u.replace("[lookatTilt]",""),u=u.replace("[lookatHeading]",""),u=u.replace("[lookatTerrainLon]",""),u=u.replace("[lookatTerrainLat]",""),u=u.replace("[lookatTerrainAlt]",""),u=u.replace("[cameraLon]",""),u=u.replace("[cameraLat]",""),u=u.replace("[cameraAlt]",""),u=u.replace("[horizFov]",""),u=u.replace("[vertFov]","");(0,Z.Z)(i)?(u=u.replace("[horizPixels]",i.clientWidth),u=u.replace("[vertPixels]",i.clientHeight)):(u=u.replace("[horizPixels]",""),u=u.replace("[vertPixels]","")),u=u.replace("[terrainEnabled]","1"),u=u.replace("[clientVersion]","1"),u=u.replace("[kmlVersion]","2.2"),u=u.replace("[clientName]","Cesium"),u=u.replace("[language]","English"),e.setQueryParameters((0,B.Z)(u))}function Ot(e,t,i,n,r,o,s){t.removeAll();const a=i.documentElement;let c=Ge("Document"===a.localName?a:Ue(a,"Document",Ee.kml),"name",Ee.kml);(0,Z.Z)(c)||(c=(0,w.Z)(n.getUrlComponent())),(0,Z.Z)(e._name)||(e._name=c);const u=new Dt._DeferredLoading(e),l=new te.Z(e);return j.Z.all(nt(e,i,l,n,!1,r)).then((function(){let a=i.documentElement;if("kml"===a.localName){const e=a.childNodes;for(let t=0;t0;)this._screenOverlays.pop().remove()};const Rt=new r.Z;function Bt(){this.author={name:void 0,uri:void 0,email:void 0},this.link={href:void 0,hreflang:void 0,rel:void 0,type:void 0,title:void 0,length:void 0},this.address=void 0,this.phoneNumber=void 0,this.snippet=void 0,this.extendedData=void 0}Dt.prototype.update=function(e){const t=this._networkLinks;if(0===t.length)return!0;const i=x.Z.now(),n=this;function o(e){const t=e._children,i=t.length;for(let e=0;ee.time&&(r=!0):e.refreshMode===At?x.Z.greaterThan(i,e.time)&&(r=!0):e.refreshMode===wt&&(s&&(e.needsUpdate=!0,e.cameraUpdateTime=i),e.needsUpdate&&x.Z.secondsDifference(i,e.cameraUpdateTime)>=e.time&&(r=!0)),r){o(t),e.updating=!0;const i=new te.Z,r=e.href.clone();r.setQueryParameters(e.cookie);const s=(0,_.Z)(n._ellipsoid,y.Z.WGS84);St(r,n._camera,n._canvas,e.viewBoundScale,a.bbox,s),It(n,i,r,{context:t.id}).then(function(e,t,i,n,r){return function(o){if(!n.contains(t.id))return;let s=!1;const a=Ue(o,"NetworkLinkControl",Ee.kml);let c=0;if((0,Z.Z)(a)){if((0,Z.Z)(Ue(a,"Update",Ee.kml)))return(0,D.Z)("kml-networkLinkControl-update","KML - NetworkLinkControl updates aren't supported."),t.updating=!1,void n.remove(t.id);t.cookie=(0,B.Z)((0,_.Z)(Ge(a,"cookie",Ee.kml),"")),c=(0,_.Z)(He(a,"minRefreshPeriod",Ee.kml),0)}const u=x.Z.now(),l=t.refreshMode;if(l===bt)(0,Z.Z)(a)&&(t.time=Math.max(c,t.time));else if(l===At){let e;if((0,Z.Z)(a)&&(e=Ge(a,"expires",Ee.kml)),(0,Z.Z)(e))try{const i=x.Z.fromIso8601(e),n=x.Z.secondsDifference(i,u);n>0&&n{"use strict";i.d(t,{Z:()=>u});var n=i(426468),r=i(197685);function o(e,t){this.id=t,this.name=e,this.playlistIndex=0,this.playlist=[],this.tourStart=new r.Z,this.tourEnd=new r.Z,this.entryStart=new r.Z,this.entryEnd=new r.Z,this._activeEntries=[]}function s(e){for(let t=e.pop();void 0!==t;t=e.pop())t.stop()}function a(e,t,i){const r=this.playlist[this.playlistIndex];if(r){const n=c.bind(this,e,t,i);if(this._activeEntries.push(r),this.entryStart.raiseEvent(r),r.blocking)r.play(n,e.scene.camera,t);else{const o=this;r.play((function(){o.entryEnd.raiseEvent(r);const e=o._activeEntries.indexOf(r);e>=0&&o._activeEntries.splice(e,1)})),n(e,t,i)}}else(0,n.Z)(i)&&i(!1)}function c(e,t,i,n){const r=this.playlist[this.playlistIndex];if(this.entryEnd.raiseEvent(r,n),n)i(n);else{const n=this._activeEntries.indexOf(r);n>=0&&this._activeEntries.splice(n,1),this.playlistIndex++,a.call(this,e,t,i)}}o.prototype.addPlaylistEntry=function(e){this.playlist.push(e)},o.prototype.play=function(e,t){this.tourStart.raiseEvent();const i=this;a.call(this,e,t,(function(e){i.playlistIndex=0,e||s(i._activeEntries),i.tourEnd.raiseEvent(e)}))},o.prototype.stop=function(){s(this._activeEntries)};const u=o},995183:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(360791),r=i(307260),o=i(426468),s=i(696047);function a(e,t,i){this.type="KmlTourFlyTo",this.blocking=!0,this.activeCamera=null,this.activeCallback=null,this.duration=e,this.view=i,this.flyToMode=t}a.prototype.play=function(e,t,i){if(this.activeCamera=t,(0,o.Z)(e)&&null!==e){const t=this;this.activeCallback=function(i){delete t.activeCallback,delete t.activeCamera,e(!(0,o.Z)(i)&&i)}}const r=this.getCameraOptions(i);if(this.view.headingPitchRoll)t.flyTo(r);else if(this.view.headingPitchRange){const e=new n.Z(this.view.position);t.flyToBoundingSphere(e,r)}},a.prototype.stop=function(){(0,o.Z)(this.activeCamera)&&this.activeCamera.cancelFlight(),(0,o.Z)(this.activeCallback)&&this.activeCallback(!0)},a.prototype.getCameraOptions=function(e){let t={duration:this.duration};return(0,o.Z)(this.activeCallback)&&(t.complete=this.activeCallback),"smooth"===this.flyToMode&&(t.easingFunction=s.Z.LINEAR_NONE),this.view.headingPitchRoll?(t.destination=this.view.position,t.orientation=this.view.headingPitchRoll):this.view.headingPitchRange&&(t.offset=this.view.headingPitchRange),(0,o.Z)(e)&&(t=(0,r.Z)(t,e)),t};const c=a},320865:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(426468);function r(e){this.type="KmlTourWait",this.blocking=!0,this.duration=e,this.timeout=null}r.prototype.play=function(e){const t=this;this.activeCallback=e,this.timeout=setTimeout((function(){delete t.activeCallback,e(!1)}),1e3*this.duration)},r.prototype.stop=function(){clearTimeout(this.timeout),(0,n.Z)(this.activeCallback)&&this.activeCallback(!0)};const o=r},381544:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(406144),r=i(426468),o=i(446938),s=i(197685),a=i(528531);function c(e){this._definitionChanged=new s.Z,this._show=void 0,this._showSubscription=void 0,this._text=void 0,this._textSubscription=void 0,this._font=void 0,this._fontSubscription=void 0,this._style=void 0,this._styleSubscription=void 0,this._scale=void 0,this._scaleSubscription=void 0,this._showBackground=void 0,this._showBackgroundSubscription=void 0,this._backgroundColor=void 0,this._backgroundColorSubscription=void 0,this._backgroundPadding=void 0,this._backgroundPaddingSubscription=void 0,this._pixelOffset=void 0,this._pixelOffsetSubscription=void 0,this._eyeOffset=void 0,this._eyeOffsetSubscription=void 0,this._horizontalOrigin=void 0,this._horizontalOriginSubscription=void 0,this._verticalOrigin=void 0,this._verticalOriginSubscription=void 0,this._heightReference=void 0,this._heightReferenceSubscription=void 0,this._fillColor=void 0,this._fillColorSubscription=void 0,this._outlineColor=void 0,this._outlineColorSubscription=void 0,this._outlineWidth=void 0,this._outlineWidthSubscription=void 0,this._translucencyByDistance=void 0,this._translucencyByDistanceSubscription=void 0,this._pixelOffsetScaleByDistance=void 0,this._pixelOffsetScaleByDistanceSubscription=void 0,this._scaleByDistance=void 0,this._scaleByDistanceSubscription=void 0,this._distanceDisplayCondition=void 0,this._distanceDisplayConditionSubscription=void 0,this._disableDepthTestDistance=void 0,this._disableDepthTestDistanceSubscription=void 0,this.merge((0,n.Z)(e,n.Z.EMPTY_OBJECT))}Object.defineProperties(c.prototype,{definitionChanged:{get:function(){return this._definitionChanged}},show:(0,a.Z)("show"),text:(0,a.Z)("text"),font:(0,a.Z)("font"),style:(0,a.Z)("style"),scale:(0,a.Z)("scale"),showBackground:(0,a.Z)("showBackground"),backgroundColor:(0,a.Z)("backgroundColor"),backgroundPadding:(0,a.Z)("backgroundPadding"),pixelOffset:(0,a.Z)("pixelOffset"),eyeOffset:(0,a.Z)("eyeOffset"),horizontalOrigin:(0,a.Z)("horizontalOrigin"),verticalOrigin:(0,a.Z)("verticalOrigin"),heightReference:(0,a.Z)("heightReference"),fillColor:(0,a.Z)("fillColor"),outlineColor:(0,a.Z)("outlineColor"),outlineWidth:(0,a.Z)("outlineWidth"),translucencyByDistance:(0,a.Z)("translucencyByDistance"),pixelOffsetScaleByDistance:(0,a.Z)("pixelOffsetScaleByDistance"),scaleByDistance:(0,a.Z)("scaleByDistance"),distanceDisplayCondition:(0,a.Z)("distanceDisplayCondition"),disableDepthTestDistance:(0,a.Z)("disableDepthTestDistance")}),c.prototype.clone=function(e){return(0,r.Z)(e)?(e.show=this.show,e.text=this.text,e.font=this.font,e.style=this.style,e.scale=this.scale,e.showBackground=this.showBackground,e.backgroundColor=this.backgroundColor,e.backgroundPadding=this.backgroundPadding,e.pixelOffset=this.pixelOffset,e.eyeOffset=this.eyeOffset,e.horizontalOrigin=this.horizontalOrigin,e.verticalOrigin=this.verticalOrigin,e.heightReference=this.heightReference,e.fillColor=this.fillColor,e.outlineColor=this.outlineColor,e.outlineWidth=this.outlineWidth,e.translucencyByDistance=this.translucencyByDistance,e.pixelOffsetScaleByDistance=this.pixelOffsetScaleByDistance,e.scaleByDistance=this.scaleByDistance,e.distanceDisplayCondition=this.distanceDisplayCondition,e.disableDepthTestDistance=this.disableDepthTestDistance,e):new c(this)},c.prototype.merge=function(e){if(!(0,r.Z)(e))throw new o.Z("source is required.");this.show=(0,n.Z)(this.show,e.show),this.text=(0,n.Z)(this.text,e.text),this.font=(0,n.Z)(this.font,e.font),this.style=(0,n.Z)(this.style,e.style),this.scale=(0,n.Z)(this.scale,e.scale),this.showBackground=(0,n.Z)(this.showBackground,e.showBackground),this.backgroundColor=(0,n.Z)(this.backgroundColor,e.backgroundColor),this.backgroundPadding=(0,n.Z)(this.backgroundPadding,e.backgroundPadding),this.pixelOffset=(0,n.Z)(this.pixelOffset,e.pixelOffset),this.eyeOffset=(0,n.Z)(this.eyeOffset,e.eyeOffset),this.horizontalOrigin=(0,n.Z)(this.horizontalOrigin,e.horizontalOrigin),this.verticalOrigin=(0,n.Z)(this.verticalOrigin,e.verticalOrigin),this.heightReference=(0,n.Z)(this.heightReference,e.heightReference),this.fillColor=(0,n.Z)(this.fillColor,e.fillColor),this.outlineColor=(0,n.Z)(this.outlineColor,e.outlineColor),this.outlineWidth=(0,n.Z)(this.outlineWidth,e.outlineWidth),this.translucencyByDistance=(0,n.Z)(this.translucencyByDistance,e.translucencyByDistance),this.pixelOffsetScaleByDistance=(0,n.Z)(this.pixelOffsetScaleByDistance,e.pixelOffsetScaleByDistance),this.scaleByDistance=(0,n.Z)(this.scaleByDistance,e.scaleByDistance),this.distanceDisplayCondition=(0,n.Z)(this.distanceDisplayCondition,e.distanceDisplayCondition),this.disableDepthTestDistance=(0,n.Z)(this.disableDepthTestDistance,e.disableDepthTestDistance)};const u=c},784482:(e,t,i)=>{"use strict";i.d(t,{Z:()=>H});var n=i(878438),r=i(337968),o=i(919382),s=i(545125),a=i(406144),c=i(426468),u=i(54879),l=i(446938),h=i(744497),d=i(530109),f=i(110499),p=i(121015),m=i(234320),_=i(825497),Z=i(120896),g=i(444147);const y=m.Z.FILL,b=s.Z.WHITE,A=s.Z.BLACK,w=new s.Z(.165,.165,.165,.8),v=new r.Z(7,5),T=r.Z.ZERO,C=o.Z.ZERO,E=f.Z.NONE,x=p.Z.CENTER,S=_.Z.CENTER,O=new o.Z,I=new s.Z,D=new s.Z,P=new s.Z,R=new r.Z,B=new o.Z,M=new r.Z,L=new d.Z,N=new d.Z,F=new d.Z,k=new h.Z;function U(e){this.entity=e,this.label=void 0,this.index=void 0}function V(e,t){if(!(0,c.Z)(e))throw new l.Z("entityCluster is required.");if(!(0,c.Z)(t))throw new l.Z("entityCollection is required.");t.collectionChanged.addEventListener(V.prototype._onCollectionChanged,this),this._cluster=e,this._entityCollection=t,this._items=new n.Z,this._onCollectionChanged(t,t.values,[],[])}function z(e,t,i){(0,c.Z)(e)&&(e.label=void 0,i.removeLabel(t))}V.prototype.update=function(e){if(!(0,c.Z)(e))throw new l.Z("time is required.");const t=this._items.values,i=this._cluster;for(let n=0,r=t.length;n-1;r--)o=t[r],(0,c.Z)(o._label)&&(0,c.Z)(o._position)&&s.set(o.id,new U(o));for(r=n.length-1;r>-1;r--)o=n[r],(0,c.Z)(o._label)&&(0,c.Z)(o._position)?s.contains(o.id)||s.set(o.id,new U(o)):(z(s.get(o.id),o,a),s.remove(o.id));for(r=i.length-1;r>-1;r--)o=i[r],z(s.get(o.id),o,a),s.remove(o.id)};const H=V},332315:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(545125),r=i(426468),o=i(446938),s=i(172795);function a(){o.Z.throwInstantiationError()}Object.defineProperties(a.prototype,{isConstant:{get:o.Z.throwInstantiationError},definitionChanged:{get:o.Z.throwInstantiationError}}),a.prototype.getType=o.Z.throwInstantiationError,a.prototype.getValue=o.Z.throwInstantiationError,a.prototype.equals=o.Z.throwInstantiationError,a.getValue=function(e,t,i){let o;return(0,r.Z)(t)&&(o=t.getType(e),(0,r.Z)(o))?((0,r.Z)(i)&&i.type===o||(i=s.Z.fromType(o)),t.getValue(e,i.uniforms),i):((0,r.Z)(i)&&i.type===s.Z.ColorType||(i=s.Z.fromType(s.Z.ColorType)),n.Z.clone(n.Z.WHITE,i.uniforms.color),i)};const c=a},822638:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(406144),r=i(426468),o=i(446938),s=i(197685),a=i(528531),c=i(299169),u=i(339637);function l(e){return new c.Z(e)}function h(e){this._definitionChanged=new s.Z,this._show=void 0,this._showSubscription=void 0,this._uri=void 0,this._uriSubscription=void 0,this._scale=void 0,this._scaleSubscription=void 0,this._minimumPixelSize=void 0,this._minimumPixelSizeSubscription=void 0,this._maximumScale=void 0,this._maximumScaleSubscription=void 0,this._incrementallyLoadTextures=void 0,this._incrementallyLoadTexturesSubscription=void 0,this._runAnimations=void 0,this._runAnimationsSubscription=void 0,this._clampAnimations=void 0,this._clampAnimationsSubscription=void 0,this._shadows=void 0,this._shadowsSubscription=void 0,this._heightReference=void 0,this._heightReferenceSubscription=void 0,this._silhouetteColor=void 0,this._silhouetteColorSubscription=void 0,this._silhouetteSize=void 0,this._silhouetteSizeSubscription=void 0,this._color=void 0,this._colorSubscription=void 0,this._colorBlendMode=void 0,this._colorBlendModeSubscription=void 0,this._colorBlendAmount=void 0,this._colorBlendAmountSubscription=void 0,this._imageBasedLightingFactor=void 0,this._imageBasedLightingFactorSubscription=void 0,this._lightColor=void 0,this._lightColorSubscription=void 0,this._distanceDisplayCondition=void 0,this._distanceDisplayConditionSubscription=void 0,this._nodeTransformations=void 0,this._nodeTransformationsSubscription=void 0,this._articulations=void 0,this._articulationsSubscription=void 0,this._clippingPlanes=void 0,this._clippingPlanesSubscription=void 0,this.merge((0,n.Z)(e,n.Z.EMPTY_OBJECT))}Object.defineProperties(h.prototype,{definitionChanged:{get:function(){return this._definitionChanged}},show:(0,a.Z)("show"),uri:(0,a.Z)("uri"),scale:(0,a.Z)("scale"),minimumPixelSize:(0,a.Z)("minimumPixelSize"),maximumScale:(0,a.Z)("maximumScale"),incrementallyLoadTextures:(0,a.Z)("incrementallyLoadTextures"),runAnimations:(0,a.Z)("runAnimations"),clampAnimations:(0,a.Z)("clampAnimations"),shadows:(0,a.Z)("shadows"),heightReference:(0,a.Z)("heightReference"),silhouetteColor:(0,a.Z)("silhouetteColor"),silhouetteSize:(0,a.Z)("silhouetteSize"),color:(0,a.Z)("color"),colorBlendMode:(0,a.Z)("colorBlendMode"),colorBlendAmount:(0,a.Z)("colorBlendAmount"),imageBasedLightingFactor:(0,a.Z)("imageBasedLightingFactor"),lightColor:(0,a.Z)("lightColor"),distanceDisplayCondition:(0,a.Z)("distanceDisplayCondition"),nodeTransformations:(0,a.Z)("nodeTransformations",void 0,(function(e){return new u.Z(e,l)})),articulations:(0,a.Z)("articulations",void 0,(function(e){return new u.Z(e)})),clippingPlanes:(0,a.Z)("clippingPlanes")}),h.prototype.clone=function(e){return(0,r.Z)(e)?(e.show=this.show,e.uri=this.uri,e.scale=this.scale,e.minimumPixelSize=this.minimumPixelSize,e.maximumScale=this.maximumScale,e.incrementallyLoadTextures=this.incrementallyLoadTextures,e.runAnimations=this.runAnimations,e.clampAnimations=this.clampAnimations,e.heightReference=this._heightReference,e.silhouetteColor=this.silhouetteColor,e.silhouetteSize=this.silhouetteSize,e.color=this.color,e.colorBlendMode=this.colorBlendMode,e.colorBlendAmount=this.colorBlendAmount,e.imageBasedLightingFactor=this.imageBasedLightingFactor,e.lightColor=this.lightColor,e.distanceDisplayCondition=this.distanceDisplayCondition,e.nodeTransformations=this.nodeTransformations,e.articulations=this.articulations,e.clippingPlanes=this.clippingPlanes,e):new h(this)},h.prototype.merge=function(e){if(!(0,r.Z)(e))throw new o.Z("source is required.");this.show=(0,n.Z)(this.show,e.show),this.uri=(0,n.Z)(this.uri,e.uri),this.scale=(0,n.Z)(this.scale,e.scale),this.minimumPixelSize=(0,n.Z)(this.minimumPixelSize,e.minimumPixelSize),this.maximumScale=(0,n.Z)(this.maximumScale,e.maximumScale),this.incrementallyLoadTextures=(0,n.Z)(this.incrementallyLoadTextures,e.incrementallyLoadTextures),this.runAnimations=(0,n.Z)(this.runAnimations,e.runAnimations),this.clampAnimations=(0,n.Z)(this.clampAnimations,e.clampAnimations),this.shadows=(0,n.Z)(this.shadows,e.shadows),this.heightReference=(0,n.Z)(this.heightReference,e.heightReference),this.silhouetteColor=(0,n.Z)(this.silhouetteColor,e.silhouetteColor),this.silhouetteSize=(0,n.Z)(this.silhouetteSize,e.silhouetteSize),this.color=(0,n.Z)(this.color,e.color),this.colorBlendMode=(0,n.Z)(this.colorBlendMode,e.colorBlendMode),this.colorBlendAmount=(0,n.Z)(this.colorBlendAmount,e.colorBlendAmount),this.imageBasedLightingFactor=(0,n.Z)(this.imageBasedLightingFactor,e.imageBasedLightingFactor),this.lightColor=(0,n.Z)(this.lightColor,e.lightColor),this.distanceDisplayCondition=(0,n.Z)(this.distanceDisplayCondition,e.distanceDisplayCondition),this.clippingPlanes=(0,n.Z)(this.clippingPlanes,e.clippingPlanes);const t=e.nodeTransformations;if((0,r.Z)(t)){const e=this.nodeTransformations;(0,r.Z)(e)?e.merge(t):this.nodeTransformations=new u.Z(t,l)}const i=e.articulations;if((0,r.Z)(i)){const e=this.articulations;(0,r.Z)(e)?e.merge(i):this.articulations=new u.Z(i)}};const d=h},123082:(e,t,i)=>{"use strict";i.d(t,{Z:()=>D});var n=i(878438),r=i(360791),o=i(337968),s=i(545125),a=i(426468),c=i(54879),u=i(446938),l=i(583917),h=i(795788),d=i(567485),f=i(110499),p=i(427570),m=i(723710),_=i(556198),Z=i(120896),g=i(444147);const y=_.Z.ENABLED,b=f.Z.NONE,A=s.Z.RED,w=s.Z.WHITE,v=d.Z.HIGHLIGHT,T=new o.Z(1,1),C=new l.Z,E=new l.Z;function x(e,t){if(!(0,a.Z)(e))throw new u.Z("scene is required.");if(!(0,a.Z)(t))throw new u.Z("entityCollection is required.");t.collectionChanged.addEventListener(x.prototype._onCollectionChanged,this),this._scene=e,this._primitives=e.primitives,this._entityCollection=t,this._modelHash={},this._entitiesToVisualize=new n.Z,this._onCollectionChanged(t,t.values,[],[])}function S(e,t,i,n){const r=i[t.id];(0,a.Z)(r)&&(n.removeAndDestroy(r.modelPrimitive),delete i[t.id])}function O(e,t){const i=t[e.id];(0,a.Z)(i)&&(i.nodeTransformationsScratch={},i.articulationsScratch={})}function I(e,t,i){e.readyPromise.otherwise((function(e){console.error(e),i[t.id].loadFail=!0}))}x.prototype.update=function(e){if(!(0,a.Z)(e))throw new u.Z("time is required.");const t=this._entitiesToVisualize.values,i=this._modelHash,n=this._primitives;for(let r=0,o=t.length;r-1;n--)S(0,e[n],t,i);return(0,c.Z)(this)},x.prototype.getBoundingSphere=function(e,t){if(!(0,a.Z)(e))throw new u.Z("entity is required.");if(!(0,a.Z)(t))throw new u.Z("result is required.");const i=this._modelHash[e.id];if(!(0,a.Z)(i)||i.loadFail)return Z.Z.FAILED;const n=i.modelPrimitive;if(!(0,a.Z)(n)||!n.show)return Z.Z.FAILED;if(!n.ready)return Z.Z.PENDING;if(n.heightReference===f.Z.NONE)r.Z.transform(n.boundingSphere,n.modelMatrix,t);else{if(!(0,a.Z)(n._clampedModelMatrix))return Z.Z.PENDING;r.Z.transform(n.boundingSphere,n._clampedModelMatrix,t)}return Z.Z.DONE},x.prototype._onCollectionChanged=function(e,t,i,n){let r,o;const s=this._entitiesToVisualize,c=this._modelHash,u=this._primitives;for(r=t.length-1;r>-1;r--)o=t[r],(0,a.Z)(o._model)&&(0,a.Z)(o._position)&&s.set(o.id,o);for(r=n.length-1;r>-1;r--)o=n[r],(0,a.Z)(o._model)&&(0,a.Z)(o._position)?(O(o,c),s.set(o.id,o)):(S(0,o,c,u),s.remove(o.id));for(r=i.length-1;r>-1;r--)o=i[r],S(0,o,c,u),s.remove(o.id)};const D=x},299169:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(406144),r=i(426468),o=i(197685),s=i(988131),a=i(528531),c=i(444147);const u=new s.Z;function l(e){e=(0,n.Z)(e,n.Z.EMPTY_OBJECT),this._definitionChanged=new o.Z,this._translation=void 0,this._translationSubscription=void 0,this._rotation=void 0,this._rotationSubscription=void 0,this._scale=void 0,this._scaleSubscription=void 0,this.translation=e.translation,this.rotation=e.rotation,this.scale=e.scale}Object.defineProperties(l.prototype,{isConstant:{get:function(){return c.Z.isConstant(this._translation)&&c.Z.isConstant(this._rotation)&&c.Z.isConstant(this._scale)}},definitionChanged:{get:function(){return this._definitionChanged}},translation:(0,a.Z)("translation"),rotation:(0,a.Z)("rotation"),scale:(0,a.Z)("scale")}),l.prototype.getValue=function(e,t){return(0,r.Z)(t)||(t=new s.Z),t.translation=c.Z.getValueOrClonedDefault(this._translation,e,u.translation,t.translation),t.rotation=c.Z.getValueOrClonedDefault(this._rotation,e,u.rotation,t.rotation),t.scale=c.Z.getValueOrClonedDefault(this._scale,e,u.scale,t.scale),t},l.prototype.equals=function(e){return this===e||e instanceof l&&c.Z.equals(this._translation,e._translation)&&c.Z.equals(this._rotation,e._rotation)&&c.Z.equals(this._scale,e._scale)};const h=l},35811:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(406144),r=i(426468),o=i(446938),s=i(197685),a=i(489351),c=i(528531);function u(e){this._definitionChanged=new s.Z,this._show=void 0,this._showSubscription=void 0,this._leadTime=void 0,this._leadTimeSubscription=void 0,this._trailTime=void 0,this._trailTimeSubscription=void 0,this._width=void 0,this._widthSubscription=void 0,this._resolution=void 0,this._resolutionSubscription=void 0,this._material=void 0,this._materialSubscription=void 0,this._distanceDisplayCondition=void 0,this._distanceDisplayConditionSubscription=void 0,this.merge((0,n.Z)(e,n.Z.EMPTY_OBJECT))}Object.defineProperties(u.prototype,{definitionChanged:{get:function(){return this._definitionChanged}},show:(0,c.Z)("show"),leadTime:(0,c.Z)("leadTime"),trailTime:(0,c.Z)("trailTime"),width:(0,c.Z)("width"),resolution:(0,c.Z)("resolution"),material:(0,a.Z)("material"),distanceDisplayCondition:(0,c.Z)("distanceDisplayCondition")}),u.prototype.clone=function(e){return(0,r.Z)(e)?(e.show=this.show,e.leadTime=this.leadTime,e.trailTime=this.trailTime,e.width=this.width,e.resolution=this.resolution,e.material=this.material,e.distanceDisplayCondition=this.distanceDisplayCondition,e):new u(this)},u.prototype.merge=function(e){if(!(0,r.Z)(e))throw new o.Z("source is required.");this.show=(0,n.Z)(this.show,e.show),this.leadTime=(0,n.Z)(this.leadTime,e.leadTime),this.trailTime=(0,n.Z)(this.trailTime,e.trailTime),this.width=(0,n.Z)(this.width,e.width),this.resolution=(0,n.Z)(this.resolution,e.resolution),this.material=(0,n.Z)(this.material,e.material),this.distanceDisplayCondition=(0,n.Z)(this.distanceDisplayCondition,e.distanceDisplayCondition)};const l=u},466853:(e,t,i)=>{"use strict";i.d(t,{Z:()=>R});var n=i(878438),r=i(919382),o=i(426468),s=i(54879),a=i(446938),c=i(40080),u=i(165373),l=i(583917),h=i(656331),d=i(446680),f=i(358198),p=i(946096),m=i(506678),_=i(755058),Z=i(408335),g=i(332315),y=i(444147),b=i(685596),A=i(617899),w=i(500590),v=i(95355);const T=new d.Z,C=new d.Z,E=new d.Z;function x(e){this.entity=e,this.polyline=void 0,this.index=void 0,this.updater=void 0}function S(e,t,i,n,r,s,a,u){for(;e instanceof b.Z;)e=e.resolvedProperty;return a=e instanceof A.Z?function(e,t,i,n,r,s,a,u,l){let h,d=u;h=e.getValueInReferenceFrame(t,s,l[d]),(0,o.Z)(h)&&(l[d++]=h);let f=!(0,o.Z)(r)||c.Z.lessThanOrEquals(r,t)||c.Z.greaterThanOrEquals(r,i),p=0;const m=n.length;let _=n[p];const Z=i;let g,y,b,A=!1;for(;p0&&!A){const e=n[p+1],t=c.Z.secondsDifference(e,_);A=t>a,A&&(g=Math.ceil(t/a),y=0,b=t/Math.max(g,2),g=Math.max(g-1,1))}if(A&&y0){const i=e.pop();l=this._polylineCollection.get(i),t.index=i}else t.index=this._polylineCollection.length,l=this._polylineCollection.add();l.id=i,t.polyline=l}const d=y.Z.getValueOrDefault(n._resolution,e,60);l.show=!0,l.positions=O(r,s,a,e,this._referenceFrame,d,l.positions.slice()),l.material=g.Z.getValue(e,n._material,l.material),l.width=y.Z.getValueOrDefault(n._width,e,1),l.distanceDisplayCondition=y.Z.getValueOrUndefined(n._distanceDisplayCondition,e,l.distanceDisplayCondition)},D.prototype.removeObject=function(e){const t=e.polyline;(0,o.Z)(t)&&(this._unusedIndexes.push(e.index),e.polyline=void 0,t.show=!1,t.id=void 0,e.index=void 0)},D.prototype.destroy=function(){return this._scene.primitives.remove(this._polylineCollection),(0,s.Z)(this)},P.prototype.update=function(e){if(!(0,o.Z)(e))throw new a.Z("time is required.");const t=this._updaters;for(const i in t)t.hasOwnProperty(i)&&t[i].update(e);const i=this._items.values;if(0===i.length&&(0,o.Z)(this._updaters)&&Object.keys(this._updaters).length>0){for(const e in t)t.hasOwnProperty(e)&&t[e].destroy();this._updaters={}}for(let t=0,n=i.length;t-1;r--)s=t[r],(0,o.Z)(s._path)&&(0,o.Z)(s._position)&&c.set(s.id,new x(s));for(r=n.length-1;r>-1;r--)s=n[r],(0,o.Z)(s._path)&&(0,o.Z)(s._position)?c.contains(s.id)||c.set(s.id,new x(s)):(a=c.get(s.id),(0,o.Z)(a)&&((0,o.Z)(a.updater)&&a.updater.removeObject(a),c.remove(s.id)));for(r=i.length-1;r>-1;r--)s=i[r],a=c.get(s.id),(0,o.Z)(a)&&((0,o.Z)(a.updater)&&a.updater.removeObject(a),c.remove(s.id))},P._subSample=O;const R=P},830511:(e,t,i)=>{"use strict";i.d(t,{Z:()=>N});var n=i(919382),r=i(357299),o=i(545125),s=i(182934),a=i(426468),c=i(446938),u=i(231432),l=i(952254),h=i(29699),d=i(362017),f=i(165373),p=i(583917),m=i(900478),_=i(979790),Z=i(208613),g=i(112546),y=i(578721),b=i(141653),A=i(955701),w=i(710923),v=i(444147);const T=new n.Z,C=new o.Z;function E(e){this.id=e,this.vertexFormat=void 0,this.plane=void 0,this.dimensions=void 0}function x(e,t){w.Z.call(this,{entity:e,scene:t,geometryOptions:new E(e),geometryPropertyName:"plane",observedPropertyNames:["availability","position","orientation","plane"]}),this._onEntityPropertyChanged(e,"plane",e.plane,void 0)}function S(e,t,i){A.Z.call(this,e,t,i)}(0,a.Z)(Object.create)&&(x.prototype=Object.create(w.Z.prototype),x.prototype.constructor=x),x.prototype.createFillGeometryInstance=function(e){if(r.Z.defined("time",e),!this._fillEnabled)throw new c.Z("This instance does not represent a filled geometry.");const t=this._entity,i=t.isAvailable(e);let n,h;const d=new Z.Z(i&&t.isShowing&&this._showProperty.getValue(e)&&this._fillProperty.getValue(e)),f=this._distanceDisplayConditionProperty.getValue(e),p=u.Z.fromDistanceDisplayCondition(f);if(this._materialProperty instanceof b.Z){let t;(0,a.Z)(this._materialProperty.color)&&(this._materialProperty.color.isConstant||i)&&(t=this._materialProperty.color.getValue(e,C)),(0,a.Z)(t)||(t=o.Z.WHITE),h=s.Z.fromColor(t),n={show:d,distanceDisplayCondition:p,color:h}}else n={show:d,distanceDisplayCondition:p};const _=t.plane,g=this._options;let y=t.computeModelMatrix(e);const A=v.Z.getValueOrDefault(_.plane,e,g.plane),w=v.Z.getValueOrUndefined(_.dimensions,e,g.dimensions);return g.plane=A,g.dimensions=w,y=L(A,w,y,y),new l.Z({id:t,geometry:new m.Z(this._options),modelMatrix:y,attributes:n})},x.prototype.createOutlineGeometryInstance=function(e){if(r.Z.defined("time",e),!this._outlineEnabled)throw new c.Z("This instance does not represent an outlined geometry.");const t=this._entity,i=t.isAvailable(e),n=v.Z.getValueOrDefault(this._outlineColorProperty,e,o.Z.BLACK,C),a=this._distanceDisplayConditionProperty.getValue(e),h=t.plane,d=this._options;let f=t.computeModelMatrix(e);const p=v.Z.getValueOrDefault(h.plane,e,d.plane),m=v.Z.getValueOrUndefined(h.dimensions,e,d.dimensions);return d.plane=p,d.dimensions=m,f=L(p,m,f,f),new l.Z({id:t,geometry:new _.Z,modelMatrix:f,attributes:{show:new Z.Z(i&&t.isShowing&&this._showProperty.getValue(e)&&this._showOutlineProperty.getValue(e)),color:s.Z.fromColor(n),distanceDisplayCondition:u.Z.fromDistanceDisplayCondition(a)}})},x.prototype._isHidden=function(e,t){return!(0,a.Z)(t.plane)||!(0,a.Z)(t.dimensions)||!(0,a.Z)(e.position)||w.Z.prototype._isHidden.call(this,e,t)},x.prototype._getIsClosed=function(e){return!1},x.prototype._isDynamic=function(e,t){return!(e.position.isConstant&&v.Z.isConstant(e.orientation)&&t.plane.isConstant&&t.dimensions.isConstant&&v.Z.isConstant(t.outlineWidth))},x.prototype._setStaticOptions=function(e,t){const i=this._materialProperty instanceof b.Z,n=this._options;n.vertexFormat=i?y.Z.VERTEX_FORMAT:g.Z.MaterialSupport.TEXTURED.vertexFormat,n.plane=t.plane.getValue(h.Z.MINIMUM_VALUE,n.plane),n.dimensions=t.dimensions.getValue(h.Z.MINIMUM_VALUE,n.dimensions)},x.DynamicGeometryUpdater=S,(0,a.Z)(Object.create)&&(S.prototype=Object.create(A.Z.prototype),S.prototype.constructor=S),S.prototype._isHidden=function(e,t,i){const n=this._options,r=v.Z.getValueOrUndefined(e.position,i,T);return!(0,a.Z)(r)||!(0,a.Z)(n.plane)||!(0,a.Z)(n.dimensions)||A.Z.prototype._isHidden.call(this,e,t,i)},S.prototype._setOptions=function(e,t,i){const n=this._options;n.plane=v.Z.getValueOrDefault(t.plane,i,n.plane),n.dimensions=v.Z.getValueOrUndefined(t.dimensions,i,n.dimensions)};const O=new n.Z,I=new n.Z,D=new n.Z,P=new n.Z,R=new f.Z,B=new f.Z,M=new p.Z;function L(e,t,i,r){const o=e.normal,s=e.distance,a=n.Z.multiplyByScalar(o,-s,D);let c=n.Z.clone(n.Z.UNIT_Z,I);d.Z.equalsEpsilon(Math.abs(n.Z.dot(c,o)),1,d.Z.EPSILON8)&&(c=n.Z.clone(n.Z.UNIT_Y,c));const u=n.Z.cross(c,o,O);c=n.Z.cross(o,u,c),n.Z.normalize(u,u),n.Z.normalize(c,c);const l=R;f.Z.setColumn(l,0,u,l),f.Z.setColumn(l,1,c,l),f.Z.setColumn(l,2,o,l);const h=n.Z.fromElements(t.x,t.y,1,P),m=f.Z.multiplyByScale(l,h,B),_=p.Z.fromRotationTranslation(m,a,M);return p.Z.multiplyTransformation(i,_,r)}x.createPrimitiveMatrix=L;const N=x},605837:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(406144),r=i(426468),o=i(446938),s=i(197685),a=i(489351),c=i(528531);function u(e){this._definitionChanged=new s.Z,this._show=void 0,this._showSubscription=void 0,this._plane=void 0,this._planeSubscription=void 0,this._dimensions=void 0,this._dimensionsSubscription=void 0,this._fill=void 0,this._fillSubscription=void 0,this._material=void 0,this._materialSubscription=void 0,this._outline=void 0,this._outlineSubscription=void 0,this._outlineColor=void 0,this._outlineColorSubscription=void 0,this._outlineWidth=void 0,this._outlineWidthSubscription=void 0,this._shadows=void 0,this._shadowsSubscription=void 0,this._distanceDisplayCondition=void 0,this._distanceDisplayConditionSubscription=void 0,this.merge((0,n.Z)(e,n.Z.EMPTY_OBJECT))}Object.defineProperties(u.prototype,{definitionChanged:{get:function(){return this._definitionChanged}},show:(0,c.Z)("show"),plane:(0,c.Z)("plane"),dimensions:(0,c.Z)("dimensions"),fill:(0,c.Z)("fill"),material:(0,a.Z)("material"),outline:(0,c.Z)("outline"),outlineColor:(0,c.Z)("outlineColor"),outlineWidth:(0,c.Z)("outlineWidth"),shadows:(0,c.Z)("shadows"),distanceDisplayCondition:(0,c.Z)("distanceDisplayCondition")}),u.prototype.clone=function(e){return(0,r.Z)(e)?(e.show=this.show,e.plane=this.plane,e.dimensions=this.dimensions,e.fill=this.fill,e.material=this.material,e.outline=this.outline,e.outlineColor=this.outlineColor,e.outlineWidth=this.outlineWidth,e.shadows=this.shadows,e.distanceDisplayCondition=this.distanceDisplayCondition,e):new u(this)},u.prototype.merge=function(e){if(!(0,r.Z)(e))throw new o.Z("source is required.");this.show=(0,n.Z)(this.show,e.show),this.plane=(0,n.Z)(this.plane,e.plane),this.dimensions=(0,n.Z)(this.dimensions,e.dimensions),this.fill=(0,n.Z)(this.fill,e.fill),this.material=(0,n.Z)(this.material,e.material),this.outline=(0,n.Z)(this.outline,e.outline),this.outlineColor=(0,n.Z)(this.outlineColor,e.outlineColor),this.outlineWidth=(0,n.Z)(this.outlineWidth,e.outlineWidth),this.shadows=(0,n.Z)(this.shadows,e.shadows),this.distanceDisplayCondition=(0,n.Z)(this.distanceDisplayCondition,e.distanceDisplayCondition)};const l=u},717178:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(406144),r=i(426468),o=i(446938),s=i(197685),a=i(528531);function c(e){this._definitionChanged=new s.Z,this._show=void 0,this._showSubscription=void 0,this._pixelSize=void 0,this._pixelSizeSubscription=void 0,this._heightReference=void 0,this._heightReferenceSubscription=void 0,this._color=void 0,this._colorSubscription=void 0,this._outlineColor=void 0,this._outlineColorSubscription=void 0,this._outlineWidth=void 0,this._outlineWidthSubscription=void 0,this._scaleByDistance=void 0,this._scaleByDistanceSubscription=void 0,this._translucencyByDistance=void 0,this._translucencyByDistanceSubscription=void 0,this._distanceDisplayCondition=void 0,this._distanceDisplayConditionSubscription=void 0,this._disableDepthTestDistance=void 0,this._disableDepthTestDistanceSubscription=void 0,this.merge((0,n.Z)(e,n.Z.EMPTY_OBJECT))}Object.defineProperties(c.prototype,{definitionChanged:{get:function(){return this._definitionChanged}},show:(0,a.Z)("show"),pixelSize:(0,a.Z)("pixelSize"),heightReference:(0,a.Z)("heightReference"),color:(0,a.Z)("color"),outlineColor:(0,a.Z)("outlineColor"),outlineWidth:(0,a.Z)("outlineWidth"),scaleByDistance:(0,a.Z)("scaleByDistance"),translucencyByDistance:(0,a.Z)("translucencyByDistance"),distanceDisplayCondition:(0,a.Z)("distanceDisplayCondition"),disableDepthTestDistance:(0,a.Z)("disableDepthTestDistance")}),c.prototype.clone=function(e){return(0,r.Z)(e)?(e.show=this.show,e.pixelSize=this.pixelSize,e.heightReference=this.heightReference,e.color=this.color,e.outlineColor=this.outlineColor,e.outlineWidth=this.outlineWidth,e.scaleByDistance=this.scaleByDistance,e.translucencyByDistance=this._translucencyByDistance,e.distanceDisplayCondition=this.distanceDisplayCondition,e.disableDepthTestDistance=this.disableDepthTestDistance,e):new c(this)},c.prototype.merge=function(e){if(!(0,r.Z)(e))throw new o.Z("source is required.");this.show=(0,n.Z)(this.show,e.show),this.pixelSize=(0,n.Z)(this.pixelSize,e.pixelSize),this.heightReference=(0,n.Z)(this.heightReference,e.heightReference),this.color=(0,n.Z)(this.color,e.color),this.outlineColor=(0,n.Z)(this.outlineColor,e.outlineColor),this.outlineWidth=(0,n.Z)(this.outlineWidth,e.outlineWidth),this.scaleByDistance=(0,n.Z)(this.scaleByDistance,e.scaleByDistance),this.translucencyByDistance=(0,n.Z)(this._translucencyByDistance,e.translucencyByDistance),this.distanceDisplayCondition=(0,n.Z)(this.distanceDisplayCondition,e.distanceDisplayCondition),this.disableDepthTestDistance=(0,n.Z)(this.disableDepthTestDistance,e.disableDepthTestDistance)};const u=c},387666:(e,t,i)=>{"use strict";i.d(t,{Z:()=>E});var n=i(878438),r=i(919382),o=i(545125),s=i(426468),a=i(54879),c=i(446938),u=i(744497),l=i(530109),h=i(440778),d=i(110499),f=i(120896),p=i(444147);const m=o.Z.WHITE,_=o.Z.BLACK,Z=new o.Z,g=new r.Z,y=new o.Z,b=new l.Z,A=new l.Z,w=new u.Z;function v(e){this.entity=e,this.pointPrimitive=void 0,this.billboard=void 0,this.color=void 0,this.outlineColor=void 0,this.pixelSize=void 0,this.outlineWidth=void 0}function T(e,t){if(!(0,s.Z)(e))throw new c.Z("entityCluster is required.");if(!(0,s.Z)(t))throw new c.Z("entityCollection is required.");t.collectionChanged.addEventListener(T.prototype._onCollectionChanged,this),this._cluster=e,this._entityCollection=t,this._items=new n.Z,this._onCollectionChanged(t,t.values,[],[])}function C(e,t,i){if((0,s.Z)(e)){const n=e.pointPrimitive;if((0,s.Z)(n))return e.pointPrimitive=void 0,void i.removePoint(t);const r=e.billboard;(0,s.Z)(r)&&(e.billboard=void 0,i.removeBillboard(t))}}T.prototype.update=function(e){if(!(0,s.Z)(e))throw new c.Z("time is required.");const t=this._items.values,i=this._cluster;for(let n=0,a=t.length;n0?(f.scale=1,x=x||n!==a.outlineWidth||r!==a.pixelSize||!o.Z.equals(t,a.color)||!o.Z.equals(i,a.outlineColor)):(f.scale=r/50,r=50,x=x||n!==a.outlineWidth||!o.Z.equals(t,a.color)||!o.Z.equals(i,a.outlineColor)),x){a.color=o.Z.clone(t,a.color),a.outlineColor=o.Z.clone(i,a.outlineColor),a.pixelSize=r,a.outlineWidth=n;const e=t.alpha,s=t.toCssColorString(),c=i.toCssColorString(),u=JSON.stringify([s,r,c,n]);f.setImage(u,(0,h.Z)(e,s,c,n,r))}S&&f._updateClamping()}}return!0},T.prototype.getBoundingSphere=function(e,t){if(!(0,s.Z)(e))throw new c.Z("entity is required.");if(!(0,s.Z)(t))throw new c.Z("result is required.");const i=this._items.get(e.id);if(!(0,s.Z)(i)||!(0,s.Z)(i.pointPrimitive)&&!(0,s.Z)(i.billboard))return f.Z.FAILED;if((0,s.Z)(i.pointPrimitive))t.center=r.Z.clone(i.pointPrimitive.position,t.center);else{const e=i.billboard;if(!(0,s.Z)(e._clampedPosition))return f.Z.PENDING;t.center=r.Z.clone(e._clampedPosition,t.center)}return t.radius=0,f.Z.DONE},T.prototype.isDestroyed=function(){return!1},T.prototype.destroy=function(){this._entityCollection.collectionChanged.removeEventListener(T.prototype._onCollectionChanged,this);const e=this._entityCollection.values;for(let t=0;t-1;r--)o=t[r],(0,s.Z)(o._point)&&(0,s.Z)(o._position)&&a.set(o.id,new v(o));for(r=n.length-1;r>-1;r--)o=n[r],(0,s.Z)(o._point)&&(0,s.Z)(o._position)?a.contains(o.id)||a.set(o.id,new v(o)):(C(a.get(o.id),o,c),a.remove(o.id));for(r=i.length-1;r>-1;r--)o=i[r],C(a.get(o.id),o,c),a.remove(o.id)};const E=T},960446:(e,t,i)=>{"use strict";i.d(t,{Z:()=>H});var n=i(140537),r=i(726307),o=i(337968),s=i(919382),a=i(357299),c=i(545125),u=i(182934),l=i(528233),h=i(770919),d=i(426468),f=i(446938),p=i(231432),m=i(460117),_=i(952254),Z=i(29699),g=i(81203),y=i(594798),b=i(357385),A=i(697358),w=i(523501),v=i(208613),T=i(110499),C=i(112546),E=i(578721),x=i(141653),S=i(955701),O=i(710923),I=i(585156),D=i(444147);const P="Entity polygons cannot have both height and perPositionHeight. height will be ignored",R="heightReference is not supported for entity polygons with perPositionHeight. heightReference will be ignored",B=new c.Z,M=s.Z.ZERO,L=new s.Z,N=new w.Z,F=[],k=new o.Z;function U(e){this.id=e,this.vertexFormat=void 0,this.polygonHierarchy=void 0,this.perPositionHeight=void 0,this.closeTop=void 0,this.closeBottom=void 0,this.height=void 0,this.extrudedHeight=void 0,this.granularity=void 0,this.stRotation=void 0,this.offsetAttribute=void 0,this.arcType=void 0}function V(e,t){I.Z.call(this,{entity:e,scene:t,geometryOptions:new U(e),geometryPropertyName:"polygon",observedPropertyNames:["availability","polygon"]}),this._onEntityPropertyChanged(e,"polygon",e.polygon,void 0)}function z(e,t,i){S.Z.call(this,e,t,i)}(0,d.Z)(Object.create)&&(V.prototype=Object.create(I.Z.prototype),V.prototype.constructor=V),V.prototype.createFillGeometryInstance=function(e){if(a.Z.defined("time",e),!this._fillEnabled)throw new f.Z("This instance does not represent a filled geometry.");const t=this._entity,i=t.isAvailable(e),n=this._options,r={show:new v.Z(i&&t.isShowing&&this._showProperty.getValue(e)&&this._fillProperty.getValue(e)),distanceDisplayCondition:p.Z.fromDistanceDisplayCondition(this._distanceDisplayConditionProperty.getValue(e)),offset:void 0,color:void 0};if(this._materialProperty instanceof x.Z){let t;(0,d.Z)(this._materialProperty.color)&&(this._materialProperty.color.isConstant||i)&&(t=this._materialProperty.color.getValue(e,B)),(0,d.Z)(t)||(t=c.Z.WHITE),r.color=u.Z.fromColor(t)}let o;return(0,d.Z)(n.offsetAttribute)&&(r.offset=g.Z.fromCartesian3(D.Z.getValueOrDefault(this._terrainOffsetProperty,e,M,L))),o=n.perPositionHeight&&!(0,d.Z)(n.extrudedHeight)?new l.Z(n):new b.Z(n),new _.Z({id:t,geometry:o,attributes:r})},V.prototype.createOutlineGeometryInstance=function(e){if(a.Z.defined("time",e),!this._outlineEnabled)throw new f.Z("This instance does not represent an outlined geometry.");const t=this._entity,i=t.isAvailable(e),n=this._options,r=D.Z.getValueOrDefault(this._outlineColorProperty,e,c.Z.BLACK,B),o=this._distanceDisplayConditionProperty.getValue(e),s={show:new v.Z(i&&t.isShowing&&this._showProperty.getValue(e)&&this._showOutlineProperty.getValue(e)),color:u.Z.fromColor(r),distanceDisplayCondition:p.Z.fromDistanceDisplayCondition(o),offset:void 0};let l;return(0,d.Z)(n.offsetAttribute)&&(s.offset=g.Z.fromCartesian3(D.Z.getValueOrDefault(this._terrainOffsetProperty,e,M,L))),l=n.perPositionHeight&&!(0,d.Z)(n.extrudedHeight)?new h.Z(n):new A.Z(n),new _.Z({id:t,geometry:l,attributes:s})},V.prototype._computeCenter=function(e,t){const i=D.Z.getValueOrUndefined(this._entity.polygon.hierarchy,e);if(!(0,d.Z)(i))return;const n=i.positions;if(0===n.length)return;const r=this._scene.mapProjection.ellipsoid,s=m.Z.fromPoints(n,r),a=s.projectPointsOntoPlane(n,F),c=a.length;let u=0,l=c-1,h=new o.Z;for(let e=0;e{"use strict";i.d(t,{Z:()=>d});var n=i(406144),r=i(426468),o=i(446938),s=i(197685),a=i(943418),c=i(243110),u=i(489351),l=i(528531);function h(e){this._definitionChanged=new s.Z,this._show=void 0,this._showSubscription=void 0,this._hierarchy=void 0,this._hierarchySubscription=void 0,this._height=void 0,this._heightSubscription=void 0,this._heightReference=void 0,this._heightReferenceSubscription=void 0,this._extrudedHeight=void 0,this._extrudedHeightSubscription=void 0,this._extrudedHeightReference=void 0,this._extrudedHeightReferenceSubscription=void 0,this._stRotation=void 0,this._stRotationSubscription=void 0,this._granularity=void 0,this._granularitySubscription=void 0,this._fill=void 0,this._fillSubscription=void 0,this._material=void 0,this._materialSubscription=void 0,this._outline=void 0,this._outlineSubscription=void 0,this._outlineColor=void 0,this._outlineColorSubscription=void 0,this._outlineWidth=void 0,this._outlineWidthSubscription=void 0,this._perPositionHeight=void 0,this._perPositionHeightSubscription=void 0,this._closeTop=void 0,this._closeTopSubscription=void 0,this._closeBottom=void 0,this._closeBottomSubscription=void 0,this._arcType=void 0,this._arcTypeSubscription=void 0,this._shadows=void 0,this._shadowsSubscription=void 0,this._distanceDisplayCondition=void 0,this._distanceDisplayConditionSubscription=void 0,this._classificationType=void 0,this._classificationTypeSubscription=void 0,this._zIndex=void 0,this._zIndexSubscription=void 0,this.merge((0,n.Z)(e,n.Z.EMPTY_OBJECT))}Object.defineProperties(h.prototype,{definitionChanged:{get:function(){return this._definitionChanged}},show:(0,l.Z)("show"),hierarchy:(0,l.Z)("hierarchy",void 0,(function(e){return Array.isArray(e)&&(e=new a.Z(e)),new c.Z(e)})),height:(0,l.Z)("height"),heightReference:(0,l.Z)("heightReference"),extrudedHeight:(0,l.Z)("extrudedHeight"),extrudedHeightReference:(0,l.Z)("extrudedHeightReference"),stRotation:(0,l.Z)("stRotation"),granularity:(0,l.Z)("granularity"),fill:(0,l.Z)("fill"),material:(0,u.Z)("material"),outline:(0,l.Z)("outline"),outlineColor:(0,l.Z)("outlineColor"),outlineWidth:(0,l.Z)("outlineWidth"),perPositionHeight:(0,l.Z)("perPositionHeight"),closeTop:(0,l.Z)("closeTop"),closeBottom:(0,l.Z)("closeBottom"),arcType:(0,l.Z)("arcType"),shadows:(0,l.Z)("shadows"),distanceDisplayCondition:(0,l.Z)("distanceDisplayCondition"),classificationType:(0,l.Z)("classificationType"),zIndex:(0,l.Z)("zIndex")}),h.prototype.clone=function(e){return(0,r.Z)(e)?(e.show=this.show,e.hierarchy=this.hierarchy,e.height=this.height,e.heightReference=this.heightReference,e.extrudedHeight=this.extrudedHeight,e.extrudedHeightReference=this.extrudedHeightReference,e.stRotation=this.stRotation,e.granularity=this.granularity,e.fill=this.fill,e.material=this.material,e.outline=this.outline,e.outlineColor=this.outlineColor,e.outlineWidth=this.outlineWidth,e.perPositionHeight=this.perPositionHeight,e.closeTop=this.closeTop,e.closeBottom=this.closeBottom,e.arcType=this.arcType,e.shadows=this.shadows,e.distanceDisplayCondition=this.distanceDisplayCondition,e.classificationType=this.classificationType,e.zIndex=this.zIndex,e):new h(this)},h.prototype.merge=function(e){if(!(0,r.Z)(e))throw new o.Z("source is required.");this.show=(0,n.Z)(this.show,e.show),this.hierarchy=(0,n.Z)(this.hierarchy,e.hierarchy),this.height=(0,n.Z)(this.height,e.height),this.heightReference=(0,n.Z)(this.heightReference,e.heightReference),this.extrudedHeight=(0,n.Z)(this.extrudedHeight,e.extrudedHeight),this.extrudedHeightReference=(0,n.Z)(this.extrudedHeightReference,e.extrudedHeightReference),this.stRotation=(0,n.Z)(this.stRotation,e.stRotation),this.granularity=(0,n.Z)(this.granularity,e.granularity),this.fill=(0,n.Z)(this.fill,e.fill),this.material=(0,n.Z)(this.material,e.material),this.outline=(0,n.Z)(this.outline,e.outline),this.outlineColor=(0,n.Z)(this.outlineColor,e.outlineColor),this.outlineWidth=(0,n.Z)(this.outlineWidth,e.outlineWidth),this.perPositionHeight=(0,n.Z)(this.perPositionHeight,e.perPositionHeight),this.closeTop=(0,n.Z)(this.closeTop,e.closeTop),this.closeBottom=(0,n.Z)(this.closeBottom,e.closeBottom),this.arcType=(0,n.Z)(this.arcType,e.arcType),this.shadows=(0,n.Z)(this.shadows,e.shadows),this.distanceDisplayCondition=(0,n.Z)(this.distanceDisplayCondition,e.distanceDisplayCondition),this.classificationType=(0,n.Z)(this.classificationType,e.classificationType),this.zIndex=(0,n.Z)(this.zIndex,e.zIndex)};const d=h},682448:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(545125),r=i(426468),o=i(197685),s=i(528531),a=i(444147);function c(e){this._definitionChanged=new o.Z,this._color=void 0,this._colorSubscription=void 0,this.color=e}Object.defineProperties(c.prototype,{isConstant:{get:function(){return a.Z.isConstant(this._color)}},definitionChanged:{get:function(){return this._definitionChanged}},color:(0,s.Z)("color")}),c.prototype.getType=function(e){return"PolylineArrow"},c.prototype.getValue=function(e,t){return(0,r.Z)(t)||(t={}),t.color=a.Z.getValueOrClonedDefault(this._color,e,n.Z.WHITE,t.color),t},c.prototype.equals=function(e){return this===e||e instanceof c&&a.Z.equals(this._color,e._color)};const u=c},921279:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(545125),r=i(406144),o=i(426468),s=i(197685),a=i(528531),c=i(444147);const u=n.Z.WHITE,l=n.Z.TRANSPARENT;function h(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),this._definitionChanged=new s.Z,this._color=void 0,this._colorSubscription=void 0,this._gapColor=void 0,this._gapColorSubscription=void 0,this._dashLength=void 0,this._dashLengthSubscription=void 0,this._dashPattern=void 0,this._dashPatternSubscription=void 0,this.color=e.color,this.gapColor=e.gapColor,this.dashLength=e.dashLength,this.dashPattern=e.dashPattern}Object.defineProperties(h.prototype,{isConstant:{get:function(){return c.Z.isConstant(this._color)&&c.Z.isConstant(this._gapColor)&&c.Z.isConstant(this._dashLength)&&c.Z.isConstant(this._dashPattern)}},definitionChanged:{get:function(){return this._definitionChanged}},color:(0,a.Z)("color"),gapColor:(0,a.Z)("gapColor"),dashLength:(0,a.Z)("dashLength"),dashPattern:(0,a.Z)("dashPattern")}),h.prototype.getType=function(e){return"PolylineDash"},h.prototype.getValue=function(e,t){return(0,o.Z)(t)||(t={}),t.color=c.Z.getValueOrClonedDefault(this._color,e,u,t.color),t.gapColor=c.Z.getValueOrClonedDefault(this._gapColor,e,l,t.gapColor),t.dashLength=c.Z.getValueOrDefault(this._dashLength,e,16,t.dashLength),t.dashPattern=c.Z.getValueOrDefault(this._dashPattern,e,255,t.dashPattern),t},h.prototype.equals=function(e){return this===e||e instanceof h&&c.Z.equals(this._color,e._color)&&c.Z.equals(this._gapColor,e._gapColor)&&c.Z.equals(this._dashLength,e._dashLength)&&c.Z.equals(this._dashPattern,e._dashPattern)};const d=h},851969:(e,t,i)=>{"use strict";i.d(t,{Z:()=>K});var n=i(726307),r=i(360791),o=i(357299),s=i(545125),a=i(182934),c=i(406144),u=i(426468),l=i(54879),h=i(446938),d=i(744497),f=i(231432),p=i(197685),m=i(952254),_=i(542787),Z=i(29699),g=i(594798),y=i(370530),b=i(372944),A=i(208613),w=i(55316),v=i(576049),T=i(284283),C=i(946096),E=i(843658),x=i(957049),S=i(556198),O=i(120896),I=i(141653),D=i(243110),P=i(332315),R=i(444147);const B=new D.Z(0),M={},L=new s.Z,N=new I.Z(s.Z.WHITE),F=new D.Z(!0),k=new D.Z(S.Z.DISABLED),U=new D.Z(new d.Z),V=new D.Z(v.Z.BOTH);function z(){this.vertexFormat=void 0,this.positions=void 0,this.width=void 0,this.arcType=void 0,this.granularity=void 0}function H(){this.positions=void 0,this.width=void 0,this.arcType=void 0,this.granularity=void 0}function G(e,t){if(!(0,u.Z)(e))throw new h.Z("entity is required");if(!(0,u.Z)(t))throw new h.Z("scene is required");this._entity=e,this._scene=t,this._entitySubscription=e.definitionChanged.addEventListener(G.prototype._onEntityPropertyChanged,this),this._fillEnabled=!1,this._dynamic=!1,this._geometryChanged=new p.Z,this._showProperty=void 0,this._materialProperty=void 0,this._shadowsProperty=void 0,this._distanceDisplayConditionProperty=void 0,this._classificationTypeProperty=void 0,this._depthFailMaterialProperty=void 0,this._geometryOptions=new z,this._groundGeometryOptions=new H,this._id="polyline-"+e.id,this._clampToGround=!1,this._supportsPolylinesOnTerrain=w.Z.supportsPolylinesOnTerrain(t),this._zIndex=0,this._onEntityPropertyChanged(e,"polyline",e.polyline,void 0)}Object.defineProperties(G.prototype,{id:{get:function(){return this._id}},entity:{get:function(){return this._entity}},fillEnabled:{get:function(){return this._fillEnabled}},hasConstantFill:{get:function(){return!this._fillEnabled||!(0,u.Z)(this._entity.availability)&&R.Z.isConstant(this._showProperty)}},fillMaterialProperty:{get:function(){return this._materialProperty}},depthFailMaterialProperty:{get:function(){return this._depthFailMaterialProperty}},outlineEnabled:{value:!1},hasConstantOutline:{value:!0},outlineColorProperty:{value:void 0},shadowsProperty:{get:function(){return this._shadowsProperty}},distanceDisplayConditionProperty:{get:function(){return this._distanceDisplayConditionProperty}},classificationTypeProperty:{get:function(){return this._classificationTypeProperty}},isDynamic:{get:function(){return this._dynamic}},isClosed:{value:!1},geometryChanged:{get:function(){return this._geometryChanged}},arcType:{get:function(){return this._arcType}},clampToGround:{get:function(){return this._clampToGround&&this._supportsPolylinesOnTerrain}},zIndex:{get:function(){return this._zIndex}}}),G.prototype.isOutlineVisible=function(e){return!1},G.prototype.isFilled=function(e){const t=this._entity,i=this._fillEnabled&&t.isAvailable(e)&&this._showProperty.getValue(e);return(0,c.Z)(i,!1)},G.prototype.createFillGeometryInstance=function(e){if(!(0,u.Z)(e))throw new h.Z("time is required.");if(!this._fillEnabled)throw new h.Z("This instance does not represent a filled geometry.");const t=this._entity,i=t.isAvailable(e),n=new A.Z(i&&t.isShowing&&this._showProperty.getValue(e)),r=this._distanceDisplayConditionProperty.getValue(e),o={show:n,distanceDisplayCondition:f.Z.fromDistanceDisplayCondition(r)};let c;return this._materialProperty instanceof I.Z&&((0,u.Z)(this._materialProperty.color)&&(this._materialProperty.color.isConstant||i)&&(c=this._materialProperty.color.getValue(e,L)),(0,u.Z)(c)||(c=s.Z.WHITE),o.color=a.Z.fromColor(c)),this.clampToGround?new m.Z({id:t,geometry:new _.Z(this._groundGeometryOptions),attributes:o}):((0,u.Z)(this._depthFailMaterialProperty)&&this._depthFailMaterialProperty instanceof I.Z&&((0,u.Z)(this._depthFailMaterialProperty.color)&&(this._depthFailMaterialProperty.color.isConstant||i)&&(c=this._depthFailMaterialProperty.color.getValue(e,L)),(0,u.Z)(c)||(c=s.Z.WHITE),o.depthFailColor=a.Z.fromColor(c)),new m.Z({id:t,geometry:new y.Z(this._geometryOptions),attributes:o}))},G.prototype.createOutlineGeometryInstance=function(e){throw new h.Z("This instance does not represent an outlined geometry.")},G.prototype.isDestroyed=function(){return!1},G.prototype.destroy=function(){this._entitySubscription(),(0,l.Z)(this)},G.prototype._onEntityPropertyChanged=function(e,t,i,n){if("availability"!==t&&"polyline"!==t)return;const r=this._entity.polyline;if(!(0,u.Z)(r))return void(this._fillEnabled&&(this._fillEnabled=!1,this._geometryChanged.raiseEvent(this)));const o=r.positions,s=r.show;if((0,u.Z)(s)&&s.isConstant&&!s.getValue(Z.Z.MINIMUM_VALUE)||!(0,u.Z)(o))return void(this._fillEnabled&&(this._fillEnabled=!1,this._geometryChanged.raiseEvent(this)));const a=r.zIndex,l=(0,c.Z)(r.material,N),h=l instanceof I.Z;this._materialProperty=l,this._depthFailMaterialProperty=r.depthFailMaterial,this._showProperty=(0,c.Z)(s,F),this._shadowsProperty=(0,c.Z)(r.shadows,k),this._distanceDisplayConditionProperty=(0,c.Z)(r.distanceDisplayCondition,U),this._classificationTypeProperty=(0,c.Z)(r.classificationType,V),this._fillEnabled=!0,this._zIndex=(0,c.Z)(a,B);const d=r.width,f=r.arcType,p=r.clampToGround,m=r.granularity;if(o.isConstant&&R.Z.isConstant(d)&&R.Z.isConstant(f)&&R.Z.isConstant(m)&&R.Z.isConstant(p)&&R.Z.isConstant(a)){const e=this._geometryOptions,t=o.getValue(Z.Z.MINIMUM_VALUE,e.positions);if(!(0,u.Z)(t)||t.length<2)return void(this._fillEnabled&&(this._fillEnabled=!1,this._geometryChanged.raiseEvent(this)));let i;i=h&&(!(0,u.Z)(this._depthFailMaterialProperty)||this._depthFailMaterialProperty instanceof I.Z)?E.Z.VERTEX_FORMAT:x.Z.VERTEX_FORMAT,e.vertexFormat=i,e.positions=t,e.width=(0,u.Z)(d)?d.getValue(Z.Z.MINIMUM_VALUE):void 0,e.arcType=(0,u.Z)(f)?f.getValue(Z.Z.MINIMUM_VALUE):void 0,e.granularity=(0,u.Z)(m)?m.getValue(Z.Z.MINIMUM_VALUE):void 0;const n=this._groundGeometryOptions;n.positions=t,n.width=e.width,n.arcType=e.arcType,n.granularity=e.granularity,this._clampToGround=!!(0,u.Z)(p)&&p.getValue(Z.Z.MINIMUM_VALUE),!this._clampToGround&&(0,u.Z)(a)&&(0,g.Z)("Entity polylines must have clampToGround: true when using zIndex. zIndex will be ignored."),this._dynamic=!1,this._geometryChanged.raiseEvent(this)}else this._dynamic||(this._dynamic=!0,this._geometryChanged.raiseEvent(this))},G.prototype.createDynamicUpdater=function(e,t){if(o.Z.defined("primitives",e),o.Z.defined("groundPrimitives",t),!this._dynamic)throw new h.Z("This instance does not represent dynamic geometry.");return new j(e,t,this)};const q={positions:void 0,granularity:void 0,height:void 0,ellipsoid:void 0};function j(e,t,i){this._line=void 0,this._primitives=e,this._groundPrimitives=t,this._groundPolylinePrimitive=void 0,this._material=void 0,this._geometryUpdater=i,this._positions=[]}function W(e){if((0,u.Z)(e._line))return e._line;const t=e._geometryUpdater._scene.id;let i=M[t];const n=e._primitives;!(0,u.Z)(i)||i.isDestroyed()?(i=new C.Z,M[t]=i,n.add(i)):n.contains(i)||n.add(i);const r=i.add();return r.id=e._geometryUpdater._entity,e._line=r,r}j.prototype.update=function(e){const t=this._geometryUpdater,i=t._entity,r=i.polyline,o=r.positions;let s=R.Z.getValueOrUndefined(o,e,this._positions);t._clampToGround=R.Z.getValueOrDefault(r._clampToGround,e,!1),t._groundGeometryOptions.positions=s,t._groundGeometryOptions.width=R.Z.getValueOrDefault(r._width,e,1),t._groundGeometryOptions.arcType=R.Z.getValueOrDefault(r._arcType,e,n.Z.GEODESIC),t._groundGeometryOptions.granularity=R.Z.getValueOrDefault(r._granularity,e,9999);const a=this._groundPrimitives;if((0,u.Z)(this._groundPolylinePrimitive)&&(a.remove(this._groundPolylinePrimitive),this._groundPolylinePrimitive=void 0),t.clampToGround){if(!i.isShowing||!i.isAvailable(e)||!R.Z.getValueOrDefault(r._show,e,!0))return;if(!(0,u.Z)(s)||s.length<2)return;const n=t.fillMaterialProperty;let o;if(n instanceof I.Z)o=new E.Z;else{const t=P.Z.getValue(e,n,this._material);o=new x.Z({material:t,translucent:t.isTranslucent()}),this._material=t}return this._groundPolylinePrimitive=a.add(new T.Z({geometryInstances:t.createFillGeometryInstance(e),appearance:o,classificationType:t.classificationTypeProperty.getValue(e),asynchronous:!1}),R.Z.getValueOrUndefined(t.zIndex,e)),void((0,u.Z)(this._line)&&(this._line.show=!1))}const c=W(this);if(!i.isShowing||!i.isAvailable(e)||!R.Z.getValueOrDefault(r._show,e,!0))return void(c.show=!1);if(!(0,u.Z)(s)||s.length<2)return void(c.show=!1);let l=n.Z.GEODESIC;l=R.Z.getValueOrDefault(r._arcType,e,l);const h=t._scene.globe;l!==n.Z.NONE&&(0,u.Z)(h)&&(q.ellipsoid=h.ellipsoid,q.positions=s,q.granularity=R.Z.getValueOrUndefined(r._granularity,e),q.height=b.Z.extractHeights(s,h.ellipsoid),s=l===n.Z.GEODESIC?b.Z.generateCartesianArc(q):b.Z.generateCartesianRhumbArc(q)),c.show=!0,c.positions=s.slice(),c.material=P.Z.getValue(e,t.fillMaterialProperty,c.material),c.width=R.Z.getValueOrDefault(r._width,e,1),c.distanceDisplayCondition=R.Z.getValueOrUndefined(r._distanceDisplayCondition,e,c.distanceDisplayCondition)},j.prototype.getBoundingSphere=function(e){if(o.Z.defined("result",e),this._geometryUpdater.clampToGround){const t=this._groundPolylinePrimitive;if((0,u.Z)(t)&&t.show&&t.ready){const i=t.getGeometryInstanceAttributes(this._geometryUpdater._entity);if((0,u.Z)(i)&&(0,u.Z)(i.boundingSphere))return r.Z.clone(i.boundingSphere,e),O.Z.DONE}return(0,u.Z)(t)&&!t.ready?O.Z.PENDING:O.Z.DONE}{const t=W(this);if(t.show&&t.positions.length>0)return r.Z.fromPoints(t.positions,e),O.Z.DONE}return O.Z.FAILED},j.prototype.isDestroyed=function(){return!1},j.prototype.destroy=function(){const e=this._geometryUpdater._scene.id,t=M[e];(0,u.Z)(t)&&(t.remove(this._line),0===t.length&&(this._primitives.removeAndDestroy(t),delete M[e])),(0,u.Z)(this._groundPolylinePrimitive)&&this._groundPrimitives.remove(this._groundPolylinePrimitive),(0,l.Z)(this)};const K=G},179078:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(545125),r=i(406144),o=i(426468),s=i(197685),a=i(528531),c=i(444147);const u=n.Z.WHITE;function l(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),this._definitionChanged=new s.Z,this._color=void 0,this._colorSubscription=void 0,this._glowPower=void 0,this._glowPowerSubscription=void 0,this._taperPower=void 0,this._taperPowerSubscription=void 0,this.color=e.color,this.glowPower=e.glowPower,this.taperPower=e.taperPower}Object.defineProperties(l.prototype,{isConstant:{get:function(){return c.Z.isConstant(this._color)&&c.Z.isConstant(this._glow)}},definitionChanged:{get:function(){return this._definitionChanged}},color:(0,a.Z)("color"),glowPower:(0,a.Z)("glowPower"),taperPower:(0,a.Z)("taperPower")}),l.prototype.getType=function(e){return"PolylineGlow"},l.prototype.getValue=function(e,t){return(0,o.Z)(t)||(t={}),t.color=c.Z.getValueOrClonedDefault(this._color,e,u,t.color),t.glowPower=c.Z.getValueOrDefault(this._glowPower,e,.25,t.glowPower),t.taperPower=c.Z.getValueOrDefault(this._taperPower,e,1,t.taperPower),t},l.prototype.equals=function(e){return this===e||e instanceof l&&c.Z.equals(this._color,e._color)&&c.Z.equals(this._glowPower,e._glowPower)&&c.Z.equals(this._taperPower,e._taperPower)};const h=l},450457:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(406144),r=i(426468),o=i(446938),s=i(197685),a=i(489351),c=i(528531);function u(e){this._definitionChanged=new s.Z,this._show=void 0,this._showSubscription=void 0,this._positions=void 0,this._positionsSubscription=void 0,this._width=void 0,this._widthSubscription=void 0,this._granularity=void 0,this._granularitySubscription=void 0,this._material=void 0,this._materialSubscription=void 0,this._depthFailMaterial=void 0,this._depthFailMaterialSubscription=void 0,this._arcType=void 0,this._arcTypeSubscription=void 0,this._clampToGround=void 0,this._clampToGroundSubscription=void 0,this._shadows=void 0,this._shadowsSubscription=void 0,this._distanceDisplayCondition=void 0,this._distanceDisplayConditionSubscription=void 0,this._classificationType=void 0,this._classificationTypeSubscription=void 0,this._zIndex=void 0,this._zIndexSubscription=void 0,this.merge((0,n.Z)(e,n.Z.EMPTY_OBJECT))}Object.defineProperties(u.prototype,{definitionChanged:{get:function(){return this._definitionChanged}},show:(0,c.Z)("show"),positions:(0,c.Z)("positions"),width:(0,c.Z)("width"),granularity:(0,c.Z)("granularity"),material:(0,a.Z)("material"),depthFailMaterial:(0,a.Z)("depthFailMaterial"),arcType:(0,c.Z)("arcType"),clampToGround:(0,c.Z)("clampToGround"),shadows:(0,c.Z)("shadows"),distanceDisplayCondition:(0,c.Z)("distanceDisplayCondition"),classificationType:(0,c.Z)("classificationType"),zIndex:(0,c.Z)("zIndex")}),u.prototype.clone=function(e){return(0,r.Z)(e)?(e.show=this.show,e.positions=this.positions,e.width=this.width,e.granularity=this.granularity,e.material=this.material,e.depthFailMaterial=this.depthFailMaterial,e.arcType=this.arcType,e.clampToGround=this.clampToGround,e.shadows=this.shadows,e.distanceDisplayCondition=this.distanceDisplayCondition,e.classificationType=this.classificationType,e.zIndex=this.zIndex,e):new u(this)},u.prototype.merge=function(e){if(!(0,r.Z)(e))throw new o.Z("source is required.");this.show=(0,n.Z)(this.show,e.show),this.positions=(0,n.Z)(this.positions,e.positions),this.width=(0,n.Z)(this.width,e.width),this.granularity=(0,n.Z)(this.granularity,e.granularity),this.material=(0,n.Z)(this.material,e.material),this.depthFailMaterial=(0,n.Z)(this.depthFailMaterial,e.depthFailMaterial),this.arcType=(0,n.Z)(this.arcType,e.arcType),this.clampToGround=(0,n.Z)(this.clampToGround,e.clampToGround),this.shadows=(0,n.Z)(this.shadows,e.shadows),this.distanceDisplayCondition=(0,n.Z)(this.distanceDisplayCondition,e.distanceDisplayCondition),this.classificationType=(0,n.Z)(this.classificationType,e.classificationType),this.zIndex=(0,n.Z)(this.zIndex,e.zIndex)};const l=u},673162:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(545125),r=i(406144),o=i(426468),s=i(197685),a=i(528531),c=i(444147);const u=n.Z.WHITE,l=n.Z.BLACK;function h(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),this._definitionChanged=new s.Z,this._color=void 0,this._colorSubscription=void 0,this._outlineColor=void 0,this._outlineColorSubscription=void 0,this._outlineWidth=void 0,this._outlineWidthSubscription=void 0,this.color=e.color,this.outlineColor=e.outlineColor,this.outlineWidth=e.outlineWidth}Object.defineProperties(h.prototype,{isConstant:{get:function(){return c.Z.isConstant(this._color)&&c.Z.isConstant(this._outlineColor)&&c.Z.isConstant(this._outlineWidth)}},definitionChanged:{get:function(){return this._definitionChanged}},color:(0,a.Z)("color"),outlineColor:(0,a.Z)("outlineColor"),outlineWidth:(0,a.Z)("outlineWidth")}),h.prototype.getType=function(e){return"PolylineOutline"},h.prototype.getValue=function(e,t){return(0,o.Z)(t)||(t={}),t.color=c.Z.getValueOrClonedDefault(this._color,e,u,t.color),t.outlineColor=c.Z.getValueOrClonedDefault(this._outlineColor,e,l,t.outlineColor),t.outlineWidth=c.Z.getValueOrDefault(this._outlineWidth,e,1),t},h.prototype.equals=function(e){return this===e||e instanceof h&&c.Z.equals(this._color,e._color)&&c.Z.equals(this._outlineColor,e._outlineColor)&&c.Z.equals(this._outlineWidth,e._outlineWidth)};const d=h},675218:(e,t,i)=>{"use strict";i.d(t,{Z:()=>E});var n=i(878438),r=i(360791),o=i(357299),s=i(406144),a=i(426468),c=i(54879),u=i(576049),l=i(843658),h=i(957049),d=i(556198),f=i(120896),p=i(141653),m=i(730029),_=i(851969),Z=i(587636),g=i(330382),y=i(383695);const b=[];function A(e,t){const i=e._batches,n=i.length;for(let e=0;e-1;c--)u=a[c],l=u.id,h=this._updaters.get(l),h.entity===u?(A(this,h),w(this,e,h)):(r.push(u),i.push(u));for(c=r.length-1;c>-1;c--)u=r[c],l=u.id,h=this._updaters.get(l),A(this,h),h.destroy(),this._updaters.remove(l),this._subscriptions.get(l)(),this._subscriptions.remove(l);for(c=i.length-1;c>-1;c--)u=i[c],l=u.id,h=new _.Z(u,this._scene),this._updaters.set(l,h),w(this,e,h),this._subscriptions.set(l,h.geometryChanged.addEventListener(v._onGeometryChanged,this));t.removeAll(),n.removeAll(),s.removeAll();let d=!0;const f=this._batches,p=f.length;for(c=0;c-1;s--)c=i[s],a=c.id,n.remove(a)||(r.set(a,c),o.remove(a));for(s=t.length-1;s>-1;s--)c=t[s],a=c.id,r.remove(a)?o.set(a,c):n.set(a,c)};const E=v},255451:(e,t,i)=>{"use strict";i.d(t,{Z:()=>T});var n=i(357299),r=i(545125),o=i(182934),s=i(426468),a=i(446938),c=i(231432),u=i(952254),l=i(29699),h=i(61435),d=i(447104),f=i(208613),p=i(112546),m=i(578721),_=i(141653),Z=i(955701),g=i(710923),y=i(444147);const b=new r.Z;function A(e){this.id=e,this.vertexFormat=void 0,this.polylinePositions=void 0,this.shapePositions=void 0,this.cornerType=void 0,this.granularity=void 0}function w(e,t){g.Z.call(this,{entity:e,scene:t,geometryOptions:new A(e),geometryPropertyName:"polylineVolume",observedPropertyNames:["availability","polylineVolume"]}),this._onEntityPropertyChanged(e,"polylineVolume",e.polylineVolume,void 0)}function v(e,t,i){Z.Z.call(this,e,t,i)}(0,s.Z)(Object.create)&&(w.prototype=Object.create(g.Z.prototype),w.prototype.constructor=w),w.prototype.createFillGeometryInstance=function(e){if(n.Z.defined("time",e),!this._fillEnabled)throw new a.Z("This instance does not represent a filled geometry.");const t=this._entity,i=t.isAvailable(e);let l,d;const p=new f.Z(i&&t.isShowing&&this._showProperty.getValue(e)&&this._fillProperty.getValue(e)),m=this._distanceDisplayConditionProperty.getValue(e),Z=c.Z.fromDistanceDisplayCondition(m);if(this._materialProperty instanceof _.Z){let t;(0,s.Z)(this._materialProperty.color)&&(this._materialProperty.color.isConstant||i)&&(t=this._materialProperty.color.getValue(e,b)),(0,s.Z)(t)||(t=r.Z.WHITE),d=o.Z.fromColor(t),l={show:p,distanceDisplayCondition:Z,color:d}}else l={show:p,distanceDisplayCondition:Z};return new u.Z({id:t,geometry:new h.Z(this._options),attributes:l})},w.prototype.createOutlineGeometryInstance=function(e){if(n.Z.defined("time",e),!this._outlineEnabled)throw new a.Z("This instance does not represent an outlined geometry.");const t=this._entity,i=t.isAvailable(e),s=y.Z.getValueOrDefault(this._outlineColorProperty,e,r.Z.BLACK,b),l=this._distanceDisplayConditionProperty.getValue(e);return new u.Z({id:t,geometry:new d.Z(this._options),attributes:{show:new f.Z(i&&t.isShowing&&this._showProperty.getValue(e)&&this._showOutlineProperty.getValue(e)),color:o.Z.fromColor(s),distanceDisplayCondition:c.Z.fromDistanceDisplayCondition(l)}})},w.prototype._isHidden=function(e,t){return!(0,s.Z)(t.positions)||!(0,s.Z)(t.shape)||g.Z.prototype._isHidden.call(this,e,t)},w.prototype._isDynamic=function(e,t){return!(t.positions.isConstant&&t.shape.isConstant&&y.Z.isConstant(t.granularity)&&y.Z.isConstant(t.outlineWidth)&&y.Z.isConstant(t.cornerType))},w.prototype._setStaticOptions=function(e,t){const i=t.granularity,n=t.cornerType,r=this._options,o=this._materialProperty instanceof _.Z;r.vertexFormat=o?m.Z.VERTEX_FORMAT:p.Z.MaterialSupport.TEXTURED.vertexFormat,r.polylinePositions=t.positions.getValue(l.Z.MINIMUM_VALUE,r.polylinePositions),r.shapePositions=t.shape.getValue(l.Z.MINIMUM_VALUE,r.shape),r.granularity=(0,s.Z)(i)?i.getValue(l.Z.MINIMUM_VALUE):void 0,r.cornerType=(0,s.Z)(n)?n.getValue(l.Z.MINIMUM_VALUE):void 0},w.DynamicGeometryUpdater=v,(0,s.Z)(Object.create)&&(v.prototype=Object.create(Z.Z.prototype),v.prototype.constructor=v),v.prototype._isHidden=function(e,t,i){const n=this._options;return!(0,s.Z)(n.polylinePositions)||!(0,s.Z)(n.shapePositions)||Z.Z.prototype._isHidden.call(this,e,t,i)},v.prototype._setOptions=function(e,t,i){const n=this._options;n.polylinePositions=y.Z.getValueOrUndefined(t.positions,i,n.polylinePositions),n.shapePositions=y.Z.getValueOrUndefined(t.shape,i),n.granularity=y.Z.getValueOrUndefined(t.granularity,i),n.cornerType=y.Z.getValueOrUndefined(t.cornerType,i)};const T=w},705682:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(406144),r=i(426468),o=i(446938),s=i(197685),a=i(489351),c=i(528531);function u(e){this._definitionChanged=new s.Z,this._show=void 0,this._showSubscription=void 0,this._positions=void 0,this._positionsSubscription=void 0,this._shape=void 0,this._shapeSubscription=void 0,this._cornerType=void 0,this._cornerTypeSubscription=void 0,this._granularity=void 0,this._granularitySubscription=void 0,this._fill=void 0,this._fillSubscription=void 0,this._material=void 0,this._materialSubscription=void 0,this._outline=void 0,this._outlineSubscription=void 0,this._outlineColor=void 0,this._outlineColorSubscription=void 0,this._outlineWidth=void 0,this._outlineWidthSubscription=void 0,this._shadows=void 0,this._shadowsSubscription=void 0,this._distanceDisplayCondition=void 0,this._distanceDisplayConditionSubsription=void 0,this.merge((0,n.Z)(e,n.Z.EMPTY_OBJECT))}Object.defineProperties(u.prototype,{definitionChanged:{get:function(){return this._definitionChanged}},show:(0,c.Z)("show"),positions:(0,c.Z)("positions"),shape:(0,c.Z)("shape"),cornerType:(0,c.Z)("cornerType"),granularity:(0,c.Z)("granularity"),fill:(0,c.Z)("fill"),material:(0,a.Z)("material"),outline:(0,c.Z)("outline"),outlineColor:(0,c.Z)("outlineColor"),outlineWidth:(0,c.Z)("outlineWidth"),shadows:(0,c.Z)("shadows"),distanceDisplayCondition:(0,c.Z)("distanceDisplayCondition")}),u.prototype.clone=function(e){return(0,r.Z)(e)?(e.show=this.show,e.positions=this.positions,e.shape=this.shape,e.cornerType=this.cornerType,e.granularity=this.granularity,e.fill=this.fill,e.material=this.material,e.outline=this.outline,e.outlineColor=this.outlineColor,e.outlineWidth=this.outlineWidth,e.shadows=this.shadows,e.distanceDisplayCondition=this.distanceDisplayCondition,e):new u(this)},u.prototype.merge=function(e){if(!(0,r.Z)(e))throw new o.Z("source is required.");this.show=(0,n.Z)(this.show,e.show),this.positions=(0,n.Z)(this.positions,e.positions),this.shape=(0,n.Z)(this.shape,e.shape),this.cornerType=(0,n.Z)(this.cornerType,e.cornerType),this.granularity=(0,n.Z)(this.granularity,e.granularity),this.fill=(0,n.Z)(this.fill,e.fill),this.material=(0,n.Z)(this.material,e.material),this.outline=(0,n.Z)(this.outline,e.outline),this.outlineColor=(0,n.Z)(this.outlineColor,e.outlineColor),this.outlineWidth=(0,n.Z)(this.outlineWidth,e.outlineWidth),this.shadows=(0,n.Z)(this.shadows,e.shadows),this.distanceDisplayCondition=(0,n.Z)(this.distanceDisplayCondition,e.distanceDisplayCondition)};const l=u},70143:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(919382),r=i(426468),o=i(446938),s=i(165373),a=i(656331),c=i(358198);function u(){o.Z.throwInstantiationError()}Object.defineProperties(u.prototype,{isConstant:{get:o.Z.throwInstantiationError},definitionChanged:{get:o.Z.throwInstantiationError},referenceFrame:{get:o.Z.throwInstantiationError}}),u.prototype.getValue=o.Z.throwInstantiationError,u.prototype.getValueInReferenceFrame=o.Z.throwInstantiationError,u.prototype.equals=o.Z.throwInstantiationError;const l=new s.Z;u.convertToReferenceFrame=function(e,t,i,o,u){if(!(0,r.Z)(t))return t;if((0,r.Z)(u)||(u=new n.Z),i===o)return n.Z.clone(t,u);let h=c.Z.computeIcrfToFixedMatrix(e,l);return(0,r.Z)(h)||(h=c.Z.computeTemeToPseudoFixedMatrix(e,l)),i===a.Z.INERTIAL?s.Z.multiplyByVector(h,t,u):i===a.Z.FIXED?s.Z.multiplyByVector(s.Z.transpose(h,l),t,u):void 0};const h=u},395948:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(406144),r=i(426468),o=i(446938),s=i(197685),a=i(242100),c=i(656331),u=i(444147);function l(e,t){this._value=void 0,this._definitionChanged=new s.Z,this._eventHelper=new a.Z,this._referenceFrame=(0,n.Z)(t,c.Z.FIXED),this.setValue(e)}Object.defineProperties(l.prototype,{isConstant:{get:function(){const e=this._value;if(!(0,r.Z)(e))return!0;const t=e.length;for(let i=0;i{"use strict";i.d(t,{Z:()=>a});var n=i(406144),r=i(426468),o=i(446938);function s(){o.Z.throwInstantiationError()}Object.defineProperties(s.prototype,{isConstant:{get:o.Z.throwInstantiationError},definitionChanged:{get:o.Z.throwInstantiationError}}),s.prototype.getValue=o.Z.throwInstantiationError,s.prototype.equals=o.Z.throwInstantiationError,s.equals=function(e,t){return e===t||(0,r.Z)(e)&&e.equals(t)},s.arrayEquals=function(e,t){if(e===t)return!0;if(!(0,r.Z)(e)||!(0,r.Z)(t)||e.length!==t.length)return!1;const i=e.length;for(let n=0;n{"use strict";i.d(t,{Z:()=>u});var n=i(426468),r=i(446938),o=i(197685),s=i(242100),a=i(444147);function c(e){this._value=void 0,this._definitionChanged=new o.Z,this._eventHelper=new s.Z,this.setValue(e)}Object.defineProperties(c.prototype,{isConstant:{get:function(){const e=this._value;if(!(0,n.Z)(e))return!0;const t=e.length;for(let i=0;i{"use strict";i.d(t,{Z:()=>d});var n=i(406144),r=i(426468),o=i(446938),s=i(197685),a=i(243110),c=i(528531),u=i(444147);function l(e,t){this._propertyNames=[],this._definitionChanged=new s.Z,(0,r.Z)(e)&&this.merge(e,t)}function h(e){return new a.Z(e)}Object.defineProperties(l.prototype,{propertyNames:{get:function(){return this._propertyNames}},isConstant:{get:function(){const e=this._propertyNames;for(let t=0,i=e.length;t{"use strict";i.d(t,{Z:()=>N});var n=i(140537),r=i(919382),o=i(698907),s=i(357299),a=i(545125),c=i(182934),u=i(426468),l=i(446938),h=i(231432),d=i(253316),f=i(952254),p=i(29699),m=i(81203),_=i(523501),Z=i(236915),g=i(947989),y=i(208613),b=i(110499),A=i(112546),w=i(578721),v=i(141653),T=i(955701),C=i(710923),E=i(585156),x=i(444147);const S=new a.Z,O=r.Z.ZERO,I=new r.Z,D=new _.Z,P=new _.Z,R=new o.Z;function B(e){this.id=e,this.vertexFormat=void 0,this.rectangle=void 0,this.height=void 0,this.extrudedHeight=void 0,this.granularity=void 0,this.stRotation=void 0,this.rotation=void 0,this.offsetAttribute=void 0}function M(e,t){E.Z.call(this,{entity:e,scene:t,geometryOptions:new B(e),geometryPropertyName:"rectangle",observedPropertyNames:["availability","rectangle"]}),this._onEntityPropertyChanged(e,"rectangle",e.rectangle,void 0)}function L(e,t,i){T.Z.call(this,e,t,i)}(0,u.Z)(Object.create)&&(M.prototype=Object.create(E.Z.prototype),M.prototype.constructor=M),M.prototype.createFillGeometryInstance=function(e){if(s.Z.defined("time",e),!this._fillEnabled)throw new l.Z("This instance does not represent a filled geometry.");const t=this._entity,i=t.isAvailable(e),n={show:new y.Z(i&&t.isShowing&&this._showProperty.getValue(e)&&this._fillProperty.getValue(e)),distanceDisplayCondition:h.Z.fromDistanceDisplayCondition(this._distanceDisplayConditionProperty.getValue(e)),offset:void 0,color:void 0};if(this._materialProperty instanceof v.Z){let t;(0,u.Z)(this._materialProperty.color)&&(this._materialProperty.color.isConstant||i)&&(t=this._materialProperty.color.getValue(e,S)),(0,u.Z)(t)||(t=a.Z.WHITE),n.color=c.Z.fromColor(t)}return(0,u.Z)(this._options.offsetAttribute)&&(n.offset=m.Z.fromCartesian3(x.Z.getValueOrDefault(this._terrainOffsetProperty,e,O,I))),new f.Z({id:t,geometry:new Z.Z(this._options),attributes:n})},M.prototype.createOutlineGeometryInstance=function(e){if(s.Z.defined("time",e),!this._outlineEnabled)throw new l.Z("This instance does not represent an outlined geometry.");const t=this._entity,i=t.isAvailable(e),n=x.Z.getValueOrDefault(this._outlineColorProperty,e,a.Z.BLACK,S),r=this._distanceDisplayConditionProperty.getValue(e),o={show:new y.Z(i&&t.isShowing&&this._showProperty.getValue(e)&&this._showOutlineProperty.getValue(e)),color:c.Z.fromColor(n),distanceDisplayCondition:h.Z.fromDistanceDisplayCondition(r),offset:void 0};return(0,u.Z)(this._options.offsetAttribute)&&(o.offset=m.Z.fromCartesian3(x.Z.getValueOrDefault(this._terrainOffsetProperty,e,O,I))),new f.Z({id:t,geometry:new g.Z(this._options),attributes:o})},M.prototype._computeCenter=function(e,t){const i=x.Z.getValueOrUndefined(this._entity.rectangle.coordinates,e,P);if(!(0,u.Z)(i))return;const n=_.Z.center(i,R);return o.Z.toCartesian(n,d.Z.WGS84,t)},M.prototype._isHidden=function(e,t){return!(0,u.Z)(t.coordinates)||C.Z.prototype._isHidden.call(this,e,t)},M.prototype._isDynamic=function(e,t){return!t.coordinates.isConstant||!x.Z.isConstant(t.height)||!x.Z.isConstant(t.extrudedHeight)||!x.Z.isConstant(t.granularity)||!x.Z.isConstant(t.stRotation)||!x.Z.isConstant(t.rotation)||!x.Z.isConstant(t.outlineWidth)||!x.Z.isConstant(t.zIndex)||this._onTerrain&&!x.Z.isConstant(this._materialProperty)&&!(this._materialProperty instanceof v.Z)},M.prototype._setStaticOptions=function(e,t){const i=this._materialProperty instanceof v.Z;let r=x.Z.getValueOrUndefined(t.height,p.Z.MINIMUM_VALUE);const o=x.Z.getValueOrDefault(t.heightReference,p.Z.MINIMUM_VALUE,b.Z.NONE);let s=x.Z.getValueOrUndefined(t.extrudedHeight,p.Z.MINIMUM_VALUE);const a=x.Z.getValueOrDefault(t.extrudedHeightReference,p.Z.MINIMUM_VALUE,b.Z.NONE);(0,u.Z)(s)&&!(0,u.Z)(r)&&(r=0);const c=this._options;c.vertexFormat=i?w.Z.VERTEX_FORMAT:A.Z.MaterialSupport.TEXTURED.vertexFormat,c.rectangle=t.coordinates.getValue(p.Z.MINIMUM_VALUE,c.rectangle),c.granularity=x.Z.getValueOrUndefined(t.granularity,p.Z.MINIMUM_VALUE),c.stRotation=x.Z.getValueOrUndefined(t.stRotation,p.Z.MINIMUM_VALUE),c.rotation=x.Z.getValueOrUndefined(t.rotation,p.Z.MINIMUM_VALUE),c.offsetAttribute=E.Z.computeGeometryOffsetAttribute(r,o,s,a),c.height=E.Z.getGeometryHeight(r,o),s=E.Z.getGeometryExtrudedHeight(s,a),s===E.Z.CLAMP_TO_GROUND&&(s=n.Z.getMinimumMaximumHeights(Z.Z.computeRectangle(c,D)).minimumTerrainHeight),c.extrudedHeight=s},M.DynamicGeometryUpdater=L,(0,u.Z)(Object.create)&&(L.prototype=Object.create(T.Z.prototype),L.prototype.constructor=L),L.prototype._isHidden=function(e,t,i){return!(0,u.Z)(this._options.rectangle)||T.Z.prototype._isHidden.call(this,e,t,i)},L.prototype._setOptions=function(e,t,i){const r=this._options;let o=x.Z.getValueOrUndefined(t.height,i);const s=x.Z.getValueOrDefault(t.heightReference,i,b.Z.NONE);let a=x.Z.getValueOrUndefined(t.extrudedHeight,i);const c=x.Z.getValueOrDefault(t.extrudedHeightReference,i,b.Z.NONE);(0,u.Z)(a)&&!(0,u.Z)(o)&&(o=0),r.rectangle=x.Z.getValueOrUndefined(t.coordinates,i,r.rectangle),r.granularity=x.Z.getValueOrUndefined(t.granularity,i),r.stRotation=x.Z.getValueOrUndefined(t.stRotation,i),r.rotation=x.Z.getValueOrUndefined(t.rotation,i),r.offsetAttribute=E.Z.computeGeometryOffsetAttribute(o,s,a,c),r.height=E.Z.getGeometryHeight(o,s),a=E.Z.getGeometryExtrudedHeight(a,c),a===E.Z.CLAMP_TO_GROUND&&(a=n.Z.getMinimumMaximumHeights(Z.Z.computeRectangle(r,D)).minimumTerrainHeight),r.extrudedHeight=a};const N=M},511121:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(406144),r=i(426468),o=i(446938),s=i(197685),a=i(489351),c=i(528531);function u(e){this._definitionChanged=new s.Z,this._show=void 0,this._showSubscription=void 0,this._coordinates=void 0,this._coordinatesSubscription=void 0,this._height=void 0,this._heightSubscription=void 0,this._heightReference=void 0,this._heightReferenceSubscription=void 0,this._extrudedHeight=void 0,this._extrudedHeightSubscription=void 0,this._extrudedHeightReference=void 0,this._extrudedHeightReferenceSubscription=void 0,this._rotation=void 0,this._rotationSubscription=void 0,this._stRotation=void 0,this._stRotationSubscription=void 0,this._granularity=void 0,this._granularitySubscription=void 0,this._fill=void 0,this._fillSubscription=void 0,this._material=void 0,this._materialSubscription=void 0,this._outline=void 0,this._outlineSubscription=void 0,this._outlineColor=void 0,this._outlineColorSubscription=void 0,this._outlineWidth=void 0,this._outlineWidthSubscription=void 0,this._shadows=void 0,this._shadowsSubscription=void 0,this._distanceDisplayCondition=void 0,this._distancedisplayConditionSubscription=void 0,this._classificationType=void 0,this._classificationTypeSubscription=void 0,this._zIndex=void 0,this._zIndexSubscription=void 0,this.merge((0,n.Z)(e,n.Z.EMPTY_OBJECT))}Object.defineProperties(u.prototype,{definitionChanged:{get:function(){return this._definitionChanged}},show:(0,c.Z)("show"),coordinates:(0,c.Z)("coordinates"),height:(0,c.Z)("height"),heightReference:(0,c.Z)("heightReference"),extrudedHeight:(0,c.Z)("extrudedHeight"),extrudedHeightReference:(0,c.Z)("extrudedHeightReference"),rotation:(0,c.Z)("rotation"),stRotation:(0,c.Z)("stRotation"),granularity:(0,c.Z)("granularity"),fill:(0,c.Z)("fill"),material:(0,a.Z)("material"),outline:(0,c.Z)("outline"),outlineColor:(0,c.Z)("outlineColor"),outlineWidth:(0,c.Z)("outlineWidth"),shadows:(0,c.Z)("shadows"),distanceDisplayCondition:(0,c.Z)("distanceDisplayCondition"),classificationType:(0,c.Z)("classificationType"),zIndex:(0,c.Z)("zIndex")}),u.prototype.clone=function(e){return(0,r.Z)(e)?(e.show=this.show,e.coordinates=this.coordinates,e.height=this.height,e.heightReference=this.heightReference,e.extrudedHeight=this.extrudedHeight,e.extrudedHeightReference=this.extrudedHeightReference,e.rotation=this.rotation,e.stRotation=this.stRotation,e.granularity=this.granularity,e.fill=this.fill,e.material=this.material,e.outline=this.outline,e.outlineColor=this.outlineColor,e.outlineWidth=this.outlineWidth,e.shadows=this.shadows,e.distanceDisplayCondition=this.distanceDisplayCondition,e.classificationType=this.classificationType,e.zIndex=this.zIndex,e):new u(this)},u.prototype.merge=function(e){if(!(0,r.Z)(e))throw new o.Z("source is required.");this.show=(0,n.Z)(this.show,e.show),this.coordinates=(0,n.Z)(this.coordinates,e.coordinates),this.height=(0,n.Z)(this.height,e.height),this.heightReference=(0,n.Z)(this.heightReference,e.heightReference),this.extrudedHeight=(0,n.Z)(this.extrudedHeight,e.extrudedHeight),this.extrudedHeightReference=(0,n.Z)(this.extrudedHeightReference,e.extrudedHeightReference),this.rotation=(0,n.Z)(this.rotation,e.rotation),this.stRotation=(0,n.Z)(this.stRotation,e.stRotation),this.granularity=(0,n.Z)(this.granularity,e.granularity),this.fill=(0,n.Z)(this.fill,e.fill),this.material=(0,n.Z)(this.material,e.material),this.outline=(0,n.Z)(this.outline,e.outline),this.outlineColor=(0,n.Z)(this.outlineColor,e.outlineColor),this.outlineWidth=(0,n.Z)(this.outlineWidth,e.outlineWidth),this.shadows=(0,n.Z)(this.shadows,e.shadows),this.distanceDisplayCondition=(0,n.Z)(this.distanceDisplayCondition,e.distanceDisplayCondition),this.classificationType=(0,n.Z)(this.classificationType,e.classificationType),this.zIndex=(0,n.Z)(this.zIndex,e.zIndex)};const l=u},685596:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(426468),r=i(446938),o=i(197685),s=i(444147);function a(e){let t=e._targetProperty;if(!(0,n.Z)(t)){let i=e._targetEntity;if(!(0,n.Z)(i)){if(i=e._targetCollection.getById(e._targetId),!(0,n.Z)(i))return void(e._targetEntity=e._targetProperty=void 0);i.definitionChanged.addEventListener(c.prototype._onTargetEntityDefinitionChanged,e),e._targetEntity=i}const r=e._targetPropertyNames;t=e._targetEntity;for(let e=0,i=r.length;e{"use strict";i.d(t,{Z:()=>a});var n=i(406144),r=i(426468),o=i(446938),s=i(362017);const a={packedLength:1,pack:function(e,t,i){if(!(0,r.Z)(e))throw new o.Z("value is required");if(!(0,r.Z)(t))throw new o.Z("array is required");return t[i=(0,n.Z)(i,0)]=e,t},unpack:function(e,t,i){if(!(0,r.Z)(e))throw new o.Z("array is required");return e[t=(0,n.Z)(t,0)]},convertPackedArrayForInterpolation:function(e,t,i,a){if(!(0,r.Z)(e))throw new o.Z("packedArray is required");let c;(0,r.Z)(a)||(a=[]),t=(0,n.Z)(t,0);for(let r=0,o=(i=(0,n.Z)(i,e.length))-t+1;r{"use strict";i.d(t,{Z:()=>p});var n=i(919382),r=i(357299),o=i(406144),s=i(426468),a=i(446938),c=i(197685),u=i(656331),l=i(70143),h=i(444147),d=i(404420);function f(e,t){let i;if((t=(0,o.Z)(t,0))>0){i=new Array(t);for(let e=0;e0&&(!(0,s.Z)(i)||i.length!==n))throw new a.Z("derivatives length must be equal to the number of derivatives.");this._property.addSample(e,t,i)},f.prototype.addSamples=function(e,t,i){this._property.addSamples(e,t,i)},f.prototype.addSamplesPackedArray=function(e,t){this._property.addSamplesPackedArray(e,t)},f.prototype.removeSample=function(e){return this._property.removeSample(e)},f.prototype.removeSamples=function(e){this._property.removeSamples(e)},f.prototype.equals=function(e){return this===e||e instanceof f&&h.Z.equals(this._property,e._property)&&this._referenceFrame===e._referenceFrame};const p=f},404420:(e,t,i)=>{"use strict";i.d(t,{Z:()=>b});var n=i(693465),r=i(357299),o=i(406144),s=i(426468),a=i(446938),c=i(197685),u=i(655633),l=i(40080),h=i(751432);const d={packedLength:1,pack:function(e,t,i){t[i=(0,o.Z)(i,0)]=e},unpack:function(e,t,i){return e[t=(0,o.Z)(t,0)]}};function f(e,t,i){let n;const r=e.length,o=i.length,s=r+o;if(e.length=s,r!==t){let i=r-1;for(n=s-1;n>=t;n--)e[n]=e[i--]}for(n=0;n=0||(0,s.Z)(Z)&&l.Z.compare(d,Z)>=0));){for(m[y++]=d,g+=1,a=0;a0&&(_.length=b,f(i,h,_),m.length=y,f(t,u,m))}else{for(a=0;aa)return;if(this._backwardExtrapolationType===u.Z.HOLD)return c.unpack(h,0,t)}if(d>=o){d=o-1;const n=i[d];if(a=this._forwardExtrapolationDuration,this._forwardExtrapolationType===u.Z.NONE||0!==a&&l.Z.secondsDifference(e,n)>a)return;if(this._forwardExtrapolationType===u.Z.HOLD)return d=o-1,c.unpack(h,d*c.packedLength,t)}const n=this._xTable,r=this._yTable,f=this._interpolationAlgorithm,p=this._packedInterpolationLength,m=this._inputOrder;if(this._updateTableLength){this._updateTableLength=!1;const e=Math.min(f.getRequiredDataPoints(this._interpolationDegree,m),o);e!==this._numberOfPoints&&(this._numberOfPoints=e,n.length=e,r.length=e*p)}const _=this._numberOfPoints-1;if(_<1)return;let Z=0,g=o-1;if(g-Z+1>=_+1){let e=d-(_/2|0)-1;eg&&(t=g,e=t-_,e{"use strict";i.d(t,{Z:()=>l});var n=i(426468),r=i(446938),o=i(253316),s=i(197685),a=i(656331),c=i(444147);function u(e){this._definitionChanged=new s.Z,this._value=void 0,this._removeSubscription=void 0,this.setValue(e)}Object.defineProperties(u.prototype,{isConstant:{get:function(){return c.Z.isConstant(this._value)}},definitionChanged:{get:function(){return this._definitionChanged}},referenceFrame:{get:function(){return(0,n.Z)(this._value)?this._value.referenceFrame:a.Z.FIXED}}}),u.prototype.getValue=function(e,t){return this.getValueInReferenceFrame(e,a.Z.FIXED,t)},u.prototype.setValue=function(e){this._value!==e&&(this._value=e,(0,n.Z)(this._removeSubscription)&&(this._removeSubscription(),this._removeSubscription=void 0),(0,n.Z)(e)&&(this._removeSubscription=e.definitionChanged.addEventListener(this._raiseDefinitionChanged,this)),this._definitionChanged.raiseEvent(this))},u.prototype.getValueInReferenceFrame=function(e,t,i){if(!(0,n.Z)(e))throw new r.Z("time is required.");if(!(0,n.Z)(t))throw new r.Z("referenceFrame is required.");if((0,n.Z)(this._value))return i=this._value.getValueInReferenceFrame(e,t,i),(0,n.Z)(i)?o.Z.WGS84.scaleToGeodeticSurface(i,i):void 0},u.prototype.equals=function(e){return this===e||e instanceof u&&this._value===e._value},u.prototype._raiseDefinitionChanged=function(){this._definitionChanged.raiseEvent(this)};const l=u},587636:(e,t,i)=>{"use strict";i.d(t,{Z:()=>O});var n=i(878438),r=i(919382),o=i(545125),s=i(182934),a=i(426468),c=i(744497),u=i(231432),l=i(81203),h=i(208613),d=i(939800),f=i(120896),p=i(141653),m=i(332315),_=i(444147);const Z=new o.Z,g=new c.Z,y=new c.Z,b=r.Z.ZERO,A=new r.Z;function w(e,t,i,r,o,s,c){let u;this.translucent=t,this.appearanceType=i,this.depthFailAppearanceType=r,this.depthFailMaterialProperty=o,this.depthFailMaterial=void 0,this.closed=s,this.shadows=c,this.primitives=e,this.createPrimitive=!1,this.waitingOnCreate=!1,this.primitive=void 0,this.oldPrimitive=void 0,this.geometry=new n.Z,this.updaters=new n.Z,this.updatersWithAttributes=new n.Z,this.attributes=new n.Z,this.subscriptions=new n.Z,this.showsUpdated=new n.Z,this.itemsToRemove=[],this.invalidated=!1,(0,a.Z)(o)&&(u=o.definitionChanged.addEventListener(w.prototype.onMaterialChanged,this)),this.removeMaterialSubscription=u}function v(e,t,i,n,r){this._solidItems=[],this._translucentItems=[],this._primitives=e,this._appearanceType=t,this._depthFailAppearanceType=i,this._closed=n,this._shadows=r}function T(e,t){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.remove(t))return 0===n.updaters.length&&(e.splice(i,1),n.destroy()),!0}return!1}function C(e,t,i){let n=!1;const r=t.length;for(let o=0;o0)for(o=0;o=0;r--){const n=t[r];if(n.invalidated){t.splice(r,1);const o=n.updaters.values,s=o.length;for(let t=0;t0){let r;(0,a.Z)(n)&&((0,a.Z)(this.oldPrimitive)?f.remove(n):this.oldPrimitive=n),(0,a.Z)(this.depthFailAppearanceType)&&((0,a.Z)(this.depthFailMaterialProperty)&&(this.depthFailMaterial=m.Z.getValue(e,this.depthFailMaterialProperty,this.depthFailMaterial)),r=new this.depthFailAppearanceType({material:this.depthFailMaterial,translucent:this.translucent,closed:this.closed})),n=new d.Z({show:!1,asynchronous:!0,geometryInstances:i.slice(),appearance:new this.appearanceType({translucent:this.translucent,closed:this.closed}),depthFailAppearance:r,shadows:this.shadows}),f.add(n),t=!1}else{(0,a.Z)(n)&&(f.remove(n),n=void 0);const e=this.oldPrimitive;(0,a.Z)(e)&&(f.remove(e),this.oldPrimitive=void 0)}this.attributes.removeAll(),this.primitive=n,this.createPrimitive=!1,this.waitingOnCreate=!0}else if((0,a.Z)(n)&&n.ready){n.show=!0,(0,a.Z)(this.oldPrimitive)&&(f.remove(this.oldPrimitive),this.oldPrimitive=void 0),!(0,a.Z)(this.depthFailAppearanceType)||this.depthFailMaterialProperty instanceof p.Z||(this.depthFailMaterial=m.Z.getValue(e,this.depthFailMaterialProperty,this.depthFailMaterial),this.primitive.depthFailAppearance.material=this.depthFailMaterial);const t=this.updatersWithAttributes.values,d=t.length,v=this.waitingOnCreate;for(w=0;w{"use strict";i.d(t,{Z:()=>T});var n=i(878438),r=i(919382),o=i(545125),s=i(182934),a=i(426468),c=i(744497),u=i(231432),l=i(81203),h=i(208613),d=i(939800),f=i(120896),p=i(141653),m=i(332315),_=i(444147);const Z=new c.Z,g=new c.Z,y=r.Z.ZERO,b=new r.Z;function A(e,t,i,r,o,s,a){this.primitives=e,this.appearanceType=t,this.materialProperty=i,this.depthFailAppearanceType=r,this.depthFailMaterialProperty=o,this.closed=s,this.shadows=a,this.updaters=new n.Z,this.createPrimitive=!0,this.primitive=void 0,this.oldPrimitive=void 0,this.geometry=new n.Z,this.material=void 0,this.depthFailMaterial=void 0,this.updatersWithAttributes=new n.Z,this.attributes=new n.Z,this.invalidated=!1,this.removeMaterialSubscription=i.definitionChanged.addEventListener(A.prototype.onMaterialChanged,this),this.subscriptions=new n.Z,this.showsUpdated=new n.Z}A.prototype.onMaterialChanged=function(){this.invalidated=!0},A.prototype.isMaterial=function(e){const t=this.materialProperty,i=e.fillMaterialProperty,n=this.depthFailMaterialProperty,r=e.depthFailMaterialProperty;if(i===t&&r===n)return!0;let o=(0,a.Z)(t)&&t.equals(i);return o=(!(0,a.Z)(n)&&!(0,a.Z)(r)||(0,a.Z)(n)&&n.equals(r))&&o,o},A.prototype.add=function(e,t){const i=t.id;if(this.updaters.set(i,t),this.geometry.set(i,t.createFillGeometryInstance(e)),t.hasConstantFill&&t.fillMaterialProperty.isConstant&&_.Z.isConstant(t.distanceDisplayConditionProperty)&&_.Z.isConstant(t.terrainOffsetProperty)){const e=this;this.subscriptions.set(i,t.entity.definitionChanged.addEventListener((function(i,n,r,o){"isShowing"===n&&e.showsUpdated.set(t.id,t)})))}else this.updatersWithAttributes.set(i,t);this.createPrimitive=!0},A.prototype.remove=function(e){const t=e.id;if(this.createPrimitive=this.geometry.remove(t)||this.createPrimitive,this.updaters.remove(t)){this.updatersWithAttributes.remove(t);const e=this.subscriptions.get(t);return(0,a.Z)(e)&&(e(),this.subscriptions.remove(t),this.showsUpdated.remove(t)),!0}return!1};const w=new o.Z;function v(e,t,i,n,r){this._items=[],this._primitives=e,this._appearanceType=t,this._depthFailAppearanceType=i,this._closed=n,this._shadows=r}A.prototype.update=function(e){let t=!0,i=this.primitive;const n=this.primitives,f=this.geometry.values;let A;if(this.createPrimitive){if(f.length>0){let r;(0,a.Z)(i)&&((0,a.Z)(this.oldPrimitive)?n.remove(i):this.oldPrimitive=i),this.material=m.Z.getValue(e,this.materialProperty,this.material),(0,a.Z)(this.depthFailMaterialProperty)&&(this.depthFailMaterial=m.Z.getValue(e,this.depthFailMaterialProperty,this.depthFailMaterial),r=new this.depthFailAppearanceType({material:this.depthFailMaterial,translucent:this.depthFailMaterial.isTranslucent(),closed:this.closed})),i=new d.Z({show:!1,asynchronous:!0,geometryInstances:f.slice(),appearance:new this.appearanceType({material:this.material,translucent:this.material.isTranslucent(),closed:this.closed}),depthFailAppearance:r,shadows:this.shadows}),n.add(i),t=!1}else{(0,a.Z)(i)&&(n.remove(i),i=void 0);const e=this.oldPrimitive;(0,a.Z)(e)&&(n.remove(e),this.oldPrimitive=void 0)}this.attributes.removeAll(),this.primitive=i,this.createPrimitive=!1}else if((0,a.Z)(i)&&i.ready){i.show=!0,(0,a.Z)(this.oldPrimitive)&&(n.remove(this.oldPrimitive),this.oldPrimitive=void 0),this.material=m.Z.getValue(e,this.materialProperty,this.material),this.primitive.appearance.material=this.material,!(0,a.Z)(this.depthFailAppearanceType)||this.depthFailMaterialProperty instanceof p.Z||(this.depthFailMaterial=m.Z.getValue(e,this.depthFailMaterialProperty,this.depthFailMaterial),this.primitive.depthFailAppearance.material=this.depthFailMaterial);const t=this.updatersWithAttributes.values,d=t.length;for(A=0;A=0;i--){const n=t[i];if(n.remove(e)){0===n.updaters.length&&(t.splice(i,1),n.destroy());break}}},v.prototype.update=function(e){let t;const i=this._items;for(t=i.length-1;t>=0;t--){const n=i[t];if(n.invalidated){i.splice(t,1);const r=n.updaters.values,o=r.length;for(let t=0;t{"use strict";i.d(t,{Z:()=>y});var n=i(878438),r=i(545125),o=i(182934),s=i(426468),a=i(744497),c=i(231432),u=i(208613),l=i(975023),h=i(120896),d=i(444147),f=i(384072);const p=new r.Z,m=new a.Z,_=new a.Z;function Z(e,t,i,r){this.primitives=e,this.zIndex=r,this.classificationType=t,this.color=i,this.createPrimitive=!1,this.waitingOnCreate=!1,this.primitive=void 0,this.oldPrimitive=void 0,this.geometry=new n.Z,this.updaters=new n.Z,this.updatersWithAttributes=new n.Z,this.attributes=new n.Z,this.subscriptions=new n.Z,this.showsUpdated=new n.Z,this.itemsToRemove=[],this.isDirty=!1,this.rectangleCollisionCheck=new f.Z}function g(e,t){this._batches=[],this._primitives=e,this._classificationType=t}Z.prototype.overlapping=function(e){return this.rectangleCollisionCheck.collides(e)},Z.prototype.add=function(e,t){const i=e.id;if(this.createPrimitive=!0,this.geometry.set(i,t),this.updaters.set(i,e),this.rectangleCollisionCheck.insert(i,t.geometry.rectangle),e.hasConstantFill&&e.fillMaterialProperty.isConstant&&d.Z.isConstant(e.distanceDisplayConditionProperty)){const t=this;this.subscriptions.set(i,e.entity.definitionChanged.addEventListener((function(i,n,r,o){"isShowing"===n&&t.showsUpdated.set(e.id,e)})))}else this.updatersWithAttributes.set(i,e)},Z.prototype.remove=function(e){const t=e.id,i=this.geometry.get(t);if(this.createPrimitive=this.geometry.remove(t)||this.createPrimitive,this.updaters.remove(t)){this.rectangleCollisionCheck.remove(t,i.geometry.rectangle),this.updatersWithAttributes.remove(t);const e=this.subscriptions.get(t);return(0,s.Z)(e)&&(e(),this.subscriptions.remove(t),this.showsUpdated.remove(t)),!0}return!1},Z.prototype.update=function(e){let t=!0,i=this.primitive;const n=this.primitives;let h;if(this.createPrimitive){const e=this.geometry.values;if(e.length>0)(0,s.Z)(i)&&((0,s.Z)(this.oldPrimitive)?n.remove(i):this.oldPrimitive=i),i=new l.Z({show:!1,asynchronous:!0,geometryInstances:e.slice(),classificationType:this.classificationType}),n.add(i,this.zIndex),t=!1;else{(0,s.Z)(i)&&(n.remove(i),i=void 0);const e=this.oldPrimitive;(0,s.Z)(e)&&(n.remove(e),this.oldPrimitive=void 0)}this.attributes.removeAll(),this.primitive=i,this.createPrimitive=!1,this.waitingOnCreate=!0}else if((0,s.Z)(i)&&i.ready){i.show=!0,(0,s.Z)(this.oldPrimitive)&&(n.remove(this.oldPrimitive),this.oldPrimitive=void 0);const t=this.updatersWithAttributes.values,l=t.length,f=this.waitingOnCreate;for(h=0;h=0;--t){const i=r[t];i.isDirty&&(n=r[t].update(e)&&n,i.isDirty=!1),0===i.geometry.length&&r.splice(t,1)}return n},g.prototype.getBoundingSphere=function(e,t){const i=this._batches,n=i.length;for(let r=0;r{"use strict";i.d(t,{Z:()=>y});var n=i(878438),r=i(426468),o=i(744497),s=i(231432),a=i(384072),c=i(208613),u=i(975023),l=i(816723),h=i(120896),d=i(141653),f=i(332315),p=i(444147);const m=new o.Z,_=new o.Z;function Z(e,t,i,r,o,s){this.primitives=e,this.classificationType=t,this.appearanceType=i,this.materialProperty=r,this.updaters=new n.Z,this.createPrimitive=!0,this.primitive=void 0,this.oldPrimitive=void 0,this.geometry=new n.Z,this.material=void 0,this.updatersWithAttributes=new n.Z,this.attributes=new n.Z,this.invalidated=!1,this.removeMaterialSubscription=r.definitionChanged.addEventListener(Z.prototype.onMaterialChanged,this),this.subscriptions=new n.Z,this.showsUpdated=new n.Z,this.usingSphericalTextureCoordinates=o,this.zIndex=s,this.rectangleCollisionCheck=new a.Z}function g(e,t,i){this._items=[],this._primitives=e,this._classificationType=t,this._appearanceType=i}Z.prototype.onMaterialChanged=function(){this.invalidated=!0},Z.prototype.overlapping=function(e){return this.rectangleCollisionCheck.collides(e)},Z.prototype.isMaterial=function(e){const t=this.materialProperty,i=e.fillMaterialProperty;return i===t||i instanceof d.Z&&t instanceof d.Z||(0,r.Z)(t)&&t.equals(i)},Z.prototype.add=function(e,t,i){const n=t.id;if(this.updaters.set(n,t),this.geometry.set(n,i),this.rectangleCollisionCheck.insert(n,i.geometry.rectangle),t.hasConstantFill&&t.fillMaterialProperty.isConstant&&p.Z.isConstant(t.distanceDisplayConditionProperty)){const e=this;this.subscriptions.set(n,t.entity.definitionChanged.addEventListener((function(i,n,r,o){"isShowing"===n&&e.showsUpdated.set(t.id,t)})))}else this.updatersWithAttributes.set(n,t);this.createPrimitive=!0},Z.prototype.remove=function(e){const t=e.id,i=this.geometry.get(t);if(this.createPrimitive=this.geometry.remove(t)||this.createPrimitive,this.updaters.remove(t)){this.rectangleCollisionCheck.remove(t,i.geometry.rectangle),this.updatersWithAttributes.remove(t);const e=this.subscriptions.get(t);return(0,r.Z)(e)&&(e(),this.subscriptions.remove(t)),!0}return!1},Z.prototype.update=function(e){let t=!0,i=this.primitive;const n=this.primitives,a=this.geometry.values;let l;if(this.createPrimitive){if(a.length>0)(0,r.Z)(i)&&((0,r.Z)(this.oldPrimitive)?n.remove(i):this.oldPrimitive=i),this.material=f.Z.getValue(e,this.materialProperty,this.material),i=new u.Z({show:!1,asynchronous:!0,geometryInstances:a.slice(),appearance:new this.appearanceType({material:this.material}),classificationType:this.classificationType}),n.add(i,this.zIndex),t=!1;else{(0,r.Z)(i)&&(n.remove(i),i=void 0);const e=this.oldPrimitive;(0,r.Z)(e)&&(n.remove(e),this.oldPrimitive=void 0)}this.attributes.removeAll(),this.primitive=i,this.createPrimitive=!1}else if((0,r.Z)(i)&&i.ready){i.show=!0,(0,r.Z)(this.oldPrimitive)&&(n.remove(this.oldPrimitive),this.oldPrimitive=void 0),this.material=f.Z.getValue(e,this.materialProperty,this.material),this.primitive.appearance.material=this.material;const t=this.updatersWithAttributes.values,a=t.length;for(l=0;l=0;i--){const n=t[i];if(n.remove(e)){0===n.updaters.length&&(t.splice(i,1),n.destroy());break}}},g.prototype.update=function(e){let t;const i=this._items;for(t=i.length-1;t>=0;t--){const n=i[t];if(n.invalidated){i.splice(t,1);const r=n.updaters.values,o=r.length;for(let t=0;t{"use strict";i.d(t,{Z:()=>v});var n=i(878438),r=i(545125),o=i(182934),s=i(406144),a=i(426468),c=i(744497),u=i(231432),l=i(208613),h=i(284283),d=i(843658),f=i(957049),p=i(120896),m=i(141653),_=i(332315),Z=i(444147);const g=new r.Z,y=new c.Z,b=new c.Z;function A(e,t,i,r,o){let s;s=i instanceof m.Z?d.Z:f.Z,this.orderedGroundPrimitives=e,this.classificationType=t,this.appearanceType=s,this.materialProperty=i,this.updaters=new n.Z,this.createPrimitive=!0,this.primitive=void 0,this.oldPrimitive=void 0,this.geometry=new n.Z,this.material=void 0,this.updatersWithAttributes=new n.Z,this.attributes=new n.Z,this.invalidated=!1,this.removeMaterialSubscription=i.definitionChanged.addEventListener(A.prototype.onMaterialChanged,this),this.subscriptions=new n.Z,this.showsUpdated=new n.Z,this.zIndex=r,this._asynchronous=o}function w(e,t,i){this._items=[],this._orderedGroundPrimitives=e,this._classificationType=t,this._asynchronous=(0,s.Z)(i,!0)}A.prototype.onMaterialChanged=function(){this.invalidated=!0},A.prototype.isMaterial=function(e){const t=this.materialProperty,i=e.fillMaterialProperty;return i===t||i instanceof m.Z&&t instanceof m.Z||(0,a.Z)(t)&&t.equals(i)},A.prototype.add=function(e,t,i){const n=t.id;if(this.updaters.set(n,t),this.geometry.set(n,i),t.hasConstantFill&&t.fillMaterialProperty.isConstant&&Z.Z.isConstant(t.distanceDisplayConditionProperty)){const e=this;this.subscriptions.set(n,t.entity.definitionChanged.addEventListener((function(i,n,r,o){"isShowing"===n&&e.showsUpdated.set(t.id,t)})))}else this.updatersWithAttributes.set(n,t);this.createPrimitive=!0},A.prototype.remove=function(e){const t=e.id;if(this.createPrimitive=this.geometry.remove(t)||this.createPrimitive,this.updaters.remove(t)){this.updatersWithAttributes.remove(t);const e=this.subscriptions.get(t);return(0,a.Z)(e)&&(e(),this.subscriptions.remove(t)),!0}return!1},A.prototype.update=function(e){let t=!0,i=this.primitive;const n=this.orderedGroundPrimitives,s=this.geometry.values;let d;if(this.createPrimitive){if(s.length>0)(0,a.Z)(i)&&((0,a.Z)(this.oldPrimitive)?n.remove(i):this.oldPrimitive=i),i=new h.Z({show:!1,asynchronous:this._asynchronous,geometryInstances:s.slice(),appearance:new this.appearanceType,classificationType:this.classificationType}),this.appearanceType===f.Z&&(this.material=_.Z.getValue(e,this.materialProperty,this.material),i.appearance.material=this.material),n.add(i,this.zIndex),t=!1;else{(0,a.Z)(i)&&(n.remove(i),i=void 0);const e=this.oldPrimitive;(0,a.Z)(e)&&(n.remove(e),this.oldPrimitive=void 0)}this.attributes.removeAll(),this.primitive=i,this.createPrimitive=!1}else if((0,a.Z)(i)&&i.ready){i.show=!0,(0,a.Z)(this.oldPrimitive)&&(n.remove(this.oldPrimitive),this.oldPrimitive=void 0),this.appearanceType===f.Z&&(this.material=_.Z.getValue(e,this.materialProperty,this.material),this.primitive.appearance.material=this.material);const t=this.updatersWithAttributes.values,s=t.length;for(d=0;d=0;i--){const n=t[i];if(n.remove(e)){0===n.updaters.length&&(t.splice(i,1),n.destroy());break}}},w.prototype.update=function(e){let t;const i=this._items;for(t=i.length-1;t>=0;t--){const n=i[t];if(n.invalidated){i.splice(t,1);const r=n.updaters.values,o=r.length;for(let t=0;t{"use strict";i.d(t,{Z:()=>v});var n=i(878438),r=i(919382),o=i(545125),s=i(182934),a=i(426468),c=i(744497),u=i(231432),l=i(81203),h=i(208613),d=i(578721),f=i(939800),p=i(120896),m=i(444147);const _=new o.Z,Z=new c.Z,g=new c.Z,y=r.Z.ZERO,b=new r.Z;function A(e,t,i,r){this.translucent=t,this.width=i,this.shadows=r,this.primitives=e,this.createPrimitive=!1,this.waitingOnCreate=!1,this.primitive=void 0,this.oldPrimitive=void 0,this.geometry=new n.Z,this.updaters=new n.Z,this.updatersWithAttributes=new n.Z,this.attributes=new n.Z,this.itemsToRemove=[],this.subscriptions=new n.Z,this.showsUpdated=new n.Z}function w(e,t,i){this._primitives=e,this._scene=t,this._shadows=i,this._solidBatches=new n.Z,this._translucentBatches=new n.Z}A.prototype.add=function(e,t){const i=e.id;if(this.createPrimitive=!0,this.geometry.set(i,t),this.updaters.set(i,e),e.hasConstantOutline&&e.outlineColorProperty.isConstant&&m.Z.isConstant(e.distanceDisplayConditionProperty)&&m.Z.isConstant(e.terrainOffsetProperty)){const t=this;this.subscriptions.set(i,e.entity.definitionChanged.addEventListener((function(i,n,r,o){"isShowing"===n&&t.showsUpdated.set(e.id,e)})))}else this.updatersWithAttributes.set(i,e)},A.prototype.remove=function(e){const t=e.id;if(this.createPrimitive=this.geometry.remove(t)||this.createPrimitive,this.updaters.remove(t)){this.updatersWithAttributes.remove(t);const e=this.subscriptions.get(t);return(0,a.Z)(e)&&(e(),this.subscriptions.remove(t),this.showsUpdated.remove(t)),!0}return!1},A.prototype.update=function(e){let t=!0,i=0,n=this.primitive;const p=this.primitives;let A;if(this.createPrimitive){const e=this.geometry.values;if(e.length>0)(0,a.Z)(n)&&((0,a.Z)(this.oldPrimitive)?p.remove(n):this.oldPrimitive=n),n=new f.Z({show:!1,asynchronous:!0,geometryInstances:e.slice(),appearance:new d.Z({flat:!0,translucent:this.translucent,renderState:{lineWidth:this.width}}),shadows:this.shadows}),p.add(n),t=!1;else{(0,a.Z)(n)&&(p.remove(n),n=void 0);const e=this.oldPrimitive;(0,a.Z)(e)&&(p.remove(e),this.oldPrimitive=void 0)}this.attributes.removeAll(),this.primitive=n,this.createPrimitive=!1,this.waitingOnCreate=!0}else if((0,a.Z)(n)&&n.ready){n.show=!0,(0,a.Z)(this.oldPrimitive)&&(p.remove(this.oldPrimitive),this.oldPrimitive=void 0);const t=this.updatersWithAttributes.values,d=t.length,f=this.waitingOnCreate;for(A=0;A0)for(h=!0,t=0;t0)for(h=!0,t=0;t{"use strict";i.d(t,{Z:()=>p});var n=i(545125),r=i(406144),o=i(426468),s=i(197685),a=i(528531),c=i(444147),u=i(885144);const l=u.Z.HORIZONTAL,h=n.Z.WHITE,d=n.Z.BLACK;function f(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),this._definitionChanged=new s.Z,this._orientation=void 0,this._orientationSubscription=void 0,this._evenColor=void 0,this._evenColorSubscription=void 0,this._oddColor=void 0,this._oddColorSubscription=void 0,this._offset=void 0,this._offsetSubscription=void 0,this._repeat=void 0,this._repeatSubscription=void 0,this.orientation=e.orientation,this.evenColor=e.evenColor,this.oddColor=e.oddColor,this.offset=e.offset,this.repeat=e.repeat}Object.defineProperties(f.prototype,{isConstant:{get:function(){return c.Z.isConstant(this._orientation)&&c.Z.isConstant(this._evenColor)&&c.Z.isConstant(this._oddColor)&&c.Z.isConstant(this._offset)&&c.Z.isConstant(this._repeat)}},definitionChanged:{get:function(){return this._definitionChanged}},orientation:(0,a.Z)("orientation"),evenColor:(0,a.Z)("evenColor"),oddColor:(0,a.Z)("oddColor"),offset:(0,a.Z)("offset"),repeat:(0,a.Z)("repeat")}),f.prototype.getType=function(e){return"Stripe"},f.prototype.getValue=function(e,t){return(0,o.Z)(t)||(t={}),t.horizontal=c.Z.getValueOrDefault(this._orientation,e,l)===u.Z.HORIZONTAL,t.evenColor=c.Z.getValueOrClonedDefault(this._evenColor,e,h,t.evenColor),t.oddColor=c.Z.getValueOrClonedDefault(this._oddColor,e,d,t.oddColor),t.offset=c.Z.getValueOrDefault(this._offset,e,0),t.repeat=c.Z.getValueOrDefault(this._repeat,e,1),t},f.prototype.equals=function(e){return this===e||e instanceof f&&c.Z.equals(this._orientation,e._orientation)&&c.Z.equals(this._evenColor,e._evenColor)&&c.Z.equals(this._oddColor,e._oddColor)&&c.Z.equals(this._offset,e._offset)&&c.Z.equals(this._repeat,e._repeat)};const p=f},885144:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({HORIZONTAL:0,VERTICAL:1})},68750:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Z});var n=i(919382),r=i(698907),o=i(357299),s=i(426468),a=i(54879),c=i(197685),u=i(29699),l=i(362017),h=i(110499),d=i(506678),f=i(444147);const p=new n.Z,m=new r.Z;function _(e,t,i,a){o.Z.defined("scene",e),o.Z.defined("positionProperty",t),this._scene=e,this._heightReference=i,this._extrudedHeightReference=a,this._positionProperty=t,this._position=new n.Z,this._cartographicPosition=new r.Z,this._normal=new n.Z,this._definitionChanged=new c.Z,this._terrainHeight=0,this._removeCallbackFunc=void 0,this._removeEventListener=void 0,this._removeModeListener=void 0;const l=this;if((0,s.Z)(e.globe)&&(this._removeEventListener=e.terrainProviderChanged.addEventListener((function(){l._updateClamping()})),this._removeModeListener=e.morphComplete.addEventListener((function(){l._updateClamping()}))),t.isConstant){const i=t.getValue(u.Z.MINIMUM_VALUE,p);if(!(0,s.Z)(i)||n.Z.equals(i,n.Z.ZERO)||!(0,s.Z)(e.globe))return;this._position=n.Z.clone(i,this._position),this._updateClamping(),this._normal=e.globe.ellipsoid.geodeticSurfaceNormal(i,this._normal)}}Object.defineProperties(_.prototype,{isConstant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}}}),_.prototype._updateClamping=function(){(0,s.Z)(this._removeCallbackFunc)&&this._removeCallbackFunc();const e=this._scene,t=e.globe,i=this._position;if(!(0,s.Z)(t)||n.Z.equals(i,n.Z.ZERO))return void(this._terrainHeight=0);const r=t.ellipsoid,o=t._surface,a=this,c=r.cartesianToCartographic(i,this._cartographicPosition),u=t.getHeight(c);(0,s.Z)(u)?this._terrainHeight=u:this._terrainHeight=0,this._removeCallbackFunc=o.updateHeight(c,(function(t){if(e.mode===d.Z.SCENE3D){const e=r.cartesianToCartographic(t,m);a._terrainHeight=e.height}else a._terrainHeight=t.x;a.definitionChanged.raiseEvent()}))},_.prototype.getValue=function(e,t){const i=f.Z.getValueOrDefault(this._heightReference,e,h.Z.NONE),r=f.Z.getValueOrDefault(this._extrudedHeightReference,e,h.Z.NONE);if(i===h.Z.NONE&&r!==h.Z.RELATIVE_TO_GROUND)return this._position=n.Z.clone(n.Z.ZERO,this._position),n.Z.clone(n.Z.ZERO,t);if(this._positionProperty.isConstant)return n.Z.multiplyByScalar(this._normal,this._terrainHeight,t);const o=this._scene,a=this._positionProperty.getValue(e,p);if(!(0,s.Z)(a)||n.Z.equals(a,n.Z.ZERO)||!(0,s.Z)(o.globe))return n.Z.clone(n.Z.ZERO,t);if(n.Z.equalsEpsilon(this._position,a,l.Z.EPSILON10))return n.Z.multiplyByScalar(this._normal,this._terrainHeight,t);this._position=n.Z.clone(a,this._position),this._updateClamping();const c=o.globe.ellipsoid.geodeticSurfaceNormal(a,this._normal);return n.Z.multiplyByScalar(c,this._terrainHeight,t)},_.prototype.isDestroyed=function(){return!1},_.prototype.destroy=function(){return(0,s.Z)(this._removeEventListener)&&this._removeEventListener(),(0,s.Z)(this._removeModeListener)&&this._removeModeListener(),(0,s.Z)(this._removeCallbackFunc)&&this._removeCallbackFunc(),(0,a.Z)(this)};const Z=_},95355:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(406144),r=i(426468),o=i(446938),s=i(197685),a=i(656331),c=i(796319),u=i(70143),l=i(444147);function h(e){this._definitionChanged=new s.Z,this._intervals=new c.Z,this._intervals.changedEvent.addEventListener(h.prototype._intervalsChanged,this),this._referenceFrame=(0,n.Z)(e,a.Z.FIXED)}Object.defineProperties(h.prototype,{isConstant:{get:function(){return this._intervals.isEmpty}},definitionChanged:{get:function(){return this._definitionChanged}},intervals:{get:function(){return this._intervals}},referenceFrame:{get:function(){return this._referenceFrame}}}),h.prototype.getValue=function(e,t){return this.getValueInReferenceFrame(e,a.Z.FIXED,t)},h.prototype.getValueInReferenceFrame=function(e,t,i){if(!(0,r.Z)(e))throw new o.Z("time is required.");if(!(0,r.Z)(t))throw new o.Z("referenceFrame is required.");const n=this._intervals.findDataForIntervalContainingDate(e);if((0,r.Z)(n))return u.Z.convertToReferenceFrame(e,n,this._referenceFrame,t,i)},h.prototype.equals=function(e){return this===e||e instanceof h&&this._intervals.equals(e._intervals,l.Z.equals)&&this._referenceFrame===e._referenceFrame},h.prototype._intervalsChanged=function(){this._definitionChanged.raiseEvent(this)};const d=h},280297:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(426468),r=i(446938),o=i(197685),s=i(796319),a=i(444147);function c(){this._definitionChanged=new o.Z,this._intervals=new s.Z,this._intervals.changedEvent.addEventListener(c.prototype._intervalsChanged,this)}Object.defineProperties(c.prototype,{isConstant:{get:function(){return this._intervals.isEmpty}},definitionChanged:{get:function(){return this._definitionChanged}},intervals:{get:function(){return this._intervals}}}),c.prototype.getValue=function(e,t){if(!(0,n.Z)(e))throw new r.Z("time is required");const i=this._intervals.findDataForIntervalContainingDate(e);return(0,n.Z)(i)&&"function"==typeof i.clone?i.clone(t):i},c.prototype.equals=function(e){return this===e||e instanceof c&&this._intervals.equals(e._intervals,a.Z.equals)},c.prototype._intervalsChanged=function(){this._definitionChanged.raiseEvent(this)};const u=c},466668:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Z});var n=i(919382),r=i(406144),o=i(426468),s=i(253316),a=i(197685),c=i(165373),u=i(129782),l=i(358198),h=i(444147),d=i(655272);function f(e,t){this._velocityVectorProperty=new d.Z(e,!0),this._subscription=void 0,this._ellipsoid=void 0,this._definitionChanged=new a.Z,this.ellipsoid=(0,r.Z)(t,s.Z.WGS84);const i=this;this._velocityVectorProperty.definitionChanged.addEventListener((function(){i._definitionChanged.raiseEvent(i)}))}Object.defineProperties(f.prototype,{isConstant:{get:function(){return h.Z.isConstant(this._velocityVectorProperty)}},definitionChanged:{get:function(){return this._definitionChanged}},position:{get:function(){return this._velocityVectorProperty.position},set:function(e){this._velocityVectorProperty.position=e}},ellipsoid:{get:function(){return this._ellipsoid},set:function(e){this._ellipsoid!==e&&(this._ellipsoid=e,this._definitionChanged.raiseEvent(this))}}});const p=new n.Z,m=new n.Z,_=new c.Z;f.prototype.getValue=function(e,t){const i=this._velocityVectorProperty._getValue(e,m,p);if((0,o.Z)(i))return l.Z.rotationMatrixFromPositionVelocity(p,i,this._ellipsoid,_),u.Z.fromRotationMatrix(_,t)},f.prototype.equals=function(e){return this===e||e instanceof f&&h.Z.equals(this._velocityVectorProperty,e._velocityVectorProperty)&&(this._ellipsoid===e._ellipsoid||this._ellipsoid.equals(e._ellipsoid))};const Z=f},655272:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});var n=i(919382),r=i(406144),o=i(426468),s=i(446938),a=i(197685),c=i(40080),u=i(444147);function l(e,t){this._position=void 0,this._subscription=void 0,this._definitionChanged=new a.Z,this._normalize=(0,r.Z)(t,!0),this.position=e}Object.defineProperties(l.prototype,{isConstant:{get:function(){return u.Z.isConstant(this._position)}},definitionChanged:{get:function(){return this._definitionChanged}},position:{get:function(){return this._position},set:function(e){const t=this._position;t!==e&&((0,o.Z)(t)&&this._subscription(),this._position=e,(0,o.Z)(e)&&(this._subscription=e._definitionChanged.addEventListener((function(){this._definitionChanged.raiseEvent(this)}),this)),this._definitionChanged.raiseEvent(this))}},normalize:{get:function(){return this._normalize},set:function(e){this._normalize!==e&&(this._normalize=e,this._definitionChanged.raiseEvent(this))}}});const h=new n.Z,d=new n.Z,f=new c.Z,p=1/60;l.prototype.getValue=function(e,t){return this._getValue(e,t)},l.prototype._getValue=function(e,t,i){if(!(0,o.Z)(e))throw new s.Z("time is required");(0,o.Z)(t)||(t=new n.Z);const r=this._position;if(u.Z.isConstant(r))return this._normalize?void 0:n.Z.clone(n.Z.ZERO,t);let a=r.getValue(e,h),l=r.getValue(c.Z.addSeconds(e,p,f),d);if(!(0,o.Z)(a))return;if(!(0,o.Z)(l)&&(l=a,a=r.getValue(c.Z.addSeconds(e,-p,f),d),!(0,o.Z)(a)))return;if(n.Z.equals(a,l))return this._normalize?void 0:n.Z.clone(n.Z.ZERO,t);(0,o.Z)(i)&&a.clone(i);const m=n.Z.subtract(l,a,t);return this._normalize?n.Z.normalize(m,t):n.Z.divideByScalar(m,p,t)},l.prototype.equals=function(e){return this===e||e instanceof l&&u.Z.equals(this._position,e._position)};const m=l},44114:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(446938);function r(){n.Z.throwInstantiationError()}r.prototype.update=n.Z.throwInstantiationError,r.prototype.getBoundingSphere=n.Z.throwInstantiationError,r.prototype.isDestroyed=n.Z.throwInstantiationError,r.prototype.destroy=n.Z.throwInstantiationError;const o=r},13668:(e,t,i)=>{"use strict";i.d(t,{Z:()=>T});var n=i(357299),r=i(545125),o=i(182934),s=i(426468),a=i(446938),c=i(231432),u=i(952254),l=i(29699),h=i(208613),d=i(441774),f=i(916953),p=i(112546),m=i(578721),_=i(141653),Z=i(955701),g=i(710923),y=i(444147);const b=new r.Z;function A(e){this.id=e,this.vertexFormat=void 0,this.positions=void 0,this.minimumHeights=void 0,this.maximumHeights=void 0,this.granularity=void 0}function w(e,t){g.Z.call(this,{entity:e,scene:t,geometryOptions:new A(e),geometryPropertyName:"wall",observedPropertyNames:["availability","wall"]}),this._onEntityPropertyChanged(e,"wall",e.wall,void 0)}function v(e,t,i){Z.Z.call(this,e,t,i)}(0,s.Z)(Object.create)&&(w.prototype=Object.create(g.Z.prototype),w.prototype.constructor=w),w.prototype.createFillGeometryInstance=function(e){if(n.Z.defined("time",e),!this._fillEnabled)throw new a.Z("This instance does not represent a filled geometry.");const t=this._entity,i=t.isAvailable(e);let l,f;const p=new h.Z(i&&t.isShowing&&this._showProperty.getValue(e)&&this._fillProperty.getValue(e)),m=this._distanceDisplayConditionProperty.getValue(e),Z=c.Z.fromDistanceDisplayCondition(m);if(this._materialProperty instanceof _.Z){let t;(0,s.Z)(this._materialProperty.color)&&(this._materialProperty.color.isConstant||i)&&(t=this._materialProperty.color.getValue(e,b)),(0,s.Z)(t)||(t=r.Z.WHITE),f=o.Z.fromColor(t),l={show:p,distanceDisplayCondition:Z,color:f}}else l={show:p,distanceDisplayCondition:Z};return new u.Z({id:t,geometry:new d.Z(this._options),attributes:l})},w.prototype.createOutlineGeometryInstance=function(e){if(n.Z.defined("time",e),!this._outlineEnabled)throw new a.Z("This instance does not represent an outlined geometry.");const t=this._entity,i=t.isAvailable(e),s=y.Z.getValueOrDefault(this._outlineColorProperty,e,r.Z.BLACK,b),l=this._distanceDisplayConditionProperty.getValue(e);return new u.Z({id:t,geometry:new f.Z(this._options),attributes:{show:new h.Z(i&&t.isShowing&&this._showProperty.getValue(e)&&this._showOutlineProperty.getValue(e)),color:o.Z.fromColor(s),distanceDisplayCondition:c.Z.fromDistanceDisplayCondition(l)}})},w.prototype._isHidden=function(e,t){return!(0,s.Z)(t.positions)||g.Z.prototype._isHidden.call(this,e,t)},w.prototype._getIsClosed=function(e){return!1},w.prototype._isDynamic=function(e,t){return!(t.positions.isConstant&&y.Z.isConstant(t.minimumHeights)&&y.Z.isConstant(t.maximumHeights)&&y.Z.isConstant(t.outlineWidth)&&y.Z.isConstant(t.granularity))},w.prototype._setStaticOptions=function(e,t){const i=t.minimumHeights,n=t.maximumHeights,r=t.granularity,o=this._materialProperty instanceof _.Z,a=this._options;a.vertexFormat=o?m.Z.VERTEX_FORMAT:p.Z.MaterialSupport.TEXTURED.vertexFormat,a.positions=t.positions.getValue(l.Z.MINIMUM_VALUE,a.positions),a.minimumHeights=(0,s.Z)(i)?i.getValue(l.Z.MINIMUM_VALUE,a.minimumHeights):void 0,a.maximumHeights=(0,s.Z)(n)?n.getValue(l.Z.MINIMUM_VALUE,a.maximumHeights):void 0,a.granularity=(0,s.Z)(r)?r.getValue(l.Z.MINIMUM_VALUE):void 0},w.DynamicGeometryUpdater=v,(0,s.Z)(Object.create)&&(v.prototype=Object.create(Z.Z.prototype),v.prototype.constructor=v),v.prototype._isHidden=function(e,t,i){return!(0,s.Z)(this._options.positions)||Z.Z.prototype._isHidden.call(this,e,t,i)},v.prototype._setOptions=function(e,t,i){const n=this._options;n.positions=y.Z.getValueOrUndefined(t.positions,i,n.positions),n.minimumHeights=y.Z.getValueOrUndefined(t.minimumHeights,i,n.minimumHeights),n.maximumHeights=y.Z.getValueOrUndefined(t.maximumHeights,i,n.maximumHeights),n.granularity=y.Z.getValueOrUndefined(t.granularity,i)};const T=w},937157:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(406144),r=i(426468),o=i(446938),s=i(197685),a=i(489351),c=i(528531);function u(e){this._definitionChanged=new s.Z,this._show=void 0,this._showSubscription=void 0,this._positions=void 0,this._positionsSubscription=void 0,this._minimumHeights=void 0,this._minimumHeightsSubscription=void 0,this._maximumHeights=void 0,this._maximumHeightsSubscription=void 0,this._granularity=void 0,this._granularitySubscription=void 0,this._fill=void 0,this._fillSubscription=void 0,this._material=void 0,this._materialSubscription=void 0,this._outline=void 0,this._outlineSubscription=void 0,this._outlineColor=void 0,this._outlineColorSubscription=void 0,this._outlineWidth=void 0,this._outlineWidthSubscription=void 0,this._shadows=void 0,this._shadowsSubscription=void 0,this._distanceDisplayCondition=void 0,this._distanceDisplayConditionSubscription=void 0,this.merge((0,n.Z)(e,n.Z.EMPTY_OBJECT))}Object.defineProperties(u.prototype,{definitionChanged:{get:function(){return this._definitionChanged}},show:(0,c.Z)("show"),positions:(0,c.Z)("positions"),minimumHeights:(0,c.Z)("minimumHeights"),maximumHeights:(0,c.Z)("maximumHeights"),granularity:(0,c.Z)("granularity"),fill:(0,c.Z)("fill"),material:(0,a.Z)("material"),outline:(0,c.Z)("outline"),outlineColor:(0,c.Z)("outlineColor"),outlineWidth:(0,c.Z)("outlineWidth"),shadows:(0,c.Z)("shadows"),distanceDisplayCondition:(0,c.Z)("distanceDisplayCondition")}),u.prototype.clone=function(e){return(0,r.Z)(e)?(e.show=this.show,e.positions=this.positions,e.minimumHeights=this.minimumHeights,e.maximumHeights=this.maximumHeights,e.granularity=this.granularity,e.fill=this.fill,e.material=this.material,e.outline=this.outline,e.outlineColor=this.outlineColor,e.outlineWidth=this.outlineWidth,e.shadows=this.shadows,e.distanceDisplayCondition=this.distanceDisplayCondition,e):new u(this)},u.prototype.merge=function(e){if(!(0,r.Z)(e))throw new o.Z("source is required.");this.show=(0,n.Z)(this.show,e.show),this.positions=(0,n.Z)(this.positions,e.positions),this.minimumHeights=(0,n.Z)(this.minimumHeights,e.minimumHeights),this.maximumHeights=(0,n.Z)(this.maximumHeights,e.maximumHeights),this.granularity=(0,n.Z)(this.granularity,e.granularity),this.fill=(0,n.Z)(this.fill,e.fill),this.material=(0,n.Z)(this.material,e.material),this.outline=(0,n.Z)(this.outline,e.outline),this.outlineColor=(0,n.Z)(this.outlineColor,e.outlineColor),this.outlineWidth=(0,n.Z)(this.outlineWidth,e.outlineWidth),this.shadows=(0,n.Z)(this.shadows,e.shadows),this.distanceDisplayCondition=(0,n.Z)(this.distanceDisplayCondition,e.distanceDisplayCondition)};const l=u},489351:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(545125),r=i(446938),o=i(795788),s=i(141653),a=i(528531),c=i(620392);function u(e){if(e instanceof n.Z)return new s.Z(e);if("string"==typeof e||e instanceof o.Z||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement){const t=new c.Z;return t.image=e,t}throw new r.Z("Unable to infer material type: "+e)}const l=function(e,t){return(0,a.Z)(e,t,u)}},528531:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(406144),r=i(426468),o=i(243110);function s(e){return new o.Z(e)}const a=function(e,t,i){return function(e,t,i,n,o){return{configurable:n,get:function(){return this[t]},set:function(n){const s=this[t],a=this[i];(0,r.Z)(a)&&(a(),this[i]=void 0),!(void 0!==n)||(0,r.Z)(n)&&(0,r.Z)(n.getValue)||!(0,r.Z)(o)||(n=o(n)),s!==n&&(this[t]=n,this._definitionChanged.raiseEvent(this,e,n,s)),(0,r.Z)(n)&&(0,r.Z)(n.definitionChanged)&&(this[i]=n.definitionChanged.addEventListener((function(){this._definitionChanged.raiseEvent(this,e,n,n)}),this))}}}(e,"_"+e.toString(),"_"+e.toString()+"Subscription",(0,n.Z)(t,!1),(0,n.Z)(i,s))}},852376:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(528531);function r(e){return e}const o=function(e,t){return(0,n.Z)(e,t,r)}},55062:(e,t,i)=>{"use strict";i.d(t,{Z:()=>ae});var n=i(913216),r=i(337968),o=i(919382),s=i(698907),a=i(545125),c=i(416974),u=i(406144),l=i(426468),h=i(446938),d=i(253316),f=i(29699),p=i(40080),m=i(362017),_=i(523501),Z=i(656331),g=i(795788),y=i(50128),b=i(446680),A=i(796319),w=i(110499),v=i(121015),T=i(825497),C=i(527758),E=i(108840),x=i(552759),S=i(755058),O=i(822638),I=i(511121),D=i(617899),P=i(404420),R=i(500590);const B="http://www.google.com/kml/ext/2.2";function M(e){this._files={},this._promises=[],this._count=0,this._modelCallback=e}const L=/^data:image\/([^,;]+)/;function N(e,t){return function(i){e._files[t]=i}}function F(e){this._time=e}function k(){this._ids={},this._styles={},this._count=0}function U(){this._ids={}}function V(e){const t=(e=(0,u.Z)(e,u.Z.EMPTY_OBJECT)).entities,i=(0,u.Z)(e.kmz,!1);if(!(0,l.Z)(t))throw new h.Z("entities is required.");const r=V._createState(e),o=t.values.filter((function(e){return!(0,l.Z)(e.parent)})),s=r.kmlDoc,a=s.documentElement;a.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:gx",B);const c=s.createElement("Document");a.appendChild(c),H(r,c,o),r.styleCache.save(c);const d=r.externalFileHandler;return d.promise.then((function(){const e=(new XMLSerializer).serializeToString(r.kmlDoc);return i?function(e,t){const i=(0,n.Z)("ThirdParty/Workers/z-worker-pako.js");E.Z.configure({workerScripts:{deflate:[i,"./pako_deflate.min.js"],inflate:[i,"./pako_inflate.min.js"]}});const r=new E.Z.BlobWriter,o=new E.Z.ZipWriter(r);return(0,C.Z)(o.add("doc.kml",new E.Z.TextReader(e))).then((function(){const e=Object.keys(t);return z(o,e,t,0)})).then((function(){return(0,C.Z)(o.close()).then((function(e){return{kmz:e}}))}))}(e,d.files):{kml:e,externalFiles:d.files}}))}function z(e,t,i,n){if(t.length===n)return;const r=t[n];return(0,C.Z)(e.add(r,new E.Z.BlobReader(i[r]))).then((function(){return z(e,t,i,n+1)}))}function H(e,t,i){const n=e.kmlDoc,r=e.styleCache,o=e.valueGetter,s=e.idManager,a=i.length;let c,u,h;for(let d=0;d0){const e=n.createElement("Placemark");e.setAttribute("id",s.get(a.id));let i=a.name;const c=a.label;if((0,l.Z)(c)){const e=n.createElement("LabelStyle"),t=o.get(c.text);i=(0,l.Z)(t)&&t.length>0?t:i;const r=o.getColor(c.fillColor);(0,l.Z)(r)&&(e.appendChild(oe(n,"color",r)),e.appendChild(oe(n,"colorMode","normal")));const s=o.get(c.scale);(0,l.Z)(s)&&e.appendChild(oe(n,"scale",s)),h.push(e)}e.appendChild(oe(n,"name",i)),e.appendChild(oe(n,"visibility",a.show)),e.appendChild(oe(n,"description",a.description)),(0,l.Z)(m)&&e.appendChild(m),t.appendChild(e);const d=h.length;if(d>0){const t=n.createElement("Style");for(let e=0;e1){const t=n.createElement("MultiGeometry");for(let e=0;e0){const i=n.createElement("Folder");i.setAttribute("id",s.get(a.id)),i.appendChild(oe(n,"name",a.name)),i.appendChild(oe(n,"visibility",a.show)),i.appendChild(oe(n,"description",a.description)),t.appendChild(i),H(e,i,g)}}}M.prototype.texture=function(e){const t=this;let i;if("string"==typeof e||e instanceof g.Z){if(!(e=g.Z.createIfNeeded(e)).isDataUri)return e.url;const n=e.url.match(L);i="texture_"+ ++this._count,(0,l.Z)(n)&&(i+="."+n[1]);const r=e.fetchBlob().then((function(e){t._files[i]=e}));return this._promises.push(r),i}if(e instanceof HTMLCanvasElement){const n=C.Z.defer();return this._promises.push(n.promise),i="texture_"+ ++this._count+".png",e.toBlob((function(e){t._files[i]=e,n.resolve()})),i}return""},M.prototype.model=function(e,t){const i=this._modelCallback;if(!(0,l.Z)(i))throw new y.Z("Encountered a model entity while exporting to KML, but no model callback was supplied.");const n={},r=i(e,t,n);for(const e in n)if(n.hasOwnProperty(e)){const t=(0,C.Z)(n[e]);this._promises.push(t),t.then(N(this,e))}return r},Object.defineProperties(M.prototype,{promise:{get:function(){return C.Z.all(this._promises)}},files:{get:function(){return this._files}}}),F.prototype.get=function(e,t,i){let n;return(0,l.Z)(e)&&(n=(0,l.Z)(e.getValue)?e.getValue(this._time,i):e),(0,u.Z)(n,t)},F.prototype.getColor=function(e,t){const i=this.get(e,t);if((0,l.Z)(i))return se(i)},F.prototype.getMaterialType=function(e){if((0,l.Z)(e))return e.getType(this._time)},k.prototype.get=function(e){const t=this._ids,i=e.innerHTML;if((0,l.Z)(t[i]))return t[i];let n="style-"+ ++this._count;return e.setAttribute("id",n),n="#"+n,t[i]=n,this._styles[i]=e,n},k.prototype.save=function(e){const t=this._styles,i=e.childNodes[0];for(const n in t)t.hasOwnProperty(n)&&e.insertBefore(t[n],i)},U.prototype.get=function(e){if(!(0,l.Z)(e))return this.get((0,c.Z)());const t=this._ids;return(0,l.Z)(t[e])?e.toString()+"-"+ ++t[e]:(t[e]=0,e)},V._createState=function(e){const t=e.entities,i=new k,n=t.computeAvailability(),r=(0,l.Z)(e.time)?e.time:n.start;let o=(0,u.Z)(e.defaultAvailability,n);const s=(0,u.Z)(e.sampleDuration,60);o.start===f.Z.MINIMUM_VALUE?o.stop===f.Z.MAXIMUM_VALUE?o=new b.Z:p.Z.addSeconds(o.stop,-10*s,o.start):o.stop===f.Z.MAXIMUM_VALUE&&p.Z.addSeconds(o.start,10*s,o.stop);const a=new M(e.modelCallback);return{kmlDoc:document.implementation.createDocument("http://www.opengis.net/kml/2.2","kml"),ellipsoid:(0,u.Z)(e.ellipsoid,d.Z.WGS84),idManager:new U,styleCache:i,externalFileHandler:a,time:r,valueGetter:new F(r),sampleDuration:s,defaultAvailability:new A.Z([o])}};const G=new o.Z,q=new s.Z,j=new p.Z;function W(e,t,i,n){const r=e.kmlDoc,o=e.ellipsoid,s=e.valueGetter,a=(0,u.Z)(t.billboard,t.point);if(!(0,l.Z)(a)&&!(0,l.Z)(t.path))return;const c=t.position;if(!c.isConstant)return void K(e,t,a,i,n);s.get(c,void 0,G);const h=oe(r,"coordinates",re(G,o)),d=r.createElement("Point"),f=r.createElement("altitudeMode");f.appendChild(ne(e,a.heightReference)),d.appendChild(f),d.appendChild(h),i.push(d);const p=a instanceof x.Z?X(e,a):Y(e,a);n.push(p)}function K(e,t,i,n,r){const s=e.kmlDoc,a=e.ellipsoid,c=e.valueGetter;let h;const d=t.position;let f=!0;d instanceof S.Z?(h=d.intervals,f=!1):h=(0,u.Z)(t.availability,e.defaultAvailability);const m=i instanceof O.Z;let _,g,y;const b=[];for(_=0;_1){const e=s.createElementNS(B,"MultiTrack");for(_=0;_0&&u.appendChild(oe(o,"extrude",!0));const d=c?function(e,t,i){const n=e.kmlDoc,r=e.valueGetter;let o=r.get(t.height,0);i>0&&(o=i);const s=t.coordinates,a=r.get(s),c=[],u=[_.Z.northeast,_.Z.southeast,_.Z.southwest,_.Z.northwest];for(let e=0;e<4;++e)u[e](a,q),c.push(m.Z.toDegrees(q.longitude)+","+m.Z.toDegrees(q.latitude)+","+o);const l=oe(n,"coordinates",c.join(" ")),h=n.createElement("outerBoundaryIs"),d=n.createElement("LinearRing");return d.appendChild(l),h.appendChild(d),[h]}(e,t,h):function(e,t,i){const n=e.kmlDoc,r=e.valueGetter;let o=r.get(t.height,0);const s=r.get(t.perPositionHeight,!1);!s&&i>0&&(o=i);const a=[],c=t.hierarchy,u=r.get(c),h=Array.isArray(u)?u:u.positions,d=n.createElement("outerBoundaryIs");d.appendChild(Q(e,h,o,s)),a.push(d);const f=u.holes;if((0,l.Z)(f)){const t=f.length;for(let i=0;i=0;--e)t+=i[e]<16?"0"+i[e].toString(16):i[e].toString(16);return t}const ae=V},565544:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(426468),r=i(88934),o=i(710923),s=i(68750);const a=function(e,t,i,a){if(o.Z.prototype._onEntityPropertyChanged.call(this,e,t,i,a),-1===this._observedPropertyNames.indexOf(t))return;const c=this._entity[this._geometryPropertyName];if(!(0,n.Z)(c))return;(0,n.Z)(this._terrainOffsetProperty)&&(this._terrainOffsetProperty.destroy(),this._terrainOffsetProperty=void 0);const u=c.heightReference;if((0,n.Z)(u)){const e=new r.Z(this._computeCenter.bind(this),!this._dynamic);this._terrainOffsetProperty=new s.Z(this._scene,e,u)}}},346656:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(919382),r=i(583917),o=i(619287);const s=new n.Z;function a(e){this._size=e.size,this._datatype=e.datatype,this.getValue=e.getValue}const c={};c[o.Z.FLOAT]="float",c[o.Z.FLOAT_VEC2]="vec2",c[o.Z.FLOAT_VEC3]="vec3",c[o.Z.FLOAT_VEC4]="vec4",c[o.Z.INT]="int",c[o.Z.INT_VEC2]="ivec2",c[o.Z.INT_VEC3]="ivec3",c[o.Z.INT_VEC4]="ivec4",c[o.Z.BOOL]="bool",c[o.Z.BOOL_VEC2]="bvec2",c[o.Z.BOOL_VEC3]="bvec3",c[o.Z.BOOL_VEC4]="bvec4",c[o.Z.FLOAT_MAT2]="mat2",c[o.Z.FLOAT_MAT3]="mat3",c[o.Z.FLOAT_MAT4]="mat4",c[o.Z.SAMPLER_2D]="sampler2D",c[o.Z.SAMPLER_CUBE]="samplerCube",a.prototype.getDeclaration=function(e){let t="uniform "+c[this._datatype]+" "+e;const i=this._size;return t+=1===i?";":"["+i.toString()+"];",t};const u={czm_viewport:new a({size:1,datatype:o.Z.FLOAT_VEC4,getValue:function(e){return e.viewportCartesian4}}),czm_viewportOrthographic:new a({size:1,datatype:o.Z.FLOAT_MAT4,getValue:function(e){return e.viewportOrthographic}}),czm_viewportTransformation:new a({size:1,datatype:o.Z.FLOAT_MAT4,getValue:function(e){return e.viewportTransformation}}),czm_globeDepthTexture:new a({size:1,datatype:o.Z.SAMPLER_2D,getValue:function(e){return e.globeDepthTexture}}),czm_model:new a({size:1,datatype:o.Z.FLOAT_MAT4,getValue:function(e){return e.model}}),czm_inverseModel:new a({size:1,datatype:o.Z.FLOAT_MAT4,getValue:function(e){return e.inverseModel}}),czm_view:new a({size:1,datatype:o.Z.FLOAT_MAT4,getValue:function(e){return e.view}}),czm_view3D:new a({size:1,datatype:o.Z.FLOAT_MAT4,getValue:function(e){return e.view3D}}),czm_viewRotation:new a({size:1,datatype:o.Z.FLOAT_MAT3,getValue:function(e){return e.viewRotation}}),czm_viewRotation3D:new a({size:1,datatype:o.Z.FLOAT_MAT3,getValue:function(e){return e.viewRotation3D}}),czm_inverseView:new a({size:1,datatype:o.Z.FLOAT_MAT4,getValue:function(e){return e.inverseView}}),czm_inverseView3D:new a({size:1,datatype:o.Z.FLOAT_MAT4,getValue:function(e){return e.inverseView3D}}),czm_inverseViewRotation:new a({size:1,datatype:o.Z.FLOAT_MAT3,getValue:function(e){return e.inverseViewRotation}}),czm_inverseViewRotation3D:new a({size:1,datatype:o.Z.FLOAT_MAT3,getValue:function(e){return e.inverseViewRotation3D}}),czm_projection:new a({size:1,datatype:o.Z.FLOAT_MAT4,getValue:function(e){return e.projection}}),czm_inverseProjection:new a({size:1,datatype:o.Z.FLOAT_MAT4,getValue:function(e){return e.inverseProjection}}),czm_infiniteProjection:new a({size:1,datatype:o.Z.FLOAT_MAT4,getValue:function(e){return e.infiniteProjection}}),czm_modelView:new a({size:1,datatype:o.Z.FLOAT_MAT4,getValue:function(e){return e.modelView}}),czm_modelView3D:new a({size:1,datatype:o.Z.FLOAT_MAT4,getValue:function(e){return e.modelView3D}}),czm_modelViewRelativeToEye:new a({size:1,datatype:o.Z.FLOAT_MAT4,getValue:function(e){return e.modelViewRelativeToEye}}),czm_inverseModelView:new a({size:1,datatype:o.Z.FLOAT_MAT4,getValue:function(e){return e.inverseModelView}}),czm_inverseModelView3D:new a({size:1,datatype:o.Z.FLOAT_MAT4,getValue:function(e){return e.inverseModelView3D}}),czm_viewProjection:new a({size:1,datatype:o.Z.FLOAT_MAT4,getValue:function(e){return e.viewProjection}}),czm_inverseViewProjection:new a({size:1,datatype:o.Z.FLOAT_MAT4,getValue:function(e){return e.inverseViewProjection}}),czm_modelViewProjection:new a({size:1,datatype:o.Z.FLOAT_MAT4,getValue:function(e){return e.modelViewProjection}}),czm_inverseModelViewProjection:new a({size:1,datatype:o.Z.FLOAT_MAT4,getValue:function(e){return e.inverseModelViewProjection}}),czm_modelViewProjectionRelativeToEye:new a({size:1,datatype:o.Z.FLOAT_MAT4,getValue:function(e){return e.modelViewProjectionRelativeToEye}}),czm_modelViewInfiniteProjection:new a({size:1,datatype:o.Z.FLOAT_MAT4,getValue:function(e){return e.modelViewInfiniteProjection}}),czm_orthographicIn3D:new a({size:1,datatype:o.Z.FLOAT,getValue:function(e){return e.orthographicIn3D?1:0}}),czm_normal:new a({size:1,datatype:o.Z.FLOAT_MAT3,getValue:function(e){return e.normal}}),czm_normal3D:new a({size:1,datatype:o.Z.FLOAT_MAT3,getValue:function(e){return e.normal3D}}),czm_inverseNormal:new a({size:1,datatype:o.Z.FLOAT_MAT3,getValue:function(e){return e.inverseNormal}}),czm_inverseNormal3D:new a({size:1,datatype:o.Z.FLOAT_MAT3,getValue:function(e){return e.inverseNormal3D}}),czm_eyeHeight:new a({size:1,datatype:o.Z.FLOAT,getValue:function(e){return e.eyeHeight}}),czm_eyeHeight2D:new a({size:1,datatype:o.Z.FLOAT_VEC2,getValue:function(e){return e.eyeHeight2D}}),czm_entireFrustum:new a({size:1,datatype:o.Z.FLOAT_VEC2,getValue:function(e){return e.entireFrustum}}),czm_currentFrustum:new a({size:1,datatype:o.Z.FLOAT_VEC2,getValue:function(e){return e.currentFrustum}}),czm_frustumPlanes:new a({size:1,datatype:o.Z.FLOAT_VEC4,getValue:function(e){return e.frustumPlanes}}),czm_farDepthFromNearPlusOne:new a({size:1,datatype:o.Z.FLOAT,getValue:function(e){return e.farDepthFromNearPlusOne}}),czm_log2FarDepthFromNearPlusOne:new a({size:1,datatype:o.Z.FLOAT,getValue:function(e){return e.log2FarDepthFromNearPlusOne}}),czm_oneOverLog2FarDepthFromNearPlusOne:new a({size:1,datatype:o.Z.FLOAT,getValue:function(e){return e.oneOverLog2FarDepthFromNearPlusOne}}),czm_sunPositionWC:new a({size:1,datatype:o.Z.FLOAT_VEC3,getValue:function(e){return e.sunPositionWC}}),czm_sunPositionColumbusView:new a({size:1,datatype:o.Z.FLOAT_VEC3,getValue:function(e){return e.sunPositionColumbusView}}),czm_sunDirectionEC:new a({size:1,datatype:o.Z.FLOAT_VEC3,getValue:function(e){return e.sunDirectionEC}}),czm_sunDirectionWC:new a({size:1,datatype:o.Z.FLOAT_VEC3,getValue:function(e){return e.sunDirectionWC}}),czm_moonDirectionEC:new a({size:1,datatype:o.Z.FLOAT_VEC3,getValue:function(e){return e.moonDirectionEC}}),czm_lightDirectionEC:new a({size:1,datatype:o.Z.FLOAT_VEC3,getValue:function(e){return e.lightDirectionEC}}),czm_lightDirectionWC:new a({size:1,datatype:o.Z.FLOAT_VEC3,getValue:function(e){return e.lightDirectionWC}}),czm_lightColor:new a({size:1,datatype:o.Z.FLOAT_VEC3,getValue:function(e){return e.lightColor}}),czm_lightColorHdr:new a({size:1,datatype:o.Z.FLOAT_VEC3,getValue:function(e){return e.lightColorHdr}}),czm_encodedCameraPositionMCHigh:new a({size:1,datatype:o.Z.FLOAT_VEC3,getValue:function(e){return e.encodedCameraPositionMCHigh}}),czm_encodedCameraPositionMCLow:new a({size:1,datatype:o.Z.FLOAT_VEC3,getValue:function(e){return e.encodedCameraPositionMCLow}}),czm_viewerPositionWC:new a({size:1,datatype:o.Z.FLOAT_VEC3,getValue:function(e){return r.Z.getTranslation(e.inverseView,s)}}),czm_frameNumber:new a({size:1,datatype:o.Z.FLOAT,getValue:function(e){return e.frameState.frameNumber}}),czm_morphTime:new a({size:1,datatype:o.Z.FLOAT,getValue:function(e){return e.frameState.morphTime}}),czm_sceneMode:new a({size:1,datatype:o.Z.FLOAT,getValue:function(e){return e.frameState.mode}}),czm_pass:new a({size:1,datatype:o.Z.FLOAT,getValue:function(e){return e.pass}}),czm_backgroundColor:new a({size:1,datatype:o.Z.FLOAT_VEC4,getValue:function(e){return e.backgroundColor}}),czm_brdfLut:new a({size:1,datatype:o.Z.SAMPLER_2D,getValue:function(e){return e.brdfLut}}),czm_environmentMap:new a({size:1,datatype:o.Z.SAMPLER_CUBE,getValue:function(e){return e.environmentMap}}),czm_specularEnvironmentMaps:new a({size:1,datatype:o.Z.SAMPLER_2D,getValue:function(e){return e.specularEnvironmentMaps}}),czm_specularEnvironmentMapSize:new a({size:1,datatype:o.Z.FLOAT_VEC2,getValue:function(e){return e.specularEnvironmentMapsDimensions}}),czm_specularEnvironmentMapsMaximumLOD:new a({size:1,datatype:o.Z.FLOAT,getValue:function(e){return e.specularEnvironmentMapsMaximumLOD}}),czm_sphericalHarmonicCoefficients:new a({size:9,datatype:o.Z.FLOAT_VEC3,getValue:function(e){return e.sphericalHarmonicCoefficients}}),czm_temeToPseudoFixed:new a({size:1,datatype:o.Z.FLOAT_MAT3,getValue:function(e){return e.temeToPseudoFixedMatrix}}),czm_pixelRatio:new a({size:1,datatype:o.Z.FLOAT,getValue:function(e){return e.pixelRatio}}),czm_fogDensity:new a({size:1,datatype:o.Z.FLOAT,getValue:function(e){return e.fogDensity}}),czm_imagerySplitPosition:new a({size:1,datatype:o.Z.FLOAT,getValue:function(e){return e.imagerySplitPosition}}),czm_geometricToleranceOverMeter:new a({size:1,datatype:o.Z.FLOAT,getValue:function(e){return e.geometricToleranceOverMeter}}),czm_minimumDisableDepthTestDistance:new a({size:1,datatype:o.Z.FLOAT,getValue:function(e){return e.minimumDisableDepthTestDistance}}),czm_invertClassificationColor:new a({size:1,datatype:o.Z.FLOAT_VEC4,getValue:function(e){return e.invertClassificationColor}}),czm_gamma:new a({size:1,datatype:o.Z.FLOAT,getValue:function(e){return e.gamma}}),czm_ellipsoidRadii:new a({size:1,datatype:o.Z.FLOAT_VEC3,getValue:function(e){return e.ellipsoid.radii}}),czm_ellipsoidInverseRadii:new a({size:1,datatype:o.Z.FLOAT_VEC3,getValue:function(e){return e.ellipsoid.oneOverRadii}})}},636807:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(357299),r=i(406144),o=i(426468),s=i(54879),a=i(446938),c=i(546135),u=i(619287),l=i(50720);function h(e){if(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),n.Z.defined("options.context",e.context),!(0,o.Z)(e.typedArray)&&!(0,o.Z)(e.sizeInBytes))throw new a.Z("Either options.sizeInBytes or options.typedArray is required.");if((0,o.Z)(e.typedArray)&&(0,o.Z)(e.sizeInBytes))throw new a.Z("Cannot pass in both options.sizeInBytes and options.typedArray.");if((0,o.Z)(e.typedArray)&&(n.Z.typeOf.object("options.typedArray",e.typedArray),n.Z.typeOf.number("options.typedArray.byteLength",e.typedArray.byteLength)),!l.Z.validate(e.usage))throw new a.Z("usage is invalid.");const t=e.context._gl,i=e.bufferTarget,s=e.typedArray;let c=e.sizeInBytes;const u=e.usage,h=(0,o.Z)(s);h&&(c=s.byteLength),n.Z.typeOf.number.greaterThan("sizeInBytes",c,0);const d=t.createBuffer();t.bindBuffer(i,d),t.bufferData(i,h?s:c,u),t.bindBuffer(i,null),this._gl=t,this._webgl2=e.context._webgl2,this._bufferTarget=i,this._sizeInBytes=c,this._usage=u,this._buffer=d,this.vertexArrayDestroyable=!0}h.createVertexBuffer=function(e){return n.Z.defined("options.context",e.context),new h({context:e.context,bufferTarget:u.Z.ARRAY_BUFFER,typedArray:e.typedArray,sizeInBytes:e.sizeInBytes,usage:e.usage})},h.createIndexBuffer=function(e){if(n.Z.defined("options.context",e.context),!c.Z.validate(e.indexDatatype))throw new a.Z("Invalid indexDatatype.");if(e.indexDatatype===c.Z.UNSIGNED_INT&&!e.context.elementIndexUint)throw new a.Z("IndexDatatype.UNSIGNED_INT requires OES_element_index_uint, which is not supported on this system. Check context.elementIndexUint.");const t=e.context,i=e.indexDatatype,r=c.Z.getSizeInBytes(i),o=new h({context:t,bufferTarget:u.Z.ELEMENT_ARRAY_BUFFER,typedArray:e.typedArray,sizeInBytes:e.sizeInBytes,usage:e.usage}),s=o.sizeInBytes/r;return Object.defineProperties(o,{indexDatatype:{get:function(){return i}},bytesPerIndex:{get:function(){return r}},numberOfIndices:{get:function(){return s}}}),o},Object.defineProperties(h.prototype,{sizeInBytes:{get:function(){return this._sizeInBytes}},usage:{get:function(){return this._usage}}}),h.prototype._getBuffer=function(){return this._buffer},h.prototype.copyFromArrayView=function(e,t){t=(0,r.Z)(t,0),n.Z.defined("arrayView",e),n.Z.typeOf.number.lessThanOrEquals("offsetInBytes + arrayView.byteLength",t+e.byteLength,this._sizeInBytes);const i=this._gl,o=this._bufferTarget;i.bindBuffer(o,this._buffer),i.bufferSubData(o,t,e),i.bindBuffer(o,null)},h.prototype.copyFromBuffer=function(e,t,i,n){if(!this._webgl2)throw new a.Z("A WebGL 2 context is required.");if(!(0,o.Z)(e))throw new a.Z("readBuffer must be defined.");if(!(0,o.Z)(n)||n<=0)throw new a.Z("sizeInBytes must be defined and be greater than zero.");if(!(0,o.Z)(t)||t<0||t+n>e._sizeInBytes)throw new a.Z("readOffset must be greater than or equal to zero and readOffset + sizeInBytes must be less than of equal to readBuffer.sizeInBytes.");if(!(0,o.Z)(i)||i<0||i+n>this._sizeInBytes)throw new a.Z("writeOffset must be greater than or equal to zero and writeOffset + sizeInBytes must be less than of equal to this.sizeInBytes.");if(this._buffer===e._buffer&&(i>=t&&ii&&tl)throw new a.Z("destinationOffset must be greater than zero and less than the arrayView length.");if(i+s>l)throw new a.Z("destinationOffset + length must be less than or equal to the arrayViewLength.");if(t<0||t>this._sizeInBytes)throw new a.Z("sourceOffset must be greater than zero and less than the buffers size.");if(t+s*c>this._sizeInBytes)throw new a.Z("sourceOffset + length must be less than the buffers size.");const h=this._gl,d=u.Z.COPY_READ_BUFFER;h.bindBuffer(d,this._buffer),h.getBufferSubData(d,t,e,i,n),h.bindBuffer(d,null)},h.prototype.isDestroyed=function(){return!1},h.prototype.destroy=function(){return this._gl.deleteBuffer(this._buffer),(0,s.Z)(this)};const d=h},50720:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(619287);const r={STREAM_DRAW:n.Z.STREAM_DRAW,STATIC_DRAW:n.Z.STATIC_DRAW,DYNAMIC_DRAW:n.Z.DYNAMIC_DRAW,validate:function(e){return e===r.STREAM_DRAW||e===r.STATIC_DRAW||e===r.DYNAMIC_DRAW}},o=Object.freeze(r)},20209:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(545125),r=i(406144);function o(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),this.color=e.color,this.depth=e.depth,this.stencil=e.stencil,this.renderState=e.renderState,this.framebuffer=e.framebuffer,this.owner=e.owner,this.pass=e.pass}o.ALL=Object.freeze(new o({color:new n.Z(0,0,0,0),depth:1,stencil:0})),o.prototype.execute=function(e,t){e.clear(this,t)};const s=o},138012:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(406144),r=i(842649);function o(e){e=(0,n.Z)(e,n.Z.EMPTY_OBJECT),this.vertexArray=e.vertexArray,this.fragmentShaderSource=e.fragmentShaderSource,this.shaderProgram=e.shaderProgram,this.uniformMap=e.uniformMap,this.outputTexture=e.outputTexture,this.preExecute=e.preExecute,this.postExecute=e.postExecute,this.canceled=e.canceled,this.persists=(0,n.Z)(e.persists,!1),this.pass=r.Z.COMPUTE,this.owner=e.owner}o.prototype.execute=function(e){e.execute(this)};const s=o},331154:(e,t,i)=>{"use strict";i.d(t,{Z:()=>b});var n=i(152124),r=i(357299),o=i(545125),s=i(426468),a=i(54879),c=i(446938),u=i(195809),l=i(901133),h=i(20209),d=i(247913),f=i(884980),p=i(364232),m=i(928096);function _(e){this._context=e}let Z;const g=new d.Z({primitiveType:u.Z.TRIANGLES}),y=new h.Z({color:new o.Z(0,0,0,0)});_.prototype.execute=function(e){if(r.Z.defined("computeCommand",e),(0,s.Z)(e.preExecute)&&e.preExecute(e),!(0,s.Z)(e.fragmentShaderSource)&&!(0,s.Z)(e.shaderProgram))throw new c.Z("computeCommand.fragmentShaderSource or computeCommand.shaderProgram is required.");r.Z.defined("computeCommand.outputTexture",e.outputTexture);const t=e.outputTexture,i=t.width,o=t.height,a=this._context,u=(0,s.Z)(e.vertexArray)?e.vertexArray:a.getViewportQuadVertexArray(),h=(0,s.Z)(e.shaderProgram)?e.shaderProgram:function(e,t){return m.Z.fromCache({context:e,vertexShaderSource:l.Z,fragmentShaderSource:t,attributeLocations:{position:0,textureCoordinates:1}})}(a,e.fragmentShaderSource),d=function(e,t){return new f.Z({context:e,colorTextures:[t],destroyAttachments:!1})}(a,t),_=function(e,t){return(0,s.Z)(Z)&&Z.viewport.width===e&&Z.viewport.height===t||(Z=p.Z.fromCache({viewport:new n.Z(0,0,e,t)})),Z}(i,o),b=e.uniformMap,A=y;A.framebuffer=d,A.renderState=_,A.execute(a);const w=g;w.vertexArray=u,w.renderState=_,w.shaderProgram=h,w.uniformMap=b,w.framebuffer=d,w.execute(a),d.destroy(),e.persists||(h.destroy(),(0,s.Z)(e.vertexArray)&&u.destroy()),(0,s.Z)(e.postExecute)&&e.postExecute(t)},_.prototype.isDestroyed=function(){return!1},_.prototype.destroy=function(){return(0,a.Z)(this)};const b=_},128745:(e,t,i)=>{"use strict";i.d(t,{Z:()=>j});var n=i(357299),r=i(556592),o=i(545125),s=i(997274),a=i(416974),c=i(406144),u=i(426468),l=i(54879),h=i(446938),d=i(915067),f=i(611843),p=i(210510),m=i(583917),_=i(100883),Z=i(195809),g=i(50128),y=i(619287),b=i(901133),A=i(50720),w=i(20209),v=i(994589),T=i(161842),C=i(247913),E=i(823989),x=i(687931),S=i(364232),O=i(770748),I=i(928096),D=i(283044),P=i(688257),R=i(634958),B=i(676311);function M(e,t,i){const n=e.getError();if(n!==e.NO_ERROR)throw new g.Z(function(e,t,i,n){let r=function(e,t){let i="WebGL Error: ";switch(t){case e.INVALID_ENUM:i+="INVALID_ENUM";break;case e.INVALID_VALUE:i+="INVALID_VALUE";break;case e.INVALID_OPERATION:i+="INVALID_OPERATION";break;case e.OUT_OF_MEMORY:i+="OUT_OF_MEMORY";break;case e.CONTEXT_LOST_WEBGL:i+="CONTEXT_LOST_WEBGL lost";break;default:i+="Unknown ("+t+")"}return i}(e,n)+": "+t.name+"(";for(let e=0;e=8}},antialias:{get:function(){return this._antialias}},standardDerivatives:{get:function(){return this._standardDerivatives||this._webgl2}},floatBlend:{get:function(){return this._floatBlend}},blendMinmax:{get:function(){return this._blendMinmax||this._webgl2}},elementIndexUint:{get:function(){return this._elementIndexUint||this._webgl2}},depthTexture:{get:function(){return this._depthTexture||this._webgl2}},floatingPointTexture:{get:function(){return this._webgl2||this._textureFloat}},halfFloatingPointTexture:{get:function(){return this._webgl2||this._textureHalfFloat}},textureFloatLinear:{get:function(){return this._textureFloatLinear}},textureHalfFloatLinear:{get:function(){return this._webgl2&&this._textureFloatLinear||!this._webgl2&&this._textureHalfFloatLinear}},textureFilterAnisotropic:{get:function(){return!!this._textureFilterAnisotropic}},s3tc:{get:function(){return this._s3tc}},pvrtc:{get:function(){return this._pvrtc}},astc:{get:function(){return this._astc}},etc:{get:function(){return this._etc}},etc1:{get:function(){return this._etc1}},bc7:{get:function(){return this._bc7}},supportsBasis:{get:function(){return this._s3tc||this._pvrtc||this._astc||this._etc||this._etc1||this._bc7}},vertexArrayObject:{get:function(){return this._vertexArrayObject||this._webgl2}},fragmentDepth:{get:function(){return this._fragDepth||this._webgl2}},instancedArrays:{get:function(){return this._instancedArrays||this._webgl2}},colorBufferFloat:{get:function(){return this._colorBufferFloat}},colorBufferHalfFloat:{get:function(){return this._webgl2&&this._colorBufferFloat||!this._webgl2&&this._colorBufferHalfFloat}},drawBuffers:{get:function(){return this._drawBuffers||this._webgl2}},debugShaders:{get:function(){return this._debugShaders}},throwOnWebGLError:{get:function(){return this._throwOnWebGLError},set:function(e){this._throwOnWebGLError=e,this._gl=function(e,t){if(!(0,u.Z)(t))return e;function i(i){return function(){const n=i.apply(e,arguments);return t(e,i,arguments),n}}const n={};for(const r in e){const o=e[r];o instanceof Function?n[r]=i(o):Object.defineProperty(n,r,L(e,r,t))}return n}(this._originalGLContext,e?M:void 0)}},defaultTexture:{get:function(){return void 0===this._defaultTexture&&(this._defaultTexture=new D.Z({context:this,source:{width:1,height:1,arrayBufferView:new Uint8Array([255,255,255,255])},flipY:!1})),this._defaultTexture}},defaultEmissiveTexture:{get:function(){return void 0===this._defaultEmissiveTexture&&(this._defaultEmissiveTexture=new D.Z({context:this,pixelFormat:_.Z.RGB,source:{width:1,height:1,arrayBufferView:new Uint8Array([0,0,0])},flipY:!1})),this._defaultEmissiveTexture}},defaultNormalTexture:{get:function(){return void 0===this._defaultNormalTexture&&(this._defaultNormalTexture=new D.Z({context:this,pixelFormat:_.Z.RGB,source:{width:1,height:1,arrayBufferView:new Uint8Array([128,128,255])},flipY:!1})),this._defaultNormalTexture}},defaultCubeMap:{get:function(){if(void 0===this._defaultCubeMap){const e={width:1,height:1,arrayBufferView:new Uint8Array([255,255,255,255])};this._defaultCubeMap=new T.Z({context:this,source:{positiveX:e,negativeX:e,positiveY:e,negativeY:e,positiveZ:e,negativeZ:e},flipY:!1})}return this._defaultCubeMap}},drawingBufferHeight:{get:function(){return this._gl.drawingBufferHeight}},drawingBufferWidth:{get:function(){return this._gl.drawingBufferWidth}},defaultFramebuffer:{get:function(){return k}}}),"undefined"!=typeof WebGLRenderingContext&&(V=[y.Z.BACK]);const H=new w.Z;F.prototype.clear=function(e,t){e=(0,c.Z)(e,H),t=(0,c.Z)(t,this._defaultPassState);const i=this._gl;let n=0;const r=e.color,s=e.depth,a=e.stencil;(0,u.Z)(r)&&(o.Z.equals(this._clearColor,r)||(o.Z.clone(r,this._clearColor),i.clearColor(r.red,r.green,r.blue,r.alpha)),n|=i.COLOR_BUFFER_BIT),(0,u.Z)(s)&&(s!==this._clearDepth&&(this._clearDepth=s,i.clearDepth(s)),n|=i.DEPTH_BUFFER_BIT),(0,u.Z)(a)&&(a!==this._clearStencil&&(this._clearStencil=a,i.clearStencil(a)),n|=i.STENCIL_BUFFER_BIT),U(this,(0,c.Z)(e.renderState,this._defaultRenderState),t,!0),z(this,(0,c.Z)(e.framebuffer,t.framebuffer)),i.clear(n)},F.prototype.draw=function(e,t,i,r){n.Z.defined("drawCommand",e),n.Z.defined("drawCommand.shaderProgram",e._shaderProgram),t=(0,c.Z)(t,this._defaultPassState);const o=(0,c.Z)(e._framebuffer,t.framebuffer),s=(0,c.Z)(e._renderState,this._defaultRenderState);i=(0,c.Z)(i,e._shaderProgram),r=(0,c.Z)(r,e._uniformMap),function(e,t,i,n,r){if((0,u.Z)(t)&&r.depthTest&&r.depthTest.enabled&&!t.hasDepthAttachment)throw new h.Z("The depth test can not be enabled (drawCommand.renderState.depthTest.enabled) because the framebuffer (drawCommand.framebuffer) does not have a depth or depth-stencil renderbuffer.");z(e,t),U(e,r,i,!1),n._bind(),e._maxFrameTextureUnitIndex=Math.max(e._maxFrameTextureUnitIndex,n.maximumTextureUnitIndex)}(this,o,t,i,s),function(e,t,i,r){const o=t._primitiveType,s=t._vertexArray;let a=t._offset,l=t._count;const d=t.instanceCount;if(!Z.Z.validate(o))throw new h.Z("drawCommand.primitiveType is required and must be valid.");if(n.Z.defined("drawCommand.vertexArray",s),n.Z.typeOf.number.greaterThanOrEquals("drawCommand.offset",a,0),(0,u.Z)(l)&&n.Z.typeOf.number.greaterThanOrEquals("drawCommand.count",l,0),n.Z.typeOf.number.greaterThanOrEquals("drawCommand.instanceCount",d,0),d>0&&!e.instancedArrays)throw new h.Z("Instanced arrays extension is not supported");e._us.model=(0,c.Z)(t._modelMatrix,m.Z.IDENTITY),i._setUniforms(r,e._us,e.validateShaderProgram),s._bind();const f=s.indexBuffer;(0,u.Z)(f)?(a*=f.bytesPerIndex,l=(0,c.Z)(l,f.numberOfIndices),0===d?e._gl.drawElements(o,l,f.indexDatatype,a):e.glDrawElementsInstanced(o,l,f.indexDatatype,a,d)):(l=(0,c.Z)(l,s.numberOfVertices),0===d?e._gl.drawArrays(o,a,l):e.glDrawArraysInstanced(o,a,l,d)),s._unBind()}(this,e,i,r)},F.prototype.endFrame=function(){const e=this._gl;e.useProgram(null),this._currentFramebuffer=void 0,e.bindFramebuffer(e.FRAMEBUFFER,null);const t=V;this.drawBuffers&&this.glDrawBuffers(t);const i=this._maxFrameTextureUnitIndex;this._maxFrameTextureUnitIndex=0;for(let t=0;t0&&(l=a.getColorTexture(0).pixelDatatype);const h=_.Z.createTypedArray(_.Z.RGBA,l,o,s);return z(this,a),t.readPixels(i,r,o,s,_.Z.RGBA,x.Z.toWebGLConstant(l,this),h),h};const G={position:0,textureCoordinates:1};function q(e,t,i){this._pickObjects=e,this.key=t,this.color=i}F.prototype.getViewportQuadVertexArray=function(){let e=this.cache.viewportQuad_vertexArray;if(!(0,u.Z)(e)){const t=new d.Z({attributes:{position:new f.Z({componentDatatype:s.Z.FLOAT,componentsPerAttribute:2,values:[-1,-1,1,-1,1,1,-1,1]}),textureCoordinates:new f.Z({componentDatatype:s.Z.FLOAT,componentsPerAttribute:2,values:[0,0,1,0,1,1,0,1]})},indices:new Uint16Array([0,1,2,0,2,3]),primitiveType:Z.Z.TRIANGLES});e=B.Z.fromGeometry({context:this,geometry:t,attributeLocations:G,bufferUsage:A.Z.STATIC_DRAW,interleave:!0}),this.cache.viewportQuad_vertexArray=e}return e},F.prototype.createViewportQuadCommand=function(e,t){return t=(0,c.Z)(t,c.Z.EMPTY_OBJECT),new C.Z({vertexArray:this.getViewportQuadVertexArray(),primitiveType:Z.Z.TRIANGLES,renderState:t.renderState,shaderProgram:I.Z.fromCache({context:this,vertexShaderSource:b.Z,fragmentShaderSource:e,attributeLocations:G}),uniformMap:t.uniformMap,owner:t.owner,framebuffer:t.framebuffer,pass:t.pass})},F.prototype.getObjectByPickColor=function(e){return n.Z.defined("pickColor",e),this._pickObjects[e.toRgba()]},Object.defineProperties(q.prototype,{object:{get:function(){return this._pickObjects[this.key]},set:function(e){this._pickObjects[this.key]=e}}}),q.prototype.destroy=function(){delete this._pickObjects[this.key]},F.prototype.createPickId=function(e){n.Z.defined("object",e),++this._nextPickColor[0];const t=this._nextPickColor[0];if(0===t)throw new g.Z("Out of unique Pick IDs.");return this._pickObjects[t]=e,new q(this._pickObjects,t,o.Z.fromRgba(t))},F.prototype.isDestroyed=function(){return!1},F.prototype.destroy=function(){const e=this.cache;for(const t in e)if(e.hasOwnProperty(t)){const i=e[t];(0,u.Z)(i.destroy)&&i.destroy()}return this._shaderCache=this._shaderCache.destroy(),this._textureCache=this._textureCache.destroy(),this._defaultTexture=this._defaultTexture&&this._defaultTexture.destroy(),this._defaultEmissiveTexture=this._defaultEmissiveTexture&&this._defaultEmissiveTexture.destroy(),this._defaultNormalTexture=this._defaultNormalTexture&&this._defaultNormalTexture.destroy(),this._defaultCubeMap=this._defaultCubeMap&&this._defaultCubeMap.destroy(),(0,l.Z)(this)};const j=F},994589:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});const n={_maximumCombinedTextureImageUnits:0,_maximumCubeMapSize:0,_maximumFragmentUniformVectors:0,_maximumTextureImageUnits:0,_maximumRenderbufferSize:0,_maximumTextureSize:0,_maximumVaryingVectors:0,_maximumVertexAttributes:0,_maximumVertexTextureImageUnits:0,_maximumVertexUniformVectors:0,_minimumAliasedLineWidth:0,_maximumAliasedLineWidth:0,_minimumAliasedPointSize:0,_maximumAliasedPointSize:0,_maximumViewportWidth:0,_maximumViewportHeight:0,_maximumTextureFilterAnisotropy:0,_maximumDrawBuffers:0,_maximumColorAttachments:0,_highpFloatSupported:!1,_highpIntSupported:!1};Object.defineProperties(n,{maximumCombinedTextureImageUnits:{get:function(){return n._maximumCombinedTextureImageUnits}},maximumCubeMapSize:{get:function(){return n._maximumCubeMapSize}},maximumFragmentUniformVectors:{get:function(){return n._maximumFragmentUniformVectors}},maximumTextureImageUnits:{get:function(){return n._maximumTextureImageUnits}},maximumRenderbufferSize:{get:function(){return n._maximumRenderbufferSize}},maximumTextureSize:{get:function(){return n._maximumTextureSize}},maximumVaryingVectors:{get:function(){return n._maximumVaryingVectors}},maximumVertexAttributes:{get:function(){return n._maximumVertexAttributes}},maximumVertexTextureImageUnits:{get:function(){return n._maximumVertexTextureImageUnits}},maximumVertexUniformVectors:{get:function(){return n._maximumVertexUniformVectors}},minimumAliasedLineWidth:{get:function(){return n._minimumAliasedLineWidth}},maximumAliasedLineWidth:{get:function(){return n._maximumAliasedLineWidth}},minimumAliasedPointSize:{get:function(){return n._minimumAliasedPointSize}},maximumAliasedPointSize:{get:function(){return n._maximumAliasedPointSize}},maximumViewportWidth:{get:function(){return n._maximumViewportWidth}},maximumViewportHeight:{get:function(){return n._maximumViewportHeight}},maximumTextureFilterAnisotropy:{get:function(){return n._maximumTextureFilterAnisotropy}},maximumDrawBuffers:{get:function(){return n._maximumDrawBuffers}},maximumColorAttachments:{get:function(){return n._maximumColorAttachments}},highpFloatSupported:{get:function(){return n._highpFloatSupported}},highpIntSupported:{get:function(){return n._highpIntSupported}}});const r=n},161842:(e,t,i)=>{"use strict";i.d(t,{Z:()=>g});var n=i(357299),r=i(406144),o=i(426468),s=i(54879),a=i(446938),c=i(362017),u=i(100883),l=i(994589),h=i(735657),d=i(375983),f=i(687931),p=i(270013),m=i(59102),_=i(636664);function Z(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),n.Z.defined("options.context",e.context);const t=e.context,i=e.source;let s,c;if((0,o.Z)(i)){const e=[i.positiveX,i.negativeX,i.positiveY,i.negativeY,i.positiveZ,i.negativeZ];if(!(e[0]&&e[1]&&e[2]&&e[3]&&e[4]&&e[5]))throw new a.Z("options.source requires positiveX, negativeX, positiveY, negativeY, positiveZ, and negativeZ faces.");s=e[0].width,c=e[0].height;for(let t=1;t<6;++t)if(Number(e[t].width)!==s||Number(e[t].height)!==c)throw new a.Z("Each face in options.source must have the same width and height.")}else s=e.width,c=e.height;const d=s,m=(0,r.Z)(e.pixelDatatype,f.Z.UNSIGNED_BYTE),_=(0,r.Z)(e.pixelFormat,u.Z.RGBA),Z=u.Z.toInternalFormat(_,m,t);if(!(0,o.Z)(s)||!(0,o.Z)(c))throw new a.Z("options requires a source field to create an initialized cube map or width and height fields to create a blank cube map.");if(s!==c)throw new a.Z("Width must equal height.");if(d<=0)throw new a.Z("Width and height must be greater than zero.");if(d>l.Z.maximumCubeMapSize)throw new a.Z("Width and height must be less than or equal to the maximum cube map size ("+l.Z.maximumCubeMapSize+"). Check maximumCubeMapSize.");if(!u.Z.validate(_))throw new a.Z("Invalid options.pixelFormat.");if(u.Z.isDepthFormat(_))throw new a.Z("options.pixelFormat cannot be DEPTH_COMPONENT or DEPTH_STENCIL.");if(!f.Z.validate(m))throw new a.Z("Invalid options.pixelDatatype.");if(m===f.Z.FLOAT&&!t.floatingPointTexture)throw new a.Z("When options.pixelDatatype is FLOAT, this WebGL implementation must support the OES_texture_float extension.");if(m===f.Z.HALF_FLOAT&&!t.halfFloatingPointTexture)throw new a.Z("When options.pixelDatatype is HALF_FLOAT, this WebGL implementation must support the OES_texture_half_float extension.");const g=6*u.Z.textureSizeInBytes(_,m,d,d),y=e.preMultiplyAlpha||_===u.Z.RGB||_===u.Z.LUMINANCE,b=(0,r.Z)(e.flipY,!0),A=(0,r.Z)(e.skipColorSpaceConversion,!1),w=t._gl,v=w.TEXTURE_CUBE_MAP,T=w.createTexture();function C(e,i,n,r,a){let c=i.arrayBufferView;(0,o.Z)(c)||(c=i.bufferView);let l=4;(0,o.Z)(c)&&(l=u.Z.alignmentInBytes(_,m,s)),w.pixelStorei(w.UNPACK_ALIGNMENT,l),a?w.pixelStorei(w.UNPACK_COLORSPACE_CONVERSION_WEBGL,w.NONE):w.pixelStorei(w.UNPACK_COLORSPACE_CONVERSION_WEBGL,w.BROWSER_DEFAULT_WEBGL),(0,o.Z)(c)?(w.pixelStorei(w.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),w.pixelStorei(w.UNPACK_FLIP_Y_WEBGL,!1),r&&(c=u.Z.flipY(c,_,m,d,d)),w.texImage2D(e,0,Z,d,d,0,_,f.Z.toWebGLConstant(m,t),c)):(w.pixelStorei(w.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n),w.pixelStorei(w.UNPACK_FLIP_Y_WEBGL,r),w.texImage2D(e,0,Z,_,f.Z.toWebGLConstant(m,t),i))}w.activeTexture(w.TEXTURE0),w.bindTexture(v,T),(0,o.Z)(i)?(C(w.TEXTURE_CUBE_MAP_POSITIVE_X,i.positiveX,y,b,A),C(w.TEXTURE_CUBE_MAP_NEGATIVE_X,i.negativeX,y,b,A),C(w.TEXTURE_CUBE_MAP_POSITIVE_Y,i.positiveY,y,b,A),C(w.TEXTURE_CUBE_MAP_NEGATIVE_Y,i.negativeY,y,b,A),C(w.TEXTURE_CUBE_MAP_POSITIVE_Z,i.positiveZ,y,b,A),C(w.TEXTURE_CUBE_MAP_NEGATIVE_Z,i.negativeZ,y,b,A)):(w.texImage2D(w.TEXTURE_CUBE_MAP_POSITIVE_X,0,Z,d,d,0,_,f.Z.toWebGLConstant(m,t),null),w.texImage2D(w.TEXTURE_CUBE_MAP_NEGATIVE_X,0,Z,d,d,0,_,f.Z.toWebGLConstant(m,t),null),w.texImage2D(w.TEXTURE_CUBE_MAP_POSITIVE_Y,0,Z,d,d,0,_,f.Z.toWebGLConstant(m,t),null),w.texImage2D(w.TEXTURE_CUBE_MAP_NEGATIVE_Y,0,Z,d,d,0,_,f.Z.toWebGLConstant(m,t),null),w.texImage2D(w.TEXTURE_CUBE_MAP_POSITIVE_Z,0,Z,d,d,0,_,f.Z.toWebGLConstant(m,t),null),w.texImage2D(w.TEXTURE_CUBE_MAP_NEGATIVE_Z,0,Z,d,d,0,_,f.Z.toWebGLConstant(m,t),null)),w.bindTexture(v,null),this._context=t,this._textureFilterAnisotropic=t._textureFilterAnisotropic,this._textureTarget=v,this._texture=T,this._pixelFormat=_,this._pixelDatatype=m,this._size=d,this._hasMipmap=!1,this._sizeInBytes=g,this._preMultiplyAlpha=y,this._flipY=b,this._sampler=void 0;const E=(0,o.Z)(i);this._positiveX=new h.Z(t,T,v,w.TEXTURE_CUBE_MAP_POSITIVE_X,Z,_,m,d,y,b,E),this._negativeX=new h.Z(t,T,v,w.TEXTURE_CUBE_MAP_NEGATIVE_X,Z,_,m,d,y,b,E),this._positiveY=new h.Z(t,T,v,w.TEXTURE_CUBE_MAP_POSITIVE_Y,Z,_,m,d,y,b,E),this._negativeY=new h.Z(t,T,v,w.TEXTURE_CUBE_MAP_NEGATIVE_Y,Z,_,m,d,y,b,E),this._positiveZ=new h.Z(t,T,v,w.TEXTURE_CUBE_MAP_POSITIVE_Z,Z,_,m,d,y,b,E),this._negativeZ=new h.Z(t,T,v,w.TEXTURE_CUBE_MAP_NEGATIVE_Z,Z,_,m,d,y,b,E),this.sampler=(0,o.Z)(e.sampler)?e.sampler:new p.Z}Object.defineProperties(Z.prototype,{positiveX:{get:function(){return this._positiveX}},negativeX:{get:function(){return this._negativeX}},positiveY:{get:function(){return this._positiveY}},negativeY:{get:function(){return this._negativeY}},positiveZ:{get:function(){return this._positiveZ}},negativeZ:{get:function(){return this._negativeZ}},sampler:{get:function(){return this._sampler},set:function(e){let t=e.minificationFilter,i=e.magnificationFilter;const n=t===_.Z.NEAREST_MIPMAP_NEAREST||t===_.Z.NEAREST_MIPMAP_LINEAR||t===_.Z.LINEAR_MIPMAP_NEAREST||t===_.Z.LINEAR_MIPMAP_LINEAR,r=this._context,s=this._pixelDatatype;(s===f.Z.FLOAT&&!r.textureFloatLinear||s===f.Z.HALF_FLOAT&&!r.textureHalfFloatLinear)&&(t=n?_.Z.NEAREST_MIPMAP_NEAREST:_.Z.NEAREST,i=m.Z.NEAREST);const a=r._gl,c=this._textureTarget;a.activeTexture(a.TEXTURE0),a.bindTexture(c,this._texture),a.texParameteri(c,a.TEXTURE_MIN_FILTER,t),a.texParameteri(c,a.TEXTURE_MAG_FILTER,i),a.texParameteri(c,a.TEXTURE_WRAP_S,e.wrapS),a.texParameteri(c,a.TEXTURE_WRAP_T,e.wrapT),(0,o.Z)(this._textureFilterAnisotropic)&&a.texParameteri(c,this._textureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,e.maximumAnisotropy),a.bindTexture(c,null),this._sampler=e}},pixelFormat:{get:function(){return this._pixelFormat}},pixelDatatype:{get:function(){return this._pixelDatatype}},width:{get:function(){return this._size}},height:{get:function(){return this._size}},sizeInBytes:{get:function(){return this._hasMipmap?Math.floor(4*this._sizeInBytes/3):this._sizeInBytes}},preMultiplyAlpha:{get:function(){return this._preMultiplyAlpha}},flipY:{get:function(){return this._flipY}},_target:{get:function(){return this._textureTarget}}}),Z.prototype.generateMipmap=function(e){if(e=(0,r.Z)(e,d.Z.DONT_CARE),this._size>1&&!c.Z.isPowerOfTwo(this._size))throw new a.Z("width and height must be a power of two to call generateMipmap().");if(!d.Z.validate(e))throw new a.Z("hint is invalid.");this._hasMipmap=!0;const t=this._context._gl,i=this._textureTarget;t.hint(t.GENERATE_MIPMAP_HINT,e),t.activeTexture(t.TEXTURE0),t.bindTexture(i,this._texture),t.generateMipmap(i),t.bindTexture(i,null)},Z.prototype.isDestroyed=function(){return!1},Z.prototype.destroy=function(){return this._context._gl.deleteTexture(this._texture),this._positiveX=(0,s.Z)(this._positiveX),this._negativeX=(0,s.Z)(this._negativeX),this._positiveY=(0,s.Z)(this._positiveY),this._negativeY=(0,s.Z)(this._negativeY),this._positiveZ=(0,s.Z)(this._positiveZ),this._negativeZ=(0,s.Z)(this._negativeZ),(0,s.Z)(this)};const g=Z},735657:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(357299),r=i(406144),o=i(426468),s=i(446938),a=i(100883),c=i(687931);function u(e,t,i,n,r,o,s,a,c,u,l){this._context=e,this._texture=t,this._textureTarget=i,this._targetFace=n,this._pixelDatatype=s,this._internalFormat=r,this._pixelFormat=o,this._size=a,this._preMultiplyAlpha=c,this._flipY=u,this._initialized=l}Object.defineProperties(u.prototype,{pixelFormat:{get:function(){return this._pixelFormat}},pixelDatatype:{get:function(){return this._pixelDatatype}},_target:{get:function(){return this._targetFace}}}),u.prototype.copyFrom=function(e){n.Z.defined("options",e);const t=(0,r.Z)(e.xOffset,0),i=(0,r.Z)(e.yOffset,0);if(n.Z.defined("options.source",e.source),n.Z.typeOf.number.greaterThanOrEquals("xOffset",t,0),n.Z.typeOf.number.greaterThanOrEquals("yOffset",i,0),t+e.source.width>this._size)throw new s.Z("xOffset + options.source.width must be less than or equal to width.");if(i+e.source.height>this._size)throw new s.Z("yOffset + options.source.height must be less than or equal to height.");const u=e.source,l=this._context._gl,h=this._textureTarget,d=this._targetFace;l.activeTexture(l.TEXTURE0),l.bindTexture(h,this._texture);const f=u.width,p=u.height;let m=u.arrayBufferView;const _=this._size,Z=this._pixelFormat,g=this._internalFormat,y=this._pixelDatatype,b=this._preMultiplyAlpha,A=this._flipY,w=(0,r.Z)(e.skipColorSpaceConversion,!1);let v=4;(0,o.Z)(m)&&(v=a.Z.alignmentInBytes(Z,y,f)),l.pixelStorei(l.UNPACK_ALIGNMENT,v),w?l.pixelStorei(l.UNPACK_COLORSPACE_CONVERSION_WEBGL,l.NONE):l.pixelStorei(l.UNPACK_COLORSPACE_CONVERSION_WEBGL,l.BROWSER_DEFAULT_WEBGL);let T=!1;if(!this._initialized){if(0===t&&0===i&&f===_&&p===_)(0,o.Z)(m)?(l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),l.pixelStorei(l.UNPACK_FLIP_Y_WEBGL,!1),A&&(m=a.Z.flipY(m,Z,y,_,_)),l.texImage2D(d,0,g,_,_,0,Z,c.Z.toWebGLConstant(y,this._context),m)):(l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,b),l.pixelStorei(l.UNPACK_FLIP_Y_WEBGL,A),l.texImage2D(d,0,g,Z,c.Z.toWebGLConstant(y,this._context),u)),T=!0;else{l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),l.pixelStorei(l.UNPACK_FLIP_Y_WEBGL,!1);const e=a.Z.createTypedArray(Z,y,_,_);l.texImage2D(d,0,g,_,_,0,Z,c.Z.toWebGLConstant(y,this._context),e)}this._initialized=!0}T||((0,o.Z)(m)?(l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),l.pixelStorei(l.UNPACK_FLIP_Y_WEBGL,!1),A&&(m=a.Z.flipY(m,Z,y,f,p)),l.texSubImage2D(d,0,t,i,f,p,Z,c.Z.toWebGLConstant(y,this._context),m)):(l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,b),l.pixelStorei(l.UNPACK_FLIP_Y_WEBGL,A),l.texSubImage2D(d,0,t,i,Z,c.Z.toWebGLConstant(y,this._context),u))),l.bindTexture(h,null)},u.prototype.copyFromFramebuffer=function(e,t,i,o,a,u){if(e=(0,r.Z)(e,0),t=(0,r.Z)(t,0),i=(0,r.Z)(i,0),o=(0,r.Z)(o,0),a=(0,r.Z)(a,this._size),u=(0,r.Z)(u,this._size),n.Z.typeOf.number.greaterThanOrEquals("xOffset",e,0),n.Z.typeOf.number.greaterThanOrEquals("yOffset",t,0),n.Z.typeOf.number.greaterThanOrEquals("framebufferXOffset",i,0),n.Z.typeOf.number.greaterThanOrEquals("framebufferYOffset",o,0),e+a>this._size)throw new s.Z("xOffset + source.width must be less than or equal to width.");if(t+u>this._size)throw new s.Z("yOffset + source.height must be less than or equal to height.");if(this._pixelDatatype===c.Z.FLOAT)throw new s.Z("Cannot call copyFromFramebuffer when the texture pixel data type is FLOAT.");if(this._pixelDatatype===c.Z.HALF_FLOAT)throw new s.Z("Cannot call copyFromFramebuffer when the texture pixel data type is HALF_FLOAT.");const l=this._context._gl,h=this._textureTarget;l.activeTexture(l.TEXTURE0),l.bindTexture(h,this._texture),l.copyTexSubImage2D(this._targetFace,0,e,t,i,o,a,u),l.bindTexture(h,null),this._initialized=!0};const l=u},247913:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(406144),r=i(426468),o=i(195809);function s(e){e=(0,n.Z)(e,n.Z.EMPTY_OBJECT),this._boundingVolume=e.boundingVolume,this._orientedBoundingBox=e.orientedBoundingBox,this._cull=(0,n.Z)(e.cull,!0),this._occlude=(0,n.Z)(e.occlude,!0),this._modelMatrix=e.modelMatrix,this._primitiveType=(0,n.Z)(e.primitiveType,o.Z.TRIANGLES),this._vertexArray=e.vertexArray,this._count=e.count,this._offset=(0,n.Z)(e.offset,0),this._instanceCount=(0,n.Z)(e.instanceCount,0),this._shaderProgram=e.shaderProgram,this._uniformMap=e.uniformMap,this._renderState=e.renderState,this._framebuffer=e.framebuffer,this._pass=e.pass,this._executeInClosestFrustum=(0,n.Z)(e.executeInClosestFrustum,!1),this._owner=e.owner,this._debugShowBoundingVolume=(0,n.Z)(e.debugShowBoundingVolume,!1),this._debugOverlappingFrustums=0,this._castShadows=(0,n.Z)(e.castShadows,!1),this._receiveShadows=(0,n.Z)(e.receiveShadows,!1),this._pickId=e.pickId,this._pickOnly=(0,n.Z)(e.pickOnly,!1),this._depthForTranslucentClassification=(0,n.Z)(e.depthForTranslucentClassification,!1),this.dirty=!0,this.lastDirtyTime=0,this.derivedCommands={}}Object.defineProperties(s.prototype,{boundingVolume:{get:function(){return this._boundingVolume},set:function(e){this._boundingVolume!==e&&(this._boundingVolume=e,this.dirty=!0)}},orientedBoundingBox:{get:function(){return this._orientedBoundingBox},set:function(e){this._orientedBoundingBox!==e&&(this._orientedBoundingBox=e,this.dirty=!0)}},cull:{get:function(){return this._cull},set:function(e){this._cull!==e&&(this._cull=e,this.dirty=!0)}},occlude:{get:function(){return this._occlude},set:function(e){this._occlude!==e&&(this._occlude=e,this.dirty=!0)}},modelMatrix:{get:function(){return this._modelMatrix},set:function(e){this._modelMatrix!==e&&(this._modelMatrix=e,this.dirty=!0)}},primitiveType:{get:function(){return this._primitiveType},set:function(e){this._primitiveType!==e&&(this._primitiveType=e,this.dirty=!0)}},vertexArray:{get:function(){return this._vertexArray},set:function(e){this._vertexArray!==e&&(this._vertexArray=e,this.dirty=!0)}},count:{get:function(){return this._count},set:function(e){this._count!==e&&(this._count=e,this.dirty=!0)}},offset:{get:function(){return this._offset},set:function(e){this._offset!==e&&(this._offset=e,this.dirty=!0)}},instanceCount:{get:function(){return this._instanceCount},set:function(e){this._instanceCount!==e&&(this._instanceCount=e,this.dirty=!0)}},shaderProgram:{get:function(){return this._shaderProgram},set:function(e){this._shaderProgram!==e&&(this._shaderProgram=e,this.dirty=!0)}},castShadows:{get:function(){return this._castShadows},set:function(e){this._castShadows!==e&&(this._castShadows=e,this.dirty=!0)}},receiveShadows:{get:function(){return this._receiveShadows},set:function(e){this._receiveShadows!==e&&(this._receiveShadows=e,this.dirty=!0)}},uniformMap:{get:function(){return this._uniformMap},set:function(e){this._uniformMap!==e&&(this._uniformMap=e,this.dirty=!0)}},renderState:{get:function(){return this._renderState},set:function(e){this._renderState!==e&&(this._renderState=e,this.dirty=!0)}},framebuffer:{get:function(){return this._framebuffer},set:function(e){this._framebuffer!==e&&(this._framebuffer=e,this.dirty=!0)}},pass:{get:function(){return this._pass},set:function(e){this._pass!==e&&(this._pass=e,this.dirty=!0)}},executeInClosestFrustum:{get:function(){return this._executeInClosestFrustum},set:function(e){this._executeInClosestFrustum!==e&&(this._executeInClosestFrustum=e,this.dirty=!0)}},owner:{get:function(){return this._owner},set:function(e){this._owner!==e&&(this._owner=e,this.dirty=!0)}},debugShowBoundingVolume:{get:function(){return this._debugShowBoundingVolume},set:function(e){this._debugShowBoundingVolume!==e&&(this._debugShowBoundingVolume=e,this.dirty=!0)}},debugOverlappingFrustums:{get:function(){return this._debugOverlappingFrustums},set:function(e){this._debugOverlappingFrustums!==e&&(this._debugOverlappingFrustums=e,this.dirty=!0)}},pickId:{get:function(){return this._pickId},set:function(e){this._pickId!==e&&(this._pickId=e,this.dirty=!0)}},pickOnly:{get:function(){return this._pickOnly},set:function(e){this._pickOnly!==e&&(this._pickOnly=e,this.dirty=!0)}},depthForTranslucentClassification:{get:function(){return this._depthForTranslucentClassification},set:function(e){this._depthForTranslucentClassification!==e&&(this._depthForTranslucentClassification=e,this.dirty=!0)}}}),s.shallowClone=function(e,t){if((0,r.Z)(e))return(0,r.Z)(t)||(t=new s),t._boundingVolume=e._boundingVolume,t._orientedBoundingBox=e._orientedBoundingBox,t._cull=e._cull,t._occlude=e._occlude,t._modelMatrix=e._modelMatrix,t._primitiveType=e._primitiveType,t._vertexArray=e._vertexArray,t._count=e._count,t._offset=e._offset,t._instanceCount=e._instanceCount,t._shaderProgram=e._shaderProgram,t._uniformMap=e._uniformMap,t._renderState=e._renderState,t._framebuffer=e._framebuffer,t._pass=e._pass,t._executeInClosestFrustum=e._executeInClosestFrustum,t._owner=e._owner,t._debugShowBoundingVolume=e._debugShowBoundingVolume,t._debugOverlappingFrustums=e._debugOverlappingFrustums,t._castShadows=e._castShadows,t._receiveShadows=e._receiveShadows,t._pickId=e._pickId,t._pickOnly=e._pickOnly,t._depthForTranslucentClassification=e._depthForTranslucentClassification,t.dirty=!0,t.lastDirtyTime=0,t},s.prototype.execute=function(e,t){e.draw(this,t)};const a=s},884980:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(357299),r=i(406144),o=i(426468),s=i(54879),a=i(446938),c=i(100883),u=i(994589),l=i(687931);function h(e,t,i){const n=e._gl;n.framebufferTexture2D(n.FRAMEBUFFER,t,i._target,i._texture,0)}function d(e,t,i){const n=e._gl;n.framebufferRenderbuffer(n.FRAMEBUFFER,t,n.RENDERBUFFER,i._getRenderbuffer())}function f(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).context;n.Z.defined("options.context",t);const i=t._gl,s=u.Z.maximumColorAttachments;if(this._gl=i,this._framebuffer=i.createFramebuffer(),this._colorTextures=[],this._colorRenderbuffers=[],this._activeColorAttachments=[],this._depthTexture=void 0,this._depthRenderbuffer=void 0,this._stencilRenderbuffer=void 0,this._depthStencilTexture=void 0,this._depthStencilRenderbuffer=void 0,this.destroyAttachments=(0,r.Z)(e.destroyAttachments,!0),(0,o.Z)(e.colorTextures)&&(0,o.Z)(e.colorRenderbuffers))throw new a.Z("Cannot have both color texture and color renderbuffer attachments.");if((0,o.Z)(e.depthTexture)&&(0,o.Z)(e.depthRenderbuffer))throw new a.Z("Cannot have both a depth texture and depth renderbuffer attachment.");if((0,o.Z)(e.depthStencilTexture)&&(0,o.Z)(e.depthStencilRenderbuffer))throw new a.Z("Cannot have both a depth-stencil texture and depth-stencil renderbuffer attachment.");const f=(0,o.Z)(e.depthTexture)||(0,o.Z)(e.depthRenderbuffer),p=(0,o.Z)(e.depthStencilTexture)||(0,o.Z)(e.depthStencilRenderbuffer);if(f&&p)throw new a.Z("Cannot have both a depth and depth-stencil attachment.");if((0,o.Z)(e.stencilRenderbuffer)&&p)throw new a.Z("Cannot have both a stencil and depth-stencil attachment.");if(f&&(0,o.Z)(e.stencilRenderbuffer))throw new a.Z("Cannot have both a depth and stencil attachment.");let m,_,Z,g,y;if(this._bind(),(0,o.Z)(e.colorTextures)){const i=e.colorTextures;if(g=this._colorTextures.length=this._activeColorAttachments.length=i.length,g>s)throw new a.Z("The number of color attachments exceeds the number supported.");for(Z=0;Zs)throw new a.Z("The number of color attachments exceeds the number supported.");for(Z=0;Z=this._colorTextures.length)throw new a.Z("index is required, must be greater than or equal to zero and must be less than the number of color attachments.");return this._colorTextures[e]},f.prototype.getColorRenderbuffer=function(e){if(!(0,o.Z)(e)||e<0||e>=this._colorRenderbuffers.length)throw new a.Z("index is required, must be greater than or equal to zero and must be less than the number of color attachments.");return this._colorRenderbuffers[e]},f.prototype.isDestroyed=function(){return!1},f.prototype.destroy=function(){if(this.destroyAttachments){let e=0;const t=this._colorTextures;let i=t.length;for(;e{"use strict";i.d(t,{Z:()=>p});var n=i(884980),r=i(687931),o=i(501327),s=i(840925),a=i(270013),c=i(283044),u=i(406144),l=i(426468),h=i(446938),d=i(100883);function f(e){if(e=(0,u.Z)(e,u.Z.EMPTY_OBJECT),this._colorAttachmentsLength=(0,u.Z)(e.colorAttachmentsLength,1),this._color=(0,u.Z)(e.color,!0),this._depth=(0,u.Z)(e.depth,!1),this._depthStencil=(0,u.Z)(e.depthStencil,!1),this._supportsDepthTexture=(0,u.Z)(e.supportsDepthTexture,!1),!this._color&&!this._depth&&!this._depthStencil)throw new h.Z("Must enable at least one type of framebuffer attachment.");if(this._depth&&this._depthStencil)throw new h.Z("Cannot have both a depth and depth-stencil attachment.");this._createColorAttachments=(0,u.Z)(e.createColorAttachments,!0),this._createDepthAttachments=(0,u.Z)(e.createDepthAttachments,!0),this._pixelDatatype=e.pixelDatatype,this._pixelFormat=e.pixelFormat,this._width=void 0,this._height=void 0,this._framebuffer=void 0,this._colorTextures=void 0,this._color&&(this._colorTextures=new Array(this._colorAttachmentsLength)),this._depthStencilRenderbuffer=void 0,this._depthStencilTexture=void 0,this._depthRenderbuffer=void 0,this._depthTexture=void 0,this._attachmentsDirty=!1}Object.defineProperties(f.prototype,{framebuffer:{get:function(){return this._framebuffer}},status:{get:function(){return this._framebuffer.status}}}),f.prototype.isDirty=function(e,t,i,n){const r=this._width!==e||this._height!==t,o=(0,l.Z)(i)&&this._pixelDatatype!==i||(0,l.Z)(n)&&this._pixelFormat!==n;return this._attachmentsDirty||r||o||!(0,l.Z)(this._framebuffer)||this._color&&!(0,l.Z)(this._colorTextures[0])},f.prototype.update=function(e,t,i,f,p){if(!(0,l.Z)(t)||!(0,l.Z)(i))throw new h.Z("width and height must be defined.");if(f=(0,u.Z)(f,this._color?(0,u.Z)(this._pixelDatatype,r.Z.UNSIGNED_BYTE):void 0),p=(0,u.Z)(p,this._color?(0,u.Z)(this._pixelFormat,d.Z.RGBA):void 0),this.isDirty(t,i,f,p)){if(this.destroy(),this._width=t,this._height=i,this._pixelDatatype=f,this._pixelFormat=p,this._attachmentsDirty=!1,this._color&&this._createColorAttachments)for(let n=0;n=this._colorAttachmentsLength)throw new h.Z("index must be smaller than total number of color attachments.");return this._colorTextures[e]},f.prototype.setColorTexture=function(e,t){if(t=(0,u.Z)(t,0),this._createColorAttachments)throw new h.Z("createColorAttachments must be false if setColorTexture is called.");if(t>=this._colorAttachmentsLength)throw new h.Z("index must be smaller than total number of color attachments.");this._attachmentsDirty=e!==this._colorTextures[t],this._colorTextures[t]=e},f.prototype.getDepthRenderbuffer=function(){return this._depthRenderbuffer},f.prototype.setDepthRenderbuffer=function(e){if(this._createDepthAttachments)throw new h.Z("createDepthAttachments must be false if setDepthRenderbuffer is called.");this._attachmentsDirty=e!==this._depthRenderbuffer,this._depthRenderbuffer=e},f.prototype.getDepthTexture=function(){return this._depthTexture},f.prototype.setDepthTexture=function(e){if(this._createDepthAttachments)throw new h.Z("createDepthAttachments must be false if setDepthTexture is called.");this._attachmentsDirty=e!==this._depthTexture,this._depthTexture=e},f.prototype.getDepthStencilRenderbuffer=function(){return this._depthStencilRenderbuffer},f.prototype.setDepthStencilRenderbuffer=function(e){if(this._createDepthAttachments)throw new h.Z("createDepthAttachments must be false if setDepthStencilRenderbuffer is called.");this._attachmentsDirty=e!==this._depthStencilRenderbuffer,this._depthStencilRenderbuffer=e},f.prototype.getDepthStencilTexture=function(){return this._depthStencilTexture},f.prototype.setDepthStencilTexture=function(e){if(this._createDepthAttachments)throw new h.Z("createDepthAttachments must be false if setDepthStencilTexture is called.");this._attachmentsDirty=e!==this._depthStencilTexture,this._depthStencilTexture=e},f.prototype.clear=function(e,t,i){const n=t.framebuffer;t.framebuffer=this._framebuffer,t.execute(e,i),t.framebuffer=n},f.prototype.destroyFramebuffer=function(){this._framebuffer=this._framebuffer&&this._framebuffer.destroy()},f.prototype.destroy=function(){if(this._color&&this._createColorAttachments){const e=this._colorTextures.length;for(let t=0;t{"use strict";i.d(t,{Z:()=>o});var n=i(619287);const r={DONT_CARE:n.Z.DONT_CARE,FASTEST:n.Z.FASTEST,NICEST:n.Z.NICEST,validate:function(e){return e===r.DONT_CARE||e===r.FASTEST||e===r.NICEST}},o=Object.freeze(r)},842649:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({ENVIRONMENT:0,COMPUTE:1,GLOBE:2,TERRAIN_CLASSIFICATION:3,CESIUM_3D_TILE:4,CESIUM_3D_TILE_CLASSIFICATION:5,CESIUM_3D_TILE_CLASSIFICATION_IGNORE_SHOW:6,OPAQUE:7,TRANSLUCENT:8,OVERLAY:9,NUMBER_OF_PASSES:10})},687931:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(619287);const r={UNSIGNED_BYTE:n.Z.UNSIGNED_BYTE,UNSIGNED_SHORT:n.Z.UNSIGNED_SHORT,UNSIGNED_INT:n.Z.UNSIGNED_INT,FLOAT:n.Z.FLOAT,HALF_FLOAT:n.Z.HALF_FLOAT_OES,UNSIGNED_INT_24_8:n.Z.UNSIGNED_INT_24_8,UNSIGNED_SHORT_4_4_4_4:n.Z.UNSIGNED_SHORT_4_4_4_4,UNSIGNED_SHORT_5_5_5_1:n.Z.UNSIGNED_SHORT_5_5_5_1,UNSIGNED_SHORT_5_6_5:n.Z.UNSIGNED_SHORT_5_6_5,toWebGLConstant:function(e,t){switch(e){case r.UNSIGNED_BYTE:return n.Z.UNSIGNED_BYTE;case r.UNSIGNED_SHORT:return n.Z.UNSIGNED_SHORT;case r.UNSIGNED_INT:return n.Z.UNSIGNED_INT;case r.FLOAT:return n.Z.FLOAT;case r.HALF_FLOAT:return t.webgl2?n.Z.HALF_FLOAT:n.Z.HALF_FLOAT_OES;case r.UNSIGNED_INT_24_8:return n.Z.UNSIGNED_INT_24_8;case r.UNSIGNED_SHORT_4_4_4_4:return n.Z.UNSIGNED_SHORT_4_4_4_4;case r.UNSIGNED_SHORT_5_5_5_1:return n.Z.UNSIGNED_SHORT_5_5_5_1;case r.UNSIGNED_SHORT_5_6_5:return r.UNSIGNED_SHORT_5_6_5}},isPacked:function(e){return e===r.UNSIGNED_INT_24_8||e===r.UNSIGNED_SHORT_4_4_4_4||e===r.UNSIGNED_SHORT_5_5_5_1||e===r.UNSIGNED_SHORT_5_6_5},sizeInBytes:function(e){switch(e){case r.UNSIGNED_BYTE:return 1;case r.UNSIGNED_SHORT:case r.UNSIGNED_SHORT_4_4_4_4:case r.UNSIGNED_SHORT_5_5_5_1:case r.UNSIGNED_SHORT_5_6_5:case r.HALF_FLOAT:return 2;case r.UNSIGNED_INT:case r.FLOAT:case r.UNSIGNED_INT_24_8:return 4}},validate:function(e){return e===r.UNSIGNED_BYTE||e===r.UNSIGNED_SHORT||e===r.UNSIGNED_INT||e===r.FLOAT||e===r.HALF_FLOAT||e===r.UNSIGNED_INT_24_8||e===r.UNSIGNED_SHORT_4_4_4_4||e===r.UNSIGNED_SHORT_5_5_5_1||e===r.UNSIGNED_SHORT_5_6_5}},o=Object.freeze(r)},364232:(e,t,i)=>{"use strict";i.d(t,{Z:()=>M});var n=i(152124),r=i(545125),o=i(406144),s=i(426468),a=i(446938),c=i(619287),u=i(674833),l=i(994589),h=i(92026);function d(e){return e===c.Z.FUNC_ADD||e===c.Z.FUNC_SUBTRACT||e===c.Z.FUNC_REVERSE_SUBTRACT||e===c.Z.MIN||e===c.Z.MAX}function f(e){return e===c.Z.ZERO||e===c.Z.ONE||e===c.Z.SRC_COLOR||e===c.Z.ONE_MINUS_SRC_COLOR||e===c.Z.DST_COLOR||e===c.Z.ONE_MINUS_DST_COLOR||e===c.Z.SRC_ALPHA||e===c.Z.ONE_MINUS_SRC_ALPHA||e===c.Z.DST_ALPHA||e===c.Z.ONE_MINUS_DST_ALPHA||e===c.Z.CONSTANT_COLOR||e===c.Z.ONE_MINUS_CONSTANT_COLOR||e===c.Z.CONSTANT_ALPHA||e===c.Z.ONE_MINUS_CONSTANT_ALPHA||e===c.Z.SRC_ALPHA_SATURATE}function p(e){return e===c.Z.NEVER||e===c.Z.LESS||e===c.Z.EQUAL||e===c.Z.LEQUAL||e===c.Z.GREATER||e===c.Z.NOTEQUAL||e===c.Z.GEQUAL||e===c.Z.ALWAYS}function m(e){return e===c.Z.ZERO||e===c.Z.KEEP||e===c.Z.REPLACE||e===c.Z.INCR||e===c.Z.DECR||e===c.Z.INVERT||e===c.Z.INCR_WRAP||e===c.Z.DECR_WRAP}function _(e){const t=(0,o.Z)(e,o.Z.EMPTY_OBJECT),i=(0,o.Z)(t.cull,o.Z.EMPTY_OBJECT),h=(0,o.Z)(t.polygonOffset,o.Z.EMPTY_OBJECT),_=(0,o.Z)(t.scissorTest,o.Z.EMPTY_OBJECT),Z=(0,o.Z)(_.rectangle,o.Z.EMPTY_OBJECT),g=(0,o.Z)(t.depthRange,o.Z.EMPTY_OBJECT),y=(0,o.Z)(t.depthTest,o.Z.EMPTY_OBJECT),b=(0,o.Z)(t.colorMask,o.Z.EMPTY_OBJECT),A=(0,o.Z)(t.blending,o.Z.EMPTY_OBJECT),w=(0,o.Z)(A.color,o.Z.EMPTY_OBJECT),v=(0,o.Z)(t.stencilTest,o.Z.EMPTY_OBJECT),T=(0,o.Z)(v.frontOperation,o.Z.EMPTY_OBJECT),C=(0,o.Z)(v.backOperation,o.Z.EMPTY_OBJECT),E=(0,o.Z)(t.sampleCoverage,o.Z.EMPTY_OBJECT),x=t.viewport;if(this.frontFace=(0,o.Z)(t.frontFace,u.Z.COUNTER_CLOCKWISE),this.cull={enabled:(0,o.Z)(i.enabled,!1),face:(0,o.Z)(i.face,c.Z.BACK)},this.lineWidth=(0,o.Z)(t.lineWidth,1),this.polygonOffset={enabled:(0,o.Z)(h.enabled,!1),factor:(0,o.Z)(h.factor,0),units:(0,o.Z)(h.units,0)},this.scissorTest={enabled:(0,o.Z)(_.enabled,!1),rectangle:n.Z.clone(Z)},this.depthRange={near:(0,o.Z)(g.near,0),far:(0,o.Z)(g.far,1)},this.depthTest={enabled:(0,o.Z)(y.enabled,!1),func:(0,o.Z)(y.func,c.Z.LESS)},this.colorMask={red:(0,o.Z)(b.red,!0),green:(0,o.Z)(b.green,!0),blue:(0,o.Z)(b.blue,!0),alpha:(0,o.Z)(b.alpha,!0)},this.depthMask=(0,o.Z)(t.depthMask,!0),this.stencilMask=(0,o.Z)(t.stencilMask,-1),this.blending={enabled:(0,o.Z)(A.enabled,!1),color:new r.Z((0,o.Z)(w.red,0),(0,o.Z)(w.green,0),(0,o.Z)(w.blue,0),(0,o.Z)(w.alpha,0)),equationRgb:(0,o.Z)(A.equationRgb,c.Z.FUNC_ADD),equationAlpha:(0,o.Z)(A.equationAlpha,c.Z.FUNC_ADD),functionSourceRgb:(0,o.Z)(A.functionSourceRgb,c.Z.ONE),functionSourceAlpha:(0,o.Z)(A.functionSourceAlpha,c.Z.ONE),functionDestinationRgb:(0,o.Z)(A.functionDestinationRgb,c.Z.ZERO),functionDestinationAlpha:(0,o.Z)(A.functionDestinationAlpha,c.Z.ZERO)},this.stencilTest={enabled:(0,o.Z)(v.enabled,!1),frontFunction:(0,o.Z)(v.frontFunction,c.Z.ALWAYS),backFunction:(0,o.Z)(v.backFunction,c.Z.ALWAYS),reference:(0,o.Z)(v.reference,0),mask:(0,o.Z)(v.mask,-1),frontOperation:{fail:(0,o.Z)(T.fail,c.Z.KEEP),zFail:(0,o.Z)(T.zFail,c.Z.KEEP),zPass:(0,o.Z)(T.zPass,c.Z.KEEP)},backOperation:{fail:(0,o.Z)(C.fail,c.Z.KEEP),zFail:(0,o.Z)(C.zFail,c.Z.KEEP),zPass:(0,o.Z)(C.zPass,c.Z.KEEP)}},this.sampleCoverage={enabled:(0,o.Z)(E.enabled,!1),value:(0,o.Z)(E.value,1),invert:(0,o.Z)(E.invert,!1)},this.viewport=(0,s.Z)(x)?new n.Z(x.x,x.y,x.width,x.height):void 0,this.lineWidthl.Z.maximumAliasedLineWidth)throw new a.Z("renderState.lineWidth is out of range. Check minimumAliasedLineWidth and maximumAliasedLineWidth.");if(!u.Z.validate(this.frontFace))throw new a.Z("Invalid renderState.frontFace.");if((S=this.cull.face)!==c.Z.FRONT&&S!==c.Z.BACK&&S!==c.Z.FRONT_AND_BACK)throw new a.Z("Invalid renderState.cull.face.");var S,O;if(this.scissorTest.rectangle.width<0||this.scissorTest.rectangle.height<0)throw new a.Z("renderState.scissorTest.rectangle.width and renderState.scissorTest.rectangle.height must be greater than or equal to zero.");if(this.depthRange.near>this.depthRange.far)throw new a.Z("renderState.depthRange.near can not be greater than renderState.depthRange.far.");if(this.depthRange.near<0)throw new a.Z("renderState.depthRange.near must be greater than or equal to zero.");if(this.depthRange.far>1)throw new a.Z("renderState.depthRange.far must be less than or equal to one.");if((O=this.depthTest.func)!==c.Z.NEVER&&O!==c.Z.LESS&&O!==c.Z.EQUAL&&O!==c.Z.LEQUAL&&O!==c.Z.GREATER&&O!==c.Z.NOTEQUAL&&O!==c.Z.GEQUAL&&O!==c.Z.ALWAYS)throw new a.Z("Invalid renderState.depthTest.func.");if(this.blending.color.red<0||this.blending.color.red>1||this.blending.color.green<0||this.blending.color.green>1||this.blending.color.blue<0||this.blending.color.blue>1||this.blending.color.alpha<0||this.blending.color.alpha>1)throw new a.Z("renderState.blending.color components must be greater than or equal to zero and less than or equal to one.");if(!d(this.blending.equationRgb))throw new a.Z("Invalid renderState.blending.equationRgb.");if(!d(this.blending.equationAlpha))throw new a.Z("Invalid renderState.blending.equationAlpha.");if(!f(this.blending.functionSourceRgb))throw new a.Z("Invalid renderState.blending.functionSourceRgb.");if(!f(this.blending.functionSourceAlpha))throw new a.Z("Invalid renderState.blending.functionSourceAlpha.");if(!f(this.blending.functionDestinationRgb))throw new a.Z("Invalid renderState.blending.functionDestinationRgb.");if(!f(this.blending.functionDestinationAlpha))throw new a.Z("Invalid renderState.blending.functionDestinationAlpha.");if(!p(this.stencilTest.frontFunction))throw new a.Z("Invalid renderState.stencilTest.frontFunction.");if(!p(this.stencilTest.backFunction))throw new a.Z("Invalid renderState.stencilTest.backFunction.");if(!m(this.stencilTest.frontOperation.fail))throw new a.Z("Invalid renderState.stencilTest.frontOperation.fail.");if(!m(this.stencilTest.frontOperation.zFail))throw new a.Z("Invalid renderState.stencilTest.frontOperation.zFail.");if(!m(this.stencilTest.frontOperation.zPass))throw new a.Z("Invalid renderState.stencilTest.frontOperation.zPass.");if(!m(this.stencilTest.backOperation.fail))throw new a.Z("Invalid renderState.stencilTest.backOperation.fail.");if(!m(this.stencilTest.backOperation.zFail))throw new a.Z("Invalid renderState.stencilTest.backOperation.zFail.");if(!m(this.stencilTest.backOperation.zPass))throw new a.Z("Invalid renderState.stencilTest.backOperation.zPass.");if((0,s.Z)(this.viewport)){if(this.viewport.width<0)throw new a.Z("renderState.viewport.width must be greater than or equal to zero.");if(this.viewport.height<0)throw new a.Z("renderState.viewport.height must be greater than or equal to zero.");if(this.viewport.width>l.Z.maximumViewportWidth)throw new a.Z("renderState.viewport.width must be less than or equal to the maximum viewport width ("+l.Z.maximumViewportWidth.toString()+"). Check maximumViewportWidth.");if(this.viewport.height>l.Z.maximumViewportHeight)throw new a.Z("renderState.viewport.height must be less than or equal to the maximum viewport height ("+l.Z.maximumViewportHeight.toString()+"). Check maximumViewportHeight.")}this.id=0,this._applyFunctions=[]}let Z=0,g={};function y(e,t,i){i?e.enable(t):e.disable(t)}function b(e,t){e.frontFace(t.frontFace)}function A(e,t){const i=t.cull,n=i.enabled;y(e,e.CULL_FACE,n),n&&e.cullFace(i.face)}function w(e,t){e.lineWidth(t.lineWidth)}function v(e,t){const i=t.polygonOffset,n=i.enabled;y(e,e.POLYGON_OFFSET_FILL,n),n&&e.polygonOffset(i.factor,i.units)}function T(e,t,i){const n=t.scissorTest,r=(0,s.Z)(i.scissorTest)?i.scissorTest.enabled:n.enabled;if(y(e,e.SCISSOR_TEST,r),r){const t=(0,s.Z)(i.scissorTest)?i.scissorTest.rectangle:n.rectangle;e.scissor(t.x,t.y,t.width,t.height)}}function C(e,t){const i=t.depthRange;e.depthRange(i.near,i.far)}function E(e,t){const i=t.depthTest,n=i.enabled;y(e,e.DEPTH_TEST,n),n&&e.depthFunc(i.func)}function x(e,t){const i=t.colorMask;e.colorMask(i.red,i.green,i.blue,i.alpha)}function S(e,t){e.depthMask(t.depthMask)}function O(e,t){e.stencilMask(t.stencilMask)}function I(e,t,i){const n=t.blending,r=(0,s.Z)(i.blendingEnabled)?i.blendingEnabled:n.enabled;y(e,e.BLEND,r),r&&(function(e,t){e.blendColor(t.red,t.green,t.blue,t.alpha)}(e,n.color),e.blendEquationSeparate(n.equationRgb,n.equationAlpha),e.blendFuncSeparate(n.functionSourceRgb,n.functionDestinationRgb,n.functionSourceAlpha,n.functionDestinationAlpha))}function D(e,t){const i=t.stencilTest,n=i.enabled;if(y(e,e.STENCIL_TEST,n),n){const t=i.frontFunction,n=i.backFunction,r=i.reference,o=i.mask;e.stencilFunc(t,r,o),e.stencilFuncSeparate(e.BACK,n,r,o),e.stencilFuncSeparate(e.FRONT,t,r,o);const s=i.frontOperation,a=s.fail,c=s.zFail,u=s.zPass;e.stencilOpSeparate(e.FRONT,a,c,u);const l=i.backOperation,h=l.fail,d=l.zFail,f=l.zPass;e.stencilOpSeparate(e.BACK,h,d,f)}}function P(e,t){const i=t.sampleCoverage,n=i.enabled;y(e,e.SAMPLE_COVERAGE,n),n&&e.sampleCoverage(i.value,i.invert)}_.fromCache=function(e){const t=JSON.stringify(e);let i=g[t];if((0,s.Z)(i))return++i.referenceCount,i.state;let n=new _(e);const r=JSON.stringify(n);return i=g[r],(0,s.Z)(i)||(n.id=Z++,n=(0,h.Z)(n),i={referenceCount:0,state:n},g[r]=i),++i.referenceCount,g[t]={referenceCount:1,state:i.state},i.state},_.removeFromCache=function(e){const t=new _(e),i=JSON.stringify(t),n=g[i],r=JSON.stringify(e),o=g[r];(0,s.Z)(o)&&(--o.referenceCount,0===o.referenceCount&&(delete g[r],(0,s.Z)(n)&&--n.referenceCount)),(0,s.Z)(n)&&0===n.referenceCount&&delete g[i]},_.getCache=function(){return g},_.clearCache=function(){g={}};const R=new n.Z;function B(e,t,i){let n=(0,o.Z)(t.viewport,i.viewport);(0,s.Z)(n)||(n=R,n.width=i.context.drawingBufferWidth,n.height=i.context.drawingBufferHeight),i.context.uniformState.viewport=n,e.viewport(n.x,n.y,n.width,n.height)}_.apply=function(e,t,i){b(e,t),A(e,t),w(e,t),v(e,t),C(e,t),E(e,t),x(e,t),S(e,t),O(e,t),D(e,t),P(e,t),T(e,t,i),I(e,t,i),B(e,t,i)},_.partialApply=function(e,t,i,n,r,o){if(t!==i){let n=i._applyFunctions[t.id];(0,s.Z)(n)||(n=function(e,t){const i=[];return e.frontFace!==t.frontFace&&i.push(b),e.cull.enabled===t.cull.enabled&&e.cull.face===t.cull.face||i.push(A),e.lineWidth!==t.lineWidth&&i.push(w),e.polygonOffset.enabled===t.polygonOffset.enabled&&e.polygonOffset.factor===t.polygonOffset.factor&&e.polygonOffset.units===t.polygonOffset.units||i.push(v),e.depthRange.near===t.depthRange.near&&e.depthRange.far===t.depthRange.far||i.push(C),e.depthTest.enabled===t.depthTest.enabled&&e.depthTest.func===t.depthTest.func||i.push(E),e.colorMask.red===t.colorMask.red&&e.colorMask.green===t.colorMask.green&&e.colorMask.blue===t.colorMask.blue&&e.colorMask.alpha===t.colorMask.alpha||i.push(x),e.depthMask!==t.depthMask&&i.push(S),e.stencilMask!==t.stencilMask&&i.push(O),e.stencilTest.enabled===t.stencilTest.enabled&&e.stencilTest.frontFunction===t.stencilTest.frontFunction&&e.stencilTest.backFunction===t.stencilTest.backFunction&&e.stencilTest.reference===t.stencilTest.reference&&e.stencilTest.mask===t.stencilTest.mask&&e.stencilTest.frontOperation.fail===t.stencilTest.frontOperation.fail&&e.stencilTest.frontOperation.zFail===t.stencilTest.frontOperation.zFail&&e.stencilTest.backOperation.fail===t.stencilTest.backOperation.fail&&e.stencilTest.backOperation.zFail===t.stencilTest.backOperation.zFail&&e.stencilTest.backOperation.zPass===t.stencilTest.backOperation.zPass||i.push(D),e.sampleCoverage.enabled===t.sampleCoverage.enabled&&e.sampleCoverage.value===t.sampleCoverage.value&&e.sampleCoverage.invert===t.sampleCoverage.invert||i.push(P),i}(t,i),i._applyFunctions[t.id]=n);const r=n.length;for(let t=0;t{"use strict";i.d(t,{Z:()=>h});var n=i(357299),r=i(406144),o=i(426468),s=i(54879),a=i(446938),c=i(994589),u=i(840925);function l(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),n.Z.defined("options.context",e.context);const t=e.context._gl,i=c.Z.maximumRenderbufferSize,s=(0,r.Z)(e.format,u.Z.RGBA4),l=(0,o.Z)(e.width)?e.width:t.drawingBufferWidth,h=(0,o.Z)(e.height)?e.height:t.drawingBufferHeight;if(!u.Z.validate(s))throw new a.Z("Invalid format.");if(n.Z.typeOf.number.greaterThan("width",l,0),l>i)throw new a.Z("Width must be less than or equal to the maximum renderbuffer size ("+i+"). Check maximumRenderbufferSize.");if(n.Z.typeOf.number.greaterThan("height",h,0),h>i)throw new a.Z("Height must be less than or equal to the maximum renderbuffer size ("+i+"). Check maximumRenderbufferSize.");this._gl=t,this._format=s,this._width=l,this._height=h,this._renderbuffer=this._gl.createRenderbuffer(),t.bindRenderbuffer(t.RENDERBUFFER,this._renderbuffer),t.renderbufferStorage(t.RENDERBUFFER,s,l,h),t.bindRenderbuffer(t.RENDERBUFFER,null)}Object.defineProperties(l.prototype,{format:{get:function(){return this._format}},width:{get:function(){return this._width}},height:{get:function(){return this._height}}}),l.prototype._getRenderbuffer=function(){return this._renderbuffer},l.prototype.isDestroyed=function(){return!1},l.prototype.destroy=function(){return this._gl.deleteRenderbuffer(this._renderbuffer),(0,s.Z)(this)};const h=l},840925:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(619287);const r={RGBA4:n.Z.RGBA4,RGB5_A1:n.Z.RGB5_A1,RGB565:n.Z.RGB565,DEPTH_COMPONENT16:n.Z.DEPTH_COMPONENT16,STENCIL_INDEX8:n.Z.STENCIL_INDEX8,DEPTH_STENCIL:n.Z.DEPTH_STENCIL,validate:function(e){return e===r.RGBA4||e===r.RGB5_A1||e===r.RGB565||e===r.DEPTH_COMPONENT16||e===r.STENCIL_INDEX8||e===r.DEPTH_STENCIL}},o=Object.freeze(r)},270013:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(357299),r=i(406144),o=i(426468),s=i(446938),a=i(59102),c=i(636664),u=i(655499);function l(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT);const t=(0,r.Z)(e.wrapS,u.Z.CLAMP_TO_EDGE),i=(0,r.Z)(e.wrapT,u.Z.CLAMP_TO_EDGE),l=(0,r.Z)(e.minificationFilter,c.Z.LINEAR),h=(0,r.Z)(e.magnificationFilter,a.Z.LINEAR),d=(0,o.Z)(e.maximumAnisotropy)?e.maximumAnisotropy:1;if(!u.Z.validate(t))throw new s.Z("Invalid sampler.wrapS.");if(!u.Z.validate(i))throw new s.Z("Invalid sampler.wrapT.");if(!c.Z.validate(l))throw new s.Z("Invalid sampler.minificationFilter.");if(!a.Z.validate(h))throw new s.Z("Invalid sampler.magnificationFilter.");n.Z.typeOf.number.greaterThanOrEquals("maximumAnisotropy",d,1),this._wrapS=t,this._wrapT=i,this._minificationFilter=l,this._magnificationFilter=h,this._maximumAnisotropy=d}Object.defineProperties(l.prototype,{wrapS:{get:function(){return this._wrapS}},wrapT:{get:function(){return this._wrapT}},minificationFilter:{get:function(){return this._minificationFilter}},magnificationFilter:{get:function(){return this._magnificationFilter}},maximumAnisotropy:{get:function(){return this._maximumAnisotropy}}}),l.equals=function(e,t){return e===t||(0,o.Z)(e)&&(0,o.Z)(t)&&e._wrapS===t._wrapS&&e._wrapT===t._wrapT&&e._minificationFilter===t._minificationFilter&&e._magnificationFilter===t._magnificationFilter&&e._maximumAnisotropy===t._maximumAnisotropy},l.NEAREST=Object.freeze(new l({wrapS:u.Z.CLAMP_TO_EDGE,wrapT:u.Z.CLAMP_TO_EDGE,minificationFilter:c.Z.NEAREST,magnificationFilter:a.Z.NEAREST}));const h=l},154774:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});var n=i(357299),r=i(556592),o=i(426468),s=i(406144),a=i(446938),c=i(30171),u=i(928096),l=i(279427),h=i(824050),d=i(374340);function f(){this._positionAttributeLine=void 0,this._nextAttributeLocation=1,this._attributeLocations={},this._attributeLines=[],this._structs={},this._functions={},this._vertexShaderParts={defineLines:[],uniformLines:[],shaderLines:[],varyingLines:[],structIds:[],functionIds:[]},this._fragmentShaderParts={defineLines:[],uniformLines:[],shaderLines:[],varyingLines:[],structIds:[],functionIds:[]}}Object.defineProperties(f.prototype,{attributeLocations:{get:function(){return this._attributeLocations}}}),f.prototype.addDefine=function(e,t,i){n.Z.typeOf.string("identifier",e),i=(0,s.Z)(i,c.Z.BOTH);let r=e;(0,o.Z)(t)&&(r+=" "+t.toString()),c.Z.includesVertexShader(i)&&this._vertexShaderParts.defineLines.push(r),c.Z.includesFragmentShader(i)&&this._fragmentShaderParts.defineLines.push(r)},f.prototype.addStruct=function(e,t,i){n.Z.typeOf.string("structId",e),n.Z.typeOf.string("structName",t),n.Z.typeOf.number("destination",i),this._structs[e]=new h.Z(t),c.Z.includesVertexShader(i)&&this._vertexShaderParts.structIds.push(e),c.Z.includesFragmentShader(i)&&this._fragmentShaderParts.structIds.push(e)},f.prototype.addStructField=function(e,t,i){n.Z.typeOf.string("structId",e),n.Z.typeOf.string("type",t),n.Z.typeOf.string("identifier",i),this._structs[e].addField(t,i)},f.prototype.addFunction=function(e,t,i){n.Z.typeOf.string("functionName",e),n.Z.typeOf.string("signature",t),n.Z.typeOf.number("destination",i),this._functions[e]=new d.Z(t),c.Z.includesVertexShader(i)&&this._vertexShaderParts.functionIds.push(e),c.Z.includesFragmentShader(i)&&this._fragmentShaderParts.functionIds.push(e)},f.prototype.addFunctionLines=function(e,t){n.Z.typeOf.string("functionName",e),n.Z.typeOf.object("lines",t),this._functions[e].addLines(t)},f.prototype.addUniform=function(e,t,i){n.Z.typeOf.string("type",e),n.Z.typeOf.string("identifier",t),i=(0,s.Z)(i,c.Z.BOTH);const r="uniform "+e+" "+t+";";c.Z.includesVertexShader(i)&&this._vertexShaderParts.uniformLines.push(r),c.Z.includesFragmentShader(i)&&this._fragmentShaderParts.uniformLines.push(r)},f.prototype.setPositionAttribute=function(e,t){if(n.Z.typeOf.string("type",e),n.Z.typeOf.string("identifier",t),(0,o.Z)(this._positionAttributeLine))throw new a.Z("setPositionAttribute() must be called exactly once for the attribute used for gl_Position. For other attributes, use addAttribute()");return this._positionAttributeLine="attribute "+e+" "+t+";",this._attributeLocations[t]=0,0},f.prototype.addAttribute=function(e,t){n.Z.typeOf.string("type",e),n.Z.typeOf.string("identifier",t);const i="attribute "+e+" "+t+";";this._attributeLines.push(i);const r=this._nextAttributeLocation;return this._attributeLocations[t]=r,this._nextAttributeLocation++,r},f.prototype.addVarying=function(e,t){n.Z.typeOf.string("type",e),n.Z.typeOf.string("identifier",t);const i="varying "+e+" "+t+";";this._vertexShaderParts.varyingLines.push(i),this._fragmentShaderParts.varyingLines.push(i)},f.prototype.addVertexLines=function(e){n.Z.typeOf.object("lines",e),Array.prototype.push.apply(this._vertexShaderParts.shaderLines,e)},f.prototype.addFragmentLines=function(e){n.Z.typeOf.object("lines",e),Array.prototype.push.apply(this._fragmentShaderParts.shaderLines,e)},f.prototype.buildShaderProgram=function(e){n.Z.typeOf.object("context",e);const t=(0,o.Z)(this._positionAttributeLine)?[this._positionAttributeLine]:[],i=function(e){const t=[],i=[];let n,r,o,s,a=e._vertexShaderParts.structIds;for(n=0;n{"use strict";i.d(t,{Z:()=>u});var n=i(426468),r=i(54879),o=i(928096),s=i(279427);function a(e){this._context=e,this._shaders={},this._numberOfShaders=0,this._shadersToRelease={}}function c(e,t){const i=t.derivedKeywords,n=i.length;for(let r=0;r-1&&r.derivedKeywords.splice(e,1)}return this.createDerivedShaderProgram(e,t,i)},a.prototype.getDerivedShaderProgram=function(e,t){const i=t+e._cachedShader.keyword,r=this._shaders[i];if((0,n.Z)(r))return r.shaderProgram},a.prototype.createDerivedShaderProgram=function(e,t,i){const n=e._cachedShader,r=t+n.keyword;let a=i.vertexShaderSource,c=i.fragmentShaderSource;const u=i.attributeLocations;"string"==typeof a&&(a=new s.Z({sources:[a]})),"string"==typeof c&&(c=new s.Z({sources:[c]}));const l=this._context,h=a.createCombinedVertexShader(l),d=c.createCombinedFragmentShader(l),f=new o.Z({gl:l._gl,logShaderCompilation:l.logShaderCompilation,debugShaders:l.debugShaders,vertexShaderSource:a,vertexShaderText:h,fragmentShaderSource:c,fragmentShaderText:d,attributeLocations:u}),p={cache:this,shaderProgram:f,keyword:r,derivedKeywords:[],count:0};return n.derivedKeywords.push(t),f._cachedShader=p,this._shaders[r]=p,f},a.prototype.destroyReleasedShaderPrograms=function(){const e=this._shadersToRelease;for(const t in e)e.hasOwnProperty(t)&&(c(this,e[t]),--this._numberOfShaders);this._shadersToRelease={}},a.prototype.releaseShaderProgram=function(e){if((0,n.Z)(e)){const t=e._cachedShader;t&&0==--t.count&&(this._shadersToRelease[t.keyword]=t)}},a.prototype.isDestroyed=function(){return!1},a.prototype.destroy=function(){const e=this._shaders;for(const t in e)e.hasOwnProperty(t)&&e[t].shaderProgram.finalDestroy();return(0,r.Z)(this)};const u=a},30171:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(357299);const r={VERTEX:0,FRAGMENT:1,BOTH:2,includesVertexShader:function(e){return n.Z.typeOf.number("destination",e),e===r.VERTEX||e===r.BOTH},includesFragmentShader:function(e){return n.Z.typeOf.number("destination",e),e===r.FRAGMENT||e===r.BOTH}},o=Object.freeze(r)},374340:(e,t,i)=>{"use strict";function n(e){this.signature=e,this.body=[]}i.d(t,{Z:()=>n}),n.prototype.addLines=function(e){const t=e.map((function(e){return" "+e}));Array.prototype.push.apply(this.body,t)},n.prototype.generateGlslLines=function(){return[].concat(this.signature,"{",this.body,"}")}},928096:(e,t,i)=>{"use strict";i.d(t,{Z:()=>y});var n=i(357299),r=i(406144),o=i(426468),s=i(54879),a=i(446938),c=i(50128),u=i(346656),l=i(994589),h=i(509624),d=i(29448);let f=0;function p(e){let t=e.vertexShaderText,i=e.fragmentShaderText;"undefined"!=typeof spector&&(t=t.replace(/^#line/gm,"//#line"),i=i.replace(/^#line/gm,"//#line"));const n=function(e,t){const i={};if(!l.Z.highpFloatSupported||!l.Z.highpIntSupported){let n,r,o,s;const a=m(e),c=m(t),u=a.length,l=c.length;for(n=0;n0&&console.log(_+"Vertex shader compile log: "+l)),h&&(l=e.getShaderInfoLog(s),(0,o.Z)(l)&&l.length>0&&console.log(_+"Fragment shader compile log: "+l)),h&&(l=e.getProgramInfoLog(a),(0,o.Z)(l)&&l.length>0&&console.log(_+"Shader program link log: "+l)),a}(i,e,e._debugShaders),r=i.getProgramParameter(n,i.ACTIVE_ATTRIBUTES),s=function(e,t){const i={},n=[],r=[],s=e.getProgramParameter(t,e.ACTIVE_UNIFORMS);for(let a=0;a=0){if(a=i[u.slice(0,f)],!(0,o.Z)(a))continue;c=a._locations,c.length<=1&&(l=a.value,h=e.getUniformLocation(t,u),null!==h&&(c.push(h),l.push(e.getUniform(t,h))))}else{c=[];for(let i=0;i{"use strict";i.d(t,{Z:()=>Z});var n=i(406144),r=i(426468),o=i(446938),s=i(339476),a=i(179173),c=i(346656);function u(e){return(e=e.replace(/\/\/.*/g,"")).replace(/\/\*\*[\s\S]*?\*\//gm,(function(e){const t=e.match(/\n/gm).length;let i="";for(let e=0;e0;){const n=e.pop();i.push(n),0===n.requiredBy.length&&t.push(n)}for(;t.length>0;){const i=t.shift();e.push(i);for(let e=0;e=0;--e)n=n+t[e].glslSource+"\n";return n.replace(i.glslSource,"")}function f(e,t,i){let n,a,c="";const l=e.sources;if((0,r.Z)(l))for(n=0,a=l.length;n{"use strict";function n(e){this.name=e,this.fields=[]}i.d(t,{Z:()=>n}),n.prototype.addField=function(e,t){const i=" "+e+" "+t+";";this.fields.push(i)},n.prototype.generateGlslLines=function(){let e=this.fields;return 0===e.length&&(e=[" float _empty;"]),[].concat("struct "+this.name,"{",e,"};")}},283044:(e,t,i)=>{"use strict";i.d(t,{Z:()=>y});var n=i(337968),r=i(357299),o=i(416974),s=i(406144),a=i(426468),c=i(54879),u=i(446938),l=i(362017),h=i(100883),d=i(994589),f=i(375983),p=i(687931),m=i(270013),_=i(59102),Z=i(636664);function g(e){e=(0,s.Z)(e,s.Z.EMPTY_OBJECT),r.Z.defined("options.context",e.context);const t=e.context;let i=e.width,c=e.height;const l=e.source;(0,a.Z)(l)&&((0,a.Z)(i)||(i=(0,s.Z)(l.videoWidth,l.width)),(0,a.Z)(c)||(c=(0,s.Z)(l.videoHeight,l.height)));const f=(0,s.Z)(e.pixelFormat,h.Z.RGBA),_=(0,s.Z)(e.pixelDatatype,p.Z.UNSIGNED_BYTE),Z=h.Z.toInternalFormat(f,_,t),g=h.Z.isCompressedFormat(Z);if(!(0,a.Z)(i)||!(0,a.Z)(c))throw new u.Z("options requires a source field to create an initialized texture or width and height fields to create a blank texture.");if(r.Z.typeOf.number.greaterThan("width",i,0),i>d.Z.maximumTextureSize)throw new u.Z("Width must be less than or equal to the maximum texture size ("+d.Z.maximumTextureSize+"). Check maximumTextureSize.");if(r.Z.typeOf.number.greaterThan("height",c,0),c>d.Z.maximumTextureSize)throw new u.Z("Height must be less than or equal to the maximum texture size ("+d.Z.maximumTextureSize+"). Check maximumTextureSize.");if(!h.Z.validate(f))throw new u.Z("Invalid options.pixelFormat.");if(!g&&!p.Z.validate(_))throw new u.Z("Invalid options.pixelDatatype.");if(f===h.Z.DEPTH_COMPONENT&&_!==p.Z.UNSIGNED_SHORT&&_!==p.Z.UNSIGNED_INT)throw new u.Z("When options.pixelFormat is DEPTH_COMPONENT, options.pixelDatatype must be UNSIGNED_SHORT or UNSIGNED_INT.");if(f===h.Z.DEPTH_STENCIL&&_!==p.Z.UNSIGNED_INT_24_8)throw new u.Z("When options.pixelFormat is DEPTH_STENCIL, options.pixelDatatype must be UNSIGNED_INT_24_8.");if(_===p.Z.FLOAT&&!t.floatingPointTexture)throw new u.Z("When options.pixelDatatype is FLOAT, this WebGL implementation must support the OES_texture_float extension. Check context.floatingPointTexture.");if(_===p.Z.HALF_FLOAT&&!t.halfFloatingPointTexture)throw new u.Z("When options.pixelDatatype is HALF_FLOAT, this WebGL implementation must support the OES_texture_half_float extension. Check context.halfFloatingPointTexture.");if(h.Z.isDepthFormat(f)){if((0,a.Z)(l))throw new u.Z("When options.pixelFormat is DEPTH_COMPONENT or DEPTH_STENCIL, source cannot be provided.");if(!t.depthTexture)throw new u.Z("When options.pixelFormat is DEPTH_COMPONENT or DEPTH_STENCIL, this WebGL implementation must support WEBGL_depth_texture. Check context.depthTexture.")}if(g){if(!(0,a.Z)(l)||!(0,a.Z)(l.arrayBufferView))throw new u.Z("When options.pixelFormat is compressed, options.source.arrayBufferView must be defined.");if(h.Z.isDXTFormat(Z)&&!t.s3tc)throw new u.Z("When options.pixelFormat is S3TC compressed, this WebGL implementation must support the WEBGL_compressed_texture_s3tc extension. Check context.s3tc.");if(h.Z.isPVRTCFormat(Z)&&!t.pvrtc)throw new u.Z("When options.pixelFormat is PVRTC compressed, this WebGL implementation must support the WEBGL_compressed_texture_pvrtc extension. Check context.pvrtc.");if(h.Z.isASTCFormat(Z)&&!t.astc)throw new u.Z("When options.pixelFormat is ASTC compressed, this WebGL implementation must support the WEBGL_compressed_texture_astc extension. Check context.astc.");if(h.Z.isETC2Format(Z)&&!t.etc)throw new u.Z("When options.pixelFormat is ETC2 compressed, this WebGL implementation must support the WEBGL_compressed_texture_etc extension. Check context.etc.");if(h.Z.isETC1Format(Z)&&!t.etc1)throw new u.Z("When options.pixelFormat is ETC1 compressed, this WebGL implementation must support the WEBGL_compressed_texture_etc1 extension. Check context.etc1.");if(h.Z.isBC7Format(Z)&&!t.bc7)throw new u.Z("When options.pixelFormat is BC7 compressed, this WebGL implementation must support the EXT_texture_compression_bptc extension. Check context.bc7.");if(h.Z.compressedTextureSizeInBytes(Z,i,c)!==l.arrayBufferView.byteLength)throw new u.Z("The byte length of the array buffer is invalid for the compressed texture with the given width and height.")}const y=e.preMultiplyAlpha||f===h.Z.RGB||f===h.Z.LUMINANCE,b=(0,s.Z)(e.flipY,!0),A=(0,s.Z)(e.skipColorSpaceConversion,!1);let w=!0;const v=t._gl,T=v.TEXTURE_2D,C=v.createTexture();v.activeTexture(v.TEXTURE0),v.bindTexture(T,C);let E,x=4;if((0,a.Z)(l)&&(0,a.Z)(l.arrayBufferView)&&!g&&(x=h.Z.alignmentInBytes(f,_,i)),v.pixelStorei(v.UNPACK_ALIGNMENT,x),A?v.pixelStorei(v.UNPACK_COLORSPACE_CONVERSION_WEBGL,v.NONE):v.pixelStorei(v.UNPACK_COLORSPACE_CONVERSION_WEBGL,v.BROWSER_DEFAULT_WEBGL),(0,a.Z)(l))if((0,a.Z)(l.arrayBufferView)){v.pixelStorei(v.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),v.pixelStorei(v.UNPACK_FLIP_Y_WEBGL,!1);let e,n,r,o=l.arrayBufferView;if(g){if(v.compressedTexImage2D(T,0,Z,i,c,0,o),(0,a.Z)(l.mipLevels))for(n=i,r=c,e=0;ei.drawingBufferWidth)throw new u.Z("framebufferXOffset + width must be less than or equal to drawingBufferWidth");if(c+d>i.drawingBufferHeight)throw new u.Z("framebufferYOffset + height must be less than or equal to drawingBufferHeight.");return new g({context:t,width:l,height:d,pixelFormat:n,source:{framebuffer:(0,a.Z)(f)?f:t.defaultFramebuffer,xOffset:o,yOffset:c,width:l,height:d}})},Object.defineProperties(g.prototype,{id:{get:function(){return this._id}},sampler:{get:function(){return this._sampler},set:function(e){let t=e.minificationFilter,i=e.magnificationFilter;const n=this._context,r=this._pixelFormat,o=this._pixelDatatype,s=t===Z.Z.NEAREST_MIPMAP_NEAREST||t===Z.Z.NEAREST_MIPMAP_LINEAR||t===Z.Z.LINEAR_MIPMAP_NEAREST||t===Z.Z.LINEAR_MIPMAP_LINEAR;(o===p.Z.FLOAT&&!n.textureFloatLinear||o===p.Z.HALF_FLOAT&&!n.textureHalfFloatLinear)&&(t=s?Z.Z.NEAREST_MIPMAP_NEAREST:Z.Z.NEAREST,i=_.Z.NEAREST),n.webgl2&&h.Z.isDepthFormat(r)&&(t=Z.Z.NEAREST,i=_.Z.NEAREST);const c=n._gl,u=this._textureTarget;c.activeTexture(c.TEXTURE0),c.bindTexture(u,this._texture),c.texParameteri(u,c.TEXTURE_MIN_FILTER,t),c.texParameteri(u,c.TEXTURE_MAG_FILTER,i),c.texParameteri(u,c.TEXTURE_WRAP_S,e.wrapS),c.texParameteri(u,c.TEXTURE_WRAP_T,e.wrapT),(0,a.Z)(this._textureFilterAnisotropic)&&c.texParameteri(u,this._textureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,e.maximumAnisotropy),c.bindTexture(u,null),this._sampler=e}},pixelFormat:{get:function(){return this._pixelFormat}},pixelDatatype:{get:function(){return this._pixelDatatype}},dimensions:{get:function(){return this._dimensions}},preMultiplyAlpha:{get:function(){return this._preMultiplyAlpha}},flipY:{get:function(){return this._flipY}},width:{get:function(){return this._width}},height:{get:function(){return this._height}},sizeInBytes:{get:function(){return this._hasMipmap?Math.floor(4*this._sizeInBytes/3):this._sizeInBytes}},_target:{get:function(){return this._textureTarget}}}),g.prototype.copyFrom=function(e){r.Z.defined("options",e);const t=(0,s.Z)(e.xOffset,0),i=(0,s.Z)(e.yOffset,0);if(r.Z.defined("options.source",e.source),h.Z.isDepthFormat(this._pixelFormat))throw new u.Z("Cannot call copyFrom when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL.");if(h.Z.isCompressedFormat(this._pixelFormat))throw new u.Z("Cannot call copyFrom with a compressed texture pixel format.");r.Z.typeOf.number.greaterThanOrEquals("xOffset",t,0),r.Z.typeOf.number.greaterThanOrEquals("yOffset",i,0),r.Z.typeOf.number.lessThanOrEquals("xOffset + options.source.width",t+e.source.width,this._width),r.Z.typeOf.number.lessThanOrEquals("yOffset + options.source.height",i+e.source.height,this._height);const n=e.source,o=this._context,c=o._gl,l=this._textureTarget;c.activeTexture(c.TEXTURE0),c.bindTexture(l,this._texture);const d=n.width,f=n.height;let m=n.arrayBufferView;const _=this._width,Z=this._height,g=this._internalFormat,y=this._pixelFormat,b=this._pixelDatatype,A=this._preMultiplyAlpha,w=this._flipY,v=(0,s.Z)(e.skipColorSpaceConversion,!1);let T=4;(0,a.Z)(m)&&(T=h.Z.alignmentInBytes(y,b,d)),c.pixelStorei(c.UNPACK_ALIGNMENT,T),v?c.pixelStorei(c.UNPACK_COLORSPACE_CONVERSION_WEBGL,c.NONE):c.pixelStorei(c.UNPACK_COLORSPACE_CONVERSION_WEBGL,c.BROWSER_DEFAULT_WEBGL);let C=!1;if(!this._initialized){if(0===t&&0===i&&d===_&&f===Z)(0,a.Z)(m)?(c.pixelStorei(c.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),c.pixelStorei(c.UNPACK_FLIP_Y_WEBGL,!1),w&&(m=h.Z.flipY(m,y,b,_,Z)),c.texImage2D(l,0,g,_,Z,0,y,p.Z.toWebGLConstant(b,o),m)):(c.pixelStorei(c.UNPACK_PREMULTIPLY_ALPHA_WEBGL,A),c.pixelStorei(c.UNPACK_FLIP_Y_WEBGL,w),c.texImage2D(l,0,g,y,p.Z.toWebGLConstant(b,o),n)),C=!0;else{c.pixelStorei(c.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),c.pixelStorei(c.UNPACK_FLIP_Y_WEBGL,!1);const e=h.Z.createTypedArray(y,b,_,Z);c.texImage2D(l,0,g,_,Z,0,y,p.Z.toWebGLConstant(b,o),e)}this._initialized=!0}C||((0,a.Z)(m)?(c.pixelStorei(c.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),c.pixelStorei(c.UNPACK_FLIP_Y_WEBGL,!1),w&&(m=h.Z.flipY(m,y,b,d,f)),c.texSubImage2D(l,0,t,i,d,f,y,p.Z.toWebGLConstant(b,o),m)):(c.pixelStorei(c.UNPACK_PREMULTIPLY_ALPHA_WEBGL,A),c.pixelStorei(c.UNPACK_FLIP_Y_WEBGL,w),c.texSubImage2D(l,0,t,i,y,p.Z.toWebGLConstant(b,o),n))),c.bindTexture(l,null)},g.prototype.copyFromFramebuffer=function(e,t,i,n,o,a){if(e=(0,s.Z)(e,0),t=(0,s.Z)(t,0),i=(0,s.Z)(i,0),n=(0,s.Z)(n,0),o=(0,s.Z)(o,this._width),a=(0,s.Z)(a,this._height),h.Z.isDepthFormat(this._pixelFormat))throw new u.Z("Cannot call copyFromFramebuffer when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL.");if(this._pixelDatatype===p.Z.FLOAT)throw new u.Z("Cannot call copyFromFramebuffer when the texture pixel data type is FLOAT.");if(this._pixelDatatype===p.Z.HALF_FLOAT)throw new u.Z("Cannot call copyFromFramebuffer when the texture pixel data type is HALF_FLOAT.");if(h.Z.isCompressedFormat(this._pixelFormat))throw new u.Z("Cannot call copyFrom with a compressed texture pixel format.");r.Z.typeOf.number.greaterThanOrEquals("xOffset",e,0),r.Z.typeOf.number.greaterThanOrEquals("yOffset",t,0),r.Z.typeOf.number.greaterThanOrEquals("framebufferXOffset",i,0),r.Z.typeOf.number.greaterThanOrEquals("framebufferYOffset",n,0),r.Z.typeOf.number.lessThanOrEquals("xOffset + width",e+o,this._width),r.Z.typeOf.number.lessThanOrEquals("yOffset + height",t+a,this._height);const c=this._context._gl,l=this._textureTarget;c.activeTexture(c.TEXTURE0),c.bindTexture(l,this._texture),c.copyTexSubImage2D(l,0,e,t,i,n,o,a),c.bindTexture(l,null),this._initialized=!0},g.prototype.generateMipmap=function(e){if(e=(0,s.Z)(e,f.Z.DONT_CARE),h.Z.isDepthFormat(this._pixelFormat))throw new u.Z("Cannot call generateMipmap when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL.");if(h.Z.isCompressedFormat(this._pixelFormat))throw new u.Z("Cannot call generateMipmap with a compressed pixel format.");if(this._width>1&&!l.Z.isPowerOfTwo(this._width))throw new u.Z("width must be a power of two to call generateMipmap().");if(this._height>1&&!l.Z.isPowerOfTwo(this._height))throw new u.Z("height must be a power of two to call generateMipmap().");if(!f.Z.validate(e))throw new u.Z("hint is invalid.");this._hasMipmap=!0;const t=this._context._gl,i=this._textureTarget;t.hint(t.GENERATE_MIPMAP_HINT,e),t.activeTexture(t.TEXTURE0),t.bindTexture(i,this._texture),t.generateMipmap(i),t.bindTexture(i,null)},g.prototype.isDestroyed=function(){return!1},g.prototype.destroy=function(){return this._context._gl.deleteTexture(this._texture),(0,c.Z)(this)};const y=g},688257:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(426468),r=i(54879);function o(){this._textures={},this._numberOfTextures=0,this._texturesToRelease={}}Object.defineProperties(o.prototype,{numberOfTextures:{get:function(){return this._numberOfTextures}}}),o.prototype.getTexture=function(e){const t=this._textures[e];if((0,n.Z)(t))return delete this._texturesToRelease[e],++t.count,t.texture},o.prototype.addTexture=function(e,t){const i={texture:t,count:1};t.finalDestroy=t.destroy;const n=this;t.destroy=function(){0==--i.count&&(n._texturesToRelease[e]=i)},this._textures[e]=i,++this._numberOfTextures},o.prototype.destroyReleasedTextures=function(){const e=this._texturesToRelease;for(const t in e)if(e.hasOwnProperty(t)){const i=e[t];delete this._textures[t],i.texture.finalDestroy(),--this._numberOfTextures}this._texturesToRelease={}},o.prototype.isDestroyed=function(){return!1},o.prototype.destroy=function(){const e=this._textures;for(const t in e)e.hasOwnProperty(t)&&e[t].texture.finalDestroy();return(0,r.Z)(this)};const s=o},59102:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(619287);const r={NEAREST:n.Z.NEAREST,LINEAR:n.Z.LINEAR,validate:function(e){return e===r.NEAREST||e===r.LINEAR}},o=Object.freeze(r)},636664:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(619287);const r={NEAREST:n.Z.NEAREST,LINEAR:n.Z.LINEAR,NEAREST_MIPMAP_NEAREST:n.Z.NEAREST_MIPMAP_NEAREST,LINEAR_MIPMAP_NEAREST:n.Z.LINEAR_MIPMAP_NEAREST,NEAREST_MIPMAP_LINEAR:n.Z.NEAREST_MIPMAP_LINEAR,LINEAR_MIPMAP_LINEAR:n.Z.LINEAR_MIPMAP_LINEAR,validate:function(e){return e===r.NEAREST||e===r.LINEAR||e===r.NEAREST_MIPMAP_NEAREST||e===r.LINEAR_MIPMAP_NEAREST||e===r.NEAREST_MIPMAP_LINEAR||e===r.LINEAR_MIPMAP_LINEAR}},o=Object.freeze(r)},655499:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(619287);const r={CLAMP_TO_EDGE:n.Z.CLAMP_TO_EDGE,REPEAT:n.Z.REPEAT,MIRRORED_REPEAT:n.Z.MIRRORED_REPEAT,validate:function(e){return e===r.CLAMP_TO_EDGE||e===r.REPEAT||e===r.MIRRORED_REPEAT}},o=Object.freeze(r)},634958:(e,t,i)=>{"use strict";i.d(t,{Z:()=>F});var n=i(152124),r=i(337968),o=i(919382),s=i(114754),a=i(698907),c=i(545125),u=i(406144),l=i(426468),h=i(253316),d=i(275949),f=i(362017),p=i(165373),m=i(583917),_=i(610490),Z=i(846264),g=i(358198),y=i(506678),b=i(826020);function A(){this.globeDepthTexture=void 0,this.gamma=void 0,this._viewport=new n.Z,this._viewportCartesian4=new s.Z,this._viewportDirty=!1,this._viewportOrthographicMatrix=m.Z.clone(m.Z.IDENTITY),this._viewportTransformation=m.Z.clone(m.Z.IDENTITY),this._model=m.Z.clone(m.Z.IDENTITY),this._view=m.Z.clone(m.Z.IDENTITY),this._inverseView=m.Z.clone(m.Z.IDENTITY),this._projection=m.Z.clone(m.Z.IDENTITY),this._infiniteProjection=m.Z.clone(m.Z.IDENTITY),this._entireFrustum=new r.Z,this._currentFrustum=new r.Z,this._frustumPlanes=new s.Z,this._farDepthFromNearPlusOne=void 0,this._log2FarDepthFromNearPlusOne=void 0,this._oneOverLog2FarDepthFromNearPlusOne=void 0,this._frameState=void 0,this._temeToPseudoFixed=p.Z.clone(m.Z.IDENTITY),this._view3DDirty=!0,this._view3D=new m.Z,this._inverseView3DDirty=!0,this._inverseView3D=new m.Z,this._inverseModelDirty=!0,this._inverseModel=new m.Z,this._inverseTransposeModelDirty=!0,this._inverseTransposeModel=new p.Z,this._viewRotation=new p.Z,this._inverseViewRotation=new p.Z,this._viewRotation3D=new p.Z,this._inverseViewRotation3D=new p.Z,this._inverseProjectionDirty=!0,this._inverseProjection=new m.Z,this._modelViewDirty=!0,this._modelView=new m.Z,this._modelView3DDirty=!0,this._modelView3D=new m.Z,this._modelViewRelativeToEyeDirty=!0,this._modelViewRelativeToEye=new m.Z,this._inverseModelViewDirty=!0,this._inverseModelView=new m.Z,this._inverseModelView3DDirty=!0,this._inverseModelView3D=new m.Z,this._viewProjectionDirty=!0,this._viewProjection=new m.Z,this._inverseViewProjectionDirty=!0,this._inverseViewProjection=new m.Z,this._modelViewProjectionDirty=!0,this._modelViewProjection=new m.Z,this._inverseModelViewProjectionDirty=!0,this._inverseModelViewProjection=new m.Z,this._modelViewProjectionRelativeToEyeDirty=!0,this._modelViewProjectionRelativeToEye=new m.Z,this._modelViewInfiniteProjectionDirty=!0,this._modelViewInfiniteProjection=new m.Z,this._normalDirty=!0,this._normal=new p.Z,this._normal3DDirty=!0,this._normal3D=new p.Z,this._inverseNormalDirty=!0,this._inverseNormal=new p.Z,this._inverseNormal3DDirty=!0,this._inverseNormal3D=new p.Z,this._encodedCameraPositionMCDirty=!0,this._encodedCameraPositionMC=new d.Z,this._cameraPosition=new o.Z,this._sunPositionWC=new o.Z,this._sunPositionColumbusView=new o.Z,this._sunDirectionWC=new o.Z,this._sunDirectionEC=new o.Z,this._moonDirectionEC=new o.Z,this._lightDirectionWC=new o.Z,this._lightDirectionEC=new o.Z,this._lightColor=new o.Z,this._lightColorHdr=new o.Z,this._pass=void 0,this._mode=void 0,this._mapProjection=void 0,this._ellipsoid=void 0,this._cameraDirection=new o.Z,this._cameraRight=new o.Z,this._cameraUp=new o.Z,this._frustum2DWidth=0,this._eyeHeight=0,this._eyeHeight2D=new r.Z,this._pixelRatio=1,this._orthographicIn3D=!1,this._backgroundColor=new c.Z,this._brdfLut=void 0,this._environmentMap=void 0,this._sphericalHarmonicCoefficients=void 0,this._specularEnvironmentMaps=void 0,this._specularEnvironmentMapsDimensions=new r.Z,this._specularEnvironmentMapsMaximumLOD=void 0,this._fogDensity=void 0,this._invertClassificationColor=void 0,this._imagerySplitPosition=0,this._pixelSizePerMeter=void 0,this._geometricToleranceOverMeter=void 0,this._minimumDisableDepthTestDistance=void 0}Object.defineProperties(A.prototype,{frameState:{get:function(){return this._frameState}},viewport:{get:function(){return this._viewport},set:function(e){if(!n.Z.equals(e,this._viewport)){n.Z.clone(e,this._viewport);const t=this._viewport,i=this._viewportCartesian4;i.x=t.x,i.y=t.y,i.z=t.width,i.w=t.height,this._viewportDirty=!0}}},viewportCartesian4:{get:function(){return this._viewportCartesian4}},viewportOrthographic:{get:function(){return E(this),this._viewportOrthographicMatrix}},viewportTransformation:{get:function(){return E(this),this._viewportTransformation}},model:{get:function(){return this._model},set:function(e){m.Z.clone(e,this._model),this._modelView3DDirty=!0,this._inverseModelView3DDirty=!0,this._inverseModelDirty=!0,this._inverseTransposeModelDirty=!0,this._modelViewDirty=!0,this._inverseModelViewDirty=!0,this._modelViewRelativeToEyeDirty=!0,this._inverseModelViewDirty=!0,this._modelViewProjectionDirty=!0,this._inverseModelViewProjectionDirty=!0,this._modelViewProjectionRelativeToEyeDirty=!0,this._modelViewInfiniteProjectionDirty=!0,this._normalDirty=!0,this._inverseNormalDirty=!0,this._normal3DDirty=!0,this._inverseNormal3DDirty=!0,this._encodedCameraPositionMCDirty=!0}},inverseModel:{get:function(){return this._inverseModelDirty&&(this._inverseModelDirty=!1,m.Z.inverse(this._model,this._inverseModel)),this._inverseModel}},inverseTransposeModel:{get:function(){const e=this._inverseTransposeModel;return this._inverseTransposeModelDirty&&(this._inverseTransposeModelDirty=!1,m.Z.getMatrix3(this.inverseModel,e),p.Z.transpose(e,e)),e}},view:{get:function(){return this._view}},view3D:{get:function(){return L(this),this._view3D}},viewRotation:{get:function(){return L(this),this._viewRotation}},viewRotation3D:{get:function(){return L(this),this._viewRotation3D}},inverseView:{get:function(){return this._inverseView}},inverseView3D:{get:function(){return N(this),this._inverseView3D}},inverseViewRotation:{get:function(){return this._inverseViewRotation}},inverseViewRotation3D:{get:function(){return N(this),this._inverseViewRotation3D}},projection:{get:function(){return this._projection}},inverseProjection:{get:function(){var e;return(e=this)._inverseProjectionDirty&&(e._inverseProjectionDirty=!1,e._mode===y.Z.SCENE2D||e._mode===y.Z.MORPHING||e._orthographicIn3D?m.Z.clone(m.Z.ZERO,e._inverseProjection):m.Z.inverse(e._projection,e._inverseProjection)),this._inverseProjection}},infiniteProjection:{get:function(){return this._infiniteProjection}},modelView:{get:function(){var e;return(e=this)._modelViewDirty&&(e._modelViewDirty=!1,m.Z.multiplyTransformation(e._view,e._model,e._modelView)),this._modelView}},modelView3D:{get:function(){var e;return(e=this)._modelView3DDirty&&(e._modelView3DDirty=!1,m.Z.multiplyTransformation(e.view3D,e._model,e._modelView3D)),this._modelView3D}},modelViewRelativeToEye:{get:function(){return function(e){if(e._modelViewRelativeToEyeDirty){e._modelViewRelativeToEyeDirty=!1;const t=e.modelView,i=e._modelViewRelativeToEye;i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3],i[4]=t[4],i[5]=t[5],i[6]=t[6],i[7]=t[7],i[8]=t[8],i[9]=t[9],i[10]=t[10],i[11]=t[11],i[12]=0,i[13]=0,i[14]=0,i[15]=t[15]}}(this),this._modelViewRelativeToEye}},inverseModelView:{get:function(){var e;return(e=this)._inverseModelViewDirty&&(e._inverseModelViewDirty=!1,m.Z.inverse(e.modelView,e._inverseModelView)),this._inverseModelView}},inverseModelView3D:{get:function(){var e;return(e=this)._inverseModelView3DDirty&&(e._inverseModelView3DDirty=!1,m.Z.inverse(e.modelView3D,e._inverseModelView3D)),this._inverseModelView3D}},viewProjection:{get:function(){var e;return(e=this)._viewProjectionDirty&&(e._viewProjectionDirty=!1,m.Z.multiply(e._projection,e._view,e._viewProjection)),this._viewProjection}},inverseViewProjection:{get:function(){var e;return(e=this)._inverseViewProjectionDirty&&(e._inverseViewProjectionDirty=!1,m.Z.inverse(e.viewProjection,e._inverseViewProjection)),this._inverseViewProjection}},modelViewProjection:{get:function(){var e;return(e=this)._modelViewProjectionDirty&&(e._modelViewProjectionDirty=!1,m.Z.multiply(e._projection,e.modelView,e._modelViewProjection)),this._modelViewProjection}},inverseModelViewProjection:{get:function(){var e;return(e=this)._inverseModelViewProjectionDirty&&(e._inverseModelViewProjectionDirty=!1,m.Z.inverse(e.modelViewProjection,e._inverseModelViewProjection)),this._inverseModelViewProjection}},modelViewProjectionRelativeToEye:{get:function(){var e;return(e=this)._modelViewProjectionRelativeToEyeDirty&&(e._modelViewProjectionRelativeToEyeDirty=!1,m.Z.multiply(e._projection,e.modelViewRelativeToEye,e._modelViewProjectionRelativeToEye)),this._modelViewProjectionRelativeToEye}},modelViewInfiniteProjection:{get:function(){var e;return(e=this)._modelViewInfiniteProjectionDirty&&(e._modelViewInfiniteProjectionDirty=!1,m.Z.multiply(e._infiniteProjection,e.modelView,e._modelViewInfiniteProjection)),this._modelViewInfiniteProjection}},normal:{get:function(){return function(e){if(e._normalDirty){e._normalDirty=!1;const t=e._normal;m.Z.getMatrix3(e.inverseModelView,t),p.Z.getRotation(t,t),p.Z.transpose(t,t)}}(this),this._normal}},normal3D:{get:function(){return function(e){if(e._normal3DDirty){e._normal3DDirty=!1;const t=e._normal3D;m.Z.getMatrix3(e.inverseModelView3D,t),p.Z.getRotation(t,t),p.Z.transpose(t,t)}}(this),this._normal3D}},inverseNormal:{get:function(){var e;return(e=this)._inverseNormalDirty&&(e._inverseNormalDirty=!1,m.Z.getMatrix3(e.inverseModelView,e._inverseNormal),p.Z.getRotation(e._inverseNormal,e._inverseNormal)),this._inverseNormal}},inverseNormal3D:{get:function(){var e;return(e=this)._inverseNormal3DDirty&&(e._inverseNormal3DDirty=!1,m.Z.getMatrix3(e.inverseModelView3D,e._inverseNormal3D),p.Z.getRotation(e._inverseNormal3D,e._inverseNormal3D)),this._inverseNormal3D}},entireFrustum:{get:function(){return this._entireFrustum}},currentFrustum:{get:function(){return this._currentFrustum}},frustumPlanes:{get:function(){return this._frustumPlanes}},farDepthFromNearPlusOne:{get:function(){return this._farDepthFromNearPlusOne}},log2FarDepthFromNearPlusOne:{get:function(){return this._log2FarDepthFromNearPlusOne}},oneOverLog2FarDepthFromNearPlusOne:{get:function(){return this._oneOverLog2FarDepthFromNearPlusOne}},eyeHeight:{get:function(){return this._eyeHeight}},eyeHeight2D:{get:function(){return this._eyeHeight2D}},sunPositionWC:{get:function(){return this._sunPositionWC}},sunPositionColumbusView:{get:function(){return this._sunPositionColumbusView}},sunDirectionWC:{get:function(){return this._sunDirectionWC}},sunDirectionEC:{get:function(){return this._sunDirectionEC}},moonDirectionEC:{get:function(){return this._moonDirectionEC}},lightDirectionWC:{get:function(){return this._lightDirectionWC}},lightDirectionEC:{get:function(){return this._lightDirectionEC}},lightColor:{get:function(){return this._lightColor}},lightColorHdr:{get:function(){return this._lightColorHdr}},encodedCameraPositionMCHigh:{get:function(){return S(this),this._encodedCameraPositionMC.high}},encodedCameraPositionMCLow:{get:function(){return S(this),this._encodedCameraPositionMC.low}},temeToPseudoFixedMatrix:{get:function(){return this._temeToPseudoFixed}},pixelRatio:{get:function(){return this._pixelRatio}},fogDensity:{get:function(){return this._fogDensity}},geometricToleranceOverMeter:{get:function(){return this._geometricToleranceOverMeter}},pass:{get:function(){return this._pass}},backgroundColor:{get:function(){return this._backgroundColor}},brdfLut:{get:function(){return this._brdfLut}},environmentMap:{get:function(){return this._environmentMap}},sphericalHarmonicCoefficients:{get:function(){return this._sphericalHarmonicCoefficients}},specularEnvironmentMaps:{get:function(){return this._specularEnvironmentMaps}},specularEnvironmentMapsDimensions:{get:function(){return this._specularEnvironmentMapsDimensions}},specularEnvironmentMapsMaximumLOD:{get:function(){return this._specularEnvironmentMapsMaximumLOD}},imagerySplitPosition:{get:function(){return this._imagerySplitPosition}},minimumDisableDepthTestDistance:{get:function(){return this._minimumDisableDepthTestDistance}},invertClassificationColor:{get:function(){return this._invertClassificationColor}},orthographicIn3D:{get:function(){return this._orthographicIn3D}},ellipsoid:{get:function(){return(0,u.Z)(this._ellipsoid,h.Z.WGS84)}}});let w=new p.Z;const v=new a.Z;A.prototype.updateCamera=function(e){var t,i;t=this,i=e.viewMatrix,m.Z.clone(i,t._view),m.Z.getMatrix3(i,t._viewRotation),t._view3DDirty=!0,t._inverseView3DDirty=!0,t._modelViewDirty=!0,t._modelView3DDirty=!0,t._modelViewRelativeToEyeDirty=!0,t._inverseModelViewDirty=!0,t._inverseModelView3DDirty=!0,t._viewProjectionDirty=!0,t._inverseViewProjectionDirty=!0,t._modelViewProjectionDirty=!0,t._modelViewProjectionRelativeToEyeDirty=!0,t._modelViewInfiniteProjectionDirty=!0,t._normalDirty=!0,t._inverseNormalDirty=!0,t._normal3DDirty=!0,t._inverseNormal3DDirty=!0,function(e,t){m.Z.clone(t,e._inverseView),m.Z.getMatrix3(t,e._inverseViewRotation)}(this,e.inverseViewMatrix),function(e,t){o.Z.clone(t.positionWC,e._cameraPosition),o.Z.clone(t.directionWC,e._cameraDirection),o.Z.clone(t.rightWC,e._cameraRight),o.Z.clone(t.upWC,e._cameraUp);const i=t.positionCartographic;(0,l.Z)(i)?e._eyeHeight=i.height:e._eyeHeight=-e._ellipsoid.maximumRadius,e._encodedCameraPositionMCDirty=!0}(this,e),this._entireFrustum.x=e.frustum.near,this._entireFrustum.y=e.frustum.far,this.updateFrustum(e.frustum),this._orthographicIn3D=this._mode!==y.Z.SCENE2D&&e.frustum instanceof _.Z},A.prototype.updateFrustum=function(e){var t,i;t=this,i=e.projectionMatrix,m.Z.clone(i,t._projection),t._inverseProjectionDirty=!0,t._viewProjectionDirty=!0,t._inverseViewProjectionDirty=!0,t._modelViewProjectionDirty=!0,t._modelViewProjectionRelativeToEyeDirty=!0,(0,l.Z)(e.infiniteProjectionMatrix)&&function(e,t){m.Z.clone(t,e._infiniteProjection),e._modelViewInfiniteProjectionDirty=!0}(this,e.infiniteProjectionMatrix),this._currentFrustum.x=e.near,this._currentFrustum.y=e.far,this._farDepthFromNearPlusOne=e.far-e.near+1,this._log2FarDepthFromNearPlusOne=f.Z.log2(this._farDepthFromNearPlusOne),this._oneOverLog2FarDepthFromNearPlusOne=1/this._log2FarDepthFromNearPlusOne,(0,l.Z)(e._offCenterFrustum)&&(e=e._offCenterFrustum),this._frustumPlanes.x=e.top,this._frustumPlanes.y=e.bottom,this._frustumPlanes.z=e.left,this._frustumPlanes.w=e.right},A.prototype.updatePass=function(e){this._pass=e};const T=[],C=new b.Z;function E(e){if(e._viewportDirty){const t=e._viewport;m.Z.computeOrthographicOffCenter(t.x,t.x+t.width,t.y,t.y+t.height,0,1,e._viewportOrthographicMatrix),m.Z.computeViewportTransformation(t,0,1,e._viewportTransformation),e._viewportDirty=!1}}A.prototype.update=function(e){this._mode=e.mode,this._mapProjection=e.mapProjection,this._ellipsoid=e.mapProjection.ellipsoid,this._pixelRatio=e.pixelRatio;const t=e.camera;this.updateCamera(t),e.mode===y.Z.SCENE2D?(this._frustum2DWidth=t.frustum.right-t.frustum.left,this._eyeHeight2D.x=.5*this._frustum2DWidth,this._eyeHeight2D.y=this._eyeHeight2D.x*this._eyeHeight2D.x):(this._frustum2DWidth=0,this._eyeHeight2D.x=0,this._eyeHeight2D.y=0),function(e,t){(0,l.Z)(g.Z.computeIcrfToFixedMatrix(t.time,w))||(w=g.Z.computeTemeToPseudoFixedMatrix(t.time,w));let i=Z.Z.computeSunPositionInEarthInertialFrame(t.time,e._sunPositionWC);p.Z.multiplyByVector(w,i,i),o.Z.normalize(i,e._sunDirectionWC),i=p.Z.multiplyByVector(e.viewRotation3D,i,e._sunDirectionEC),o.Z.normalize(i,i),i=Z.Z.computeMoonPositionInEarthInertialFrame(t.time,e._moonDirectionEC),p.Z.multiplyByVector(w,i,i),p.Z.multiplyByVector(e.viewRotation3D,i,i),o.Z.normalize(i,i);const n=t.mapProjection,r=n.ellipsoid.cartesianToCartographic(e._sunPositionWC,v);n.project(r,e._sunPositionColumbusView)}(this,e);const i=(0,u.Z)(e.light,C);i instanceof b.Z?(this._lightDirectionWC=o.Z.clone(this._sunDirectionWC,this._lightDirectionWC),this._lightDirectionEC=o.Z.clone(this._sunDirectionEC,this._lightDirectionEC)):(this._lightDirectionWC=o.Z.normalize(o.Z.negate(i.direction,this._lightDirectionWC),this._lightDirectionWC),this._lightDirectionEC=p.Z.multiplyByVector(this.viewRotation3D,this._lightDirectionWC,this._lightDirectionEC));const n=i.color;let s=o.Z.fromElements(n.red,n.green,n.blue,this._lightColorHdr);s=o.Z.multiplyByScalar(s,i.intensity,s);const a=o.Z.maximumComponent(s);a>1?o.Z.divideByScalar(s,a,this._lightColor):o.Z.clone(s,this._lightColor);const h=e.brdfLutGenerator,d=(0,l.Z)(h)?h.colorTexture:void 0;this._brdfLut=d,this._environmentMap=(0,u.Z)(e.environmentMap,e.context.defaultCubeMap),this._sphericalHarmonicCoefficients=(0,u.Z)(e.sphericalHarmonicCoefficients,T),this._specularEnvironmentMaps=e.specularEnvironmentMaps,this._specularEnvironmentMapsMaximumLOD=e.specularEnvironmentMapsMaximumLOD,(0,l.Z)(this._specularEnvironmentMaps)&&r.Z.clone(this._specularEnvironmentMaps.dimensions,this._specularEnvironmentMapsDimensions),this._fogDensity=e.fog.density,this._invertClassificationColor=e.invertClassificationColor,this._frameState=e,this._temeToPseudoFixed=g.Z.computeTemeToPseudoFixedMatrix(e.time,this._temeToPseudoFixed),this._imagerySplitPosition=e.imagerySplitPosition*e.context.drawingBufferWidth;const f=t.frustum.fov,m=this._viewport;let _;_=(0,l.Z)(f)?m.height>m.width?2*Math.tan(.5*f)/m.height:2*Math.tan(.5*f)/m.width:1/Math.max(m.width,m.height),this._geometricToleranceOverMeter=_*e.maximumScreenSpaceError,c.Z.clone(e.backgroundColor,this._backgroundColor),this._minimumDisableDepthTestDistance=e.minimumDisableDepthTestDistance,this._minimumDisableDepthTestDistance*=this._minimumDisableDepthTestDistance,this._minimumDisableDepthTestDistance===Number.POSITIVE_INFINITY&&(this._minimumDisableDepthTestDistance=-1)};const x=new o.Z;function S(e){e._encodedCameraPositionMCDirty&&(e._encodedCameraPositionMCDirty=!1,m.Z.multiplyByPoint(e.inverseModel,e._cameraPosition,x),d.Z.fromCartesian(x,e._encodedCameraPositionMC))}const O=new o.Z,I=new o.Z,D=new o.Z,P=new o.Z,R=new a.Z,B=new o.Z,M=new m.Z;function L(e){e._view3DDirty&&(e._mode===y.Z.SCENE3D?m.Z.clone(e._view,e._view3D):function(e,t,i,n,r,s,a,c){const u=O;u.x=e.y,u.y=e.z,u.z=e.x;const h=I;h.x=i.y,h.y=i.z,h.z=i.x;const d=D;d.x=n.y,d.y=n.z,d.z=n.x;const p=P;p.x=t.y,p.y=t.z,p.z=t.x,s===y.Z.SCENE2D&&(u.z=.5*r);const _=a.unproject(u,R);_.longitude=f.Z.clamp(_.longitude,-Math.PI,Math.PI),_.latitude=f.Z.clamp(_.latitude,-f.Z.PI_OVER_TWO,f.Z.PI_OVER_TWO);const Z=a.ellipsoid,b=Z.cartographicToCartesian(_,B),A=g.Z.eastNorthUpToFixedFrame(b,Z,M);m.Z.multiplyByPointAsVector(A,h,h),m.Z.multiplyByPointAsVector(A,d,d),m.Z.multiplyByPointAsVector(A,p,p),(0,l.Z)(c)||(c=new m.Z),c[0]=h.x,c[1]=d.x,c[2]=-p.x,c[3]=0,c[4]=h.y,c[5]=d.y,c[6]=-p.y,c[7]=0,c[8]=h.z,c[9]=d.z,c[10]=-p.z,c[11]=0,c[12]=-o.Z.dot(h,b),c[13]=-o.Z.dot(d,b),c[14]=o.Z.dot(p,b),c[15]=1}(e._cameraPosition,e._cameraDirection,e._cameraRight,e._cameraUp,e._frustum2DWidth,e._mode,e._mapProjection,e._view3D),m.Z.getMatrix3(e._view3D,e._viewRotation3D),e._view3DDirty=!1)}function N(e){e._inverseView3DDirty&&(m.Z.inverseTransformation(e.view3D,e._inverseView3D),m.Z.getMatrix3(e._inverseView3D,e._inverseViewRotation3D),e._inverseView3DDirty=!1)}const F=A},676311:(e,t,i)=>{"use strict";i.d(t,{Z:()=>A});var n=i(357299),r=i(997274),o=i(406144),s=i(426468),a=i(54879),c=i(446938),u=i(915067),l=i(546135),h=i(362017),d=i(50128),f=i(636807),p=i(50720),m=i(994589);function _(e,t,i,n){const a=(0,s.Z)(t.vertexBuffer),u=(0,s.Z)(t.value),l=t.value?t.value.length:t.componentsPerAttribute;if(!a&&!u)throw new c.Z("attribute must have a vertexBuffer or a value.");if(a&&u)throw new c.Z("attribute cannot have both a vertexBuffer and a value. It must have either a vertexBuffer property defining per-vertex data or a value property defining data for all vertices.");if(1!==l&&2!==l&&3!==l&&4!==l){if(u)throw new c.Z("attribute.value.length must be in the range [1, 4].");throw new c.Z("attribute.componentsPerAttribute must be in the range [1, 4].")}if((0,s.Z)(t.componentDatatype)&&!r.Z.validate(t.componentDatatype))throw new c.Z("attribute must have a valid componentDatatype or not specify it.");if((0,s.Z)(t.strideInBytes)&&t.strideInBytes>255)throw new c.Z("attribute must have a strideInBytes less than or equal to 255 or not specify it.");if((0,s.Z)(t.instanceDivisor)&&t.instanceDivisor>0&&!n.instancedArrays)throw new c.Z("instanced arrays is not supported");if((0,s.Z)(t.instanceDivisor)&&t.instanceDivisor<0)throw new c.Z("attribute must have an instanceDivisor greater than or equal to zero");if((0,s.Z)(t.instanceDivisor)&&u)throw new c.Z("attribute cannot have have an instanceDivisor if it is not backed by a buffer");if((0,s.Z)(t.instanceDivisor)&&t.instanceDivisor>0&&0===t.index)throw new c.Z("attribute zero cannot have an instanceDivisor greater than 0");const h={index:(0,o.Z)(t.index,i),enabled:(0,o.Z)(t.enabled,!0),vertexBuffer:t.vertexBuffer,value:u?t.value.slice(0):void 0,componentsPerAttribute:l,componentDatatype:(0,o.Z)(t.componentDatatype,r.Z.FLOAT),normalize:(0,o.Z)(t.normalize,!1),offsetInBytes:(0,o.Z)(t.offsetInBytes,0),strideInBytes:(0,o.Z)(t.strideInBytes,0),instanceDivisor:(0,o.Z)(t.instanceDivisor,0)};if(a)h.vertexAttrib=function(e){const t=this.index;e.bindBuffer(e.ARRAY_BUFFER,this.vertexBuffer._getBuffer()),e.vertexAttribPointer(t,this.componentsPerAttribute,this.componentDatatype,this.normalize,this.strideInBytes,this.offsetInBytes),e.enableVertexAttribArray(t),this.instanceDivisor>0&&(n.glVertexAttribDivisor(t,this.instanceDivisor),n._vertexAttribDivisors[t]=this.instanceDivisor,n._previousDrawInstanced=!0)},h.disableVertexAttribArray=function(e){e.disableVertexAttribArray(this.index),this.instanceDivisor>0&&n.glVertexAttribDivisor(i,0)};else{switch(h.componentsPerAttribute){case 1:h.vertexAttrib=function(e){e.vertexAttrib1fv(this.index,this.value)};break;case 2:h.vertexAttrib=function(e){e.vertexAttrib2fv(this.index,this.value)};break;case 3:h.vertexAttrib=function(e){e.vertexAttrib3fv(this.index,this.value)};break;case 4:h.vertexAttrib=function(e){e.vertexAttrib4fv(this.index,this.value)}}h.disableVertexAttribArray=function(e){}}e.push(h)}function Z(e,t,i){for(let i=0;i0&&(f=!0),(0,s.Z)(h[l].value)&&(p=!0);const g={};for(l=0;l0)for(a=y(e[o[0]]),t=1;t0){const s=r.Z.getSizeInBytes(e[o[0]].componentDatatype),h=u%s;0!==h&&(u+=s-h);const d=new ArrayBuffer(a*u),f={};for(t=0;t=h.Z.SIXTY_FOUR_KILOBYTES&&t.elementIndexUint?f.Z.createIndexBuffer({context:t,typedArray:new Uint32Array(E),usage:a,indexDatatype:l.Z.UNSIGNED_INT}):f.Z.createIndexBuffer({context:t,typedArray:new Uint16Array(E),usage:a,indexDatatype:l.Z.UNSIGNED_SHORT})),new g({context:t,attributes:v,indexBuffer:C})},Object.defineProperties(g.prototype,{numberOfAttributes:{get:function(){return this._attributes.length}},numberOfVertices:{get:function(){return this._numberOfVertices}},indexBuffer:{get:function(){return this._indexBuffer}}}),g.prototype.getAttribute=function(e){return n.Z.defined("index",e),this._attributes[e]},g.prototype._bind=function(){(0,s.Z)(this._vao)?(this._context.glBindVertexArray(this._vao),this._context.instancedArrays&&function(e){const t=e._context,i=e._hasInstancedAttributes;if(!i&&!t._previousDrawInstanced)return;t._previousDrawInstanced=i;const n=t._vertexAttribDivisors,r=e._attributes,o=m.Z.maximumVertexAttributes;let s;if(i){const e=r.length;for(s=0;s0&&(t.glVertexAttribDivisor(s,0),n[s]=0)}(this),this._hasConstantAttributes&&function(e,t){const i=e._attributes,n=i.length;for(let e=0;e{"use strict";i.d(t,{Z:()=>g});var n=i(357299),r=i(997274),o=i(406144),s=i(426468),a=i(54879),c=i(446938),u=i(362017),l=i(636807),h=i(50720),d=i(676311);function f(e,t,i,a){if(n.Z.defined("context",e),!t||0===t.length)throw new c.Z("At least one attribute is required.");const u=f._verifyAttributes(t);i=(0,o.Z)(i,0);const l=[],h={};let d,p;const m=u.length;for(let e=0;e0?r.Z.getSizeInBytes(e[0].componentDatatype):0,o=n>0?t%n:0;return t+=0===o?0:n-o,t},f._createArrayViews=function(e,t){const i=[];let n=0;const o=e.length;for(let s=0;s0){const i=new ArrayBuffer(t*e.vertexSizeInBytes);if((0,s.Z)(e.arrayBuffer)){const t=new Uint8Array(i),n=new Uint8Array(e.arrayBuffer),r=n.length;for(let e=0;e0){t.needsCommit=!1;const i=t.vertexBuffer,n=e._size*t.vertexSizeInBytes,r=(0,s.Z)(i);if(!r||i.sizeInBytes0){const n=e.vertexSizeInBytes*t,r=e.vertexSizeInBytes*i;e.vertexBuffer.copyFromArrayView(new Uint8Array(e.arrayBuffer,n,r),n)}}function Z(e){const t=e.va;if(!(0,s.Z)(t))return;const i=t.length;for(let e=0;e=this._size)throw new c.Z("offsetInVertices must be greater than or equal to zero and less than the vertex array size.");if(e+t>this._size)throw new c.Z("offsetInVertices + lengthInVertices cannot exceed the vertex array size.");const i=this._allBuffers;for(let n=0,r=i.length;n{"use strict";i.d(t,{Z:()=>S});var n=i(337968),r=i(919382),o=i(114754),s=i(545125),a=i(426468),c=i(446938),u=i(631145),l=i(165373),h=i(583917),d=i(50128);function f(e,t,i,n){this.name=i,this.value=void 0,this._value=0,this._gl=e,this._location=n}function p(e,t,i,r){this.name=i,this.value=void 0,this._value=new n.Z,this._gl=e,this._location=r}function m(e,t,i,n){this.name=i,this.value=void 0,this._value=void 0,this._gl=e,this._location=n}function _(e,t,i,n){this.name=i,this.value=void 0,this._value=void 0,this._gl=e,this._location=n}function Z(e,t,i,n){this.name=i,this.value=void 0,this._gl=e,this._location=n,this.textureUnitIndex=void 0}function g(e,t,i,n){this.name=i,this.value=void 0,this._value=0,this._gl=e,this._location=n}function y(e,t,i,r){this.name=i,this.value=void 0,this._value=new n.Z,this._gl=e,this._location=r}function b(e,t,i,n){this.name=i,this.value=void 0,this._value=new r.Z,this._gl=e,this._location=n}function A(e,t,i,n){this.name=i,this.value=void 0,this._value=new o.Z,this._gl=e,this._location=n}f.prototype.set=function(){this.value!==this._value&&(this._value=this.value,this._gl.uniform1f(this._location,this.value))},p.prototype.set=function(){const e=this.value;n.Z.equals(e,this._value)||(n.Z.clone(e,this._value),this._gl.uniform2f(this._location,e.x,e.y))},m.prototype.set=function(){const e=this.value;if((0,a.Z)(e.red))s.Z.equals(e,this._value)||(this._value=s.Z.clone(e,this._value),this._gl.uniform3f(this._location,e.red,e.green,e.blue));else{if(!(0,a.Z)(e.x))throw new c.Z('Invalid vec3 value for uniform "'+this.name+'".');r.Z.equals(e,this._value)||(this._value=r.Z.clone(e,this._value),this._gl.uniform3f(this._location,e.x,e.y,e.z))}},_.prototype.set=function(){const e=this.value;if((0,a.Z)(e.red))s.Z.equals(e,this._value)||(this._value=s.Z.clone(e,this._value),this._gl.uniform4f(this._location,e.red,e.green,e.blue,e.alpha));else{if(!(0,a.Z)(e.x))throw new c.Z('Invalid vec4 value for uniform "'+this.name+'".');o.Z.equals(e,this._value)||(this._value=o.Z.clone(e,this._value),this._gl.uniform4f(this._location,e.x,e.y,e.z,e.w))}},Z.prototype.set=function(){const e=this._gl;e.activeTexture(e.TEXTURE0+this.textureUnitIndex);const t=this.value;e.bindTexture(t._target,t._texture)},Z.prototype._setSampler=function(e){return this.textureUnitIndex=e,this._gl.uniform1i(this._location,e),e+1},g.prototype.set=function(){this.value!==this._value&&(this._value=this.value,this._gl.uniform1i(this._location,this.value))},y.prototype.set=function(){const e=this.value;n.Z.equals(e,this._value)||(n.Z.clone(e,this._value),this._gl.uniform2i(this._location,e.x,e.y))},b.prototype.set=function(){const e=this.value;r.Z.equals(e,this._value)||(r.Z.clone(e,this._value),this._gl.uniform3i(this._location,e.x,e.y,e.z))},A.prototype.set=function(){const e=this.value;o.Z.equals(e,this._value)||(o.Z.clone(e,this._value),this._gl.uniform4i(this._location,e.x,e.y,e.z,e.w))};const w=new Float32Array(4);function v(e,t,i,n){this.name=i,this.value=void 0,this._value=new u.Z,this._gl=e,this._location=n}v.prototype.set=function(){if(!u.Z.equalsArray(this.value,this._value,0)){u.Z.clone(this.value,this._value);const e=u.Z.toArray(this.value,w);this._gl.uniformMatrix2fv(this._location,!1,e)}};const T=new Float32Array(9);function C(e,t,i,n){this.name=i,this.value=void 0,this._value=new l.Z,this._gl=e,this._location=n}C.prototype.set=function(){if(!l.Z.equalsArray(this.value,this._value,0)){l.Z.clone(this.value,this._value);const e=l.Z.toArray(this.value,T);this._gl.uniformMatrix3fv(this._location,!1,e)}};const E=new Float32Array(16);function x(e,t,i,n){this.name=i,this.value=void 0,this._value=new h.Z,this._gl=e,this._location=n}x.prototype.set=function(){if(!h.Z.equalsArray(this.value,this._value,0)){h.Z.clone(this.value,this._value);const e=h.Z.toArray(this.value,E);this._gl.uniformMatrix4fv(this._location,!1,e)}};const S=function(e,t,i,n){switch(t.type){case e.FLOAT:return new f(e,t,i,n);case e.FLOAT_VEC2:return new p(e,t,i,n);case e.FLOAT_VEC3:return new m(e,t,i,n);case e.FLOAT_VEC4:return new _(e,t,i,n);case e.SAMPLER_2D:case e.SAMPLER_CUBE:return new Z(e,t,i,n);case e.INT:case e.BOOL:return new g(e,t,i,n);case e.INT_VEC2:case e.BOOL_VEC2:return new y(e,t,i,n);case e.INT_VEC3:case e.BOOL_VEC3:return new b(e,t,i,n);case e.INT_VEC4:case e.BOOL_VEC4:return new A(e,t,i,n);case e.FLOAT_MAT2:return new v(e,t,i,n);case e.FLOAT_MAT3:return new C(e,t,i,n);case e.FLOAT_MAT4:return new x(e,t,i,n);default:throw new d.Z("Unrecognized uniform type: "+t.type+' for uniform "'+i+'".')}}},29448:(e,t,i)=>{"use strict";i.d(t,{Z:()=>C});var n=i(337968),r=i(919382),o=i(114754),s=i(545125),a=i(426468),c=i(446938),u=i(631145),l=i(165373),h=i(583917),d=i(50128);function f(e,t,i,n){const r=n.length;this.name=i,this.value=new Array(r),this._value=new Float32Array(r),this._gl=e,this._location=n[0]}function p(e,t,i,n){const r=n.length;this.name=i,this.value=new Array(r),this._value=new Float32Array(2*r),this._gl=e,this._location=n[0]}function m(e,t,i,n){const r=n.length;this.name=i,this.value=new Array(r),this._value=new Float32Array(3*r),this._gl=e,this._location=n[0]}function _(e,t,i,n){const r=n.length;this.name=i,this.value=new Array(r),this._value=new Float32Array(4*r),this._gl=e,this._location=n[0]}function Z(e,t,i,n){const r=n.length;this.name=i,this.value=new Array(r),this._value=new Float32Array(r),this._gl=e,this._locations=n,this.textureUnitIndex=void 0}function g(e,t,i,n){const r=n.length;this.name=i,this.value=new Array(r),this._value=new Int32Array(r),this._gl=e,this._location=n[0]}function y(e,t,i,n){const r=n.length;this.name=i,this.value=new Array(r),this._value=new Int32Array(2*r),this._gl=e,this._location=n[0]}function b(e,t,i,n){const r=n.length;this.name=i,this.value=new Array(r),this._value=new Int32Array(3*r),this._gl=e,this._location=n[0]}function A(e,t,i,n){const r=n.length;this.name=i,this.value=new Array(r),this._value=new Int32Array(4*r),this._gl=e,this._location=n[0]}function w(e,t,i,n){const r=n.length;this.name=i,this.value=new Array(r),this._value=new Float32Array(4*r),this._gl=e,this._location=n[0]}function v(e,t,i,n){const r=n.length;this.name=i,this.value=new Array(r),this._value=new Float32Array(9*r),this._gl=e,this._location=n[0]}function T(e,t,i,n){const r=n.length;this.name=i,this.value=new Array(r),this._value=new Float32Array(16*r),this._gl=e,this._location=n[0]}f.prototype.set=function(){const e=this.value,t=e.length,i=this._value;let n=!1;for(let r=0;r{"use strict";i.d(t,{Z:()=>u});var n=i(357299),r=i(426468),o=i(446938),s=i(795788),a=i(527758),c=i(161842);const u=function(e,t,i){if(n.Z.defined("context",e),!((0,r.Z)(t)&&(0,r.Z)(t.positiveX)&&(0,r.Z)(t.negativeX)&&(0,r.Z)(t.positiveY)&&(0,r.Z)(t.negativeY)&&(0,r.Z)(t.positiveZ)&&(0,r.Z)(t.negativeZ)))throw new o.Z("urls is required and must have positiveX, negativeX, positiveY, negativeY, positiveZ, and negativeZ properties.");const u={flipY:!0,skipColorSpaceConversion:i,preferImageBitmap:!0},l=[s.Z.createIfNeeded(t.positiveX).fetchImage(u),s.Z.createIfNeeded(t.negativeX).fetchImage(u),s.Z.createIfNeeded(t.positiveY).fetchImage(u),s.Z.createIfNeeded(t.negativeY).fetchImage(u),s.Z.createIfNeeded(t.positiveZ).fetchImage(u),s.Z.createIfNeeded(t.negativeZ).fetchImage(u)];return a.Z.all(l,(function(t){return new c.Z({context:e,source:{positiveX:t[0],negativeX:t[1],positiveY:t[2],negativeY:t[3],positiveZ:t[4],negativeZ:t[5]}})}))}},339476:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(426468),r=i(446938);function o(e,t,i){const n=new RegExp("(^|[^\\w])("+e+")($|[^\\w])","g"),r=i.length;for(let e=0;e=0})):i[r]=o.slice())}}return i}(d,c),m={};for(u=0;u=0;e--)c.splice(i,0,"#endif //"+n[e])}const _="WEBGL_2",Z="#version 300 es";let g=!1;for(u=0;u{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({OPAQUE:"OPAQUE",MASK:"MASK",BLEND:"BLEND"})},23851:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(556592),r=i(307260),o=i(406144),s=i(426468),a=i(451356),c=i(690466);function u(e){e=(0,o.Z)(e,o.Z.EMPTY_OBJECT),this.material=e.material,this.translucent=(0,o.Z)(e.translucent,!0),this._vertexShaderSource=e.vertexShaderSource,this._fragmentShaderSource=e.fragmentShaderSource,this._renderState=e.renderState,this._closed=(0,o.Z)(e.closed,!1)}Object.defineProperties(u.prototype,{vertexShaderSource:{get:function(){return this._vertexShaderSource}},fragmentShaderSource:{get:function(){return this._fragmentShaderSource}},renderState:{get:function(){return this._renderState}},closed:{get:function(){return this._closed}}}),u.prototype.getFragmentShaderSource=function(){const e=[];return this.flat&&e.push("#define FLAT"),this.faceForward&&e.push("#define FACE_FORWARD"),(0,s.Z)(this.material)&&e.push(this.material.shaderSource),e.push(this.fragmentShaderSource),e.join("\n")},u.prototype.isTranslucent=function(){return(0,s.Z)(this.material)&&this.material.isTranslucent()||!(0,s.Z)(this.material)&&this.translucent},u.prototype.getRenderState=function(){const e=this.isTranslucent(),t=(0,n.Z)(this.renderState,!1);return e?(t.depthMask=!1,t.blending=a.Z.ALPHA_BLEND):t.depthMask=!0,t},u.getDefaultRenderState=function(e,t,i){let n={depthTest:{enabled:!0}};return e&&(n.depthMask=!1,n.blending=a.Z.ALPHA_BLEND),t&&(n.cull={enabled:!0,face:c.Z.BACK}),(0,s.Z)(i)&&(n=(0,r.Z)(i,n,!0)),n};const l=u},74173:(e,t,i)=>{"use strict";i.d(t,{Z:()=>E});var n=i(337968),r=i(919382),o=i(698907),s=i(846748),a=i(406144),c=i(426468),u=i(446938),l=i(197685),h=i(921099),d=i(910946),f=i(362017),p=i(523501),m=i(795788),_=i(50128),Z=i(723822),g=i(786409),y=i(310526),b=i(527758),A=i(119998),w=i(103198),v=i(616007);function T(e){if(e=(0,a.Z)(e,a.Z.EMPTY_OBJECT),!(0,c.Z)(e.url))throw new u.Z("options.url is required.");this.defaultAlpha=void 0,this.defaultNightAlpha=void 0,this.defaultDayAlpha=void 0,this.defaultBrightness=void 0,this.defaultContrast=void 0,this.defaultHue=void 0,this.defaultSaturation=void 0,this.defaultGamma=void 0,this.defaultMinificationFilter=void 0,this.defaultMagnificationFilter=void 0;const t=m.Z.createIfNeeded(e.url);t.appendForwardSlash(),(0,c.Z)(e.token)&&t.setQueryParameters({token:e.token}),this._resource=t,this._tileDiscardPolicy=e.tileDiscardPolicy,this._tileWidth=(0,a.Z)(e.tileWidth,256),this._tileHeight=(0,a.Z)(e.tileHeight,256),this._maximumLevel=e.maximumLevel,this._tilingScheme=(0,a.Z)(e.tilingScheme,new d.Z({ellipsoid:e.ellipsoid})),this._useTiles=(0,a.Z)(e.usePreCachedTilesIfAvailable,!0),this._rectangle=(0,a.Z)(e.rectangle,this._tilingScheme.rectangle),this._layers=e.layers;let i=e.credit;"string"==typeof i&&(i=new s.Z(i)),this._credit=i,this.enablePickFeatures=(0,a.Z)(e.enablePickFeatures,!0),this._errorEvent=new l.Z,this._ready=!1,this._readyPromise=b.Z.defer();const o=this;let h;function f(t){const i=t.tileInfo;if((0,c.Z)(i)){if(o._tileWidth=i.rows,o._tileHeight=i.cols,102100===i.spatialReference.wkid||102113===i.spatialReference.wkid)o._tilingScheme=new y.Z({ellipsoid:e.ellipsoid});else{if(4326!==t.tileInfo.spatialReference.wkid){const e="Tile spatial reference WKID "+t.tileInfo.spatialReference.wkid+" is not supported.";return void(h=Z.Z.handleError(h,o,o._errorEvent,e,void 0,void 0,void 0,v))}o._tilingScheme=new d.Z({ellipsoid:e.ellipsoid})}if(o._maximumLevel=t.tileInfo.lods.length-1,(0,c.Z)(t.fullExtent)){if((0,c.Z)(t.fullExtent.spatialReference)&&(0,c.Z)(t.fullExtent.spatialReference.wkid))if(102100===t.fullExtent.spatialReference.wkid||102113===t.fullExtent.spatialReference.wkid){const e=new g.Z,i=t.fullExtent,n=e.unproject(new r.Z(Math.max(i.xmin,-o._tilingScheme.ellipsoid.maximumRadius*Math.PI),Math.max(i.ymin,-o._tilingScheme.ellipsoid.maximumRadius*Math.PI),0)),s=e.unproject(new r.Z(Math.min(i.xmax,o._tilingScheme.ellipsoid.maximumRadius*Math.PI),Math.min(i.ymax,o._tilingScheme.ellipsoid.maximumRadius*Math.PI),0));o._rectangle=new p.Z(n.longitude,n.latitude,s.longitude,s.latitude)}else{if(4326!==t.fullExtent.spatialReference.wkid){const e="fullExtent.spatialReference WKID "+t.fullExtent.spatialReference.wkid+" is not supported.";return void(h=Z.Z.handleError(h,o,o._errorEvent,e,void 0,void 0,void 0,v))}o._rectangle=p.Z.fromDegrees(t.fullExtent.xmin,t.fullExtent.ymin,t.fullExtent.xmax,t.fullExtent.ymax)}}else o._rectangle=o._tilingScheme.rectangle;(0,c.Z)(o._tileDiscardPolicy)||(o._tileDiscardPolicy=new A.Z({missingImageUrl:C(o,0,0,o._maximumLevel).url,pixelsToCheck:[new n.Z(0,0),new n.Z(200,20),new n.Z(20,200),new n.Z(80,110),new n.Z(160,130)],disableCheckIfAllPixelsAreTransparent:!0})),o._useTiles=!0}else o._useTiles=!1;(0,c.Z)(t.copyrightText)&&t.copyrightText.length>0&&(o._credit=new s.Z(t.copyrightText)),o._ready=!0,o._readyPromise.resolve(!0),Z.Z.handleSuccess(h)}function w(e){const t="An error occurred while accessing "+o._resource.url+".";h=Z.Z.handleError(h,o,o._errorEvent,t,void 0,void 0,void 0,v),o._readyPromise.reject(new _.Z(t))}function v(){const e=o._resource.getDerivedResource({queryParameters:{f:"json"}}).fetchJsonp();(0,b.Z)(e,f,w)}this._useTiles?v():(this._ready=!0,this._readyPromise.resolve(!0))}function C(e,t,i,n,r){let o;if(e._useTiles)o=e._resource.getDerivedResource({url:"tile/"+n+"/"+i+"/"+t,request:r});else{const s=e._tilingScheme.tileXYToNativeRectangle(t,i,n),a={bbox:s.west+","+s.south+","+s.east+","+s.north,size:e._tileWidth+","+e._tileHeight,format:"png32",transparent:!0,f:"image"};e._tilingScheme.projection instanceof h.Z?(a.bboxSR=4326,a.imageSR=4326):(a.bboxSR=3857,a.imageSR=3857),e.layers&&(a.layers="show:"+e.layers),o=e._resource.getDerivedResource({url:"export",request:r,queryParameters:a})}return o}Object.defineProperties(T.prototype,{url:{get:function(){return this._resource._url}},token:{get:function(){return this._resource.queryParameters.token}},proxy:{get:function(){return this._resource.proxy}},tileWidth:{get:function(){if(!this._ready)throw new u.Z("tileWidth must not be called before the imagery provider is ready.");return this._tileWidth}},tileHeight:{get:function(){if(!this._ready)throw new u.Z("tileHeight must not be called before the imagery provider is ready.");return this._tileHeight}},maximumLevel:{get:function(){if(!this._ready)throw new u.Z("maximumLevel must not be called before the imagery provider is ready.");return this._maximumLevel}},minimumLevel:{get:function(){if(!this._ready)throw new u.Z("minimumLevel must not be called before the imagery provider is ready.");return 0}},tilingScheme:{get:function(){if(!this._ready)throw new u.Z("tilingScheme must not be called before the imagery provider is ready.");return this._tilingScheme}},rectangle:{get:function(){if(!this._ready)throw new u.Z("rectangle must not be called before the imagery provider is ready.");return this._rectangle}},tileDiscardPolicy:{get:function(){if(!this._ready)throw new u.Z("tileDiscardPolicy must not be called before the imagery provider is ready.");return this._tileDiscardPolicy}},errorEvent:{get:function(){return this._errorEvent}},ready:{get:function(){return this._ready}},readyPromise:{get:function(){return this._readyPromise.promise}},credit:{get:function(){return this._credit}},usingPrecachedTiles:{get:function(){return this._useTiles}},hasAlphaChannel:{get:function(){return!0}},layers:{get:function(){return this._layers}}}),T.prototype.getTileCredits=function(e,t,i){},T.prototype.requestImage=function(e,t,i,n){if(!this._ready)throw new u.Z("requestImage must not be called before the imagery provider is ready.");return v.Z.loadImage(this,C(this,e,t,i,n))},T.prototype.pickFeatures=function(e,t,i,n,s){if(!this._ready)throw new u.Z("pickFeatures must not be called before the imagery provider is ready.");if(!this.enablePickFeatures)return;const a=this._tilingScheme.tileXYToNativeRectangle(e,t,i);let l,d,p;if(this._tilingScheme.projection instanceof h.Z)l=f.Z.toDegrees(n),d=f.Z.toDegrees(s),p="4326";else{const e=this._tilingScheme.projection.project(new o.Z(n,s,0));l=e.x,d=e.y,p="3857"}let m="visible";(0,c.Z)(this._layers)&&(m+=":"+this._layers);const _={f:"json",tolerance:2,geometryType:"esriGeometryPoint",geometry:l+","+d,mapExtent:a.west+","+a.south+","+a.east+","+a.north,imageDisplay:this._tileWidth+","+this._tileHeight+",96",sr:p,layers:m};return this._resource.getDerivedResource({url:"identify",queryParameters:_}).fetchJson().then((function(e){const t=[],i=e.results;if(!(0,c.Z)(i))return t;for(let e=0;e{"use strict";i.d(t,{Z:()=>d});var n=i(337968),r=i(919382),o=i(114754),s=i(357299),a=i(446938),c=i(631145),u=i(165373),l=i(583917);const h={SCALAR:"SCALAR",VEC2:"VEC2",VEC3:"VEC3",VEC4:"VEC4",MAT2:"MAT2",MAT3:"MAT3",MAT4:"MAT4",getMathType:function(e){switch(e){case h.SCALAR:return Number;case h.VEC2:return n.Z;case h.VEC3:return r.Z;case h.VEC4:return o.Z;case h.MAT2:return c.Z;case h.MAT3:return u.Z;case h.MAT4:return l.Z;default:throw new a.Z("attributeType is not a valid value.")}},getNumberOfComponents:function(e){switch(e){case h.SCALAR:return 1;case h.VEC2:return 2;case h.VEC3:return 3;case h.VEC4:case h.MAT2:return 4;case h.MAT3:return 9;case h.MAT4:return 16;default:throw new a.Z("attributeType is not a valid value.")}},getGlslType:function(e){switch(s.Z.typeOf.string("attributeType",e),e){case h.SCALAR:return"float";case h.VEC2:return"vec2";case h.VEC3:return"vec3";case h.VEC4:return"vec4";case h.MAT2:return"mat2";case h.MAT3:return"mat3";case h.MAT4:return"mat4";default:throw new a.Z("attributeType is not a valid value.")}}},d=Object.freeze(h)},191786:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});var n=i(337968),r=i(545125),o=i(426468),s=i(54879),a=i(20209),c=i(273642),u=i(687931);function l(){this._uniformMap=void 0,this._command=void 0,this._colorTexture=void 0,this._depthTexture=void 0,this._ready=!1,this._name="czm_autoexposure",this._logDepthChanged=void 0,this._useLogDepth=void 0,this._framebuffers=void 0,this._previousLuminance=new c.Z,this._commands=void 0,this._clearCommand=void 0,this._minMaxLuminance=new n.Z,this.enabled=!0,this._enabled=!0,this.minimumLuminance=.1,this.maximumLuminance=10}function h(e){const t=e._framebuffers;if(!(0,o.Z)(t))return;const i=t.length;for(let e=0;e{"use strict";i.d(t,{Z:()=>c});var n=i(357299),r=i(362017),o=i(165373),s=i(583917);const a={X:0,Y:1,Z:2};a.Y_UP_TO_Z_UP=s.Z.fromRotationTranslation(o.Z.fromRotationX(r.Z.PI_OVER_TWO)),a.Z_UP_TO_Y_UP=s.Z.fromRotationTranslation(o.Z.fromRotationX(-r.Z.PI_OVER_TWO)),a.X_UP_TO_Z_UP=s.Z.fromRotationTranslation(o.Z.fromRotationY(-r.Z.PI_OVER_TWO)),a.Z_UP_TO_X_UP=s.Z.fromRotationTranslation(o.Z.fromRotationY(r.Z.PI_OVER_TWO)),a.X_UP_TO_Y_UP=s.Z.fromRotationTranslation(o.Z.fromRotationZ(r.Z.PI_OVER_TWO)),a.Y_UP_TO_X_UP=s.Z.fromRotationTranslation(o.Z.fromRotationZ(-r.Z.PI_OVER_TWO)),a.fromName=function(e){return n.Z.typeOf.string("name",e),a[e]};const c=Object.freeze(a)},86138:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(357299),r=i(406144),o=i(859071),s=i(987606),a=i(50128);const c={};c._deprecationWarning=o.Z;const u=Uint32Array.BYTES_PER_ELEMENT;c.parse=function(e,t){const i=(0,r.Z)(t,0);n.Z.defined("arrayBuffer",e),t=i;const o=new Uint8Array(e),l=new DataView(e);t+=u;const h=l.getUint32(t,!0);if(1!==h)throw new a.Z("Only Batched 3D Model version 1 is supported. Version "+h+" is not.");t+=u;const d=l.getUint32(t,!0);t+=u;let f=l.getUint32(t,!0);t+=u;let p=l.getUint32(t,!0);t+=u;let m=l.getUint32(t,!0);t+=u;let _,Z,g=l.getUint32(t,!0);t+=u,m>=570425344?(t-=2*u,_=f,m=p,g=0,f=0,p=0,c._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchLength] [batchTableByteLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel.")):g>=570425344&&(t-=u,_=m,m=f,g=p,f=0,p=0,c._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchTableJsonByteLength] [batchTableBinaryByteLength] [batchLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel.")),0===f?Z={BATCH_LENGTH:(0,r.Z)(_,0)}:(Z=(0,s.Z)(o,t,f),t+=f);const y=new Uint8Array(e,t,p);let b,A;t+=p,m>0&&(b=(0,s.Z)(o,t,m),t+=m,g>0&&(A=new Uint8Array(e,t,g),A=new Uint8Array(A),t+=g));const w=i+d-t;if(0===w)throw new a.Z("glTF byte length must be greater than 0.");let v;return t%4==0?v=new Uint8Array(e,t,w):(c._deprecationWarning("b3dm-glb-unaligned","The embedded glb is not aligned to a 4-byte boundary."),v=new Uint8Array(o.subarray(t,t+w))),{batchLength:_,featureTableJson:Z,featureTableBinary:y,batchTableJson:b,batchTableBinary:A,gltf:v}};const l=c},525688:(e,t,i)=>{"use strict";i.d(t,{Z:()=>v});var n=i(337968),r=i(919382),o=i(114754),s=i(307260),a=i(997274),c=i(426468),u=i(54879),l=i(446938),h=i(100883),d=i(994589),f=i(687931),p=i(270013),m=i(283044);function _(e,t,i){if(!(0,c.Z)(e))throw new l.Z("context is required");if(!(0,c.Z)(t))throw new l.Z("attributes is required");if(!(0,c.Z)(i))throw new l.Z("numberOfInstances is required");if(this._attributes=t,this._numberOfInstances=i,0===t.length)return;const r=function(e){let t=!1;const i=e.length;for(let n=0;n=this._numberOfInstances)throw new l.Z("instanceIndex is out of range.");if(t<0||t>=this._attributes.length)throw new l.Z("attributeIndex is out of range");const n=this._attributes,r=this._offsets[t],s=4*this._stride*e+4*r;let a;a=this._packFloats&&n[t].componentDatatype!==f.Z.UNSIGNED_BYTE?function(e,t,i){let n=o.Z.unpack(e,t,g);const r=o.Z.unpackFloat(n);n=o.Z.unpack(e,t+4,g);const s=o.Z.unpackFloat(n);n=o.Z.unpack(e,t+8,g);const a=o.Z.unpackFloat(n);n=o.Z.unpack(e,t+12,g);const c=o.Z.unpackFloat(n);return o.Z.fromElements(r,s,a,c,i)}(this._batchValues,s,y):o.Z.unpack(this._batchValues,s,y);const u=Z(n,t);return(0,c.Z)(u.fromCartesian4)?u.fromCartesian4(a,i):(0,c.Z)(u.clone)?u.clone(a,i):a.x};const b=[void 0,void 0,new n.Z,new r.Z,new o.Z],A=new o.Z;function w(e,t){const i=e._attributes[t],n=i.componentsPerAttribute,r=i.functionName,o=function(e){return 1===e?"float":"vec"+e}(n),s=function(e){return 1===e?".x":2===e?".xy":3===e?".xyz":""}(n);let c=o+" "+r+"(float batchId) \n{ \n vec2 st = computeSt(batchId); \n st.x += batchTextureStep.x * float("+e._offsets[t]+"); \n";return e._packFloats&&i.componentDatatype!==f.Z.UNSIGNED_BYTE?c+="vec4 textureValue; \ntextureValue.x = czm_unpackFloat(texture2D(batchTexture, st)); \ntextureValue.y = czm_unpackFloat(texture2D(batchTexture, st + vec2(batchTextureStep.x, 0.0))); \ntextureValue.z = czm_unpackFloat(texture2D(batchTexture, st + vec2(batchTextureStep.x * 2.0, 0.0))); \ntextureValue.w = czm_unpackFloat(texture2D(batchTexture, st + vec2(batchTextureStep.x * 3.0, 0.0))); \n":c+=" vec4 textureValue = texture2D(batchTexture, st); \n",c+=" "+o+" value = textureValue"+s+"; \n",e._pixelDatatype!==f.Z.UNSIGNED_BYTE||i.componentDatatype!==a.Z.UNSIGNED_BYTE||i.normalize?e._pixelDatatype===f.Z.FLOAT&&i.componentDatatype===a.Z.UNSIGNED_BYTE&&i.normalize&&(c+="value /= 255.0; \n"):c+="value *= 255.0; \n",c+=" return value; \n} \n",c}_.prototype.setBatchedAttribute=function(e,t,i){if(e<0||e>=this._numberOfInstances)throw new l.Z("instanceIndex is out of range.");if(t<0||t>=this._attributes.length)throw new l.Z("attributeIndex is out of range");if(!(0,c.Z)(i))throw new l.Z("value is required.");const n=this._attributes,r=b[n[t].componentsPerAttribute],s=this.getBatchedAttribute(e,t,r),a=Z(this._attributes,t);if((0,c.Z)(a.equals)?a.equals(s,i):s===i)return;const u=A;u.x=(0,c.Z)(i.x)?i.x:i,u.y=(0,c.Z)(i.y)?i.y:0,u.z=(0,c.Z)(i.z)?i.z:0,u.w=(0,c.Z)(i.w)?i.w:0;const h=this._offsets[t],d=4*this._stride*e+4*h;this._packFloats&&n[t].componentDatatype!==f.Z.UNSIGNED_BYTE?function(e,t,i){let n=o.Z.packFloat(e.x,g);o.Z.pack(n,t,i),n=o.Z.packFloat(e.y,n),o.Z.pack(n,t,i+4),n=o.Z.packFloat(e.z,n),o.Z.pack(n,t,i+8),n=o.Z.packFloat(e.w,n),o.Z.pack(n,t,i+12)}(u,this._batchValues,d):o.Z.pack(u,this._batchValues,d),this._batchValuesDirty=!0},_.prototype.update=function(e){(0,c.Z)(this._texture)&&!this._batchValuesDirty||0===this._attributes.length||(this._batchValuesDirty=!1,(0,c.Z)(this._texture)||function(e,t){const i=e._textureDimensions;e._texture=new m.Z({context:t,pixelFormat:h.Z.RGBA,pixelDatatype:e._pixelDatatype,width:i.x,height:i.y,sampler:p.Z.NEAREST,flipY:!1})}(this,e.context),function(e){const t=e._textureDimensions;e._texture.copyFrom({source:{width:t.x,height:t.y,arrayBufferView:e._batchValues}})}(this))},_.prototype.getUniformMapCallback=function(){const e=this;return function(t){if(0===e._attributes.length)return t;const i={batchTexture:function(){return e._texture},batchTextureDimensions:function(){return e._textureDimensions},batchTextureStep:function(){return e._textureStep}};return(0,s.Z)(t,i)}},_.prototype.getVertexShaderCallback=function(){const e=this._attributes;if(0===e.length)return function(e){return e};let t="uniform highp sampler2D batchTexture; \n";t+=function(e){const t=e._stride;return 1===e._textureDimensions.y?"uniform vec4 batchTextureStep; \nvec2 computeSt(float batchId) \n{ \n float stepX = batchTextureStep.x; \n float centerX = batchTextureStep.y; \n float numberOfAttributes = float("+t+"); \n return vec2(centerX + (batchId * numberOfAttributes * stepX), 0.5); \n} \n":"uniform vec4 batchTextureStep; \nuniform vec2 batchTextureDimensions; \nvec2 computeSt(float batchId) \n{ \n float stepX = batchTextureStep.x; \n float centerX = batchTextureStep.y; \n float stepY = batchTextureStep.z; \n float centerY = batchTextureStep.w; \n float numberOfAttributes = float("+t+"); \n float xId = mod(batchId * numberOfAttributes, batchTextureDimensions.x); \n float yId = floor(batchId * numberOfAttributes / batchTextureDimensions.x); \n return vec2(centerX + (xId * stepX), centerY + (yId * stepY)); \n} \n"}(this)+"\n";const i=e.length;for(let e=0;e{"use strict";i.d(t,{Z:()=>p});var n=i(170099),r=i(295189),o=i(357299),s=i(556592),a=i(307260),c=i(997274),u=i(426468),l=i(406144),h=i(446938),d=i(324628),f=i(50128);function p(e){this._classes=void 0,this._classIds=void 0,this._classIndexes=void 0,this._parentCounts=void 0,this._parentIndexes=void 0,this._parentIds=void 0,o.Z.typeOf.object("options.extension",e.extension),function(e,t,i){let o,s,h;const f=t.instancesLength,p=t.classes;let _,Z=t.classIds,g=t.parentCounts,y=t.parentIds,b=f;if((0,u.Z)(Z.byteOffset)&&(Z.componentType=(0,l.Z)(Z.componentType,c.Z.UNSIGNED_SHORT),Z.type=r.Z.SCALAR,h=(0,d.Z)(Z),Z=h.createArrayBufferView(i.buffer,i.byteOffset+Z.byteOffset,f)),(0,u.Z)(g))for((0,u.Z)(g.byteOffset)&&(g.componentType=(0,l.Z)(g.componentType,c.Z.UNSIGNED_SHORT),g.type=r.Z.SCALAR,h=(0,d.Z)(g),g=h.createArrayBufferView(i.buffer,i.byteOffset+g.byteOffset,f)),_=new Uint16Array(f),b=0,o=0;o=s)throw new h.Z("Parent index "+t+" exceeds the total number of instances: "+s);if(i.indexOf(t)>-1)throw new h.Z("Circular dependency detected in the batch table hierarchy.");i.push(t);const a=(0,u.Z)(n)?n[t]:1,c=(0,u.Z)(n)?o[t]:t;for(let n=0;n0;){if(c[t=h.pop()]===l)continue;c[t]=l;const n=i(e,t);if((0,u.Z)(n))return n;const a=r[t],d=s[t];for(let e=0;e{"use strict";i.d(t,{Z:()=>_});var n=i(170099),r=i(337968),o=i(114754),s=i(357299),a=i(545125),c=i(426468),u=i(54879),l=i(446938),h=i(100883),d=i(994589),f=i(687931),p=i(270013),m=i(283044);function _(e){s.Z.typeOf.number("options.featuresLength",e.featuresLength),s.Z.typeOf.object("options.owner",e.owner);const t=e.featuresLength;let i,n;if(this._showAlphaProperties=void 0,this._batchValues=void 0,this._batchValuesDirty=!1,this._batchTexture=void 0,this._defaultTexture=void 0,this._pickTexture=void 0,this._pickIds=[],t>0){const e=Math.min(t,d.Z.maximumTextureSize),s=Math.ceil(t/d.Z.maximumTextureSize),a=1/e,c=.5*a,u=1/s,l=.5*u;i=new r.Z(e,s),n=new o.Z(a,c,u,l)}this._translucentFeaturesLength=0,this._featuresLength=t,this._textureDimensions=i,this._textureStep=n,this._owner=e.owner,this._statistics=e.statistics,this._colorChangedCallback=e.colorChangedCallback}function Z(e){const t=e._textureDimensions;return t.x*t.y*4}function g(e){if(!(0,c.Z)(e._batchValues)){const t=Z(e),i=new Uint8Array(t);(0,n.Z)(i,255),e._batchValues=i}return e._batchValues}function y(e){if(!(0,c.Z)(e._showAlphaProperties)){const t=2*e._featuresLength,i=new Uint8Array(t);(0,n.Z)(i,255),e._showAlphaProperties=i}return e._showAlphaProperties}function b(e,t){if(!(0,c.Z)(e)||e<0||e>=t)throw new l.Z("batchId is required and between zero and featuresLength - 1 ("+t-NaN)}Object.defineProperties(_.prototype,{translucentFeaturesLength:{get:function(){return this._translucentFeaturesLength}},memorySizeInBytes:{get:function(){let e=0;return(0,c.Z)(this._pickTexture)&&(e+=this._pickTexture.sizeInBytes),(0,c.Z)(this._batchTexture)&&(e+=this._batchTexture.sizeInBytes),e}},textureDimensions:{get:function(){return this._textureDimensions}},textureStep:{get:function(){return this._textureStep}},batchTexture:{get:function(){return this._batchTexture}},defaultTexture:{get:function(){return this._defaultTexture}},pickTexture:{get:function(){return this._pickTexture}}}),_.DEFAULT_COLOR_VALUE=a.Z.WHITE,_.DEFAULT_SHOW_VALUE=!0,_.prototype.setShow=function(e,t){if(b(e,this._featuresLength),s.Z.typeOf.bool("show",t),t&&!(0,c.Z)(this._showAlphaProperties))return;const i=y(this),n=2*e,r=t?255:0;i[n]!==r&&(i[n]=r,g(this)[4*e+3]=t?i[n+1]:0,this._batchValuesDirty=!0)},_.prototype.setAllShow=function(e){s.Z.typeOf.bool("show",e);const t=this._featuresLength;for(let i=0;i0){const n=e._pickIds,r=Z(e),o=new Uint8Array(r),s=e._owner,u=e._statistics;for(let e=0;e{"use strict";i.d(t,{Z:()=>x});var n=i(919382),r=i(545125),o=i(997274),s=i(426468),a=i(859071),c=i(54879),u=i(446938),l=i(583917),h=i(690220),d=i(842649),f=i(39213),p=i(86138),m=i(657045),_=i(268053),Z=i(447490),g=i(438420),y=i(427570),b=i(723710),A=i(152823);function w(e,t,i,r,a){this._tileset=e,this._tile=t,this._resource=i,this._model=void 0,this._batchTable=void 0,this._features=void 0,this._classificationType=e.vectorClassificationOnly?void 0:e.classificationType,this._batchIdAttributeName=void 0,this._diffuseAttributeOrUniformName={},this._rtcCenterTransform=void 0,this._contentModelMatrix=void 0,this.featurePropertiesDirty=!1,this._groupMetadata=void 0,function(e,t,i){const r=e._tileset,a=e._tile,c=e._resource,u=p.Z.parse(t,i);let _=u.batchLength;const A=u.featureTableJson,w=u.featureTableBinary,x=new Z.Z(A,w);_=x.getGlobalProperty("BATCH_LENGTH"),x.featuresLength=_;const S=u.batchTableJson,O=u.batchTableBinary;let I;(0,s.Z)(e._classificationType)&&(I=function(e){return function(t,i){e._model.updateCommands(t,i)}}(e));const D=new m.Z(e,_,S,O,I);e._batchTable=D;const P=u.gltf,R={content:e,primitive:r};e._rtcCenterTransform=l.Z.IDENTITY;const B=x.getGlobalProperty("RTC_CENTER",o.Z.FLOAT,3);(0,s.Z)(B)&&(e._rtcCenterTransform=l.Z.fromTranslation(n.Z.fromArray(B))),e._contentModelMatrix=l.Z.multiply(a.computedTransform,e._rtcCenterTransform,new l.Z),(0,s.Z)(e._classificationType)?e._model=new g.Z({gltf:P,cull:!1,basePath:c,requestType:h.Z.TILES3D,modelMatrix:e._contentModelMatrix,upAxis:r._gltfUpAxis,forwardAxis:f.Z.X,debugWireframe:r.debugWireframe,vertexShaderLoaded:v(e),classificationShaderLoaded:E(e),uniformMapLoaded:D.getUniformMapCallback(),pickIdLoaded:C(e),classificationType:e._classificationType,batchTable:D}):(e._model=new y.Z({gltf:P,cull:!1,releaseGltfJson:!0,opaquePass:d.Z.CESIUM_3D_TILE,basePath:c,requestType:h.Z.TILES3D,modelMatrix:e._contentModelMatrix,upAxis:r._gltfUpAxis,forwardAxis:f.Z.X,shadows:r.shadows,debugWireframe:r.debugWireframe,incrementallyLoadTextures:!1,vertexShaderLoaded:v(e),fragmentShaderLoaded:T(e),uniformMapLoaded:D.getUniformMapCallback(),pickIdLoaded:C(e),addBatchIdToGeneratedShaders:_>0,pickObject:R,imageBasedLightingFactor:r.imageBasedLightingFactor,lightColor:r.lightColor,luminanceAtZenith:r.luminanceAtZenith,sphericalHarmonicCoefficients:r.sphericalHarmonicCoefficients,specularEnvironmentMaps:r.specularEnvironmentMaps,backFaceCulling:r.backFaceCulling,showOutline:r.showOutline}),e._model.readyPromise.then((function(e){e.activeAnimations.addAll({loop:b.Z.REPEAT})})))}(this,r,a)}function v(e){return function(t,i){const n=e._batchTable,r=!(0,s.Z)(e._classificationType),o=e._model.gltf;(0,s.Z)(o)&&(e._batchIdAttributeName=function(e){let t=A.Z.getAttributeOrUniformBySemantic(e,"_BATCHID");return(0,s.Z)(t)||(t=A.Z.getAttributeOrUniformBySemantic(e,"BATCHID"),(0,s.Z)(t)&&w._deprecationWarning("b3dm-legacy-batchid","The glTF in this b3dm uses the semantic `BATCHID`. Application-specific semantics should be prefixed with an underscore: `_BATCHID`.")),t}(o),e._diffuseAttributeOrUniformName[i]=A.Z.getDiffuseAttributeOrUniform(o,i));const a=n.getVertexShaderCallback(r,e._batchIdAttributeName,e._diffuseAttributeOrUniformName[i]);return(0,s.Z)(a)?a(t):t}}function T(e){return function(t,i){const n=e._batchTable,r=!(0,s.Z)(e._classificationType),o=e._model.gltf;(0,s.Z)(o)&&(e._diffuseAttributeOrUniformName[i]=A.Z.getDiffuseAttributeOrUniform(o,i));const a=n.getFragmentShaderCallback(r,e._diffuseAttributeOrUniformName[i],!1);return(0,s.Z)(a)?a(t):t}}function C(e){return function(){return e._batchTable.getPickId()}}function E(e){return function(t){const i=e._batchTable.getClassificationFragmentShaderCallback();return(0,s.Z)(i)?i(t):t}}w._deprecationWarning=a.Z,Object.defineProperties(w.prototype,{featuresLength:{get:function(){return this.batchTable.featuresLength}},pointsLength:{get:function(){return this._model.pointsLength}},trianglesLength:{get:function(){return this._model.trianglesLength}},geometryByteLength:{get:function(){return this._model.geometryByteLength}},texturesByteLength:{get:function(){return this._model.texturesByteLength}},batchTableByteLength:{get:function(){return this.batchTable.memorySizeInBytes}},innerContents:{get:function(){}},readyPromise:{get:function(){return this._model.readyPromise}},tileset:{get:function(){return this._tileset}},tile:{get:function(){return this._tile}},url:{get:function(){return this._resource.getUrlComponent(!0)}},batchTable:{get:function(){return this._batchTable}},groupMetadata:{get:function(){return this._groupMetadata},set:function(e){this._groupMetadata=e}}}),w.prototype.hasProperty=function(e,t){return this._batchTable.hasProperty(e,t)},w.prototype.getFeature=function(e){const t=this.featuresLength;if(!(0,s.Z)(e)||e<0||e>=t)throw new u.Z("batchId is required and between zero and featuresLength - 1 ("+(t-1)+").");return function(e){const t=e.featuresLength;if(!(0,s.Z)(e._features)&&t>0){const i=new Array(t);for(let n=0;n{"use strict";i.d(t,{Z:()=>W});var n=i(152124),r=i(337968),o=i(919382),s=i(114754),a=i(698907),c=i(357299),u=i(545125),l=i(416974),h=i(406144),d=i(426468),f=i(446938),p=i(744497),m=i(583917),_=i(530109),Z=i(795788),g=i(110499),y=i(121015),b=i(506678),A=i(867536),w=i(825497);function v(e,t){if(e=(0,h.Z)(e,h.Z.EMPTY_OBJECT),(0,d.Z)(e.disableDepthTestDistance)&&e.disableDepthTestDistance<0)throw new f.Z("disableDepthTestDistance must be greater than or equal to 0.0.");let i=e.translucencyByDistance,n=e.pixelOffsetScaleByDistance,s=e.scaleByDistance,a=e.distanceDisplayCondition;if((0,d.Z)(i)){if(i.far<=i.near)throw new f.Z("translucencyByDistance.far must be greater than translucencyByDistance.near.");i=_.Z.clone(i)}if((0,d.Z)(n)){if(n.far<=n.near)throw new f.Z("pixelOffsetScaleByDistance.far must be greater than pixelOffsetScaleByDistance.near.");n=_.Z.clone(n)}if((0,d.Z)(s)){if(s.far<=s.near)throw new f.Z("scaleByDistance.far must be greater than scaleByDistance.near.");s=_.Z.clone(s)}if((0,d.Z)(a)){if(a.far<=a.near)throw new f.Z("distanceDisplayCondition.far must be greater than distanceDisplayCondition.near.");a=p.Z.clone(a)}this._show=(0,h.Z)(e.show,!0),this._position=o.Z.clone((0,h.Z)(e.position,o.Z.ZERO)),this._actualPosition=o.Z.clone(this._position),this._pixelOffset=r.Z.clone((0,h.Z)(e.pixelOffset,r.Z.ZERO)),this._translate=new r.Z(0,0),this._eyeOffset=o.Z.clone((0,h.Z)(e.eyeOffset,o.Z.ZERO)),this._heightReference=(0,h.Z)(e.heightReference,g.Z.NONE),this._verticalOrigin=(0,h.Z)(e.verticalOrigin,w.Z.CENTER),this._horizontalOrigin=(0,h.Z)(e.horizontalOrigin,y.Z.CENTER),this._scale=(0,h.Z)(e.scale,1),this._color=u.Z.clone((0,h.Z)(e.color,u.Z.WHITE)),this._rotation=(0,h.Z)(e.rotation,0),this._alignedAxis=o.Z.clone((0,h.Z)(e.alignedAxis,o.Z.ZERO)),this._width=e.width,this._height=e.height,this._scaleByDistance=s,this._translucencyByDistance=i,this._pixelOffsetScaleByDistance=n,this._sizeInMeters=(0,h.Z)(e.sizeInMeters,!1),this._distanceDisplayCondition=a,this._disableDepthTestDistance=e.disableDepthTestDistance,this._id=e.id,this._collection=(0,h.Z)(e.collection,t),this._pickId=void 0,this._pickPrimitive=(0,h.Z)(e._pickPrimitive,this),this._billboardCollection=t,this._dirty=!1,this._index=-1,this._batchIndex=void 0,this._imageIndex=-1,this._imageIndexPromise=void 0,this._imageId=void 0,this._image=void 0,this._imageSubRegion=void 0,this._imageWidth=void 0,this._imageHeight=void 0,this._labelDimensions=void 0,this._labelHorizontalOrigin=void 0,this._labelTranslate=void 0;const c=e.image;let m=e.imageId;(0,d.Z)(c)&&((0,d.Z)(m)||(m="string"==typeof c?c:(0,d.Z)(c.src)?c.src:(0,l.Z)()),this._imageId=m,this._image=c),(0,d.Z)(e.imageSubRegion)&&(this._imageId=m,this._imageSubRegion=e.imageSubRegion),(0,d.Z)(this._billboardCollection._textureAtlas)&&this._loadImage(),this._actualClampedPosition=void 0,this._removeCallbackFunc=void 0,this._mode=b.Z.SCENE3D,this._clusterShow=!0,this._outlineColor=u.Z.clone((0,h.Z)(e.outlineColor,u.Z.BLACK)),this._outlineWidth=(0,h.Z)(e.outlineWidth,0),this._updateClamping()}const T=v.SHOW_INDEX=0,C=v.POSITION_INDEX=1,E=v.PIXEL_OFFSET_INDEX=2,x=v.EYE_OFFSET_INDEX=3,S=v.HORIZONTAL_ORIGIN_INDEX=4,O=v.VERTICAL_ORIGIN_INDEX=5,I=v.SCALE_INDEX=6,D=v.IMAGE_INDEX_INDEX=7,P=v.COLOR_INDEX=8,R=v.ROTATION_INDEX=9,B=v.ALIGNED_AXIS_INDEX=10,M=v.SCALE_BY_DISTANCE_INDEX=11,L=v.TRANSLUCENCY_BY_DISTANCE_INDEX=12,N=v.PIXEL_OFFSET_SCALE_BY_DISTANCE_INDEX=13,F=v.DISTANCE_DISPLAY_CONDITION=14,k=v.DISABLE_DEPTH_DISTANCE=15;v.TEXTURE_COORDINATE_BOUNDS=16;const U=v.SDF_INDEX=17;function V(e,t){const i=e._billboardCollection;(0,d.Z)(i)&&(i._updateBillboard(e,t),e._dirty=!0)}v.NUMBER_OF_PROPERTIES=18,Object.defineProperties(v.prototype,{show:{get:function(){return this._show},set:function(e){c.Z.typeOf.bool("value",e),this._show!==e&&(this._show=e,V(this,T))}},position:{get:function(){return this._position},set:function(e){c.Z.typeOf.object("value",e);const t=this._position;o.Z.equals(t,e)||(o.Z.clone(e,t),o.Z.clone(e,this._actualPosition),this._updateClamping(),V(this,C))}},heightReference:{get:function(){return this._heightReference},set:function(e){c.Z.typeOf.number("value",e),e!==this._heightReference&&(this._heightReference=e,this._updateClamping(),V(this,C))}},pixelOffset:{get:function(){return this._pixelOffset},set:function(e){c.Z.typeOf.object("value",e);const t=this._pixelOffset;r.Z.equals(t,e)||(r.Z.clone(e,t),V(this,E))}},scaleByDistance:{get:function(){return this._scaleByDistance},set:function(e){if((0,d.Z)(e)&&(c.Z.typeOf.object("value",e),e.far<=e.near))throw new f.Z("far distance must be greater than near distance.");const t=this._scaleByDistance;_.Z.equals(t,e)||(this._scaleByDistance=_.Z.clone(e,t),V(this,M))}},translucencyByDistance:{get:function(){return this._translucencyByDistance},set:function(e){if((0,d.Z)(e)&&(c.Z.typeOf.object("value",e),e.far<=e.near))throw new f.Z("far distance must be greater than near distance.");const t=this._translucencyByDistance;_.Z.equals(t,e)||(this._translucencyByDistance=_.Z.clone(e,t),V(this,L))}},pixelOffsetScaleByDistance:{get:function(){return this._pixelOffsetScaleByDistance},set:function(e){if((0,d.Z)(e)&&(c.Z.typeOf.object("value",e),e.far<=e.near))throw new f.Z("far distance must be greater than near distance.");const t=this._pixelOffsetScaleByDistance;_.Z.equals(t,e)||(this._pixelOffsetScaleByDistance=_.Z.clone(e,t),V(this,N))}},eyeOffset:{get:function(){return this._eyeOffset},set:function(e){c.Z.typeOf.object("value",e);const t=this._eyeOffset;o.Z.equals(t,e)||(o.Z.clone(e,t),V(this,x))}},horizontalOrigin:{get:function(){return this._horizontalOrigin},set:function(e){c.Z.typeOf.number("value",e),this._horizontalOrigin!==e&&(this._horizontalOrigin=e,V(this,S))}},verticalOrigin:{get:function(){return this._verticalOrigin},set:function(e){c.Z.typeOf.number("value",e),this._verticalOrigin!==e&&(this._verticalOrigin=e,V(this,O))}},scale:{get:function(){return this._scale},set:function(e){c.Z.typeOf.number("value",e),this._scale!==e&&(this._scale=e,V(this,I))}},color:{get:function(){return this._color},set:function(e){c.Z.typeOf.object("value",e);const t=this._color;u.Z.equals(t,e)||(u.Z.clone(e,t),V(this,P))}},rotation:{get:function(){return this._rotation},set:function(e){c.Z.typeOf.number("value",e),this._rotation!==e&&(this._rotation=e,V(this,R))}},alignedAxis:{get:function(){return this._alignedAxis},set:function(e){c.Z.typeOf.object("value",e);const t=this._alignedAxis;o.Z.equals(t,e)||(o.Z.clone(e,t),V(this,B))}},width:{get:function(){return(0,h.Z)(this._width,this._imageWidth)},set:function(e){(0,d.Z)(e)&&c.Z.typeOf.number("value",e),this._width!==e&&(this._width=e,V(this,D))}},height:{get:function(){return(0,h.Z)(this._height,this._imageHeight)},set:function(e){(0,d.Z)(e)&&c.Z.typeOf.number("value",e),this._height!==e&&(this._height=e,V(this,D))}},sizeInMeters:{get:function(){return this._sizeInMeters},set:function(e){c.Z.typeOf.bool("value",e),this._sizeInMeters!==e&&(this._sizeInMeters=e,V(this,P))}},distanceDisplayCondition:{get:function(){return this._distanceDisplayCondition},set:function(e){if(!p.Z.equals(e,this._distanceDisplayCondition)){if((0,d.Z)(e)&&(c.Z.typeOf.object("value",e),e.far<=e.near))throw new f.Z("far distance must be greater than near distance.");this._distanceDisplayCondition=p.Z.clone(e,this._distanceDisplayCondition),V(this,F)}}},disableDepthTestDistance:{get:function(){return this._disableDepthTestDistance},set:function(e){if((0,d.Z)(e)&&(c.Z.typeOf.number("value",e),e<0))throw new f.Z("disableDepthTestDistance must be greater than or equal to 0.0.");this._disableDepthTestDistance!==e&&(this._disableDepthTestDistance=e,V(this,k))}},id:{get:function(){return this._id},set:function(e){this._id=e,(0,d.Z)(this._pickId)&&(this._pickId.object.id=e)}},pickPrimitive:{get:function(){return this._pickPrimitive},set:function(e){this._pickPrimitive=e,(0,d.Z)(this._pickId)&&(this._pickId.object.primitive=e)}},pickId:{get:function(){return this._pickId}},image:{get:function(){return this._imageId},set:function(e){(0,d.Z)(e)?"string"==typeof e?this.setImage(e,e):e instanceof Z.Z?this.setImage(e.url,e):(0,d.Z)(e.src)?this.setImage(e.src,e):this.setImage((0,l.Z)(),e):(this._imageIndex=-1,this._imageSubRegion=void 0,this._imageId=void 0,this._image=void 0,this._imageIndexPromise=void 0,V(this,D))}},ready:{get:function(){return-1!==this._imageIndex}},_clampedPosition:{get:function(){return this._actualClampedPosition},set:function(e){this._actualClampedPosition=o.Z.clone(e,this._actualClampedPosition),V(this,C)}},clusterShow:{get:function(){return this._clusterShow},set:function(e){this._clusterShow!==e&&(this._clusterShow=e,V(this,T))}},outlineColor:{get:function(){return this._outlineColor},set:function(e){if(!(0,d.Z)(e))throw new f.Z("value is required.");const t=this._outlineColor;u.Z.equals(t,e)||(u.Z.clone(e,t),V(this,U))}},outlineWidth:{get:function(){return this._outlineWidth},set:function(e){this._outlineWidth!==e&&(this._outlineWidth=e,V(this,U))}}}),v.prototype.getPickId=function(e){return(0,d.Z)(this._pickId)||(this._pickId=e.createPickId({primitive:this._pickPrimitive,collection:this._collection,id:this._id})),this._pickId},v.prototype._updateClamping=function(){v._updateClamping(this._billboardCollection,this)};const z=new a.Z,H=new o.Z;v._updateClamping=function(e,t){const i=e._scene;if(!(0,d.Z)(i)||!(0,d.Z)(i.globe)){if(t._heightReference!==g.Z.NONE)throw new f.Z("Height reference is not supported without a scene and globe.");return}const n=i.globe,r=n.ellipsoid,s=n._surface,c=i.frameState.mode,u=c!==t._mode;if(t._mode=c,(t._heightReference===g.Z.NONE||u)&&(0,d.Z)(t._removeCallbackFunc)&&(t._removeCallbackFunc(),t._removeCallbackFunc=void 0,t._clampedPosition=void 0),t._heightReference===g.Z.NONE||!(0,d.Z)(t._position))return;const l=r.cartesianToCartographic(t._position);if(!(0,d.Z)(l))return void(t._actualClampedPosition=void 0);function h(e){if(t._heightReference===g.Z.RELATIVE_TO_GROUND)if(t._mode===b.Z.SCENE3D){const t=r.cartesianToCartographic(e,z);t.height+=l.height,r.cartographicToCartesian(t,e)}else e.x+=l.height;t._clampedPosition=o.Z.clone(e,t._clampedPosition)}(0,d.Z)(t._removeCallbackFunc)&&t._removeCallbackFunc(),t._removeCallbackFunc=s.updateHeight(l,h),a.Z.clone(l,z);const p=n.getHeight(l);(0,d.Z)(p)&&(z.height=p),r.cartographicToCartesian(z,H),h(H)},v.prototype._loadImage=function(){const e=this._billboardCollection._textureAtlas,t=this._imageId,i=this._image,r=this._imageSubRegion;let o;if((0,d.Z)(i)&&(o=e.addImage(t,i)),(0,d.Z)(r)&&(o=e.addSubRegion(t,r)),this._imageIndexPromise=o,!(0,d.Z)(o))return;const s=this;o.then((function(o){if(s._imageId!==t||s._image!==i||!n.Z.equals(s._imageSubRegion,r))return;const a=e.textureCoordinates[o];s._imageWidth=e.texture.width*a.width,s._imageHeight=e.texture.height*a.height,s._imageIndex=o,s._ready=!0,s._image=void 0,s._imageIndexPromise=void 0,V(s,D)})).otherwise((function(e){console.error("Error loading image for billboard: "+e),s._imageIndexPromise=void 0}))},v.prototype.setImage=function(e,t){if(!(0,d.Z)(e))throw new f.Z("id is required.");if(!(0,d.Z)(t))throw new f.Z("image is required.");this._imageId!==e&&(this._imageIndex=-1,this._imageSubRegion=void 0,this._imageId=e,this._image=t,(0,d.Z)(this._billboardCollection._textureAtlas)&&this._loadImage())},v.prototype.setImageSubRegion=function(e,t){if(!(0,d.Z)(e))throw new f.Z("id is required.");if(!(0,d.Z)(t))throw new f.Z("subRegion is required.");this._imageId===e&&n.Z.equals(this._imageSubRegion,t)||(this._imageIndex=-1,this._imageId=e,this._imageSubRegion=n.Z.clone(t),(0,d.Z)(this._billboardCollection._textureAtlas)&&this._loadImage())},v.prototype._setTranslate=function(e){if(!(0,d.Z)(e))throw new f.Z("value is required.");const t=this._translate;r.Z.equals(t,e)||(r.Z.clone(e,t),V(this,E))},v.prototype._getActualPosition=function(){return(0,d.Z)(this._clampedPosition)?this._clampedPosition:this._actualPosition},v.prototype._setActualPosition=function(e){(0,d.Z)(this._clampedPosition)||o.Z.clone(e,this._actualPosition),V(this,C)};const G=new s.Z;v._computeActualPosition=function(e,t,i,n){return(0,d.Z)(e._clampedPosition)?(i.mode!==e._mode&&e._updateClamping(),e._clampedPosition):i.mode===b.Z.SCENE3D?t:(m.Z.multiplyByPoint(n,t,G),A.Z.computeActualWgs84Position(i,G))};const q=new o.Z;v._computeScreenSpacePosition=function(e,t,i,n,o,s){const a=m.Z.multiplyByPoint(e,t,q),c=A.Z.wgs84WithEyeOffsetToWindowCoordinates(o,a,i,s);if((0,d.Z)(c))return r.Z.add(c,n,c),c};const j=new r.Z(0,0);v.prototype.computeScreenSpacePosition=function(e,t){const i=this._billboardCollection;if((0,d.Z)(t)||(t=new r.Z),!(0,d.Z)(i))throw new f.Z("Billboard must be in a collection. Was it removed?");if(!(0,d.Z)(e))throw new f.Z("scene is required.");r.Z.clone(this._pixelOffset,j),r.Z.add(j,this._translate,j);let n=i.modelMatrix,o=this._position;if((0,d.Z)(this._clampedPosition)&&(o=this._clampedPosition,e.mode!==b.Z.SCENE3D)){const t=e.mapProjection,i=t.ellipsoid,r=t.unproject(o,z);o=i.cartographicToCartesian(r,q),n=m.Z.IDENTITY}return v._computeScreenSpacePosition(n,o,this._eyeOffset,j,e,t)},v.getScreenSpaceBoundingBox=function(e,t,i){let r=e.width,o=e.height;const s=e.scale;r*=s,o*=s;let a=t.x;e.horizontalOrigin===y.Z.RIGHT?a-=r:e.horizontalOrigin===y.Z.CENTER&&(a-=.5*r);let c=t.y;return e.verticalOrigin===w.Z.BOTTOM||e.verticalOrigin===w.Z.BASELINE?c-=o:e.verticalOrigin===w.Z.CENTER&&(c-=.5*o),(0,d.Z)(i)||(i=new n.Z),i.x=a,i.y=c,i.width=r,i.height=o,i},v.prototype.equals=function(e){return this===e||(0,d.Z)(e)&&this._id===e._id&&o.Z.equals(this._position,e._position)&&this._imageId===e._imageId&&this._show===e._show&&this._scale===e._scale&&this._verticalOrigin===e._verticalOrigin&&this._horizontalOrigin===e._horizontalOrigin&&this._heightReference===e._heightReference&&n.Z.equals(this._imageSubRegion,e._imageSubRegion)&&u.Z.equals(this._color,e._color)&&r.Z.equals(this._pixelOffset,e._pixelOffset)&&r.Z.equals(this._translate,e._translate)&&o.Z.equals(this._eyeOffset,e._eyeOffset)&&_.Z.equals(this._scaleByDistance,e._scaleByDistance)&&_.Z.equals(this._translucencyByDistance,e._translucencyByDistance)&&_.Z.equals(this._pixelOffsetScaleByDistance,e._pixelOffsetScaleByDistance)&&p.Z.equals(this._distanceDisplayCondition,e._distanceDisplayCondition)&&this._disableDepthTestDistance===e._disableDepthTestDistance},v.prototype._destroy=function(){(0,d.Z)(this._customData)&&(this._billboardCollection._scene.globe._surface.removeTileCustomData(this._customData),this._customData=void 0),(0,d.Z)(this._removeCallbackFunc)&&(this._removeCallbackFunc(),this._removeCallbackFunc=void 0),this.image=void 0,this._pickId=this._pickId&&this._pickId.destroy(),this._billboardCollection=void 0};const W=v},631754:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Re});var n=i(247976),r=i(360791),o=i(337968),s=i(919382),a=i(357299),c=i(545125),u=i(997274),l=i(406144),h=i(426468),d=i(54879),f=i(446938),p=i(275949),m=i(546135),_=i(362017),Z=i(583917),g=i(619287),y=i(636807),b=i(50720),A=i(994589),w=i(247913),v=i(842649),T=i(364232),C=i(928096),E=i(279427),x=i(311638),S=i(825021),O=i(719949),I=i(959064),D=i(451356),P=i(593478),R=i(110499),B=i(121015),M=i(506678),L=i(882852),N=i(816471),F=i(825497);const k=I.Z.SHOW_INDEX,U=I.Z.POSITION_INDEX,V=I.Z.PIXEL_OFFSET_INDEX,z=I.Z.EYE_OFFSET_INDEX,H=I.Z.HORIZONTAL_ORIGIN_INDEX,G=I.Z.VERTICAL_ORIGIN_INDEX,q=I.Z.SCALE_INDEX,j=I.Z.IMAGE_INDEX_INDEX,W=I.Z.COLOR_INDEX,K=I.Z.ROTATION_INDEX,Y=I.Z.ALIGNED_AXIS_INDEX,X=I.Z.SCALE_BY_DISTANCE_INDEX,J=I.Z.TRANSLUCENCY_BY_DISTANCE_INDEX,Q=I.Z.PIXEL_OFFSET_SCALE_BY_DISTANCE_INDEX,$=I.Z.DISTANCE_DISPLAY_CONDITION,ee=I.Z.DISABLE_DEPTH_DISTANCE,te=I.Z.TEXTURE_COORDINATE_BOUNDS,ie=I.Z.SDF_INDEX,ne=I.Z.NUMBER_OF_PROPERTIES;let re;const oe={positionHighAndScale:0,positionLowAndRotation:1,compressedAttribute0:2,compressedAttribute1:3,compressedAttribute2:4,eyeOffset:5,scaleByDistance:6,pixelOffsetScaleByDistance:7,compressedAttribute3:8,textureCoordinateBoundsOrLabelTranslate:9,a_batchId:10,sdf:11},se={direction:0,positionHighAndScale:1,positionLowAndRotation:2,compressedAttribute0:3,compressedAttribute1:4,compressedAttribute2:5,eyeOffset:6,scaleByDistance:7,pixelOffsetScaleByDistance:8,compressedAttribute3:9,textureCoordinateBoundsOrLabelTranslate:10,a_batchId:11,sdf:12};function ae(e){e=(0,l.Z)(e,l.Z.EMPTY_OBJECT),this._scene=e.scene,this._batchTable=e.batchTable,this._textureAtlas=void 0,this._textureAtlasGUID=void 0,this._destroyTextureAtlas=!0,this._sp=void 0,this._spTranslucent=void 0,this._rsOpaque=void 0,this._rsTranslucent=void 0,this._vaf=void 0,this._billboards=[],this._billboardsToUpdate=[],this._billboardsToUpdateIndex=0,this._billboardsRemoved=!1,this._createVertexArray=!1,this._shaderRotation=!1,this._compiledShaderRotation=!1,this._shaderAlignedAxis=!1,this._compiledShaderAlignedAxis=!1,this._shaderScaleByDistance=!1,this._compiledShaderScaleByDistance=!1,this._shaderTranslucencyByDistance=!1,this._compiledShaderTranslucencyByDistance=!1,this._shaderPixelOffsetScaleByDistance=!1,this._compiledShaderPixelOffsetScaleByDistance=!1,this._shaderDistanceDisplayCondition=!1,this._compiledShaderDistanceDisplayCondition=!1,this._shaderDisableDepthDistance=!1,this._compiledShaderDisableDepthDistance=!1,this._shaderClampToGround=!1,this._compiledShaderClampToGround=!1,this._propertiesChanged=new Uint32Array(ne),this._maxSize=0,this._maxEyeOffset=0,this._maxScale=1,this._maxPixelOffset=0,this._allHorizontalCenter=!0,this._allVerticalCenter=!0,this._allSizedInMeters=!0,this._baseVolume=new r.Z,this._baseVolumeWC=new r.Z,this._baseVolume2D=new r.Z,this._boundingVolume=new r.Z,this._boundingVolumeDirty=!1,this._colorCommands=[],this.show=(0,l.Z)(e.show,!0),this.modelMatrix=Z.Z.clone((0,l.Z)(e.modelMatrix,Z.Z.IDENTITY)),this._modelMatrix=Z.Z.clone(Z.Z.IDENTITY),this.debugShowBoundingVolume=(0,l.Z)(e.debugShowBoundingVolume,!1),this.debugShowTextureAtlas=(0,l.Z)(e.debugShowTextureAtlas,!1),this.blendOption=(0,l.Z)(e.blendOption,P.Z.OPAQUE_AND_TRANSLUCENT),this._blendOption=void 0,this._mode=M.Z.SCENE3D,this._buffersUsage=[b.Z.STATIC_DRAW,b.Z.STATIC_DRAW,b.Z.STATIC_DRAW,b.Z.STATIC_DRAW,b.Z.STATIC_DRAW,b.Z.STATIC_DRAW,b.Z.STATIC_DRAW,b.Z.STATIC_DRAW,b.Z.STATIC_DRAW,b.Z.STATIC_DRAW,b.Z.STATIC_DRAW,b.Z.STATIC_DRAW,b.Z.STATIC_DRAW,b.Z.STATIC_DRAW,b.Z.STATIC_DRAW,b.Z.STATIC_DRAW],this._highlightColor=c.Z.clone(c.Z.WHITE);const t=this;this._uniforms={u_atlas:function(){return t._textureAtlas.texture},u_highlightColor:function(){return t._highlightColor}};const i=this._scene;(0,h.Z)(i)&&(0,h.Z)(i.terrainProviderChanged)&&(this._removeCallbackFunc=i.terrainProviderChanged.addEventListener((function(){const e=this._billboards,t=e.length;for(let i=0;i0)&&(e._shaderDisableDepthDistance=!0,d===Number.POSITIVE_INFINITY&&(d=-1)),(0,h.Z)(r._labelDimensions))Z=r._labelDimensions.x,m=r._labelDimensions.y;else{let t=0,n=0;const o=r._imageIndex;if(-1!==o){const e=i[o];if(!(0,h.Z)(e))throw new f.Z("Invalid billboard image index: "+o);t=e.height,n=e.width}m=Math.round((0,l.Z)(r.height,e._textureAtlas.texture.dimensions.y*t));const s=e._textureAtlas.texture.width;Z=Math.round((0,l.Z)(r.width,s*n))}const g=Math.floor(_.Z.clamp(Z,0,ye)),y=Math.floor(_.Z.clamp(m,0,ye)),b=g*ye+y;e._instanced?(o=r._index,s(o,a,c,d,b)):(o=4*r._index,s(o+0,a,c,d,b),s(o+1,a,c,d,b),s(o+2,a,c,d,b),s(o+3,a,c,d,b))}function Se(e,t,i,n,r){if(r.heightReference===R.Z.CLAMP_TO_GROUND){const i=e._scene,n=t.context,r=t.globeTranslucencyState.translucent,o=(0,h.Z)(i.globe)&&i.globe.depthTestAgainstTerrain;e._shaderClampToGround=n.depthTexture&&!r&&o}let o;const s=n[re.textureCoordinateBoundsOrLabelTranslate];if(A.Z.maximumVertexTextureImageUnits>0){let t=0,i=0;return(0,h.Z)(r._labelTranslate)&&(t=r._labelTranslate.x,i=r._labelTranslate.y),void(e._instanced?(o=r._index,s(o,t,i,0,0)):(o=4*r._index,s(o+0,t,i,0,0),s(o+1,t,i,0,0),s(o+2,t,i,0,0),s(o+3,t,i,0,0)))}let a=0,c=0,u=0,l=0;const d=r._imageIndex;if(-1!==d){const e=i[d];if(!(0,h.Z)(e))throw new f.Z("Invalid billboard image index: "+d);a=e.x,c=e.y,u=e.width,l=e.height}const p=a+u,m=c+l;e._instanced?(o=r._index,s(o,a,c,p,m)):(o=4*r._index,s(o+0,a,c,p,m),s(o+1,a,c,p,m),s(o+2,a,c,p,m),s(o+3,a,c,p,m))}function Oe(e,t,i,n,r){if(!e._sdf)return;let o;const s=n[re.sdf],a=r.outlineColor,u=r.outlineWidth,l=c.Z.floatToByte(a.red),h=c.Z.floatToByte(a.green),d=c.Z.floatToByte(a.blue),f=l*ge+h*be+d,p=u/L.Z.RADIUS,m=c.Z.floatToByte(a.alpha)*ge+c.Z.floatToByte(p)*be;e._instanced?(o=r._index,s(o,f,m)):(o=4*r._index,s(o+0,f+0,m),s(o+1,f+2,m),s(o+2,f+3,m),s(o+3,f+1,m))}function Ie(e,t,i,n,r){me(e,0,0,n,r),Ae(e,0,i,n,r),we(e,0,i,n,r),ve(e,t,i,n,r),Te(e,0,i,n,r),Ce(e,0,0,n,r),Ee(e,0,0,n,r),xe(e,t,i,n,r),Se(e,t,i,n,r),function(e,t,i,n,r){if(!(0,h.Z)(e._batchTable))return;const o=n[re.a_batchId],s=r._batchIndex;let a;e._instanced?(a=r._index,o(a,s)):(a=4*r._index,o(a+0,s),o(a+1,s),o(a+2,s),o(a+3,s))}(e,0,0,n,r),Oe(e,0,0,n,r)}function De(e,t,i,n,o,s){let a;n.mode===M.Z.SCENE3D?(a=e._baseVolume,e._boundingVolumeDirty=!0):a=e._baseVolume2D;const c=[];for(let e=0;e0){this._vaf=function(e,t,i,n,r,o){const s=[{index:re.positionHighAndScale,componentsPerAttribute:4,componentDatatype:u.Z.FLOAT,usage:i[U]},{index:re.positionLowAndRotation,componentsPerAttribute:4,componentDatatype:u.Z.FLOAT,usage:i[U]},{index:re.compressedAttribute0,componentsPerAttribute:4,componentDatatype:u.Z.FLOAT,usage:i[V]},{index:re.compressedAttribute1,componentsPerAttribute:4,componentDatatype:u.Z.FLOAT,usage:i[J]},{index:re.compressedAttribute2,componentsPerAttribute:4,componentDatatype:u.Z.FLOAT,usage:i[W]},{index:re.eyeOffset,componentsPerAttribute:4,componentDatatype:u.Z.FLOAT,usage:i[z]},{index:re.scaleByDistance,componentsPerAttribute:4,componentDatatype:u.Z.FLOAT,usage:i[X]},{index:re.pixelOffsetScaleByDistance,componentsPerAttribute:4,componentDatatype:u.Z.FLOAT,usage:i[Q]},{index:re.compressedAttribute3,componentsPerAttribute:4,componentDatatype:u.Z.FLOAT,usage:i[$]},{index:re.textureCoordinateBoundsOrLabelTranslate,componentsPerAttribute:4,componentDatatype:u.Z.FLOAT,usage:i[te]}];n&&s.push({index:re.direction,componentsPerAttribute:2,componentDatatype:u.Z.FLOAT,vertexBuffer:fe(e)}),(0,h.Z)(r)&&s.push({index:re.a_batchId,componentsPerAttribute:1,componentDatatype:u.Z.FLOAT,bufferUsage:b.Z.STATIC_DRAW}),o&&s.push({index:re.sdf,componentsPerAttribute:2,componentDatatype:u.Z.FLOAT,usage:i[ie]});const a=n?t:4*t;return new x.Z(e,s,a,n)}(n,i,this._buffersUsage,this._instanced,this._batchTable,this._sdf),p=this._vaf.writers;for(let t=0;t0){const t=Pe;t.length=0,(l[U]||l[K]||l[q])&&t.push(me),(l[j]||l[V]||l[H]||l[G]||l[k])&&(t.push(Ae),this._instanced&&t.push(Te)),(l[j]||l[Y]||l[J])&&(t.push(we),t.push(ve)),(l[j]||l[W])&&t.push(ve),l[z]&&t.push(Te),l[X]&&t.push(Ce),l[Q]&&t.push(Ee),(l[$]||l[ee]||l[j]||l[U])&&t.push(xe),(l[j]||l[U])&&t.push(Se),l[ie]&&t.push(Oe);const r=t.length;if(p=this._vaf.writers,c/i>.1){for(let i=0;i1.5*i&&(a.length=i),!(0,h.Z)(this._vaf)||!(0,h.Z)(this._vaf.va))return;let y;this._boundingVolumeDirty&&(this._boundingVolumeDirty=!1,r.Z.transform(this._baseVolume,this.modelMatrix,this._baseVolumeWC));let I=Z.Z.IDENTITY;e.mode===M.Z.SCENE3D?(I=this.modelMatrix,y=r.Z.clone(this._baseVolumeWC,this._boundingVolume)):y=r.Z.clone(this._baseVolume2D,this._boundingVolume),function(e,t,i){let n=1;e._allSizedInMeters&&0===e._maxPixelOffset||(n=t.camera.getPixelSize(i,t.context.drawingBufferWidth,t.context.drawingBufferHeight));let r=n*e._maxScale*e._maxSize*2;e._allHorizontalCenter&&e._allVerticalCenter&&(r*=.5);const o=n*e._maxPixelOffset+e._maxEyeOffset;i.radius+=r+o}(this,e,y);const R=this._blendOption!==this.blendOption;if(this._blendOption=this.blendOption,R){this._blendOption===P.Z.OPAQUE||this._blendOption===P.Z.OPAQUE_AND_TRANSLUCENT?this._rsOpaque=T.Z.fromCache({depthTest:{enabled:!0,func:g.Z.LESS},depthMask:!0}):this._rsOpaque=void 0;const e=this._blendOption===P.Z.TRANSLUCENT;this._blendOption===P.Z.TRANSLUCENT||this._blendOption===P.Z.OPAQUE_AND_TRANSLUCENT?this._rsTranslucent=T.Z.fromCache({depthTest:{enabled:!0,func:e?g.Z.LEQUAL:g.Z.LESS},depthMask:e,blending:D.Z.ALPHA_BLEND}):this._rsTranslucent=void 0}let B,F,ae,ce,pe;this._shaderDisableDepthDistance=this._shaderDisableDepthDistance||0!==e.minimumDisableDepthTestDistance;const _e=A.Z.maximumVertexTextureImageUnits>0;if(R||this._shaderRotation!==this._compiledShaderRotation||this._shaderAlignedAxis!==this._compiledShaderAlignedAxis||this._shaderScaleByDistance!==this._compiledShaderScaleByDistance||this._shaderTranslucencyByDistance!==this._compiledShaderTranslucencyByDistance||this._shaderPixelOffsetScaleByDistance!==this._compiledShaderPixelOffsetScaleByDistance||this._shaderDistanceDisplayCondition!==this._compiledShaderDistanceDisplayCondition||this._shaderDisableDepthDistance!==this._compiledShaderDisableDepthDistance||this._shaderClampToGround!==this._compiledShaderClampToGround||this._sdf!==this._compiledSDF){B=O.Z,F=S.Z,pe=[],(0,h.Z)(this._batchTable)&&(pe.push("VECTOR_TILE"),B=this._batchTable.getVertexShaderCallback(!1,"a_batchId",void 0)(B),F=this._batchTable.getFragmentShaderCallback(!1,void 0)(F)),ae=new E.Z({defines:pe,sources:[B]}),this._instanced&&ae.defines.push("INSTANCED"),this._shaderRotation&&ae.defines.push("ROTATION"),this._shaderAlignedAxis&&ae.defines.push("ALIGNED_AXIS"),this._shaderScaleByDistance&&ae.defines.push("EYE_DISTANCE_SCALING"),this._shaderTranslucencyByDistance&&ae.defines.push("EYE_DISTANCE_TRANSLUCENCY"),this._shaderPixelOffsetScaleByDistance&&ae.defines.push("EYE_DISTANCE_PIXEL_OFFSET"),this._shaderDistanceDisplayCondition&&ae.defines.push("DISTANCE_DISPLAY_CONDITION"),this._shaderDisableDepthDistance&&ae.defines.push("DISABLE_DEPTH_DISTANCE"),this._shaderClampToGround&&(_e?ae.defines.push("VERTEX_DEPTH_CHECK"):ae.defines.push("FRAGMENT_DEPTH_CHECK"));const e=1-L.Z.CUTOFF;this._sdf&&ae.defines.push("SDF");const t=(0,h.Z)(this._batchTable)?"VECTOR_TILE":"";this._blendOption===P.Z.OPAQUE_AND_TRANSLUCENT&&(ce=new E.Z({defines:["OPAQUE",t],sources:[F]}),this._shaderClampToGround&&(_e?ce.defines.push("VERTEX_DEPTH_CHECK"):ce.defines.push("FRAGMENT_DEPTH_CHECK")),this._sdf&&(ce.defines.push("SDF"),ce.defines.push("SDF_EDGE "+e)),this._sp=C.Z.replaceCache({context:n,shaderProgram:this._sp,vertexShaderSource:ae,fragmentShaderSource:ce,attributeLocations:re}),ce=new E.Z({defines:["TRANSLUCENT",t],sources:[F]}),this._shaderClampToGround&&(_e?ce.defines.push("VERTEX_DEPTH_CHECK"):ce.defines.push("FRAGMENT_DEPTH_CHECK")),this._sdf&&(ce.defines.push("SDF"),ce.defines.push("SDF_EDGE "+e)),this._spTranslucent=C.Z.replaceCache({context:n,shaderProgram:this._spTranslucent,vertexShaderSource:ae,fragmentShaderSource:ce,attributeLocations:re})),this._blendOption===P.Z.OPAQUE&&(ce=new E.Z({defines:[t],sources:[F]}),this._shaderClampToGround&&(_e?ce.defines.push("VERTEX_DEPTH_CHECK"):ce.defines.push("FRAGMENT_DEPTH_CHECK")),this._sdf&&(ce.defines.push("SDF"),ce.defines.push("SDF_EDGE "+e)),this._sp=C.Z.replaceCache({context:n,shaderProgram:this._sp,vertexShaderSource:ae,fragmentShaderSource:ce,attributeLocations:re})),this._blendOption===P.Z.TRANSLUCENT&&(ce=new E.Z({defines:[t],sources:[F]}),this._shaderClampToGround&&(_e?ce.defines.push("VERTEX_DEPTH_CHECK"):ce.defines.push("FRAGMENT_DEPTH_CHECK")),this._sdf&&(ce.defines.push("SDF"),ce.defines.push("SDF_EDGE "+e)),this._spTranslucent=C.Z.replaceCache({context:n,shaderProgram:this._spTranslucent,vertexShaderSource:ae,fragmentShaderSource:ce,attributeLocations:re})),this._compiledShaderRotation=this._shaderRotation,this._compiledShaderAlignedAxis=this._shaderAlignedAxis,this._compiledShaderScaleByDistance=this._shaderScaleByDistance,this._compiledShaderTranslucencyByDistance=this._shaderTranslucencyByDistance,this._compiledShaderPixelOffsetScaleByDistance=this._shaderPixelOffsetScaleByDistance,this._compiledShaderDistanceDisplayCondition=this._shaderDistanceDisplayCondition,this._compiledShaderDisableDepthDistance=this._shaderDisableDepthDistance,this._compiledShaderClampToGround=this._shaderClampToGround,this._compiledSDF=this._sdf}const Ze=e.commandList;if(m.render||m.pick){const t=this._colorCommands,n=this._blendOption===P.Z.OPAQUE,r=this._blendOption===P.Z.OPAQUE_AND_TRANSLUCENT,o=this._vaf.va,s=o.length;let a,c=this._uniforms;(0,h.Z)(this._batchTable)?(c=this._batchTable.getUniformMapCallback()(c),a=this._batchTable.getPickId()):a="v_pickColor",t.length=s;const u=r?2*s:s;for(let e=0;e{"use strict";i.d(t,{Z:()=>v});var n=i(913216),r=i(357299),o=i(846748),s=i(406144),a=i(426468),c=i(446938),u=i(197685),l=i(362017),h=i(523501),d=i(795788),f=i(50128),p=i(723822),m=i(310526),_=i(527758),Z=i(475397),g=i(20387),y=i(616007);function b(e){const t=(e=(0,s.Z)(e,s.Z.EMPTY_OBJECT)).key;if(!(0,a.Z)(e.url))throw new c.Z("options.url is required.");if(!(0,a.Z)(t))throw new c.Z("options.key is required.");this.defaultAlpha=void 0,this.defaultNightAlpha=void 0,this.defaultDayAlpha=void 0,this.defaultBrightness=void 0,this.defaultContrast=void 0,this.defaultHue=void 0,this.defaultSaturation=void 0,this.defaultGamma=1,this.defaultMinificationFilter=void 0,this.defaultMagnificationFilter=void 0,this._key=t,this._resource=d.Z.createIfNeeded(e.url),this._resource.appendForwardSlash(),this._tileProtocol=e.tileProtocol,this._mapStyle=(0,s.Z)(e.mapStyle,Z.Z.AERIAL),this._culture=(0,s.Z)(e.culture,""),this._tileDiscardPolicy=e.tileDiscardPolicy,(0,a.Z)(this._tileDiscardPolicy)||(this._tileDiscardPolicy=new g.Z),this._proxy=e.proxy,this._credit=new o.Z(''),this._tilingScheme=new m.Z({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:2,ellipsoid:e.ellipsoid}),this._tileWidth=void 0,this._tileHeight=void 0,this._maximumLevel=void 0,this._imageUrlTemplate=void 0,this._imageUrlSubdomains=void 0,this._errorEvent=new u.Z,this._ready=!1,this._readyPromise=_.Z.defer();let i=this._tileProtocol;(0,a.Z)(i)?i.length>0&&":"===i[i.length-1]&&(i=i.substr(0,i.length-1)):i="http:"===document.location.protocol?"http":"https";const n=this._resource.getDerivedResource({url:"REST/v1/Imagery/Metadata/"+this._mapStyle,queryParameters:{incl:"ImageryProviders",key:this._key,uriScheme:i}}),r=this;let y;function A(e){if(1!==e.resourceSets.length)return void w();const t=e.resourceSets[0].resources[0];r._tileWidth=t.imageWidth,r._tileHeight=t.imageHeight,r._maximumLevel=t.zoomMax-1,r._imageUrlSubdomains=t.imageUrlSubdomains,r._imageUrlTemplate=t.imageUrl;let i=r._attributionList=t.imageryProviders;i||(i=r._attributionList=[]);for(let e=0,t=i.length;e=n.zoomMin&&t<=n.zoomMax){const e=h.Z.intersection(i,n.bbox,w);(0,a.Z)(e)&&(c=!0)}}c&&n.push(o.credit)}return n}(this._attributionList,i,n);return r},b.prototype.requestImage=function(e,t,i,n){if(!this._ready)throw new c.Z("requestImage must not be called before the imagery provider is ready.");const r=y.Z.loadImage(this,function(e,t,i,n,r){const o=e._imageUrlTemplate,s=e._imageUrlSubdomains,a=(t+i+n)%s.length;return e._resource.getDerivedResource({url:o,request:r,templateValues:{quadkey:b.tileXYToQuadKey(t,i,n),subdomain:s[a],culture:e._culture},queryParameters:{n:"z"}})}(this,e,t,i,n));if((0,a.Z)(r))return r.otherwise((function(e){return(0,a.Z)(e.blob)&&0===e.blob.size?g.Z.EMPTY_IMAGE:_.Z.reject(e)}))},b.prototype.pickFeatures=function(e,t,i,n,r){},b.tileXYToQuadKey=function(e,t,i){let n="";for(let r=i;r>=0;--r){const i=1<=0;--r){const o=1<{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({AERIAL:"Aerial",AERIAL_WITH_LABELS:"AerialWithLabels",AERIAL_WITH_LABELS_ON_DEMAND:"AerialWithLabelsOnDemand",ROAD:"Road",ROAD_ON_DEMAND:"RoadOnDemand",CANVAS_DARK:"CanvasDark",CANVAS_LIGHT:"CanvasLight",CANVAS_GRAY:"CanvasGray",ORDNANCE_SURVEY:"OrdnanceSurvey",COLLINS_BART:"CollinsBart"})},758409:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(619287);const r={ADD:n.Z.FUNC_ADD,SUBTRACT:n.Z.FUNC_SUBTRACT,REVERSE_SUBTRACT:n.Z.FUNC_REVERSE_SUBTRACT,MIN:n.Z.MIN,MAX:n.Z.MAX},o=Object.freeze(r)},601195:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(619287);const r={ZERO:n.Z.ZERO,ONE:n.Z.ONE,SOURCE_COLOR:n.Z.SRC_COLOR,ONE_MINUS_SOURCE_COLOR:n.Z.ONE_MINUS_SRC_COLOR,DESTINATION_COLOR:n.Z.DST_COLOR,ONE_MINUS_DESTINATION_COLOR:n.Z.ONE_MINUS_DST_COLOR,SOURCE_ALPHA:n.Z.SRC_ALPHA,ONE_MINUS_SOURCE_ALPHA:n.Z.ONE_MINUS_SRC_ALPHA,DESTINATION_ALPHA:n.Z.DST_ALPHA,ONE_MINUS_DESTINATION_ALPHA:n.Z.ONE_MINUS_DST_ALPHA,CONSTANT_COLOR:n.Z.CONSTANT_COLOR,ONE_MINUS_CONSTANT_COLOR:n.Z.ONE_MINUS_CONSTANT_COLOR,CONSTANT_ALPHA:n.Z.CONSTANT_ALPHA,ONE_MINUS_CONSTANT_ALPHA:n.Z.ONE_MINUS_CONSTANT_ALPHA,SOURCE_ALPHA_SATURATE:n.Z.SRC_ALPHA_SATURATE},o=Object.freeze(r)},593478:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({OPAQUE:0,TRANSLUCENT:1,OPAQUE_AND_TRANSLUCENT:2})},451356:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(758409),r=i(601195);const o={DISABLED:Object.freeze({enabled:!1}),ALPHA_BLEND:Object.freeze({enabled:!0,equationRgb:n.Z.ADD,equationAlpha:n.Z.ADD,functionSourceRgb:r.Z.SOURCE_ALPHA,functionSourceAlpha:r.Z.ONE,functionDestinationRgb:r.Z.ONE_MINUS_SOURCE_ALPHA,functionDestinationAlpha:r.Z.ONE_MINUS_SOURCE_ALPHA}),PRE_MULTIPLIED_ALPHA_BLEND:Object.freeze({enabled:!0,equationRgb:n.Z.ADD,equationAlpha:n.Z.ADD,functionSourceRgb:r.Z.ONE,functionSourceAlpha:r.Z.ONE,functionDestinationRgb:r.Z.ONE_MINUS_SOURCE_ALPHA,functionDestinationAlpha:r.Z.ONE_MINUS_SOURCE_ALPHA}),ADDITIVE_BLEND:Object.freeze({enabled:!0,equationRgb:n.Z.ADD,equationAlpha:n.Z.ADD,functionSourceRgb:r.Z.SOURCE_ALPHA,functionSourceAlpha:r.Z.ONE,functionDestinationRgb:r.Z.ONE,functionDestinationAlpha:r.Z.ONE})},s=Object.freeze(o)},169526:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(919382),r=i(357299),o=i(406144),s=i(362017);const a=new n.Z(1,1,1);function c(e){e=(0,o.Z)(e,a),r.Z.defined("dimensions",e),r.Z.typeOf.number.greaterThanOrEquals("dimensions.x",e.x,0),r.Z.typeOf.number.greaterThanOrEquals("dimensions.y",e.y,0),r.Z.typeOf.number.greaterThanOrEquals("dimensions.z",e.z,0),this._dimensions=n.Z.clone(e)}Object.defineProperties(c.prototype,{dimensions:{get:function(){return this._dimensions},set:function(e){r.Z.defined("value",e),r.Z.typeOf.number.greaterThanOrEquals("value.x",e.x,0),r.Z.typeOf.number.greaterThanOrEquals("value.y",e.y,0),r.Z.typeOf.number.greaterThanOrEquals("value.z",e.z,0),n.Z.clone(e,this._dimensions)}}});const u=new n.Z;c.prototype.emit=function(e){const t=this._dimensions,i=n.Z.multiplyByScalar(t,.5,u),r=s.Z.randomBetween(-i.x,i.x),o=s.Z.randomBetween(-i.y,i.y),a=s.Z.randomBetween(-i.z,i.z);e.position=n.Z.fromElements(r,o,a,e.position),e.velocity=n.Z.normalize(e.position,e.velocity)};const l=c},867505:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(152124),r=i(426468),o=i(54879),s=i(100883),a=i(884980),c=i(687931),u=i(364232),l=i(270013),h=i(283044),d=i(690709);function f(){this._colorTexture=void 0,this._drawCommand=void 0}Object.defineProperties(f.prototype,{colorTexture:{get:function(){return this._colorTexture}}}),f.prototype.update=function(e){if(!(0,r.Z)(this._colorTexture)){const t=e.context,i=new h.Z({context:t,width:256,height:256,pixelFormat:s.Z.RGBA,pixelDatatype:c.Z.UNSIGNED_BYTE,sampler:l.Z.NEAREST});this._colorTexture=i;const r=new a.Z({context:t,colorTextures:[i],destroyAttachments:!1});!function(e,t,i){const r=t.createViewportQuadCommand(d.Z,{framebuffer:i,renderState:u.Z.fromCache({viewport:new n.Z(0,0,256,256)})});e._drawCommand=r}(this,t,r),this._drawCommand.execute(t),r.destroy(),this._drawCommand.shaderProgram=this._drawCommand.shaderProgram&&this._drawCommand.shaderProgram.destroy()}},f.prototype.isDestroyed=function(){return!1},f.prototype.destroy=function(){return this._colorTexture=this._colorTexture&&this._colorTexture.destroy(),(0,o.Z)(this)};const p=f},357526:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(406144),r=i(426468),o=i(446938),s=i(527758),a=i(81967),c=i(646754);function u(e){const t=(e=(0,n.Z)(e,n.Z.EMPTY_OBJECT)).typedArray,i=e.resource,a=e.cacheKey;if((0,r.Z)(t)===(0,r.Z)(i))throw new o.Z("One of options.typedArray and options.resource must be defined.");this._typedArray=t,this._resource=i,this._cacheKey=a,this._state=c.Z.UNLOADED,this._promise=s.Z.defer()}(0,r.Z)(Object.create)&&(u.prototype=Object.create(a.Z.prototype),u.prototype.constructor=u),Object.defineProperties(u.prototype,{promise:{get:function(){return this._promise.promise}},cacheKey:{get:function(){return this._cacheKey}},typedArray:{get:function(){return this._typedArray}}}),u.prototype.load=function(){(0,r.Z)(this._typedArray)?this._promise.resolve(this):function(e){const t=e._resource;e._state=c.Z.LOADING,u._fetchArrayBuffer(t).then((function(t){e.isDestroyed()||(e._typedArray=new Uint8Array(t),e._state=c.Z.READY,e._promise.resolve(e))})).otherwise((function(i){if(e.isDestroyed())return;e._state=c.Z.FAILED;const n="Failed to load external buffer: "+t.url;e._promise.reject(e.getError(n,i))}))}(this)},u._fetchArrayBuffer=function(e){return e.fetchArrayBuffer()},u.prototype.unload=function(){this._typedArray=void 0}},333473:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Nt});var n=i(360791),r=i(337968),o=i(919382),s=i(114754),a=i(698907),c=i(406144),u=i(426468),l=i(446938),h=i(696047),d=i(253316),f=i(974390),p=i(197685),m=i(485083),_=i(651279),Z=i(80388),g=i(360382),y=i(66172),b=i(362017),A=i(165373),w=i(583917),v=i(610490),T=i(736404),C=i(118121),E=i(129782),x=i(24401),S=i(523501),O=i(358198),I=i(249781),D=i(456157),P=i(506678);function R(e){if(!(0,u.Z)(e))throw new l.Z("scene is required.");this._scene=e,this._transform=w.Z.clone(w.Z.IDENTITY),this._invTransform=w.Z.clone(w.Z.IDENTITY),this._actualTransform=w.Z.clone(w.Z.IDENTITY),this._actualInvTransform=w.Z.clone(w.Z.IDENTITY),this._transformChanged=!1,this.position=new o.Z,this._position=new o.Z,this._positionWC=new o.Z,this._positionCartographic=new a.Z,this._oldPositionWC=void 0,this.positionWCDeltaMagnitude=0,this.positionWCDeltaMagnitudeLastFrame=0,this.timeSinceMoved=0,this._lastMovedTimestamp=0,this.direction=new o.Z,this._direction=new o.Z,this._directionWC=new o.Z,this.up=new o.Z,this._up=new o.Z,this._upWC=new o.Z,this.right=new o.Z,this._right=new o.Z,this._rightWC=new o.Z,this.frustum=new C.Z,this.frustum.aspectRatio=e.drawingBufferWidth/e.drawingBufferHeight,this.frustum.fov=b.Z.toRadians(60),this.defaultMoveAmount=1e5,this.defaultLookAmount=Math.PI/60,this.defaultRotateAmount=Math.PI/3600,this.defaultZoomAmount=1e5,this.constrainedAxis=void 0,this.maximumZoomFactor=1.5,this._moveStart=new p.Z,this._moveEnd=new p.Z,this._changed=new p.Z,this._changedPosition=void 0,this._changedDirection=void 0,this._changedFrustum=void 0,this._changedHeading=void 0,this.percentageChanged=.5,this._viewMatrix=new w.Z,this._invViewMatrix=new w.Z,B(this),this._mode=P.Z.SCENE3D,this._modeChanged=!0;const t=e.mapProjection;this._projection=t,this._maxCoord=t.project(new a.Z(Math.PI,b.Z.PI_OVER_TWO)),this._max2Dfrustum=void 0,Xe(this,R.DEFAULT_VIEW_RECTANGLE,this.position,!0);let i=o.Z.magnitude(this.position);i+=i*R.DEFAULT_VIEW_FACTOR,o.Z.normalize(this.position,this.position),o.Z.multiplyByScalar(this.position,i,this.position)}function B(e){w.Z.computeView(e._position,e._direction,e._up,e._right,e._viewMatrix),w.Z.multiply(e._viewMatrix,e._actualInvTransform,e._viewMatrix),w.Z.inverseTransformation(e._viewMatrix,e._invViewMatrix)}R.TRANSFORM_2D=new w.Z(0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,1),R.TRANSFORM_2D_INVERSE=w.Z.inverseTransformation(R.TRANSFORM_2D,new w.Z),R.DEFAULT_VIEW_RECTANGLE=S.Z.fromDegrees(-95,-20,-70,90),R.DEFAULT_VIEW_FACTOR=.5,R.DEFAULT_OFFSET=new _.Z(0,-b.Z.PI_OVER_FOUR,0),R.prototype.canPreloadFlight=function(){return(0,u.Z)(this._currentFlight)&&this._mode!==P.Z.SCENE2D},R.prototype._updateCameraChanged=function(){const e=this;if(function(e){if((0,u.Z)(e._oldPositionWC)){e.positionWCDeltaMagnitudeLastFrame=e.positionWCDeltaMagnitude;const t=o.Z.subtract(e.positionWC,e._oldPositionWC,e._oldPositionWC);e.positionWCDeltaMagnitude=o.Z.magnitude(t),e._oldPositionWC=o.Z.clone(e.positionWC,e._oldPositionWC),e.positionWCDeltaMagnitude>0?(e.timeSinceMoved=0,e._lastMovedTimestamp=(0,m.Z)()):e.timeSinceMoved=Math.max((0,m.Z)()-e._lastMovedTimestamp,0)/1e3}else e._oldPositionWC=o.Z.clone(e.positionWC,e._oldPositionWC)}(e),0===e._changed.numberOfListeners)return;const t=e.percentageChanged,i=e.heading;(0,u.Z)(e._changedHeading)||(e._changedHeading=i);let n=Math.abs(e._changedHeading-i)%b.Z.TWO_PI;n=n>b.Z.PI?b.Z.TWO_PI-n:n;const r=n/Math.PI;if(r>t&&(e._changed.raiseEvent(r),e._changedHeading=i),e._mode===P.Z.SCENE2D){if(!(0,u.Z)(e._changedFrustum))return e._changedPosition=o.Z.clone(e.position,e._changedPosition),void(e._changedFrustum=e.frustum.clone());const i=e.position,n=e._changedPosition,r=e.frustum,s=e._changedFrustum,a=i.x+r.left,c=i.x+r.right,l=n.x+s.left,h=n.x+s.right,d=i.y+r.bottom,f=i.y+r.top,p=n.y+s.bottom,m=n.y+s.top,_=Math.max(a,l),Z=Math.min(c,h),g=Math.max(d,p),y=Math.min(f,m);let b;if(_>=Z||g>=f)b=1;else{let e=s;ah&&dm&&(e=r),b=1-(Z-_)*(y-g)/((e.right-e.left)*(e.top-e.bottom))}return void(b>t&&(e._changed.raiseEvent(b),e._changedPosition=o.Z.clone(e.position,e._changedPosition),e._changedFrustum=e.frustum.clone(e._changedFrustum)))}if(!(0,u.Z)(e._changedDirection))return e._changedPosition=o.Z.clone(e.positionWC,e._changedPosition),void(e._changedDirection=o.Z.clone(e.directionWC,e._changedDirection));const s=b.Z.acosClamped(o.Z.dot(e.directionWC,e._changedDirection));let a;a=(0,u.Z)(e.frustum.fovy)?s/(.5*e.frustum.fovy):s;const c=o.Z.distance(e.positionWC,e._changedPosition)/e.positionCartographic.height;(a>t||c>t)&&(e._changed.raiseEvent(Math.max(a,c)),e._changedPosition=o.Z.clone(e.positionWC,e._changedPosition),e._changedDirection=o.Z.clone(e.directionWC,e._changedDirection))};const M=new a.Z,L=new o.Z,N=new o.Z,F=new s.Z,k=new s.Z,U=new s.Z,V=new s.Z,z=new s.Z,H=new o.Z;function G(e){const t=e._mode;let i=!1,n=0;t===P.Z.SCENE2D&&(n=e.frustum.right-e.frustum.left,i=n!==e._positionCartographic.height);let r=e._position;const a=!o.Z.equals(r,e.position)||i;a&&(r=o.Z.clone(e.position,e._position));let c=e._direction;const u=!o.Z.equals(c,e.direction);u&&(o.Z.normalize(e.direction,e.direction),c=o.Z.clone(e.direction,e._direction));let l=e._up;const h=!o.Z.equals(l,e.up);h&&(o.Z.normalize(e.up,e.up),l=o.Z.clone(e.up,e._up));let d=e._right;const f=!o.Z.equals(d,e.right);f&&(o.Z.normalize(e.right,e.right),d=o.Z.clone(e.right,e._right));const p=e._transformChanged||e._modeChanged;e._transformChanged=!1,p&&(w.Z.inverseTransformation(e._transform,e._invTransform),e._mode===P.Z.COLUMBUS_VIEW||e._mode===P.Z.SCENE2D?w.Z.equals(w.Z.IDENTITY,e._transform)?w.Z.clone(R.TRANSFORM_2D,e._actualTransform):e._mode===P.Z.COLUMBUS_VIEW?function(e){O.Z.basisTo2D(e._projection,e._transform,e._actualTransform)}(e):function(e){const t=e._projection,i=t.ellipsoid,n=w.Z.getColumn(e._transform,3,F),r=i.cartesianToCartographic(n,M),a=t.project(r,L),c=k;c.x=a.z,c.y=a.x,c.z=a.y,c.w=1;const u=s.Z.clone(s.Z.UNIT_X,z),l=s.Z.add(w.Z.getColumn(e._transform,0,N),n,N);i.cartesianToCartographic(l,r),t.project(r,a);const h=U;h.x=a.z,h.y=a.x,h.z=a.y,h.w=0,o.Z.subtract(h,c,h),h.x=0;const d=V;if(o.Z.magnitudeSquared(h)>b.Z.EPSILON10)o.Z.cross(u,h,d);else{const u=s.Z.add(w.Z.getColumn(e._transform,1,N),n,N);i.cartesianToCartographic(u,r),t.project(r,a),d.x=a.z,d.y=a.x,d.z=a.y,d.w=0,o.Z.subtract(d,c,d),d.x=0,o.Z.magnitudeSquared(d)b.Z.EPSILON2){const t=1/o.Z.magnitudeSquared(l),i=o.Z.dot(l,c)*t,n=o.Z.multiplyByScalar(c,i,H);l=o.Z.normalize(o.Z.subtract(l,n,e._up),e._up),o.Z.clone(l,e.up),d=o.Z.cross(c,l,e._right),o.Z.clone(d,e.right)}}(u||p)&&(e._directionWC=w.Z.multiplyByPointAsVector(m,c,e._directionWC),o.Z.normalize(e._directionWC,e._directionWC)),(h||p)&&(e._upWC=w.Z.multiplyByPointAsVector(m,l,e._upWC),o.Z.normalize(e._upWC,e._upWC)),(f||p)&&(e._rightWC=w.Z.multiplyByPointAsVector(m,d,e._rightWC),o.Z.normalize(e._rightWC,e._rightWC)),(a||u||h||f||p)&&B(e)}function q(e,t){let i;return i=b.Z.equalsEpsilon(Math.abs(e.z),1,b.Z.EPSILON3)?Math.atan2(t.y,t.x)-b.Z.PI_OVER_TWO:Math.atan2(e.y,e.x)-b.Z.PI_OVER_TWO,b.Z.TWO_PI-b.Z.zeroToTwoPi(i)}function j(e){return b.Z.PI_OVER_TWO-b.Z.acosClamped(e.z)}function W(e,t,i){let n=0;return b.Z.equalsEpsilon(Math.abs(e.z),1,b.Z.EPSILON3)||(n=Math.atan2(-i.z,t.z),n=b.Z.zeroToTwoPi(n+b.Z.TWO_PI)),n}const K=new w.Z,Y=new w.Z;Object.defineProperties(R.prototype,{transform:{get:function(){return this._transform}},inverseTransform:{get:function(){return G(this),this._invTransform}},viewMatrix:{get:function(){return G(this),this._viewMatrix}},inverseViewMatrix:{get:function(){return G(this),this._invViewMatrix}},positionCartographic:{get:function(){return G(this),this._positionCartographic}},positionWC:{get:function(){return G(this),this._positionWC}},directionWC:{get:function(){return G(this),this._directionWC}},upWC:{get:function(){return G(this),this._upWC}},rightWC:{get:function(){return G(this),this._rightWC}},heading:{get:function(){if(this._mode!==P.Z.MORPHING){const e=this._projection.ellipsoid,t=w.Z.clone(this._transform,K),i=O.Z.eastNorthUpToFixedFrame(this.positionWC,e,Y);this._setTransform(i);const n=q(this.direction,this.up);return this._setTransform(t),n}}},pitch:{get:function(){if(this._mode!==P.Z.MORPHING){const e=this._projection.ellipsoid,t=w.Z.clone(this._transform,K),i=O.Z.eastNorthUpToFixedFrame(this.positionWC,e,Y);this._setTransform(i);const n=j(this.direction);return this._setTransform(t),n}}},roll:{get:function(){if(this._mode!==P.Z.MORPHING){const e=this._projection.ellipsoid,t=w.Z.clone(this._transform,K),i=O.Z.eastNorthUpToFixedFrame(this.positionWC,e,Y);this._setTransform(i);const n=W(this.direction,this.up,this.right);return this._setTransform(t),n}}},moveStart:{get:function(){return this._moveStart}},moveEnd:{get:function(){return this._moveEnd}},changed:{get:function(){return this._changed}}}),R.prototype.update=function(e){if(!(0,u.Z)(e))throw new l.Z("mode is required.");if(e===P.Z.SCENE2D&&!(this.frustum instanceof T.Z))throw new l.Z("An OrthographicOffCenterFrustum is required in 2D.");if(!(e!==P.Z.SCENE3D&&e!==P.Z.COLUMBUS_VIEW||this.frustum instanceof C.Z||this.frustum instanceof v.Z))throw new l.Z("A PerspectiveFrustum or OrthographicFrustum is required in 3D and Columbus view");let t=!1;if(e!==this._mode&&(this._mode=e,this._modeChanged=e!==P.Z.MORPHING,t=this._mode===P.Z.SCENE2D),t){const e=this._max2Dfrustum=this.frustum.clone();if(!(e instanceof T.Z))throw new l.Z("The camera frustum is expected to be orthographic for 2D camera control.");const t=2,i=e.top/e.right;e.right=this._maxCoord.x*t,e.left=-e.right,e.top=i*e.right,e.bottom=-e.top}this._mode===P.Z.SCENE2D&&Ze(this,this.position)};const X=new o.Z,J=new o.Z,Q=new o.Z;R.prototype._setTransform=function(e){const t=o.Z.clone(this.positionWC,X),i=o.Z.clone(this.upWC,J),n=o.Z.clone(this.directionWC,Q);w.Z.clone(e,this._transform),this._transformChanged=!0,G(this);const r=this._actualInvTransform;w.Z.multiplyByPoint(r,t,this.position),w.Z.multiplyByPointAsVector(r,n,this.direction),w.Z.multiplyByPointAsVector(r,i,this.up),o.Z.cross(this.direction,this.up,this.right),G(this)};const $=new r.Z,ee=new x.Z,te=new o.Z,ie=new o.Z;function ne(e){if(!w.Z.equals(w.Z.IDENTITY,e.transform))return o.Z.magnitude(e.position);const t=e._scene,i=t.globe,n=$;let r,s,a;if(n.x=t.drawingBufferWidth/2,n.y=t.drawingBufferHeight/2,(0,u.Z)(i)){const o=e.getPickRay(n,ee);r=i.pickWorldCoordinates(o,t,!0,te)}if(t.pickPositionSupported&&(s=t.pickPositionWorldCoordinates(n,ie)),(0,u.Z)(r)||(0,u.Z)(s)){const t=(0,u.Z)(s)?o.Z.distance(s,e.positionWC):Number.POSITIVE_INFINITY,i=(0,u.Z)(r)?o.Z.distance(r,e.positionWC):Number.POSITIVE_INFINITY;a=Math.min(t,i)}else a=Math.max(e.positionCartographic.height,0);return a}R.prototype._adjustOrthographicFrustum=function(e){this.frustum instanceof v.Z&&(!e&&this._positionCartographic.height<15e4||(this.frustum.width=ne(this)))};const re=new o.Z,oe=new w.Z,se=new w.Z,ae=new E.Z,ce=new A.Z,ue=new a.Z,le=new o.Z,he=new o.Z,de=new o.Z;function fe(e,t,i,n){const r=o.Z.clone(i.direction,le),s=o.Z.clone(i.up,he);if(e._scene.mode===P.Z.SCENE3D){const i=e._projection.ellipsoid,n=O.Z.eastNorthUpToFixedFrame(t,i,K),o=w.Z.inverseTransformation(n,Y);w.Z.multiplyByPointAsVector(o,r,r),w.Z.multiplyByPointAsVector(o,s,s)}const a=o.Z.cross(r,s,de);return n.heading=q(r,s),n.pitch=j(r),n.roll=W(r,s,a),n}const pe={destination:void 0,orientation:{direction:void 0,up:void 0,heading:void 0,pitch:void 0,roll:void 0},convert:void 0,endTransform:void 0},me=new Z.Z;R.prototype.setView=function(e){e=(0,c.Z)(e,c.Z.EMPTY_OBJECT);let t=(0,c.Z)(e.orientation,c.Z.EMPTY_OBJECT);const i=this._mode;if(i===P.Z.MORPHING)return;(0,u.Z)(e.endTransform)&&this._setTransform(e.endTransform);let n=(0,c.Z)(e.convert,!0),s=(0,c.Z)(e.destination,o.Z.clone(this.positionWC,re));(0,u.Z)(s)&&(0,u.Z)(s.west)&&(s=this.getRectangleCameraCoordinates(s,re),n=!1),(0,u.Z)(t.direction)&&(t=fe(this,s,t,pe.orientation)),me.heading=(0,c.Z)(t.heading,0),me.pitch=(0,c.Z)(t.pitch,-b.Z.PI_OVER_TWO),me.roll=(0,c.Z)(t.roll,0),i===P.Z.SCENE3D?function(e,t,i){const n=w.Z.clone(e.transform,oe),r=O.Z.eastNorthUpToFixedFrame(t,e._projection.ellipsoid,se);e._setTransform(r),o.Z.clone(o.Z.ZERO,e.position),i.heading=i.heading-b.Z.PI_OVER_TWO;const s=E.Z.fromHeadingPitchRoll(i,ae),a=A.Z.fromQuaternion(s,ce);A.Z.getColumn(a,0,e.direction),A.Z.getColumn(a,2,e.up),o.Z.cross(e.direction,e.up,e.right),e._setTransform(n),e._adjustOrthographicFrustum(!0)}(this,s,me):i===P.Z.SCENE2D?function(e,t,i,n){const s=w.Z.clone(e.transform,oe);if(e._setTransform(w.Z.IDENTITY),!o.Z.equals(t,e.positionWC)){if(n){const i=e._projection,n=i.ellipsoid.cartesianToCartographic(t,ue);t=i.project(n,re)}r.Z.clone(t,e.position);const i=.5*-t.z,o=-i,s=e.frustum;if(o>i){const e=s.top/s.right;s.right=o,s.left=i,s.top=s.right*e,s.bottom=-s.top}}if(e._scene.mapMode2D===D.Z.ROTATE){i.heading=i.heading-b.Z.PI_OVER_TWO,i.pitch=-b.Z.PI_OVER_TWO,i.roll=0;const t=E.Z.fromHeadingPitchRoll(i,ae),n=A.Z.fromQuaternion(t,ce);A.Z.getColumn(n,2,e.up),o.Z.cross(e.direction,e.up,e.right)}e._setTransform(s)}(this,s,me,n):function(e,t,i,n){const r=w.Z.clone(e.transform,oe);if(e._setTransform(w.Z.IDENTITY),!o.Z.equals(t,e.positionWC)){if(n){const i=e._projection,n=i.ellipsoid.cartesianToCartographic(t,ue);t=i.project(n,re)}o.Z.clone(t,e.position)}i.heading=i.heading-b.Z.PI_OVER_TWO;const s=E.Z.fromHeadingPitchRoll(i,ae),a=A.Z.fromQuaternion(s,ce);A.Z.getColumn(a,0,e.direction),A.Z.getColumn(a,2,e.up),o.Z.cross(e.direction,e.up,e.right),e._setTransform(r),e._adjustOrthographicFrustum(!0)}(this,s,me,n)};const _e=new o.Z;function Ze(e,t){const i=e._scene.mapMode2D===D.Z.ROTATE,n=e._maxCoord.x,r=e._maxCoord.y;let o,s;i?(s=n,o=-s):(s=t.x-2*n,o=t.x+2*n),t.x>n&&(t.x=s),t.x<-n&&(t.x=o),t.y>r&&(t.y=r),t.y<-r&&(t.y=-r)}R.prototype.flyHome=function(e){const t=this._mode;if(t===P.Z.MORPHING&&this._scene.completeMorph(),t===P.Z.SCENE2D)this.flyTo({destination:R.DEFAULT_VIEW_RECTANGLE,duration:e,endTransform:w.Z.IDENTITY});else if(t===P.Z.SCENE3D){const t=this.getRectangleCameraCoordinates(R.DEFAULT_VIEW_RECTANGLE);let i=o.Z.magnitude(t);i+=i*R.DEFAULT_VIEW_FACTOR,o.Z.normalize(t,t),o.Z.multiplyByScalar(t,i,t),this.flyTo({destination:t,duration:e,endTransform:w.Z.IDENTITY})}else if(t===P.Z.COLUMBUS_VIEW){const t=this._projection.ellipsoid.maximumRadius;let i=new o.Z(0,-1,1);i=o.Z.multiplyByScalar(o.Z.normalize(i,i),5*t,i),this.flyTo({destination:i,duration:e,orientation:{heading:0,pitch:-Math.acos(o.Z.normalize(i,_e).z),roll:0},endTransform:w.Z.IDENTITY,convert:!1})}},R.prototype.worldToCameraCoordinates=function(e,t){if(!(0,u.Z)(e))throw new l.Z("cartesian is required.");return(0,u.Z)(t)||(t=new s.Z),G(this),w.Z.multiplyByVector(this._actualInvTransform,e,t)},R.prototype.worldToCameraCoordinatesPoint=function(e,t){if(!(0,u.Z)(e))throw new l.Z("cartesian is required.");return(0,u.Z)(t)||(t=new o.Z),G(this),w.Z.multiplyByPoint(this._actualInvTransform,e,t)},R.prototype.worldToCameraCoordinatesVector=function(e,t){if(!(0,u.Z)(e))throw new l.Z("cartesian is required.");return(0,u.Z)(t)||(t=new o.Z),G(this),w.Z.multiplyByPointAsVector(this._actualInvTransform,e,t)},R.prototype.cameraToWorldCoordinates=function(e,t){if(!(0,u.Z)(e))throw new l.Z("cartesian is required.");return(0,u.Z)(t)||(t=new s.Z),G(this),w.Z.multiplyByVector(this._actualTransform,e,t)},R.prototype.cameraToWorldCoordinatesPoint=function(e,t){if(!(0,u.Z)(e))throw new l.Z("cartesian is required.");return(0,u.Z)(t)||(t=new o.Z),G(this),w.Z.multiplyByPoint(this._actualTransform,e,t)},R.prototype.cameraToWorldCoordinatesVector=function(e,t){if(!(0,u.Z)(e))throw new l.Z("cartesian is required.");return(0,u.Z)(t)||(t=new o.Z),G(this),w.Z.multiplyByPointAsVector(this._actualTransform,e,t)};const ge=new o.Z;R.prototype.move=function(e,t){if(!(0,u.Z)(e))throw new l.Z("direction is required.");const i=this.position;o.Z.multiplyByScalar(e,t,ge),o.Z.add(i,ge,i),this._mode===P.Z.SCENE2D&&Ze(this,i),this._adjustOrthographicFrustum(!0)},R.prototype.moveForward=function(e){e=(0,c.Z)(e,this.defaultMoveAmount),this._mode===P.Z.SCENE2D?Oe(this,e):this.move(this.direction,e)},R.prototype.moveBackward=function(e){e=(0,c.Z)(e,this.defaultMoveAmount),this._mode===P.Z.SCENE2D?Oe(this,-e):this.move(this.direction,-e)},R.prototype.moveUp=function(e){e=(0,c.Z)(e,this.defaultMoveAmount),this.move(this.up,e)},R.prototype.moveDown=function(e){e=(0,c.Z)(e,this.defaultMoveAmount),this.move(this.up,-e)},R.prototype.moveRight=function(e){e=(0,c.Z)(e,this.defaultMoveAmount),this.move(this.right,e)},R.prototype.moveLeft=function(e){e=(0,c.Z)(e,this.defaultMoveAmount),this.move(this.right,-e)},R.prototype.lookLeft=function(e){e=(0,c.Z)(e,this.defaultLookAmount),this._mode!==P.Z.SCENE2D&&this.look(this.up,-e)},R.prototype.lookRight=function(e){e=(0,c.Z)(e,this.defaultLookAmount),this._mode!==P.Z.SCENE2D&&this.look(this.up,e)},R.prototype.lookUp=function(e){e=(0,c.Z)(e,this.defaultLookAmount),this._mode!==P.Z.SCENE2D&&this.look(this.right,-e)},R.prototype.lookDown=function(e){e=(0,c.Z)(e,this.defaultLookAmount),this._mode!==P.Z.SCENE2D&&this.look(this.right,e)};const ye=new E.Z,be=new A.Z;R.prototype.look=function(e,t){if(!(0,u.Z)(e))throw new l.Z("axis is required.");const i=(0,c.Z)(t,this.defaultLookAmount),n=E.Z.fromAxisAngle(e,-i,ye),r=A.Z.fromQuaternion(n,be),o=this.direction,s=this.up,a=this.right;A.Z.multiplyByVector(r,o,o),A.Z.multiplyByVector(r,s,s),A.Z.multiplyByVector(r,a,a)},R.prototype.twistLeft=function(e){e=(0,c.Z)(e,this.defaultLookAmount),this.look(this.direction,e)},R.prototype.twistRight=function(e){e=(0,c.Z)(e,this.defaultLookAmount),this.look(this.direction,-e)};const Ae=new E.Z,we=new A.Z;R.prototype.rotate=function(e,t){if(!(0,u.Z)(e))throw new l.Z("axis is required.");const i=(0,c.Z)(t,this.defaultRotateAmount),n=E.Z.fromAxisAngle(e,-i,Ae),r=A.Z.fromQuaternion(n,we);A.Z.multiplyByVector(r,this.position,this.position),A.Z.multiplyByVector(r,this.direction,this.direction),A.Z.multiplyByVector(r,this.up,this.up),o.Z.cross(this.direction,this.up,this.right),o.Z.cross(this.right,this.direction,this.up),this._adjustOrthographicFrustum(!1)},R.prototype.rotateDown=function(e){xe(this,e=(0,c.Z)(e,this.defaultRotateAmount))},R.prototype.rotateUp=function(e){xe(this,-(e=(0,c.Z)(e,this.defaultRotateAmount)))};const ve=new o.Z,Te=new o.Z,Ce=new o.Z,Ee=new o.Z;function xe(e,t){const i=e.position;if((0,u.Z)(e.constrainedAxis)&&!o.Z.equalsEpsilon(e.position,o.Z.ZERO,b.Z.EPSILON2)){const n=o.Z.normalize(i,ve),r=o.Z.equalsEpsilon(n,e.constrainedAxis,b.Z.EPSILON2),s=o.Z.equalsEpsilon(n,o.Z.negate(e.constrainedAxis,Ee),b.Z.EPSILON2);if(r||s)(r&&t<0||s&&t>0)&&e.rotate(e.right,t);else{const i=o.Z.normalize(e.constrainedAxis,Te);let r=o.Z.dot(n,i),s=b.Z.acosClamped(r);t>0&&t>s&&(t=s-b.Z.EPSILON4),r=o.Z.dot(n,o.Z.negate(i,Ee)),s=b.Z.acosClamped(r),t<0&&-t>s&&(t=-s+b.Z.EPSILON4);const a=o.Z.cross(i,n,Ce);e.rotate(a,t)}}else e.rotate(e.right,t)}function Se(e,t){(0,u.Z)(e.constrainedAxis)?e.rotate(e.constrainedAxis,t):e.rotate(e.up,t)}function Oe(e,t){const i=e.frustum;if(!(i instanceof T.Z&&(0,u.Z)(i.left)&&(0,u.Z)(i.right)&&(0,u.Z)(i.bottom)&&(0,u.Z)(i.top)))throw new l.Z("The camera frustum is expected to be orthographic for 2D camera control.");let n;if(t*=.5,Math.abs(i.top)+Math.abs(i.bottom)>Math.abs(i.left)+Math.abs(i.right)){let r=i.top-t,o=i.bottom+t,s=e._maxCoord.y;e._scene.mapMode2D===D.Z.ROTATE&&(s*=e.maximumZoomFactor),o>s&&(o=s,r=-s),r<=o&&(r=1,o=-1),n=i.right/i.top,i.top=r,i.bottom=o,i.right=i.top*n,i.left=-i.right}else{let r=i.right-t,o=i.left+t,s=e._maxCoord.x;e._scene.mapMode2D===D.Z.ROTATE&&(s*=e.maximumZoomFactor),r>s&&(r=s,o=-s),r<=o&&(r=1,o=-1),n=i.top/i.right,i.right=r,i.left=o,i.top=i.right*n,i.bottom=-i.top}}function Ie(e,t){e.move(e.direction,t)}R.prototype.rotateRight=function(e){Se(this,-(e=(0,c.Z)(e,this.defaultRotateAmount)))},R.prototype.rotateLeft=function(e){Se(this,e=(0,c.Z)(e,this.defaultRotateAmount))},R.prototype.zoomIn=function(e){e=(0,c.Z)(e,this.defaultZoomAmount),this._mode===P.Z.SCENE2D?Oe(this,e):Ie(this,e)},R.prototype.zoomOut=function(e){e=(0,c.Z)(e,this.defaultZoomAmount),this._mode===P.Z.SCENE2D?Oe(this,-e):Ie(this,-e)},R.prototype.getMagnitude=function(){return this._mode===P.Z.SCENE3D?o.Z.magnitude(this.position):this._mode===P.Z.COLUMBUS_VIEW?Math.abs(this.position.z):this._mode===P.Z.SCENE2D?Math.max(this.frustum.right-this.frustum.left,this.frustum.top-this.frustum.bottom):void 0};const De=new w.Z;R.prototype.lookAt=function(e,t){if(!(0,u.Z)(e))throw new l.Z("target is required");if(!(0,u.Z)(t))throw new l.Z("offset is required");if(this._mode===P.Z.MORPHING)throw new l.Z("lookAt is not supported while morphing.");const i=O.Z.eastNorthUpToFixedFrame(e,d.Z.WGS84,De);this.lookAtTransform(i,t)};const Pe=new o.Z,Re=new E.Z,Be=new E.Z,Me=new A.Z;function Le(e,t,i){t=b.Z.clamp(t,-b.Z.PI_OVER_TWO,b.Z.PI_OVER_TWO),e=b.Z.zeroToTwoPi(e)-b.Z.PI_OVER_TWO;const n=E.Z.fromAxisAngle(o.Z.UNIT_Y,-t,Re),r=E.Z.fromAxisAngle(o.Z.UNIT_Z,-e,Be),s=E.Z.multiply(r,n,r),a=A.Z.fromQuaternion(s,Me),c=o.Z.clone(o.Z.UNIT_X,Pe);return A.Z.multiplyByVector(a,c,c),o.Z.negate(c,c),o.Z.multiplyByScalar(c,i,c),c}R.prototype.lookAtTransform=function(e,t){if(!(0,u.Z)(e))throw new l.Z("transform is required");if(this._mode===P.Z.MORPHING)throw new l.Z("lookAtTransform is not supported while morphing.");if(this._setTransform(e),!(0,u.Z)(t))return;let i;if(i=(0,u.Z)(t.heading)?Le(t.heading,t.pitch,t.range):t,this._mode===P.Z.SCENE2D){r.Z.clone(r.Z.ZERO,this.position),o.Z.negate(i,this.up),this.up.z=0,o.Z.magnitudeSquared(this.up)l&&(l+=b.Z.TWO_PI);const d=.5*(h+l);let p;if(c<-b.Z.PI_OVER_TWO+b.Z.RADIANS_PER_DEGREE&&a>b.Z.PI_OVER_TWO-b.Z.RADIANS_PER_DEGREE)p=0;else{const e=Ne;e.longitude=d,e.latitude=a,e.height=0;const t=Fe;t.longitude=d,t.latitude=c,t.height=0;let i=Ke;(0,u.Z)(i)&&i.ellipsoid===r||(Ke=i=new f.Z(void 0,void 0,r)),i.setEndPoints(e,t),p=i.interpolateUsingFraction(.5,Ne).latitude}const m=Ne;m.longitude=d,m.latitude=p,m.height=0;const _=r.cartographicToCartesian(m,qe),Z=Ne;Z.longitude=l,Z.latitude=a;const g=r.cartographicToCartesian(Z,ke);Z.longitude=h;const y=r.cartographicToCartesian(Z,Ve);Z.longitude=d;const A=r.cartographicToCartesian(Z,He);Z.latitude=c;const w=r.cartographicToCartesian(Z,Ge);Z.longitude=l;const T=r.cartographicToCartesian(Z,ze);Z.longitude=h;const C=r.cartographicToCartesian(Z,Ue);o.Z.subtract(y,_,y),o.Z.subtract(T,_,T),o.Z.subtract(g,_,g),o.Z.subtract(C,_,C),o.Z.subtract(A,_,A),o.Z.subtract(w,_,w);const E=r.geodeticSurfaceNormal(_,s.direction);o.Z.negate(E,E);const x=o.Z.cross(E,o.Z.UNIT_Z,s.right);o.Z.normalize(x,x);const S=o.Z.cross(x,E,s.up);let O;if(e.frustum instanceof v.Z){const t=Math.max(o.Z.distance(g,y),o.Z.distance(T,C)),i=Math.max(o.Z.distance(g,T),o.Z.distance(y,C));let n,r;const s=e.frustum._offCenterFrustum.right/e.frustum._offCenterFrustum.top,a=i*s;t>a?(n=t,r=n/s):(r=i,n=a),O=Math.max(n,r)}else{const t=Math.tan(.5*e.frustum.fovy),i=e.frustum.aspectRatio*t;if(O=Math.max(Ye(E,S,y,t),Ye(E,S,T,t),Ye(E,S,g,t),Ye(E,S,C,t),Ye(E,S,A,t),Ye(E,S,w,t),Ye(E,x,y,i),Ye(E,x,T,i),Ye(E,x,g,i),Ye(E,x,C,i),Ye(E,x,A,i),Ye(E,x,w,i)),c<0&&a>0){const e=Ne;e.longitude=h,e.latitude=0,e.height=0;let n=r.cartographicToCartesian(e,je);o.Z.subtract(n,_,n),O=Math.max(O,Ye(E,S,n,t),Ye(E,x,n,i)),e.longitude=l,n=r.cartographicToCartesian(e,je),o.Z.subtract(n,_,n),O=Math.max(O,Ye(E,S,n,t),Ye(E,x,n,i))}}return o.Z.add(_,o.Z.multiplyByScalar(E,-O,je),i)}const Je=new a.Z,Qe=new o.Z,$e=new o.Z,et=new a.Z,tt=new o.Z,it=new o.Z;R.prototype.getRectangleCameraCoordinates=function(e,t){if(!(0,u.Z)(e))throw new l.Z("rectangle is required");const i=this._mode;return(0,u.Z)(t)||(t=new o.Z),i===P.Z.SCENE3D?Xe(this,e,t):i===P.Z.COLUMBUS_VIEW?function(e,t,i){const n=e._projection;t.west>t.east&&(t=S.Z.MAX_VALUE);const r=e._actualTransform,o=e._actualInvTransform,s=Je;s.longitude=t.east,s.latitude=t.north;const a=n.project(s,Qe);w.Z.multiplyByPoint(r,a,a),w.Z.multiplyByPoint(o,a,a),s.longitude=t.west,s.latitude=t.south;const c=n.project(s,$e);if(w.Z.multiplyByPoint(r,c,c),w.Z.multiplyByPoint(o,c,c),i.x=.5*(a.x-c.x)+c.x,i.y=.5*(a.y-c.y)+c.y,(0,u.Z)(e.frustum.fovy)){const t=Math.tan(.5*e.frustum.fovy),n=e.frustum.aspectRatio*t;i.z=.5*Math.max((a.x-c.x)/n,(a.y-c.y)/t)}else{const e=a.x-c.x,t=a.y-c.y;i.z=Math.max(e,t)}return i}(this,e,t):i===P.Z.SCENE2D?function(e,t,i){const n=e._projection;let r=t.east;t.west>t.east&&(e._scene.mapMode2D===D.Z.INFINITE_SCROLL?r+=b.Z.TWO_PI:r=(t=S.Z.MAX_VALUE).east);let o=et;o.longitude=r,o.latitude=t.north;const s=n.project(o,tt);o.longitude=t.west,o.latitude=t.south;const a=n.project(o,it),c=.5*Math.abs(s.x-a.x);let u,l,h=.5*Math.abs(s.y-a.y);const d=e.frustum.right/e.frustum.top,f=h*d;return c>f?(u=c,l=u/d):(l=h,u=f),h=Math.max(2*u,2*l),i.x=.5*(s.x-a.x)+a.x,i.y=.5*(s.y-a.y)+a.y,o=n.unproject(i,o),o.height=h,n.project(o,i)}(this,e,t):void 0};const nt=new x.Z,rt=new x.Z,ot=new x.Z;R.prototype.pickEllipsoid=function(e,t,i){if(!(0,u.Z)(e))throw new l.Z("windowPosition is required.");const n=this._scene.canvas;if(0!==n.clientWidth&&0!==n.clientHeight){if((0,u.Z)(i)||(i=new o.Z),t=(0,c.Z)(t,d.Z.WGS84),this._mode===P.Z.SCENE3D)i=function(e,t,i,n){i=(0,c.Z)(i,d.Z.WGS84);const r=e.getPickRay(t,nt),o=y.Z.rayEllipsoid(r,i);if(!o)return;const s=o.start>0?o.start:o.stop;return x.Z.getPoint(r,s,n)}(this,e,t,i);else if(this._mode===P.Z.SCENE2D)i=function(e,t,i,n){let r=e.getPickRay(t,rt).origin;r=o.Z.fromElements(r.y,r.z,0,r);const s=i.unproject(r);if(!(s.latitude<-b.Z.PI_OVER_TWO||s.latitude>b.Z.PI_OVER_TWO))return i.ellipsoid.cartographicToCartesian(s,n)}(this,e,this._projection,i);else{if(this._mode!==P.Z.COLUMBUS_VIEW)return;i=function(e,t,i,n){const r=e.getPickRay(t,ot),s=-r.origin.x/r.direction.x;x.Z.getPoint(r,s,n);const a=i.unproject(new o.Z(n.y,n.z,0));if(!(a.latitude<-b.Z.PI_OVER_TWO||a.latitude>b.Z.PI_OVER_TWO||a.longitude<-Math.PI||a.longitude>Math.PI))return i.ellipsoid.cartographicToCartesian(a,n)}(this,e,this._projection,i)}return i}};const st=new o.Z,at=new o.Z,ct=new o.Z,ut=new o.Z;R.prototype.getPickRay=function(e,t){if(!(0,u.Z)(e))throw new l.Z("windowPosition is required.");(0,u.Z)(t)||(t=new x.Z);const i=this.frustum;return(0,u.Z)(i.aspectRatio)&&(0,u.Z)(i.fov)&&(0,u.Z)(i.near)?function(e,t,i){const n=e._scene.canvas,r=n.clientWidth,s=n.clientHeight,a=Math.tan(.5*e.frustum.fovy),c=e.frustum.aspectRatio*a,u=e.frustum.near,l=2/r*t.x-1,h=2/s*(s-t.y)-1,d=e.positionWC;o.Z.clone(d,i.origin);const f=o.Z.multiplyByScalar(e.directionWC,u,st);o.Z.add(d,f,f);const p=o.Z.multiplyByScalar(e.rightWC,l*u*c,at),m=o.Z.multiplyByScalar(e.upWC,h*u*a,ct),_=o.Z.add(f,p,i.direction);return o.Z.add(_,m,_),o.Z.subtract(_,d,_),o.Z.normalize(_,_),i}(this,e,t):function(e,t,i){const n=e._scene.canvas,r=n.clientWidth,s=n.clientHeight;let a=e.frustum;(0,u.Z)(a._offCenterFrustum)&&(a=a._offCenterFrustum);let c=2/r*t.x-1;c*=.5*(a.right-a.left);let l=2/s*(s-t.y)-1;l*=.5*(a.top-a.bottom);const h=i.origin;return o.Z.clone(e.position,h),o.Z.multiplyByScalar(e.right,c,ut),o.Z.add(ut,h,h),o.Z.multiplyByScalar(e.up,l,ut),o.Z.add(ut,h,h),o.Z.clone(e.directionWC,i.direction),e._mode!==P.Z.COLUMBUS_VIEW&&e._mode!==P.Z.SCENE2D||o.Z.fromElements(i.origin.z,i.origin.x,i.origin.y,i.origin),i}(this,e,t)};const lt=new o.Z,ht=new o.Z;R.prototype.distanceToBoundingSphere=function(e){if(!(0,u.Z)(e))throw new l.Z("boundingSphere is required.");const t=o.Z.subtract(this.positionWC,e.center,lt),i=o.Z.multiplyByScalar(this.directionWC,o.Z.dot(t,this.directionWC),ht);return Math.max(0,o.Z.magnitude(i)-e.radius)};const dt=new r.Z;R.prototype.getPixelSize=function(e,t,i){if(!(0,u.Z)(e))throw new l.Z("boundingSphere is required.");if(!(0,u.Z)(t))throw new l.Z("drawingBufferWidth is required.");if(!(0,u.Z)(i))throw new l.Z("drawingBufferHeight is required.");const n=this.distanceToBoundingSphere(e),r=this.frustum.getPixelDimensions(t,i,n,this._scene.pixelRatio,dt);return Math.max(r.x,r.y)};const ft=new o.Z,pt=new o.Z,mt=new o.Z,_t=new o.Z;R.prototype.createCorrectPositionTween=function(e){if(!(0,u.Z)(e))throw new l.Z("duration is required.");if(this._mode===P.Z.COLUMBUS_VIEW)return function(e,t){let i=e.position;const n=e.direction,r=e.worldToCameraCoordinatesVector(o.Z.UNIT_X,ft),s=-o.Z.dot(r,i)/o.Z.dot(r,n),a=o.Z.add(i,o.Z.multiplyByScalar(n,s,pt),pt);e.cameraToWorldCoordinatesPoint(a,a),i=e.cameraToWorldCoordinatesPoint(e.position,mt);const c=Math.tan(.5*e.frustum.fovy),u=e.frustum.aspectRatio*c,l=o.Z.magnitude(o.Z.subtract(i,a,_t)),d=u*l,f=c*l,p=e._maxCoord.x,m=e._maxCoord.y,_=Math.max(d-p,p),Z=Math.max(f-m,m);if(i.z<-_||i.z>_||i.y<-Z||i.y>Z){const n=a.y<-_||a.y>_,r=a.z<-Z||a.z>Z;if(n||r)return function(e,t,i,n,r,s){const a=o.Z.clone(t);return i.y>n?a.y-=i.y-n:i.y<-n&&(a.y+=-n-i.y),i.z>r?a.z-=i.z-r:i.z<-r&&(a.z+=-r-i.z),{easingFunction:h.Z.EXPONENTIAL_OUT,startObject:{time:0},stopObject:{time:1},duration:s,update:function(i){const n=o.Z.lerp(t,a,i.time,new o.Z);e.worldToCameraCoordinatesPoint(n,e.position)}}}(e,i,a,_,Z,t)}}(this,e)};const Zt=new o.Z,gt={destination:void 0,heading:void 0,pitch:void 0,roll:void 0,duration:void 0,complete:void 0,cancel:void 0,endTransform:void 0,maximumHeight:void 0,easingFunction:void 0};function yt(e,t,i){i=_.Z.clone((0,u.Z)(i)?i:R.DEFAULT_OFFSET);const n=e._scene.screenSpaceCameraController.minimumZoomDistance,r=e._scene.screenSpaceCameraController.maximumZoomDistance,o=i.range;if(!(0,u.Z)(o)||0===o){const o=t.radius;0===o?i.range=100:e.frustum instanceof v.Z||e._mode===P.Z.SCENE2D?i.range=function(e,t){let i,n,r=e.frustum;(0,u.Z)(r._offCenterFrustum)&&(r=r._offCenterFrustum);const o=r.right/r.top,s=t*o;return t>s?(i=t,n=i/o):(n=t,i=s),1.5*Math.max(i,n)}(e,o):i.range=function(e,t){const i=e.frustum,n=Math.tan(.5*i.fovy),r=i.aspectRatio*n;return Math.max(t/r,t/n)}(e,o),i.range=b.Z.clamp(i.range,n,r)}return i}R.prototype.cancelFlight=function(){(0,u.Z)(this._currentFlight)&&(this._currentFlight.cancelTween(),this._currentFlight=void 0)},R.prototype.completeFlight=function(){if((0,u.Z)(this._currentFlight)){this._currentFlight.cancelTween();const e={destination:void 0,orientation:{heading:void 0,pitch:void 0,roll:void 0}};e.destination=gt.destination,e.orientation.heading=gt.heading,e.orientation.pitch=gt.pitch,e.orientation.roll=gt.roll,this.setView(e),(0,u.Z)(this._currentFlight.complete)&&this._currentFlight.complete(),this._currentFlight=void 0}},R.prototype.flyTo=function(e){let t=(e=(0,c.Z)(e,c.Z.EMPTY_OBJECT)).destination;if(!(0,u.Z)(t))throw new l.Z("destination is required.");if(this._mode===P.Z.MORPHING)return;this.cancelFlight();let i=(0,c.Z)(e.orientation,c.Z.EMPTY_OBJECT);if((0,u.Z)(i.direction)&&(i=fe(this,t,i,pe.orientation)),(0,u.Z)(e.duration)&&e.duration<=0){const t=pe;return t.destination=e.destination,t.orientation.heading=i.heading,t.orientation.pitch=i.pitch,t.orientation.roll=i.roll,t.convert=e.convert,t.endTransform=e.endTransform,this.setView(t),void("function"==typeof e.complete&&e.complete())}const n=(0,u.Z)(t.west);n&&(t=this.getRectangleCameraCoordinates(t,Zt));const r=this;let o;gt.destination=t,gt.heading=i.heading,gt.pitch=i.pitch,gt.roll=i.roll,gt.duration=e.duration,gt.complete=function(){o===r._currentFlight&&(r._currentFlight=void 0),(0,u.Z)(e.complete)&&e.complete()},gt.cancel=e.cancel,gt.endTransform=e.endTransform,gt.convert=!n&&e.convert,gt.maximumHeight=e.maximumHeight,gt.pitchAdjustHeight=e.pitchAdjustHeight,gt.flyOverLongitude=e.flyOverLongitude,gt.flyOverLongitudeWeight=e.flyOverLongitudeWeight,gt.easingFunction=e.easingFunction;const s=this._scene,a=I.Z.createTween(s,gt);if(0===a.duration)return void("function"==typeof a.complete&&a.complete());o=s.tweens.add(a),this._currentFlight=o;let h=this._scene.preloadFlightCamera;this._mode!==P.Z.SCENE2D&&((0,u.Z)(h)||(h=R.clone(this)),h.setView({destination:t,orientation:i}),this._scene.preloadFlightCullingVolume=h.frustum.computeCullingVolume(h.positionWC,h.directionWC,h.upWC))},R.prototype.viewBoundingSphere=function(e,t){if(!(0,u.Z)(e))throw new l.Z("boundingSphere is required.");if(this._mode===P.Z.MORPHING)throw new l.Z("viewBoundingSphere is not supported while morphing.");t=yt(this,e,t),this.lookAt(e.center,t)};const bt=new w.Z,At=new o.Z,wt=new o.Z,vt=new o.Z,Tt=new o.Z,Ct=new s.Z,Et=new E.Z,xt=new A.Z;R.prototype.flyToBoundingSphere=function(e,t){if(!(0,u.Z)(e))throw new l.Z("boundingSphere is required.");t=(0,c.Z)(t,c.Z.EMPTY_OBJECT);const i=this._mode===P.Z.SCENE2D||this._mode===P.Z.COLUMBUS_VIEW;this._setTransform(w.Z.IDENTITY);const n=yt(this,e,t.offset);let r;r=i?o.Z.multiplyByScalar(o.Z.UNIT_Z,n.range,At):Le(n.heading,n.pitch,n.range);const s=O.Z.eastNorthUpToFixedFrame(e.center,d.Z.WGS84,bt);let a,h;if(w.Z.multiplyByPoint(s,r,r),!i){if(a=o.Z.subtract(e.center,r,wt),o.Z.normalize(a,a),h=w.Z.multiplyByPointAsVector(s,o.Z.UNIT_Z,vt),1-Math.abs(o.Z.dot(a,h))b.Z.PI?f+=b.Z.TWO_PI-i:f+=i,p=t}return b.Z.equalsEpsilon(Math.abs(f),b.Z.TWO_PI,b.Z.EPSILON9)&&(t.west=-b.Z.PI,t.east=b.Z.PI,Mt[0].latitude>=0?t.north=b.Z.PI_OVER_TWO:t.south=-b.Z.PI_OVER_TWO),t},R.prototype.switchToPerspectiveFrustum=function(){if(this._mode===P.Z.SCENE2D||this.frustum instanceof C.Z)return;const e=this._scene;this.frustum=new C.Z,this.frustum.aspectRatio=e.drawingBufferWidth/e.drawingBufferHeight,this.frustum.fov=b.Z.toRadians(60)},R.prototype.switchToOrthographicFrustum=function(){if(this._mode===P.Z.SCENE2D||this.frustum instanceof v.Z)return;const e=ne(this),t=this._scene;this.frustum=new v.Z,this.frustum.aspectRatio=t.drawingBufferWidth/t.drawingBufferHeight,this.frustum.width=e},R.clone=function(e,t){return(0,u.Z)(t)||(t=new R(e._scene)),o.Z.clone(e.position,t.position),o.Z.clone(e.direction,t.direction),o.Z.clone(e.up,t.up),o.Z.clone(e.right,t.right),w.Z.clone(e._transform,t.transform),t._transformChanged=!0,t.frustum=e.frustum.clone(),t};const Nt=R},121033:(e,t,i)=>{"use strict";i.d(t,{Z:()=>y});var n=i(337968),r=i(426468),o=i(54879),s=i(446938),a=i(734676),c=i(362017),u=i(940263),l=i(122818),h=i(919963);function d(e,t){let i=e;return(0,r.Z)(t)&&(i+="+"+t),i}function f(e,t,i){const o=d(h.Z.PINCH,t),s=e._update,a=e._isDown,c=e._eventStartPosition,u=e._pressTime,f=e._releaseTime;s[o]=!0,a[o]=!1,c[o]=new n.Z;let p=e._movement[o];(0,r.Z)(p)||(p=e._movement[o]={}),p.distance={startPosition:new n.Z,endPosition:new n.Z},p.angleAndHeight={startPosition:new n.Z,endPosition:new n.Z},p.prevAngle=0,e._eventHandler.setInputAction((function(t){e._buttonsDown++,a[o]=!0,u[o]=new Date,n.Z.lerp(t.position1,t.position2,.5,c[o])}),l.Z.PINCH_START,t),e._eventHandler.setInputAction((function(){e._buttonsDown=Math.max(e._buttonsDown-1,0),a[o]=!1,f[o]=new Date}),l.Z.PINCH_END,t),e._eventHandler.setInputAction((function(e){if(a[o]){s[o]?(t=e,r=p,n.Z.clone(t.distance.startPosition,r.distance.startPosition),n.Z.clone(t.distance.endPosition,r.distance.endPosition),n.Z.clone(t.angleAndHeight.startPosition,r.angleAndHeight.startPosition),n.Z.clone(t.angleAndHeight.endPosition,r.angleAndHeight.endPosition),s[o]=!1,p.prevAngle=p.angleAndHeight.startPosition.x):(n.Z.clone(e.distance.endPosition,p.distance.endPosition),n.Z.clone(e.angleAndHeight.endPosition,p.angleAndHeight.endPosition));let a=p.angleAndHeight.endPosition.x;const c=p.prevAngle,u=2*Math.PI;for(;a>=c+Math.PI;)a-=u;for(;a0||e}}}),g.prototype.isMoving=function(e,t){if(!(0,r.Z)(e))throw new s.Z("type is required.");const i=d(e,t);return!this._update[i]},g.prototype.getMovement=function(e,t){if(!(0,r.Z)(e))throw new s.Z("type is required.");const i=d(e,t);return this._movement[i]},g.prototype.getLastMovement=function(e,t){if(!(0,r.Z)(e))throw new s.Z("type is required.");const i=d(e,t),n=this._lastMovement[i];if(n.valid)return n},g.prototype.isButtonDown=function(e,t){if(!(0,r.Z)(e))throw new s.Z("type is required.");const i=d(e,t);return this._isDown[i]},g.prototype.getStartMousePosition=function(e,t){if(!(0,r.Z)(e))throw new s.Z("type is required.");if(e===h.Z.WHEEL)return this._currentMousePosition;const i=d(e,t);return this._eventStartPosition[i]},g.prototype.getButtonPressTime=function(e,t){if(!(0,r.Z)(e))throw new s.Z("type is required.");const i=d(e,t);return this._pressTime[i]},g.prototype.getButtonReleaseTime=function(e,t){if(!(0,r.Z)(e))throw new s.Z("type is required.");const i=d(e,t);return this._releaseTime[i]},g.prototype.reset=function(){for(const e in this._update)this._update.hasOwnProperty(e)&&(this._update[e]=!0)},g.prototype.isDestroyed=function(){return!1},g.prototype.destroy=function(){return this._eventHandler=this._eventHandler&&this._eventHandler.destroy(),(0,o.Z)(this)};const y=g},919963:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({LEFT_DRAG:0,RIGHT_DRAG:1,MIDDLE_DRAG:2,WHEEL:3,PINCH:4})},249781:(e,t,i)=>{"use strict";i.d(t,{Z:()=>I});var n=i(337968),r=i(919382),o=i(698907),s=i(406144),a=i(426468),c=i(446938),u=i(696047),l=i(362017),h=i(118121),d=i(348808),f=i(506678);const p={},m=new r.Z,_=new r.Z;function Z(e,t,i,n){if((0,a.Z)(n)&&i(.5)>n){const n=i(0),r=i(1),o=i(.5),s=o-n,a=o-r;return function(o){const c=i(o);if(o<=.5){const t=(c-n)/s;return l.Z.lerp(e,-l.Z.PI_OVER_TWO,t)}const u=(c-r)/a;return l.Z.lerp(-l.Z.PI_OVER_TWO,t,1-u)}}return function(i){return l.Z.lerp(e,t,i)}}function g(e,t,i,n,o){let s=o;const c=Math.max(i,n);if(!(0,a.Z)(s)){const i=e.position,n=t,o=e.up,a=e.right,c=e.frustum,u=r.Z.subtract(i,n,m),l=r.Z.magnitude(r.Z.multiplyByScalar(o,r.Z.dot(u,o),_)),f=r.Z.magnitude(r.Z.multiplyByScalar(a,r.Z.dot(u,a),_));s=Math.min(.2*function(e,t,i){let n,r,o;if(e instanceof h.Z){const s=Math.tan(.5*e.fovy);return n=e.near,r=e.near*s,o=e.aspectRatio*r,Math.max(t*n/o,i*n/r)}return e instanceof d.Z?(n=e.near,r=e.top,o=e.right,Math.max(t*n/o,i*n/r)):Math.max(t,i)}(c,l,f),1e9)}if(ce+Math.PI?e+=l.Z.TWO_PI:t=t&&e<=i;if((0,a.Z)(d)){const e=Math.abs(_.longitude-C.longitude),t=l.Z.TWO_PI-e;(n?e:t)<(n?t:e)*d&&!n&&(E=!0)}else n||(E=!0)}E?function(e,t){e.longitudel.Z.PI&&(t.longitude+=l.Z.TWO_PI)}(_,C);const x=g(p,i,_.height,C.height,u),S=Z(b,s,x,f);return function(){const e=_.longitude,i=C.longitude,o=_.latitude,s=C.latitude;return function(a){const u=a.time/t,h=r.Z.fromRadians(l.Z.lerp(e,i,u),l.Z.lerp(o,s,u),x(u),m);p.setView({destination:h,orientation:{heading:l.Z.lerp(A,n,u),pitch:S(u),roll:l.Z.lerp(T,c,u)}})}}()}function C(e,t,i,o,s,a,c){const u=e.camera,h=r.Z.clone(u.position,b),d=y(u.heading,o),f=u.frustum.right-u.frustum.left,p=g(u,i,f,i.z,c);return function(e){const r=e.time/t;u.setView({orientation:{heading:l.Z.lerp(d,o,r)}}),n.Z.lerp(h,i,r,u.position);const s=p(r),a=u.frustum,c=a.top/a.right,f=.5*(s-(a.right-a.left));a.right+=f,a.left-=f,a.top=c*a.right,a.bottom=-a.top}}const E=new o.Z,x=new r.Z;function S(e,t){return{startObject:{},stopObject:{},duration:0,complete:e,cancel:t}}function O(e,t){return function(){"function"==typeof t&&t(),e.enableInputs=!0}}p.createTween=function(e,t){let i=(t=(0,s.Z)(t,s.Z.EMPTY_OBJECT)).destination;if(!(0,a.Z)(e))throw new c.Z("scene is required.");if(!(0,a.Z)(i))throw new c.Z("destination is required.");const o=e.mode;if(o===f.Z.MORPHING)return S();const h=(0,s.Z)(t.convert,!0),d=e.mapProjection,p=d.ellipsoid,m=t.maximumHeight,_=t.flyOverLongitude,Z=t.flyOverLongitudeWeight,g=t.pitchAdjustHeight;let y=t.easingFunction;h&&o!==f.Z.SCENE3D&&(p.cartesianToCartographic(i,E),i=d.project(E,x));const b=e.camera,w=t.endTransform;(0,a.Z)(w)&&b._setTransform(w);let v=t.duration;(0,a.Z)(v)||(v=Math.ceil(r.Z.distance(b.position,i)/1e6)+2,v=Math.min(v,3));const I=(0,s.Z)(t.heading,0),D=(0,s.Z)(t.pitch,-l.Z.PI_OVER_TWO),P=(0,s.Z)(t.roll,0),R=e.screenSpaceCameraController;R.enableInputs=!1;const B=O(R,t.complete),M=O(R,t.cancel),L=b.frustum;let N=e.mode===f.Z.SCENE2D;if(N=N&&n.Z.equalsEpsilon(b.position,i,l.Z.EPSILON6),N=N&&l.Z.equalsEpsilon(Math.max(L.right-L.left,L.top-L.bottom),i.z,l.Z.EPSILON6),N=N||e.mode!==f.Z.SCENE2D&&r.Z.equalsEpsilon(i,b.position,l.Z.EPSILON10),N=N&&l.Z.equalsEpsilon(l.Z.negativePiToPi(I),l.Z.negativePiToPi(b.heading),l.Z.EPSILON10)&&l.Z.equalsEpsilon(l.Z.negativePiToPi(D),l.Z.negativePiToPi(b.pitch),l.Z.EPSILON10)&&l.Z.equalsEpsilon(l.Z.negativePiToPi(P),l.Z.negativePiToPi(b.roll),l.Z.EPSILON10),N)return S(B,M);const F=new Array(4);if(F[f.Z.SCENE2D]=C,F[f.Z.SCENE3D]=T,F[f.Z.COLUMBUS_VIEW]=A,v<=0)return S((function(){F[o](e,1,i,I,D,P,m,_,Z,g)({time:1}),"function"==typeof B&&B()}),M);const k=F[o](e,v,i,I,D,P,m,_,Z,g);if(!(0,a.Z)(y)){const e=b.positionCartographic.height;y=e>(o===f.Z.SCENE3D?p.cartesianToCartographic(i).height:i.z)&&e>11500?u.Z.CUBIC_OUT:u.Z.QUINTIC_IN_OUT}return{duration:v,easingFunction:y,startObject:{time:0},stopObject:{time:v},update:k,complete:B,cancel:M}};const I=p},709294:(e,t,i)=>{"use strict";i.d(t,{Z:()=>he});var n=i(360791),r=i(919382),o=i(545125),s=i(182934),a=i(700725),c=i(406144),u=i(426468),l=i(859071),h=i(54879),d=i(253316),f=i(360382),p=i(40080),m=i(362017),_=i(165373),Z=i(583917),g=i(126874),y=i(610490),b=i(523501),A=i(261045),w=i(336217),v=i(316954),T=i(690220),C=i(795788),E=i(50128),x=i(527758),S=i(720095),O=i(765492),I=i(58277),D=i(645982),P=i(992722),R=i(286400),B=i(71577),M=i(292336),L=i(105385),N=i(695185),F=i(921778),k=i(506678),U=i(119507),V=i(47854),z=i(608034),H=i(392382),G=i(950412),q=i(842649);function j(e,t,i,n){this._tileset=e,this._header=i;const r=i.content;this.transform=(0,u.Z)(i.transform)?Z.Z.unpack(i.transform):Z.Z.clone(Z.Z.IDENTITY);const s=(0,u.Z)(n)?n.computedTransform:e.modelMatrix,a=Z.Z.multiply(s,this.transform,new Z.Z),c=(0,u.Z)(n)?n._initialTransform:Z.Z.IDENTITY;let l,h,d,f;this._initialTransform=Z.Z.multiply(c,this.transform,new Z.Z),this.computedTransform=a,this._boundingVolume=this.createBoundingVolume(i.boundingVolume,a),this._boundingVolume2D=void 0,(0,u.Z)(r)&&(0,u.Z)(r.boundingVolume)&&(l=this.createBoundingVolume(r.boundingVolume,a)),this._contentBoundingVolume=l,this._contentBoundingVolume2D=void 0,(0,u.Z)(i.viewerRequestVolume)&&(h=this.createBoundingVolume(i.viewerRequestVolume,a)),this._viewerRequestVolume=h,this.geometricError=i.geometricError,this._geometricError=i.geometricError,(0,u.Z)(this._geometricError)||(this._geometricError=(0,u.Z)(n)?n.geometricError:e._geometricError,j._deprecationWarning("geometricErrorUndefined","Required property geometricError is undefined for this tile. Using parent's geometric error instead.")),this.updateGeometricErrorScale(),(0,u.Z)(i.refine)?("replace"!==i.refine&&"add"!==i.refine||j._deprecationWarning("lowercase-refine",'This tile uses a lowercase refine "'+i.refine+'". Instead use "'+i.refine.toUpperCase()+'".'),d="REPLACE"===i.refine.toUpperCase()?R.Z.REPLACE:R.Z.ADD):d=(0,u.Z)(n)?n.refine:R.Z.REPLACE,this.refine=d,this.children=[],this.parent=n;let m,_,g,y,b=!1,A=!1;if(t=C.Z.createIfNeeded(t),(0,L.Z)(i,"3DTILES_multiple_contents"))A=!0,m=O.Z.UNLOADED,_=t.clone();else if((0,u.Z)(r)){let e=r.uri;(0,u.Z)(r.url)&&(j._deprecationWarning("contentUrl",'This tileset JSON uses the "content.url" property which has been deprecated. Use "content.uri" instead.'),e=r.url),m=O.Z.UNLOADED,_=t.getDerivedResource({url:e}),g=w.Z.getServerKey(_.getUrlComponent())}else f=new B.Z(e,this),b=!0,m=O.Z.READY;if(this._content=f,this._contentResource=_,this._contentState=m,this._contentReadyToProcessPromise=void 0,this._contentReadyPromise=void 0,this._expiredContent=void 0,this._serverKey=g,this.hasEmptyContent=b,this.hasTilesetContent=!1,this.hasImplicitContent=!1,this.hasMultipleContents=A,(0,L.Z)(i,"3DTILES_metadata")){const t=i.extensions["3DTILES_metadata"],n=e.metadata.schema.classes[t.class];y=new H.Z({tile:t,class:n})}this.metadata=y,this.cacheNode=void 0;const v=i.expire;let T,E;(0,u.Z)(v)&&(T=v.duration,(0,u.Z)(v.date)&&(E=p.Z.fromIso8601(v.date))),this.expireDuration=T,this.expireDate=E,this.lastStyleTime=0,this._optimChildrenWithinParent=D.Z.NOT_COMPUTED,this.clippingPlanesDirty=!1,this.priorityDeferred=!1,this.implicitTileset=void 0,this.implicitCoordinates=void 0,this.implicitSubtree=void 0,this._distanceToCamera=0,this._centerZDepth=0,this._screenSpaceError=0,this._screenSpaceErrorProgressiveResolution=0,this._visibilityPlaneMask=0,this._visible=!1,this._inRequestVolume=!1,this._finalResolution=!0,this._depth=0,this._stackLength=0,this._selectionDepth=0,this._updatedVisibilityFrame=0,this._touchedFrame=0,this._visitedFrame=0,this._selectedFrame=0,this._requestedFrame=0,this._ancestorWithContent=void 0,this._ancestorWithContentAvailable=void 0,this._refines=!1,this._shouldSelect=!1,this._isClipped=!0,this._clippingPlanesState=0,this._debugBoundingVolume=void 0,this._debugContentBoundingVolume=void 0,this._debugViewerRequestVolume=void 0,this._debugColor=o.Z.fromRandom({alpha:1}),this._debugColorizeTiles=!1,this._priority=0,this._priorityHolder=this,this._priorityProgressiveResolution=!1,this._priorityProgressiveResolutionScreenSpaceErrorLeaf=!1,this._priorityReverseScreenSpaceError=0,this._foveatedFactor=0,this._wasMinPriorityChild=!1,this._loadTimestamp=new p.Z,this._commandsLength=0,this._color=void 0,this._colorDirty=!1,this._request=void 0}j._deprecationWarning=l.Z,Object.defineProperties(j.prototype,{tileset:{get:function(){return this._tileset}},content:{get:function(){return this._content}},boundingVolume:{get:function(){return this._boundingVolume}},contentBoundingVolume:{get:function(){return(0,c.Z)(this._contentBoundingVolume,this._boundingVolume)}},boundingSphere:{get:function(){return this._boundingVolume.boundingSphere}},extras:{get:function(){return this._header.extras}},color:{get:function(){return(0,u.Z)(this._color)||(this._color=new o.Z),o.Z.clone(this._color)},set:function(e){this._color=o.Z.clone(e,this._color),this._colorDirty=!0}},contentAvailable:{get:function(){return this.contentReady&&!this.hasEmptyContent&&!this.hasTilesetContent&&!this.hasImplicitContent||(0,u.Z)(this._expiredContent)&&!this.contentFailed}},contentReady:{get:function(){return this._contentState===O.Z.READY}},contentUnloaded:{get:function(){return this._contentState===O.Z.UNLOADED}},contentExpired:{get:function(){return this._contentState===O.Z.EXPIRED}},contentFailed:{get:function(){return this._contentState===O.Z.FAILED}},contentReadyToProcessPromise:{get:function(){if((0,u.Z)(this._contentReadyToProcessPromise))return this._contentReadyToProcessPromise.promise}},contentReadyPromise:{get:function(){if((0,u.Z)(this._contentReadyPromise))return this._contentReadyPromise.promise}},commandsLength:{get:function(){return this._commandsLength}}});const W=new r.Z,K=new p.Z;function Y(e){return function(){return e._priority}}function X(e,t,i){e._contentState===O.Z.PROCESSING&&--t.statistics.numberOfTilesProcessing,e._contentState=O.Z.FAILED,e._contentReadyPromise.reject(i),e._contentReadyToProcessPromise.reject(i)}function J(e,t,i){e._contentState===O.Z.PROCESSING?--t.statistics.numberOfTilesProcessing:--t.statistics.numberOfPendingRequests,e._contentState=O.Z.FAILED,e._contentReadyPromise.reject(i),e._contentReadyToProcessPromise.reject(i)}j.prototype.getScreenSpaceError=function(e,t,i){const n=this._tileset,r=(0,c.Z)(i,1),o=(0,u.Z)(this.parent)?this.parent.geometricError:n._geometricError,s=t?o:this.geometricError;if(0===s)return 0;const a=e.camera;let l=a.frustum;const h=e.context,d=h.drawingBufferWidth,f=h.drawingBufferHeight*r;let p;if(e.mode===k.Z.SCENE2D||l instanceof y.Z)(0,u.Z)(l._offCenterFrustum)&&(l=l._offCenterFrustum),p=s/(Math.max(l.top-l.bottom,l.right-l.left)/Math.max(d,f));else{const e=Math.max(this._distanceToCamera,m.Z.EPSILON7);if(p=s*f/(e*a.frustum.sseDenominator),n.dynamicScreenSpaceError){const t=n._dynamicScreenSpaceErrorComputedDensity,i=n.dynamicScreenSpaceErrorFactor;p-=m.Z.fog(e,t)*i}}return p/=e.pixelRatio,p},j.prototype.updateVisibility=function(e){const t=this.parent,i=this._tileset,n=(0,u.Z)(t)?t.computedTransform:i.modelMatrix,o=(0,u.Z)(t)?t._visibilityPlaneMask:a.Z.MASK_INDETERMINATE;this.updateTransform(n),this._distanceToCamera=this.distanceToTile(e),this._centerZDepth=this.distanceToTileCenter(e),this._screenSpaceError=this.getScreenSpaceError(e,!1),this._screenSpaceErrorProgressiveResolution=this.getScreenSpaceError(e,!1,i.progressiveResolutionHeightFraction),this._visibilityPlaneMask=this.visibility(e,o),this._visible=this._visibilityPlaneMask!==a.Z.MASK_OUTSIDE,this._inRequestVolume=this.insideViewerRequestVolume(e),this._priorityReverseScreenSpaceError=function(e,t){const i=t.parent,n=(0,u.Z)(i)&&(!e._skipLevelOfDetail||0===t._screenSpaceError||i.hasTilesetContent||i.hasImplicitContent)?i._screenSpaceError:t._screenSpaceError;return e.root._screenSpaceError-n}(i,this),this._priorityProgressiveResolution=function(e,t){if(e.progressiveResolutionHeightFraction<=0||e.progressiveResolutionHeightFraction>.5)return!1;let i=t._screenSpaceErrorProgressiveResolution>e._maximumScreenSpaceError;t._priorityProgressiveResolutionScreenSpaceErrorLeaf=!1;const n=t.parent,r=e._maximumScreenSpaceError,o=t._screenSpaceErrorProgressiveResolution<=r,s=(0,u.Z)(n)&&n._screenSpaceErrorProgressiveResolution>r;return o&&s&&(t._priorityProgressiveResolutionScreenSpaceErrorLeaf=!0,i=!0),i}(i,this),this.priorityDeferred=function(e,t){const i=e._tileset,n=t.camera,o=e.boundingSphere,s=o.radius,a=r.Z.multiplyByScalar(n.directionWC,e._centerZDepth,W),c=r.Z.add(n.positionWC,a,W),l=r.Z.subtract(c,o.center,W);if(r.Z.magnitude(l)>s){const t=r.Z.normalize(l,W),i=r.Z.multiplyByScalar(t,s,W),a=r.Z.add(o.center,i,W),c=r.Z.subtract(a,n.positionWC,W),u=r.Z.normalize(c,W);e._foveatedFactor=1-Math.abs(r.Z.dot(n.directionWC,u))}else e._foveatedFactor=0;const h=e.refine===R.Z.REPLACE,d=i._skipLevelOfDetail;if(h&&!d||!i.foveatedScreenSpaceError||1===i.foveatedConeSize||e._priorityProgressiveResolution&&h&&d||i._pass===P.Z.PRELOAD_FLIGHT||i._pass===P.Z.PRELOAD)return!1;const f=1-Math.cos(.5*n.frustum.fov),p=i.foveatedConeSize*f;if(e._foveatedFactor<=p)return!1;const _=f-p,Z=m.Z.clamp((e._foveatedFactor-p)/_,0,1),g=i.foveatedInterpolationCallback(i.foveatedMinimumScreenSpaceErrorRelaxation,i.maximumScreenSpaceError,Z),y=0===e._screenSpaceError&&(0,u.Z)(e.parent)?.5*e.parent._screenSpaceError:e._screenSpaceError;return i.maximumScreenSpaceError-g<=y}(this,e)},j.prototype.updateExpiration=function(){if((0,u.Z)(this.expireDate)&&this.contentReady&&!this.hasEmptyContent&&!this.hasMultipleContents){const e=p.Z.now(K);p.Z.lessThan(this.expireDate,e)&&(this._contentState=O.Z.EXPIRED,this._expiredContent=this._content)}},j.prototype.requestContent=function(){return this.hasEmptyContent?0:this.hasMultipleContents?function(e){let t=e._content;const i=e._tileset;if(!(0,u.Z)(t)){const n=e._header.extensions["3DTILES_multiple_contents"];t=new N.Z(i,e,e._contentResource.clone(),n),e._content=t}const n=t.requestInnerContents();return n>0?n:(e._contentState=O.Z.LOADING,e._contentReadyToProcessPromise=x.Z.defer(),e._contentReadyPromise=x.Z.defer(),t.contentsFetchedPromise.then((function(){if(e._contentState===O.Z.LOADING){if(!e.isDestroyed())return e._contentState=O.Z.PROCESSING,e._contentReadyToProcessPromise.resolve(t),t.readyPromise.then((function(t){e.isDestroyed()?X(e,i,"Tile was unloaded while content was processing"):(e._selectedFrame=0,e.lastStyleTime=0,p.Z.now(e._loadTimestamp),e._contentState=O.Z.READY,e._contentReadyPromise.resolve(t))}));X(e,i,"Tile was unloaded while content was loading")}})).otherwise((function(t){X(e,i,t)})),0)}(this):function(e){const t=e._contentResource.clone(),i=e.contentExpired;i&&t.setQueryParameters({expired:e.expireDate.toString()});const n=new A.Z({throttle:!0,throttleByServer:!0,type:T.Z.TILES3D,priorityFunction:Y(e),serverKey:e._serverKey});e._request=n,t.request=n;const r=t.fetchArrayBuffer();if(!(0,u.Z)(r))return 1;const o=e._contentState,s=e._tileset;return e._contentState=O.Z.LOADING,e._contentReadyToProcessPromise=x.Z.defer(),e._contentReadyPromise=x.Z.defer(),++s.statistics.numberOfPendingRequests,r.then((function(t){if(e.isDestroyed())return void J(e,s);const n=function(e,t){const i=(0,F.Z)(t),n=e._tileset;let r;n._disableSkipLevelOfDetail=n._disableSkipLevelOfDetail||i.contentType===I.Z.GEOMETRY||i.contentType===I.Z.VECTOR,i.contentType===I.Z.IMPLICIT_SUBTREE&&(e.hasImplicitContent=!0),i.contentType===I.Z.EXTERNAL_TILESET&&(e.hasTilesetContent=!0);const o=S.Z[i.contentType];r=(0,u.Z)(i.binaryPayload)?o(n,e,e._contentResource,i.binaryPayload.buffer,0):o(n,e,e._contentResource,i.jsonPayload);const s=e._header.content;return r.groupMetadata=(0,M.Z)(n,s),r}(e,t);return i&&(e.expireDate=void 0),e._content=n,e._contentState=O.Z.PROCESSING,e._contentReadyToProcessPromise.resolve(n),--s.statistics.numberOfPendingRequests,n.readyPromise.then((function(t){e.isDestroyed()?J(e,s):(function(e){if((0,u.Z)(e.expireDuration)){const t=p.Z.now(K);p.Z.addSeconds(t,e.expireDuration,t),(0,u.Z)(e.expireDate)?p.Z.lessThan(e.expireDate,t)&&p.Z.clone(t,e.expireDate):e.expireDate=p.Z.clone(t)}}(e),e._selectedFrame=0,e.lastStyleTime=0,p.Z.now(e._loadTimestamp),e._contentState=O.Z.READY,e._contentReadyPromise.resolve(t))}))})).otherwise((function(t){if(n.state===v.Z.CANCELLED)return e._contentState=o,--s.statistics.numberOfPendingRequests,void++s.statistics.numberOfAttemptedRequests;J(e,s,t)})),0}(this)},j.prototype.cancelRequests=function(){this.hasMultipleContents?this._content.cancelRequests():this._request.cancel()},j.prototype.unloadContent=function(){this.hasEmptyContent||this.hasTilesetContent||this.hasImplicitContent||(this._content=this._content&&this._content.destroy(),this._contentState=O.Z.UNLOADED,this._contentReadyToProcessPromise=void 0,this._contentReadyPromise=void 0,this.lastStyleTime=0,this.clippingPlanesDirty=0===this._clippingPlanesState,this._clippingPlanesState=0,this._debugColorizeTiles=!1,this._debugBoundingVolume=this._debugBoundingVolume&&this._debugBoundingVolume.destroy(),this._debugContentBoundingVolume=this._debugContentBoundingVolume&&this._debugContentBoundingVolume.destroy(),this._debugViewerRequestVolume=this._debugViewerRequestVolume&&this._debugViewerRequestVolume.destroy())};const Q=new n.Z;function $(e,t){if(t.mode!==k.Z.SCENE3D&&!(0,u.Z)(e._boundingVolume2D)){const i=e._boundingVolume.boundingSphere,r=n.Z.projectTo2D(i,t.mapProjection,Q);e._boundingVolume2D=new z.Z(r.center,r.radius)}return t.mode!==k.Z.SCENE3D?e._boundingVolume2D:e._boundingVolume}j.prototype.visibility=function(e,t){const i=e.cullingVolume,n=$(this,e),r=this._tileset,o=r.clippingPlanes;if((0,u.Z)(o)&&o.enabled){const e=o.computeIntersectionWithBoundingVolume(n,r.clippingPlanesOriginMatrix);if(this._isClipped=e!==f.Z.INSIDE,e===f.Z.OUTSIDE)return a.Z.MASK_OUTSIDE}return i.computeVisibilityWithPlaneMask(n,t)},j.prototype.contentVisibility=function(e){if(!(0,u.Z)(this._contentBoundingVolume))return f.Z.INSIDE;if(this._visibilityPlaneMask===a.Z.MASK_INSIDE)return f.Z.INSIDE;const t=e.cullingVolume,i=function(e,t){if(t.mode!==k.Z.SCENE3D&&!(0,u.Z)(e._contentBoundingVolume2D)){const i=e._contentBoundingVolume.boundingSphere,r=n.Z.projectTo2D(i,t.mapProjection,Q);e._contentBoundingVolume2D=new z.Z(r.center,r.radius)}return t.mode!==k.Z.SCENE3D?e._contentBoundingVolume2D:e._contentBoundingVolume}(this,e),r=this._tileset,o=r.clippingPlanes;if((0,u.Z)(o)&&o.enabled){const e=o.computeIntersectionWithBoundingVolume(i,r.clippingPlanesOriginMatrix);if(this._isClipped=e!==f.Z.INSIDE,e===f.Z.OUTSIDE)return f.Z.OUTSIDE}return t.computeVisibility(i)},j.prototype.distanceToTile=function(e){return $(this,e).distanceToCamera(e)};const ee=new r.Z;j.prototype.distanceToTileCenter=function(e){const t=$(this,e).boundingVolume,i=r.Z.subtract(t.center,e.camera.positionWC,ee);return r.Z.dot(e.camera.directionWC,i)},j.prototype.insideViewerRequestVolume=function(e){const t=this._viewerRequestVolume;return!(0,u.Z)(t)||0===t.distanceToCamera(e)};const te=new _.Z,ie=new r.Z,ne=new _.Z,re=new r.Z,oe=new b.Z,se=new g.Z,ae=new Z.Z;j.prototype.createBoundingVolume=function(e,t,i){if(!(0,u.Z)(e))throw new E.Z("boundingVolume must be defined");if((0,L.Z)(e,"3DTILES_bounding_volume_S2"))return new V.Z(e.extensions["3DTILES_bounding_volume_S2"]);if((0,u.Z)(e.box))return function(e,t,i){let n=r.Z.fromElements(e[0],e[1],e[2],re),o=_.Z.fromArray(e,3,ne);n=Z.Z.multiplyByPoint(t,n,n);const s=Z.Z.getMatrix3(t,te);return o=_.Z.multiply(s,o,o),(0,u.Z)(i)?(i.update(n,o),i):new G.Z(n,o)}(e.box,t,i);if((0,u.Z)(e.region))return function(e,t,i,n){if(!Z.Z.equalsEpsilon(t,i,m.Z.EPSILON8))return function(e,t,i,n){const r=b.Z.unpack(e,0,oe),o=e[4],s=e[5],a=g.Z.fromRectangle(r,o,s,d.Z.WGS84,se);let c=a.center,l=a.halfAxes;t=Z.Z.multiplyTransformation(t,Z.Z.inverseTransformation(i,ae),ae),c=Z.Z.multiplyByPoint(t,c,c);const h=Z.Z.getMatrix3(t,te);return l=_.Z.multiply(h,l,l),(0,u.Z)(n)&&n instanceof G.Z?(n.update(c,l),n):new G.Z(c,l)}(e,t,i,n);if((0,u.Z)(n))return n;const r=b.Z.unpack(e,0,oe);return new U.Z({rectangle:r,minimumHeight:e[4],maximumHeight:e[5]})}(e.region,t,this._initialTransform,i);if((0,u.Z)(e.sphere))return function(e,t,i){let n=r.Z.fromElements(e[0],e[1],e[2],re),o=e[3];n=Z.Z.multiplyByPoint(t,n,n);const s=Z.Z.getScale(t,ie);return o*=r.Z.maximumComponent(s),(0,u.Z)(i)?(i.update(n,o),i):new z.Z(n,o)}(e.sphere,t,i);throw new E.Z("boundingVolume must contain a sphere, region, or box")},j.prototype.updateTransform=function(e){e=(0,c.Z)(e,Z.Z.IDENTITY);const t=Z.Z.multiply(e,this.transform,ae);if(Z.Z.equals(t,this.computedTransform))return;Z.Z.clone(t,this.computedTransform);const i=this._header,n=this._header.content;this._boundingVolume=this.createBoundingVolume(i.boundingVolume,this.computedTransform,this._boundingVolume),(0,u.Z)(this._contentBoundingVolume)&&(this._contentBoundingVolume=this.createBoundingVolume(n.boundingVolume,this.computedTransform,this._contentBoundingVolume)),(0,u.Z)(this._viewerRequestVolume)&&(this._viewerRequestVolume=this.createBoundingVolume(i.viewerRequestVolume,this.computedTransform,this._viewerRequestVolume)),this.updateGeometricErrorScale(),this._debugBoundingVolume=this._debugBoundingVolume&&this._debugBoundingVolume.destroy(),this._debugContentBoundingVolume=this._debugContentBoundingVolume&&this._debugContentBoundingVolume.destroy(),this._debugViewerRequestVolume=this._debugViewerRequestVolume&&this._debugViewerRequestVolume.destroy()},j.prototype.updateGeometricErrorScale=function(){const e=Z.Z.getScale(this.computedTransform,ie),t=r.Z.maximumComponent(e);this.geometricError=this._geometricError*t},j.prototype.update=function(e,t,i){const n=t.commandList.length;!function(e,t){const i=t.clippingPlanes;let n=0;(0,u.Z)(i)&&e._isClipped&&i.enabled&&(n=i.clippingPlanesState),n!==e._clippingPlanesState&&(e._clippingPlanesState=n,e.clippingPlanesDirty=!0)}(this,e),function(e,t,i,n){if(!n.isRender)return;const r=(0,u.Z)(e._header.content)&&(0,u.Z)(e._header.content.boundingVolume),a=e.hasEmptyContent||e.hasTilesetContent||e.hasImplicitContent,c=t.debugShowBoundingVolume||t.debugShowContentBoundingVolume&&!r;if(c){let t;t=e._finalResolution?a?o.Z.DARKGRAY:o.Z.WHITE:o.Z.YELLOW,(0,u.Z)(e._debugBoundingVolume)||(e._debugBoundingVolume=e._boundingVolume.createDebugVolume(t)),e._debugBoundingVolume.update(i);const n=e._debugBoundingVolume.getGeometryInstanceAttributes("outline");n.color=s.Z.toValue(t,n.color)}else!c&&(0,u.Z)(e._debugBoundingVolume)&&(e._debugBoundingVolume=e._debugBoundingVolume.destroy());t.debugShowContentBoundingVolume&&r?((0,u.Z)(e._debugContentBoundingVolume)||(e._debugContentBoundingVolume=e._contentBoundingVolume.createDebugVolume(o.Z.BLUE)),e._debugContentBoundingVolume.update(i)):!t.debugShowContentBoundingVolume&&(0,u.Z)(e._debugContentBoundingVolume)&&(e._debugContentBoundingVolume=e._debugContentBoundingVolume.destroy()),t.debugShowViewerRequestVolume&&(0,u.Z)(e._viewerRequestVolume)?((0,u.Z)(e._debugViewerRequestVolume)||(e._debugViewerRequestVolume=e._viewerRequestVolume.createDebugVolume(o.Z.YELLOW)),e._debugViewerRequestVolume.update(i)):!t.debugShowViewerRequestVolume&&(0,u.Z)(e._debugViewerRequestVolume)&&(e._debugViewerRequestVolume=e._debugViewerRequestVolume.destroy());const l=t.debugColorizeTiles&&!e._debugColorizeTiles||(0,u.Z)(t._heatmap.tilePropertyName),h=!t.debugColorizeTiles&&e._debugColorizeTiles;l?(t._heatmap.colorize(e,i),e._debugColorizeTiles=!0,e.color=e._debugColor):h&&(e._debugColorizeTiles=!1,e.color=o.Z.WHITE),e._colorDirty&&(e._colorDirty=!1,e._content.applyDebugSettings(!0,e._color)),h&&t.makeStyleDirty()}(this,e,t,i),function(e,t,i){const n=e._content,r=e._expiredContent;if(!e.hasMultipleContents&&(0,u.Z)(r)){if(!e.contentReady)return void r.update(t,i);e._expiredContent.destroy(),e._expiredContent=void 0}n.update(t,i)}(this,e,t);const r=t.commandList.length-n;this._commandsLength=r;for(let e=0;e{"use strict";i.d(t,{Z:()=>z});var n=i(337968),r=i(357299),o=i(556592),s=i(545125),a=i(307260),c=i(406144),u=i(426468),l=i(859071),h=i(54879),d=i(446938),f=i(362017),p=i(50128),m=i(994589),_=i(247913),Z=i(842649),g=i(364232),y=i(279427),b=i(598577),A=i(906864),w=i(451356),v=i(12441),T=i(690466),C=i(324628),E=i(42973),x=i(786861),S=i(301859);const O=b.Z.DEFAULT_COLOR_VALUE,I=b.Z.DEFAULT_SHOW_VALUE;function D(e,t,i,n,r){let s;this.featuresLength=t,(0,u.Z)(i)&&(s=i.extensions),this._extensions=(0,c.Z)(s,{});const a=function(e){const t={};if(!(0,u.Z)(e))return t;for(const i in e)e.hasOwnProperty(i)&&"HIERARCHY"!==i&&"extensions"!==i&&"extras"!==i&&(t[i]=(0,o.Z)(e[i],!0));return t}(i);this._properties=a,this._batchTableHierarchy=function(e,t,i){if(!(0,u.Z)(t))return;let n=e._extensions["3DTILES_batch_table_hierarchy"];const r=t.HIERARCHY;return(0,u.Z)(r)&&(D._deprecationWarning("batchTableHierarchyExtension","The batch table HIERARCHY property has been moved to an extension. Use extensions.3DTILES_batch_table_hierarchy instead."),e._extensions["3DTILES_batch_table_hierarchy"]=r,n=r),(0,u.Z)(n)?new A.Z({extension:n,binaryBody:i}):void 0}(this,i,n),this._batchTableBinaryProperties=P(t,a,n),this._content=e,this._batchTexture=new b.Z({featuresLength:t,colorChangedCallback:r,owner:e,statistics:e.tileset.statistics})}function P(e,t,i){let n;for(const r in t)if(t.hasOwnProperty(r)){const o=t[r],s=o.byteOffset;if((0,u.Z)(s)){const t=o.componentType,a=o.type;if(!(0,u.Z)(t))throw new p.Z("componentType is required.");if(!(0,u.Z)(a))throw new p.Z("type is required.");if(!(0,u.Z)(i))throw new p.Z("Property "+r+" requires a batch table binary.");const c=(0,C.Z)(o),l=c.componentsPerAttribute,h=c.classType,d=c.createArrayBufferView(i.buffer,i.byteOffset+s,e);(0,u.Z)(n)||(n={}),n[r]={typedArray:d,componentCount:l,type:h}}}return n}D._deprecationWarning=l.Z,Object.defineProperties(D.prototype,{memorySizeInBytes:{get:function(){return this._batchTexture.memorySizeInBytes}}}),D.getBinaryProperties=function(e,t,i){return P(e,t,i)},D.prototype.setShow=function(e,t){this._batchTexture.setShow(e,t)},D.prototype.setAllShow=function(e){this._batchTexture.setAllShow(e)},D.prototype.getShow=function(e){return this._batchTexture.getShow(e)},D.prototype.setColor=function(e,t){this._batchTexture.setColor(e,t)},D.prototype.setAllColor=function(e){this._batchTexture.setAllColor(e)},D.prototype.getColor=function(e,t){return this._batchTexture.getColor(e,t)},D.prototype.getPickColor=function(e){return this._batchTexture.getPickColor(e)};const R=new s.Z;function B(e,t){if(!(0,u.Z)(e)||e<0||e>=t)throw new d.Z("batchId is required and between zero and featuresLength - 1 ("+t-NaN)}function M(e,t){return e=y.Z.replaceMain(e,"tile_main"),t?e+"uniform float tile_colorBlend; \nvoid tile_color(vec4 tile_featureColor) \n{ \n tile_main(); \n tile_featureColor = czm_gammaCorrect(tile_featureColor); \n gl_FragColor.a *= tile_featureColor.a; \n float highlight = ceil(tile_colorBlend); \n gl_FragColor.rgb *= mix(tile_featureColor.rgb, vec3(1.0), highlight); \n} \n":e+"void tile_color(vec4 tile_featureColor) \n{ \n tile_main(); \n} \n"}function L(e,t,i){if(!(0,u.Z)(t))return M(e,i);let n=new RegExp("(uniform|attribute|in)\\s+(vec[34]|sampler2D)\\s+"+t+";");const r=e.match(n);if(!(0,u.Z)(r))return M(e,i);const o=r[0],s=r[2];let a;if(e=(e=y.Z.replaceMain(e,"tile_main")).replace(o,""),"vec3"===s||"vec4"===s){const i="vec3"===s?"vec4("+t+", 1.0)":t,r="vec3"===s?"tile_diffuse.xyz":"tile_diffuse";n=new RegExp(t,"g"),e=e.replace(n,r),a=" vec4 source = "+i+"; \n tile_diffuse = tile_diffuse_final(source, tile_featureColor); \n tile_main(); \n"}else"sampler2D"===s&&(e=function(e,t){const i="texture2D("+t;let n,r=0,o=e.indexOf(i,r);for(;o>-1;){let t=0;for(let i=o;i0?(s="",e&&(s+="uniform bool tile_translucentCommand; \n"),s+="uniform sampler2D tile_batchTexture; \nvarying vec4 tile_featureColor; \nvarying vec2 tile_featureSt; \nvoid main() \n{ \n vec2 st = computeSt("+t+"); \n vec4 featureProperties = texture2D(tile_batchTexture, st); \n tile_color(featureProperties); \n float show = ceil(featureProperties.a); \n gl_Position *= show; \n",e&&(s+=" bool isStyleTranslucent = (featureProperties.a != 1.0); \n if (czm_pass == czm_passTranslucent) \n { \n if (!isStyleTranslucent && !tile_translucentCommand) \n { \n gl_Position *= 0.0; \n } \n } \n else \n { \n if (isStyleTranslucent) \n { \n gl_Position *= 0.0; \n } \n } \n"),s+=" tile_featureColor = featureProperties; \n tile_featureSt = st; \n}"):s="varying vec2 tile_featureSt; \nvoid main() \n{ \n tile_color(vec4(1.0)); \n tile_featureSt = computeSt("+t+"); \n}",o+"\n"+(1===n._batchTexture.textureDimensions.y?"uniform vec4 tile_textureStep; \nvec2 computeSt(float batchId) \n{ \n float stepX = tile_textureStep.x; \n float centerX = tile_textureStep.y; \n return vec2(centerX + (batchId * stepX), 0.5); \n} \n":"uniform vec4 tile_textureStep; \nuniform vec2 tile_textureDimensions; \nvec2 computeSt(float batchId) \n{ \n float stepX = tile_textureStep.x; \n float centerX = tile_textureStep.y; \n float stepY = tile_textureStep.z; \n float centerY = tile_textureStep.w; \n float xId = mod(batchId, tile_textureDimensions.x); \n float yId = floor(batchId / tile_textureDimensions.x); \n return vec2(centerX + (xId * stepX), centerY + (yId * stepY)); \n} \n")+s}},D.prototype.getFragmentShaderCallback=function(e,t,i){if(0!==this.featuresLength)return function(n){return n=L(n,t,!0),m.Z.maximumVertexTextureImageUnits>0?(n+="uniform sampler2D tile_pickTexture; \nvarying vec2 tile_featureSt; \nvarying vec4 tile_featureColor; \nvoid main() \n{ \n tile_color(tile_featureColor); \n",i&&(n+=" gl_FragColor.rgb *= gl_FragColor.a; \n"),n+="}"):(e&&(n+="uniform bool tile_translucentCommand; \n"),n+="uniform sampler2D tile_pickTexture; \nuniform sampler2D tile_batchTexture; \nvarying vec2 tile_featureSt; \nvoid main() \n{ \n vec4 featureProperties = texture2D(tile_batchTexture, tile_featureSt); \n if (featureProperties.a == 0.0) { \n discard; \n } \n",e&&(n+=" bool isStyleTranslucent = (featureProperties.a != 1.0); \n if (czm_pass == czm_passTranslucent) \n { \n if (!isStyleTranslucent && !tile_translucentCommand) \n { \n discard; \n } \n } \n else \n { \n if (isStyleTranslucent) \n { \n discard; \n } \n } \n"),n+=" tile_color(featureProperties); \n",i&&(n+=" gl_FragColor.rgb *= gl_FragColor.a; \n"),n+="} \n"),n}},D.prototype.getClassificationFragmentShaderCallback=function(){if(0!==this.featuresLength)return function(e){return e=y.Z.replaceMain(e,"tile_main"),m.Z.maximumVertexTextureImageUnits>0?e+="uniform sampler2D tile_pickTexture;\nvarying vec2 tile_featureSt; \nvarying vec4 tile_featureColor; \nvoid main() \n{ \n tile_main(); \n gl_FragColor = tile_featureColor; \n gl_FragColor.rgb *= gl_FragColor.a; \n}":e+="uniform sampler2D tile_batchTexture; \nuniform sampler2D tile_pickTexture;\nvarying vec2 tile_featureSt; \nvoid main() \n{ \n tile_main(); \n vec4 featureProperties = texture2D(tile_batchTexture, tile_featureSt); \n if (featureProperties.a == 0.0) { \n discard; \n } \n gl_FragColor = featureProperties; \n gl_FragColor.rgb *= gl_FragColor.a; \n} \n",e}},D.prototype.getUniformMapCallback=function(){if(0===this.featuresLength)return;const e=this;return function(t){const i={tile_batchTexture:function(){return(0,c.Z)(e._batchTexture.batchTexture,e._batchTexture.defaultTexture)},tile_textureDimensions:function(){return e._batchTexture.textureDimensions},tile_textureStep:function(){return e._batchTexture.textureStep},tile_colorBlend:function(){return function(e){const t=e._content.tileset,i=t.colorBlendMode,n=t.colorBlendAmount;if(i===v.Z.HIGHLIGHT)return 0;if(i===v.Z.REPLACE)return 1;if(i===v.Z.MIX)return f.Z.clamp(n,f.Z.EPSILON4,1);throw new d.Z('Invalid color blend mode "'+i+'".')}(e)},tile_pickTexture:function(){return e._batchTexture.pickTexture}};return(0,a.Z)(t,i)}},D.prototype.getPickId=function(){return"texture2D(tile_pickTexture, tile_featureSt)"};function N(e){const t=_.Z.shallowClone(e),i=t.pass===Z.Z.TRANSLUCENT;return t.uniformMap=(0,u.Z)(t.uniformMap)?t.uniformMap:{},t.uniformMap.tile_translucentCommand=function(){return i},t}function F(e){const t=_.Z.shallowClone(e);return t.pass=Z.Z.TRANSLUCENT,t.renderState=function(e){const t=(0,o.Z)(e,!0);return t.cull.enabled=!1,t.depthTest.enabled=!0,t.depthMask=!1,t.blending=w.Z.ALPHA_BLEND,t.stencilTest=E.Z.setCesium3DTileBit(),t.stencilMask=E.Z.CESIUM_3D_TILE_MASK,g.Z.fromCache(t)}(e.renderState),t}function k(e){const t=_.Z.shallowClone(e);return t.renderState=function(e){const t=(0,o.Z)(e,!0);return t.stencilTest=E.Z.setCesium3DTileBit(),t.stencilMask=E.Z.CESIUM_3D_TILE_MASK,g.Z.fromCache(t)}(e.renderState),t}function U(e,t){const i=_.Z.shallowClone(t),r=(0,o.Z)(i.renderState,!0);r.cull.enabled=!0,r.cull.face=T.Z.FRONT,r.colorMask={red:!1,green:!1,blue:!1,alpha:!1},r.polygonOffset={enabled:!0,factor:5,units:5},r.stencilTest=E.Z.setCesium3DTileBit(),r.stencilMask=E.Z.CESIUM_3D_TILE_MASK,i.renderState=g.Z.fromCache(r),i.castShadows=!1,i.receiveShadows=!1,i.uniformMap=(0,o.Z)(t.uniformMap);const s=new n.Z(5,5);return i.uniformMap.u_polygonOffset=function(){return s},i.shaderProgram=function(e,t){let i=e.shaderCache.getDerivedShaderProgram(t,"zBackfaceLogDepth");if(!(0,u.Z)(i)){const n=t.fragmentShaderSource.clone();n.defines=(0,u.Z)(n.defines)?n.defines.slice(0):[],n.defines.push("POLYGON_OFFSET"),n.sources.unshift("#ifdef GL_OES_standard_derivatives\n#extension GL_OES_standard_derivatives : enable\n#endif\n"),i=e.shaderCache.createDerivedShaderProgram(t,"zBackfaceLogDepth",{vertexShaderSource:t.vertexShaderSource,fragmentShaderSource:n,attributeLocations:t._attributeLocations})}return i}(e,t.shaderProgram),i}function V(e,t){const i=_.Z.shallowClone(e),n=(0,o.Z)(i.renderState,!0);return n.stencilTest.enabled=!0,n.stencilTest.mask=E.Z.SKIP_LOD_MASK,n.stencilTest.reference=E.Z.CESIUM_3D_TILE_MASK|t<>>E.Z.SKIP_LOD_BIT_SHIFT||(t.renderState.depthMask?n.stencil=V(h,r._selectionDepth):n.stencil=n.opaque)));const d=a?n.stencil:n.opaque,f=n.translucent;t.pass!==Z.Z.TRANSLUCENT?(0===c&&(i[l]=d),1===c&&(i[l]=f),2===c&&(i[l]=d,i.push(f))):i[l]=h}},D.prototype.update=function(e,t){this._batchTexture.update(e,t)},D.prototype.isDestroyed=function(){return!1},D.prototype.destroy=function(){return this._batchTexture=this._batchTexture&&this._batchTexture.destroy(),(0,h.Z)(this)};const z=D},12441:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({HIGHLIGHT:0,REPLACE:1,MIX:2})},253026:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(446938);function r(){this.featurePropertiesDirty=!1}Object.defineProperties(r.prototype,{featuresLength:{get:function(){n.Z.throwInstantiationError()}},pointsLength:{get:function(){n.Z.throwInstantiationError()}},trianglesLength:{get:function(){n.Z.throwInstantiationError()}},geometryByteLength:{get:function(){n.Z.throwInstantiationError()}},texturesByteLength:{get:function(){n.Z.throwInstantiationError()}},batchTableByteLength:{get:function(){n.Z.throwInstantiationError()}},innerContents:{get:function(){n.Z.throwInstantiationError()}},readyPromise:{get:function(){n.Z.throwInstantiationError()}},tileset:{get:function(){n.Z.throwInstantiationError()}},tile:{get:function(){n.Z.throwInstantiationError()}},url:{get:function(){n.Z.throwInstantiationError()}},batchTable:{get:function(){n.Z.throwInstantiationError()}},groupMetadata:{get:function(){n.Z.throwInstantiationError()},set:function(e){n.Z.throwInstantiationError()}}}),r.prototype.hasProperty=function(e,t){n.Z.throwInstantiationError()},r.prototype.getFeature=function(e){n.Z.throwInstantiationError()},r.prototype.applyDebugSettings=function(e,t){n.Z.throwInstantiationError()},r.prototype.applyStyle=function(e){n.Z.throwInstantiationError()},r.prototype.update=function(e,t){n.Z.throwInstantiationError()},r.prototype.isDestroyed=function(){n.Z.throwInstantiationError()},r.prototype.destroy=function(){n.Z.throwInstantiationError()};const o=r},720095:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});var n=i(53649),r=i(723711),o=i(74753),s=i(918797),a=i(361180),c=i(479932),u=i(495898),l=i(865356),h=i(195204),d=i(50128),f=i(908566);const p={b3dm:function(e,t,i,r,o){return e.enableModelExperimental?f.Z.fromB3dm(e,t,i,r,o):new n.Z(e,t,i,r,o)},pnts:function(e,t,i,n,r){return e.enableModelExperimental?f.Z.fromPnts(e,t,i,n,r):new u.Z(e,t,i,n,r)},i3dm:function(e,t,i,n,r){return e.enableModelExperimental?f.Z.fromI3dm(e,t,i,n,r):new c.Z(e,t,i,n,r)},cmpt:function(e,t,i,n,o){return new r.Z(e,t,i,n,o,p)},externalTileset:function(e,t,i,n){return new l.Z(e,t,i,n)},geom:function(e,t,i,n,r){return new o.Z(e,t,i,n,r)},vctr:function(e,t,i,n,r){return new h.Z(e,t,i,n,r)},subt:function(e,t,i,n,r){return new a.Z(e,t,i,n,r)},glb:function(e,t,i,n,r){if(n.byteLength<12)throw new d.Z("Invalid glb content");const o=new DataView(n,r).getUint32(8,!0),a=new Uint8Array(n,r,o);return e.enableModelExperimental?f.Z.fromGltf(e,t,i,a):new s.Z(e,t,i,a)},gltf:function(e,t,i,n){return e.enableModelExperimental?f.Z.fromGltf(e,t,i,n):new s.Z(e,t,i,n)}},m=p},765492:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({UNLOADED:0,LOADING:1,PROCESSING:2,READY:3,EXPIRED:4,FAILED:5})},58277:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});const n={BATCHED_3D_MODEL:"b3dm",INSTANCED_3D_MODEL:"i3dm",COMPOSITE:"cmpt",POINT_CLOUD:"pnts",VECTOR:"vctr",GEOMETRY:"geom",GLTF:"gltf",GLTF_BINARY:"glb",IMPLICIT_SUBTREE:"subt",EXTERNAL_TILESET:"externalTileset",MULTIPLE_CONTENT:"multipleContent",isBinaryFormat:function(e){switch(e){case n.BATCHED_3D_MODEL:case n.INSTANCED_3D_MODEL:case n.COMPOSITE:case n.POINT_CLOUD:case n.VECTOR:case n.GEOMETRY:case n.IMPLICIT_SUBTREE:case n.GLTF_BINARY:return!0;default:return!1}}},r=Object.freeze(n)},268053:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(545125),r=i(426468);function o(e,t){this._content=e,this._batchId=t,this._color=void 0}Object.defineProperties(o.prototype,{show:{get:function(){return this._content.batchTable.getShow(this._batchId)},set:function(e){this._content.batchTable.setShow(this._batchId,e)}},color:{get:function(){return(0,r.Z)(this._color)||(this._color=new n.Z),this._content.batchTable.getColor(this._batchId,this._color)},set:function(e){this._content.batchTable.setColor(this._batchId,e)}},polylinePositions:{get:function(){if((0,r.Z)(this._content.getPolylinePositions))return this._content.getPolylinePositions(this._batchId)}},content:{get:function(){return this._content}},tileset:{get:function(){return this._content.tileset}},primitive:{get:function(){return this._content.tileset}},featureId:{get:function(){return this._batchId}},pickId:{get:function(){return this._content.batchTable.getPickColor(this._batchId)}}}),o.prototype.hasProperty=function(e){return this._content.batchTable.hasProperty(this._batchId,e)},o.prototype.getPropertyNames=function(e){return this._content.batchTable.getPropertyNames(this._batchId,e)},o.prototype.getProperty=function(e){return this._content.batchTable.getProperty(this._batchId,e)},o.getPropertyInherited=function(e,t,i){let n;const o=e.batchTable;if((0,r.Z)(o)){if(n=o.getPropertyBySemantic(t,i),(0,r.Z)(n))return n;if(n=o.getProperty(t,i),(0,r.Z)(n))return n}const s=e.tile.metadata;if((0,r.Z)(s)){if(n=s.getPropertyBySemantic(i),(0,r.Z)(n))return n;if(n=s.getProperty(i),(0,r.Z)(n))return n}const a=e.groupMetadata;if((0,r.Z)(a)){if(n=a.getPropertyBySemantic(i),(0,r.Z)(n))return n;if(n=a.getProperty(i),(0,r.Z)(n))return n}let c=e.tileset.metadata;if((0,r.Z)(c)&&(0,r.Z)(c.tileset)){if(c=c.tileset,n=c.getPropertyBySemantic(i),(0,r.Z)(n))return n;if(n=c.getProperty(i),(0,r.Z)(n))return n}},o.prototype.getPropertyInherited=function(e){return o.getPropertyInherited(this._content,this._batchId,e)},o.prototype.setProperty=function(e,t){this._content.batchTable.setProperty(this._batchId,e,t),this._content.featurePropertiesDirty=!0},o.prototype.isExactClass=function(e){return this._content.batchTable.isExactClass(this._batchId,e)},o.prototype.isClass=function(e){return this._content.batchTable.isClass(this._batchId,e)},o.prototype.getExactClassName=function(){return this._content.batchTable.getExactClassName(this._batchId)};const s=o},447490:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(997274),r=i(406144),o=i(426468);function s(e,t){this.json=e,this.buffer=t,this._cachedTypedArrays={},this.featuresLength=0}function a(e,t,i,r,s,a){const c=e._cachedTypedArrays;let u=c[t];return(0,o.Z)(u)||(u=n.Z.createArrayBufferView(i,e.buffer.buffer,e.buffer.byteOffset+a,s*r),c[t]=u),u}s.prototype.getGlobalProperty=function(e,t,i){const s=this.json[e];if((0,o.Z)(s))return(0,o.Z)(s.byteOffset)?a(this,e,t=(0,r.Z)(t,n.Z.UNSIGNED_INT),i=(0,r.Z)(i,1),1,s.byteOffset):s},s.prototype.hasProperty=function(e){return(0,o.Z)(this.json[e])},s.prototype.getPropertyArray=function(e,t,i){const r=this.json[e];if((0,o.Z)(r))return(0,o.Z)(r.byteOffset)?((0,o.Z)(r.componentType)&&(t=n.Z.fromName(r.componentType)),a(this,e,t,i,this.featuresLength,r.byteOffset)):function(e,t,i,r){const s=e._cachedTypedArrays;let a=s[t];return(0,o.Z)(a)||(a=n.Z.createTypedArray(i,r),s[t]=a),a}(this,e,t,r)},s.prototype.getProperty=function(e,t,i,n,r){const s=this.json[e];if(!(0,o.Z)(s))return;const a=this.getPropertyArray(e,t,i);if(1===i)return a[n];for(let e=0;e{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({NOT_COMPUTED:-1,USE_OPTIMIZATION:1,SKIP_OPTIMIZATION:0})},880172:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(919382),r=i(357299),o=i(645982),s=i(119507),a=i(950412);const c={},u=new n.Z;c.checkChildrenWithinParent=function(e){r.Z.typeOf.object("tile",e);const t=e.children,i=t.length,c=e.boundingVolume;if(c instanceof a.Z||c instanceof s.Z){const r=c._orientedBoundingBox;e._optimChildrenWithinParent=o.Z.USE_OPTIMIZATION;for(let c=0;c{"use strict";i.d(t,{Z:()=>a});var n=i(728471),r=i(927272);const o={RENDER:0,PICK:1,SHADOW:2,PRELOAD:3,PRELOAD_FLIGHT:4,REQUEST_RENDER_MODE_DEFER_CHECK:5,MOST_DETAILED_PRELOAD:6,MOST_DETAILED_PICK:7,NUMBER_OF_PASSES:8},s=new Array(o.NUMBER_OF_PASSES);s[o.RENDER]=Object.freeze({traversal:r.Z,isRender:!0,requestTiles:!0,ignoreCommands:!1}),s[o.PICK]=Object.freeze({traversal:r.Z,isRender:!1,requestTiles:!1,ignoreCommands:!1}),s[o.SHADOW]=Object.freeze({traversal:r.Z,isRender:!1,requestTiles:!0,ignoreCommands:!1}),s[o.PRELOAD]=Object.freeze({traversal:r.Z,isRender:!1,requestTiles:!0,ignoreCommands:!0}),s[o.PRELOAD_FLIGHT]=Object.freeze({traversal:r.Z,isRender:!1,requestTiles:!0,ignoreCommands:!0}),s[o.REQUEST_RENDER_MODE_DEFER_CHECK]=Object.freeze({traversal:r.Z,isRender:!1,requestTiles:!0,ignoreCommands:!0}),s[o.MOST_DETAILED_PRELOAD]=Object.freeze({traversal:n.Z,isRender:!1,requestTiles:!0,ignoreCommands:!0}),s[o.MOST_DETAILED_PICK]=Object.freeze({traversal:n.Z,isRender:!1,requestTiles:!1,ignoreCommands:!1}),o.getPassOptions=function(e){return s[e]};const a=Object.freeze(o)},78355:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(357299);const r=function(e){n.Z.typeOf.object("options",e),n.Z.typeOf.number("options.pass",e.pass),this.pass=e.pass,this.commandList=e.commandList,this.camera=e.camera,this.cullingVolume=e.cullingVolume,this.ready=!1}},616594:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(698907),r=i(545125),o=i(406144),s=i(426468),a=i(268053),c=i(440778);function u(e,t,i,n,r){this._content=e,this._billboard=i,this._label=n,this._polyline=r,this._batchId=t,this._billboardImage=void 0,this._billboardColor=void 0,this._billboardOutlineColor=void 0,this._billboardOutlineWidth=void 0,this._billboardSize=void 0,this._pointSize=void 0,this._color=void 0,this._pointSize=void 0,this._pointOutlineColor=void 0,this._pointOutlineWidth=void 0,this._heightOffset=void 0,this._pickIds=new Array(3),h(this)}const l=new n.Z;function h(e){const t=e._billboard;if((0,s.Z)(e._billboardImage)&&e._billboardImage!==t.image)return void(t.image=e._billboardImage);if((0,s.Z)(e._billboardImage))return;const i=(0,o.Z)(e._color,u.defaultColor),n=(0,o.Z)(e._pointOutlineColor,u.defaultPointOutlineColor),a=(0,o.Z)(e._pointOutlineWidth,u.defaultPointOutlineWidth),l=(0,o.Z)(e._pointSize,u.defaultPointSize),h=e._billboardColor,d=e._billboardOutlineColor,f=e._billboardOutlineWidth,p=e._billboardSize;if(r.Z.equals(i,h)&&r.Z.equals(n,d)&&a===f&&l===p)return;e._billboardColor=r.Z.clone(i,e._billboardColor),e._billboardOutlineColor=r.Z.clone(n,e._billboardOutlineColor),e._billboardOutlineWidth=a,e._billboardSize=l;const m=i.alpha,_=i.toCssColorString(),Z=n.toCssColorString(),g=JSON.stringify([_,l,Z,a]);t.setImage(g,(0,c.Z)(m,_,Z,a,l))}Object.defineProperties(u.prototype,{show:{get:function(){return this._label.show},set:function(e){this._label.show=e,this._billboard.show=e,this._polyline.show=e}},color:{get:function(){return this._color},set:function(e){this._color=r.Z.clone(e,this._color),h(this)}},pointSize:{get:function(){return this._pointSize},set:function(e){this._pointSize=e,h(this)}},pointOutlineColor:{get:function(){return this._pointOutlineColor},set:function(e){this._pointOutlineColor=r.Z.clone(e,this._pointOutlineColor),h(this)}},pointOutlineWidth:{get:function(){return this._pointOutlineWidth},set:function(e){this._pointOutlineWidth=e,h(this)}},labelColor:{get:function(){return this._label.fillColor},set:function(e){this._label.fillColor=e,this._polyline.show=this._label.show&&e.alpha>0}},labelOutlineColor:{get:function(){return this._label.outlineColor},set:function(e){this._label.outlineColor=e}},labelOutlineWidth:{get:function(){return this._label.outlineWidth},set:function(e){this._label.outlineWidth=e}},font:{get:function(){return this._label.font},set:function(e){this._label.font=e}},labelStyle:{get:function(){return this._label.style},set:function(e){this._label.style=e}},labelText:{get:function(){return this._label.text},set:function(e){(0,s.Z)(e)||(e=""),this._label.text=e}},backgroundColor:{get:function(){return this._label.backgroundColor},set:function(e){this._label.backgroundColor=e}},backgroundPadding:{get:function(){return this._label.backgroundPadding},set:function(e){this._label.backgroundPadding=e}},backgroundEnabled:{get:function(){return this._label.showBackground},set:function(e){this._label.showBackground=e}},scaleByDistance:{get:function(){return this._label.scaleByDistance},set:function(e){this._label.scaleByDistance=e,this._billboard.scaleByDistance=e}},translucencyByDistance:{get:function(){return this._label.translucencyByDistance},set:function(e){this._label.translucencyByDistance=e,this._billboard.translucencyByDistance=e}},distanceDisplayCondition:{get:function(){return this._label.distanceDisplayCondition},set:function(e){this._label.distanceDisplayCondition=e,this._polyline.distanceDisplayCondition=e,this._billboard.distanceDisplayCondition=e}},heightOffset:{get:function(){return this._heightOffset},set:function(e){const t=(0,o.Z)(this._heightOffset,0),i=this._content.tileset.ellipsoid,n=i.cartesianToCartographic(this._billboard.position,l);n.height=n.height-t+e;const r=i.cartographicToCartesian(n);this._billboard.position=r,this._label.position=this._billboard.position,this._polyline.positions=[this._polyline.positions[0],r],this._heightOffset=e}},anchorLineEnabled:{get:function(){return this._polyline.show},set:function(e){this._polyline.show=e}},anchorLineColor:{get:function(){return this._polyline.material.uniforms.color},set:function(e){this._polyline.material.uniforms.color=r.Z.clone(e,this._polyline.material.uniforms.color)}},image:{get:function(){return this._billboardImage},set:function(e){const t=this._billboardImage!==e;this._billboardImage=e,t&&h(this)}},disableDepthTestDistance:{get:function(){return this._label.disableDepthTestDistance},set:function(e){this._label.disableDepthTestDistance=e,this._billboard.disableDepthTestDistance=e}},horizontalOrigin:{get:function(){return this._billboard.horizontalOrigin},set:function(e){this._billboard.horizontalOrigin=e}},verticalOrigin:{get:function(){return this._billboard.verticalOrigin},set:function(e){this._billboard.verticalOrigin=e}},labelHorizontalOrigin:{get:function(){return this._label.horizontalOrigin},set:function(e){this._label.horizontalOrigin=e}},labelVerticalOrigin:{get:function(){return this._label.verticalOrigin},set:function(e){this._label.verticalOrigin=e}},content:{get:function(){return this._content}},tileset:{get:function(){return this._content.tileset}},primitive:{get:function(){return this._content.tileset}},pickIds:{get:function(){const e=this._pickIds;return e[0]=this._billboard.pickId,e[1]=this._label.pickId,e[2]=this._polyline.pickId,e}}}),u.defaultColor=r.Z.WHITE,u.defaultPointOutlineColor=r.Z.BLACK,u.defaultPointOutlineWidth=0,u.defaultPointSize=8,u.prototype.hasProperty=function(e){return this._content.batchTable.hasProperty(this._batchId,e)},u.prototype.getPropertyNames=function(e){return this._content.batchTable.getPropertyNames(this._batchId,e)},u.prototype.getProperty=function(e){return this._content.batchTable.getProperty(this._batchId,e)},u.prototype.getPropertyInherited=function(e){return a.Z.getPropertyInherited(this._content,this._batchId,e)},u.prototype.setProperty=function(e,t){this._content.batchTable.setProperty(this._batchId,e,t),this._content.featurePropertiesDirty=!0},u.prototype.isExactClass=function(e){return this._content.batchTable.isExactClass(this._batchId,e)},u.prototype.isClass=function(e){return this._content.batchTable.isClass(this._batchId,e)},u.prototype.getExactClassName=function(){return this._content.batchTable.getExactClassName(this._batchId)};const d=u},286400:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({ADD:0,REPLACE:1})},670281:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(556592),r=i(406144),o=i(426468),s=i(446938),a=i(795788),c=i(527758),u=i(46597),l=i(389518);function h(e){let t;this._style={},this._ready=!1,this._show=void 0,this._color=void 0,this._pointSize=void 0,this._pointOutlineColor=void 0,this._pointOutlineWidth=void 0,this._labelColor=void 0,this._labelOutlineColor=void 0,this._labelOutlineWidth=void 0,this._font=void 0,this._labelStyle=void 0,this._labelText=void 0,this._backgroundColor=void 0,this._backgroundPadding=void 0,this._backgroundEnabled=void 0,this._scaleByDistance=void 0,this._translucencyByDistance=void 0,this._distanceDisplayCondition=void 0,this._heightOffset=void 0,this._anchorLineEnabled=void 0,this._anchorLineColor=void 0,this._image=void 0,this._disableDepthTestDistance=void 0,this._horizontalOrigin=void 0,this._verticalOrigin=void 0,this._labelHorizontalOrigin=void 0,this._labelVerticalOrigin=void 0,this._meta=void 0,this._colorShaderFunction=void 0,this._showShaderFunction=void 0,this._pointSizeShaderFunction=void 0,this._colorShaderFunctionReady=!1,this._showShaderFunctionReady=!1,this._pointSizeShaderFunctionReady=!1,this._colorShaderTranslucent=!1,t="string"==typeof e||e instanceof a.Z?a.Z.createIfNeeded(e).fetchJson(e):c.Z.resolve(e);const i=this;this._readyPromise=t.then((function(e){return function(e,t){t=(0,r.Z)((0,n.Z)(t,!0),e._style),e._style=t,e.show=t.show,e.color=t.color,e.pointSize=t.pointSize,e.pointOutlineColor=t.pointOutlineColor,e.pointOutlineWidth=t.pointOutlineWidth,e.labelColor=t.labelColor,e.labelOutlineColor=t.labelOutlineColor,e.labelOutlineWidth=t.labelOutlineWidth,e.labelStyle=t.labelStyle,e.font=t.font,e.labelText=t.labelText,e.backgroundColor=t.backgroundColor,e.backgroundPadding=t.backgroundPadding,e.backgroundEnabled=t.backgroundEnabled,e.scaleByDistance=t.scaleByDistance,e.translucencyByDistance=t.translucencyByDistance,e.distanceDisplayCondition=t.distanceDisplayCondition,e.heightOffset=t.heightOffset,e.anchorLineEnabled=t.anchorLineEnabled,e.anchorLineColor=t.anchorLineColor,e.image=t.image,e.disableDepthTestDistance=t.disableDepthTestDistance,e.horizontalOrigin=t.horizontalOrigin,e.verticalOrigin=t.verticalOrigin,e.labelHorizontalOrigin=t.labelHorizontalOrigin,e.labelVerticalOrigin=t.labelVerticalOrigin;const i={};if((0,o.Z)(t.meta)){const e=t.defines,n=(0,r.Z)(t.meta,r.Z.EMPTY_OBJECT);for(const t in n)n.hasOwnProperty(t)&&(i[t]=new l.Z(n[t],e))}e._meta=i,e._ready=!0}(i,e),i}))}function d(e,t){const i=(0,r.Z)(e._style,r.Z.EMPTY_OBJECT).defines;if((0,o.Z)(t))return"boolean"==typeof t||"number"==typeof t?new l.Z(String(t)):"string"==typeof t?new l.Z(t,i):(0,o.Z)(t.conditions)?new u.Z(t,i):t}function f(e){if((0,o.Z)(e))return(0,o.Z)(e.expression)?e.expression:(0,o.Z)(e.conditionsExpression)?(0,n.Z)(e.conditionsExpression,!0):e}Object.defineProperties(h.prototype,{style:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._style}},ready:{get:function(){return this._ready}},readyPromise:{get:function(){return this._readyPromise}},show:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._show},set:function(e){this._show=d(this,e),this._style.show=f(this._show),this._showShaderFunctionReady=!1}},color:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._color},set:function(e){this._color=d(this,e),this._style.color=f(this._color),this._colorShaderFunctionReady=!1}},pointSize:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._pointSize},set:function(e){this._pointSize=d(this,e),this._style.pointSize=f(this._pointSize),this._pointSizeShaderFunctionReady=!1}},pointOutlineColor:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._pointOutlineColor},set:function(e){this._pointOutlineColor=d(this,e),this._style.pointOutlineColor=f(this._pointOutlineColor)}},pointOutlineWidth:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._pointOutlineWidth},set:function(e){this._pointOutlineWidth=d(this,e),this._style.pointOutlineWidth=f(this._pointOutlineWidth)}},labelColor:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._labelColor},set:function(e){this._labelColor=d(this,e),this._style.labelColor=f(this._labelColor)}},labelOutlineColor:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._labelOutlineColor},set:function(e){this._labelOutlineColor=d(this,e),this._style.labelOutlineColor=f(this._labelOutlineColor)}},labelOutlineWidth:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._labelOutlineWidth},set:function(e){this._labelOutlineWidth=d(this,e),this._style.labelOutlineWidth=f(this._labelOutlineWidth)}},font:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._font},set:function(e){this._font=d(this,e),this._style.font=f(this._font)}},labelStyle:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._labelStyle},set:function(e){this._labelStyle=d(this,e),this._style.labelStyle=f(this._labelStyle)}},labelText:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._labelText},set:function(e){this._labelText=d(this,e),this._style.labelText=f(this._labelText)}},backgroundColor:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._backgroundColor},set:function(e){this._backgroundColor=d(this,e),this._style.backgroundColor=f(this._backgroundColor)}},backgroundPadding:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._backgroundPadding},set:function(e){this._backgroundPadding=d(this,e),this._style.backgroundPadding=f(this._backgroundPadding)}},backgroundEnabled:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._backgroundEnabled},set:function(e){this._backgroundEnabled=d(this,e),this._style.backgroundEnabled=f(this._backgroundEnabled)}},scaleByDistance:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._scaleByDistance},set:function(e){this._scaleByDistance=d(this,e),this._style.scaleByDistance=f(this._scaleByDistance)}},translucencyByDistance:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._translucencyByDistance},set:function(e){this._translucencyByDistance=d(this,e),this._style.translucencyByDistance=f(this._translucencyByDistance)}},distanceDisplayCondition:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._distanceDisplayCondition},set:function(e){this._distanceDisplayCondition=d(this,e),this._style.distanceDisplayCondition=f(this._distanceDisplayCondition)}},heightOffset:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._heightOffset},set:function(e){this._heightOffset=d(this,e),this._style.heightOffset=f(this._heightOffset)}},anchorLineEnabled:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._anchorLineEnabled},set:function(e){this._anchorLineEnabled=d(this,e),this._style.anchorLineEnabled=f(this._anchorLineEnabled)}},anchorLineColor:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._anchorLineColor},set:function(e){this._anchorLineColor=d(this,e),this._style.anchorLineColor=f(this._anchorLineColor)}},image:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._image},set:function(e){this._image=d(this,e),this._style.image=f(this._image)}},disableDepthTestDistance:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._disableDepthTestDistance},set:function(e){this._disableDepthTestDistance=d(this,e),this._style.disableDepthTestDistance=f(this._disableDepthTestDistance)}},horizontalOrigin:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._horizontalOrigin},set:function(e){this._horizontalOrigin=d(this,e),this._style.horizontalOrigin=f(this._horizontalOrigin)}},verticalOrigin:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._verticalOrigin},set:function(e){this._verticalOrigin=d(this,e),this._style.verticalOrigin=f(this._verticalOrigin)}},labelHorizontalOrigin:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._labelHorizontalOrigin},set:function(e){this._labelHorizontalOrigin=d(this,e),this._style.labelHorizontalOrigin=f(this._labelHorizontalOrigin)}},labelVerticalOrigin:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._labelVerticalOrigin},set:function(e){this._labelVerticalOrigin=d(this,e),this._style.labelVerticalOrigin=f(this._labelVerticalOrigin)}},meta:{get:function(){if(!this._ready)throw new s.Z("The style is not loaded. Use Cesium3DTileStyle.readyPromise or wait for Cesium3DTileStyle.ready to be true.");return this._meta},set:function(e){this._meta=e}}}),h.prototype.getColorShaderFunction=function(e,t,i){return this._colorShaderFunctionReady?(i.translucent=this._colorShaderTranslucent,this._colorShaderFunction):(this._colorShaderFunctionReady=!0,(0,o.Z)(this.color)&&(0,o.Z)(this.color.getShaderFunction)?this._colorShaderFunction=this.color.getShaderFunction(e,t,i,"vec4"):this._colorShaderFunction=void 0,this._colorShaderTranslucent=i.translucent,this._colorShaderFunction)},h.prototype.getShowShaderFunction=function(e,t,i){return this._showShaderFunctionReady||(this._showShaderFunctionReady=!0,(0,o.Z)(this.show)&&(0,o.Z)(this.show.getShaderFunction)?this._showShaderFunction=this.show.getShaderFunction(e,t,i,"bool"):this._showShaderFunction=void 0),this._showShaderFunction},h.prototype.getPointSizeShaderFunction=function(e,t,i){return this._pointSizeShaderFunctionReady||(this._pointSizeShaderFunctionReady=!0,(0,o.Z)(this.pointSize)&&(0,o.Z)(this.pointSize.getShaderFunction)?this._pointSizeShaderFunction=this.pointSize.getShaderFunction(e,t,i,"float"):this._pointSizeShaderFunction=void 0),this._pointSizeShaderFunction},h.prototype.getVariables=function(){let e=[];return(0,o.Z)(this.color)&&(0,o.Z)(this.color.getVariables)&&e.push.apply(e,this.color.getVariables()),(0,o.Z)(this.show)&&(0,o.Z)(this.show.getVariables)&&e.push.apply(e,this.show.getVariables()),(0,o.Z)(this.pointSize)&&(0,o.Z)(this.pointSize.getVariables)&&e.push.apply(e,this.pointSize.getVariables()),e=e.filter((function(e,t,i){return i.indexOf(e)===t})),e};const p=h},76689:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(426468);function r(){this._style=void 0,this._styleDirty=!1,this._lastStyleTime=0}Object.defineProperties(r.prototype,{style:{get:function(){return this._style},set:function(e){e!==this._style&&(this._style=e,this._styleDirty=!0)}}}),r.prototype.makeDirty=function(){this._styleDirty=!0},r.prototype.resetDirty=function(){this._styleDirty=!1},r.prototype.applyStyle=function(e){if(!e.ready)return;if((0,n.Z)(this._style)&&!this._style.ready)return;const t=this._styleDirty;t&&++this._lastStyleTime;const i=this._lastStyleTime,r=e._statistics,o=t?e._selectedTiles:e._selectedTilesToStyle,s=o.length;for(let e=0;e{"use strict";i.d(t,{Z:()=>be});var n=i(140537),r=i(337968),o=i(919382),s=i(698907),a=i(357299),c=i(307260),u=i(846748),l=i(406144),h=i(426468),d=i(859071),f=i(54879),p=i(446938),m=i(253316),_=i(197685),Z=i(186174),g=i(40080),y=i(853755),b=i(362017),A=i(583917),w=i(795788),v=i(50128),T=i(358198),C=i(20209),E=i(842649),x=i(364232),S=i(527758),O=i(39213),I=i(709294),D=i(12441),P=i(765492),R=i(851046),B=i(880172),M=i(992722),L=i(286400),N=i(336316),F=i(210434),k=i(462090),U=i(76689),V=i(586949),z=i(105385),H=i(548463),G=i(980854),q=i(892512),j=i(332270),W=i(715696),K=i(182370),Y=i(506678),X=i(556198),J=i(42973),Q=i(119507),$=i(608034),ee=i(950412);function te(e){e=(0,l.Z)(e,l.Z.EMPTY_OBJECT),a.Z.defined("options.url",e.url),this._url=void 0,this._basePath=void 0,this._root=void 0,this._resource=void 0,this._asset=void 0,this._properties=void 0,this._geometricError=void 0,this._extensionsUsed=void 0,this._extensions=void 0,this._gltfUpAxis=void 0,this._cache=new N.Z,this._processingQueue=[],this._selectedTiles=[],this._emptyTiles=[],this._requestedTiles=[],this._selectedTilesToStyle=[],this._loadTimestamp=void 0,this._timeSinceLoad=0,this._updatedVisibilityFrame=0,this._updatedModelMatrixFrame=0,this._modelMatrixChanged=!1,this._previousModelMatrix=void 0,this._extras=void 0,this._credits=void 0,this._cullWithChildrenBounds=(0,l.Z)(e.cullWithChildrenBounds,!0),this._allTilesAdditive=!0,this._hasMixedContent=!1,this._stencilClearCommand=void 0,this._backfaceCommands=new y.Z,this._maximumScreenSpaceError=(0,l.Z)(e.maximumScreenSpaceError,16),this._maximumMemoryUsage=(0,l.Z)(e.maximumMemoryUsage,512),this._styleEngine=new U.Z,this._modelMatrix=(0,h.Z)(e.modelMatrix)?A.Z.clone(e.modelMatrix):A.Z.clone(A.Z.IDENTITY),this._statistics=new k.Z,this._statisticsLast=new k.Z,this._statisticsPerPass=new Array(M.Z.NUMBER_OF_PASSES);for(let e=0;en.Z._defaultMinTerrainHeight&&(t._initialClippingPlanesOriginMatrix=T.Z.eastNorthUpToFixedFrame(a)),t._clippingPlanesOriginMatrix=A.Z.clone(t._initialClippingPlanesOriginMatrix),t._readyPromise.resolve(t)})).otherwise((function(e){t._readyPromise.reject(e)}))}function ie(e,t,i,n){if((0,z.Z)(i,"3DTILES_implicit_tiling")){const r=(0,h.Z)(e.metadata)?e.metadata.schema:void 0,o=new H.Z(t,i,r),s=new G.Z({subdivisionScheme:o.subdivisionScheme,subtreeLevels:o.subtreeLevels,level:0,x:0,y:0,z:0}),a={content:{uri:o.subtreeUriTemplate.getDerivedResource({templateValues:s.getTemplateValues()}).url}},u=!0,l=(0,c.Z)(a,i,u);delete l.extensions;const d=new I.Z(e,t,l,n);return d.implicitTileset=o,d.implicitCoordinates=s,d}return new I.Z(e,t,i,n)}Object.defineProperties(te.prototype,{isCesium3DTileset:{get:function(){return!0}},asset:{get:function(){if(!this.ready)throw new p.Z("The tileset is not loaded. Use Cesium3DTileset.readyPromise or wait for Cesium3DTileset.ready to be true.");return this._asset}},extensions:{get:function(){if(!this.ready)throw new p.Z("The tileset is not loaded. Use Cesium3DTileset.readyPromise or wait for Cesium3DTileset.ready to be true.");return this._extensions}},clippingPlanes:{get:function(){return this._clippingPlanes},set:function(e){V.Z.setOwner(e,this,"_clippingPlanes")}},properties:{get:function(){if(!this.ready)throw new p.Z("The tileset is not loaded. Use Cesium3DTileset.readyPromise or wait for Cesium3DTileset.ready to be true.");return this._properties}},ready:{get:function(){return(0,h.Z)(this._root)}},readyPromise:{get:function(){return this._readyPromise.promise}},tilesLoaded:{get:function(){return this._tilesLoaded}},resource:{get:function(){return this._resource}},basePath:{get:function(){return(0,d.Z)("Cesium3DTileset.basePath","Cesium3DTileset.basePath has been deprecated. All tiles are relative to the url of the tileset JSON file that contains them. Use the url property instead."),this._basePath}},style:{get:function(){return this._styleEngine.style},set:function(e){this._styleEngine.style=e}},customShader:{get:function(){return this._customShader},set:function(e){this._customShader=e}},maximumScreenSpaceError:{get:function(){return this._maximumScreenSpaceError},set:function(e){a.Z.typeOf.number.greaterThanOrEquals("maximumScreenSpaceError",e,0),this._maximumScreenSpaceError=e}},maximumMemoryUsage:{get:function(){return this._maximumMemoryUsage},set:function(e){a.Z.typeOf.number.greaterThanOrEquals("value",e,0),this._maximumMemoryUsage=e}},pointCloudShading:{get:function(){return this._pointCloudShading},set:function(e){a.Z.defined("pointCloudShading",e),this._pointCloudShading=e}},root:{get:function(){if(!this.ready)throw new p.Z("The tileset is not loaded. Use Cesium3DTileset.readyPromise or wait for Cesium3DTileset.ready to be true.");return this._root}},boundingSphere:{get:function(){if(!this.ready)throw new p.Z("The tileset is not loaded. Use Cesium3DTileset.readyPromise or wait for Cesium3DTileset.ready to be true.");return this._root.updateTransform(this._modelMatrix),this._root.boundingSphere}},modelMatrix:{get:function(){return this._modelMatrix},set:function(e){this._modelMatrix=A.Z.clone(e,this._modelMatrix)}},timeSinceLoad:{get:function(){return this._timeSinceLoad}},totalMemoryUsageInBytes:{get:function(){const e=this._statistics;return e.texturesByteLength+e.geometryByteLength+e.batchTableByteLength}},clippingPlanesOriginMatrix:{get:function(){return(0,h.Z)(this._clippingPlanesOriginMatrix)?(this._clippingPlanesOriginMatrixDirty&&(A.Z.multiply(this.root.computedTransform,this._initialClippingPlanesOriginMatrix,this._clippingPlanesOriginMatrix),this._clippingPlanesOriginMatrixDirty=!1),this._clippingPlanesOriginMatrix):A.Z.IDENTITY}},styleEngine:{get:function(){return this._styleEngine}},statistics:{get:function(){return this._statistics}},classificationType:{get:function(){return this._classificationType}},ellipsoid:{get:function(){return this._ellipsoid}},foveatedConeSize:{get:function(){return this._foveatedConeSize},set:function(e){a.Z.typeOf.number.greaterThanOrEquals("foveatedConeSize",e,0),a.Z.typeOf.number.lessThanOrEquals("foveatedConeSize",e,1),this._foveatedConeSize=e}},foveatedMinimumScreenSpaceErrorRelaxation:{get:function(){return this._foveatedMinimumScreenSpaceErrorRelaxation},set:function(e){a.Z.typeOf.number.greaterThanOrEquals("foveatedMinimumScreenSpaceErrorRelaxation",e,0),a.Z.typeOf.number.lessThanOrEquals("foveatedMinimumScreenSpaceErrorRelaxation",e,this.maximumScreenSpaceError),this._foveatedMinimumScreenSpaceErrorRelaxation=e}},extras:{get:function(){if(!this.ready)throw new p.Z("The tileset is not loaded. Use Cesium3DTileset.readyPromise or wait for Cesium3DTileset.ready to be true.");return this._extras}},imageBasedLightingFactor:{get:function(){return this._imageBasedLightingFactor},set:function(e){a.Z.typeOf.object("imageBasedLightingFactor",e),a.Z.typeOf.number.greaterThanOrEquals("imageBasedLightingFactor.x",e.x,0),a.Z.typeOf.number.lessThanOrEquals("imageBasedLightingFactor.x",e.x,1),a.Z.typeOf.number.greaterThanOrEquals("imageBasedLightingFactor.y",e.y,0),a.Z.typeOf.number.lessThanOrEquals("imageBasedLightingFactor.y",e.y,1),r.Z.clone(e,this._imageBasedLightingFactor)}},vectorClassificationOnly:{get:function(){return this._vectorClassificationOnly}},vectorKeepDecodedPositions:{get:function(){return this._vectorKeepDecodedPositions}}}),te.loadJson=function(e){return w.Z.createIfNeeded(e).fetchJson()},te.prototype.makeStyleDirty=function(){this._styleEngine.makeDirty()},te.prototype.loadTileset=function(e,t,i){const n=t.asset;if(!(0,h.Z)(n))throw new v.Z("Tileset must have an asset property.");if("0.0"!==n.version&&"1.0"!==n.version)throw new v.Z("The tileset must be 3D Tiles version 0.0 or 1.0.");(0,h.Z)(t.extensionsRequired)&&te.checkSupportedExtensions(t.extensionsRequired);const r=this._statistics,o=n.tilesetVersion;(0,h.Z)(o)&&(this._basePath+="?v="+o,(e=e.clone()).setQueryParameters({v:o}));const s=ie(this,e,t.root,i);(0,h.Z)(i)&&(i.children.push(s),s._depth=i._depth+1);const a=[];for(a.push(s);a.length>0;){const t=a.pop();++r.numberOfTilesTotal,this._allTilesAdditive=this._allTilesAdditive&&t.refine===L.Z.ADD;const i=t._header.children;if((0,h.Z)(i)){const n=i.length;for(let r=0;r0?i.numberOfAttemptedRequests+=r:(n&&(t.hasTilesetContent||t.hasImplicitContent?function(e,t){const i=t,n=_e;for(n.push(t);n.length>0;){const r=(t=n.pop()).children,o=r.length;for(let e=0;e0?e.tileFailed.raiseEvent({url:n,message:r}):(console.log("A 3D tile failed to load: "+n),console.log("Error: "+r))}}(e,t)))}function le(e,t){return e._priority-t._priority}te.prototype.postPassesUpdate=function(e){this.ready&&(function(e,t){const i=e._requestedTilesInFlight;let n=0;const r=i.length;for(let e=0;e=1;r._contentState===P.Z.LOADING?o?(r.cancelRequests(),++n):n>0&&(i[e-n]=r):++n}i.length-=n}(this,e),function(e,t){const i=e._statistics,n=e._statisticsLast,r=i.numberOfPendingRequests,o=i.numberOfTilesProcessing,s=n.numberOfPendingRequests,a=n.numberOfTilesProcessing;k.Z.clone(i,n);const c=r!==s||o!==a;c&&t.afterRender.push((function(){e.loadProgress.raiseEvent(r,o)})),e._tilesLoaded=0===i.numberOfPendingRequests&&0===i.numberOfTilesProcessing&&0===i.numberOfAttemptedRequests,c&&e._tilesLoaded&&(t.afterRender.push((function(){e.allTilesLoaded.raiseEvent()})),e._initialTilesLoaded||(e._initialTilesLoaded=!0,t.afterRender.push((function(){e.initialTilesLoaded.raiseEvent()}))))}(this,e),this._cache.unloadTiles(this,Ze),this._styleEngine.resetDirty())},te.prototype.prePassesUpdate=function(e){if(!this.ready)return;!function(e,t){!function(e){const t=e._processingQueue,i=t.length;let n=0;for(let e=0;e0&&(t[e-n]=i):++n}t.length-=n}(e);const i=e._processingQueue,n=i.length;for(let r=0;rd.minimumRadius){const e=s.Z.fromCartesian(p,d,re);i=o.Z.normalize(u.positionWC,ne),n=u.directionWC,r=u.positionCartographic.height,a=0,c=2*e.height}else{const t=A.Z.multiplyByPoint(e,u.positionWC,ae);if(i=o.Z.UNIT_Z,n=A.Z.multiplyByPointAsVector(e,u.directionWC,ce),n=o.Z.normalize(n,n),r=t.z,h instanceof ee.Z){const e=l._header.boundingVolume.box[11];a=p.z-e,c=p.z+e}else if(h instanceof $.Z){const e=f.radius;a=p.z-e,c=p.z+e}}}const d=a+(c-a)*e.dynamicScreenSpaceErrorHeightFalloff,f=c,p=b.Z.clamp((r-d)/(f-d),0,1);let m=1-Math.abs(o.Z.dot(n,i));m*=1-p;let _=e.dynamicScreenSpaceErrorDensity;_*=m,e._dynamicScreenSpaceErrorComputedDensity=_}(this,e),e.newFrame&&this._cache.reset()};const he=new o.Z,de={maximumFractionDigits:3};function fe(e){const t=e/1048576;return t<1?t.toLocaleString(void 0,de):Math.round(t).toLocaleString()}function pe(e){const t=e.boundingVolume.boundingVolume,i=t.halfAxes,n=t.radius;let r=o.Z.clone(t.center,he);if((0,h.Z)(i))r.x+=.75*(i[0]+i[3]+i[6]),r.y+=.75*(i[1]+i[4]+i[7]),r.z+=.75*(i[2]+i[5]+i[8]);else if((0,h.Z)(n)){let e=o.Z.normalize(t.center,he);e=o.Z.multiplyByScalar(e,.75*n,he),r=o.Z.add(e,t.center,he)}return r}function me(e,t,i){let n="",r=0;if(t.debugShowGeometricError&&(n+="\nGeometric error: "+e.geometricError,r++),t.debugShowRenderingStatistics&&(n+="\nCommands: "+e.commandsLength,r++,e.content.pointsLength>0&&(n+="\nPoints: "+e.content.pointsLength,r++),e.content.trianglesLength>0&&(n+="\nTriangles: "+e.content.trianglesLength,r++),n+="\nFeatures: "+e.content.featuresLength,r++),t.debugShowMemoryUsage&&(n+="\nTexture Memory: "+fe(e.content.texturesByteLength),n+="\nGeometry Memory: "+fe(e.content.geometryByteLength),r+=2),t.debugShowUrl)if(e.hasMultipleContents){n+="\nUrls:";const t=e.content.innerContentUrls;for(let e=0;e0;e._backfaceCommands.length=0,_&&((0,h.Z)(e._stencilClearCommand)||(e._stencilClearCommand=new C.Z({stencil:0,pass:E.Z.CESIUM_3D_TILE,renderState:x.Z.fromCache({stencilMask:J.Z.SKIP_LOD_MASK})})),s.push(e._stencilClearCommand));const Z=s.length;for(p=0;p=0;--p)s[Z+i+p]=s[Z+p];for(p=0;p0&&e._pointCloudEyeDomeLighting.update(t,a,e.pointCloudShading,e.boundingSphere),n&&(e.debugShowGeometricError||e.debugShowRenderingStatistics||e.debugShowMemoryUsage||e.debugShowUrl?((0,h.Z)(e._tileDebugLabels)||(e._tileDebugLabels=new q.Z),function(e,t){let i,n;const o=e._selectedTiles,s=o.length,a=e._emptyTiles,c=a.length;if(e._tileDebugLabels.removeAll(),e.debugPickedTileLabelOnly){if((0,h.Z)(e.debugPickedTile)){const t=(0,h.Z)(e.debugPickPosition)?e.debugPickPosition:pe(e.debugPickedTile);me(e.debugPickedTile,e,t).pixelOffset=new r.Z(15,-15)}}else{for(i=0;i-1},te.prototype.isDestroyed=function(){return!1},te.prototype.destroy=function(){if(this._tileDebugLabels=this._tileDebugLabels&&this._tileDebugLabels.destroy(),this._clippingPlanes=this._clippingPlanes&&this._clippingPlanes.destroy(),(0,h.Z)(this._schemaLoader)&&K.Z.unload(this._schemaLoader),(0,h.Z)(this._root)){const e=_e;for(e.push(this._root);e.length>0;){const t=e.pop();t.destroy();const i=t.children,n=i.length;for(let t=0;t{"use strict";i.d(t,{Z:()=>s});var n=i(426468),r=i(208014);function o(){this._list=new r.Z,this._sentinel=this._list.add(),this._trimTiles=!1}o.prototype.reset=function(){this._list.splice(this._list.tail,this._sentinel)},o.prototype.touch=function(e){const t=e.cacheNode;(0,n.Z)(t)&&this._list.splice(this._sentinel,t)},o.prototype.add=function(e){(0,n.Z)(e.cacheNode)||(e.cacheNode=this._list.add(e))},o.prototype.unloadTile=function(e,t,i){const r=t.cacheNode;(0,n.Z)(r)&&(this._list.remove(r),t.cacheNode=void 0,i(e,t))},o.prototype.unloadTiles=function(e,t){const i=this._trimTiles;this._trimTiles=!1;const n=this._list,r=1024*e.maximumMemoryUsage*1024,o=this._sentinel;let s=n.head;for(;s!==o&&(e.totalMemoryUsageInBytes>r||i);){const i=s.item;s=s.next,this.unloadTile(e,i,t)}},o.prototype.trim=function(){this._trimTiles=!0};const s=o},210434:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(545125),r=i(426468),o=i(40080),s=i(362017);function a(e){this.tilePropertyName=e,this._minimum=Number.MAX_VALUE,this._maximum=-Number.MAX_VALUE,this._previousMinimum=Number.MAX_VALUE,this._previousMaximum=-Number.MAX_VALUE,this._referenceMinimum={},this._referenceMaximum={}}function c(e,t){let i;return i="_loadTimestamp"===t?o.Z.toDate(e).getTime():e,i}a.prototype.setReferenceMinimumMaximum=function(e,t,i){this._referenceMinimum[i]=c(e,i),this._referenceMaximum[i]=c(t,i)};const u=[new n.Z(.1,.1,.1,1),new n.Z(.153,.278,.878,1),new n.Z(.827,.231,.49,1),new n.Z(.827,.188,.22,1),new n.Z(1,.592,.259,1),new n.Z(1,.843,0,1)];a.prototype.colorize=function(e,t){const i=this.tilePropertyName;if(!(0,r.Z)(i)||!e.contentAvailable||e._selectedFrame!==t.frameNumber)return;const o=function(e,t){const i=e.tilePropertyName;if((0,r.Z)(i)){const n=c(t[i],i);return(0,r.Z)(n)?(e._maximum=Math.max(n,e._maximum),e._minimum=Math.min(n,e._minimum),n):(e.tilePropertyName=void 0,n)}}(this,e),a=this._previousMinimum,l=this._previousMaximum;if(a===Number.MAX_VALUE||l===-Number.MAX_VALUE)return;const h=l-a+s.Z.EPSILON7,d=s.Z.clamp(o-a,0,h)/h*(u.length-1),f=Math.floor(d),p=Math.ceil(d),m=d-f,_=u[f],Z=u[p],g=n.Z.clone(n.Z.WHITE);g.red=s.Z.lerp(_.red,Z.red,m),g.green=s.Z.lerp(_.green,Z.green,m),g.blue=s.Z.lerp(_.blue,Z.blue,m),e._debugColor=g},a.prototype.resetMinimumMaximum=function(){const e=this.tilePropertyName;if((0,r.Z)(e)){const t=this._referenceMinimum[e],i=this._referenceMaximum[e],n=(0,r.Z)(t)&&(0,r.Z)(i);this._previousMinimum=n?t:this._minimum,this._previousMaximum=n?i:this._maximum,this._minimum=Number.MAX_VALUE,this._maximum=-Number.MAX_VALUE}};const l=a},851046:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(357299),r=i(406144),o=i(426468),s=i(881417),a=i(824589);function c(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).extension,i=e.schema;n.Z.typeOf.object("options.extension",t),n.Z.typeOf.object("options.schema",i);const c={};if((0,o.Z)(t.groups))for(const e in t.groups)if(t.groups.hasOwnProperty(e)){const n=t.groups[e];c[e]=new s.Z({id:e,group:t.groups[e],class:i.classes[n.class]})}let u;(0,o.Z)(t.tileset)&&(u=new a.Z({tileset:t.tileset,class:i.classes[t.tileset.class]})),this._schema=i,this._groups=c,this._tileset=u,this._statistics=t.statistics,this._extras=t.extras,this._extensions=t.extensions}Object.defineProperties(c.prototype,{schema:{get:function(){return this._schema}},groups:{get:function(){return this._groups}},tileset:{get:function(){return this._tileset}},statistics:{get:function(){return this._statistics}},extras:{get:function(){return this._extras}},extensions:{get:function(){return this._extensions}}});const u=c},728471:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_});var n=i(360382),r=i(853755),o=i(286400);function s(){}const a={stack:new r.Z,stackMaximumLength:0};function c(e){return e._visible&&e._inRequestVolume}function u(e){return e.hasEmptyContent||e.hasTilesetContent||e.hasImplicitContent}function l(e,t){return 0!==t.children.length&&(t.hasTilesetContent||t.hasImplicitContent?!t.contentExpired:(t.hasEmptyContent,!0))}function h(e,t,i,n){const r=t.children,o=r.length;for(let e=0;e0;){a.stackMaximumLength=Math.max(a.stackMaximumLength,r.length);const n=r.pop(),s=n.refine===o.Z.ADD,c=n.refine===o.Z.REPLACE,_=l(0,n);_&&h(0,n,r,t),(s||c&&!_)&&(d(e,n),f(e,n,t),m(e,n,t),u(n)||n.contentAvailable||(i=!1)),p(e)}return a.stack.trim(a.stackMaximumLength),i};const _=s},462090:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(426468);function r(){this.selected=0,this.visited=0,this.numberOfCommands=0,this.numberOfAttemptedRequests=0,this.numberOfPendingRequests=0,this.numberOfTilesProcessing=0,this.numberOfTilesWithContentReady=0,this.numberOfTilesTotal=0,this.numberOfLoadedTilesTotal=0,this.numberOfFeaturesSelected=0,this.numberOfFeaturesLoaded=0,this.numberOfPointsSelected=0,this.numberOfPointsLoaded=0,this.numberOfTrianglesSelected=0,this.numberOfTilesStyled=0,this.numberOfFeaturesStyled=0,this.numberOfTilesCulledWithChildrenUnion=0,this.geometryByteLength=0,this.texturesByteLength=0,this.batchTableByteLength=0}function o(e,t,i,r){const s=t.innerContents,a=t.pointsLength,c=t.trianglesLength,u=t.featuresLength,l=t.geometryByteLength,h=t.texturesByteLength,d=t.batchTableByteLength;if(r?(e.numberOfFeaturesLoaded+=i?-u:u,e.numberOfPointsLoaded+=i?-a:a,e.geometryByteLength+=i?-l:l,e.texturesByteLength+=i?-h:h,e.batchTableByteLength+=i?-d:d):(e.numberOfFeaturesSelected+=i?-u:u,e.numberOfPointsSelected+=i?-a:a,e.numberOfTrianglesSelected+=i?-c:c),(0,n.Z)(s)){const t=s.length;for(let n=0;n{"use strict";i.d(t,{Z:()=>M});var n=i(426468),r=i(360382),o=i(853755),s=i(645982),a=i(286400);function c(){}function u(e){return e._visible&&e._inRequestVolume}const l={stack:new o.Z,stackMaximumLength:0},h={stack:new o.Z,stackMaximumLength:0},d={stack:new o.Z,stackMaximumLength:0},f={stack:new o.Z,stackMaximumLength:0,ancestorStack:new o.Z,ancestorStackMaximumLength:0};function p(e){return e._skipLevelOfDetail}function m(e,t){e._emptyTiles.push(t)}function _(e,t,i){if(t.contentVisibility(i)!==r.Z.OUTSIDE){const n=t.content;n.featurePropertiesDirty?(n.featurePropertiesDirty=!1,t.lastStyleTime=0,e._selectedTilesToStyle.push(t)):t._selectedFrame0;){d.stackMaximumLength=Math.max(d.stackMaximumLength,n.length);const r=n.pop().children,o=r.length;for(let s=0;s0;if((t.hasTilesetContent||t.hasImplicitContent)&&r){const n=t.children[0];return w(e,n,i),void(t._visible=n._visible)}if(function(e,t,i){const r=t.parent;return!(!(0,n.Z)(r)||r.hasTilesetContent||r.hasImplicitContent||r.refine!==a.Z.ADD)&&t.getScreenSpaceError(i,!0)<=e._maximumScreenSpaceError}(e,t,i))return void(t._visible=!1);const o=t.refine===a.Z.REPLACE,c=t._optimChildrenWithinParent===s.Z.USE_OPTIMIZATION;return o&&c&&r&&!function(e,t,i){let n=!1;const r=t.children,o=r.length;for(let t=0;ti._depth+e.skipLevels)}function S(e,t){return 0===t._distanceToCamera&&0===e._distanceToCamera?t._centerZDepth-e._centerZDepth:t._distanceToCamera-e._distanceToCamera}function O(e,t,i,n){let r;const o=t.refine===a.Z.REPLACE,s=t.children,c=s.length;for(r=0;ri:t._screenSpaceError>i))}function D(e,t){return 0!==t.children.length&&(t.hasTilesetContent||t.hasImplicitContent?!t.contentExpired:t._screenSpaceError>e._maximumScreenSpaceError)}function P(e,t,i,r,o){const s=l.stack;for(s.push(t);s.length>0;){l.stackMaximumLength=Math.max(l.stackMaximumLength,s.length);const t=s.pop();T(t,o);const r=I(e,t,i),c=t.refine===a.Z.ADD,u=t.refine===a.Z.REPLACE,h=t.parent,d=!(0,n.Z)(h)||h._refines;let f=!1;D(e,t)&&(f=O(e,t,s,o)&&d);const p=!f&&d;C(t)?(m(e,t),b(e,t,o),p&&Z(e,t,o)):c?(Z(e,t,o),b(e,t,o)):u&&(r?(b(e,t,o),p&&Z(e,t,o)):p?(Z(e,t,o),b(e,t,o)):x(e,t)&&b(e,t,o)),g(e,t,o),y(e,t,o),t._refines=f}}function R(e,t,i){let n=!0;const r=h.stack;for(r.push(t);r.length>0;){h.stackMaximumLength=Math.max(h.stackMaximumLength,r.length);const t=r.pop(),o=t.children,s=o.length,a=C(t),c=a&&D(e,t),l=a&&0===t.children.length;if(c||t.contentAvailable||l||(n=!1),v(e,t,i),u(t)||(b(e,t,i),y(e,t,i)),c)for(let e=0;e0||o.length>0;){if(f.stackMaximumLength=Math.max(f.stackMaximumLength,r.length),f.ancestorStackMaximumLength=Math.max(f.ancestorStackMaximumLength,o.length),o.length>0){const t=o.peek();if(t._stackLength===r.length){o.pop(),t!==s&&(t._finalResolution=!1),_(e,t,i);continue}}const t=r.pop();if(!(0,n.Z)(t))continue;const c=t.refine===a.Z.ADD,l=t._shouldSelect,h=t.children,d=h.length,p=D(e,t);if(l)if(c)_(e,t,i);else{if(t._selectionDepth=o.length,t._selectionDepth>0&&(e._hasMixedContent=!0),s=t,!p){_(e,t,i);continue}o.push(t),t._stackLength=r.length}if(p)for(let e=0;e{"use strict";i.d(t,{Z:()=>c});var n=i(919382),r=i(357299),o=i(406144),s=i(362017);function a(e){e=(0,o.Z)(e,1),r.Z.typeOf.number.greaterThan("radius",e,0),this._radius=(0,o.Z)(e,1)}Object.defineProperties(a.prototype,{radius:{get:function(){return this._radius},set:function(e){r.Z.typeOf.number.greaterThan("value",e,0),this._radius=e}}}),a.prototype.emit=function(e){const t=s.Z.randomBetween(0,s.Z.TWO_PI),i=s.Z.randomBetween(0,this._radius),r=i*Math.cos(t),o=i*Math.sin(t);e.position=n.Z.fromElements(r,o,0,e.position),e.velocity=n.Z.clone(n.Z.UNIT_Z,e.velocity)};const c=a},438420:(e,t,i)=>{"use strict";i.d(t,{Z:()=>j});var n=i(155597),r=i(360791),o=i(919382),s=i(114754),a=i(545125),c=i(307260),u=i(997274),l=i(406144),h=i(426468),d=i(54879),f=i(446938),p=i(488802),m=i(546135),_=i(583917),Z=i(195809),g=i(50128),y=i(358198),b=i(619287),A=i(19632),w=i(794130),v=i(675622),T=i(597722),C=i(761766),E=i(68822),x=i(527758),S=i(39213),O=i(774664),I=i(152823),D=i(102610),P=i(883748),R=i(506678),B=i(844702),M=i(388181);const L=new o.Z,N=I.Z.ModelState;function F(e){let t=(e=(0,l.Z)(e,l.Z.EMPTY_OBJECT)).gltf;if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),!(t instanceof Uint8Array))throw new g.Z("Only binary glTF is supported as a classifier.");t=(0,C.Z)(t),(0,E.Z)(t),(0,A.Z)(t),(0,D.Z)(t),(0,P.Z)(t),w.Z.buffer(t,(function(e){if(!(0,h.Z)(e.extras._pipeline.source))throw new g.Z("Buffer data must be embedded in the binary gltf.")}));const i=t.nodes,n=t.meshes,o=i[0].mesh;if(1!==i.length||!(0,h.Z)(o))throw new g.Z("Only one node is supported for classification and it must have a mesh.");if(1!==n.length)throw new g.Z("Only one mesh is supported when using b3dm for classification.");const s=n[0].primitives;if(1!==s.length)throw new g.Z("Only one primitive per mesh is supported when using b3dm for classification.");const a=s[0].attributes.POSITION;if(!(0,h.Z)(a))throw new g.Z("The mesh must have a position attribute.");const c=s[0].attributes._BATCHID;if(!(0,h.Z)(c))throw new g.Z("The mesh must have a batch id attribute.");this._gltf=t,this.show=(0,l.Z)(e.show,!0),this.modelMatrix=_.Z.clone((0,l.Z)(e.modelMatrix,_.Z.IDENTITY)),this._modelMatrix=_.Z.clone(this.modelMatrix),this._ready=!1,this._readyPromise=x.Z.defer(),this.debugShowBoundingVolume=(0,l.Z)(e.debugShowBoundingVolume,!1),this._debugShowBoundingVolume=!1,this.debugWireframe=(0,l.Z)(e.debugWireframe,!1),this._debugWireframe=!1,this._classificationType=e.classificationType,this._vertexShaderLoaded=e.vertexShaderLoaded,this._classificationShaderLoaded=e.classificationShaderLoaded,this._uniformMapLoaded=e.uniformMapLoaded,this._pickIdLoaded=e.pickIdLoaded,this._ignoreCommands=(0,l.Z)(e.ignoreCommands,!1),this._upAxis=(0,l.Z)(e.upAxis,S.Z.Y),this._batchTable=e.batchTable,this._computedModelMatrix=new _.Z,this._initialRadius=void 0,this._boundingSphere=void 0,this._scaledBoundingSphere=new r.Z,this._state=N.NEEDS_LOAD,this._loadResources=void 0,this._mode=void 0,this._dirty=!1,this._nodeMatrix=new _.Z,this._primitive=void 0,this._extensionsUsed=void 0,this._extensionsRequired=void 0,this._quantizedUniforms=void 0,this._buffers={},this._vertexArray=void 0,this._shaderProgram=void 0,this._uniformMap=void 0,this._geometryByteLength=0,this._trianglesLength=0,this._rtcCenter=void 0,this._rtcCenterEye=void 0,this._rtcCenter3D=void 0,this._rtcCenter2D=void 0}function k(e,t){const i=t._loadResources,n=t.gltf.bufferViews[e],r=i.getBuffer(n);t._buffers[e]=r,t._geometryByteLength+=r.byteLength}function U(e,t,i){const n=i._loadResources,r=i.gltf.bufferViews[e],o={typedArray:n.getBuffer(r),indexDatatype:t};i._buffers[e]=o,i._geometryByteLength+=o.typedArray.byteLength}function V(e,t){return(0,h.Z)(t)&&(e=t(e)),e}Object.defineProperties(F.prototype,{gltf:{get:function(){return this._gltf}},boundingSphere:{get:function(){if(this._state!==N.LOADED)throw new f.Z("The model is not loaded. Use ClassificationModel.readyPromise or wait for ClassificationModel.ready to be true.");const e=this.modelMatrix,t=_.Z.getScale(e,L),i=this._scaledBoundingSphere;return i.center=o.Z.multiplyComponents(this._boundingSphere.center,t,i.center),i.radius=o.Z.maximumComponent(t)*this._initialRadius,(0,h.Z)(this._rtcCenter)&&o.Z.add(this._rtcCenter,i.center,i.center),i}},ready:{get:function(){return this._ready}},readyPromise:{get:function(){return this._readyPromise.promise}},dirty:{get:function(){return this._dirty}},extensionsUsed:{get:function(){return(0,h.Z)(this._extensionsUsed)||(this._extensionsUsed=I.Z.getUsedExtensions(this.gltf)),this._extensionsUsed}},extensionsRequired:{get:function(){return(0,h.Z)(this._extensionsRequired)||(this._extensionsRequired=I.Z.getRequiredExtensions(this.gltf)),this._extensionsRequired}},upAxis:{get:function(){return this._upAxis}},trianglesLength:{get:function(){return this._trianglesLength}},geometryByteLength:{get:function(){return this._geometryByteLength}},texturesByteLength:{get:function(){return 0}},classificationType:{get:function(){return this._classificationType}}});const z={PROJECTION:function(e,t){return I.Z.getGltfSemanticUniforms().PROJECTION(e,t)},MODELVIEW:function(e,t){return I.Z.getGltfSemanticUniforms().MODELVIEW(e,t)},CESIUM_RTC_MODELVIEW:function(e,t){return I.Z.getGltfSemanticUniforms().CESIUM_RTC_MODELVIEW(e,t)},MODELVIEWPROJECTION:function(e,t){return I.Z.getGltfSemanticUniforms().MODELVIEWPROJECTION(e,t)}};function H(e,t){const i=t.context;I.Z.checkSupportedGlExtensions(e.gltf.glExtensionsUsed,i),function(e){const t=e._loadResources;if(0!==t.pendingBufferLoads)return;const i=t.vertexBuffersToCreate,n=t.indexBuffersToCreate;for(;i.length>0;)k(i.dequeue(),e);for(;n.length>0;){const t=n.dequeue();U(t.id,t.componentType,e)}}(e),function(e){const t=e.gltf,i=I.Z.getAttributeOrUniformBySemantic(t,"POSITION"),n=I.Z.getAttributeOrUniformBySemantic(t,"_BATCHID"),r={};r[i]=0,r[n]=1;const o=I.Z.getAttributeOrUniformBySemantic(t,"MODELVIEWPROJECTION");let s,a;if((0,h.Z)(o))s="uniform mat4 "+o+";\n",a=o+" * vec4("+i+", 1.0)";else{const e=I.Z.getAttributeOrUniformBySemantic(t,"PROJECTION");let n=I.Z.getAttributeOrUniformBySemantic(t,"MODELVIEW");(0,h.Z)(n)||(n=I.Z.getAttributeOrUniformBySemantic(t,"CESIUM_RTC_MODELVIEW")),s="uniform mat4 "+n+";\nuniform mat4 "+e+";\n",a=e+" * "+n+" * vec4("+i+", 1.0)"}let c="attribute vec3 "+i+";\nattribute float "+n+";\n"+s+"void main() {\n vec4 positionInClipCoords = "+a+";\n gl_Position = czm_depthClamp(positionInClipCoords);\n}\n";e.extensionsUsed.WEB3D_quantized_attributes&&(c=function(e,t){const i=t.gltf.meshes[0].primitives[0],n=I.Z.modifyShaderForQuantizedAttributes(t.gltf,i,e);return t._quantizedUniforms=n.uniforms,n.shader}(c,e));const u=V(c,e._vertexShaderLoaded),l=V("#ifdef GL_EXT_frag_depth\n#extension GL_EXT_frag_depth : enable\n#endif\nvoid main() \n{ \n gl_FragColor = vec4(1.0); \n czm_writeDepthClamp();\n}\n",e._classificationShaderLoaded);e._shaderProgram={vertexShaderSource:u,fragmentShaderSource:l,attributeLocations:r}}(e),function(e){if(!e._loadResources.finishedBuffersCreation()||(0,h.Z)(e._vertexArray))return;const t=e._buffers,i=e.gltf,n=i.accessors,r=i.meshes[0].primitives[0],o={POSITION:0,_BATCHID:1},s={};let a;if(w.Z.meshPrimitiveAttribute(r,(function(e,r){const a=o[r];if((0,h.Z)(a)){const o=n[e];s[r]={index:a,vertexBuffer:t[o.bufferView],componentsPerAttribute:(0,T.Z)(o.type),componentDatatype:o.componentType,offsetInBytes:o.byteOffset,strideInBytes:(0,v.Z)(i,o)}}})),(0,h.Z)(r.indices)){const e=n[r.indices];a=t[e.bufferView]}e._vertexArray={attributes:s,indexBuffer:a}}(e),function(e,t){if((0,h.Z)(e._uniformMap))return;const i={};w.Z.technique(e.gltf,(function(n){w.Z.techniqueUniform(n,(function(n,r){(0,h.Z)(n.semantic)&&(0,h.Z)(z[n.semantic])&&(i[r]=z[n.semantic](t.uniformState,e))}))})),e._uniformMap=i}(e,i),function(e){if(!e._loadResources.finished())return;if((0,h.Z)(e._primitive))return;const t=e.gltf.nodes[0];e._nodeMatrix=I.Z.getTransform(t,e._nodeMatrix),function(e){const t=e._batchTable;let i=e._uniformMap;const s=e._vertexArray,l=e.gltf,d=l.accessors,f=l.meshes[0].primitives[0],p=d[f.indices],g=f.attributes.POSITION,y=I.Z.getAccessorMinMax(l,g),b=r.Z.fromCornerPoints(o.Z.fromArray(y.min),o.Z.fromArray(y.max));let A,w;if((0,h.Z)(p)?(w=p.count,A=p.byteOffset/m.Z.getSizeInBytes(p.componentType)):(w=d[f.attributes.POSITION].count,A=0),e._trianglesLength+=function(e,t){switch(e.mode){case Z.Z.TRIANGLES:return t/3;case Z.Z.TRIANGLE_STRIP:case Z.Z.TRIANGLE_FAN:return Math.max(t-2,0);default:return 0}}(f,w),(0,h.Z)(e._uniformMapLoaded)&&(i=e._uniformMapLoaded(i)),e.extensionsUsed.WEB3D_quantized_attributes){const t=function(e,t){return I.Z.createUniformsForQuantizedAttributes(e.gltf,t,e._quantizedUniforms)}(e,f);i=(0,c.Z)(i,t)}let v=s.attributes.POSITION,T=v.componentDatatype,C=v.vertexBuffer,E=C.byteOffset,x=C.byteLength/u.Z.getSizeInBytes(T),S=u.Z.createArrayBufferView(T,C.buffer,E,x);v=s.attributes._BATCHID,T=v.componentDatatype,C=v.vertexBuffer,E=C.byteOffset,x=C.byteLength/u.Z.getSizeInBytes(T);let O=u.Z.createArrayBufferView(T,C.buffer,E,x);const D=s.indexBuffer.typedArray;let P;P=s.indexBuffer.indexDatatype===m.Z.UNSIGNED_SHORT?new Uint16Array(D.buffer,D.byteOffset,D.byteLength/Uint16Array.BYTES_PER_ELEMENT):new Uint32Array(D.buffer,D.byteOffset,D.byteLength/Uint32Array.BYTES_PER_ELEMENT),S=(0,n.Z)(S),O=(0,n.Z)(O),P=(0,n.Z)(P,A,A+w);const R=[],L=[],N=[],F=[];let k,U,V,z=O[P[0]];R.push(z),N.push(0);const H=P.length;for(let e=1;e{"use strict";i.d(t,{Z:()=>M});var n=i(182934),r=i(307260),o=i(406144),s=i(426468),a=i(54879),c=i(446938),u=i(952254),l=i(247913),h=i(842649),d=i(364232),f=i(928096),p=i(279427),m=i(413354),_=i(936342),Z=i(527758),g=i(451356),y=i(576049),b=i(329286),A=i(578721),w=i(939800),v=i(506678),T=i(816723),C=i(42973),E=i(786861),x=i(301859);function S(e){const t=(e=(0,o.Z)(e,o.Z.EMPTY_OBJECT)).geometryInstances;this.geometryInstances=t,this.show=(0,o.Z)(e.show,!0),this.classificationType=(0,o.Z)(e.classificationType,y.Z.BOTH),this.debugShowBoundingVolume=(0,o.Z)(e.debugShowBoundingVolume,!1),this.debugShowShadowVolume=(0,o.Z)(e.debugShowShadowVolume,!1),this._debugShowShadowVolume=!1,this._extruded=(0,o.Z)(e._extruded,!1),this._uniformMap=e._uniformMap,this._sp=void 0,this._spStencil=void 0,this._spPick=void 0,this._spColor=void 0,this._spPick2D=void 0,this._spColor2D=void 0,this._rsStencilDepthPass=void 0,this._rsStencilDepthPass3DTiles=void 0,this._rsColorPass=void 0,this._rsPickPass=void 0,this._commandsIgnoreShow=[],this._ready=!1,this._readyPromise=Z.Z.defer(),this._primitive=void 0,this._pickPrimitive=e._pickPrimitive,this._hasSphericalExtentsAttribute=!1,this._hasPlanarExtentsAttributes=!1,this._hasPerColorAttribute=!1,this.appearance=e.appearance,this._createBoundingVolumeFunction=e._createBoundingVolumeFunction,this._updateAndQueueCommandsFunction=e._updateAndQueueCommandsFunction,this._usePickOffsets=!1,this._primitiveOptions={geometryInstances:void 0,appearance:void 0,vertexCacheOptimize:(0,o.Z)(e.vertexCacheOptimize,!1),interleave:(0,o.Z)(e.interleave,!1),releaseGeometryInstances:(0,o.Z)(e.releaseGeometryInstances,!0),allowPicking:(0,o.Z)(e.allowPicking,!0),asynchronous:(0,o.Z)(e.asynchronous,!0),compressVertices:(0,o.Z)(e.compressVertices,!0),_createBoundingVolumeFunction:void 0,_createRenderStatesFunction:void 0,_createShaderProgramFunction:void 0,_createCommandsFunction:void 0,_updateAndQueueCommandsFunction:void 0,_createPickOffsets:!0}}function O(e,t){const i=t?E.Z.EQUAL:E.Z.ALWAYS;return{colorMask:{red:!1,green:!1,blue:!1,alpha:!1},stencilTest:{enabled:e,frontFunction:i,frontOperation:{fail:x.Z.KEEP,zFail:x.Z.DECREMENT_WRAP,zPass:x.Z.KEEP},backFunction:i,backOperation:{fail:x.Z.KEEP,zFail:x.Z.INCREMENT_WRAP,zPass:x.Z.KEEP},reference:C.Z.CESIUM_3D_TILE_MASK,mask:C.Z.CESIUM_3D_TILE_MASK},stencilMask:C.Z.CLASSIFICATION_MASK,depthTest:{enabled:!0,func:b.Z.LESS_OR_EQUAL},depthMask:!1}}function I(e){return{stencilTest:{enabled:e,frontFunction:E.Z.NOT_EQUAL,frontOperation:{fail:x.Z.ZERO,zFail:x.Z.ZERO,zPass:x.Z.ZERO},backFunction:E.Z.NOT_EQUAL,backOperation:{fail:x.Z.ZERO,zFail:x.Z.ZERO,zPass:x.Z.ZERO},reference:0,mask:C.Z.CLASSIFICATION_MASK},stencilMask:C.Z.CLASSIFICATION_MASK,depthTest:{enabled:!1},depthMask:!1,blending:g.Z.PRE_MULTIPLIED_ALPHA_BLEND}}Object.defineProperties(S.prototype,{vertexCacheOptimize:{get:function(){return this._primitiveOptions.vertexCacheOptimize}},interleave:{get:function(){return this._primitiveOptions.interleave}},releaseGeometryInstances:{get:function(){return this._primitiveOptions.releaseGeometryInstances}},allowPicking:{get:function(){return this._primitiveOptions.allowPicking}},asynchronous:{get:function(){return this._primitiveOptions.asynchronous}},compressVertices:{get:function(){return this._primitiveOptions.compressVertices}},ready:{get:function(){return this._ready}},readyPromise:{get:function(){return this._readyPromise.promise}},_needs2DShader:{get:function(){return this._hasPlanarExtentsAttributes||this._hasSphericalExtentsAttribute}}}),S.isSupported=function(e){return e.context.stencilBuffer};const D={stencilTest:{enabled:!0,frontFunction:E.Z.NOT_EQUAL,frontOperation:{fail:x.Z.ZERO,zFail:x.Z.ZERO,zPass:x.Z.ZERO},backFunction:E.Z.NOT_EQUAL,backOperation:{fail:x.Z.ZERO,zFail:x.Z.ZERO,zPass:x.Z.ZERO},reference:0,mask:C.Z.CLASSIFICATION_MASK},stencilMask:C.Z.CLASSIFICATION_MASK,depthTest:{enabled:!1},depthMask:!1};function P(e,t){return Math.floor(e%t/2)}function R(e,t,i,n,r,o){e.modelMatrix=i,e.boundingVolume=r,e.cull=n,e.debugShowBoundingVolume=o,t.commandList.push(e)}function B(e,t,i,n,r){e.modelMatrix=i,e.boundingVolume=r,e.cull=n,t.commandList.push(e)}S.prototype.update=function(e){if(!(0,s.Z)(this._primitive)&&!(0,s.Z)(this.geometryInstances))return;let t=this.appearance;(0,s.Z)(t)&&(0,s.Z)(t.material)&&t.material.update(e.context);const i=this,a=this._primitiveOptions;if(!(0,s.Z)(this._primitive)){const e=Array.isArray(this.geometryInstances)?this.geometryInstances:[this.geometryInstances],Z=e.length;let g,b,C,E,x=!1,S=!0,M=!1,L=!1;for(Z>0&&(C=e[0].attributes,M=T.Z.hasAttributesForSphericalExtents(C),L=T.Z.hasAttributesForTextureCoordinatePlanes(C),E=C.color),g=0;g{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({TERRAIN:0,CESIUM_3D_TILE:1,BOTH:2,NUMBER_OF_CLASSIFICATION_TYPES:3})},488395:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(919382),r=i(357299),o=i(426468);function s(e,t){r.Z.typeOf.object("normal",e),r.Z.typeOf.number("distance",t),this._distance=t,this._normal=new a(e,this),this.onChangeCallback=void 0,this.index=-1}function a(e,t){this._clippingPlane=t,this._cartesian3=n.Z.clone(e)}Object.defineProperties(s.prototype,{distance:{get:function(){return this._distance},set:function(e){r.Z.typeOf.number("value",e),(0,o.Z)(this.onChangeCallback)&&e!==this._distance&&this.onChangeCallback(this.index),this._distance=e}},normal:{get:function(){return this._normal},set:function(e){r.Z.typeOf.object("value",e),(0,o.Z)(this.onChangeCallback)&&!n.Z.equals(this._normal._cartesian3,e)&&this.onChangeCallback(this.index),n.Z.clone(e,this._normal._cartesian3)}}}),s.fromPlane=function(e,t){return r.Z.typeOf.object("plane",e),(0,o.Z)(t)?(t.normal=e.normal,t.distance=e.distance):t=new s(e.normal,e.distance),t},s.clone=function(e,t){return(0,o.Z)(t)?(t.normal=e.normal,t.distance=e.distance,t):new s(e.normal,e.distance)},Object.defineProperties(a.prototype,{x:{get:function(){return this._cartesian3.x},set:function(e){r.Z.typeOf.number("value",e),(0,o.Z)(this._clippingPlane.onChangeCallback)&&e!==this._cartesian3.x&&this._clippingPlane.onChangeCallback(this._clippingPlane.index),this._cartesian3.x=e}},y:{get:function(){return this._cartesian3.y},set:function(e){r.Z.typeOf.number("value",e),(0,o.Z)(this._clippingPlane.onChangeCallback)&&e!==this._cartesian3.y&&this._clippingPlane.onChangeCallback(this._clippingPlane.index),this._cartesian3.y=e}},z:{get:function(){return this._cartesian3.z},set:function(e){r.Z.typeOf.number("value",e),(0,o.Z)(this._clippingPlane.onChangeCallback)&&e!==this._cartesian3.z&&this._clippingPlane.onChangeCallback(this._clippingPlane.index),this._cartesian3.z=e}}});const c=s},586949:(e,t,i)=>{"use strict";i.d(t,{Z:()=>L});var n=i(247976),r=i(337968),o=i(919382),s=i(114754),a=i(357299),c=i(545125),u=i(406144),l=i(426468),h=i(54879),d=i(446938),f=i(197685),p=i(360382),m=i(583917),_=i(100883),Z=i(634878),g=i(994589),y=i(687931),b=i(270013),A=i(283044),w=i(488395);function v(e){e=(0,u.Z)(e,u.Z.EMPTY_OBJECT),this._planes=[],this._dirtyIndex=-1,this._multipleDirtyPlanes=!1,this._enabled=(0,u.Z)(e.enabled,!0),this.modelMatrix=m.Z.clone((0,u.Z)(e.modelMatrix,m.Z.IDENTITY)),this.edgeColor=c.Z.clone((0,u.Z)(e.edgeColor,c.Z.WHITE)),this.edgeWidth=(0,u.Z)(e.edgeWidth,0),this.planeAdded=new f.Z,this.planeRemoved=new f.Z,this._owner=void 0;const t=(0,u.Z)(e.unionClippingRegions,!1);this._unionClippingRegions=t,this._testIntersection=t?T:C,this._uint8View=void 0,this._float32View=void 0,this._clippingPlanesTexture=void 0;const i=e.planes;if((0,l.Z)(i)){const e=i.length;for(let t=0;t0&&(o=p.Z.OUTSIDE);for(let t=0;t{"use strict";i.d(t,{Z:()=>fe});var n=i(451356),r=i(636807),o=i(50720),s=i(919382),a=i(357299),c=i(545125),u=i(138012),l=i(427763),h=i(800914),d=i(633858),f=i(894782),p=i(980880),m=i(997274),_=i(921673),Z=i(406144),g=i(426468),y=i(54879),b=i(446938),A=i(247913),w=i(275949),v=i(546135),T=i(842649),C=i(687931),E=i(100883),x=i(364232),S=i(270013),O=i(279427),I=i(928096),D=i(283044),P=i(59102),R=i(636664),B=i(655499),M=i(676311),L=i(311638),N=i(619287);let F;const k=new s.Z,U={positionHighAndScaleX:0,positionLowAndScaleY:1,packedAttribute0:2,packedAttribute1:3,color:4},V={direction:0,positionHighAndScaleX:1,positionLowAndScaleY:2,packedAttribute0:3,packedAttribute1:4,color:5},z=_.Z.SHOW_INDEX,H=_.Z.POSITION_INDEX,G=_.Z.SCALE_INDEX,q=_.Z.MAXIMUM_SIZE_INDEX,j=_.Z.SLICE_INDEX,W=_.Z.BRIGHTNESS_INDEX,K=_.Z.NUMBER_OF_PROPERTIES,Y=_.Z.COLOR_INDEX;function X(e){e=(0,Z.Z)(e,Z.Z.EMPTY_OBJECT),this._clouds=[],this._cloudsToUpdate=[],this._cloudsToUpdateIndex=0,this._cloudsRemoved=!1,this._createVertexArray=!1,this._propertiesChanged=new Uint32Array(K),this._noiseTexture=void 0,this._textureSliceWidth=128,this._noiseTextureRows=4,this.noiseDetail=(0,Z.Z)(e.noiseDetail,16),this.noiseOffset=s.Z.clone((0,Z.Z)(e.noiseOffset,s.Z.ZERO)),this._loading=!1,this._ready=!1;const t=this;this._uniforms={u_noiseTexture:function(){return t._noiseTexture},u_noiseTextureDimensions:J(t),u_noiseDetail:function(){return t.noiseDetail}},this._vaNoise=void 0,this._spNoise=void 0,this._spCreated=!1,this._sp=void 0,this._rs=void 0,this.show=(0,Z.Z)(e.show,!0),this._colorCommands=[],this.debugBillboards=(0,Z.Z)(e.debugBillboards,!1),this._compiledDebugBillboards=!1,this.debugEllipsoids=(0,Z.Z)(e.debugEllipsoids,!1),this._compiledDebugEllipsoids=!1}function J(e){return function(){return k.x=e._textureSliceWidth,k.y=e._noiseTextureRows,k.z=1/e._noiseTextureRows,k}}function Q(e){const t=e.length;for(let i=0;i0){i._vaf=function(e,t,i){const n=[{index:F.positionHighAndScaleX,componentsPerAttribute:4,componentDatatype:m.Z.FLOAT,usage:o.Z.STATIC_DRAW},{index:F.positionLowAndScaleY,componentsPerAttribute:4,componentDatatype:m.Z.FLOAT,usage:o.Z.STATIC_DRAW},{index:F.packedAttribute0,componentsPerAttribute:4,componentDatatype:m.Z.FLOAT,usage:o.Z.STATIC_DRAW},{index:F.packedAttribute1,componentsPerAttribute:4,componentDatatype:m.Z.FLOAT,usage:o.Z.STATIC_DRAW},{index:F.color,componentsPerAttribute:4,componentDatatype:m.Z.UNSIGNED_BYTE,normalize:!0,usage:o.Z.STATIC_DRAW}];i&&n.push({index:F.direction,componentsPerAttribute:2,componentDatatype:m.Z.FLOAT,vertexBuffer:oe(e)});const r=i?t:4*t;return new L.Z(e,n,r,i)}(n,s,i._instanced);const t=i._vaf.writers;let a;for(a=0;a0&&function(e,t){const i=t.context,n=e,r=n._clouds.length,o=n._cloudsToUpdate,s=n._cloudsToUpdateIndex,a=n._propertiesChanged,c=de;c.length=0,(a[H]||a[G])&&c.push(ae),(a[z]||a[W])&&c.push(ce),(a[q]||a[j])&&c.push(ue),a[Y]&&c.push(le);const u=c.length,l=n._vaf.writers;let h,d,f;if(s/r>.1){for(h=0;h1.5*i&&(s.length=i),!(0,g.Z)(this._vaf)||!(0,g.Z)(this._vaf.va)||!this._ready&!t||(this._spCreated&&this.debugBillboards===this._compiledDebugBillboards&&this.debugEllipsoids===this._compiledDebugEllipsoids||function(e,t,i,r){const o=t.context,s=e,a=new O.Z({defines:[],sources:[i]});s._instanced&&a.defines.push("INSTANCED");const c=new O.Z({defines:[],sources:[r]});s.debugBillboards&&c.defines.push("DEBUG_BILLBOARDS"),s.debugEllipsoids&&c.defines.push("DEBUG_ELLIPSOIDS"),s._sp=I.Z.replaceCache({context:o,shaderProgram:s._sp,vertexShaderSource:a,fragmentShaderSource:c,attributeLocations:F}),s._rs=x.Z.fromCache({depthTest:{enabled:!0,func:N.Z.LESS},depthMask:!1,blending:n.Z.ALPHA_BLEND}),s._spCreated=!0,s._compiledDebugBillboards=s.debugBillboards,s._compiledDebugEllipsoids=s.debugEllipsoids}(this,e,d.Z,h.Z),function(e,t){const i=e,n=t.passes,r=i._uniforms,o=t.commandList;if(n.render){const t=i._colorCommands,n=i._vaf.va,s=n.length;t.length=s;for(let a=0;a{"use strict";i.d(t,{Z:()=>r});const n={CUMULUS:0,validate:function(e){return e===n.CUMULUS}},r=Object.freeze(n)},567485:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(362017);const r={HIGHLIGHT:0,REPLACE:1,MIX:2,getColorBlend:function(e,t){return e===r.HIGHLIGHT?0:e===r.REPLACE?1:e===r.MIX?n.Z.clamp(t,n.Z.EPSILON4,1):void 0}},o=Object.freeze(r)},723711:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(406144),r=i(426468),o=i(54879),s=i(707009),a=i(50128),c=i(527758);function u(e,t,i,o,u,h){this._tileset=e,this._tile=t,this._resource=i,this._contents=[],this._readyPromise=c.Z.defer(),this._groupMetadata=void 0,function(e,t,i,o){i=(0,n.Z)(i,0);const u=new Uint8Array(t),h=new DataView(t);i+=l;const d=h.getUint32(i,!0);if(1!==d)throw new a.Z("Only Composite Tile version 1 is supported. Version "+d+" is not.");i+=l,i+=l;const f=h.getUint32(i,!0);i+=l;const p=[];for(let n=0;n{"use strict";i.d(t,{Z:()=>c});var n=i(556592),r=i(426468),o=i(389518);function s(e,t){this._conditionsExpression=(0,n.Z)(e,!0),this._conditions=e.conditions,this._runtimeConditions=void 0,function(e,t){const i=[],n=e._conditions;if(!(0,r.Z)(n))return;const s=n.length;for(let e=0;e{"use strict";i.d(t,{Z:()=>u});var n=i(919382),r=i(357299),o=i(406144),s=i(362017);const a=s.Z.toRadians(30);function c(e){this._angle=(0,o.Z)(e,a)}Object.defineProperties(c.prototype,{angle:{get:function(){return this._angle},set:function(e){r.Z.typeOf.number("value",e),this._angle=e}}}),c.prototype.emit=function(e){const t=Math.tan(this._angle),i=s.Z.randomBetween(0,s.Z.TWO_PI),r=s.Z.randomBetween(0,t),o=r*Math.cos(i),a=r*Math.sin(i);e.velocity=n.Z.fromElements(o,a,1,e.velocity),n.Z.normalize(e.velocity,e.velocity),e.position=n.Z.clone(n.Z.ZERO,e.position)};const u=c},521941:(e,t,i)=>{"use strict";i.d(t,{Z:()=>A});var n=i(878438),r=i(913216),o=i(357299),s=i(846748),a=i(406144),c=i(426468),u=i(54879),l=i(111840);const h="#ffffff",d="#48b",f="cesium-credit-delimiter";function p(e){const t=document.createElement("span");return t.textContent=e,t.className=f,t}function m(e,t){if((0,c.Z)(t)){const i=document.createElement(t);i._creditId=e._creditId,i.appendChild(e),e=i}return e}function _(e,t,i,n){const r=e.childNodes;let o=-1;for(let s=0;s0)){const t=o-1;if(r.length<=t)e.appendChild(p(i));else{const n=r[t];n.className!==f&&e.replaceChild(p(i),n)}}const t=a.element;if(r.length<=o)e.appendChild(m(t,n));else{const i=r[o];i._creditId!==a._id&&e.replaceChild(m(t,n),i)}}}for(++o;o ul > li a, .cesium-credit-lightbox > ul > li a:visited",{color:h}),e+=Z(".cesium-credit-lightbox > ul > li a:hover",{color:d}),e+=Z(".cesium-credit-lightbox.cesium-credit-lightbox-expanded",{border:"1px solid #444","border-radius":"5px","max-width":"370px"}),e+=Z(".cesium-credit-lightbox.cesium-credit-lightbox-mobile",{height:"100%",width:"100%"}),e+=Z(".cesium-credit-lightbox-title",{padding:"20px 20px 0 20px"}),e+=Z(".cesium-credit-lightbox-close",{"font-size":"18pt",cursor:"pointer",position:"absolute",top:"0",right:"6px",color:h}),e+=Z(".cesium-credit-lightbox-close:hover",{color:d}),e+=Z(".cesium-credit-lightbox > ul",{margin:"0",padding:"12px 20px 12px 40px","font-size":"13px"}),e+=Z(".cesium-credit-lightbox > ul > li",{"padding-bottom":"6px"}),e+=Z(".cesium-credit-lightbox > ul > li *",{padding:"0",margin:"0"}),e+=Z(".cesium-credit-expand-link",{"padding-left":"5px",cursor:"pointer","text-decoration":"underline",color:h}),e+=Z(".cesium-credit-expand-link:hover",{color:d}),e+=Z(".cesium-credit-text",{color:h}),e+=Z(".cesium-credit-textContainer *, .cesium-credit-logoContainer *",{display:"inline"});const t=document.head,i=document.createElement("style");i.innerHTML=e,t.insertBefore(i,t.firstChild)}();const A=s.Z.clone(g.cesiumCredit);this._delimiter=(0,a.Z)(t," • "),this._screenContainer=y,this._cesiumCreditContainer=_,this._lastViewportHeight=void 0,this._lastViewportWidth=void 0,this._lightboxCredits=u,this._creditList=m,this._lightbox=c,this._hideLightbox=l,this._expandLink=b,this._expanded=!1,this._defaultCredits=[],this._cesiumCredit=A,this._previousCesiumCredit=void 0,this._currentCesiumCredit=A,this._currentFrameCredits={screenCredits:new n.Z,lightboxCredits:new n.Z},this._defaultCredit=void 0,this.viewport=i,this.container=e}let y;function b(){if(!(0,c.Z)(y)){let e=(0,r.Z)("Assets/Images/ion-credit.png");0!==e.indexOf("http://")&&0!==e.indexOf("https://")&&0!==e.indexOf("data:")&&(e=new l.Z(e).path()),y=new s.Z('',!0)}return g._cesiumCreditInitialized||(g._cesiumCredit=y,g._cesiumCreditInitialized=!0),y}g.prototype.addCredit=function(e){if(o.Z.defined("credit",e),e._isIon)return(0,c.Z)(this._defaultCredit)||(this._defaultCredit=s.Z.clone(b())),void(this._currentCesiumCredit=this._defaultCredit);e.showOnScreen?this._currentFrameCredits.screenCredits.set(e.id,e):this._currentFrameCredits.lightboxCredits.set(e.id,e)},g.prototype.addDefaultCredit=function(e){o.Z.defined("credit",e);const t=this._defaultCredits;(function(e,t){const i=e.length;for(let n=0;n=576&&n!==e._lastViewportHeight&&(t.style.marginTop=Math.floor(.5*(n-t.clientHeight))+"px",e._lastViewportHeight=n)}(this)},g.prototype.beginFrame=function(){const e=this._currentFrameCredits,t=e.screenCredits;t.removeAll();const i=this._defaultCredits;for(let e=0;e0?"inline":"none",_(this._creditList,t,void 0,"li"),function(e){const t=e._previousCesiumCredit,i=e._currentCesiumCredit;s.Z.equals(i,t)||((0,c.Z)(t)&&e._cesiumCreditContainer.removeChild(t.element),(0,c.Z)(i)&&e._cesiumCreditContainer.appendChild(i.element),e._previousCesiumCredit=i)}(this)},g.prototype.destroy=function(){return this._lightbox.removeEventListener("click",this._hideLightbox,!1),this.container.removeChild(this._cesiumCreditContainer),this.container.removeChild(this._screenContainer),this.container.removeChild(this._expandLink),this.viewport.removeChild(this._lightbox),(0,u.Z)(this)},g.prototype.isDestroyed=function(){return!1},g._cesiumCredit=void 0,g._cesiumCreditInitialized=!1,Object.defineProperties(g,{cesiumCredit:{get:function(){return b(),g._cesiumCredit},set:function(e){g._cesiumCredit=e,g._cesiumCreditInitialized=!0}}});const A=g},690466:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(619287);const r={FRONT:n.Z.FRONT,BACK:n.Z.BACK,FRONT_AND_BACK:n.Z.FRONT_AND_BACK},o=Object.freeze(r)},921673:(e,t,i)=>{"use strict";i.d(t,{Z:()=>g});var n=i(337968),r=i(919382),o=i(357299),s=i(545125),a=i(406144),c=i(426468);function u(e,t){if(e=(0,a.Z)(e,a.Z.EMPTY_OBJECT),this._show=(0,a.Z)(e.show,!0),this._position=r.Z.clone((0,a.Z)(e.position,r.Z.ZERO)),!(0,c.Z)(e.scale)&&(0,c.Z)(e.maximumSize))this._maximumSize=r.Z.clone(e.maximumSize),this._scale=new n.Z(this._maximumSize.x,this._maximumSize.y);else{this._scale=n.Z.clone((0,a.Z)(e.scale,new n.Z(20,12)));const t=new r.Z(this._scale.x,this._scale.y,Math.min(this._scale.x,this._scale.y)/1.5);this._maximumSize=r.Z.clone((0,a.Z)(e.maximumSize,t))}this._slice=(0,a.Z)(e.slice,-1),this._color=s.Z.clone((0,a.Z)(e.color,s.Z.WHITE)),this._brightness=(0,a.Z)(e.brightness,1),this._cloudCollection=t,this._index=-1}const l=u.SHOW_INDEX=0,h=u.POSITION_INDEX=1,d=u.SCALE_INDEX=2,f=u.MAXIMUM_SIZE_INDEX=3,p=u.SLICE_INDEX=4,m=u.BRIGHTNESS_INDEX=5,_=u.COLOR_INDEX=6;function Z(e,t){const i=e._cloudCollection;(0,c.Z)(i)&&(i._updateCloud(e,t),e._dirty=!0)}u.NUMBER_OF_PROPERTIES=7,Object.defineProperties(u.prototype,{show:{get:function(){return this._show},set:function(e){o.Z.typeOf.bool("value",e),this._show!==e&&(this._show=e,Z(this,l))}},position:{get:function(){return this._position},set:function(e){o.Z.typeOf.object("value",e);const t=this._position;r.Z.equals(t,e)||(r.Z.clone(e,t),Z(this,h))}},scale:{get:function(){return this._scale},set:function(e){o.Z.typeOf.object("value",e);const t=this._scale;n.Z.equals(t,e)||(n.Z.clone(e,t),Z(this,d))}},maximumSize:{get:function(){return this._maximumSize},set:function(e){o.Z.typeOf.object("value",e);const t=this._maximumSize;r.Z.equals(t,e)||(r.Z.clone(e,t),Z(this,f))}},color:{get:function(){return this._color},set:function(e){o.Z.typeOf.object("value",e);const t=this._color;s.Z.equals(t,e)||(s.Z.clone(e,t),Z(this,_))}},slice:{get:function(){return this._slice},set:function(e){o.Z.typeOf.number("value",e),this._slice!==e&&(this._slice=e,Z(this,p))}},brightness:{get:function(){return this._brightness},set:function(e){o.Z.typeOf.number("value",e),this._brightness!==e&&(this._brightness=e,Z(this,m))}}}),u.prototype._destroy=function(){this._cloudCollection=void 0};const g=u},466168:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(406144),r=i(426468),o=i(446938),s=i(23851);function a(e){const t=(e=(0,n.Z)(e,n.Z.EMPTY_OBJECT)).attributeName;let i=e.perInstanceAttribute;if(!(0,r.Z)(t))throw new o.Z("options.attributeName is required.");(0,r.Z)(i)||(i=!1);let a=(0,n.Z)(e.glslDatatype,"vec3");const c="v_"+t;let u;if("normal"===t||"tangent"===t||"bitangent"===t)u="vec4 getColor() { return vec4(("+c+" + vec3(1.0)) * 0.5, 1.0); }\n";else switch("st"===t&&(a="vec2"),a){case"float":u="vec4 getColor() { return vec4(vec3("+c+"), 1.0); }\n";break;case"vec2":u="vec4 getColor() { return vec4("+c+", 0.0, 1.0); }\n";break;case"vec3":u="vec4 getColor() { return vec4("+c+", 1.0); }\n";break;case"vec4":u="vec4 getColor() { return "+c+"; }\n";break;default:throw new o.Z("options.glslDatatype must be float, vec2, vec3, or vec4.")}const l="attribute vec3 position3DHigh;\nattribute vec3 position3DLow;\nattribute float batchId;\n"+(i?"":"attribute "+a+" "+t+";\n")+"varying "+a+" "+c+";\nvoid main()\n{\nvec4 p = czm_translateRelativeToEye(position3DHigh, position3DLow);\n"+(i?c+" = czm_batchTable_"+t+"(batchId);\n":c+" = "+t+";\n")+"gl_Position = czm_modelViewProjectionRelativeToEye * p;\n}",h="varying "+a+" "+c+";\n"+u+"\nvoid main()\n{\ngl_FragColor = getColor();\n}";this.material=void 0,this.translucent=(0,n.Z)(e.translucent,!1),this._vertexShaderSource=(0,n.Z)(e.vertexShaderSource,l),this._fragmentShaderSource=(0,n.Z)(e.fragmentShaderSource,h),this._renderState=s.Z.getDefaultRenderState(!1,!1,e.renderState),this._closed=(0,n.Z)(e.closed,!1),this._attributeName=t,this._glslDatatype=a}Object.defineProperties(a.prototype,{vertexShaderSource:{get:function(){return this._vertexShaderSource}},fragmentShaderSource:{get:function(){return this._fragmentShaderSource}},renderState:{get:function(){return this._renderState}},closed:{get:function(){return this._closed}},attributeName:{get:function(){return this._attributeName}},glslDatatype:{get:function(){return this._glslDatatype}}}),a.prototype.getFragmentShaderSource=s.Z.prototype.getFragmentShaderSource,a.prototype.isTranslucent=s.Z.prototype.isTranslucent,a.prototype.getRenderState=s.Z.prototype.getRenderState;const c=a},492183:(e,t,i)=>{"use strict";i.d(t,{Z:()=>D});var n=i(919382),r=i(545125),o=i(182934),s=i(406144),a=i(426468),c=i(54879),u=i(446938),l=i(157788),h=i(834069),d=i(952254),f=i(165373),p=i(610490),m=i(736404),_=i(118121),Z=i(348808),g=i(129782),y=i(578721),b=i(939800);function A(e){if(e=(0,s.Z)(e,s.Z.EMPTY_OBJECT),!(0,a.Z)(e.camera))throw new u.Z("options.camera is required.");this._camera=e.camera,this._frustumSplits=e.frustumSplits,this._color=(0,s.Z)(e.color,r.Z.CYAN),this._updateOnChange=(0,s.Z)(e.updateOnChange,!0),this.show=(0,s.Z)(e.show,!0),this.id=e.id,this._id=void 0,this._outlinePrimitives=[],this._planesPrimitives=[]}const w=new n.Z,v=new f.Z,T=new g.Z,C=new _.Z,E=new Z.Z,x=new p.Z,S=new m.Z,O=new r.Z,I=[1,1e5];A.prototype.update=function(e){if(!this.show)return;const t=this._planesPrimitives,i=this._outlinePrimitives;let s,c;if(this._updateOnChange){for(c=t.length,s=0;s{"use strict";i.d(t,{Z:()=>h});var n=i(545125),r=i(247913),o=i(279427),s=i(928096),a=i(426468);function c(){this._cachedShowFrustumsShaders={}}const u=new n.Z,l=new r.Z;c.prototype.executeDebugShowFrustumsCommand=function(e,t,i){const c=t.shaderProgram.id;let h=this._cachedShowFrustumsShaders[c];(0,a.Z)(h)||(h=function(e,t){const i=e.context,n=t,r=n.fragmentShaderSource.clone(),a=[];r.sources=r.sources.map((function(e){e=o.Z.replaceMain(e,"czm_Debug_main");const t=/gl_FragData\[(\d+)\]/g;let i;for(;null!==(i=t.exec(e));)-1===a.indexOf(i[1])&&a.push(i[1]);return e}));const c=a.length;let u,l="";if(l+="uniform vec3 debugShowCommandsColor;\n",l+="uniform vec3 debugShowFrustumsColor;\n",l+="void main() \n{ \n czm_Debug_main(); \n",c>0)for(u=0;u{"use strict";i.d(t,{Z:()=>m});var n=i(726307),r=i(919382),o=i(545125),s=i(406144),a=i(426468),c=i(54879),u=i(952254),l=i(583917),h=i(370530),d=i(843658),f=i(939800);function p(e){e=(0,s.Z)(e,s.Z.EMPTY_OBJECT),this.length=(0,s.Z)(e.length,1e7),this._length=void 0,this.width=(0,s.Z)(e.width,2),this._width=void 0,this.show=(0,s.Z)(e.show,!0),this.modelMatrix=l.Z.clone((0,s.Z)(e.modelMatrix,l.Z.IDENTITY)),this._modelMatrix=new l.Z,this.id=e.id,this._id=void 0,this._primitive=void 0}p.prototype.update=function(e){if(this.show){if(!(0,a.Z)(this._primitive)||!l.Z.equals(this._modelMatrix,this.modelMatrix)||this._length!==this.length||this._width!==this.width||this._id!==this.id){this._modelMatrix=l.Z.clone(this.modelMatrix,this._modelMatrix),this._length=this.length,this._width=this.width,this._id=this.id,(0,a.Z)(this._primitive)&&this._primitive.destroy(),0===this.modelMatrix[12]&&0===this.modelMatrix[13]&&0===this.modelMatrix[14]&&(this.modelMatrix[14]=.01);const e=new u.Z({geometry:new h.Z({positions:[r.Z.ZERO,r.Z.UNIT_X],width:this.width,vertexFormat:d.Z.VERTEX_FORMAT,colors:[o.Z.RED,o.Z.RED],arcType:n.Z.NONE}),modelMatrix:l.Z.multiplyByUniformScale(this.modelMatrix,this.length,new l.Z),id:this.id,pickPrimitive:this}),t=new u.Z({geometry:new h.Z({positions:[r.Z.ZERO,r.Z.UNIT_Y],width:this.width,vertexFormat:d.Z.VERTEX_FORMAT,colors:[o.Z.GREEN,o.Z.GREEN],arcType:n.Z.NONE}),modelMatrix:l.Z.multiplyByUniformScale(this.modelMatrix,this.length,new l.Z),id:this.id,pickPrimitive:this}),i=new u.Z({geometry:new h.Z({positions:[r.Z.ZERO,r.Z.UNIT_Z],width:this.width,vertexFormat:d.Z.VERTEX_FORMAT,colors:[o.Z.BLUE,o.Z.BLUE],arcType:n.Z.NONE}),modelMatrix:l.Z.multiplyByUniformScale(this.modelMatrix,this.length,new l.Z),id:this.id,pickPrimitive:this});this._primitive=new f.Z({geometryInstances:[e,t,i],appearance:new d.Z,asynchronous:!1})}this._primitive.update(e)}},p.prototype.isDestroyed=function(){return!1},p.prototype.destroy=function(){return this._primitive=this._primitive&&this._primitive.destroy(),(0,c.Z)(this)};const m=p},329286:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(619287);const r={NEVER:n.Z.NEVER,LESS:n.Z.LESS,EQUAL:n.Z.EQUAL,LESS_OR_EQUAL:n.Z.LEQUAL,GREATER:n.Z.GREATER,NOT_EQUAL:n.Z.NOTEQUAL,GREATER_OR_EQUAL:n.Z.GEQUAL,ALWAYS:n.Z.ALWAYS},o=Object.freeze(r)},380539:(e,t,i)=>{"use strict";i.d(t,{Z:()=>O});var n=i(360791),r=i(919382),o=i(997274),s=i(426468),a=i(488802),c=i(915067),u=i(611843),l=i(610490),h=i(195809),d=i(50720),f=i(247913),p=i(842649),m=i(364232),_=i(928096),Z=i(279427),g=i(676311),y=i(361097),b=i(173286),A=i(506678);function w(){this._rs=void 0,this._sp=void 0,this._va=void 0,this._command=void 0,this._mode=void 0,this._useLogDepth=!1}const v=a.Z.supportsTypedArrays()?new Float32Array(12):[],T=new r.Z,C=new r.Z,E=new r.Z,x=new r.Z,S=new r.Z;w.prototype.update=function(e){if(this._mode=e.mode,e.mode!==A.Z.SCENE3D)return;const t=e.context,i=e.mapProjection.ellipsoid,a=e.useLogDepth;if((0,s.Z)(this._command)||(this._rs=m.Z.fromCache({cull:{enabled:!0},depthTest:{enabled:!0},colorMask:{red:!1,green:!1,blue:!1,alpha:!1}}),this._command=new f.Z({renderState:this._rs,boundingVolume:new n.Z(r.Z.ZERO,i.maximumRadius),pass:p.Z.OPAQUE,owner:this})),!(0,s.Z)(this._sp)||this._useLogDepth!==a){this._useLogDepth=a;const e=new Z.Z({sources:[b.Z]}),i=new Z.Z({sources:[y.Z]});if(a){const t="#ifdef GL_EXT_frag_depth \n#extension GL_EXT_frag_depth : enable \n#endif \n\n";i.sources.push(t),i.defines.push("LOG_DEPTH"),e.defines.push("LOG_DEPTH")}this._sp=_.Z.replaceCache({shaderProgram:this._sp,context:t,vertexShaderSource:e,fragmentShaderSource:i,attributeLocations:{position:0}}),this._command.shaderProgram=this._sp}const w=function(e,t){const i=e.radii,n=t.camera;let o,s,a;if(n.frustum instanceof l.Z)o=r.Z.ZERO,s=n.rightWC,a=n.upWC;else{const t=n.positionWC,i=r.Z.multiplyComponents(e.oneOverRadii,t,T),c=r.Z.normalize(i,C),u=r.Z.normalize(r.Z.cross(r.Z.UNIT_Z,i,E),E),l=r.Z.normalize(r.Z.cross(c,u,x),x),h=r.Z.magnitude(i),d=Math.sqrt(h*h-1);o=r.Z.multiplyByScalar(c,1/h,T);const f=d/h;s=r.Z.multiplyByScalar(u,f,C),a=r.Z.multiplyByScalar(l,f,E)}const c=r.Z.add(o,a,S);r.Z.subtract(c,s,c),r.Z.multiplyComponents(i,c,c),r.Z.pack(c,v,0);const u=r.Z.subtract(o,a,S);r.Z.subtract(u,s,u),r.Z.multiplyComponents(i,u,u),r.Z.pack(u,v,3);const h=r.Z.add(o,a,S);r.Z.add(h,s,h),r.Z.multiplyComponents(i,h,h),r.Z.pack(h,v,6);const d=r.Z.subtract(o,a,S);return r.Z.add(d,s,d),r.Z.multiplyComponents(i,d,d),r.Z.pack(d,v,9),v}(i,e);if((0,s.Z)(this._va))this._va.getAttribute(0).vertexBuffer.copyFromArrayView(w);else{const e=new c.Z({attributes:{position:new u.Z({componentDatatype:o.Z.FLOAT,componentsPerAttribute:3,values:w})},indices:[0,1,2,2,1,3],primitiveType:h.Z.TRIANGLES});this._va=g.Z.fromGeometry({context:t,geometry:e,attributeLocations:{position:0},bufferUsage:d.Z.DYNAMIC_DRAW}),this._command.vertexArray=this._va}},w.prototype.execute=function(e,t){this._mode===A.Z.SCENE3D&&this._command.execute(e,t)},w.prototype.isDestroyed=function(){return!1},w.prototype.destroy=function(){this._sp=this._sp&&this._sp.destroy(),this._va=this._va&&this._va.destroy()};const O=w},169705:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});var n=i(426468),r=i(247913),o=i(364232),s=i(279427);function a(){}const c=/\bgl_FragDepthEXT\b/,u=/\bdiscard\b/;a.createDepthOnlyDerivedCommand=function(e,t,i,a){let l,h;return(0,n.Z)(a)||(a={}),(0,n.Z)(a.depthOnlyCommand)&&(l=a.depthOnlyCommand.shaderProgram,h=a.depthOnlyCommand.renderState),a.depthOnlyCommand=r.Z.shallowClone(t,a.depthOnlyCommand),(0,n.Z)(l)&&a.shaderProgramId===t.shaderProgram.id?(a.depthOnlyCommand.shaderProgram=l,a.depthOnlyCommand.renderState=h):(a.depthOnlyCommand.shaderProgram=function(e,t){let i=e.shaderCache.getDerivedShaderProgram(t,"depthOnly");if(!(0,n.Z)(i)){const n=t._attributeLocations;let r,o=t.fragmentShaderSource,a=!1;const l=o.sources;let h=l.length;for(r=0;r{"use strict";i.d(t,{Z:()=>f});var n=i(426468),r=i(54879),o=i(446938),s=i(362017),a=i(165373),c=i(129782);function u(e){if(!(0,n.Z)(e))throw new o.Z("scene is required.");this._scene=e,this._lastAlpha=void 0,this._lastBeta=void 0,this._lastGamma=void 0,this._alpha=void 0,this._beta=void 0,this._gamma=void 0;const t=this;function i(e){const i=e.alpha;if(!(0,n.Z)(i))return t._alpha=void 0,t._beta=void 0,void(t._gamma=void 0);t._alpha=s.Z.toRadians(i),t._beta=s.Z.toRadians(e.beta),t._gamma=s.Z.toRadians(e.gamma)}window.addEventListener("deviceorientation",i,!1),this._removeListener=function(){window.removeEventListener("deviceorientation",i,!1)}}const l=new c.Z,h=new c.Z,d=new a.Z;u.prototype.update=function(){if(!(0,n.Z)(this._alpha))return;(0,n.Z)(this._lastAlpha)||(this._lastAlpha=this._alpha,this._lastBeta=this._beta,this._lastGamma=this._gamma);const e=this._lastAlpha-this._alpha,t=this._lastBeta-this._beta,i=this._lastGamma-this._gamma;!function(e,t,i,n){const r=e.direction,o=e.right,s=e.up,u=c.Z.fromAxisAngle(r,i,h),f=c.Z.fromAxisAngle(o,n,l),p=c.Z.multiply(f,u,f),m=c.Z.fromAxisAngle(s,t,h);c.Z.multiply(m,p,p);const _=a.Z.fromQuaternion(p,d);a.Z.multiplyByVector(_,o,o),a.Z.multiplyByVector(_,s,s),a.Z.multiplyByVector(_,r,r)}(this._scene.camera,-e,t,i),this._lastAlpha=this._alpha,this._lastBeta=this._beta,this._lastGamma=this._gamma},u.prototype.isDestroyed=function(){return!1},u.prototype.destroy=function(){return this._removeListener(),(0,r.Z)(this)};const f=u},653098:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(919382),r=i(357299),o=i(545125),s=i(406144),a=i(446938);const c=function(e){if(r.Z.typeOf.object("options",e),r.Z.typeOf.object("options.direction",e.direction),n.Z.equals(e.direction,n.Z.ZERO))throw new a.Z("options.direction cannot be zero-length");this.direction=n.Z.clone(e.direction),this.color=o.Z.clone((0,s.Z)(e.color,o.Z.WHITE)),this.intensity=(0,s.Z)(e.intensity,1)}},20387:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(426468);function r(e){}let o;r.prototype.isReady=function(){return!0},r.prototype.shouldDiscardImage=function(e){return r.EMPTY_IMAGE===e},Object.defineProperties(r,{EMPTY_IMAGE:{get:function(){return(0,n.Z)(o)||(o=new Image,o.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="),o}}});const s=r},119998:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(406144),r=i(426468),o=i(446938),s=i(33709),a=i(795788);function c(e){if(e=(0,n.Z)(e,n.Z.EMPTY_OBJECT),!(0,r.Z)(e.missingImageUrl))throw new o.Z("options.missingImageUrl is required.");if(!(0,r.Z)(e.pixelsToCheck))throw new o.Z("options.pixelsToCheck is required.");this._pixelsToCheck=e.pixelsToCheck,this._missingImagePixels=void 0,this._missingImageByteLength=void 0,this._isReady=!1;const t=a.Z.createIfNeeded(e.missingImageUrl),i=this;t.fetchImage({preferBlob:!0,preferImageBitmap:!0,flipY:!0}).then((function(t){(0,r.Z)(t.blob)&&(i._missingImageByteLength=t.blob.size);let n=(0,s.Z)(t);if(e.disableCheckIfAllPixelsAreTransparent){let i=!0;const r=t.width,o=e.pixelsToCheck;for(let e=0,t=o.length;i&&e0&&(i=!1)}i&&(n=void 0)}i._missingImagePixels=n,i._isReady=!0})).otherwise((function(){i._missingImagePixels=void 0,i._isReady=!0}))}c.prototype.isReady=function(){return this._isReady},c.prototype.shouldDiscardImage=function(e){if(!this._isReady)throw new o.Z("shouldDiscardImage must not be called before the discard policy is ready.");const t=this._pixelsToCheck,i=this._missingImagePixels;if(!(0,r.Z)(i))return!1;if((0,r.Z)(e.blob)&&e.blob.size!==this._missingImageByteLength)return!1;const n=(0,s.Z)(e),a=e.width;for(let e=0,r=t.length;e{"use strict";i.d(t,{Z:()=>p});var n=i(155597),r=i(997274),o=i(426468),s=i(488802),a=i(890357),c=i(794130),u=i(527758);function l(){}function h(e,t){const i="runtime."+Object.keys(e.createdBufferViews).length,n=e.buffers,r=Object.keys(n).length;return n[r]=t,e.createdBufferViews[i]={buffer:r,byteOffset:0,byteLength:t.byteLength},i}function d(e,t,i){const n=t._loadResources,r=h(n,e);return n.vertexBuffersToCreate.enqueue(r),r}function f(e,t,i,n){if(!l._taskProcessorReady)return;const s=i.primitivesToDecode.peek();if(!(0,o.Z)(s))return;const a=e.scheduleTask(s,[s.array.buffer]);return(0,o.Z)(a)?(i.activeDecodingTasks++,i.primitivesToDecode.dequeue(),a.then((function(e){i.activeDecodingTasks--;const n=function(e,t,i){const n=e.typedArray,o=t._loadResources,s=h(o,n);return o.indexBuffersToCreate.enqueue({id:s,componentType:r.Z.fromTypedArray(n)}),{bufferViewId:s,numberOfIndices:e.numberOfIndices}}(e.indexArray,t),o={},a=e.attributeData;for(const e in a)if(a.hasOwnProperty(e)){const i=a[e],n=d(i.array,t),r=i.data;r.bufferView=n,o[e]=r}t._decodedData[s.mesh+".primitive."+s.primitive]={bufferView:n.bufferViewId,numberOfIndices:n.numberOfIndices,attributes:o}}))):void 0}l._maxDecodingConcurrency=Math.max(s.Z.hardwareConcurrency-1,1),l._decoderTaskProcessor=void 0,l._taskProcessorReady=!1,l._getDecoderTaskProcessor=function(){if(!(0,o.Z)(l._decoderTaskProcessor)){const e=new a.Z("decodeDraco",l._maxDecodingConcurrency);e.initWebAssemblyModule({modulePath:"ThirdParty/Workers/draco_decoder_nodejs.js",wasmBinaryFile:"ThirdParty/draco_decoder.wasm"}).then((function(){l._taskProcessorReady=!0})),l._decoderTaskProcessor=e}return l._decoderTaskProcessor},l.hasExtension=function(e){return(0,o.Z)(e.extensionsRequired.KHR_draco_mesh_compression)||(0,o.Z)(e.extensionsUsed.KHR_draco_mesh_compression)},l._decodedModelResourceCache=void 0,l.parse=function(e,t){if(!l.hasExtension(e))return;const i=e._loadResources,r=e.cacheKey;if((0,o.Z)(r)){(0,o.Z)(l._decodedModelResourceCache)||((0,o.Z)(t.cache.modelDecodingCache)||(t.cache.modelDecodingCache={}),l._decodedModelResourceCache=t.cache.modelDecodingCache);const e=l._decodedModelResourceCache[r];if((0,o.Z)(e))return e.count++,void(i.pendingDecodingCache=!0)}const s=e._dequantizeInShader,a=e.gltf;c.Z.mesh(a,(function(e,t){c.Z.meshPrimitive(e,(function(e,r){if(!(0,o.Z)(e.extensions))return;const c=e.extensions.KHR_draco_mesh_compression;if(!(0,o.Z)(c))return;const u=a.bufferViews[c.bufferView],l=(0,n.Z)(a.buffers[u.buffer].extras._pipeline.source,u.byteOffset,u.byteOffset+u.byteLength);i.primitivesToDecode.enqueue({mesh:t,primitive:r,array:l,bufferView:u,compressedAttributes:c.attributes,dequantizeInShader:s})}))}))},l.decodeModel=function(e,t){if(!l.hasExtension(e))return u.Z.resolve();const i=e._loadResources,n=e.cacheKey;if((0,o.Z)(n)&&(0,o.Z)(l._decodedModelResourceCache)){const t=l._decodedModelResourceCache[n];if((0,o.Z)(t)&&i.pendingDecodingCache)return(0,u.Z)(t.ready,(function(){e._decodedData=t.data,i.pendingDecodingCache=!1}));l._decodedModelResourceCache[n]={ready:!1,count:1,data:void 0}}if(0===i.primitivesToDecode.length)return u.Z.resolve();const r=l._getDecoderTaskProcessor(),s=[];let a=f(r,e,i);for(;(0,o.Z)(a);)s.push(a),a=f(r,e,i);return u.Z.all(s)},l.decodePointCloud=function(e){const t=l._getDecoderTaskProcessor();if(l._taskProcessorReady)return t.scheduleTask(e,[e.buffer.buffer])},l.decodeBufferView=function(e){const t=l._getDecoderTaskProcessor();if(l._taskProcessorReady)return t.scheduleTask(e,[e.array.buffer])},l.cacheDataForModel=function(e){const t=e.cacheKey;if((0,o.Z)(t)&&(0,o.Z)(l._decodedModelResourceCache)){const i=l._decodedModelResourceCache[t];(0,o.Z)(i)&&(i.ready=!0,i.data=e._decodedData)}},l.destroyCachedDataForModel=function(e){const t=e.cacheKey;if((0,o.Z)(t)&&(0,o.Z)(l._decodedModelResourceCache)){const e=l._decodedModelResourceCache[t];(0,o.Z)(e)&&0==--e.count&&delete l._decodedModelResourceCache[t]}};const p=l},314685:(e,t,i)=>{"use strict";i.d(t,{Z:()=>O});var n=i(360791),r=i(96823),o=i(919382),s=i(307260),a=i(406144),c=i(426468),u=i(54879),l=i(446938),h=i(583917),d=i(172674),f=i(50720),p=i(247913),m=i(842649),_=i(364232),Z=i(928096),g=i(279427),y=i(676311),b=i(338),A=i(127137),w=i(451356),v=i(690466),T=i(172795),C=i(506678);const E={position:0};function x(e){e=(0,a.Z)(e,a.Z.EMPTY_OBJECT),this.center=o.Z.clone((0,a.Z)(e.center,o.Z.ZERO)),this._center=new o.Z,this.radii=o.Z.clone(e.radii),this._radii=new o.Z,this._oneOverEllipsoidRadiiSquared=new o.Z,this._boundingSphere=new n.Z,this.modelMatrix=h.Z.clone((0,a.Z)(e.modelMatrix,h.Z.IDENTITY)),this._modelMatrix=new h.Z,this._computedModelMatrix=new h.Z,this.show=(0,a.Z)(e.show,!0),this.material=(0,a.Z)(e.material,T.Z.fromType(T.Z.ColorType)),this._material=void 0,this._translucent=void 0,this.id=e.id,this._id=void 0,this.debugShowBoundingVolume=(0,a.Z)(e.debugShowBoundingVolume,!1),this.onlySunLighting=(0,a.Z)(e.onlySunLighting,!1),this._onlySunLighting=!1,this._depthTestEnabled=(0,a.Z)(e.depthTestEnabled,!0),this._useLogDepth=!1,this._sp=void 0,this._rs=void 0,this._va=void 0,this._pickSP=void 0,this._pickId=void 0,this._colorCommand=new p.Z({owner:(0,a.Z)(e._owner,this)}),this._pickCommand=new p.Z({owner:(0,a.Z)(e._owner,this),pickOnly:!0});const t=this;this._uniforms={u_radii:function(){return t.radii},u_oneOverEllipsoidRadiiSquared:function(){return t._oneOverEllipsoidRadiiSquared}},this._pickUniforms={czm_pickColor:function(){return t._pickId.color}}}const S="#ifdef GL_EXT_frag_depth \n#extension GL_EXT_frag_depth : enable \n#endif \n\n";x.prototype.update=function(e){if(!this.show||e.mode!==C.Z.SCENE3D||!(0,c.Z)(this.center)||!(0,c.Z)(this.radii))return;if(!(0,c.Z)(this.material))throw new l.Z("this.material must be defined.");const t=e.context,i=this.material.isTranslucent(),a=this._translucent!==i;(0,c.Z)(this._rs)&&!a||(this._translucent=i,this._rs=_.Z.fromCache({cull:{enabled:!0,face:v.Z.FRONT},depthTest:{enabled:this._depthTestEnabled},depthMask:!i&&t.fragmentDepth,blending:i?w.Z.ALPHA_BLEND:void 0})),(0,c.Z)(this._va)||(this._va=function(e){let t=e.cache.ellipsoidPrimitive_vertexArray;if((0,c.Z)(t))return t;const i=r.Z.createGeometry(r.Z.fromDimensions({dimensions:new o.Z(2,2,2),vertexFormat:d.Z.POSITION_ONLY}));return t=y.Z.fromGeometry({context:e,geometry:i,attributeLocations:E,bufferUsage:f.Z.STATIC_DRAW,interleave:!0}),e.cache.ellipsoidPrimitive_vertexArray=t,t}(t));let u=!1;const p=this.radii;if(!o.Z.equals(this._radii,p)){o.Z.clone(p,this._radii);const e=this._oneOverEllipsoidRadiiSquared;e.x=1/(p.x*p.x),e.y=1/(p.y*p.y),e.z=1/(p.z*p.z),u=!0}h.Z.equals(this.modelMatrix,this._modelMatrix)&&o.Z.equals(this.center,this._center)||(h.Z.clone(this.modelMatrix,this._modelMatrix),o.Z.clone(this.center,this._center),h.Z.multiplyByTranslation(this.modelMatrix,this.center,this._computedModelMatrix),u=!0),u&&(o.Z.clone(o.Z.ZERO,this._boundingSphere.center),this._boundingSphere.radius=o.Z.maximumComponent(p),n.Z.transform(this._boundingSphere,this._computedModelMatrix,this._boundingSphere));const T=this._material!==this.material;this._material=this.material,this._material.update(t);const x=this.onlySunLighting!==this._onlySunLighting;this._onlySunLighting=this.onlySunLighting;const O=e.useLogDepth,I=this._useLogDepth!==O;this._useLogDepth=O;const D=this._colorCommand;let P,R;(T||x||a||I)&&(P=new g.Z({sources:[A.Z]}),R=new g.Z({sources:[this.material.shaderSource,b.Z]}),this.onlySunLighting&&R.defines.push("ONLY_SUN_LIGHTING"),!i&&t.fragmentDepth&&R.defines.push("WRITE_DEPTH"),this._useLogDepth&&(P.defines.push("LOG_DEPTH"),R.defines.push("LOG_DEPTH"),R.sources.push(S)),this._sp=Z.Z.replaceCache({context:t,shaderProgram:this._sp,vertexShaderSource:P,fragmentShaderSource:R,attributeLocations:E}),D.vertexArray=this._va,D.renderState=this._rs,D.shaderProgram=this._sp,D.uniformMap=(0,s.Z)(this._uniforms,this.material._uniforms),D.executeInClosestFrustum=i);const B=e.commandList,M=e.passes;if(M.render&&(D.boundingVolume=this._boundingSphere,D.debugShowBoundingVolume=this.debugShowBoundingVolume,D.modelMatrix=this._computedModelMatrix,D.pass=i?m.Z.TRANSLUCENT:m.Z.OPAQUE,B.push(D)),M.pick){const e=this._pickCommand;(0,c.Z)(this._pickId)&&this._id===this.id||(this._id=this.id,this._pickId=this._pickId&&this._pickId.destroy(),this._pickId=t.createPickId({primitive:this,id:this.id})),(T||x||!(0,c.Z)(this._pickSP)||I)&&(P=new g.Z({sources:[A.Z]}),R=new g.Z({sources:[this.material.shaderSource,b.Z],pickColorQualifier:"uniform"}),this.onlySunLighting&&R.defines.push("ONLY_SUN_LIGHTING"),!i&&t.fragmentDepth&&R.defines.push("WRITE_DEPTH"),this._useLogDepth&&(P.defines.push("LOG_DEPTH"),R.defines.push("LOG_DEPTH"),R.sources.push(S)),this._pickSP=Z.Z.replaceCache({context:t,shaderProgram:this._pickSP,vertexShaderSource:P,fragmentShaderSource:R,attributeLocations:E}),e.vertexArray=this._va,e.renderState=this._rs,e.shaderProgram=this._pickSP,e.uniformMap=(0,s.Z)((0,s.Z)(this._uniforms,this._pickUniforms),this.material._uniforms),e.executeInClosestFrustum=i),e.boundingVolume=this._boundingSphere,e.modelMatrix=this._computedModelMatrix,e.pass=i?m.Z.TRANSLUCENT:m.Z.OPAQUE,B.push(e)}},x.prototype.isDestroyed=function(){return!1},x.prototype.destroy=function(){return this._sp=this._sp&&this._sp.destroy(),this._pickSP=this._pickSP&&this._pickSP.destroy(),this._pickId=this._pickId&&this._pickId.destroy(),(0,u.Z)(this)};const O=x},927886:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(406144),r=i(426468),o=i(172674),s=i(649902),a=i(971711),c=i(23851),u=i(172795);function l(e){e=(0,n.Z)(e,n.Z.EMPTY_OBJECT);const t=(0,n.Z)(e.translucent,!0),i=(0,n.Z)(e.aboveGround,!1);this.material=(0,r.Z)(e.material)?e.material:u.Z.fromType(u.Z.ColorType),this.translucent=(0,n.Z)(e.translucent,!0),this._vertexShaderSource=(0,n.Z)(e.vertexShaderSource,a.Z),this._fragmentShaderSource=(0,n.Z)(e.fragmentShaderSource,s.Z),this._renderState=c.Z.getDefaultRenderState(t,!i,e.renderState),this._closed=!1,this._flat=(0,n.Z)(e.flat,!1),this._faceForward=(0,n.Z)(e.faceForward,i),this._aboveGround=i}Object.defineProperties(l.prototype,{vertexShaderSource:{get:function(){return this._vertexShaderSource}},fragmentShaderSource:{get:function(){return this._fragmentShaderSource}},renderState:{get:function(){return this._renderState}},closed:{get:function(){return this._closed}},vertexFormat:{get:function(){return l.VERTEX_FORMAT}},flat:{get:function(){return this._flat}},faceForward:{get:function(){return this._faceForward}},aboveGround:{get:function(){return this._aboveGround}}}),l.VERTEX_FORMAT=o.Z.POSITION_AND_ST,l.prototype.getFragmentShaderSource=c.Z.prototype.getFragmentShaderSource,l.prototype.isTranslucent=c.Z.prototype.isTranslucent,l.prototype.getRenderState=c.Z.prototype.getRenderState;const h=l},71577:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(54879),r=i(446938);function o(e,t){this._tileset=e,this._tile=t,this.featurePropertiesDirty=!1}Object.defineProperties(o.prototype,{featuresLength:{get:function(){return 0}},pointsLength:{get:function(){return 0}},trianglesLength:{get:function(){return 0}},geometryByteLength:{get:function(){return 0}},texturesByteLength:{get:function(){return 0}},batchTableByteLength:{get:function(){return 0}},innerContents:{get:function(){}},readyPromise:{get:function(){}},tileset:{get:function(){return this._tileset}},tile:{get:function(){return this._tile}},url:{get:function(){}},batchTable:{get:function(){}},groupMetadata:{get:function(){},set:function(e){throw new r.Z("Empty3DTileContent cannot have group metadata")}}}),o.prototype.hasProperty=function(e,t){return!1},o.prototype.getFeature=function(e){},o.prototype.applyDebugSettings=function(e,t){},o.prototype.applyStyle=function(e){},o.prototype.update=function(e,t){},o.prototype.isDestroyed=function(){return!1},o.prototype.destroy=function(){return(0,n.Z)(this)};const s=o},389518:(e,t,i)=>{"use strict";i.d(t,{Z:()=>V});var n=i(337968),r=i(919382),o=i(114754),s=i(357299),a=i(545125),c=i(426468),u=i(446938),l=i(362017),h=i(50128),d=i(455280),f=i(993716);function p(e,t){let i;s.Z.typeOf.string("expression",e),this._expression=e,e=function(e,t){if(!(0,c.Z)(t))return e;for(const i in t)if(t.hasOwnProperty(i)){const n=new RegExp("\\$\\{"+i+"\\}","g"),r="("+t[i]+")";(0,c.Z)(r)&&(e=e.replace(n,r))}return e}(e,t),e=function(e){let t=e,i="",n=t.indexOf("${");for(;n>=0;){const e=t.indexOf("'"),r=t.indexOf('"');let o;if(e>=0&&e=0&&r=this.arrayArray.length&&this.arrayArray.push([]);const e=this.arrayArray[this.arrayIndex++];return e.length=0,e},getCartesian2:function(){return this.cartesian2Index>=this.cartesian2Array.length&&this.cartesian2Array.push(new n.Z),this.cartesian2Array[this.cartesian2Index++]},getCartesian3:function(){return this.cartesian3Index>=this.cartesian3Array.length&&this.cartesian3Array.push(new r.Z),this.cartesian3Array[this.cartesian3Index++]},getCartesian4:function(){return this.cartesian4Index>=this.cartesian4Array.length&&this.cartesian4Array.push(new o.Z),this.cartesian4Array[this.cartesian4Index++]}};p.prototype.evaluate=function(e,t){m.reset();const i=this._runtimeAst.evaluate(e);return t instanceof a.Z&&i instanceof o.Z?a.Z.fromCartesian4(i,t):i instanceof n.Z||i instanceof r.Z||i instanceof o.Z?i.clone(t):i},p.prototype.evaluateColor=function(e,t){m.reset();const i=this._runtimeAst.evaluate(e);return a.Z.fromCartesian4(i,t)},p.prototype.getShaderFunction=function(e,t,i,n){let r=this.getShaderExpression(t,i);return r=n+" "+e+"\n{\n return "+r+";\n}\n",r},p.prototype.getShaderExpression=function(e,t){return this._runtimeAst.getShaderExpression(e,t)},p.prototype.getVariables=function(){let e=[];return this._runtimeAst.getVariables(e),e=e.filter((function(e,t,i){return i.indexOf(e)===t})),e};const _=["!","-","+"],Z=["+","-","*","/","%","===","!==",">",">=","<","<=","&&","||","!~","=~"],g=/\${(.*?)}/g,y=/\\/g,b=/@#%/g,A=new a.Z,w={abs:C(Math.abs),sqrt:C(Math.sqrt),cos:C(Math.cos),sin:C(Math.sin),tan:C(Math.tan),acos:C(Math.acos),asin:C(Math.asin),atan:C(Math.atan),radians:C(l.Z.toRadians),degrees:C(l.Z.toDegrees),sign:C(l.Z.sign),floor:C(Math.floor),ceil:C(Math.ceil),round:C(Math.round),exp:C(Math.exp),exp2:C((function(e){return Math.pow(2,e)})),log:C(Math.log),log2:C((function(e){return l.Z.log2(e)})),fract:C((function(e){return e-Math.floor(e)})),length:function(e,t){if("number"==typeof t)return Math.abs(t);if(t instanceof n.Z)return n.Z.magnitude(t);if(t instanceof r.Z)return r.Z.magnitude(t);if(t instanceof o.Z)return o.Z.magnitude(t);throw new h.Z('Function "'+e+'" requires a vector or number argument. Argument is '+t+".")},normalize:function(e,t){if("number"==typeof t)return 1;if(t instanceof n.Z)return n.Z.normalize(t,m.getCartesian2());if(t instanceof r.Z)return r.Z.normalize(t,m.getCartesian3());if(t instanceof o.Z)return o.Z.normalize(t,m.getCartesian4());throw new h.Z('Function "'+e+'" requires a vector or number argument. Argument is '+t+".")}},v={atan2:E(Math.atan2,!1),pow:E(Math.pow,!1),min:E(Math.min,!0),max:E(Math.max,!0),distance:function(e,t,i){if("number"==typeof t&&"number"==typeof i)return Math.abs(t-i);if(t instanceof n.Z&&i instanceof n.Z)return n.Z.distance(t,i);if(t instanceof r.Z&&i instanceof r.Z)return r.Z.distance(t,i);if(t instanceof o.Z&&i instanceof o.Z)return o.Z.distance(t,i);throw new h.Z('Function "'+e+'" requires vector or number arguments of matching types. Arguments are '+t+" and "+i+".")},dot:function(e,t,i){if("number"==typeof t&&"number"==typeof i)return t*i;if(t instanceof n.Z&&i instanceof n.Z)return n.Z.dot(t,i);if(t instanceof r.Z&&i instanceof r.Z)return r.Z.dot(t,i);if(t instanceof o.Z&&i instanceof o.Z)return o.Z.dot(t,i);throw new h.Z('Function "'+e+'" requires vector or number arguments of matching types. Arguments are '+t+" and "+i+".")},cross:function(e,t,i){if(t instanceof r.Z&&i instanceof r.Z)return r.Z.cross(t,i,m.getCartesian3());throw new h.Z('Function "'+e+'" requires vec3 arguments. Arguments are '+t+" and "+i+".")}},T={clamp:x(l.Z.clamp,!0),mix:x(l.Z.lerp,!0)};function C(e){return function(t,i){if("number"==typeof i)return e(i);if(i instanceof n.Z)return n.Z.fromElements(e(i.x),e(i.y),m.getCartesian2());if(i instanceof r.Z)return r.Z.fromElements(e(i.x),e(i.y),e(i.z),m.getCartesian3());if(i instanceof o.Z)return o.Z.fromElements(e(i.x),e(i.y),e(i.z),e(i.w),m.getCartesian4());throw new h.Z('Function "'+t+'" requires a vector or number argument. Argument is '+i+".")}}function E(e,t){return function(i,s,a){if(t&&"number"==typeof a){if("number"==typeof s)return e(s,a);if(s instanceof n.Z)return n.Z.fromElements(e(s.x,a),e(s.y,a),m.getCartesian2());if(s instanceof r.Z)return r.Z.fromElements(e(s.x,a),e(s.y,a),e(s.z,a),m.getCartesian3());if(s instanceof o.Z)return o.Z.fromElements(e(s.x,a),e(s.y,a),e(s.z,a),e(s.w,a),m.getCartesian4())}if("number"==typeof s&&"number"==typeof a)return e(s,a);if(s instanceof n.Z&&a instanceof n.Z)return n.Z.fromElements(e(s.x,a.x),e(s.y,a.y),m.getCartesian2());if(s instanceof r.Z&&a instanceof r.Z)return r.Z.fromElements(e(s.x,a.x),e(s.y,a.y),e(s.z,a.z),m.getCartesian3());if(s instanceof o.Z&&a instanceof o.Z)return o.Z.fromElements(e(s.x,a.x),e(s.y,a.y),e(s.z,a.z),e(s.w,a.w),m.getCartesian4());throw new h.Z('Function "'+i+'" requires vector or number arguments of matching types. Arguments are '+s+" and "+a+".")}}function x(e,t){return function(i,s,a,c){if(t&&"number"==typeof c){if("number"==typeof s&&"number"==typeof a)return e(s,a,c);if(s instanceof n.Z&&a instanceof n.Z)return n.Z.fromElements(e(s.x,a.x,c),e(s.y,a.y,c),m.getCartesian2());if(s instanceof r.Z&&a instanceof r.Z)return r.Z.fromElements(e(s.x,a.x,c),e(s.y,a.y,c),e(s.z,a.z,c),m.getCartesian3());if(s instanceof o.Z&&a instanceof o.Z)return o.Z.fromElements(e(s.x,a.x,c),e(s.y,a.y,c),e(s.z,a.z,c),e(s.w,a.w,c),m.getCartesian4())}if("number"==typeof s&&"number"==typeof a&&"number"==typeof c)return e(s,a,c);if(s instanceof n.Z&&a instanceof n.Z&&c instanceof n.Z)return n.Z.fromElements(e(s.x,a.x,c.x),e(s.y,a.y,c.y),m.getCartesian2());if(s instanceof r.Z&&a instanceof r.Z&&c instanceof r.Z)return r.Z.fromElements(e(s.x,a.x,c.x),e(s.y,a.y,c.y),e(s.z,a.z,c.z),m.getCartesian3());if(s instanceof o.Z&&a instanceof o.Z&&c instanceof o.Z)return o.Z.fromElements(e(s.x,a.x,c.x),e(s.y,a.y,c.y),e(s.z,a.z,c.z),e(s.w,a.w,c.w),m.getCartesian4());throw new h.Z('Function "'+i+'" requires vector or number arguments of matching types. Arguments are '+s+", "+a+", and "+c+".")}}function S(e,t,i,n,r){var o;this._type=e,this._value=t,this._left=i,this._right=n,this._test=r,this.evaluate=void 0,(o=this)._type===f.Z.CONDITIONAL?o.evaluate=o._evaluateConditional:o._type===f.Z.FUNCTION_CALL?"test"===o._value?o.evaluate=o._evaluateRegExpTest:"exec"===o._value?o.evaluate=o._evaluateRegExpExec:"toString"===o._value&&(o.evaluate=o._evaluateToString):o._type===f.Z.UNARY?"!"===o._value?o.evaluate=o._evaluateNot:"-"===o._value?o.evaluate=o._evaluateNegative:"+"===o._value?o.evaluate=o._evaluatePositive:"isNaN"===o._value?o.evaluate=o._evaluateNaN:"isFinite"===o._value?o.evaluate=o._evaluateIsFinite:"isExactClass"===o._value?o.evaluate=o._evaluateIsExactClass:"isClass"===o._value?o.evaluate=o._evaluateIsClass:"getExactClassName"===o._value?o.evaluate=o._evaluateGetExactClassName:"Boolean"===o._value?o.evaluate=o._evaluateBooleanConversion:"Number"===o._value?o.evaluate=o._evaluateNumberConversion:"String"===o._value?o.evaluate=o._evaluateStringConversion:(0,c.Z)(w[o._value])&&(o.evaluate=function(e){const t=w[e];return function(i){const n=this._left.evaluate(i);return t(e,n)}}(o._value)):o._type===f.Z.BINARY?"+"===o._value?o.evaluate=o._evaluatePlus:"-"===o._value?o.evaluate=o._evaluateMinus:"*"===o._value?o.evaluate=o._evaluateTimes:"/"===o._value?o.evaluate=o._evaluateDivide:"%"===o._value?o.evaluate=o._evaluateMod:"==="===o._value?o.evaluate=o._evaluateEqualsStrict:"!=="===o._value?o.evaluate=o._evaluateNotEqualsStrict:"<"===o._value?o.evaluate=o._evaluateLessThan:"<="===o._value?o.evaluate=o._evaluateLessThanOrEquals:">"===o._value?o.evaluate=o._evaluateGreaterThan:">="===o._value?o.evaluate=o._evaluateGreaterThanOrEquals:"&&"===o._value?o.evaluate=o._evaluateAnd:"||"===o._value?o.evaluate=o._evaluateOr:"=~"===o._value?o.evaluate=o._evaluateRegExpMatch:"!~"===o._value?o.evaluate=o._evaluateRegExpNotMatch:(0,c.Z)(v[o._value])&&(o.evaluate=function(e){const t=v[e];return function(i){const n=this._left.evaluate(i),r=this._right.evaluate(i);return t(e,n,r)}}(o._value)):o._type===f.Z.TERNARY?o.evaluate=function(e){const t=T[e];return function(i){const n=this._left.evaluate(i),r=this._right.evaluate(i),o=this._test.evaluate(i);return t(e,n,r,o)}}(o._value):o._type===f.Z.MEMBER?"brackets"===o._value?o.evaluate=o._evaluateMemberBrackets:o.evaluate=o._evaluateMemberDot:o._type===f.Z.ARRAY?o.evaluate=o._evaluateArray:o._type===f.Z.VARIABLE?o.evaluate=o._evaluateVariable:o._type===f.Z.VARIABLE_IN_STRING?o.evaluate=o._evaluateVariableString:o._type===f.Z.LITERAL_COLOR?o.evaluate=o._evaluateLiteralColor:o._type===f.Z.LITERAL_VECTOR?o.evaluate=o._evaluateLiteralVector:o._type===f.Z.LITERAL_STRING?o.evaluate=o._evaluateLiteralString:o._type===f.Z.REGEX?o.evaluate=o._evaluateRegExp:o._type===f.Z.BUILTIN_VARIABLE?"tiles3d_tileset_time"===o._value&&(o.evaluate=P):o.evaluate=o._evaluateLiteral}function O(e){return e.replace(b,"\\")}function I(e){return e._type>=f.Z.LITERAL_NULL}function D(e,t){let i,n,r,o;if("Literal"===t.type)i=function(e){const t=typeof e.value;return null===e.value?new S(f.Z.LITERAL_NULL,null):"boolean"===t?new S(f.Z.LITERAL_BOOLEAN,e.value):"number"===t?new S(f.Z.LITERAL_NUMBER,e.value):"string"===t?e.value.indexOf("${")>=0?new S(f.Z.VARIABLE_IN_STRING,e.value):new S(f.Z.LITERAL_STRING,O(e.value)):void 0}(t);else if("CallExpression"===t.type)i=function(e,t){const i=t.arguments,n=i.length;let r,o,s,a;if("MemberExpression"===t.callee.type){r=t.callee.property.name;const c=t.callee.object;if("test"===r||"exec"===r){if("regExp"!==c.callee.name)throw new h.Z(r+" is not a function.");return 0===n?"test"===r?new S(f.Z.LITERAL_BOOLEAN,!1):new S(f.Z.LITERAL_NULL,null):(s=D(e,c),a=D(e,i[0]),new S(f.Z.FUNCTION_CALL,r,s,a))}if("toString"===r)return o=D(e,c),new S(f.Z.FUNCTION_CALL,r,o);throw new h.Z('Unexpected function call "'+r+'".')}if(r=t.callee.name,"color"===r){if(0===n)return new S(f.Z.LITERAL_COLOR,r);if(o=D(e,i[0]),(0,c.Z)(i[1])){const t=D(e,i[1]);return new S(f.Z.LITERAL_COLOR,r,[o,t])}return new S(f.Z.LITERAL_COLOR,r,[o])}if("rgb"===r||"hsl"===r){if(n<3)throw new h.Z(r+" requires three arguments.");return o=[D(e,i[0]),D(e,i[1]),D(e,i[2])],new S(f.Z.LITERAL_COLOR,r,o)}if("rgba"===r||"hsla"===r){if(n<4)throw new h.Z(r+" requires four arguments.");return o=[D(e,i[0]),D(e,i[1]),D(e,i[2]),D(e,i[3])],new S(f.Z.LITERAL_COLOR,r,o)}if("vec2"===r||"vec3"===r||"vec4"===r){o=new Array(n);for(let t=0;t1)throw new h.Z(r+" requires exactly one argument.");return o=D(e,i[0]),new S(f.Z.UNARY,r,o)}if("getExactClassName"===r){if(n>0)throw new h.Z(r+" does not take any argument.");return new S(f.Z.UNARY,r)}if((0,c.Z)(w[r])){if(1!==n)throw new h.Z(r+" requires exactly one argument.");return o=D(e,i[0]),new S(f.Z.UNARY,r,o)}if((0,c.Z)(v[r])){if(2!==n)throw new h.Z(r+" requires exactly two arguments.");return s=D(e,i[0]),a=D(e,i[1]),new S(f.Z.BINARY,r,s,a)}if((0,c.Z)(T[r])){if(3!==n)throw new h.Z(r+" requires exactly three arguments.");s=D(e,i[0]),a=D(e,i[1]);const t=D(e,i[2]);return new S(f.Z.TERNARY,r,s,a,t)}if("Boolean"===r)return 0===n?new S(f.Z.LITERAL_BOOLEAN,!1):(o=D(e,i[0]),new S(f.Z.UNARY,r,o));if("Number"===r)return 0===n?new S(f.Z.LITERAL_NUMBER,0):(o=D(e,i[0]),new S(f.Z.UNARY,r,o));if("String"===r)return 0===n?new S(f.Z.LITERAL_STRING,""):(o=D(e,i[0]),new S(f.Z.UNARY,r,o));if("regExp"===r)return function(e,t){const i=t.arguments;if(0===i.length)return new S(f.Z.LITERAL_REGEX,new RegExp);const n=D(e,i[0]);let r;if(i.length>1){const t=D(e,i[1]);if(I(n)&&I(t)){try{r=new RegExp(O(String(n._value)),t._value)}catch(e){throw new h.Z(e)}return new S(f.Z.LITERAL_REGEX,r)}return new S(f.Z.REGEX,n,t)}if(I(n)){try{r=new RegExp(O(String(n._value)))}catch(e){throw new h.Z(e)}return new S(f.Z.LITERAL_REGEX,r)}return new S(f.Z.REGEX,n)}(e,t);throw new h.Z('Unexpected function call "'+r+'".')}(e,t);else if("Identifier"===t.type)i=function(e){if("czm_"===e.name.substr(0,4)){const t=e.name.substr(4);return"tiles3d_"===t.substr(0,8)?new S(f.Z.BUILTIN_VARIABLE,t):new S(f.Z.VARIABLE,t)}if("NaN"===e.name)return new S(f.Z.LITERAL_NUMBER,NaN);if("Infinity"===e.name)return new S(f.Z.LITERAL_NUMBER,1/0);if("undefined"===e.name)return new S(f.Z.LITERAL_UNDEFINED,void 0);throw new h.Z(e.name+" is not defined.")}(t);else if("UnaryExpression"===t.type){n=t.operator;const r=D(e,t.argument);if(!(_.indexOf(n)>-1))throw new h.Z('Unexpected operator "'+n+'".');i=new S(f.Z.UNARY,n,r)}else if("BinaryExpression"===t.type){if(n=t.operator,r=D(e,t.left),o=D(e,t.right),!(Z.indexOf(n)>-1))throw new h.Z('Unexpected operator "'+n+'".');i=new S(f.Z.BINARY,n,r,o)}else if("LogicalExpression"===t.type)n=t.operator,r=D(e,t.left),o=D(e,t.right),Z.indexOf(n)>-1&&(i=new S(f.Z.BINARY,n,r,o));else if("ConditionalExpression"===t.type){const n=D(e,t.test);r=D(e,t.consequent),o=D(e,t.alternate),i=new S(f.Z.CONDITIONAL,"?",r,o,n)}else if("MemberExpression"===t.type)i=function(e,t){if("Math"===t.object.name)return function(e){const t=e.property.name;return"PI"===t?new S(f.Z.LITERAL_NUMBER,Math.PI):"E"===t?new S(f.Z.LITERAL_NUMBER,Math.E):void 0}(t);if("Number"===t.object.name)return function(e){if("POSITIVE_INFINITY"===e.property.name)return new S(f.Z.LITERAL_NUMBER,Number.POSITIVE_INFINITY)}(t);let i;const n=D(e,t.object);return t.computed?(i=D(e,t.property),new S(f.Z.MEMBER,"brackets",n,i)):(i=new S(f.Z.LITERAL_STRING,t.property.name),new S(f.Z.MEMBER,"dot",n,i))}(e,t);else{if("ArrayExpression"!==t.type)throw"Compound"===t.type?new h.Z("Provide exactly one expression."):new h.Z("Cannot parse expression.");{const n=[];for(let i=0;i1?(a.Z.fromCssColorString(i[0].evaluate(e),t),t.alpha=i[1].evaluate(e)):a.Z.fromCssColorString(i[0].evaluate(e),t):a.Z.fromBytes(255,255,255,255,t);else if("rgb"===this._value)a.Z.fromBytes(i[0].evaluate(e),i[1].evaluate(e),i[2].evaluate(e),255,t);else if("rgba"===this._value){const n=255*i[3].evaluate(e);a.Z.fromBytes(i[0].evaluate(e),i[1].evaluate(e),i[2].evaluate(e),n,t)}else"hsl"===this._value?a.Z.fromHsl(i[0].evaluate(e),i[1].evaluate(e),i[2].evaluate(e),1,t):"hsla"===this._value&&a.Z.fromHsl(i[0].evaluate(e),i[1].evaluate(e),i[2].evaluate(e),i[3].evaluate(e),t);return o.Z.fromColor(t,m.getCartesian4())},S.prototype._evaluateLiteralVector=function(e){const t=m.getArray(),i=this._value,s=this._left,a=s.length;for(let c=0;c1)throw new h.Z("Invalid "+i+" constructor. Not enough arguments.");if(c>u&&a>1)throw new h.Z("Invalid "+i+" constructor. Too many arguments.");if(1===c){const e=t[0];t.push(e,e,e)}return"vec2"===i?n.Z.fromArray(t,0,m.getCartesian2()):"vec3"===i?r.Z.fromArray(t,0,m.getCartesian3()):"vec4"===i?o.Z.fromArray(t,0,m.getCartesian4()):void 0},S.prototype._evaluateLiteralString=function(){return this._value},S.prototype._evaluateVariableString=function(e){let t=this._value,i=g.exec(t);for(;null!==i;){const n=i[0];let r=R(e,i[1]);(0,c.Z)(r)||(r=""),t=t.replace(n,r),i=g.exec(t)}return t},S.prototype._evaluateVariable=function(e){return R(e,this._value)},S.prototype._evaluateMemberDot=function(e){if(B(this._left))return R(e,this._right.evaluate(e));const t=this._left.evaluate(e);if(!(0,c.Z)(t))return;const i=this._right.evaluate(e);if(t instanceof n.Z||t instanceof r.Z||t instanceof o.Z){if("r"===i)return t.x;if("g"===i)return t.y;if("b"===i)return t.z;if("a"===i)return t.w}return t[i]},S.prototype._evaluateMemberBrackets=function(e){if(B(this._left))return R(e,this._right.evaluate(e));const t=this._left.evaluate(e);if(!(0,c.Z)(t))return;const i=this._right.evaluate(e);if(t instanceof n.Z||t instanceof r.Z||t instanceof o.Z){if(0===i||"r"===i)return t.x;if(1===i||"g"===i)return t.y;if(2===i||"b"===i)return t.z;if(3===i||"a"===i)return t.w}return t[i]},S.prototype._evaluateArray=function(e){const t=[];for(let i=0;i" requires number arguments. Arguments are '+t+" and "+i+".");return t>i},S.prototype._evaluateGreaterThanOrEquals=function(e){const t=this._left.evaluate(e),i=this._right.evaluate(e);if("number"!=typeof t||"number"!=typeof i)throw new h.Z('Operator ">=" requires number arguments. Arguments are '+t+" and "+i+".");return t>=i},S.prototype._evaluateOr=function(e){const t=this._left.evaluate(e);if("boolean"!=typeof t)throw new h.Z('Operator "||" requires boolean arguments. First argument is '+t+".");if(t)return!0;const i=this._right.evaluate(e);if("boolean"!=typeof i)throw new h.Z('Operator "||" requires boolean arguments. Second argument is '+i+".");return t||i},S.prototype._evaluateAnd=function(e){const t=this._left.evaluate(e);if("boolean"!=typeof t)throw new h.Z('Operator "&&" requires boolean arguments. First argument is '+t+".");if(!t)return!1;const i=this._right.evaluate(e);if("boolean"!=typeof i)throw new h.Z('Operator "&&" requires boolean arguments. Second argument is '+i+".");return t&&i},S.prototype._evaluatePlus=function(e){const t=this._left.evaluate(e),i=this._right.evaluate(e);if(i instanceof n.Z&&t instanceof n.Z)return n.Z.add(t,i,m.getCartesian2());if(i instanceof r.Z&&t instanceof r.Z)return r.Z.add(t,i,m.getCartesian3());if(i instanceof o.Z&&t instanceof o.Z)return o.Z.add(t,i,m.getCartesian4());if("string"==typeof t||"string"==typeof i)return t+i;if("number"==typeof t&&"number"==typeof i)return t+i;throw new h.Z('Operator "+" requires vector or number arguments of matching types, or at least one string argument. Arguments are '+t+" and "+i+".")},S.prototype._evaluateMinus=function(e){const t=this._left.evaluate(e),i=this._right.evaluate(e);if(i instanceof n.Z&&t instanceof n.Z)return n.Z.subtract(t,i,m.getCartesian2());if(i instanceof r.Z&&t instanceof r.Z)return r.Z.subtract(t,i,m.getCartesian3());if(i instanceof o.Z&&t instanceof o.Z)return o.Z.subtract(t,i,m.getCartesian4());if("number"==typeof t&&"number"==typeof i)return t-i;throw new h.Z('Operator "-" requires vector or number arguments of matching types. Arguments are '+t+" and "+i+".")},S.prototype._evaluateTimes=function(e){const t=this._left.evaluate(e),i=this._right.evaluate(e);if(i instanceof n.Z&&t instanceof n.Z)return n.Z.multiplyComponents(t,i,m.getCartesian2());if(i instanceof n.Z&&"number"==typeof t)return n.Z.multiplyByScalar(i,t,m.getCartesian2());if(t instanceof n.Z&&"number"==typeof i)return n.Z.multiplyByScalar(t,i,m.getCartesian2());if(i instanceof r.Z&&t instanceof r.Z)return r.Z.multiplyComponents(t,i,m.getCartesian3());if(i instanceof r.Z&&"number"==typeof t)return r.Z.multiplyByScalar(i,t,m.getCartesian3());if(t instanceof r.Z&&"number"==typeof i)return r.Z.multiplyByScalar(t,i,m.getCartesian3());if(i instanceof o.Z&&t instanceof o.Z)return o.Z.multiplyComponents(t,i,m.getCartesian4());if(i instanceof o.Z&&"number"==typeof t)return o.Z.multiplyByScalar(i,t,m.getCartesian4());if(t instanceof o.Z&&"number"==typeof i)return o.Z.multiplyByScalar(t,i,m.getCartesian4());if("number"==typeof t&&"number"==typeof i)return t*i;throw new h.Z('Operator "*" requires vector or number arguments. If both arguments are vectors they must be matching types. Arguments are '+t+" and "+i+".")},S.prototype._evaluateDivide=function(e){const t=this._left.evaluate(e),i=this._right.evaluate(e);if(i instanceof n.Z&&t instanceof n.Z)return n.Z.divideComponents(t,i,m.getCartesian2());if(t instanceof n.Z&&"number"==typeof i)return n.Z.divideByScalar(t,i,m.getCartesian2());if(i instanceof r.Z&&t instanceof r.Z)return r.Z.divideComponents(t,i,m.getCartesian3());if(t instanceof r.Z&&"number"==typeof i)return r.Z.divideByScalar(t,i,m.getCartesian3());if(i instanceof o.Z&&t instanceof o.Z)return o.Z.divideComponents(t,i,m.getCartesian4());if(t instanceof o.Z&&"number"==typeof i)return o.Z.divideByScalar(t,i,m.getCartesian4());if("number"==typeof t&&"number"==typeof i)return t/i;throw new h.Z('Operator "/" requires vector or number arguments of matching types, or a number as the second argument. Arguments are '+t+" and "+i+".")},S.prototype._evaluateMod=function(e){const t=this._left.evaluate(e),i=this._right.evaluate(e);if(i instanceof n.Z&&t instanceof n.Z)return n.Z.fromElements(t.x%i.x,t.y%i.y,m.getCartesian2());if(i instanceof r.Z&&t instanceof r.Z)return r.Z.fromElements(t.x%i.x,t.y%i.y,t.z%i.z,m.getCartesian3());if(i instanceof o.Z&&t instanceof o.Z)return o.Z.fromElements(t.x%i.x,t.y%i.y,t.z%i.z,t.w%i.w,m.getCartesian4());if("number"==typeof t&&"number"==typeof i)return t%i;throw new h.Z('Operator "%" requires vector or number arguments of matching types. Arguments are '+t+" and "+i+".")},S.prototype._evaluateEqualsStrict=function(e){const t=this._left.evaluate(e),i=this._right.evaluate(e);return i instanceof n.Z&&t instanceof n.Z||i instanceof r.Z&&t instanceof r.Z||i instanceof o.Z&&t instanceof o.Z?t.equals(i):t===i},S.prototype._evaluateNotEqualsStrict=function(e){const t=this._left.evaluate(e),i=this._right.evaluate(e);return i instanceof n.Z&&t instanceof n.Z||i instanceof r.Z&&t instanceof r.Z||i instanceof o.Z&&t instanceof o.Z?!t.equals(i):t!==i},S.prototype._evaluateConditional=function(e){const t=this._test.evaluate(e);if("boolean"!=typeof t)throw new h.Z("Conditional argument of conditional expression must be a boolean. Argument is "+t+".");return t?this._left.evaluate(e):this._right.evaluate(e)},S.prototype._evaluateNaN=function(e){return isNaN(this._left.evaluate(e))},S.prototype._evaluateIsFinite=function(e){return isFinite(this._left.evaluate(e))},S.prototype._evaluateIsExactClass=function(e){return!!(0,c.Z)(e)&&e.isExactClass(this._left.evaluate(e))},S.prototype._evaluateIsClass=function(e){return!!(0,c.Z)(e)&&e.isClass(this._left.evaluate(e))},S.prototype._evaluateGetExactClassName=function(e){if((0,c.Z)(e))return e.getExactClassName()},S.prototype._evaluateBooleanConversion=function(e){return Boolean(this._left.evaluate(e))},S.prototype._evaluateNumberConversion=function(e){return Number(this._left.evaluate(e))},S.prototype._evaluateStringConversion=function(e){return String(this._left.evaluate(e))},S.prototype._evaluateRegExp=function(e){const t=this._value.evaluate(e);let i,n="";(0,c.Z)(this._left)&&(n=this._left.evaluate(e));try{i=new RegExp(t,n)}catch(e){throw new h.Z(e)}return i},S.prototype._evaluateRegExpTest=function(e){const t=this._left.evaluate(e),i=this._right.evaluate(e);if(!(t instanceof RegExp&&"string"==typeof i))throw new h.Z("RegExp.test requires the first argument to be a RegExp and the second argument to be a string. Arguments are "+t+" and "+i+".");return t.test(i)},S.prototype._evaluateRegExpMatch=function(e){const t=this._left.evaluate(e),i=this._right.evaluate(e);if(t instanceof RegExp&&"string"==typeof i)return t.test(i);if(i instanceof RegExp&&"string"==typeof t)return i.test(t);throw new h.Z('Operator "=~" requires one RegExp argument and one string argument. Arguments are '+t+" and "+i+".")},S.prototype._evaluateRegExpNotMatch=function(e){const t=this._left.evaluate(e),i=this._right.evaluate(e);if(t instanceof RegExp&&"string"==typeof i)return!t.test(i);if(i instanceof RegExp&&"string"==typeof t)return!i.test(t);throw new h.Z('Operator "!~" requires one RegExp argument and one string argument. Arguments are '+t+" and "+i+".")},S.prototype._evaluateRegExpExec=function(e){const t=this._left.evaluate(e),i=this._right.evaluate(e);if(!(t instanceof RegExp&&"string"==typeof i))throw new h.Z("RegExp.exec requires the first argument to be a RegExp and the second argument to be a string. Arguments are "+t+" and "+i+".");const n=t.exec(i);return(0,c.Z)(n)?n[1]:null},S.prototype._evaluateToString=function(e){const t=this._left.evaluate(e);if(t instanceof RegExp||t instanceof n.Z||t instanceof r.Z||t instanceof o.Z)return String(t);throw new h.Z('Unexpected function call "'+this._value+'".')},p.NULL_SENTINEL="czm_infinity",S.prototype.getShaderExpression=function(e,t,i){let n,r,o,s;const l=this._type;let d,m,_,Z=this._value;switch((0,c.Z)(this._left)&&(r=Array.isArray(this._left)?k(this._left,e,t,this):this._left.getShaderExpression(e,t,this)),(0,c.Z)(this._right)&&(o=this._right.getShaderExpression(e,t,this)),(0,c.Z)(this._test)&&(s=this._test.getShaderExpression(e,t,this)),Array.isArray(this._value)&&(Z=k(this._value,e,t,this)),l){case f.Z.VARIABLE:if(B(this))return;return U(Z,e);case f.Z.UNARY:if("Boolean"===Z)return"bool("+r+")";if("Number"===Z)return"float("+r+")";if("round"===Z)return"floor("+r+" + 0.5)";if((0,c.Z)(w[Z]))return Z+"("+r+")";if("isNaN"===Z)return"("+r+" != "+r+")";if("isFinite"===Z)return"(abs("+r+") < czm_infinity)";if("String"===Z||"isExactClass"===Z||"isClass"===Z||"getExactClassName"===Z)throw new h.Z('Error generating style shader: "'+Z+'" is not supported.');return Z+r;case f.Z.BINARY:return"%"===Z?"mod("+r+", "+o+")":"==="===Z?"("+r+" == "+o+")":"!=="===Z?"("+r+" != "+o+")":"atan2"===Z?"atan("+r+", "+o+")":(0,c.Z)(v[Z])?Z+"("+r+", "+o+")":"("+r+" "+Z+" "+o+")";case f.Z.TERNARY:if((0,c.Z)(T[Z]))return Z+"("+r+", "+o+", "+s+")";break;case f.Z.CONDITIONAL:return"("+s+" ? "+r+" : "+o+")";case f.Z.MEMBER:return B(this._left)?U(o,e):"r"===o||"x"===o||"0.0"===o?r+"[0]":"g"===o||"y"===o||"1.0"===o?r+"[1]":"b"===o||"z"===o||"2.0"===o?r+"[2]":"a"===o||"w"===o||"3.0"===o?r+"[3]":r+"[int("+o+")]";case f.Z.FUNCTION_CALL:throw new h.Z('Error generating style shader: "'+Z+'" is not supported.');case f.Z.ARRAY:if(4===Z.length)return"vec4("+Z[0]+", "+Z[1]+", "+Z[2]+", "+Z[3]+")";if(3===Z.length)return"vec3("+Z[0]+", "+Z[1]+", "+Z[2]+")";if(2===Z.length)return"vec2("+Z[0]+", "+Z[1]+")";throw new h.Z("Error generating style shader: Invalid array length. Array length should be 2, 3, or 4.");case f.Z.REGEX:throw new h.Z("Error generating style shader: Regular expressions are not supported.");case f.Z.VARIABLE_IN_STRING:throw new h.Z("Error generating style shader: Converting a variable to a string is not supported.");case f.Z.LITERAL_NULL:return p.NULL_SENTINEL;case f.Z.LITERAL_BOOLEAN:return Z?"true":"false";case f.Z.LITERAL_NUMBER:return N(Z);case f.Z.LITERAL_STRING:if((0,c.Z)(i)&&i._type===f.Z.MEMBER&&("r"===Z||"g"===Z||"b"===Z||"a"===Z||"x"===Z||"y"===Z||"z"===Z||"w"===Z||B(i._left)))return Z;if(n=a.Z.fromCssColorString(Z,A),(0,c.Z)(n))return function(e){return"vec3("+N(e.red)+", "+N(e.green)+", "+N(e.blue)+")"}(n);throw new h.Z("Error generating style shader: String literals are not supported.");case f.Z.LITERAL_COLOR:if(d=r,"color"===Z){if(!(0,c.Z)(d))return"vec4(1.0)";if(d.length>1){const e=d[0],i=d[1];return"1.0"!==i&&(t.translucent=!0),"vec4("+e+", "+i+")"}return"vec4("+d[0]+", 1.0)"}if("rgb"===Z)return n=L(this),(0,c.Z)(n)?F(n):"vec4("+d[0]+" / 255.0, "+d[1]+" / 255.0, "+d[2]+" / 255.0, 1.0)";if("rgba"===Z)return"1.0"!==d[3]&&(t.translucent=!0),n=L(this),(0,c.Z)(n)?F(n):"vec4("+d[0]+" / 255.0, "+d[1]+" / 255.0, "+d[2]+" / 255.0, "+d[3]+")";if("hsl"===Z)return n=M(this),(0,c.Z)(n)?F(n):"vec4(czm_HSLToRGB(vec3("+d[0]+", "+d[1]+", "+d[2]+")), 1.0)";if("hsla"===Z)return n=M(this),(0,c.Z)(n)?(1!==n.alpha&&(t.translucent=!0),F(n)):("1.0"!==d[3]&&(t.translucent=!0),"vec4(czm_HSLToRGB(vec3("+d[0]+", "+d[1]+", "+d[2]+")), "+d[3]+")");break;case f.Z.LITERAL_VECTOR:if(!(0,c.Z)(r))throw new u.Z("left should always be defined for type ExpressionNodeType.LITERAL_VECTOR");m=r.length,_=Z+"(";for(let e=0;e{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({VARIABLE:0,UNARY:1,BINARY:2,TERNARY:3,CONDITIONAL:4,MEMBER:5,FUNCTION_CALL:6,ARRAY:7,REGEX:8,VARIABLE_IN_STRING:9,LITERAL_NULL:10,LITERAL_BOOLEAN:11,LITERAL_NUMBER:12,LITERAL_STRING:13,LITERAL_COLOR:14,LITERAL_VECTOR:15,LITERAL_REGEX:16,LITERAL_UNDEFINED:17,BUILTIN_VARIABLE:18})},549773:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(357299),r=i(406144),o=i(426468);function s(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),n.Z.typeOf.object("options.schema",e.schema),this._schema=e.schema;const t=e.propertyTables;this._propertyTableCount=(0,o.Z)(t)?t.length:0,this._propertyTables=t,this._propertyTextures=e.propertyTextures,this._statistics=e.statistics,this._extras=e.extras,this._extensions=e.extensions}Object.defineProperties(s.prototype,{schema:{get:function(){return this._schema}},statistics:{get:function(){return this._statistics}},extras:{get:function(){return this._extras}},extensions:{get:function(){return this._extensions}},propertyTableCount:{get:function(){return this._propertyTableCount}},propertyTables:{get:function(){return this._propertyTables}}}),s.prototype.getPropertyTable=function(e){return n.Z.typeOf.number("propertyTableId",e),this._propertyTables[e]},s.prototype.getPropertyTexture=function(e){return n.Z.typeOf.number("propertyTextureId",e),this._propertyTextures[e]};const a=s},234523:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(919382),r=i(426468),o=i(362017),s=i(506678);function a(){this.enabled=!0,this.density=2e-4,this.screenSpaceErrorFactor=2,this.minimumBrightness=.03}const c=[359.393,800.749,1275.6501,2151.1192,3141.7763,4777.5198,6281.2493,12364.307,15900.765,49889.0549,78026.8259,99260.7344,120036.3873,151011.0158,156091.1953,203849.3112,274866.9803,319916.3149,493552.0528,628733.5874],u=[2e-5,2e-4,1e-4,7e-5,5e-5,4e-5,3e-5,19e-6,1e-5,85e-7,62e-7,58e-7,53e-7,52e-7,51e-7,42e-7,4e-6,34e-7,26e-7,22e-7];for(let e=0;e8e5||e.mode!==s.Z.SCENE3D)return void(e.fog.enabled=!1);const a=i.height,p=function(e){const t=c,i=t.length;if(et[i-1])return d=i-2,d;if(e>=t[d]){if(d+1=0&&e>=t[d-1])return--d,d;let n;for(n=0;n=t[n]&&e{"use strict";i.d(t,{Z:()=>h});var n=i(406144),r=i(426468),o=i(54879),s=i(446938),a=i(197685),c=i(485083),u=i(202712);function l(e){if(!(0,r.Z)(e)||!(0,r.Z)(e.scene))throw new s.Z("options.scene is required.");this._scene=e.scene,this.samplingWindow=(0,n.Z)(e.samplingWindow,l.defaultSettings.samplingWindow),this.quietPeriod=(0,n.Z)(e.quietPeriod,l.defaultSettings.quietPeriod),this.warmupPeriod=(0,n.Z)(e.warmupPeriod,l.defaultSettings.warmupPeriod),this.minimumFrameRateDuringWarmup=(0,n.Z)(e.minimumFrameRateDuringWarmup,l.defaultSettings.minimumFrameRateDuringWarmup),this.minimumFrameRateAfterWarmup=(0,n.Z)(e.minimumFrameRateAfterWarmup,l.defaultSettings.minimumFrameRateAfterWarmup),this._lowFrameRate=new a.Z,this._nominalFrameRate=new a.Z,this._frameTimes=[],this._needsQuietPeriod=!0,this._quietPeriodEndTime=0,this._warmupPeriodEndTime=0,this._frameRateIsLow=!1,this._lastFramesPerSecond=void 0,this._pauseCount=0;const t=this;this._preUpdateRemoveListener=this._scene.preUpdate.addEventListener((function(e,i){!function(e,t){if(e._pauseCount>0)return;const i=(0,c.Z)();if(e._needsQuietPeriod)e._needsQuietPeriod=!1,e._frameTimes.length=0,e._quietPeriodEndTime=i+e.quietPeriod/u.Z.SECONDS_PER_MILLISECOND,e._warmupPeriodEndTime=e._quietPeriodEndTime+(e.warmupPeriod+e.samplingWindow)/u.Z.SECONDS_PER_MILLISECOND;else if(i>=e._quietPeriodEndTime){e._frameTimes.push(i);const t=i-e.samplingWindow/u.Z.SECONDS_PER_MILLISECOND;if(e._frameTimes.length>=2&&e._frameTimes[0]<=t){for(;e._frameTimes.length>=2&&e._frameTimes[1]1e3/(i>e._warmupPeriodEndTime?e.minimumFrameRateAfterWarmup:e.minimumFrameRateDuringWarmup)?e._frameRateIsLow||(e._frameRateIsLow=!0,e._needsQuietPeriod=!0,e.lowFrameRate.raiseEvent(e.scene,e._lastFramesPerSecond)):e._frameRateIsLow&&(e._frameRateIsLow=!1,e._needsQuietPeriod=!0,e.nominalFrameRate.raiseEvent(e.scene,e._lastFramesPerSecond))}}}(t)})),this._hiddenPropertyName=void 0!==document.hidden?"hidden":void 0!==document.mozHidden?"mozHidden":void 0!==document.msHidden?"msHidden":void 0!==document.webkitHidden?"webkitHidden":void 0;const i=void 0!==document.hidden?"visibilitychange":void 0!==document.mozHidden?"mozvisibilitychange":void 0!==document.msHidden?"msvisibilitychange":void 0!==document.webkitHidden?"webkitvisibilitychange":void 0;function o(){var e;e=t,document[e._hiddenPropertyName]?e.pause():e.unpause()}this._visibilityChangeRemoveListener=void 0,(0,r.Z)(i)&&(document.addEventListener(i,o,!1),this._visibilityChangeRemoveListener=function(){document.removeEventListener(i,o,!1)})}l.defaultSettings={samplingWindow:5,quietPeriod:2,warmupPeriod:5,minimumFrameRateDuringWarmup:4,minimumFrameRateAfterWarmup:8},l.fromScene=function(e){if(!(0,r.Z)(e))throw new s.Z("scene is required.");return(0,r.Z)(e._frameRateMonitor)&&!e._frameRateMonitor.isDestroyed()||(e._frameRateMonitor=new l({scene:e})),e._frameRateMonitor},Object.defineProperties(l.prototype,{scene:{get:function(){return this._scene}},lowFrameRate:{get:function(){return this._lowFrameRate}},nominalFrameRate:{get:function(){return this._nominalFrameRate}},lastFramesPerSecond:{get:function(){return this._lastFramesPerSecond}}}),l.prototype.pause=function(){++this._pauseCount,1===this._pauseCount&&(this._frameTimes.length=0,this._lastFramesPerSecond=void 0)},l.prototype.unpause=function(){--this._pauseCount,this._pauseCount<=0&&(this._pauseCount=0,this._needsQuietPeriod=!0)},l.prototype.isDestroyed=function(){return!1},l.prototype.destroy=function(){return this._preUpdateRemoveListener(),(0,r.Z)(this._visibilityChangeRemoveListener)&&this._visibilityChangeRemoveListener(),(0,o.Z)(this)};const h=l},410137:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(506678);const r=function(e,t,i){this.context=e,this.commandList=[],this.shadowMaps=[],this.brdfLutGenerator=void 0,this.environmentMap=void 0,this.sphericalHarmonicCoefficients=void 0,this.specularEnvironmentMaps=void 0,this.specularEnvironmentMapsMaximumLOD=void 0,this.mode=n.Z.SCENE3D,this.morphTime=n.Z.getMorphTime(n.Z.SCENE3D),this.frameNumber=0,this.newFrame=!1,this.time=void 0,this.jobScheduler=i,this.mapProjection=void 0,this.camera=void 0,this.cameraUnderground=!1,this.globeTranslucencyState=void 0,this.cullingVolume=void 0,this.occluder=void 0,this.maximumScreenSpaceError=void 0,this.pixelRatio=1,this.passes={render:!1,pick:!1,depth:!1,postProcess:!1,offscreen:!1},this.creditDisplay=t,this.afterRender=[],this.scene3DOnly=!1,this.fog={enabled:!1,density:void 0,sse:void 0,minimumBrightness:void 0},this.terrainExaggeration=1,this.terrainExaggerationRelativeHeight=0,this.shadowState={shadowsEnabled:!0,shadowMaps:[],lightShadowMaps:[],nearPlane:1,farPlane:5e3,closestObjectSize:1e3,lastDirtyTime:0,outOfView:!0},this.imagerySplitPosition=0,this.frustumSplits=[],this.backgroundColor=void 0,this.light=void 0,this.minimumDisableDepthTestDistance=void 0,this.invertClassification=!1,this.invertClassificationColor=void 0,this.useLogDepth=!1,this.tilesetPassState=void 0,this.minimumTerrainHeight=0}},614288:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(406144),r=i(842649);const o=function(e,t){this.near=(0,n.Z)(e,0),this.far=(0,n.Z)(t,0);const i=r.Z.NUMBER_OF_PASSES,o=new Array(i),s=new Array(i);for(let e=0;e{"use strict";i.d(t,{Z:()=>Z});var n=i(919382),r=i(406144),o=i(426468),s=i(54879),a=i(446938),c=i(987606),u=i(583917),l=i(50128),h=i(527758),d=i(657045),f=i(624491);function p(e,t,i,s,a){this._tileset=e,this._tile=t,this._resource=i,this._geometries=void 0,this._contentReadyPromise=void 0,this._readyPromise=h.Z.defer(),this._batchTable=void 0,this._features=void 0,this.featurePropertiesDirty=!1,this._groupMetadata=void 0,function(e,t,i){i=(0,r.Z)(i,0);const s=new Uint8Array(t),a=new DataView(t);i+=m;const h=a.getUint32(i,!0);if(1!==h)throw new l.Z("Only Geometry tile version 1 is supported. Version "+h+" is not.");i+=m;const p=a.getUint32(i,!0);if(i+=m,0===p)return void e._readyPromise.resolve(e);const _=a.getUint32(i,!0);if(i+=m,0===_)throw new l.Z("Feature table must have a byte length greater than zero");const Z=a.getUint32(i,!0);i+=m;const g=a.getUint32(i,!0);i+=m;const y=a.getUint32(i,!0);i+=m;const b=(0,c.Z)(s,i,_);i+=_;const A=new Uint8Array(t,i,Z);let w,v;i+=Z,g>0&&(w=(0,c.Z)(s,i,g),i+=g,y>0&&(v=new Uint8Array(t,i,y),v=new Uint8Array(v)));const T=(0,r.Z)(b.BOXES_LENGTH,0),C=(0,r.Z)(b.CYLINDERS_LENGTH,0),E=(0,r.Z)(b.ELLIPSOIDS_LENGTH,0),x=(0,r.Z)(b.SPHERES_LENGTH,0),S=T+C+E+x,O=new d.Z(e,S,w,v,function(e){return function(t,i){(0,o.Z)(e._geometries)&&e._geometries.updateCommands(t,i)}}(e));if(e._batchTable=O,0===S)return;const I=e.tile.computedTransform;let D;(0,o.Z)(b.RTC_CENTER)&&(D=n.Z.unpack(b.RTC_CENTER),u.Z.multiplyByPoint(I,D,D));const P=function(e,t){let i,n,s,a,c;const u=(0,r.Z)(e.BOXES_LENGTH,0),h=(0,r.Z)(e.CYLINDERS_LENGTH,0),d=(0,r.Z)(e.ELLIPSOIDS_LENGTH,0),f=(0,r.Z)(e.SPHERES_LENGTH,0);if(u>0&&(0,o.Z)(e.BOX_BATCH_IDS)){const n=t.byteOffset+e.BOX_BATCH_IDS.byteOffset;i=new Uint16Array(t.buffer,n,u)}if(h>0&&(0,o.Z)(e.CYLINDER_BATCH_IDS)){const i=t.byteOffset+e.CYLINDER_BATCH_IDS.byteOffset;n=new Uint16Array(t.buffer,i,h)}if(d>0&&(0,o.Z)(e.ELLIPSOID_BATCH_IDS)){const i=t.byteOffset+e.ELLIPSOID_BATCH_IDS.byteOffset;s=new Uint16Array(t.buffer,i,d)}if(f>0&&(0,o.Z)(e.SPHERE_BATCH_IDS)){const i=t.byteOffset+e.SPHERE_BATCH_IDS.byteOffset;a=new Uint16Array(t.buffer,i,f)}const p=(0,o.Z)(i)||(0,o.Z)(n)||(0,o.Z)(s)||(0,o.Z)(a),m=u>0&&!(0,o.Z)(i)||h>0&&!(0,o.Z)(n)||d>0&&!(0,o.Z)(s)||f>0&&!(0,o.Z)(a);if(p&&m)throw new l.Z("If one group of batch ids is defined, then all batch ids must be defined.");if(!((0,o.Z)(i)||(0,o.Z)(n)||(0,o.Z)(s)||(0,o.Z)(a))){let e=0;if(!(0,o.Z)(i)&&u>0)for(i=new Uint16Array(u),c=0;c0)for(n=new Uint16Array(h),c=0;c0)for(s=new Uint16Array(d),c=0;c0)for(a=new Uint16Array(f),c=0;c0||C>0||E>0||x>0){let t,i,n,r;if(T>0){const e=A.byteOffset+b.BOXES.byteOffset;t=new Float32Array(A.buffer,e,f.Z.packedBoxLength*T)}if(C>0){const e=A.byteOffset+b.CYLINDERS.byteOffset;i=new Float32Array(A.buffer,e,f.Z.packedCylinderLength*C)}if(E>0){const e=A.byteOffset+b.ELLIPSOIDS.byteOffset;n=new Float32Array(A.buffer,e,f.Z.packedEllipsoidLength*E)}if(x>0){const e=A.byteOffset+b.SPHERES.byteOffset;r=new Float32Array(A.buffer,e,f.Z.packedSphereLength*x)}e._geometries=new f.Z({boxes:t,boxBatchIds:P.boxes,cylinders:i,cylinderBatchIds:P.cylinders,ellipsoids:n,ellipsoidBatchIds:P.ellipsoids,spheres:r,sphereBatchIds:P.spheres,center:D,modelMatrix:I,batchTable:O,boundingVolume:e.tile.boundingVolume.boundingVolume})}}(this,s,a)}Object.defineProperties(p.prototype,{featuresLength:{get:function(){return(0,o.Z)(this._batchTable)?this._batchTable.featuresLength:0}},pointsLength:{get:function(){return 0}},trianglesLength:{get:function(){return(0,o.Z)(this._geometries)?this._geometries.trianglesLength:0}},geometryByteLength:{get:function(){return(0,o.Z)(this._geometries)?this._geometries.geometryByteLength:0}},texturesByteLength:{get:function(){return 0}},batchTableByteLength:{get:function(){return(0,o.Z)(this._batchTable)?this._batchTable.memorySizeInBytes:0}},innerContents:{get:function(){}},readyPromise:{get:function(){return this._readyPromise.promise}},tileset:{get:function(){return this._tileset}},tile:{get:function(){return this._tile}},url:{get:function(){return this._resource.getUrlComponent(!0)}},batchTable:{get:function(){return this._batchTable}},groupMetadata:{get:function(){return this._groupMetadata},set:function(e){this._groupMetadata=e}}});const m=Uint32Array.BYTES_PER_ELEMENT;function _(e){const t=e.featuresLength;if(!(0,o.Z)(e._features)&&t>0){const i=new Array(t);(0,o.Z)(e._geometries)&&e._geometries.createFeatures(e,i),e._features=i}}p.prototype.hasProperty=function(e,t){return this._batchTable.hasProperty(e,t)},p.prototype.getFeature=function(e){const t=this.featuresLength;if(!(0,o.Z)(e)||e<0||e>=t)throw new a.Z("batchId is required and between zero and featuresLength - 1 ("+(t-1)+").");return _(this),this._features[e]},p.prototype.applyDebugSettings=function(e,t){(0,o.Z)(this._geometries)&&this._geometries.applyDebugSettings(e,t)},p.prototype.applyStyle=function(e){_(this),(0,o.Z)(this._geometries)&&this._geometries.applyStyle(e,this._features)},p.prototype.update=function(e,t){if((0,o.Z)(this._geometries)&&(this._geometries.classificationType=this._tileset.classificationType,this._geometries.debugWireframe=this._tileset.debugWireframe,this._geometries.update(t)),(0,o.Z)(this._batchTable)&&this._geometries._ready&&this._batchTable.update(e,t),!(0,o.Z)(this._contentReadyPromise)){const e=this;this._contentReadyPromise=this._geometries.readyPromise.then((function(){e._readyPromise.resolve(e)}))}},p.prototype.isDestroyed=function(){return!1},p.prototype.destroy=function(){return this._geometries=this._geometries&&this._geometries.destroy(),this._batchTable=this._batchTable&&this._batchTable.destroy(),(0,s.Z)(this)};const Z=p},44685:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Z});var n=i(698907),r=i(426468),o=i(446938),s=i(50128),a=i(103198);function c(e){const t=[],i=e.features;for(let e=0;e0)for(let e=0;e\s*<\/body>/im,p=//im,m=/([\s\S]*)<\/title>/im;function _(e){if(f.test(e))return;if(p.test(e))return;let t;const i=m.exec(e);i&&i.length>1&&(t=i[1]);const n=new a.Z;return n.name=t,n.description=e,n.data=e,[n]}const Z=function(e,t,i){if(!(0,r.Z)(e))throw new o.Z("type is required.");if(this.type=e,!(0,r.Z)(t))if("json"===e)t="application/json";else if("xml"===e)t="text/xml";else if("html"===e)t="text/html";else{if("text"!==e)throw new o.Z('format is required when type is not "json", "xml", "html", or "text".');t="text/plain"}if(this.format=t,!(0,r.Z)(i))if("json"===e)i=c;else if("xml"===e)i=l;else if("html"===e)i=_;else{if("text"!==e)throw new o.Z('callback is required when type is not "json", "xml", "html", or "text".');i=_}this.callback=i}},503113:(e,t,i)=>{"use strict";i.d(t,{Z:()=>H});var n=i(360791),r=i(913216),o=i(919382),s=i(698907),a=i(545125),c=i(406144),u=i(426468),l=i(54879),h=i(446938),d=i(253316),f=i(392690),p=i(197685),m=i(66172),_=i(530109),Z=i(24401),g=i(523501),y=i(795788),b=i(279427),A=i(283044),w=i(855420),v=i(867629),T=i(955110),C=i(527758),E=i(448795),x=i(936552),S=i(926625),O=i(791939),I=i(88029),D=i(506678),P=i(556198);function R(e){e=(0,c.Z)(e,d.Z.WGS84);const t=new f.Z({ellipsoid:e}),i=new O.Z;this._ellipsoid=e,this._imageryLayerCollection=i,this._surfaceShaderSet=new E.Z,this._material=void 0,this._surface=new I.Z({tileProvider:new x.Z({terrainProvider:t,imageryLayers:i,surfaceShaderSet:this._surfaceShaderSet})}),this._terrainProvider=t,this._terrainProviderChanged=new p.Z,this._undergroundColor=a.Z.clone(a.Z.BLACK),this._undergroundColorAlphaByDistance=new _.Z(e.maximumRadius/1e3,0,e.maximumRadius/5,1),this._translucency=new S.Z,B(this),this.show=!0,this._oceanNormalMapResourceDirty=!0,this._oceanNormalMapResource=new y.Z({url:(0,r.Z)("Assets/Textures/waterNormalsSmall.jpg")}),this.maximumScreenSpaceError=2,this.tileCacheSize=100,this.loadingDescendantLimit=20,this.preloadAncestors=!0,this.preloadSiblings=!1,this.fillHighlightColor=void 0,this.enableLighting=!1,this.lambertDiffuseMultiplier=.9,this.dynamicAtmosphereLighting=!0,this.dynamicAtmosphereLightingFromSun=!1,this.showGroundAtmosphere=!0,this.lightingFadeOutDistance=1e7,this.lightingFadeInDistance=2e7,this.nightFadeOutDistance=1e7,this.nightFadeInDistance=5e7,this.showWaterEffect=!0,this.depthTestAgainstTerrain=!1,this.shadows=P.Z.RECEIVE_ONLY,this.atmosphereHueShift=0,this.atmosphereSaturationShift=0,this.atmosphereBrightnessShift=0,this.terrainExaggeration=1,this.terrainExaggerationRelativeHeight=0,this.showSkirts=!0,this.backFaceCulling=!0,this._oceanNormalMap=void 0,this._zoomedOutOceanSpecularIntensity=void 0}function B(e){const t=[],i=(0,u.Z)(e._material)&&(e._material.shaderSource.match(/slope/)||e._material.shaderSource.match("normalEC")),n=[T.Z];!(0,u.Z)(e._material)||i&&!e._terrainProvider.requestVertexNormals?e._surface._tileProvider.materialUniformMap=void 0:(n.push(e._material.shaderSource),t.push("APPLY_MATERIAL"),e._surface._tileProvider.materialUniformMap=e._material._uniforms),n.push(w.Z),e._surfaceShaderSet.baseVertexShaderSource=new b.Z({sources:[T.Z,v.Z],defines:t}),e._surfaceShaderSet.baseFragmentShaderSource=new b.Z({sources:n,defines:t}),e._surfaceShaderSet.material=e._material}Object.defineProperties(R.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},imageryLayers:{get:function(){return this._imageryLayerCollection}},imageryLayersUpdatedEvent:{get:function(){return this._surface.tileProvider.imageryLayersUpdatedEvent}},tilesLoaded:{get:function(){return!(0,u.Z)(this._surface)||this._surface.tileProvider.ready&&0===this._surface._tileLoadQueueHigh.length&&0===this._surface._tileLoadQueueMedium.length&&0===this._surface._tileLoadQueueLow.length}},baseColor:{get:function(){return this._surface.tileProvider.baseColor},set:function(e){this._surface.tileProvider.baseColor=e}},clippingPlanes:{get:function(){return this._surface.tileProvider.clippingPlanes},set:function(e){this._surface.tileProvider.clippingPlanes=e}},cartographicLimitRectangle:{get:function(){return this._surface.tileProvider.cartographicLimitRectangle},set:function(e){(0,u.Z)(e)||(e=g.Z.clone(g.Z.MAX_VALUE)),this._surface.tileProvider.cartographicLimitRectangle=e}},oceanNormalMapUrl:{get:function(){return this._oceanNormalMapResource.url},set:function(e){this._oceanNormalMapResource.url=e,this._oceanNormalMapResourceDirty=!0}},terrainProvider:{get:function(){return this._terrainProvider},set:function(e){e!==this._terrainProvider&&(this._terrainProvider=e,this._terrainProviderChanged.raiseEvent(e),(0,u.Z)(this._material)&&B(this))}},terrainProviderChanged:{get:function(){return this._terrainProviderChanged}},tileLoadProgressEvent:{get:function(){return this._surface.tileLoadProgressEvent}},material:{get:function(){return this._material},set:function(e){this._material!==e&&(this._material=e,B(this))}},undergroundColor:{get:function(){return this._undergroundColor},set:function(e){this._undergroundColor=a.Z.clone(e,this._undergroundColor)}},undergroundColorAlphaByDistance:{get:function(){return this._undergroundColorAlphaByDistance},set:function(e){if((0,u.Z)(e)&&e.far<e.near)throw new h.Z("far distance must be greater than near distance.");this._undergroundColorAlphaByDistance=_.Z.clone(e,this._undergroundColorAlphaByDistance)}},translucency:{get:function(){return this._translucency}}});const M=[],L={start:0,stop:0};R.prototype.pickWorldCoordinates=function(e,t,i,r){if(!(0,u.Z)(e))throw new h.Z("ray is required");if(!(0,u.Z)(t))throw new h.Z("scene is required");i=(0,c.Z)(i,!0);const s=t.mode,a=t.mapProjection,l=M;l.length=0;const d=this._surface._tilesToRender;let f,p,_=d.length;for(p=0;p<_;++p){f=d[p];const t=f.data;if(!(0,u.Z)(t))continue;let i=t.pickBoundingSphere;if(s!==D.Z.SCENE3D)t.pickBoundingSphere=i=n.Z.fromRectangleWithHeights2D(f.rectangle,a,t.tileBoundingRegion.minimumHeight,t.tileBoundingRegion.maximumHeight,i),o.Z.fromElements(i.center.z,i.center.x,i.center.y,i.center);else{if(!(0,u.Z)(t.renderedMesh))continue;n.Z.clone(t.tileBoundingRegion.boundingSphere,i)}const r=m.Z.raySphere(e,i,L);(0,u.Z)(r)&&l.push(t)}var Z;let g;for(l.sort((Z=e.origin,function(e,t){return n.Z.distanceSquaredTo(e.pickBoundingSphere,Z)-n.Z.distanceSquaredTo(t.pickBoundingSphere,Z)})),_=l.length,p=0;p<_&&(g=l[p].pick(e,t.mode,t.mapProjection,i,r),!(0,u.Z)(g));++p);return g};const N=new s.Z;R.prototype.pick=function(e,t,i){if(i=this.pickWorldCoordinates(e,t,!0,i),(0,u.Z)(i)&&t.mode!==D.Z.SCENE3D){i=o.Z.fromElements(i.y,i.z,i.x,i);const e=t.mapProjection.unproject(i,N);i=t.globe.ellipsoid.cartographicToCartesian(e,i)}return i};const F=new o.Z,k=new o.Z,U=new s.Z,V=new Z.Z;function z(e,t){return(0,u.Z)(e)&&g.Z.contains(e.rectangle,t)?e:void 0}R.prototype.getHeight=function(e){if(!(0,u.Z)(e))throw new h.Z("cartographic is required");const t=this._surface._levelZeroTiles;if(!(0,u.Z)(t))return;let i,n;const r=t.length;for(n=0;n<r&&(i=t[n],!g.Z.contains(i.rectangle,e));++n);if(n>=r)return;let s=i;for(;(0,u.Z)(i);)i=z(i._southwestChild,e)||z(i._southeastChild,e)||z(i._northwestChild,e)||i._northeastChild,(0,u.Z)(i)&&(0,u.Z)(i.data)&&(0,u.Z)(i.data.renderedMesh)&&(s=i);if(i=s,!(0,u.Z)(i)||!(0,u.Z)(i.data)||!(0,u.Z)(i.data.renderedMesh))return;const a=this._surface._tileProvider.tilingScheme.projection,l=this._surface._tileProvider.tilingScheme.ellipsoid,d=o.Z.fromRadians(e.longitude,e.latitude,0,l,F),f=V,p=l.geodeticSurfaceNormal(d,f.direction),m=l.getSurfaceNormalIntersectionWithZAxis(d,11500,f.origin);if(!(0,u.Z)(m)){let e;(0,u.Z)(i.data.tileBoundingRegion)&&(e=i.data.tileBoundingRegion.minimumHeight);const t=Math.min((0,c.Z)(e,0),-11500),n=o.Z.multiplyByScalar(p,Math.abs(t)+1,k);o.Z.subtract(d,n,f.origin)}const _=i.data.pick(f,void 0,a,!1,k);return(0,u.Z)(_)?l.cartesianToCartographic(_,U).height:void 0},R.prototype.update=function(e){this.show&&e.passes.render&&this._surface.update(e)},R.prototype.beginFrame=function(e){const t=this._surface,i=t.tileProvider,n=this.terrainProvider,r=this.showWaterEffect&&n.ready&&n.hasWaterMask;if(r&&this._oceanNormalMapResourceDirty){this._oceanNormalMapResourceDirty=!1;const t=this._oceanNormalMapResource,i=t.url;if((0,u.Z)(i)){const n=this;(0,C.Z)(t.fetchImage(),(function(t){i===n._oceanNormalMapResource.url&&(n._oceanNormalMap=n._oceanNormalMap&&n._oceanNormalMap.destroy(),n._oceanNormalMap=new A.Z({context:e.context,source:t}))}))}else this._oceanNormalMap=this._oceanNormalMap&&this._oceanNormalMap.destroy()}const o=e.passes,s=e.mode;o.render&&(this.showGroundAtmosphere?this._zoomedOutOceanSpecularIntensity=.4:this._zoomedOutOceanSpecularIntensity=.5,t.maximumScreenSpaceError=this.maximumScreenSpaceError,t.tileCacheSize=this.tileCacheSize,t.loadingDescendantLimit=this.loadingDescendantLimit,t.preloadAncestors=this.preloadAncestors,t.preloadSiblings=this.preloadSiblings,i.terrainProvider=this.terrainProvider,i.lightingFadeOutDistance=this.lightingFadeOutDistance,i.lightingFadeInDistance=this.lightingFadeInDistance,i.nightFadeOutDistance=this.nightFadeOutDistance,i.nightFadeInDistance=this.nightFadeInDistance,i.zoomedOutOceanSpecularIntensity=s===D.Z.SCENE3D?this._zoomedOutOceanSpecularIntensity:0,i.hasWaterMask=r,i.oceanNormalMap=this._oceanNormalMap,i.enableLighting=this.enableLighting,i.dynamicAtmosphereLighting=this.dynamicAtmosphereLighting,i.dynamicAtmosphereLightingFromSun=this.dynamicAtmosphereLightingFromSun,i.showGroundAtmosphere=this.showGroundAtmosphere,i.shadows=this.shadows,i.hueShift=this.atmosphereHueShift,i.saturationShift=this.atmosphereSaturationShift,i.brightnessShift=this.atmosphereBrightnessShift,i.fillHighlightColor=this.fillHighlightColor,i.showSkirts=this.showSkirts,i.backFaceCulling=this.backFaceCulling,i.undergroundColor=this._undergroundColor,i.undergroundColorAlphaByDistance=this._undergroundColorAlphaByDistance,i.lambertDiffuseMultiplier=this.lambertDiffuseMultiplier,t.beginFrame(e))},R.prototype.render=function(e){this.show&&((0,u.Z)(this._material)&&this._material.update(e.context),this._surface.render(e))},R.prototype.endFrame=function(e){this.show&&e.passes.render&&this._surface.endFrame(e)},R.prototype.isDestroyed=function(){return!1},R.prototype.destroy=function(){return this._surfaceShaderSet=this._surfaceShaderSet&&this._surfaceShaderSet.destroy(),this._surface=this._surface&&this._surface.destroy(),this._oceanNormalMap=this._oceanNormalMap&&this._oceanNormalMap.destroy(),(0,l.Z)(this)};const H=R},199708:(e,t,i)=>{"use strict";i.d(t,{Z:()=>y});var n=i(152124),r=i(545125),o=i(426468),s=i(54879),a=i(20209),c=i(273642),u=i(687931),l=i(364232),h=i(426301),d=i(831222),f=i(451356),p=i(42973),m=i(786861),_=i(301859);function Z(){this._tempCopyDepthTexture=void 0,this._colorFramebuffer=new c.Z({depthStencil:!0,supportsDepthTexture:!0}),this._copyDepthFramebuffer=new c.Z,this._tempCopyDepthFramebuffer=new c.Z,this._updateDepthFramebuffer=new c.Z({createColorAttachments:!1,createDepthAttachments:!1,depthStencil:!0}),this._clearGlobeColorCommand=void 0,this._copyColorCommand=void 0,this._copyDepthCommand=void 0,this._tempCopyDepthCommand=void 0,this._updateDepthCommand=void 0,this._viewport=new n.Z,this._rs=void 0,this._rsBlend=void 0,this._rsUpdate=void 0,this._useScissorTest=!1,this._scissorRectangle=void 0,this._useHdr=void 0,this._clearGlobeDepth=void 0}function g(e,t,i,s,c){e._viewport.width=i,e._viewport.height=s;const u=!n.Z.equals(e._viewport,c.viewport);let Z=u!==e._useScissorTest;e._useScissorTest=u,n.Z.equals(e._scissorRectangle,c.viewport)||(e._scissorRectangle=n.Z.clone(c.viewport,e._scissorRectangle),Z=!0),(0,o.Z)(e._rs)&&n.Z.equals(e._viewport,e._rs.viewport)&&!Z||(e._rs=l.Z.fromCache({viewport:e._viewport,scissorTest:{enabled:e._useScissorTest,rectangle:e._scissorRectangle}}),e._rsBlend=l.Z.fromCache({viewport:e._viewport,scissorTest:{enabled:e._useScissorTest,rectangle:e._scissorRectangle},blending:f.Z.ALPHA_BLEND}),e._rsUpdate=l.Z.fromCache({viewport:e._viewport,scissorTest:{enabled:e._useScissorTest,rectangle:e._scissorRectangle},stencilTest:{enabled:!0,frontFunction:m.Z.EQUAL,frontOperation:{fail:_.Z.KEEP,zFail:_.Z.KEEP,zPass:_.Z.KEEP},backFunction:m.Z.NEVER,reference:p.Z.CESIUM_3D_TILE_MASK,mask:p.Z.CESIUM_3D_TILE_MASK}})),(0,o.Z)(e._copyDepthCommand)||(e._copyDepthCommand=t.createViewportQuadCommand(d.Z,{uniformMap:{u_depthTexture:function(){return e._colorFramebuffer.getDepthStencilTexture()}},owner:e})),e._copyDepthCommand.framebuffer=e._copyDepthFramebuffer.framebuffer,e._copyDepthCommand.renderState=e._rs,(0,o.Z)(e._copyColorCommand)||(e._copyColorCommand=t.createViewportQuadCommand(h.Z,{uniformMap:{colorTexture:function(){return e._colorFramebuffer.getColorTexture()}},owner:e})),e._copyColorCommand.renderState=e._rs,(0,o.Z)(e._tempCopyDepthCommand)||(e._tempCopyDepthCommand=t.createViewportQuadCommand(d.Z,{uniformMap:{u_depthTexture:function(){return e._tempCopyDepthTexture}},owner:e})),e._tempCopyDepthCommand.framebuffer=e._tempCopyDepthFramebuffer.framebuffer,e._tempCopyDepthCommand.renderState=e._rs,(0,o.Z)(e._updateDepthCommand)||(e._updateDepthCommand=t.createViewportQuadCommand(h.Z,{uniformMap:{colorTexture:function(){return e._tempCopyDepthFramebuffer.getColorTexture()}},owner:e})),e._updateDepthCommand.framebuffer=e._updateDepthFramebuffer.framebuffer,e._updateDepthCommand.renderState=e._rsUpdate,(0,o.Z)(e._clearGlobeColorCommand)||(e._clearGlobeColorCommand=new a.Z({color:new r.Z(0,0,0,0),stencil:0,owner:e})),e._clearGlobeColorCommand.framebuffer=e.framebuffer}Object.defineProperties(Z.prototype,{framebuffer:{get:function(){return this._colorFramebuffer.framebuffer}}}),Z.prototype.update=function(e,t,i,n,r){const o=i.width,s=i.height,a=n?e.halfFloatingPointTexture?u.Z.HALF_FLOAT:u.Z.FLOAT:u.Z.UNSIGNED_BYTE;this._colorFramebuffer.update(e,o,s,a),this._copyDepthFramebuffer.update(e,o,s),g(this,e,o,s,t),e.uniformState.globeDepthTexture=void 0,this._useHdr=n,this._clearGlobeDepth=r},Z.prototype.executeCopyDepth=function(e,t){(0,o.Z)(this._copyDepthCommand)&&(this._copyDepthCommand.execute(e,t),e.uniformState.globeDepthTexture=this._copyDepthFramebuffer.getColorTexture())},Z.prototype.executeUpdateDepth=function(e,t,i){const n=t.framebuffer.depthStencilTexture;if(i||n!==this._colorFramebuffer.getDepthStencilTexture()){if((0,o.Z)(this._updateDepthCommand)){if(!(0,o.Z)(this._updateDepthFramebuffer.framebuffer)||this._updateDepthFramebuffer.getDepthStencilTexture()!==n||this._updateDepthFramebuffer.getColorTexture()!==this._copyDepthFramebuffer.getColorTexture()){const i=this._copyDepthFramebuffer.getColorTexture().width,n=this._copyDepthFramebuffer.getColorTexture().height;this._tempCopyDepthFramebuffer.destroy(),this._tempCopyDepthFramebuffer.update(e,i,n);const r=this._copyDepthFramebuffer.getColorTexture(),o=t.framebuffer.depthStencilTexture;this._updateDepthFramebuffer.setColorTexture(r,0),this._updateDepthFramebuffer.setDepthStencilTexture(o),this._updateDepthFramebuffer.update(e,i,n),g(this,e,i,n,t)}this._tempCopyDepthTexture=n,this._tempCopyDepthCommand.execute(e,t),this._updateDepthCommand.execute(e,t)}}else(0,o.Z)(this._copyDepthCommand)&&this._copyDepthCommand.execute(e,t)},Z.prototype.executeCopyColor=function(e,t){(0,o.Z)(this._copyColorCommand)&&this._copyColorCommand.execute(e,t)},Z.prototype.clear=function(e,t,i){const n=this._clearGlobeColorCommand;(0,o.Z)(n)&&(r.Z.clone(i,n.color),this._colorFramebuffer.clear(e,n,t))},Z.prototype.isDestroyed=function(){return!1},Z.prototype.destroy=function(){var e;return(e=this)._colorFramebuffer.destroy(),e._copyDepthFramebuffer.destroy(),e._tempCopyDepthFramebuffer.destroy(),e._updateDepthFramebuffer.destroy(),(0,o.Z)(this._copyColorCommand)&&(this._copyColorCommand.shaderProgram=this._copyColorCommand.shaderProgram.destroy()),(0,o.Z)(this._copyDepthCommand)&&(this._copyDepthCommand.shaderProgram=this._copyDepthCommand.shaderProgram.destroy()),(0,o.Z)(this._tempCopyDepthCommand)&&(this._tempCopyDepthCommand.shaderProgram=this._tempCopyDepthCommand.shaderProgram.destroy()),(0,o.Z)(this._updateDepthCommand)&&(this._updateDepthCommand.shaderProgram=this._updateDepthCommand.shaderProgram.destroy()),(0,s.Z)(this)};const y=Z},448795:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(426468),r=i(54879),o=i(854948),s=i(928096),a=i(394088),c=i(506678);function u(e,t,i,n,r){this.numberOfDayTextures=e,this.flags=t,this.material=i,this.shaderProgram=n,this.clippingShaderState=r}function l(){this.baseVertexShaderSource=void 0,this.baseFragmentShaderSource=void 0,this._shadersByTexturesFlags=[],this.material=void 0}l.prototype.getShaderProgram=function(e){const t=e.frameState,i=e.surfaceTile,r=e.numberOfDayTextures,l=e.applyBrightness,h=e.applyContrast,d=e.applyHue,f=e.applySaturation,p=e.applyGamma,m=e.applyAlpha,_=e.applyDayNightAlpha,Z=e.applySplit,g=e.showReflectiveOcean,y=e.showOceanWaves,b=e.enableLighting,A=e.dynamicAtmosphereLighting,w=e.dynamicAtmosphereLightingFromSun,v=e.showGroundAtmosphere,T=e.perFragmentGroundAtmosphere,C=e.hasVertexNormals,E=e.useWebMercatorProjection,x=e.enableFog,S=e.enableClippingPlanes,O=e.clippingPlanes,I=e.clippedByBoundaries,D=e.hasImageryLayerCutout,P=e.colorCorrect,R=e.highlightFillTile,B=e.colorToAlpha,M=e.hasGeodeticSurfaceNormals,L=e.hasExaggeration,N=e.showUndergroundColor,F=e.translucent;let k=0,U="";const V=i.renderedMesh.encoding;V.quantization===o.Z.BITS12&&(k=1,U="QUANTIZATION_BITS12");let z=0,H="";I&&(z=1,H="TILE_LIMIT_RECTANGLE");let G=0,q="";D&&(G=1,q="APPLY_IMAGERY_CUTOUT");const j=t.mode,W=j|l<<2|h<<3|d<<4|f<<5|p<<6|m<<7|g<<8|y<<9|b<<10|A<<11|w<<12|v<<13|T<<14|C<<15|E<<16|x<<17|k<<18|Z<<19|S<<20|z<<21|G<<22|P<<23|R<<24|B<<25|M<<26|L<<27|N<<28|F<<29|_<<30;let K=0;(0,n.Z)(O)&&O.length>0&&(K=S?O.clippingPlanesState:0);let Y=i.surfaceShader;if((0,n.Z)(Y)&&Y.numberOfDayTextures===r&&Y.flags===W&&Y.material===this.material&&Y.clippingShaderState===K)return Y.shaderProgram;let X=this._shadersByTexturesFlags[r];if((0,n.Z)(X)||(X=this._shadersByTexturesFlags[r]=[]),Y=X[W],!(0,n.Z)(Y)||Y.material!==this.material||Y.clippingShaderState!==K){const e=this.baseVertexShaderSource.clone(),i=this.baseFragmentShaderSource.clone();0!==K&&i.sources.unshift((0,a.Z)(O,t.context)),e.defines.push(U),i.defines.push("TEXTURE_UNITS "+r,H,q),l&&i.defines.push("APPLY_BRIGHTNESS"),h&&i.defines.push("APPLY_CONTRAST"),d&&i.defines.push("APPLY_HUE"),f&&i.defines.push("APPLY_SATURATION"),p&&i.defines.push("APPLY_GAMMA"),m&&i.defines.push("APPLY_ALPHA"),_&&i.defines.push("APPLY_DAY_NIGHT_ALPHA"),g&&(i.defines.push("SHOW_REFLECTIVE_OCEAN"),e.defines.push("SHOW_REFLECTIVE_OCEAN")),y&&i.defines.push("SHOW_OCEAN_WAVES"),B&&i.defines.push("APPLY_COLOR_TO_ALPHA"),N&&(e.defines.push("UNDERGROUND_COLOR"),i.defines.push("UNDERGROUND_COLOR")),F&&(e.defines.push("TRANSLUCENT"),i.defines.push("TRANSLUCENT")),b&&(C?(e.defines.push("ENABLE_VERTEX_LIGHTING"),i.defines.push("ENABLE_VERTEX_LIGHTING")):(e.defines.push("ENABLE_DAYNIGHT_SHADING"),i.defines.push("ENABLE_DAYNIGHT_SHADING"))),A&&(i.defines.push("DYNAMIC_ATMOSPHERE_LIGHTING"),w&&i.defines.push("DYNAMIC_ATMOSPHERE_LIGHTING_FROM_SUN")),v&&(e.defines.push("GROUND_ATMOSPHERE"),i.defines.push("GROUND_ATMOSPHERE"),T&&i.defines.push("PER_FRAGMENT_GROUND_ATMOSPHERE")),e.defines.push("INCLUDE_WEB_MERCATOR_Y"),i.defines.push("INCLUDE_WEB_MERCATOR_Y"),x&&(e.defines.push("FOG"),i.defines.push("FOG")),Z&&i.defines.push("APPLY_SPLIT"),S&&i.defines.push("ENABLE_CLIPPING_PLANES"),P&&i.defines.push("COLOR_CORRECT"),R&&i.defines.push("HIGHLIGHT_FILL_TILE"),M&&e.defines.push("GEODETIC_SURFACE_NORMALS"),L&&e.defines.push("EXAGGERATION");let n=" vec4 computeDayColor(vec4 initialColor, vec3 textureCoordinates, float nightBlend)\n {\n vec4 color = initialColor;\n";D&&(n+=" vec4 cutoutAndColorResult;\n bool texelUnclipped;\n");for(let e=0;e<r;++e)n+=D?" cutoutAndColorResult = u_dayTextureCutoutRectangles["+e+"];\n texelUnclipped = v_textureCoordinates.x < cutoutAndColorResult.x || cutoutAndColorResult.z < v_textureCoordinates.x || v_textureCoordinates.y < cutoutAndColorResult.y || cutoutAndColorResult.w < v_textureCoordinates.y;\n cutoutAndColorResult = sampleAndBlend(\n":" color = sampleAndBlend(\n",n+=" color,\n u_dayTextures["+e+"],\n u_dayTextureUseWebMercatorT["+e+"] ? textureCoordinates.xz : textureCoordinates.xy,\n u_dayTextureTexCoordsRectangle["+e+"],\n u_dayTextureTranslationAndScale["+e+"],\n "+(m?"u_dayTextureAlpha["+e+"]":"1.0")+",\n "+(_?"u_dayTextureNightAlpha["+e+"]":"1.0")+",\n"+(_?"u_dayTextureDayAlpha["+e+"]":"1.0")+",\n"+(l?"u_dayTextureBrightness["+e+"]":"0.0")+",\n "+(h?"u_dayTextureContrast["+e+"]":"0.0")+",\n "+(d?"u_dayTextureHue["+e+"]":"0.0")+",\n "+(f?"u_dayTextureSaturation["+e+"]":"0.0")+",\n "+(p?"u_dayTextureOneOverGamma["+e+"]":"0.0")+",\n "+(Z?"u_dayTextureSplit["+e+"]":"0.0")+",\n "+(B?"u_colorsToAlpha["+e+"]":"vec4(0.0)")+",\n nightBlend );\n",D&&(n+=" color = czm_branchFreeTernary(texelUnclipped, cutoutAndColorResult, color);\n");n+=" return color;\n }",i.sources.push(n),e.sources.push(function(e){let t;switch(e){case c.Z.SCENE3D:t="vec4 getPosition(vec3 position, float height, vec2 textureCoordinates) { return getPosition3DMode(position, height, textureCoordinates); }";break;case c.Z.SCENE2D:case c.Z.COLUMBUS_VIEW:t="vec4 getPosition(vec3 position, float height, vec2 textureCoordinates) { return getPositionColumbusViewMode(position, height, textureCoordinates); }";break;case c.Z.MORPHING:t="vec4 getPosition(vec3 position, float height, vec2 textureCoordinates) { return getPositionMorphingMode(position, height, textureCoordinates); }"}return t}(j)),e.sources.push(function(e){return e?"float get2DYPositionFraction(vec2 textureCoordinates) { return get2DMercatorYPositionFraction(textureCoordinates); }":"float get2DYPositionFraction(vec2 textureCoordinates) { return get2DGeographicYPositionFraction(textureCoordinates); }"}(E));const o=s.Z.fromCache({context:t.context,vertexShaderSource:e,fragmentShaderSource:i,attributeLocations:V.getAttributeLocations()});Y=X[W]=new u(r,W,this.material,o,K)}return i.surfaceShader=Y,Y.shaderProgram},l.prototype.destroy=function(){let e,t;const i=this._shadersByTexturesFlags;for(const r in i)if(i.hasOwnProperty(r)){const o=i[r];if(!(0,n.Z)(o))continue;for(e in o)o.hasOwnProperty(e)&&(t=o[e],(0,n.Z)(t)&&t.shaderProgram.destroy())}return(0,r.Z)(this)};const h=l},93413:(e,t,i)=>{"use strict";i.d(t,{Z:()=>k});var n=i(360791),r=i(919382),o=i(114754),s=i(698907),a=i(426468),c=i(546135),u=i(66172),l=i(100883),h=i(24401),d=i(261045),f=i(316954),p=i(690220),m=i(569269),_=i(723822),Z=i(636807),g=i(50720),y=i(687931),b=i(270013),A=i(283044),w=i(59102),v=i(636664),T=i(655499),C=i(676311),E=i(527758),x=i(649479),S=i(437358),O=i(506678),I=i(226948);function D(){this.imagery=[],this.waterMaskTexture=void 0,this.waterMaskTranslationAndScale=new o.Z(0,0,1,1),this.terrainData=void 0,this.vertexArray=void 0,this.tileBoundingRegion=void 0,this.occludeePointInScaledSpace=new r.Z,this.boundingVolumeSourceTile=void 0,this.boundingVolumeIsFromMesh=!1,this.terrainState=I.Z.UNLOADED,this.mesh=void 0,this.fill=void 0,this.pickBoundingSphere=new n.Z,this.surfaceShader=void 0,this.isClipped=!0,this.clippedByBoundaries=!1}Object.defineProperties(D.prototype,{eligibleForUnloading:{get:function(){const e=this.terrainState;let t=!(e===I.Z.RECEIVING||e===I.Z.TRANSFORMING);const i=this.imagery;for(let e=0,n=i.length;t&&e<n;++e){const n=i[e];t=!(0,a.Z)(n.loadingImagery)||n.loadingImagery.state!==x.Z.TRANSITIONING}return t}},renderedMesh:{get:function(){return(0,a.Z)(this.vertexArray)?this.mesh:(0,a.Z)(this.fill)?this.fill.mesh:void 0}}});const P=new s.Z;function R(e,t,i,n,o,s){let c=e.getExaggeratedPosition(n,o,s);if((0,a.Z)(t)&&t!==O.Z.SCENE3D){const e=i.ellipsoid.cartesianToCartographic(c,P);c=i.project(e,s),c=r.Z.fromElements(c.z,c.x,c.y,s)}return c}const B=new r.Z,M=new r.Z,L=new r.Z;function N(e,t,i,n){const r=e.renderedMesh,o=r.vertices,s=r.encoding,a=o.length/s.stride;let c=m.Z.clone(s);c.hasGeodeticSurfaceNormals=t,c=m.Z.clone(c);const u=c.stride,l=new Float32Array(a*u);t?s.addGeodeticSurfaceNormals(o,l,i):s.removeGeodeticSurfaceNormals(o,l),r.vertices=l,r.stride=u,r!==e.mesh?(D._freeVertexArray(e.fill.vertexArray),e.fill.vertexArray=D._createVertexArrayForMesh(n.context,r)):(D._freeVertexArray(e.vertexArray),e.vertexArray=D._createVertexArrayForMesh(n.context,r)),D._freeVertexArray(e.wireframeVertexArray),e.wireframeVertexArray=void 0}D.prototype.pick=function(e,t,i,n,r){const o=this.renderedMesh;if(!(0,a.Z)(o))return;const s=o.vertices,c=o.indices,l=o.encoding,d=c.length;let f=Number.MAX_VALUE;for(let r=0;r<d;r+=3){const o=c[r],h=c[r+1],d=c[r+2],p=R(l,t,i,s,o,B),m=R(l,t,i,s,h,M),_=R(l,t,i,s,d,L),Z=u.Z.rayTriangleParametric(e,p,m,_,n);(0,a.Z)(Z)&&Z<f&&Z>=0&&(f=Z)}return f!==Number.MAX_VALUE?h.Z.getPoint(e,f,r):void 0},D.prototype.freeResources=function(){(0,a.Z)(this.waterMaskTexture)&&(--this.waterMaskTexture.referenceCount,0===this.waterMaskTexture.referenceCount&&this.waterMaskTexture.destroy(),this.waterMaskTexture=void 0),this.terrainData=void 0,this.terrainState=I.Z.UNLOADED,this.mesh=void 0,this.fill=this.fill&&this.fill.destroy();const e=this.imagery;for(let t=0,i=e.length;t<i;++t)e[t].freeResources();this.imagery.length=0,this.freeVertexArray()},D.prototype.freeVertexArray=function(){D._freeVertexArray(this.vertexArray),this.vertexArray=void 0,D._freeVertexArray(this.wireframeVertexArray),this.wireframeVertexArray=void 0},D.initialize=function(e,t,i){let n=e.data;(0,a.Z)(n)||(n=e.data=new D),e.state===S.Z.START&&(function(e,t,i){let n=t.getTileDataAvailable(e.x,e.y,e.level);if(!(0,a.Z)(n)&&(0,a.Z)(e.parent)){const t=e.parent,i=t.data;(0,a.Z)(i)&&(0,a.Z)(i.terrainData)&&(n=i.terrainData.isChildAvailable(t.x,t.y,e.x,e.y))}!1===n&&(e.data.terrainState=I.Z.FAILED);for(let n=0,r=i.length;n<r;++n){const r=i.get(n);r.show&&r._createTileImagerySkeletons(e,t)}}(e,t,i),e.state=S.Z.LOADING)},D.processStateMachine=function(e,t,i,n,r,s,c){D.initialize(e,i,n);const u=e.data;if(e.state===S.Z.LOADING&&function(e,t,i,n,r,s){const c=e.data,u=e.parent;if(c.terrainState===I.Z.FAILED&&void 0!==u&&(void 0!==u.data&&void 0!==u.data.terrainData&&!1!==u.data.terrainData.canUpsample||D.processStateMachine(u,t,i,n,r,s,!0)),c.terrainState===I.Z.FAILED&&function(e,t,i,n,r,o,s){const c=t.parent;if(!c)return void(t.state=S.Z.FAILED);const u=c.data.terrainData,l=c.x,h=c.y,d=c.level;if(!(0,a.Z)(u))return;const f=u.upsample(n.tilingScheme,l,h,d,r,o,s);(0,a.Z)(f)&&(e.terrainState=I.Z.RECEIVING,(0,E.Z)(f,(function(t){e.terrainData=t,e.terrainState=I.Z.RECEIVED}),(function(){e.terrainState=I.Z.FAILED})))}(c,e,0,i,e.x,e.y,e.level),c.terrainState===I.Z.UNLOADED&&function(e,t,i,n,r){function o(t){e.terrainData=t,e.terrainState=I.Z.RECEIVED,e.request=void 0}function s(o){if(e.request.state===f.Z.CANCELLED)return e.terrainData=void 0,e.terrainState=I.Z.UNLOADED,void(e.request=void 0);e.terrainState=I.Z.FAILED,e.request=void 0;const s="Failed to obtain terrain tile X: "+i+" Y: "+n+" Level: "+r+'. Error message: "'+o+'"';t._requestError=_.Z.handleError(t._requestError,t,t.errorEvent,s,i,n,r,c)}function c(){const c=new d.Z({throttle:!1,throttleByServer:!0,type:p.Z.TERRAIN});e.request=c;const u=t.requestTileGeometry(i,n,r,c);(0,a.Z)(u)?(e.terrainState=I.Z.RECEIVING,(0,E.Z)(u,o,s)):(e.terrainState=I.Z.UNLOADED,e.request=void 0)}c()}(c,i,e.x,e.y,e.level),c.terrainState===I.Z.RECEIVED&&function(e,t,i,n,r,o){const s=i.tilingScheme,c=F;c.tilingScheme=s,c.x=n,c.y=r,c.level=o,c.exaggeration=t.terrainExaggeration,c.exaggerationRelativeHeight=t.terrainExaggerationRelativeHeight,c.throttle=!0;const u=e.terrainData.createMesh(c);(0,a.Z)(u)&&(e.terrainState=I.Z.TRANSFORMING,(0,E.Z)(u,(function(t){e.mesh=t,e.terrainState=I.Z.TRANSFORMED}),(function(){e.terrainState=I.Z.FAILED})))}(c,t,i,e.x,e.y,e.level),c.terrainState===I.Z.TRANSFORMED&&(function(e,t,i,n,r,o,s){e.vertexArray=D._createVertexArrayForMesh(t,e.mesh),e.terrainState=I.Z.READY,e.fill=e.fill&&e.fill.destroy(s)}(c,t.context,0,e.x,e.y,e.level,s),c.updateExaggeration(e,t,r)),c.terrainState>=I.Z.RECEIVED&&void 0===c.waterMaskTexture&&i.hasWaterMask)if(void 0!==c.terrainData.waterMask)!function(e,t){const i=t.terrainData.waterMask,n=function(e){let t=e.cache.tile_waterMaskData;if(!(0,a.Z)(t)){const i=A.Z.create({context:e,pixelFormat:l.Z.LUMINANCE,pixelDatatype:y.Z.UNSIGNED_BYTE,source:{arrayBufferView:new Uint8Array([255]),width:1,height:1}});i.referenceCount=1,t={allWaterTexture:i,sampler:new b.Z({wrapS:T.Z.CLAMP_TO_EDGE,wrapT:T.Z.CLAMP_TO_EDGE,minificationFilter:v.Z.LINEAR,magnificationFilter:w.Z.LINEAR}),destroy:function(){this.allWaterTexture.destroy()}},e.cache.tile_waterMaskData=t}return t}(e);let r;const s=i.length;if(1===s){if(0===i[0])return;r=n.allWaterTexture}else{const t=Math.sqrt(s);r=A.Z.create({context:e,pixelFormat:l.Z.LUMINANCE,pixelDatatype:y.Z.UNSIGNED_BYTE,source:{width:t,height:t,arrayBufferView:i},sampler:n.sampler,flipY:!1}),r.referenceCount=0}++r.referenceCount,t.waterMaskTexture=r,o.Z.fromElements(0,0,1,1,t.waterMaskTranslationAndScale)}(t.context,c);else{const t=c._findAncestorTileWithTerrainData(e);(0,a.Z)(t)&&(0,a.Z)(t.data.waterMaskTexture)&&(c.waterMaskTexture=t.data.waterMaskTexture,++c.waterMaskTexture.referenceCount,c._computeWaterMaskTranslationAndScale(e,t,c.waterMaskTranslationAndScale))}}(e,t,i,n,r,s),c)return;const h=e.renderable;e.renderable=(0,a.Z)(u.vertexArray);const m=u.terrainState===I.Z.READY;e.upsampledFromParent=(0,a.Z)(u.terrainData)&&u.terrainData.wasCreatedByUpsampling();const Z=u.processImagery(e,i,t);if(m&&Z){const t=e._loadedCallbacks,i={};for(const n in t)t.hasOwnProperty(n)&&(t[n](e)||(i[n]=t[n]));e._loadedCallbacks=i,e.state=S.Z.DONE}h&&(e.renderable=!0)},D.prototype.processImagery=function(e,t,i,n){const r=e.data;let o=e.upsampledFromParent,s=!1,c=!0;const u=r.imagery;let l,h;for(l=0,h=u.length;l<h;++l){const r=u[l];if(!(0,a.Z)(r.loadingImagery)){o=!1;continue}if(r.loadingImagery.state===x.Z.PLACEHOLDER){const i=r.loadingImagery.imageryLayer;if(i.imageryProvider.ready){r.freeResources(),u.splice(l,1),i._createTileImagerySkeletons(e,t,l),--l,h=u.length;continue}o=!1}const d=r.processStateMachine(e,i,n);c=c&&d,s=s||d||(0,a.Z)(r.readyImagery),o=o&&(0,a.Z)(r.loadingImagery)&&(r.loadingImagery.state===x.Z.FAILED||r.loadingImagery.state===x.Z.INVALID)}return e.upsampledFromParent=o,e.renderable=e.renderable&&(s||c),c},D.prototype.addGeodeticSurfaceNormals=function(e,t){N(this,!0,e,t)},D.prototype.removeGeodeticSurfaceNormals=function(e){N(this,!1,void 0,e)},D.prototype.updateExaggeration=function(e,t,i){const n=this,r=n.renderedMesh;if(void 0===r)return;const o=t.terrainExaggeration,s=t.terrainExaggerationRelativeHeight,a=1!==o,c=r.encoding,u=c.exaggeration!==o,l=c.exaggerationRelativeHeight!==s;if(u||l){if(u)if(a&&!c.hasGeodeticSurfaceNormals){const i=e.tilingScheme.ellipsoid;n.addGeodeticSurfaceNormals(i,t)}else!a&&c.hasGeodeticSurfaceNormals&&n.removeGeodeticSurfaceNormals(t);if(c.exaggeration=o,c.exaggerationRelativeHeight=s,void 0!==i){i._tileToUpdateHeights.push(e);const t=e.customData,n=t.length;for(let e=0;e<n;e++)t[e].level=-1}}};const F={tilingScheme:void 0,x:0,y:0,level:0,exaggeration:1,exaggerationRelativeHeight:0,throttle:!0};D._createVertexArrayForMesh=function(e,t){const i=t.vertices,n=Z.Z.createVertexBuffer({context:e,typedArray:i,usage:g.Z.STATIC_DRAW}),r=t.encoding.getAttributes(n),o=t.indices.indexBuffers||{};let s=o[e.id];if(!(0,a.Z)(s)||s.isDestroyed()){const i=t.indices;s=Z.Z.createIndexBuffer({context:e,typedArray:i,usage:g.Z.STATIC_DRAW,indexDatatype:c.Z.fromSizeInBytes(i.BYTES_PER_ELEMENT)}),s.vertexArrayDestroyable=!1,s.referenceCount=1,o[e.id]=s,t.indices.indexBuffers=o}else++s.referenceCount;return new C.Z({context:e,attributes:r,indexBuffer:s})},D._freeVertexArray=function(e){if((0,a.Z)(e)){const t=e.indexBuffer;e.isDestroyed()||e.destroy(),(0,a.Z)(t)&&!t.isDestroyed()&&(0,a.Z)(t.referenceCount)&&(--t.referenceCount,0===t.referenceCount&&t.destroy())}},D.prototype._findAncestorTileWithTerrainData=function(e){let t=e.parent;for(;(0,a.Z)(t)&&(!(0,a.Z)(t.data)||!(0,a.Z)(t.data.terrainData)||t.data.terrainData.wasCreatedByUpsampling());)t=t.parent;return t},D.prototype._computeWaterMaskTranslationAndScale=function(e,t,i){const n=t.rectangle,r=e.rectangle,o=r.width,s=r.height,a=o/n.width,c=s/n.height;return i.x=a*(r.west-n.west)/o,i.y=c*(r.south-n.south)/s,i.z=a,i.w=c,i};const k=D},936552:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Ne});var n=i(360791),r=i(101985),o=i(337968),s=i(919382),a=i(114754),c=i(698907),u=i(556592),l=i(545125),h=i(182934),d=i(307260),f=i(406144),p=i(426468),m=i(54879),_=i(446938),Z=i(197685),g=i(952254),y=i(423035),b=i(546135),A=i(360382),w=i(362017),v=i(583917),T=i(530109),C=i(126874),E=i(610490),x=i(195809),S=i(523501),O=i(974403),I=i(957443),D=i(854948),P=i(137134),R=i(786409),B=i(636807),M=i(50720),L=i(994589),N=i(247913),F=i(842649),k=i(364232),U=i(676311),V=i(451356),z=i(586949),H=i(329286),G=i(93413),q=i(522032),j=i(649479),W=i(578721),K=i(939800),Y=i(437358),X=i(506678),J=i(556198),Q=i(245789),$=i(226948),ee=i(119507),te=i(970941);function ie(e){if(!(0,p.Z)(e))throw new _.Z("options is required.");if(!(0,p.Z)(e.terrainProvider))throw new _.Z("options.terrainProvider is required.");if(!(0,p.Z)(e.imageryLayers))throw new _.Z("options.imageryLayers is required.");if(!(0,p.Z)(e.surfaceShaderSet))throw new _.Z("options.surfaceShaderSet is required.");this.lightingFadeOutDistance=65e5,this.lightingFadeInDistance=9e6,this.hasWaterMask=!1,this.oceanNormalMap=void 0,this.zoomedOutOceanSpecularIntensity=.5,this.enableLighting=!1,this.dynamicAtmosphereLighting=!1,this.dynamicAtmosphereLightingFromSun=!1,this.showGroundAtmosphere=!1,this.shadows=J.Z.RECEIVE_ONLY,this.fillHighlightColor=void 0,this.hueShift=0,this.saturationShift=0,this.brightnessShift=0,this.showSkirts=!0,this.backFaceCulling=!0,this.undergroundColor=void 0,this.undergroundColorAlphaByDistance=void 0,this.lambertDiffuseMultiplier=0,this.materialUniformMap=void 0,this._materialUniformMap=void 0,this._quadtree=void 0,this._terrainProvider=e.terrainProvider,this._imageryLayers=e.imageryLayers,this._surfaceShaderSet=e.surfaceShaderSet,this._renderState=void 0,this._blendRenderState=void 0,this._disableCullingRenderState=void 0,this._disableCullingBlendRenderState=void 0,this._errorEvent=new Z.Z,this._imageryLayers.layerAdded.addEventListener(ie.prototype._onLayerAdded,this),this._imageryLayers.layerRemoved.addEventListener(ie.prototype._onLayerRemoved,this),this._imageryLayers.layerMoved.addEventListener(ie.prototype._onLayerMoved,this),this._imageryLayers.layerShownOrHidden.addEventListener(ie.prototype._onLayerShownOrHidden,this),this._imageryLayersUpdatedEvent=new Z.Z,this._layerOrderChanged=!1,this._tilesToRenderByTextureCount=[],this._drawCommands=[],this._uniformMaps=[],this._usedDrawCommands=0,this._vertexArraysToDestroy=[],this._debug={wireframe:!1,boundingSphereTile:void 0},this._baseColor=void 0,this._firstPassInitialColor=void 0,this.baseColor=new l.Z(0,0,.5,1),this._clippingPlanes=void 0,this.cartographicLimitRectangle=S.Z.clone(S.Z.MAX_VALUE),this._hasLoadedTilesThisFrame=!1,this._hasFillTilesThisFrame=!1,this._oldTerrainExaggeration=void 0,this._oldTerrainExaggerationRelativeHeight=void 0}function ne(e,t){let i=e.loadingImagery;(0,p.Z)(i)||(i=e.readyImagery);let n=t.loadingImagery;return(0,p.Z)(n)||(n=t.readyImagery),i.imageryLayer._layerIndex-n.imageryLayer._layerIndex}function re(e,t){const i=t.globeTranslucencyState;if(i.translucent){const n=e.renderState.blending.enabled;i.pushDerivedCommands(e,n,t)}else t.commandList.push(e)}Object.defineProperties(ie.prototype,{baseColor:{get:function(){return this._baseColor},set:function(e){if(!(0,p.Z)(e))throw new _.Z("value is required.");this._baseColor=e,this._firstPassInitialColor=a.Z.fromColor(e,this._firstPassInitialColor)}},quadtree:{get:function(){return this._quadtree},set:function(e){if(!(0,p.Z)(e))throw new _.Z("value is required.");this._quadtree=e}},ready:{get:function(){return this._terrainProvider.ready&&(0===this._imageryLayers.length||this._imageryLayers.get(0).imageryProvider.ready)}},tilingScheme:{get:function(){return this._terrainProvider.tilingScheme}},errorEvent:{get:function(){return this._errorEvent}},imageryLayersUpdatedEvent:{get:function(){return this._imageryLayersUpdatedEvent}},terrainProvider:{get:function(){return this._terrainProvider},set:function(e){if(this._terrainProvider!==e){if(!(0,p.Z)(e))throw new _.Z("terrainProvider is required.");this._terrainProvider=e,(0,p.Z)(this._quadtree)&&this._quadtree.invalidateAllTiles()}}},clippingPlanes:{get:function(){return this._clippingPlanes},set:function(e){z.Z.setOwner(e,this,"_clippingPlanes")}}}),ie.prototype.update=function(e){this._imageryLayers._update()},ie.prototype.initialize=function(e){this._imageryLayers.queueReprojectionCommands(e),this._layerOrderChanged&&(this._layerOrderChanged=!1,this._quadtree.forEachLoadedTile((function(e){e.data.imagery.sort(ne)}))),function(e,t){const i=t.creditDisplay;e._terrainProvider.ready&&(0,p.Z)(e._terrainProvider.credit)&&i.addCredit(e._terrainProvider.credit);const n=e._imageryLayers;for(let e=0,t=n.length;e<t;++e){const t=n.get(e).imageryProvider;t.ready&&(0,p.Z)(t.credit)&&i.addCredit(t.credit)}}(this,e);const t=this._vertexArraysToDestroy,i=t.length;for(let e=0;e<i;++e)G.Z._freeVertexArray(t[e]);t.length=0},ie.prototype.beginUpdate=function(e){const t=this._tilesToRenderByTextureCount;for(let e=0,i=t.length;e<i;++e){const i=t[e];(0,p.Z)(i)&&(i.length=0)}const i=this._clippingPlanes;(0,p.Z)(i)&&i.enabled&&i.update(e),this._usedDrawCommands=0,this._hasLoadedTilesThisFrame=!1,this._hasFillTilesThisFrame=!1},ie.prototype.endUpdate=function(e){if(!(0,p.Z)(this._renderState)){this._renderState=k.Z.fromCache({cull:{enabled:!0},depthTest:{enabled:!0,func:H.Z.LESS}}),this._blendRenderState=k.Z.fromCache({cull:{enabled:!0},depthTest:{enabled:!0,func:H.Z.LESS_OR_EQUAL},blending:V.Z.ALPHA_BLEND});let e=(0,u.Z)(this._renderState,!0);e.cull.enabled=!1,this._disableCullingRenderState=k.Z.fromCache(e),e=(0,u.Z)(this._blendRenderState,!0),e.cull.enabled=!1,this._disableCullingBlendRenderState=k.Z.fromCache(e)}this._hasFillTilesThisFrame&&this._hasLoadedTilesThisFrame&&Q.Z.updateFillTiles(this,this._quadtree._tilesToRender,e,this._vertexArraysToDestroy);const t=this.quadtree,i=e.terrainExaggeration,n=e.terrainExaggerationRelativeHeight,r=this._oldTerrainExaggeration!==i||this._oldTerrainExaggerationRelativeHeight!==n;this._oldTerrainExaggeration=i,this._oldTerrainExaggerationRelativeHeight=n,r&&t.forEachLoadedTile((function(i){i.data.updateExaggeration(i,e,t)}));const o=this._tilesToRenderByTextureCount;for(let t=0,i=o.length;t<i;++t){const i=o[t];if((0,p.Z)(i))for(let t=0,n=i.length;t<n;++t){const n=i[t],r=n.data.tileBoundingRegion;Le(this,n,e),e.minimumTerrainHeight=Math.min(e.minimumTerrainHeight,r.minimumHeight)}}},ie.prototype.updateForPick=function(e){const t=this._drawCommands;for(let i=0,n=this._usedDrawCommands;i<n;++i)re(t[i],e)},ie.prototype.cancelReprojections=function(){this._imageryLayers.cancelReprojections()},ie.prototype.getLevelMaximumGeometricError=function(e){return this._terrainProvider.getLevelMaximumGeometricError(e)},ie.prototype.loadTile=function(e,t){let i,n=t.data,r=!0;(0,p.Z)(n)&&(r=n.boundingVolumeSourceTile!==t||t._lastSelectionResult===te.Z.CULLED_BUT_NEEDED,i=n.terrainState),G.Z.processStateMachine(t,e,this.terrainProvider,this._imageryLayers,this.quadtree,this._vertexArraysToDestroy,r),n=t.data,r&&i!==t.data.terrainState&&this.computeTileVisibility(t,e,this.quadtree.occluders)!==P.Z.NONE&&n.boundingVolumeSourceTile===t&&(r=!1,G.Z.processStateMachine(t,e,this.terrainProvider,this._imageryLayers,this.quadtree,this._vertexArraysToDestroy,r))};const oe=new n.Z,se=new S.Z,ae=new S.Z,ce=new c.Z;function ue(e,t){if(t.west<t.east)return t;const i=S.Z.clone(t,ae);return S.Z.center(e,ce).longitude>0?i.east=w.Z.PI:i.west=-w.Z.PI,i}function le(e,t){if(t.cameraUnderground)return!0;if(t.globeTranslucencyState.translucent)return!0;if(e.backFaceCulling)return!1;const i=e._clippingPlanes;return!(!(0,p.Z)(i)||!i.enabled)||!S.Z.equals(e.cartographicLimitRectangle,S.Z.MAX_VALUE)}ie.prototype.computeTileVisibility=function(e,t,i){const r=this.computeDistanceToTile(e,t);e._distance=r;const o=le(this,t);if(t.fog.enabled&&!o&&w.Z.fog(r,t.fog.density)>=1)return P.Z.NONE;const a=e.data,c=a.tileBoundingRegion;if(void 0===a.boundingVolumeSourceTile)return P.Z.PARTIAL;const u=t.cullingVolume;let l=c.boundingVolume;(0,p.Z)(l)||(l=c.boundingSphere),a.clippedByBoundaries=!1;const h=ue(e.rectangle,this.cartographicLimitRectangle),d=S.Z.simpleIntersection(h,e.rectangle,se);if(!(0,p.Z)(d))return P.Z.NONE;if(S.Z.equals(d,e.rectangle)||(a.clippedByBoundaries=!0),t.mode!==X.Z.SCENE3D&&(l=oe,n.Z.fromRectangleWithHeights2D(e.rectangle,t.mapProjection,c.minimumHeight,c.maximumHeight,l),s.Z.fromElements(l.center.z,l.center.x,l.center.y,l.center),t.mode===X.Z.MORPHING&&(0,p.Z)(a.renderedMesh)&&(l=n.Z.union(c.boundingSphere,l,l))),!(0,p.Z)(l))return P.Z.PARTIAL;const f=this._clippingPlanes;if((0,p.Z)(f)&&f.enabled){const t=f.computeIntersectionWithBoundingVolume(l);if(e.isClipped=t!==A.Z.INSIDE,t===A.Z.OUTSIDE)return P.Z.NONE}let m;const _=u.computeVisibility(l);if(_===A.Z.OUTSIDE?m=P.Z.NONE:_===A.Z.INTERSECTING?m=P.Z.PARTIAL:_===A.Z.INSIDE&&(m=P.Z.FULL),m===P.Z.NONE)return m;const Z=t.mode===X.Z.SCENE3D&&t.camera.frustum instanceof E.Z;if(t.mode===X.Z.SCENE3D&&!Z&&(0,p.Z)(i)&&!o){const e=a.occludeePointInScaledSpace;return(0,p.Z)(e)?i.ellipsoid.isScaledSpacePointVisiblePossiblyUnderEllipsoid(e,c.minimumHeight)?m:P.Z.NONE:m}return m},ie.prototype.canRefine=function(e){return!!(0,p.Z)(e.data.terrainData)||void 0!==this.terrainProvider.getTileDataAvailable(2*e.x,2*e.y,e.level+1)};const he=[],de=[];ie.prototype.canRenderWithoutLosingDetail=function(e,t){const i=e.data,n=he;n.length=this._imageryLayers.length;let r,o,s,a=!1,c=!1;for((0,p.Z)(i)&&(a=i.terrainState===$.Z.READY,c=!0,r=i.imagery),o=0,s=n.length;o<s;++o)n[o]=c;if((0,p.Z)(r))for(o=0,s=r.length;o<s;++o){const e=r[o],t=e.loadingImagery,i=!(0,p.Z)(t)||t.state===j.Z.FAILED||t.state===j.Z.INVALID,s=(e.loadingImagery||e.readyImagery).imageryLayer._layerIndex;n[s]=i&&n[s]}const u=this.quadtree._lastSelectionFrameNumber,l=de;for(l.length=0,l.push(e.southwestChild,e.southeastChild,e.northwestChild,e.northeastChild);l.length>0;){const e=l.pop(),t=e._lastSelectionResultFrame===u?e._lastSelectionResult:te.Z.NONE;if(t===te.Z.RENDERED){const t=e.data;if(!(0,p.Z)(t))continue;if(!a&&e.data.terrainState===$.Z.READY)return!1;const i=e.data.imagery;for(o=0,s=i.length;o<s;++o){const e=i[o],t=e.loadingImagery,r=!(0,p.Z)(t)||t.state===j.Z.FAILED||t.state===j.Z.INVALID,s=(e.loadingImagery||e.readyImagery).imageryLayer._layerIndex;if(r&&!n[s])return!1}}else t===te.Z.REFINED&&l.push(e.southwestChild,e.southeastChild,e.northwestChild,e.northeastChild)}return!0};const fe=new s.Z;ie.prototype.computeTileLoadPriority=function(e,t){const i=e.data;if(void 0===i)return 0;const n=i.tileBoundingRegion.boundingVolume;if(void 0===n)return 0;const r=t.camera.positionWC,o=t.camera.directionWC,a=s.Z.subtract(n.center,r,fe),c=s.Z.magnitude(a);return c<w.Z.EPSILON5?0:(s.Z.divideByScalar(a,c,a),(1-s.Z.dot(a,o))*e._distance)};const pe=new v.Z,me=new v.Z,_e=new a.Z,Ze=new a.Z,ge=new a.Z,ye=new s.Z,be=new s.Z,Ae=new s.Z,we=new s.Z;ie.prototype.showTileThisFrame=function(e,t){let i=0;const n=e.data.imagery;for(let e=0,t=n.length;e<t;++e){const t=n[e];(0,p.Z)(t.readyImagery)&&0!==t.readyImagery.imageryLayer.alpha&&++i}let r=this._tilesToRenderByTextureCount[i];(0,p.Z)(r)||(r=[],this._tilesToRenderByTextureCount[i]=r),r.push(e);const o=e.data;(0,p.Z)(o.vertexArray)?this._hasLoadedTilesThisFrame=!0:this._hasFillTilesThisFrame=!0;const s=this._debug;++s.tilesRendered,s.texturesRendered+=i};const ve=[new s.Z,new s.Z,new s.Z,new s.Z];function Te(e,t,i,n,r,o){const a=e.quadtree._occluders.ellipsoid,c=a.ellipsoid,u=ve;return s.Z.fromRadians(i.west,i.south,r,c,u[0]),s.Z.fromRadians(i.east,i.south,r,c,u[1]),s.Z.fromRadians(i.west,i.north,r,c,u[2]),s.Z.fromRadians(i.east,i.north,r,c,u[3]),a.computeHorizonCullingPointPossiblyUnderEllipsoid(t,u,n,o)}ie.prototype.computeDistanceToTile=function(e,t){!function(e,t,i){let r=e.data;void 0===r&&(r=e.data=new G.Z);const o=e.tilingScheme.ellipsoid;void 0===r.tileBoundingRegion&&(r.tileBoundingRegion=new ee.Z({computeBoundingVolumes:!1,rectangle:e.rectangle,ellipsoid:o,minimumHeight:0,maximumHeight:0}));const a=r.tileBoundingRegion,c=a.minimumHeight,u=a.maximumHeight;let l=!1,h=e;const d=r.mesh,f=r.terrainData;if(void 0!==d&&void 0!==d.minimumHeight&&void 0!==d.maximumHeight)a.minimumHeight=d.minimumHeight,a.maximumHeight=d.maximumHeight,l=!0;else if(void 0!==f&&void 0!==f._minimumHeight&&void 0!==f._maximumHeight)a.minimumHeight=f._minimumHeight,a.maximumHeight=f._maximumHeight;else{a.minimumHeight=Number.NaN,a.maximumHeight=Number.NaN;let t=e.parent;for(;void 0!==t;){const e=t.data;if(void 0!==e){const t=e.mesh,i=e.terrainData;if(void 0!==t&&void 0!==t.minimumHeight&&void 0!==t.maximumHeight){a.minimumHeight=t.minimumHeight,a.maximumHeight=t.maximumHeight;break}if(void 0!==i&&void 0!==i._minimumHeight&&void 0!==i._maximumHeight){a.minimumHeight=i._minimumHeight,a.maximumHeight=i._maximumHeight;break}}t=t.parent}h=t}if(void 0!==h){const f=i.terrainExaggeration,m=i.terrainExaggerationRelativeHeight;if(1!==f&&(l=!1,a.minimumHeight=I.Z.getHeight(a.minimumHeight,f,m),a.maximumHeight=I.Z.getHeight(a.maximumHeight,f,m)),l)r.boundingVolumeIsFromMesh||(a._orientedBoundingBox=C.Z.clone(d.orientedBoundingBox,a._orientedBoundingBox),a._boundingSphere=n.Z.clone(d.boundingSphere3D,a._boundingSphere),r.occludeePointInScaledSpace=s.Z.clone(d.occludeePointInScaledSpace,r.occludeePointInScaledSpace),(0,p.Z)(r.occludeePointInScaledSpace)||(r.occludeePointInScaledSpace=Te(t,a._orientedBoundingBox.center,e.rectangle,a.minimumHeight,a.maximumHeight,r.occludeePointInScaledSpace)));else{const i=void 0===a._orientedBoundingBox||void 0===a._boundingSphere;(a.minimumHeight!==c||a.maximumHeight!==u||i)&&(a.computeBoundingVolumes(o),r.occludeePointInScaledSpace=Te(t,a._orientedBoundingBox.center,e.rectangle,a.minimumHeight,a.maximumHeight,r.occludeePointInScaledSpace))}r.boundingVolumeSourceTile=h,r.boundingVolumeIsFromMesh=l}else r.boundingVolumeSourceTile=void 0,r.boundingVolumeIsFromMesh=!1}(e,this,t);const i=e.data;if(void 0===i.boundingVolumeSourceTile)return 9999999999;const r=i.tileBoundingRegion,o=r.minimumHeight,a=r.maximumHeight;if(i.boundingVolumeSourceTile!==e){const e=t.camera.positionCartographic.height;Math.abs(e-o)>Math.abs(e-a)?(r.minimumHeight=o,r.maximumHeight=o):(r.minimumHeight=a,r.maximumHeight=a)}const c=r.distanceToCamera(t);return r.minimumHeight=o,r.maximumHeight=a,c},ie.prototype.isDestroyed=function(){return!1},ie.prototype.destroy=function(){return this._tileProvider=this._tileProvider&&this._tileProvider.destroy(),this._clippingPlanes=this._clippingPlanes&&this._clippingPlanes.destroy(),(0,m.Z)(this)},ie.prototype._onLayerAdded=function(e,t){if(e.show){const t=this._terrainProvider,i=this,n=e.imageryProvider,r=this._imageryLayersUpdatedEvent;n._reload=function(){e._imageryCache={},i._quadtree.forEachLoadedTile((function(i){if((0,p.Z)(i._loadedCallbacks[e._layerIndex]))return;let n;const r=i.data.imagery,o=r.length;let s=-1,a=0;for(n=0;n<o;++n){const t=r[n];if((0,f.Z)(t.readyImagery,t.loadingImagery).imageryLayer===e)-1===s&&(s=n),++a;else if(-1!==s)break}if(-1===s)return;const c=s+a;e._createTileImagerySkeletons(i,t,c)&&(i._loadedCallbacks[e._layerIndex]=function(e,t,i){return function(n){let r,o,s=-1;const a=n.data.imagery,c=a.length;let u;for(u=0;u<c;++u)if(r=a[u],o=(0,f.Z)(r.readyImagery,r.loadingImagery),o.imageryLayer===t){s=u;break}if(-1!==s){const c=s+e;if(r=a[c],o=(0,p.Z)(r)?(0,f.Z)(r.readyImagery,r.loadingImagery):void 0,!(0,p.Z)(o)||o.imageryLayer!==t)return!t._createTileImagerySkeletons(n,i,c);for(u=s;u<c;++u)a[u].freeResources();a.splice(s,e)}return!0}}(a,e,t),i.state=Y.Z.LOADING)}))},this._quadtree.forEachLoadedTile((function(n){e._createTileImagerySkeletons(n,t)&&(n.state=Y.Z.LOADING,0===n.level||n._lastSelectionResultFrame===i.quadtree._lastSelectionFrameNumber&&n._lastSelectionResult===te.Z.RENDERED||(n.renderable=!1))})),this._layerOrderChanged=!0,r.raiseEvent()}},ie.prototype._onLayerRemoved=function(e,t){this._quadtree.forEachLoadedTile((function(t){const i=t.data.imagery;let n=-1,r=0;for(let t=0,o=i.length;t<o;++t){const o=i[t];let s=o.loadingImagery;if((0,p.Z)(s)||(s=o.readyImagery),s.imageryLayer===e)-1===n&&(n=t),o.freeResources(),++r;else if(-1!==n)break}-1!==n&&i.splice(n,r)})),(0,p.Z)(e.imageryProvider)&&(e.imageryProvider._reload=void 0),this._imageryLayersUpdatedEvent.raiseEvent()},ie.prototype._onLayerMoved=function(e,t,i){this._layerOrderChanged=!0,this._imageryLayersUpdatedEvent.raiseEvent()},ie.prototype._onLayerShownOrHidden=function(e,t,i){i?this._onLayerAdded(e,t):this._onLayerRemoved(e,t)};const Ce=new v.Z,Ee=new v.Z;function xe(e,t){const i={u_initialColor:function(){return this.properties.initialColor},u_fillHighlightColor:function(){return this.properties.fillHighlightColor},u_zoomedOutOceanSpecularIntensity:function(){return this.properties.zoomedOutOceanSpecularIntensity},u_oceanNormalMap:function(){return this.properties.oceanNormalMap},u_lightingFadeDistance:function(){return this.properties.lightingFadeDistance},u_nightFadeDistance:function(){return this.properties.nightFadeDistance},u_center3D:function(){return this.properties.center3D},u_terrainExaggerationAndRelativeHeight:function(){return this.properties.terrainExaggerationAndRelativeHeight},u_tileRectangle:function(){return this.properties.tileRectangle},u_modifiedModelView:function(){const t=e.context.uniformState.view,i=v.Z.multiplyByPoint(t,this.properties.rtc,be);return v.Z.setTranslation(t,i,pe),pe},u_modifiedModelViewProjection:function(){const t=e.context.uniformState.view,i=e.context.uniformState.projection,n=v.Z.multiplyByPoint(t,this.properties.rtc,be);return v.Z.setTranslation(t,n,me),v.Z.multiply(i,me,me),me},u_dayTextures:function(){return this.properties.dayTextures},u_dayTextureTranslationAndScale:function(){return this.properties.dayTextureTranslationAndScale},u_dayTextureTexCoordsRectangle:function(){return this.properties.dayTextureTexCoordsRectangle},u_dayTextureUseWebMercatorT:function(){return this.properties.dayTextureUseWebMercatorT},u_dayTextureAlpha:function(){return this.properties.dayTextureAlpha},u_dayTextureNightAlpha:function(){return this.properties.dayTextureNightAlpha},u_dayTextureDayAlpha:function(){return this.properties.dayTextureDayAlpha},u_dayTextureBrightness:function(){return this.properties.dayTextureBrightness},u_dayTextureContrast:function(){return this.properties.dayTextureContrast},u_dayTextureHue:function(){return this.properties.dayTextureHue},u_dayTextureSaturation:function(){return this.properties.dayTextureSaturation},u_dayTextureOneOverGamma:function(){return this.properties.dayTextureOneOverGamma},u_dayIntensity:function(){return this.properties.dayIntensity},u_southAndNorthLatitude:function(){return this.properties.southAndNorthLatitude},u_southMercatorYAndOneOverHeight:function(){return this.properties.southMercatorYAndOneOverHeight},u_waterMask:function(){return this.properties.waterMask},u_waterMaskTranslationAndScale:function(){return this.properties.waterMaskTranslationAndScale},u_minMaxHeight:function(){return this.properties.minMaxHeight},u_scaleAndBias:function(){return this.properties.scaleAndBias},u_dayTextureSplit:function(){return this.properties.dayTextureSplit},u_dayTextureCutoutRectangles:function(){return this.properties.dayTextureCutoutRectangles},u_clippingPlanes:function(){const i=t._clippingPlanes;return(0,p.Z)(i)&&(0,p.Z)(i.texture)?i.texture:e.context.defaultTexture},u_cartographicLimitRectangle:function(){return this.properties.localizedCartographicLimitRectangle},u_clippingPlanesMatrix:function(){const i=t._clippingPlanes,n=(0,p.Z)(i)?v.Z.multiply(e.context.uniformState.view,i.modelMatrix,Ce):v.Z.IDENTITY;return v.Z.inverseTranspose(n,Ee)},u_clippingPlanesEdgeStyle:function(){const e=this.properties.clippingPlanesEdgeColor;return e.alpha=this.properties.clippingPlanesEdgeWidth,e},u_minimumBrightness:function(){return e.fog.minimumBrightness},u_hsbShift:function(){return this.properties.hsbShift},u_colorsToAlpha:function(){return this.properties.colorsToAlpha},u_frontFaceAlphaByDistance:function(){return this.properties.frontFaceAlphaByDistance},u_backFaceAlphaByDistance:function(){return this.properties.backFaceAlphaByDistance},u_translucencyRectangle:function(){return this.properties.localizedTranslucencyRectangle},u_undergroundColor:function(){return this.properties.undergroundColor},u_undergroundColorAlphaByDistance:function(){return this.properties.undergroundColorAlphaByDistance},u_lambertDiffuseMultiplier:function(){return this.properties.lambertDiffuseMultiplier},properties:{initialColor:new a.Z(0,0,.5,1),fillHighlightColor:new l.Z(0,0,0,0),zoomedOutOceanSpecularIntensity:.5,oceanNormalMap:void 0,lightingFadeDistance:new o.Z(65e5,9e6),nightFadeDistance:new o.Z(1e7,4e7),hsbShift:new s.Z,center3D:void 0,rtc:new s.Z,modifiedModelView:new v.Z,tileRectangle:new a.Z,terrainExaggerationAndRelativeHeight:new o.Z(1,0),dayTextures:[],dayTextureTranslationAndScale:[],dayTextureTexCoordsRectangle:[],dayTextureUseWebMercatorT:[],dayTextureAlpha:[],dayTextureNightAlpha:[],dayTextureDayAlpha:[],dayTextureBrightness:[],dayTextureContrast:[],dayTextureHue:[],dayTextureSaturation:[],dayTextureOneOverGamma:[],dayTextureSplit:[],dayTextureCutoutRectangles:[],dayIntensity:0,colorsToAlpha:[],southAndNorthLatitude:new o.Z,southMercatorYAndOneOverHeight:new o.Z,waterMask:void 0,waterMaskTranslationAndScale:new a.Z,minMaxHeight:new o.Z,scaleAndBias:new v.Z,clippingPlanesEdgeColor:l.Z.clone(l.Z.WHITE),clippingPlanesEdgeWidth:0,localizedCartographicLimitRectangle:new a.Z,frontFaceAlphaByDistance:new a.Z,backFaceAlphaByDistance:new a.Z,localizedTranslucencyRectangle:new a.Z,undergroundColor:l.Z.clone(l.Z.TRANSPARENT),undergroundColorAlphaByDistance:new a.Z,lambertDiffuseMultiplier:0}};return(0,p.Z)(t.materialUniformMap)?(0,d.Z)(i,t.materialUniformMap):i}function Se(e,t,i){const n=i.data;let r,o;if((0,p.Z)(n.vertexArray)?(r=n.mesh,o=n.vertexArray):(0,p.Z)(n.fill)&&(0,p.Z)(n.fill.vertexArray)&&(r=n.fill.mesh,o=n.fill.vertexArray),(0,p.Z)(r)&&(0,p.Z)(o)){if((0,p.Z)(n.wireframeVertexArray)){if(n.wireframeVertexArray.mesh===r)return;n.wireframeVertexArray.destroy(),n.wireframeVertexArray=void 0}n.wireframeVertexArray=function(e,t,i){const n={indices:i.indices,primitiveType:x.Z.TRIANGLES};y.Z.toWireframe(n);const r=n.indices,o=B.Z.createIndexBuffer({context:e,typedArray:r,usage:M.Z.STATIC_DRAW,indexDatatype:b.Z.fromSizeInBytes(r.BYTES_PER_ELEMENT)});return new U.Z({context:e,attributes:t._attributes,indexBuffer:o})}(e,o,r),n.wireframeVertexArray.mesh=r}}let Oe,Ie,De;!function(){const e=new g.Z({geometry:r.Z.fromDimensions({dimensions:new s.Z(2,2,2)})}),t=new g.Z({geometry:new O.Z({radius:1})});let i,n,o=new v.Z;function a(e){return new K.Z({geometryInstances:e,appearance:new W.Z({translucent:!1,flat:!0}),asynchronous:!1})}Oe=function(t,r){return t===i||(De(),i=t,o=v.Z.fromRotationTranslation(t.halfAxes,t.center,o),e.modelMatrix=o,e.attributes.color=h.Z.fromColor(r),n=a(e)),n},Ie=function(e,r){return e===i||(De(),i=e,o=v.Z.fromTranslation(e.center,o),o=v.Z.multiplyByUniformScale(o,e.radius,o),t.modelMatrix=o,t.attributes.color=h.Z.fromColor(r),n=a(t)),n},De=function(){(0,p.Z)(n)&&(n.destroy(),n=void 0,i=void 0)}}();const Pe=new a.Z(0,0,0,0),Re={frameState:void 0,surfaceTile:void 0,numberOfDayTextures:void 0,applyBrightness:void 0,applyContrast:void 0,applyHue:void 0,applySaturation:void 0,applyGamma:void 0,applyAlpha:void 0,applyDayNightAlpha:void 0,applySplit:void 0,showReflectiveOcean:void 0,showOceanWaves:void 0,enableLighting:void 0,dynamicAtmosphereLighting:void 0,dynamicAtmosphereLightingFromSun:void 0,showGroundAtmosphere:void 0,perFragmentGroundAtmosphere:void 0,hasVertexNormals:void 0,useWebMercatorProjection:void 0,enableFog:void 0,enableClippingPlanes:void 0,clippingPlanes:void 0,clippedByBoundaries:void 0,hasImageryLayerCutout:void 0,colorCorrect:void 0,colorToAlpha:void 0,hasGeodeticSurfaceNormals:void 0,hasExaggeration:void 0},Be=l.Z.TRANSPARENT,Me=new T.Z;function Le(e,t,i){const r=t.data;(0,p.Z)(r.vertexArray)||(void 0===r.fill&&(r.fill=new Q.Z(t)),r.fill.update(e,i));const o=i.creditDisplay,c=r.terrainData;if((0,p.Z)(c)&&(0,p.Z)(c.credits)){const e=c.credits;for(let t=0,i=e.length;t<i;++t)o.addCredit(e[t])}let u=L.Z.maximumTextureImageUnits,h=r.waterMaskTexture,d=r.waterMaskTranslationAndScale;!(0,p.Z)(h)&&(0,p.Z)(r.fill)&&(h=r.fill.waterMaskTexture,d=r.fill.waterMaskTranslationAndScale);const m=i.cameraUnderground,Z=i.globeTranslucencyState,g=Z.translucent,y=Z.frontFaceAlphaByDistance,b=Z.backFaceAlphaByDistance,A=Z.rectangle,T=(0,f.Z)(e.undergroundColor,Be),E=(0,f.Z)(e.undergroundColorAlphaByDistance,Me),O=le(e,i)&&i.mode===X.Z.SCENE3D&&T.alpha>0&&(E.nearValue>0||E.farValue>0),I=e.lambertDiffuseMultiplier,P=e.hasWaterMask&&(0,p.Z)(h),B=e.oceanNormalMap,M=P&&(0,p.Z)(B),k=e.terrainProvider.ready&&e.terrainProvider.hasVertexNormals,U=i.fog.enabled&&!m,V=e.showGroundAtmosphere&&i.mode===X.Z.SCENE3D,z=J.Z.castShadows(e.shadows)&&!g,H=J.Z.receiveShadows(e.shadows)&&!g,G=e.hueShift,j=e.saturationShift,W=e.brightnessShift;let K=!(w.Z.equalsEpsilon(G,0,w.Z.EPSILON7)&&w.Z.equalsEpsilon(j,0,w.Z.EPSILON7)&&w.Z.equalsEpsilon(W,0,w.Z.EPSILON7)),Y=!1;V&&(Y=s.Z.magnitude(i.camera.positionWC)>e.nightFadeOutDistance),P&&--u,M&&--u,(0,p.Z)(i.shadowState)&&i.shadowState.shadowsEnabled&&--u,(0,p.Z)(e.clippingPlanes)&&e.clippingPlanes.enabled&&--u,u-=Z.numberOfTextureUniforms;const $=r.renderedMesh;let ee=$.center;const te=$.encoding,ie=r.tileBoundingRegion,ne=i.terrainExaggeration,oe=i.terrainExaggerationRelativeHeight,ae=1!==ne,ce=te.hasGeodeticSurfaceNormals,he=_e;let de=0,fe=0,pe=0,me=0,be=!1;if(i.mode!==X.Z.SCENE3D){const e=i.mapProjection,n=e.project(S.Z.southwest(t.rectangle),Ae),r=e.project(S.Z.northeast(t.rectangle),we);if(he.x=n.x,he.y=n.y,he.z=r.x,he.w=r.y,i.mode!==X.Z.MORPHING&&(ee=ye,ee.x=0,ee.y=.5*(he.z+he.x),ee.z=.5*(he.w+he.y),he.x-=ee.y,he.y-=ee.z,he.z-=ee.y,he.w-=ee.z),i.mode===X.Z.SCENE2D&&te.quantization===D.Z.BITS12){const e=1/(Math.pow(2,12)-1)*.5,t=(he.z-he.x)*e,i=(he.w-he.y)*e;he.x-=t,he.y-=i,he.z+=t,he.w+=i}e instanceof R.Z&&(de=t.rectangle.south,fe=t.rectangle.north,pe=R.Z.geodeticLatitudeToMercatorAngle(de),me=1/(R.Z.geodeticLatitudeToMercatorAngle(fe)-pe),be=!0)}const ve=Re;ve.frameState=i,ve.surfaceTile=r,ve.showReflectiveOcean=P,ve.showOceanWaves=M,ve.enableLighting=e.enableLighting,ve.dynamicAtmosphereLighting=e.dynamicAtmosphereLighting,ve.dynamicAtmosphereLightingFromSun=e.dynamicAtmosphereLightingFromSun,ve.showGroundAtmosphere=V,ve.perFragmentGroundAtmosphere=Y,ve.hasVertexNormals=k,ve.useWebMercatorProjection=be,ve.clippedByBoundaries=r.clippedByBoundaries,ve.hasGeodeticSurfaceNormals=ce,ve.hasExaggeration=ae;const Te=r.imagery;let Ce=0;const Ee=Te.length,Le=e.showSkirts&&!m&&!g,Ne=e.backFaceCulling&&!m&&!g,Fe=Ne?e._renderState:e._disableCullingRenderState,ke=Ne?e._blendRenderState:e._disableCullingBlendRenderState;let Ue=Fe,Ve=e._firstPassInitialColor;const ze=i.context;if((0,p.Z)(e._debug.boundingSphereTile)||De(),e._materialUniformMap!==e.materialUniformMap){e._materialUniformMap=e.materialUniformMap;const t=e._drawCommands.length;for(let n=0;n<t;++n)e._uniformMaps[n]=xe(i,e)}do{let c,f,D=0;if(e._drawCommands.length<=e._usedDrawCommands?(c=new N.Z,c.owner=t,c.cull=!1,c.boundingVolume=new n.Z,c.orientedBoundingBox=void 0,f=xe(i,e),e._drawCommands.push(c),e._uniformMaps.push(f)):(c=e._drawCommands[e._usedDrawCommands],f=e._uniformMaps[e._usedDrawCommands]),c.owner=t,++e._usedDrawCommands,t===e._debug.boundingSphereTile){const e=ie.boundingVolume,t=ie.boundingSphere;(0,p.Z)(e)?Oe(e,l.Z.RED).update(i):(0,p.Z)(t)&&Ie(t,l.Z.RED).update(i)}const P=f.properties;a.Z.clone(Ve,P.initialColor),P.oceanNormalMap=B,P.lightingFadeDistance.x=e.lightingFadeOutDistance,P.lightingFadeDistance.y=e.lightingFadeInDistance,P.nightFadeDistance.x=e.nightFadeOutDistance,P.nightFadeDistance.y=e.nightFadeInDistance,P.zoomedOutOceanSpecularIntensity=e.zoomedOutOceanSpecularIntensity;const R=m?b:y,M=m?y:b;(0,p.Z)(R)&&(a.Z.fromElements(R.near,R.nearValue,R.far,R.farValue,P.frontFaceAlphaByDistance),a.Z.fromElements(M.near,M.nearValue,M.far,M.farValue,P.backFaceAlphaByDistance)),a.Z.fromElements(E.near,E.nearValue,E.far,E.farValue,P.undergroundColorAlphaByDistance),l.Z.clone(T,P.undergroundColor),P.lambertDiffuseMultiplier=I;const L=!(0,p.Z)(r.vertexArray)&&(0,p.Z)(e.fillHighlightColor)&&e.fillHighlightColor.alpha>0;L&&l.Z.clone(e.fillHighlightColor,P.fillHighlightColor),P.terrainExaggerationAndRelativeHeight.x=ne,P.terrainExaggerationAndRelativeHeight.y=oe,P.center3D=$.center,s.Z.clone(ee,P.rtc),a.Z.clone(he,P.tileRectangle),P.southAndNorthLatitude.x=de,P.southAndNorthLatitude.y=fe,P.southMercatorYAndOneOverHeight.x=pe,P.southMercatorYAndOneOverHeight.y=me;const k=Ze,Y=ue(t.rectangle,e.cartographicLimitRectangle),J=ge,Q=ue(t.rectangle,A);s.Z.fromElements(G,j,W,P.hsbShift);const ae=t.rectangle,ce=1/ae.width,le=1/ae.height;k.x=(Y.west-ae.west)*ce,k.y=(Y.south-ae.south)*le,k.z=(Y.east-ae.west)*ce,k.w=(Y.north-ae.south)*le,a.Z.clone(k,P.localizedCartographicLimitRectangle),J.x=(Q.west-ae.west)*ce,J.y=(Q.south-ae.south)*le,J.z=(Q.east-ae.west)*ce,J.w=(Q.north-ae.south)*le,a.Z.clone(J,P.localizedTranslucencyRectangle);const _e=U&&w.Z.fog(t._distance,i.fog.density)>w.Z.EPSILON3;K=K&&(_e||V);let ye=!1,be=!1,Ae=!1,we=!1,De=!1,Re=!1,Be=!1,Me=!1,Ne=!1,Fe=!1;for(;D<u&&Ce<Ee;){const e=Te[Ce],i=e.readyImagery;if(++Ce,!(0,p.Z)(i)||0===i.imageryLayer.alpha)continue;const n=e.useWebMercatorT?i.textureWebMercator:i.texture;if(!(0,p.Z)(n))throw new _.Z("readyImagery is not actually ready!");const r=i.imageryLayer;(0,p.Z)(e.textureTranslationAndScale)||(e.textureTranslationAndScale=r._calculateTextureTranslationAndScale(t,e)),P.dayTextures[D]=n,P.dayTextureTranslationAndScale[D]=e.textureTranslationAndScale,P.dayTextureTexCoordsRectangle[D]=e.textureCoordinateRectangle,P.dayTextureUseWebMercatorT[D]=e.useWebMercatorT,P.dayTextureAlpha[D]=r.alpha,Re=Re||1!==P.dayTextureAlpha[D],P.dayTextureNightAlpha[D]=r.nightAlpha,Be=Be||1!==P.dayTextureNightAlpha[D],P.dayTextureDayAlpha[D]=r.dayAlpha,Be=Be||1!==P.dayTextureDayAlpha[D],P.dayTextureBrightness[D]=r.brightness,ye=ye||P.dayTextureBrightness[D]!==q.Z.DEFAULT_BRIGHTNESS,P.dayTextureContrast[D]=r.contrast,be=be||P.dayTextureContrast[D]!==q.Z.DEFAULT_CONTRAST,P.dayTextureHue[D]=r.hue,Ae=Ae||P.dayTextureHue[D]!==q.Z.DEFAULT_HUE,P.dayTextureSaturation[D]=r.saturation,we=we||P.dayTextureSaturation[D]!==q.Z.DEFAULT_SATURATION,P.dayTextureOneOverGamma[D]=1/r.gamma,De=De||P.dayTextureOneOverGamma[D]!==1/q.Z.DEFAULT_GAMMA,P.dayTextureSplit[D]=r.splitDirection,Me=Me||0!==P.dayTextureSplit[D];let s=P.dayTextureCutoutRectangles[D];if((0,p.Z)(s)||(s=P.dayTextureCutoutRectangles[D]=new a.Z),a.Z.clone(a.Z.ZERO,s),(0,p.Z)(r.cutoutRectangle)){const e=ue(ae,r.cutoutRectangle),t=S.Z.simpleIntersection(e,ae,se);Ne=(0,p.Z)(t)||Ne,s.x=(e.west-ae.west)*ce,s.y=(e.south-ae.south)*le,s.z=(e.east-ae.west)*ce,s.w=(e.north-ae.south)*le}let c=P.colorsToAlpha[D];(0,p.Z)(c)||(c=P.colorsToAlpha[D]=new a.Z);const u=(0,p.Z)(r.colorToAlpha)&&r.colorToAlphaThreshold>0;if(Fe=Fe||u,u){const e=r.colorToAlpha;c.x=e.red,c.y=e.green,c.z=e.blue,c.w=r.colorToAlphaThreshold}else c.w=-1;if((0,p.Z)(i.credits)){const e=i.credits;for(let t=0,i=e.length;t<i;++t)o.addCredit(e[t])}++D}P.dayTextures.length=D,P.waterMask=h,a.Z.clone(d,P.waterMaskTranslationAndScale),P.minMaxHeight.x=te.minimumHeight,P.minMaxHeight.y=te.maximumHeight,v.Z.clone(te.matrix,P.scaleAndBias);const He=e._clippingPlanes,Ge=(0,p.Z)(He)&&He.enabled&&t.isClipped;Ge&&(P.clippingPlanesEdgeColor=l.Z.clone(He.edgeColor,P.clippingPlanesEdgeColor),P.clippingPlanesEdgeWidth=He.edgeWidth),ve.numberOfDayTextures=D,ve.applyBrightness=ye,ve.applyContrast=be,ve.applyHue=Ae,ve.applySaturation=we,ve.applyGamma=De,ve.applyAlpha=Re,ve.applyDayNightAlpha=Be,ve.applySplit=Me,ve.enableFog=_e,ve.enableClippingPlanes=Ge,ve.clippingPlanes=He,ve.hasImageryLayerCutout=Ne,ve.colorCorrect=K,ve.highlightFillTile=L,ve.colorToAlpha=Fe,ve.showUndergroundColor=O,ve.translucent=g;let qe=r.renderedMesh.indices.length;Le||(qe=r.renderedMesh.indexCountWithoutSkirts),c.shaderProgram=e._surfaceShaderSet.getShaderProgram(ve),c.castShadows=z,c.receiveShadows=H,c.renderState=Ue,c.primitiveType=x.Z.TRIANGLES,c.vertexArray=r.vertexArray||r.fill.vertexArray,c.count=qe,c.uniformMap=f,c.pass=F.Z.GLOBE,e._debug.wireframe&&(Se(ze,0,t),(0,p.Z)(r.wireframeVertexArray)&&(c.vertexArray=r.wireframeVertexArray,c.primitiveType=x.Z.LINES,c.count=2*qe));let je=c.boundingVolume;const We=c.orientedBoundingBox;i.mode!==X.Z.SCENE3D?(n.Z.fromRectangleWithHeights2D(t.rectangle,i.mapProjection,ie.minimumHeight,ie.maximumHeight,je),s.Z.fromElements(je.center.z,je.center.x,je.center.y,je.center),i.mode===X.Z.MORPHING&&(je=n.Z.union(ie.boundingSphere,je,je))):(c.boundingVolume=n.Z.clone(ie.boundingSphere,je),c.orientedBoundingBox=C.Z.clone(ie.boundingVolume,We)),c.dirty=!0,g&&Z.updateDerivedCommands(c,i),re(c,i),Ue=ke,Ve=Pe}while(Ce<Ee)}const Ne=ie},926625:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(357299),r=i(426468),o=i(446938),s=i(530109),a=i(523501);function c(){this._enabled=!1,this._frontFaceAlpha=1,this._frontFaceAlphaByDistance=void 0,this._backFaceAlpha=1,this._backFaceAlphaByDistance=void 0,this._rectangle=a.Z.clone(a.Z.MAX_VALUE)}Object.defineProperties(c.prototype,{enabled:{get:function(){return this._enabled},set:function(e){n.Z.typeOf.bool("enabled",e),this._enabled=e}},frontFaceAlpha:{get:function(){return this._frontFaceAlpha},set:function(e){n.Z.typeOf.number.greaterThanOrEquals("frontFaceAlpha",e,0),n.Z.typeOf.number.lessThanOrEquals("frontFaceAlpha",e,1),this._frontFaceAlpha=e}},frontFaceAlphaByDistance:{get:function(){return this._frontFaceAlphaByDistance},set:function(e){if((0,r.Z)(e)&&e.far<e.near)throw new o.Z("far distance must be greater than near distance.");this._frontFaceAlphaByDistance=s.Z.clone(e,this._frontFaceAlphaByDistance)}},backFaceAlpha:{get:function(){return this._backFaceAlpha},set:function(e){n.Z.typeOf.number.greaterThanOrEquals("backFaceAlpha",e,0),n.Z.typeOf.number.lessThanOrEquals("backFaceAlpha",e,1),this._backFaceAlpha=e}},backFaceAlphaByDistance:{get:function(){return this._backFaceAlphaByDistance},set:function(e){if((0,r.Z)(e)&&e.far<e.near)throw new o.Z("far distance must be greater than near distance.");this._backFaceAlphaByDistance=s.Z.clone(e,this._backFaceAlphaByDistance)}},rectangle:{get:function(){return this._rectangle},set:function(e){(0,r.Z)(e)||(e=a.Z.clone(a.Z.MAX_VALUE)),a.Z.clone(e,this._rectangle)}}});const u=c},23998:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});var n=i(152124),r=i(545125),o=i(426468),s=i(54879),a=i(20209),c=i(273642),u=i(687931),l=i(364232),h=i(831222);function d(){this._framebuffer=new c.Z({depthStencil:!0,supportsDepthTexture:!0}),this._packedDepthFramebuffer=new c.Z,this._renderState=void 0,this._packedDepthCommand=void 0,this._clearCommand=void 0,this._viewport=new n.Z,this._useScissorTest=!1,this._scissorRectangle=void 0,this._useHdr=void 0}Object.defineProperties(d.prototype,{classificationTexture:{get:function(){return this._framebuffer.getColorTexture()}},classificationFramebuffer:{get:function(){return this._framebuffer.framebuffer}},packedDepthFramebuffer:{get:function(){return this._packedDepthFramebuffer.framebuffer}},depthStencilTexture:{get:function(){return this._framebuffer.getDepthStencilTexture()}},depthStencilRenderbuffer:{get:function(){return this._framebuffer.getDepthStencilRenderbuffer()}},packedDepthTexture:{get:function(){return this._packedDepthFramebuffer.getColorTexture()}}}),d.prototype.updateAndClear=function(e,t,i,s){const c=t.width,d=t.height;!function(e,t,i,n,r){const o=r?t.halfFloatingPointTexture?u.Z.HALF_FLOAT:u.Z.FLOAT:u.Z.UNSIGNED_BYTE;e._framebuffer.update(t,i,n,o),e._packedDepthFramebuffer.update(t,i,n)}(this,i,c,d,e),function(e,t,i,s,c){e._viewport.width=i,e._viewport.height=s;const u=!n.Z.equals(e._viewport,c.viewport);let d=u!==e._useScissorTest;e._useScissorTest=u,n.Z.equals(e._scissorRectangle,c.viewport)||(e._scissorRectangle=n.Z.clone(c.viewport,e._scissorRectangle),d=!0),(0,o.Z)(e._renderState)&&n.Z.equals(e._viewport,e._renderState.viewport)&&!d||(e._renderState=l.Z.fromCache({viewport:e._viewport,scissorTest:{enabled:e._useScissorTest,rectangle:e._scissorRectangle}})),(0,o.Z)(e._packedDepthCommand)||(e._packedDepthCommand=t.createViewportQuadCommand(h.Z,{uniformMap:{u_depthTexture:function(){return e.depthStencilTexture}},owner:e})),(0,o.Z)(e._clearCommand)||(e._clearCommand=new a.Z({color:new r.Z(0,0,0,0),depth:1,stencil:0,owner:e})),e._packedDepthCommand.framebuffer=e._packedDepthFramebuffer.framebuffer,e._packedDepthCommand.renderState=e._renderState,e._clearCommand.framebuffer=e.classificationFramebuffer,e._clearCommand.renderState=e._renderState}(this,i,c,d,s),this._useHdr=e},d.prototype.clearClassification=function(e,t){this._clearCommand.execute(e,t)},d.prototype.packDepth=function(e,t){return this._packedDepthCommand.execute(e,t),this.packedDepthTexture},d.prototype.isDestroyed=function(){return!1},d.prototype.destroy=function(){var e;return(e=this)._framebuffer.destroy(),e._packedDepthFramebuffer.destroy(),(0,s.Z)(this)};const f=d},995755:(e,t,i)=>{"use strict";i.d(t,{Z:()=>J});var n=i(307260),r=i(406144),o=i(426468),s=i(530109),a=i(523501),c=i(247913),u=i(842649),l=i(364232),h=i(279427),d=i(451356),f=i(690466),p=i(506678);const m=11,_=["opaqueFrontFaceCommand","opaqueBackFaceCommand","depthOnlyFrontFaceCommand","depthOnlyBackFaceCommand","depthOnlyFrontAndBackFaceCommand","translucentFrontFaceCommand","translucentBackFaceCommand","translucentFrontFaceManualDepthTestCommand","translucentBackFaceManualDepthTestCommand","pickFrontFaceCommand","pickBackFaceCommand"];function Z(){this._frontFaceAlphaByDistance=new s.Z(0,1,0,1),this._backFaceAlphaByDistance=new s.Z(0,1,0,1),this._frontFaceTranslucent=!1,this._backFaceTranslucent=!1,this._requiresManualDepthTest=!1,this._sunVisibleThroughGlobe=!1,this._environmentVisible=!1,this._useDepthPlane=!1,this._numberOfTextureUniforms=0,this._globeTranslucencyFramebuffer=void 0,this._rectangle=a.Z.clone(a.Z.MAX_VALUE),this._derivedCommandKey=0,this._derivedCommandsDirty=!1,this._derivedCommandPacks=void 0,this._derivedCommandTypes=new Array(m),this._derivedBlendCommandTypes=new Array(m),this._derivedPickCommandTypes=new Array(m),this._derivedCommandTypesToUpdate=new Array(m),this._derivedCommandsLength=0,this._derivedBlendCommandsLength=0,this._derivedPickCommandsLength=0,this._derivedCommandsToUpdateLength=0}function g(e,t,i,n){return e?(0,o.Z)(i)?(s.Z.clone(i,n),n.nearValue*=t,n.farValue*=t,n):(n.nearValue=t,n.farValue=t,n):(n.nearValue=1,n.farValue=1,n)}function y(e,t,i){return e&&(i.baseColor.alpha<1||t.nearValue<1||t.farValue<1)}function b(e,t,i,n,r){let o=0;const s=e._frontFaceTranslucent,a=e._backFaceTranslucent;if(!s)return o;const c=t.cameraUnderground,u=e._requiresManualDepthTest,l=n?9:u?7:5,h=n?10:u?8:6;return t.mode===p.Z.SCENE2D?(r[o++]=2,r[o++]=l,o):(a?(i||(r[o++]=4),c?(r[o++]=l,r[o++]=h):(r[o++]=h,r[o++]=l)):c?(i||(r[o++]=3),r[o++]=0,r[o++]=h):(i||(r[o++]=2),r[o++]=1,r[o++]=l),o)}function A(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}function w(e,t){return e.indexOf(t)>-1}function v(e,t){A(e.defines,"TRANSLUCENT"),A(t.defines,"TRANSLUCENT")}function T(e,t){A(e.defines,"GROUND_ATMOSPHERE"),A(t.defines,"GROUND_ATMOSPHERE"),A(e.defines,"FOG"),A(t.defines,"FOG"),A(e.defines,"TRANSLUCENT"),A(t.defines,"TRANSLUCENT")}function C(e,t){w(t.defines,"TILE_LIMIT_RECTANGLE")||w(t.defines,"ENABLE_CLIPPING_PLANES")||(t.sources=["void main() \n{ \n gl_FragColor = vec4(1.0); \n} \n"])}function E(e,t){const i=t.sources,n=i.length;for(let e=0;e<n;++e)i[e]=h.Z.replaceMain(i[e],"czm_globe_translucency_main");i.push("\n\nuniform sampler2D u_classificationTexture; \nvoid main() \n{ \n vec2 st = gl_FragCoord.xy / czm_viewport.zw; \n#ifdef MANUAL_DEPTH_TEST \n float logDepthOrDepth = czm_unpackDepth(texture2D(czm_globeDepthTexture, st)); \n if (logDepthOrDepth != 0.0) \n { \n vec4 eyeCoordinate = czm_windowToEyeCoordinates(gl_FragCoord.xy, logDepthOrDepth); \n float depthEC = eyeCoordinate.z / eyeCoordinate.w; \n if (v_positionEC.z < depthEC) \n { \n discard; \n } \n } \n#endif \n czm_globe_translucency_main(); \n vec4 classificationColor = texture2D(u_classificationTexture, st); \n if (classificationColor.a > 0.0) \n { \n // Reverse premultiplication process to get the correct composited result of the classification primitives \n classificationColor.rgb /= classificationColor.a; \n } \n gl_FragColor = classificationColor * vec4(classificationColor.aaa, 1.0) + gl_FragColor * (1.0 - classificationColor.a); \n} \n")}function x(e,t){E(0,t),A(e.defines,"GROUND_ATMOSPHERE"),A(t.defines,"GROUND_ATMOSPHERE"),A(e.defines,"FOG"),A(t.defines,"FOG")}function S(e,t){E(0,t),e.defines.push("GENERATE_POSITION"),t.defines.push("MANUAL_DEPTH_TEST")}function O(e,t){x(e,t),e.defines.push("GENERATE_POSITION"),t.defines.push("MANUAL_DEPTH_TEST")}function I(e,t){t.sources=["uniform sampler2D u_classificationTexture; \nvoid main() \n{ \n vec2 st = gl_FragCoord.xy / czm_viewport.zw; \n vec4 pickColor = texture2D(u_classificationTexture, st); \n if (pickColor == vec4(0.0)) \n { \n discard; \n } \n gl_FragColor = pickColor; \n} \n"]}function D(e,t,i,n,r,s){if(!(0,o.Z)(r))return t;if(!n&&(0,o.Z)(i))return i;let a=e.shaderCache.getDerivedShaderProgram(t,s);if(!(0,o.Z)(a)){const i=t._attributeLocations,n=t.vertexShaderSource.clone(),c=t.fragmentShaderSource.clone();n.defines=(0,o.Z)(n.defines)?n.defines.slice(0):[],c.defines=(0,o.Z)(c.defines)?c.defines.slice(0):[],r(n,c),a=e.shaderCache.createDerivedShaderProgram(t,s,{vertexShaderSource:n,fragmentShaderSource:c,attributeLocations:i})}return a}function P(e){e.cull.face=f.Z.BACK,e.cull.enabled=!0}function R(e){e.cull.face=f.Z.FRONT,e.cull.enabled=!0}function B(e){e.cull.face=f.Z.BACK,e.cull.enabled=!0,e.colorMask={red:!1,green:!1,blue:!1,alpha:!1}}function M(e){e.cull.face=f.Z.FRONT,e.cull.enabled=!0,e.colorMask={red:!1,green:!1,blue:!1,alpha:!1}}function L(e){e.cull.enabled=!1,e.colorMask={red:!1,green:!1,blue:!1,alpha:!1}}function N(e){e.cull.face=f.Z.BACK,e.cull.enabled=!0,e.depthMask=!1,e.blending=d.Z.ALPHA_BLEND}function F(e){e.cull.face=f.Z.FRONT,e.cull.enabled=!0,e.depthMask=!1,e.blending=d.Z.ALPHA_BLEND}function k(e){e.cull.face=f.Z.BACK,e.cull.enabled=!0,e.blending.enabled=!1}function U(e){e.cull.face=f.Z.FRONT,e.cull.enabled=!0,e.blending.enabled=!1}function V(e,t,i,n,r){if(!(0,o.Z)(n))return e;if(!i&&(0,o.Z)(t))return t;let s=r[e.id];if(!(0,o.Z)(s)){const t=l.Z.getState(e);n(t),s=l.Z.fromCache(t),r[e.id]=s}return s}function z(e){return{u_classificationTexture:function(){return e._globeTranslucencyFramebuffer.classificationTexture}}}function H(e,t,i,r,s){return(0,o.Z)(s)?!r&&(0,o.Z)(i)?i:(0,n.Z)(t,s(e),!1):t}function G(e){this.pass=e.pass,this.pickOnly=e.pickOnly,this.getShaderProgramFunction=e.getShaderProgramFunction,this.getRenderStateFunction=e.getRenderStateFunction,this.getUniformMapFunction=e.getUniformMapFunction,this.renderStateCache={}}Object.defineProperties(Z.prototype,{frontFaceAlphaByDistance:{get:function(){return this._frontFaceAlphaByDistance}},backFaceAlphaByDistance:{get:function(){return this._backFaceAlphaByDistance}},translucent:{get:function(){return this._frontFaceTranslucent}},sunVisibleThroughGlobe:{get:function(){return this._sunVisibleThroughGlobe}},environmentVisible:{get:function(){return this._environmentVisible}},useDepthPlane:{get:function(){return this._useDepthPlane}},numberOfTextureUniforms:{get:function(){return this._numberOfTextureUniforms}},rectangle:{get:function(){return this._rectangle}}}),Z.prototype.update=function(e){const t=e.globe;if(!(0,o.Z)(t)||!t.show)return this._frontFaceTranslucent=!1,this._backFaceTranslucent=!1,this._sunVisibleThroughGlobe=!0,this._environmentVisible=!0,void(this._useDepthPlane=!1);this._frontFaceAlphaByDistance=g(t.translucency.enabled,t.translucency.frontFaceAlpha,t.translucency.frontFaceAlphaByDistance,this._frontFaceAlphaByDistance),this._backFaceAlphaByDistance=g(t.translucency.enabled,t.translucency.backFaceAlpha,t.translucency.backFaceAlphaByDistance,this._backFaceAlphaByDistance),this._frontFaceTranslucent=y(t.translucency.enabled,this._frontFaceAlphaByDistance,t),this._backFaceTranslucent=y(t.translucency.enabled,this._backFaceAlphaByDistance,t),this._requiresManualDepthTest=function(e,t,i){return e._frontFaceTranslucent&&!e._backFaceTranslucent&&!i.depthTestAgainstTerrain&&t.mode!==p.Z.SCENE2D&&t.context.depthTexture}(this,e,t),this._sunVisibleThroughGlobe=function(e,t){const i=e._frontFaceTranslucent,n=e._backFaceTranslucent;return i&&(t.cameraUnderground||n)}(this,e),this._environmentVisible=function(e,t){return!t.cameraUnderground||e._frontFaceTranslucent}(this,e),this._useDepthPlane=function(e,t){return!t.cameraUnderground&&!e._frontFaceTranslucent}(this,e),this._numberOfTextureUniforms=function(e){let t=0;return e._frontFaceTranslucent&&++t,e._requiresManualDepthTest&&++t,t}(this),this._rectangle=a.Z.clone(t.translucency.rectangle,this._rectangle),function(e,t){let i;e._derivedCommandsLength=b(e,t,!1,!1,e._derivedCommandTypes),e._derivedBlendCommandsLength=b(e,t,!0,!1,e._derivedBlendCommandTypes),e._derivedPickCommandsLength=b(e,t,!1,!0,e._derivedPickCommandTypes);let n=0;for(i=0;i<e._derivedCommandsLength;++i)n|=1<<e._derivedCommandTypes[i];for(i=0;i<e._derivedBlendCommandsLength;++i)n|=1<<e._derivedBlendCommandTypes[i];for(i=0;i<e._derivedPickCommandsLength;++i)n|=1<<e._derivedPickCommandTypes[i];let r=0;for(i=0;i<m;++i)(n&1<<i)>0&&(e._derivedCommandTypesToUpdate[r++]=i);e._derivedCommandsToUpdateLength=r;const s=n!==e._derivedCommandKey;e._derivedCommandKey=n,e._derivedCommandsDirty=s,!(0,o.Z)(e._derivedCommandPacks)&&e._frontFaceTranslucent&&(e._derivedCommandPacks=[new G({pass:u.Z.GLOBE,pickOnly:!1,getShaderProgramFunction:v,getRenderStateFunction:P,getUniformMapFunction:void 0}),new G({pass:u.Z.GLOBE,pickOnly:!1,getShaderProgramFunction:T,getRenderStateFunction:R,getUniformMapFunction:void 0}),new G({pass:u.Z.GLOBE,pickOnly:!1,getShaderProgramFunction:C,getRenderStateFunction:B,getUniformMapFunction:void 0}),new G({pass:u.Z.GLOBE,pickOnly:!1,getShaderProgramFunction:C,getRenderStateFunction:M,getUniformMapFunction:void 0}),new G({pass:u.Z.GLOBE,pickOnly:!1,getShaderProgramFunction:C,getRenderStateFunction:L,getUniformMapFunction:void 0}),new G({pass:u.Z.TRANSLUCENT,pickOnly:!1,getShaderProgramFunction:E,getRenderStateFunction:N,getUniformMapFunction:z}),new G({pass:u.Z.TRANSLUCENT,pickOnly:!1,getShaderProgramFunction:x,getRenderStateFunction:F,getUniformMapFunction:z}),new G({pass:u.Z.TRANSLUCENT,pickOnly:!1,getShaderProgramFunction:S,getRenderStateFunction:N,getUniformMapFunction:z}),new G({pass:u.Z.TRANSLUCENT,pickOnly:!1,getShaderProgramFunction:O,getRenderStateFunction:F,getUniformMapFunction:z}),new G({pass:u.Z.TRANSLUCENT,pickOnly:!0,getShaderProgramFunction:I,getRenderStateFunction:k,getUniformMapFunction:z}),new G({pass:u.Z.TRANSLUCENT,pickOnly:!0,getShaderProgramFunction:I,getRenderStateFunction:U,getUniformMapFunction:z})])}(this,e)};const q=new Array(m),j=new Array(m);function W(e,t,i,n,r,s,a){for(let c=0;c<t;++c){const t=e[c],u=t.derivedCommands.type;(!(0,o.Z)(a)||a.indexOf(u)>-1)&&i(t,n,r,s)}}function K(e,t,i,n,r,o){for(let s=0;s<t;++s)i(e[s],n,r,o)}Z.prototype.updateDerivedCommands=function(e,t){const i=this._derivedCommandTypesToUpdate,n=this._derivedCommandsToUpdateLength;if(0!==n){for(let e=0;e<n;++e)j[e]=this._derivedCommandPacks[i[e]],q[e]=_[i[e]];!function(e,t,i,n,s,a,u){let l=t.derivedCommands.globeTranslucency;const h=e._derivedCommandsDirty;if(t.dirty||!(0,o.Z)(l)||h){t.dirty=!1,(0,o.Z)(l)||(l={},t.derivedCommands.globeTranslucency=l);const h=u.frameNumber,d=(0,r.Z)(l.uniformMapDirtyFrame,0),f=(0,r.Z)(l.shaderProgramDirtyFrame,0),p=(0,r.Z)(l.renderStateDirtyFrame,0),m=l.uniformMap!==t.uniformMap,_=l.shaderProgramId!==t.shaderProgram.id,Z=l.renderStateId!==t.renderState.id;m&&(l.uniformMapDirtyFrame=h),_&&(l.shaderProgramDirtyFrame=h),Z&&(l.renderStateDirtyFrame=h),l.uniformMap=t.uniformMap,l.shaderProgramId=t.shaderProgram.id,l.renderStateId=t.renderState.id;for(let g=0;g<i;++g){const i=a[g],y=n[g],b=s[g];let A,w,v,T=l[b];(0,o.Z)(T)?(A=T.uniformMap,w=T.shaderProgram,v=T.renderState):(A=void 0,w=void 0,v=void 0),T=c.Z.shallowClone(t,T),l[b]=T;const C=(0,r.Z)(T.derivedCommands.uniformMapDirtyFrame,0),E=(0,r.Z)(T.derivedCommands.shaderProgramDirtyFrame,0),x=(0,r.Z)(T.derivedCommands.renderStateDirtyFrame,0),S=m||C<d,O=_||E<f,I=Z||x<p;S&&(T.derivedCommands.uniformMapDirtyFrame=h),O&&(T.derivedCommands.shaderProgramDirtyFrame=h),I&&(T.derivedCommands.renderStateDirtyFrame=h),T.derivedCommands.type=y,T.pass=i.pass,T.pickOnly=i.pickOnly,T.uniformMap=H(e,t.uniformMap,A,S,i.getUniformMapFunction),T.shaderProgram=D(u.context,t.shaderProgram,w,O,i.getShaderProgramFunction,b),T.renderState=V(t.renderState,v,I,i.getRenderStateFunction,i.renderStateCache)}}}(this,e,n,i,q,j,t)}},Z.prototype.pushDerivedCommands=function(e,t,i){const n=i.passes.pick;if(n&&t)return;let r=this._derivedCommandTypes,o=this._derivedCommandsLength;if(n?(r=this._derivedPickCommandTypes,o=this._derivedPickCommandsLength):t&&(r=this._derivedBlendCommandTypes,o=this._derivedBlendCommandsLength),0===o)return void i.commandList.push(e);const s=e.derivedCommands.globeTranslucency;for(let e=0;e<o;++e){const t=_[r[e]];i.commandList.push(s[t])}};const Y=[0,1],X=[2,3,4];Z.prototype.executeGlobeCommands=function(e,t,i,n,r){const o=n.context,s=e.commands[u.Z.GLOBE],a=e.indices[u.Z.GLOBE];0!==a&&(this._globeTranslucencyFramebuffer=i,i.clearClassification(o,r),W(s,a,t,n,o,r,Y))},Z.prototype.executeGlobeClassificationCommands=function(e,t,i,n,r){const o=n.context,s=e.commands[u.Z.GLOBE],a=e.indices[u.Z.GLOBE],c=e.commands[u.Z.TERRAIN_CLASSIFICATION],l=e.indices[u.Z.TERRAIN_CLASSIFICATION];if(0===a||0===l)return;const h=this._frontFaceTranslucent,d=this._backFaceTranslucent;if(h&&d||K(c,l,t,n,o,r),!h&&!d)return;this._globeTranslucencyFramebuffer=i;const f=o.uniformState.globeDepthTexture,p=r.framebuffer;if(r.framebuffer=i.classificationFramebuffer,W(s,a,t,n,o,r,X),o.depthTexture){const e=i.packDepth(o,r);o.uniformState.globeDepthTexture=e}K(c,l,t,n,o,r),o.uniformState.globeDepthTexture=f,r.framebuffer=p};const J=Z},918797:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(545125),r=i(426468),o=i(54879),s=i(690220),a=i(842649),c=i(39213),u=i(427570),l=i(723710);function h(e,t,i,n){this._tileset=e,this._tile=t,this._resource=i,this._model=void 0,this.featurePropertiesDirty=!1,this._groupMetadata=void 0,function(e,t){const i=e._tileset,n=e._tile,r=e._resource,o={content:e,primitive:i};e._model=new u.Z({gltf:t,cull:!1,releaseGltfJson:!0,opaquePass:a.Z.CESIUM_3D_TILE,basePath:r,requestType:s.Z.TILES3D,modelMatrix:n.computedTransform,upAxis:i._gltfUpAxis,forwardAxis:c.Z.X,shadows:i.shadows,debugWireframe:i.debugWireframe,incrementallyLoadTextures:!1,addBatchIdToGeneratedShaders:!1,pickObject:o,imageBasedLightingFactor:i.imageBasedLightingFactor,lightColor:i.lightColor,luminanceAtZenith:i.luminanceAtZenith,sphericalHarmonicCoefficients:i.sphericalHarmonicCoefficients,specularEnvironmentMaps:i.specularEnvironmentMaps,backFaceCulling:i.backFaceCulling,showOutline:i.showOutline}),e._model.readyPromise.then((function(e){e.activeAnimations.addAll({loop:l.Z.REPEAT})}))}(this,n)}Object.defineProperties(h.prototype,{featuresLength:{get:function(){return 0}},pointsLength:{get:function(){return this._model.pointsLength}},trianglesLength:{get:function(){return this._model.trianglesLength}},geometryByteLength:{get:function(){return this._model.geometryByteLength}},texturesByteLength:{get:function(){return this._model.texturesByteLength}},batchTableByteLength:{get:function(){return 0}},innerContents:{get:function(){}},readyPromise:{get:function(){return this._model.readyPromise}},tileset:{get:function(){return this._tileset}},tile:{get:function(){return this._tile}},url:{get:function(){return this._resource.getUrlComponent(!0)}},batchTable:{get:function(){}},groupMetadata:{get:function(){return this._groupMetadata},set:function(e){this._groupMetadata=e}}}),h.prototype.hasProperty=function(e,t){return!1},h.prototype.getFeature=function(e){},h.prototype.applyDebugSettings=function(e,t){t=e?t:n.Z.WHITE,this._model.color=t},h.prototype.applyStyle=function(e){const t=(0,r.Z)(e)&&(0,r.Z)(e.color),i=(0,r.Z)(e)&&(0,r.Z)(e.show);this._model.color=t?e.color.evaluateColor(void 0,this._model.color):n.Z.clone(n.Z.WHITE,this._model.color),this._model.show=!i||e.show.evaluate(void 0)},h.prototype.update=function(e,t){const i=this._model,n=this._tile;i.modelMatrix=n.computedTransform,i.shadows=e.shadows,i.imageBasedLightingFactor=e.imageBasedLightingFactor,i.lightColor=e.lightColor,i.luminanceAtZenith=e.luminanceAtZenith,i.sphericalHarmonicCoefficients=e.sphericalHarmonicCoefficients,i.specularEnvironmentMaps=e.specularEnvironmentMaps,i.backFaceCulling=e.backFaceCulling,i.debugWireframe=e.debugWireframe;const o=e.clippingPlanes;i.referenceMatrix=e.clippingPlanesOriginMatrix,(0,r.Z)(o)&&n.clippingPlanesDirty&&(i._clippingPlanes=o.enabled&&n._isClipped?o:void 0),(0,r.Z)(o)&&(0,r.Z)(i._clippingPlanes)&&i._clippingPlanes!==o&&(i._clippingPlanes=o),i.update(t)},h.prototype.isDestroyed=function(){return!1},h.prototype.destroy=function(){return this._model=this._model&&this._model.destroy(),(0,o.Z)(this)};const d=h},698335:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(357299),r=i(406144),o=i(426468),s=i(105385),a=i(527758),c=i(339761),u=i(81967),l=i(646754);function h(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).resourceCache,i=e.gltf,o=e.bufferViewId,c=e.gltfResource,u=e.baseResource,h=e.cacheKey;n.Z.typeOf.func("options.resourceCache",t),n.Z.typeOf.object("options.gltf",i),n.Z.typeOf.number("options.bufferViewId",o),n.Z.typeOf.object("options.gltfResource",c),n.Z.typeOf.object("options.baseResource",u);const d=i.bufferViews[o];let f,p,m,_,Z=d.buffer,g=d.byteOffset,y=d.byteLength,b=!1;if((0,s.Z)(d,"EXT_meshopt_compression")){const e=d.extensions.EXT_meshopt_compression;Z=e.buffer,g=(0,r.Z)(e.byteOffset,0),y=e.byteLength,b=!0,f=e.byteStride,p=e.count,m=e.mode,_=(0,r.Z)(e.filter,"NONE")}const A=i.buffers[Z];this._hasMeshopt=b,this._meshoptByteStride=f,this._meshoptCount=p,this._meshoptMode=m,this._meshoptFilter=_,this._resourceCache=t,this._gltfResource=c,this._baseResource=u,this._buffer=A,this._bufferId=Z,this._byteOffset=g,this._byteLength=y,this._cacheKey=h,this._bufferLoader=void 0,this._typedArray=void 0,this._state=l.Z.UNLOADED,this._promise=a.Z.defer()}(0,o.Z)(Object.create)&&(h.prototype=Object.create(u.Z.prototype),h.prototype.constructor=h),Object.defineProperties(h.prototype,{promise:{get:function(){return this._promise.promise}},cacheKey:{get:function(){return this._cacheKey}},typedArray:{get:function(){return this._typedArray}}}),h.prototype.load=function(){const e=function(e){const t=e._resourceCache,i=e._buffer;if((0,o.Z)(i.uri)){const n=e._baseResource.getDerivedResource({url:i.uri});return t.loadExternalBuffer({resource:n})}return t.loadEmbeddedBuffer({parentResource:e._gltfResource,bufferId:e._bufferId})}(this);this._bufferLoader=e,this._state=l.Z.LOADING;const t=this;e.promise.then((function(){if(t.isDestroyed())return;const i=e.typedArray,n=new Uint8Array(i.buffer,i.byteOffset+t._byteOffset,t._byteLength);t.unload(),t._typedArray=n,t._hasMeshopt?t._state=l.Z.PROCESSING:(t._state=l.Z.READY,t._promise.resolve(t))})).otherwise((function(e){t.isDestroyed()||(t.unload(),t._state=l.Z.FAILED,t._promise.reject(t.getError("Failed to load buffer view",e)))}))},h.prototype.process=function(e){if(n.Z.typeOf.object("frameState",e),!this._hasMeshopt)return;if(!(0,o.Z)(this._typedArray))return;if(this._state!==l.Z.PROCESSING)return;const t=this._meshoptCount,i=this._meshoptByteStride,r=new Uint8Array(t*i);c.Z.decodeGltfBuffer(r,t,i,this._typedArray,this._meshoptMode,this._meshoptFilter),this._typedArray=r,this._state=l.Z.READY,this._promise.resolve(this)},h.prototype.unload=function(){(0,o.Z)(this._bufferLoader)&&this._resourceCache.unload(this._bufferLoader),this._bufferLoader=void 0,this._typedArray=void 0}},322932:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(357299),r=i(406144),o=i(426468),s=i(527758),a=i(947941),c=i(81967),u=i(646754);function l(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).resourceCache,i=e.gltf,o=e.draco,a=e.gltfResource,c=e.baseResource,l=e.cacheKey;n.Z.typeOf.func("options.resourceCache",t),n.Z.typeOf.object("options.gltf",i),n.Z.typeOf.object("options.draco",o),n.Z.typeOf.object("options.gltfResource",a),n.Z.typeOf.object("options.baseResource",c),this._resourceCache=t,this._gltfResource=a,this._baseResource=c,this._gltf=i,this._draco=o,this._cacheKey=l,this._bufferViewLoader=void 0,this._bufferViewTypedArray=void 0,this._decodePromise=void 0,this._decodedData=void 0,this._state=u.Z.UNLOADED,this._promise=s.Z.defer()}function h(e,t){e.unload(),e._state=u.Z.FAILED,e._promise.reject(e.getError("Failed to load Draco",t))}(0,o.Z)(Object.create)&&(l.prototype=Object.create(c.Z.prototype),l.prototype.constructor=l),Object.defineProperties(l.prototype,{promise:{get:function(){return this._promise.promise}},cacheKey:{get:function(){return this._cacheKey}},decodedData:{get:function(){return this._decodedData}}}),l.prototype.load=function(){const e=this._resourceCache.loadBufferView({gltf:this._gltf,bufferViewId:this._draco.bufferView,gltfResource:this._gltfResource,baseResource:this._baseResource});this._bufferViewLoader=e,this._state=u.Z.LOADING;const t=this;e.promise.then((function(){t.isDestroyed()||(t._bufferViewTypedArray=e.typedArray,t._state=u.Z.PROCESSING)})).otherwise((function(e){t.isDestroyed()||h(t,e)}))},l.prototype.process=function(e){if(n.Z.typeOf.object("frameState",e),!(0,o.Z)(this._bufferViewTypedArray))return;if((0,o.Z)(this._decodePromise))return;const t=this._draco,i=this._gltf.bufferViews[t.bufferView],r=t.attributes,s={array:new Uint8Array(this._bufferViewTypedArray),bufferView:i,compressedAttributes:r,dequantizeInShader:!0},c=a.Z.decodeBufferView(s);if(!(0,o.Z)(c))return;const l=this;this._decodePromise=c.then((function(e){l.isDestroyed()||(l.unload(),l._decodedData={indices:e.indexArray,vertexAttributes:e.attributeData},l._state=u.Z.READY,l._promise.resolve(l))})).otherwise((function(e){l.isDestroyed()||h(l,e)}))},l.prototype.unload=function(){(0,o.Z)(this._bufferViewLoader)&&this._resourceCache.unload(this._bufferViewLoader),this._bufferViewLoader=void 0,this._bufferViewTypedArray=void 0,this._decodedData=void 0,this._gltf=void 0}},705989:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});var n=i(357299),r=i(406144),o=i(426468),s=i(446938),a=i(527758),c=i(423129),u=i(571109),l=i(182370),h=i(81967),d=i(646754);function f(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).gltf,i=e.extension,c=e.extensionLegacy,u=e.gltfResource,l=e.baseResource,h=e.supportedImageFormats,f=e.cacheKey,p=(0,r.Z)(e.asynchronous,!0);if(n.Z.typeOf.object("options.gltf",t),n.Z.typeOf.object("options.gltfResource",u),n.Z.typeOf.object("options.baseResource",l),n.Z.typeOf.object("options.supportedImageFormats",h),!(0,o.Z)(e.extension)&&!(0,o.Z)(e.extensionLegacy))throw new s.Z("One of options.extension or options.extensionLegacy must be specified");this._gltfResource=u,this._baseResource=l,this._gltf=t,this._extension=i,this._extensionLegacy=c,this._supportedImageFormats=h,this._cacheKey=f,this._asynchronous=p,this._bufferViewLoaders=[],this._textureLoaders=[],this._schemaLoader=void 0,this._featureMetadata=void 0,this._state=d.Z.UNLOADED,this._promise=a.Z.defer()}function p(e,t){for(const i in e)if(e.hasOwnProperty(i)){const n=e[i],r=n.bufferView,s=n.arrayOffsetBufferView,a=n.stringOffsetBufferView;(0,o.Z)(r)&&(t[r]=!0),(0,o.Z)(s)&&(t[s]=!0),(0,o.Z)(a)&&(t[a]=!0)}}function m(e,t){for(const i in e)if(e.hasOwnProperty(i)){const n=e[i].texture;t[n.index]=n}}function _(e){const t=e._bufferViewLoaders,i=t.length;for(let e=0;e<i;++e)l.Z.unload(t[e]);e._bufferViewLoaders.length=0}(0,o.Z)(Object.create)&&(f.prototype=Object.create(h.Z.prototype),f.prototype.constructor=f),Object.defineProperties(f.prototype,{promise:{get:function(){return this._promise.promise}},cacheKey:{get:function(){return this._cacheKey}},featureMetadata:{get:function(){return this._featureMetadata}}}),f.prototype.load=function(){const e=function(e){let t;t=(0,o.Z)(e._extension)?function(e){const t=e.propertyTables,i={};if((0,o.Z)(t))for(let e=0;e<t.length;e++)p(t[e].properties,i);return i}(e._extension):function(e){const t=e.featureTables,i={};if((0,o.Z)(t))for(const e in t)if(t.hasOwnProperty(e)){const n=t[e].properties;(0,o.Z)(n)&&p(n,i)}return i}(e._extensionLegacy);const i=[],n={};for(const r in t)if(t.hasOwnProperty(r)){const t=l.Z.loadBufferView({gltf:e._gltf,bufferViewId:parseInt(r),gltfResource:e._gltfResource,baseResource:e._baseResource});i.push(t.promise),e._bufferViewLoaders.push(t),n[r]=t}return a.Z.all(i).then((function(){const t={};for(const e in n)if(n.hasOwnProperty(e)){const i=n[e],r=new Uint8Array(i.typedArray);t[e]=r}return _(e),t}))}(this),t=function(e){let t;t=(0,o.Z)(e._extension)?function(e){const t={},i=e.propertyTextures;if((0,o.Z)(i))for(let e=0;e<i.length;e++){const n=i[e];(0,o.Z)(n.properties)&&(t[n.index]=n)}return t}(e._extension):function(e){const t={},i=e.featureTextures;if((0,o.Z)(i))for(const e in i)if(i.hasOwnProperty(e)){const n=i[e].properties;(0,o.Z)(n)&&m(n,t)}return t}(e._extensionLegacy);const i=e._gltf,n=e._gltfResource,r=e._baseResource,s=e._supportedImageFormats,c=e._asynchronous,u=[],h={};for(const o in t)if(t.hasOwnProperty(o)){const a=l.Z.loadTexture({gltf:i,textureInfo:t[o],gltfResource:n,baseResource:r,supportedImageFormats:s,asynchronous:c});u.push(a.promise),e._textureLoaders.push(a),h[o]=a}return a.Z.all(u).then((function(){const e={};for(const t in h)if(h.hasOwnProperty(t)){const i=h[t];e[t]=i.texture}return e}))}(this),i=function(e){const t=(0,r.Z)(e._extension,e._extensionLegacy);let i;if((0,o.Z)(t.schemaUri)){const n=e._baseResource.getDerivedResource({url:t.schemaUri});i=l.Z.loadSchema({resource:n})}else i=l.Z.loadSchema({schema:t.schema});return e._schemaLoader=i,i.promise.then((function(e){return e.schema}))}(this);this._gltf=void 0,this._state=d.Z.LOADING;const n=this;a.Z.all([e,t,i]).then((function(e){if(n.isDestroyed())return;const t=e[0],i=e[1],r=e[2];(0,o.Z)(n._extension)?n._featureMetadata=(0,c.Z)({extension:n._extension,schema:r,bufferViews:t,textures:i}):n._featureMetadata=(0,u.Z)({extension:n._extensionLegacy,schema:r,bufferViews:t,textures:i}),n._state=d.Z.READY,n._promise.resolve(n)})).otherwise((function(e){n.isDestroyed()||(n.unload(),n._state=d.Z.FAILED,n._promise.reject(n.getError("Failed to load feature metadata",e)))}))},f.prototype.process=function(e){if(n.Z.typeOf.object("frameState",e),this._state!==d.Z.LOADING)return;const t=this._textureLoaders,i=t.length;for(let n=0;n<i;++n)t[n].process(e)},f.prototype.unload=function(){_(this),function(e){const t=e._textureLoaders,i=t.length;for(let e=0;e<i;++e)l.Z.unload(t[e]);e._textureLoaders.length=0}(this),(0,o.Z)(this._schemaLoader)&&l.Z.unload(this._schemaLoader),this._schemaLoader=void 0,this._featureMetadata=void 0}},39919:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(357299),r=i(406144),o=i(426468),s=i(312562),a=i(210510),c=i(50128),u=i(527758),l=i(81967),h=i(646754);function d(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).resourceCache,i=e.gltf,o=e.imageId,s=e.gltfResource,a=e.baseResource,c=e.cacheKey;n.Z.typeOf.func("options.resourceCache",t),n.Z.typeOf.object("options.gltf",i),n.Z.typeOf.number("options.imageId",o),n.Z.typeOf.object("options.gltfResource",s),n.Z.typeOf.object("options.baseResource",a);const l=i.images[o],d=l.bufferView,f=l.uri;this._resourceCache=t,this._gltfResource=s,this._baseResource=a,this._gltf=i,this._bufferViewId=d,this._uri=f,this._cacheKey=c,this._bufferViewLoader=void 0,this._image=void 0,this._mipLevels=void 0,this._state=h.Z.UNLOADED,this._promise=u.Z.defer()}function f(e){let t;return Array.isArray(e)&&(t=e.slice(1,e.length).map((function(e){return e.bufferView})),e=e[0]),{image:e,mipLevels:t}}function p(e,t,i){e.unload(),e._state=h.Z.FAILED,e._promise.reject(e.getError(i,t))}(0,o.Z)(Object.create)&&(d.prototype=Object.create(l.Z.prototype),d.prototype.constructor=d),Object.defineProperties(d.prototype,{promise:{get:function(){return this._promise.promise}},cacheKey:{get:function(){return this._cacheKey}},image:{get:function(){return this._image}},mipLevels:{get:function(){return this._mipLevels}}}),d.prototype.load=function(){(0,o.Z)(this._bufferViewId)?function(e){const t=e._resourceCache.loadBufferView({gltf:e._gltf,bufferViewId:e._bufferViewId,gltfResource:e._gltfResource,baseResource:e._baseResource});e._bufferViewLoader=t,e._state=h.Z.LOADING,t.promise.then((function(){if(!e.isDestroyed())return function(e){const t=function(e){const t=e.subarray(0,2),i=e.subarray(0,4),n=e.subarray(8,12);if(255===t[0]&&216===t[1])return"image/jpeg";if(137===t[0]&&80===t[1])return"image/png";if(171===t[0]&&75===t[1])return"image/ktx2";if(82===i[0]&&73===i[1]&&70===i[2]&&70===i[3]&&87===n[0]&&69===n[1]&&66===n[2]&&80===n[3])return"image/webp";throw new c.Z("Image format is not recognized")}(e);if("image/ktx2"===t){const t=new Uint8Array(e);return(0,a.Z)(t)}return d._loadImageFromTypedArray({uint8Array:e,format:t,flipY:!1,skipColorSpaceConversion:!0})}(t.typedArray).then((function(t){if(e.isDestroyed())return;const i=f(t);e.unload(),e._image=i.image,e._mipLevels=i.mipLevels,e._state=h.Z.READY,e._promise.resolve(e)}))})).otherwise((function(t){e.isDestroyed()||p(e,t,"Failed to load embedded image")}))}(this):function(e){const t=e._baseResource,i=e._uri,n=t.getDerivedResource({url:i});e._state=h.Z.LOADING,function(e){const t=e.url;return m.test(t)?(0,a.Z)(e):e.fetchImage({skipColorSpaceConversion:!0,preferImageBitmap:!0})}(n).then((function(t){if(e.isDestroyed())return;const i=f(t);e.unload(),e._image=i.image,e._mipLevels=i.mipLevels,e._state=h.Z.READY,e._promise.resolve(e)})).otherwise((function(t){e.isDestroyed()||p(e,t,"Failed to load image: "+i)}))}(this)};const m=/(^data:image\/ktx2)|(\.ktx2$)/i;d.prototype.unload=function(){(0,o.Z)(this._bufferViewLoader)&&this._resourceCache.unload(this._bufferViewLoader),this._bufferViewLoader=void 0,this._uri=void 0,this._image=void 0,this._mipLevels=void 0,this._gltf=void 0},d._loadImageFromTypedArray=s.Z},139776:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(357299),r=i(997274),o=i(406144),s=i(426468),a=i(546135),c=i(636807),u=i(50720),l=i(527758),h=i(495589),d=i(81967),f=i(646754);function p(e){const t=(e=(0,o.Z)(e,o.Z.EMPTY_OBJECT)).resourceCache,i=e.gltf,r=e.accessorId,s=e.gltfResource,a=e.baseResource,c=e.draco,u=e.cacheKey,h=(0,o.Z)(e.asynchronous,!0),d=(0,o.Z)(e.loadAsTypedArray,!1);n.Z.typeOf.func("options.resourceCache",t),n.Z.typeOf.object("options.gltf",i),n.Z.typeOf.number("options.accessorId",r),n.Z.typeOf.object("options.gltfResource",s),n.Z.typeOf.object("options.baseResource",a);const p=i.accessors[r].componentType;this._resourceCache=t,this._gltfResource=s,this._baseResource=a,this._gltf=i,this._accessorId=r,this._indexDatatype=p,this._draco=c,this._cacheKey=u,this._asynchronous=h,this._loadAsTypedArray=d,this._bufferViewLoader=void 0,this._dracoLoader=void 0,this._typedArray=void 0,this._buffer=void 0,this._state=f.Z.UNLOADED,this._promise=l.Z.defer()}function m(e,t){e.unload(),e._state=f.Z.FAILED,t=e.getError("Failed to load index buffer",t),e._promise.reject(t)}function _(){this.typedArray=void 0,this.indexDatatype=void 0,this.context=void 0,this.buffer=void 0}function Z(e,t,i){const n=c.Z.createIndexBuffer({typedArray:e,context:i,usage:u.Z.STATIC_DRAW,indexDatatype:t});return n.vertexArrayDestroyable=!1,n}(0,s.Z)(Object.create)&&(p.prototype=Object.create(d.Z.prototype),p.prototype.constructor=p),Object.defineProperties(p.prototype,{promise:{get:function(){return this._promise.promise}},cacheKey:{get:function(){return this._cacheKey}},buffer:{get:function(){return this._buffer}},typedArray:{get:function(){return this._typedArray}},indexDatatype:{get:function(){return this._indexDatatype}}}),p.prototype.load=function(){(0,s.Z)(this._draco)?function(e){const t=e._resourceCache.loadDraco({gltf:e._gltf,draco:e._draco,gltfResource:e._gltfResource,baseResource:e._baseResource});e._dracoLoader=t,e._state=f.Z.LOADING,t.promise.then((function(){if(e.isDestroyed())return;const i=t.decodedData.indices.typedArray;e._typedArray=i,e._indexDatatype=r.Z.fromTypedArray(i),e._state=f.Z.PROCESSING})).otherwise((function(t){e.isDestroyed()||m(e,t)}))}(this):function(e){const t=e._gltf,i=e._accessorId,n=t.accessors[i].bufferView,r=e._resourceCache.loadBufferView({gltf:t,bufferViewId:n,gltfResource:e._gltfResource,baseResource:e._baseResource});e._state=f.Z.LOADING,e._bufferViewLoader=r,r.promise.then((function(){if(e.isDestroyed())return;const t=r.typedArray;e._typedArray=function(e,t){const i=e._gltf,n=e._accessorId,r=i.accessors[n],o=r.count,s=r.componentType,c=t.buffer,u=t.byteOffset+r.byteOffset;let l;return s===a.Z.UNSIGNED_BYTE?l=new Uint8Array(c,u,o):s===a.Z.UNSIGNED_SHORT?l=new Uint16Array(c,u,o):s===a.Z.UNSIGNED_INT&&(l=new Uint32Array(c,u,o)),l}(e,t),e._state=f.Z.PROCESSING})).otherwise((function(t){e.isDestroyed()||m(e,t)}))}(this)},_.prototype.set=function(e,t,i){this.typedArray=e,this.indexDatatype=t,this.context=i},_.prototype.execute=function(){this.buffer=Z(this.typedArray,this.indexDatatype,this.context)};const g=new _;p.prototype.process=function(e){if(n.Z.typeOf.object("frameState",e),this._state===f.Z.READY)return;const t=this._typedArray,i=this._indexDatatype;if((0,s.Z)(this._dracoLoader)&&this._dracoLoader.process(e),(0,s.Z)(this._bufferViewLoader)&&this._bufferViewLoader.process(e),!(0,s.Z)(t))return;if(this._loadAsTypedArray)return this.unload(),this._typedArray=t,this._state=f.Z.READY,void this._promise.resolve(this);let r;if(this._asynchronous){const n=g;if(n.set(t,i,e.context),!e.jobScheduler.execute(n,h.Z.BUFFER))return;r=n.buffer}else r=Z(t,i,e.context);this.unload(),this._buffer=r,this._state=f.Z.READY,this._promise.resolve(this)},p.prototype.unload=function(){(0,s.Z)(this._buffer)&&this._buffer.destroy();const e=this._resourceCache;(0,s.Z)(this._bufferViewLoader)&&e.unload(this._bufferViewLoader),(0,s.Z)(this._dracoLoader)&&e.unload(this._dracoLoader),this._bufferViewLoader=void 0,this._dracoLoader=void 0,this._typedArray=void 0,this._buffer=void 0,this._gltf=void 0}},657104:(e,t,i)=>{"use strict";i.d(t,{Z:()=>y});var n=i(357299),r=i(406144),o=i(426468),s=i(987606),a=i(707009),c=i(241634),u=i(795788),l=i(19632),h=i(943244),d=i(794130),f=i(761766),p=i(529104),m=i(68822),_=i(527758),Z=i(81967),g=i(646754);function y(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).resourceCache,i=e.gltfResource,o=e.baseResource,s=e.typedArray,a=e.gltfJson,c=e.cacheKey;n.Z.typeOf.func("options.resourceCache",t),n.Z.typeOf.object("options.gltfResource",i),n.Z.typeOf.object("options.baseResource",o),this._resourceCache=t,this._gltfResource=i,this._baseResource=o,this._typedArray=s,this._gltfJson=a,this._cacheKey=c,this._gltf=void 0,this._bufferLoaders=[],this._state=g.Z.UNLOADED,this._promise=_.Z.defer()}function b(e,t){return(0,h.Z)(t),function(e){const t=[];return d.Z.buffer(e,(function(e){const i=e.uri;!(0,o.Z)(e.extras._pipeline.source)&&(0,o.Z)(i)&&(0,c.Z)(i)&&(delete e.uri,t.push(u.Z.fetchArrayBuffer(i).then((function(t){e.extras._pipeline.source=new Uint8Array(t)}))))})),_.Z.all(t)}(t).then((function(){return function(e,t){if("2.0"===t.asset.version)return _.Z.resolve();const i=[];return d.Z.buffer(t,(function(t){if(!(0,o.Z)(t.extras._pipeline.source)&&(0,o.Z)(t.uri)){const n=e._baseResource.getDerivedResource({url:t.uri}),r=e._resourceCache.loadExternalBuffer({resource:n});e._bufferLoaders.push(r),i.push(r.promise.then((function(e){t.extras._pipeline.source=e.typedArray})))}})),_.Z.all(i).then((function(){(0,m.Z)(t)}))}(e,t).then((function(){return(0,l.Z)(t),function(e,t){const i=[];return d.Z.buffer(t,(function(t,n){const r=t.extras._pipeline.source;if((0,o.Z)(r)&&!(0,o.Z)(t.uri)){const t=e._resourceCache.loadEmbeddedBuffer({parentResource:e._gltfResource,bufferId:n,typedArray:r});e._bufferLoaders.push(t),i.push(t.promise)}})),_.Z.all(i)}(e,t).then((function(){return(0,p.Z)(t),t}))}))}))}function A(e,t){let i;return i="glTF"===(0,a.Z)(t)?(0,f.Z)(t):(0,s.Z)(t),b(e,i)}(0,o.Z)(Object.create)&&(y.prototype=Object.create(Z.Z.prototype),y.prototype.constructor=y),Object.defineProperties(y.prototype,{promise:{get:function(){return this._promise.promise}},cacheKey:{get:function(){return this._cacheKey}},gltf:{get:function(){return this._gltf}}}),y.prototype.load=function(){let e;var t;this._state=g.Z.LOADING,e=(0,o.Z)(this._gltfJson)?b(this,this._gltfJson):(0,o.Z)(this._typedArray)?A(this,this._typedArray):(t=this)._fetchGltf().then((function(e){if(t.isDestroyed())return;const i=new Uint8Array(e);return A(t,i)}));const i=this;return e.then((function(e){i.isDestroyed()||(i._gltf=e,i._state=g.Z.READY,i._promise.resolve(i))})).otherwise((function(e){i.isDestroyed()||function(e,t){e.unload(),e._state=g.Z.FAILED;const i="Failed to load glTF: "+e._gltfResource.url;e._promise.reject(e.getError(i,t))}(i,e)}))},y.prototype.unload=function(){const e=this._bufferLoaders,t=e.length;for(let i=0;i<t;++i)this._resourceCache.unload(e[i]);this._bufferLoaders.length=0,this._gltf=void 0},y.prototype._fetchGltf=function(){return this._gltfResource.fetchArrayBuffer()}},771918:(e,t,i)=>{"use strict";i.d(t,{Z:()=>H});var n=i(170099),r=i(919382),o=i(114754),s=i(357299),a=i(997274),c=i(406144),u=i(426468),l=i(488802),h=i(583917),d=i(129782),f=i(270013),p=i(675622),m=i(306333),_=i(597722),Z=i(527758),g=i(295189),y=i(39213),b=i(705989),A=i(169474),w=i(232804),v=i(148306),T=i(182370),C=i(81967),E=i(819796),x=i(578765);const S=v.Z.Attribute,O=v.Z.Indices,I=v.Z.FeatureIdAttribute,D=v.Z.FeatureIdTexture,P=v.Z.FeatureIdImplicitRange,R=v.Z.MorphTarget,B=v.Z.Primitive,M=v.Z.Instances,L=v.Z.Skin,N=v.Z.Node,F=v.Z.Scene,k=v.Z.Components,U=v.Z.MetallicRoughness,V=v.Z.SpecularGlossiness,z=v.Z.Material;function H(e){const t=(e=(0,c.Z)(e,c.Z.EMPTY_OBJECT)).gltfResource;let i=e.baseResource;const n=e.typedArray,r=(0,c.Z)(e.releaseGltfJson,!1),o=(0,c.Z)(e.asynchronous,!0),a=(0,c.Z)(e.incrementallyLoadTextures,!0),l=(0,c.Z)(e.upAxis,y.Z.Y),h=(0,c.Z)(e.forwardAxis,y.Z.Z),d=(0,c.Z)(e.loadAsTypedArray,!1),f=(0,c.Z)(e.renameBatchIdSemantic,!1);s.Z.typeOf.object("options.gltfResource",t),i=(0,u.Z)(i)?i:t.clone(),this._gltfJson=e.gltfJson,this._gltfResource=t,this._baseResource=i,this._typedArray=n,this._releaseGltfJson=r,this._asynchronous=o,this._incrementallyLoadTextures=a,this._upAxis=l,this._forwardAxis=h,this._loadAsTypedArray=d,this._renameBatchIdSemantic=f,this._sortedPropertyTableIds=void 0,this._sortedFeatureTextureIds=void 0,this._gltfJsonLoader=void 0,this._state=0,this._textureState=0,this._promise=Z.Z.defer(),this._texturesLoadedPromise=Z.Z.defer(),this._textureLoaders=[],this._bufferViewLoaders=[],this._geometryLoaders=[],this._featureMetadataLoader=void 0,this._components=void 0}function G(e,t){e.unload(),e._state=5,e._textureState=5,t=e.getError("Failed to load glTF",t),e._promise.reject(t),e._texturesLoadedPromise.reject(t)}function q(e,t,i){let n=t.byteOffset;const r=(0,p.Z)(e,t),o=t.count,s=(0,_.Z)(t.type),c=t.componentType,u=a.Z.getSizeInBytes(c),l=o*s;if(r===u*s)return i=new Uint8Array(i),a.Z.createArrayBufferView(c,i.buffer,i.byteOffset+n,l);const h=a.Z.createTypedArray(c,l),d=new DataView(i.buffer),f=new Array(s),Z=(0,m.Z)(t.componentType);n=i.byteOffset+n;for(let e=0;e<o;++e){Z(d,n,s,u,f);for(let t=0;t<s;++t)h[e*s+t]=f[t];n+=r}return h}function j(e,t){if((0,u.Z)(t))return e===Number?t[0]:e.unpack(t)}function W(e){const t=/^\w+_(\d+)$/.exec(e);if(null!==t)return parseInt(t[1])}function K(e,t,i,n,r,o,s,a,l){const h=t.accessors[i],d=h.bufferView;let f=r;!e._renameBatchIdSemantic||"_BATCHID"!==r&&"BATCHID"!==r||(f="FEATURE_ID_0");const m=r,_=n.fromGltfSemantic(f),Z=(0,u.Z)(_)?W(f):void 0,y=function(e,t,i,n,r){const o=e.accessors[t],s=g.Z.getMathType(o.type),a=new S;return a.name=i,a.semantic=n,a.setIndex=r,a.constant=function(e){return e===Number?0:new e}(s),a.componentDatatype=o.componentType,a.normalized=(0,c.Z)(o.normalized,!1),a.count=o.count,a.type=o.type,a.min=j(s,o.min),a.max=j(s,o.max),a.byteOffset=o.byteOffset,a.byteStride=(0,p.Z)(e,o),a}(t,i,m,_,Z);if(!(0,u.Z)(o)&&!(0,u.Z)(d))return y;const b=function(e,t,i,n,r,o,s){const a=t.accessors[i].bufferView,c=T.Z.loadVertexBuffer({gltf:t,gltfResource:e._gltfResource,baseResource:e._baseResource,bufferViewId:a,draco:r,attributeSemantic:n,accessorId:i,asynchronous:e._asynchronous,dequantize:o,loadAsTypedArray:s});return e._geometryLoaders.push(c),c}(e,t,i,r,o,s,a);return b.promise.then((function(i){if(!e.isDestroyed()){if(l){const e=i.typedArray;y.packedTypedArray=q(t,h,e),y.byteOffset=0,y.byteStride=void 0}else a?y.typedArray=i.typedArray:y.buffer=i.buffer;(0,u.Z)(o)&&(0,u.Z)(o.attributes)&&(0,u.Z)(o.attributes[r])&&(y.byteOffset=0,y.byteStride=void 0,y.quantization=i.quantization)}})),y}function Y(e,t,i,n,r){return K(e,t,i,x.Z,n,r,!1,e._loadAsTypedArray,!1)}function X(e,t,i,n,r){return K(e,t,i,w.Z,n,void 0,!0,r,r)}function J(e,t,i,n,r){const o=A.Z.getImageIdFromTexture({gltf:t,textureId:i.index,supportedImageFormats:n});if(!(0,u.Z)(o))return;const s=T.Z.loadTexture({gltf:t,textureInfo:i,gltfResource:e._gltfResource,baseResource:e._baseResource,supportedImageFormats:n,asynchronous:e._asynchronous});e._textureLoaders.push(s);const a=A.Z.createModelTextureReader({textureInfo:i});return s.promise.then((function(t){e.isDestroyed()||(a.texture=t.texture,(0,u.Z)(r)&&(a.texture.sampler=r))})),a}function Q(e,t){const i=new I;return i.propertyTableId=t,i.setIndex=e.attribute,i}function $(e,t){const i=new I,n=e.featureIds;return i.propertyTableId=t,i.setIndex=W(n.attribute),i}function ee(e,t){const i=new P;return i.propertyTableId=t,i.offset=(0,c.Z)(e.offset,0),i.repeat=e.repeat,i}function te(e,t){const i=new P,n=e.featureIds;i.propertyTableId=t,i.offset=(0,c.Z)(n.constant,0);const r=(0,c.Z)(n.divisor,0);return i.repeat=0===r?void 0:r,i}function ie(e,t,i,n,r){const o=new D,s=i;o.propertyTableId=n,o.textureReader=J(e,t,s,r,f.Z.NEAREST);const a="rgba".charAt(i.channel);return o.textureReader.channels=a,o}function ne(e,t,i,n,r){const o=new D,s=i.featureIds,a=s.texture;return o.propertyTableId=n,o.textureReader=J(e,t,a,r,f.Z.NEAREST),o.textureReader.channels=s.channels,o}function re(e,t,i){const n=new R;for(const r in i)if(i.hasOwnProperty(r)){const o=i[r];n.attributes.push(Y(e,t,o,r,void 0))}return n}function oe(e,t,i,s,a){const l=new B,h=i.material;(0,u.Z)(h)&&(l.material=function(e,t,i,n){const s=new z,a=(0,c.Z)(i.extensions,c.Z.EMPTY_OBJECT),l=a.KHR_materials_pbrSpecularGlossiness,h=i.pbrMetallicRoughness;if(s.unlit=(0,u.Z)(a.KHR_materials_unlit),(0,u.Z)(l)){const i=new V;s.specularGlossiness=i,(0,u.Z)(l.diffuseTexture)&&(i.diffuseTexture=J(e,t,l.diffuseTexture,n)),(0,u.Z)(l.specularGlossinessTexture)&&(0,u.Z)(l.specularGlossinessTexture)&&(i.specularGlossinessTexture=J(e,t,l.specularGlossinessTexture,n)),i.diffuseFactor=j(o.Z,l.diffuseFactor),i.specularFactor=j(r.Z,l.specularFactor),i.glossinessFactor=l.glossinessFactor,s.pbrSpecularGlossiness=l}else if((0,u.Z)(h)){const i=new U;s.metallicRoughness=i,(0,u.Z)(h.baseColorTexture)&&(i.baseColorTexture=J(e,t,h.baseColorTexture,n)),(0,u.Z)(h.metallicRoughnessTexture)&&(i.metallicRoughnessTexture=J(e,t,h.metallicRoughnessTexture,n)),i.baseColorFactor=j(o.Z,h.baseColorFactor),i.metallicFactor=h.metallicFactor,i.roughnessFactor=h.roughnessFactor,s.pbrMetallicRoughness=h}return(0,u.Z)(i.emissiveTexture)&&(s.emissiveTexture=J(e,t,i.emissiveTexture,n)),(0,u.Z)(i.normalTexture)&&(s.normalTexture=J(e,t,i.normalTexture,n)),(0,u.Z)(i.occlusionTexture)&&(s.occlusionTexture=J(e,t,i.occlusionTexture,n)),s.emissiveFactor=j(r.Z,i.emissiveFactor),s.alphaMode=i.alphaMode,s.alphaCutoff=i.alphaCutoff,s.doubleSided=i.doubleSided,s}(e,t,t.materials[h],a));const d=(0,c.Z)(i.extensions,c.Z.EMPTY_OBJECT),f=d.KHR_draco_mesh_compression,p=i.attributes;if((0,u.Z)(p))for(const i in p)if(p.hasOwnProperty(i)){const n=p[i];l.attributes.push(Y(e,t,n,i,f))}const m=i.targets;if((0,u.Z)(m)){const i=m.length;for(let n=0;n<i;++n)l.morphTargets.push(re(e,t,m[n]));l.morphWeights=(0,u.Z)(s)?s.slice():(0,n.Z)(new Array(i),0)}const _=i.indices;(0,u.Z)(_)&&(l.indices=function(e,t,i,n){const r=t.accessors[i],o=r.bufferView;if(!(0,u.Z)(n)&&!(0,u.Z)(o))return;const s=new O;s.count=r.count;const a=e._loadAsTypedArray,c=function(e,t,i,n,r){const o=T.Z.loadIndexBuffer({gltf:t,accessorId:i,gltfResource:e._gltfResource,baseResource:e._baseResource,draco:n,asynchronous:e._asynchronous,loadAsTypedArray:r});return e._geometryLoaders.push(o),o}(e,t,i,n,a);return c.promise.then((function(t){e.isDestroyed()||(s.indexDatatype=t.indexDatatype,a?s.typedArray=t.typedArray:s.buffer=t.buffer)})),s}(e,t,_,f));const Z=d.EXT_mesh_features,g=d.EXT_feature_metadata;return(0,u.Z)(Z)?function(e,t,i,n,r){const o=(0,u.Z)(n.featureIds)?n.featureIds:[],s=(0,u.Z)(n.propertyTables)?n.propertyTables:[];for(let n=0;n<o.length;n++){const a=o[n],c=s[n];let l;l=(0,u.Z)(a.channel)?ie(e,t,a,c,r):(0,u.Z)(a.attribute)?Q(a,c):ee(a,c),i.featureIds.push(l)}(0,u.Z)(n.propertyTextures)&&(i.propertyTextureIds=n.propertyTextures)}(e,t,l,Z,a):(0,u.Z)(g)&&function(e,t,i,n,r){let o,s,a,c;const l=n.featureIdAttributes;if((0,u.Z)(l)){const t=l.length;for(o=0;o<t;++o){const t=l[o];a=t.featureTable,c=e._sortedPropertyTableIds.indexOf(a),s=(0,u.Z)(t.featureIds.attribute)?$(t,c):te(t,c),i.featureIds.push(s)}}const h=n.featureIdTextures;if((0,u.Z)(h)){const n=h.length;for(o=0;o<n;++o){const n=h[o];a=n.featureTable,c=e._sortedPropertyTableIds.indexOf(a),s=ne(e,t,n,c,r),i.featureIds.push(s)}}(0,u.Z)(n.featureTextures)&&(i.propertyTextureIds=n.featureTextures.map((function(t){return e._sortedFeatureTextureIds.indexOf(t)})))}(e,t,l,g,a),l.primitiveType=i.mode,l}function se(e,t,i,r){const o=new L,s=i.joints,a=s.length,c=new Array(a);for(let e=0;e<a;++e)c[e]=r[s[e]];o.joints=c;const l=i.inverseBindMatrices;if((0,u.Z)(l)){const i=t.accessors[l],n=i.bufferView;if((0,u.Z)(n)){const r=function(e,t,i){const n=T.Z.loadBufferView({gltf:t,bufferViewId:i,gltfResource:e._gltfResource,baseResource:e._baseResource});return e._bufferViewLoaders.push(n),n}(e,t,n);r.promise.then((function(n){if(e.isDestroyed())return;const r=n.typedArray,s=q(t,i,r),c=new Array(a);for(let e=0;e<a;++e)c[e]=h.Z.unpack(s,16*e);o.inverseBindMatrices=c}))}}else o.inverseBindMatrices=(0,n.Z)(new Array(a),h.Z.IDENTITY);return o}function ae(e,t,i,n,o){const s=new N;s.matrix=j(h.Z,i.matrix),s.translation=j(r.Z,i.translation),s.rotation=j(d.Z,i.rotation),s.scale=j(r.Z,i.scale);const a=i.mesh;if((0,u.Z)(a)){const r=t.meshes[a],o=(0,c.Z)(i.weights,r.weights),u=r.primitives,l=u.length;for(let i=0;i<l;++i)s.primitives.push(oe(e,t,u[i],o,n))}const l=(0,c.Z)(i.extensions,c.Z.EMPTY_OBJECT),f=l.EXT_mesh_gpu_instancing;return(0,u.Z)(f)&&(s.instances=function(e,t,i,n){const r=i.EXT_mesh_gpu_instancing,o=new M,s=r.attributes;if((0,u.Z)(s)){const i=(0,u.Z)(s.ROTATION),r=(0,u.Z)(s.TRANSLATION)&&(0,u.Z)(t.accessors[s.TRANSLATION].min)&&(0,u.Z)(t.accessors[s.TRANSLATION].max);for(const a in s)if(s.hasOwnProperty(a)){const c=e._loadAsTypedArray||!n.context.instancedArrays||(i||!r)&&(a===w.Z.TRANSLATION||a===w.Z.ROTATION||a===w.Z.SCALE)||a.indexOf(w.Z.FEATURE_ID)>=0,u=s[a];o.attributes.push(X(e,t,u,a,c))}}const a=(0,c.Z)(r.extensions,c.Z.EMPTY_OBJECT),l=i.EXT_mesh_features,h=a.EXT_feature_metadata;return(0,u.Z)(l)?function(e,t){const i=t.featureIds,n=(0,u.Z)(t.propertyTables)?t.propertyTables:[];for(let t=0;t<i.length;t++){const r=i[t],o=n[t];let s;s=(0,u.Z)(r.attribute)?Q(r,o):ee(r,o),e.featureIds.push(s)}}(o,l):(0,u.Z)(h)&&function(e,t,i){const n=t.featureIdAttributes;if((0,u.Z)(n)){const t=n.length;for(let r=0;r<t;++r){const t=n[r],o=t.featureTable,s=i.indexOf(o);let a;a=(0,u.Z)(t.featureIds.attribute)?$(t,s):te(t,s),e.featureIds.push(a)}}}(o,h,e._sortedPropertyTableIds),o}(e,t,l,o)),s}function ce(e){const t=e._bufferViewLoaders,i=t.length;for(let e=0;e<i;++e)T.Z.unload(t[e]);e._bufferViewLoaders.length=0}(0,u.Z)(Object.create)&&(H.prototype=Object.create(C.Z.prototype),H.prototype.constructor=H),Object.defineProperties(H.prototype,{promise:{get:function(){return this._promise.promise}},cacheKey:{get:function(){}},components:{get:function(){return this._components}},texturesLoadedPromise:{get:function(){return this._texturesLoadedPromise.promise}}}),H.prototype.load=function(){const e=T.Z.loadGltfJson({gltfResource:this._gltfResource,baseResource:this._baseResource,typedArray:this._typedArray,gltfJson:this._gltfJson});this._gltfJsonLoader=e,this._state=1,this._textureState=1;const t=this;e.promise.then((function(){t.isDestroyed()||(t._state=2,t._textureState=2)})).otherwise((function(e){t.isDestroyed()||G(t,e)}))},H.prototype.process=function(e){if(s.Z.typeOf.object("frameState",e),l.Z.supportsWebP.initialized){if(2===this._state){this._state=3;const t=new E.Z({webp:l.Z.supportsWebP(),basis:e.context.supportsBasis});let i;i=(0,u.Z)(this._gltfJsonLoader)?this._gltfJsonLoader.gltf:this._gltfJson,function(e,t,i,n){const r=(0,c.Z)(t.extensions,c.Z.EMPTY_OBJECT),o=r.EXT_mesh_features,s=r.EXT_feature_metadata;if(s){const t=s.featureTables,i=s.featureTextures,n=(0,u.Z)(t)?t:[],r=(0,u.Z)(i)?i:[];e._sortedPropertyTableIds=Object.keys(n).sort(),e._sortedFeatureTextureIds=Object.keys(r).sort()}const a=function(e,t,i,n){let r,o;const s=t.nodes.length,a=new Array(s);for(r=0;r<s;++r)a[r]=ae(e,t,t.nodes[r],i,n);for(r=0;r<s;++r){const e=t.nodes[r].children;if((0,u.Z)(e)){const t=e.length;for(o=0;o<t;++o)a[r].children.push(a[e[o]])}}for(r=0;r<s;++r){const i=t.nodes[r].skin;(0,u.Z)(i)&&(a[r].skin=se(e,t,t.skins[i],a))}return a}(e,t,i,n),l=function(e,t){const i=new F,n=function(e){let t;return(0,u.Z)(e.scenes)&&(0,u.Z)(e.scene)&&(t=e.scenes[e.scene].nodes),t=(0,c.Z)(t,e.nodes),t=(0,u.Z)(t)?t:[],t}(e);return i.nodes=n.map((function(e){return t[e]})),i}(t,a),h=new k;if(h.scene=l,h.nodes=a,h.upAxis=e._upAxis,h.forwardAxis=e._forwardAxis,e._components=h,(0,u.Z)(o)||(0,u.Z)(s)){const n=function(e,t,i,n,r){const o=new b.Z({gltf:t,extension:i,extensionLegacy:n,gltfResource:e._gltfResource,baseResource:e._baseResource,supportedImageFormats:r,asynchronous:e._asynchronous});return o.load(),e._featureMetadataLoader=o,o}(e,t,o,s,i);n.promise.then((function(t){e.isDestroyed()||(h.featureMetadata=t.featureMetadata)}))}const d=[];d.push.apply(d,e._bufferViewLoaders),d.push.apply(d,e._geometryLoaders),(0,u.Z)(e._featureMetadataLoader)&&d.push(e._featureMetadataLoader),e._incrementallyLoadTextures||d.push.apply(d,e._textureLoaders);const f=d.map((function(e){return e.promise})),p=e._textureLoaders.map((function(e){return e.promise}));Z.Z.all(f).then((function(){e.isDestroyed()||(e._state=4)})).otherwise((function(t){e.isDestroyed()||G(e,t)})),Z.Z.all(p).then((function(){e.isDestroyed()||(e._textureState=4)}))}(this,i,t,e),(0,u.Z)(this._gltfJsonLoader)&&this._releaseGltfJson&&(T.Z.unload(this._gltfJsonLoader),this._gltfJsonLoader=void 0)}2===this._textureState&&(this._textureState=3),3!==this._state&&3!==this._textureState||function(e,t){let i;const n=e._textureLoaders,r=n.length;for(i=0;i<r;++i)n[i].process(t);const o=e._bufferViewLoaders,s=o.length;for(i=0;i<s;++i)o[i].process(t);const a=e._geometryLoaders,c=a.length;for(i=0;i<c;++i)a[i].process(t);(0,u.Z)(e._featureMetadataLoader)&&e._featureMetadataLoader.process(t)}(this,e),4===this._state&&(ce(this),this._state=4,this._promise.resolve(this)),4===this._textureState&&(this._textureState=4,this._texturesLoadedPromise.resolve(this))}else l.Z.supportsWebP.initialize()},H.prototype.unload=function(){var e;(0,u.Z)(this._gltfJsonLoader)&&T.Z.unload(this._gltfJsonLoader),this._gltfJsonLoader=void 0,function(e){const t=e._textureLoaders,i=t.length;for(let e=0;e<i;++e)T.Z.unload(t[e]);e._textureLoaders.length=0}(this),ce(this),function(e){const t=e._geometryLoaders,i=t.length;for(let e=0;e<i;++e)T.Z.unload(t[e]);e._geometryLoaders.length=0}(this),e=this,(0,u.Z)(e._featureMetadataLoader)&&(e._featureMetadataLoader.destroy(),e._featureMetadataLoader=void 0),this._components=void 0}},169474:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});var n=i(337968),r=i(357299),o=i(406144),s=i(426468),a=i(165373),c=i(270013),u=i(59102),l=i(636664),h=i(655499),d=i(148306);const f={getImageIdFromTexture:function(e){const t=(e=(0,o.Z)(e,o.Z.EMPTY_OBJECT)).gltf,i=e.textureId,n=e.supportedImageFormats;r.Z.typeOf.object("options.gltf",t),r.Z.typeOf.number("options.textureId",i),r.Z.typeOf.object("options.supportedImageFormats",n);const a=t.textures[i],c=a.extensions;if((0,s.Z)(c)){if(n.webp&&(0,s.Z)(c.EXT_texture_webp))return c.EXT_texture_webp.source;if(n.basis&&(0,s.Z)(c.KHR_texture_basisu))return c.KHR_texture_basisu.source}return a.source},createSampler:function(e){const t=(e=(0,o.Z)(e,o.Z.EMPTY_OBJECT)).gltf,i=e.textureInfo,n=(0,o.Z)(e.compressedTextureNoMipmap,!1);r.Z.typeOf.object("options.gltf",t),r.Z.typeOf.object("options.textureInfo",i);let a=h.Z.REPEAT,d=h.Z.REPEAT,f=l.Z.LINEAR,p=u.Z.LINEAR;const m=i.index,_=t.textures[m].sampler;if((0,s.Z)(_)){const e=t.samplers[_];a=(0,o.Z)(e.wrapS,a),d=(0,o.Z)(e.wrapT,d),f=(0,o.Z)(e.minFilter,f),p=(0,o.Z)(e.magFilter,p)}let Z=!1;const g=i.extensions;return(0,s.Z)(g)&&(0,s.Z)(g.KHR_texture_transform)&&(Z=!0),(n||Z)&&f!==l.Z.LINEAR&&f!==l.Z.NEAREST&&(f=f===l.Z.NEAREST_MIPMAP_NEAREST||f===l.Z.NEAREST_MIPMAP_LINEAR?l.Z.NEAREST:l.Z.LINEAR),new c.Z({wrapS:a,wrapT:d,minificationFilter:f,magnificationFilter:p})}},p=new n.Z(1,1);f.createModelTextureReader=function(e){const t=(e=(0,o.Z)(e,o.Z.EMPTY_OBJECT)).textureInfo,i=e.channels,c=e.texture;r.Z.typeOf.object("options.textureInfo",t);let u,l=(0,o.Z)(t.texCoord,0);const h=(0,o.Z)(t.extensions,o.Z.EMPTY_OBJECT).KHR_texture_transform;if((0,s.Z)(h)){l=(0,o.Z)(h.texCoord,l);const e=(0,s.Z)(h.offset)?n.Z.unpack(h.offset):n.Z.ZERO;let t=(0,o.Z)(h.rotation,0);const i=(0,s.Z)(h.scale)?n.Z.unpack(h.scale):p;t=-t,u=new a.Z(Math.cos(t)*i.x,-Math.sin(t)*i.y,e.x,Math.sin(t)*i.x,Math.cos(t)*i.y,e.y,0,0,1)}const f=new d.Z.TextureReader;return f.texture=c,f.texCoord=l,f.transform=u,f.channels=i,f};const m=f},794130:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(934804),r=i(426468);function o(){}o.objectLegacy=function(e,t){if((0,r.Z)(e))for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const n=t(e[i],i);if((0,r.Z)(n))return n}},o.object=function(e,t){if((0,r.Z)(e)){const i=e.length;for(let n=0;n<i;n++){const i=t(e[n],n);if((0,r.Z)(i))return i}}},o.topLevel=function(e,t,i){const n=e[t];return(0,r.Z)(n)&&!Array.isArray(n)?o.objectLegacy(n,i):o.object(n,i)},o.accessor=function(e,t){return o.topLevel(e,"accessors",t)},o.accessorWithSemantic=function(e,t,i){const n={};return o.mesh(e,(function(e){return o.meshPrimitive(e,(function(e){const s=o.meshPrimitiveAttribute(e,(function(e,o){if(0===o.indexOf(t)&&!(0,r.Z)(n[e])){n[e]=!0;const t=i(e);if((0,r.Z)(t))return t}}));return(0,r.Z)(s)?s:o.meshPrimitiveTarget(e,(function(e){return o.meshPrimitiveTargetAttribute(e,(function(e,o){if(0===o.indexOf(t)&&!(0,r.Z)(n[e])){n[e]=!0;const t=i(e);if((0,r.Z)(t))return t}}))}))}))}))},o.accessorContainingVertexAttributeData=function(e,t){const i={};return o.mesh(e,(function(e){return o.meshPrimitive(e,(function(e){const n=o.meshPrimitiveAttribute(e,(function(e){if(!(0,r.Z)(i[e])){i[e]=!0;const n=t(e);if((0,r.Z)(n))return n}}));return(0,r.Z)(n)?n:o.meshPrimitiveTarget(e,(function(e){return o.meshPrimitiveTargetAttribute(e,(function(e){if(!(0,r.Z)(i[e])){i[e]=!0;const n=t(e);if((0,r.Z)(n))return n}}))}))}))}))},o.accessorContainingIndexData=function(e,t){const i={};return o.mesh(e,(function(e){return o.meshPrimitive(e,(function(e){const n=e.indices;if((0,r.Z)(n)&&!(0,r.Z)(i[n])){i[n]=!0;const e=t(n);if((0,r.Z)(e))return e}}))}))},o.animation=function(e,t){return o.topLevel(e,"animations",t)},o.animationChannel=function(e,t){const i=e.channels;return o.object(i,t)},o.animationSampler=function(e,t){const i=e.samplers;return o.object(i,t)},o.buffer=function(e,t){return o.topLevel(e,"buffers",t)},o.bufferView=function(e,t){return o.topLevel(e,"bufferViews",t)},o.camera=function(e,t){return o.topLevel(e,"cameras",t)},o.image=function(e,t){return o.topLevel(e,"images",t)},o.material=function(e,t){return o.topLevel(e,"materials",t)},o.materialValue=function(e,t){let i=e.values;(0,r.Z)(e.extensions)&&(0,r.Z)(e.extensions.KHR_techniques_webgl)&&(i=e.extensions.KHR_techniques_webgl.values);for(const e in i)if(Object.prototype.hasOwnProperty.call(i,e)){const n=t(i[e],e);if((0,r.Z)(n))return n}},o.mesh=function(e,t){return o.topLevel(e,"meshes",t)},o.meshPrimitive=function(e,t){const i=e.primitives;if((0,r.Z)(i)){const e=i.length;for(let n=0;n<e;n++){const e=t(i[n],n);if((0,r.Z)(e))return e}}},o.meshPrimitiveAttribute=function(e,t){const i=e.attributes;for(const e in i)if(Object.prototype.hasOwnProperty.call(i,e)){const n=t(i[e],e);if((0,r.Z)(n))return n}},o.meshPrimitiveTarget=function(e,t){const i=e.targets;if((0,r.Z)(i)){const e=i.length;for(let n=0;n<e;++n){const e=t(i[n],n);if((0,r.Z)(e))return e}}},o.meshPrimitiveTargetAttribute=function(e,t){for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const n=t(e[i],i);if((0,r.Z)(n))return n}},o.node=function(e,t){return o.topLevel(e,"nodes",t)},o.nodeInTree=function(e,t,i){const n=e.nodes;if((0,r.Z)(n)){const s=t.length;for(let a=0;a<s;a++){const s=t[a],c=n[s];if((0,r.Z)(c)){let t=i(c,s);if((0,r.Z)(t))return t;const n=c.children;if((0,r.Z)(n)&&(t=o.nodeInTree(e,n,i),(0,r.Z)(t)))return t}}}},o.nodeInScene=function(e,t,i){const n=t.nodes;if((0,r.Z)(n))return o.nodeInTree(e,n,i)},o.program=function(e,t){return(0,n.Z)(e,"KHR_techniques_webgl")?o.object(e.extensions.KHR_techniques_webgl.programs,t):o.topLevel(e,"programs",t)},o.sampler=function(e,t){return o.topLevel(e,"samplers",t)},o.scene=function(e,t){return o.topLevel(e,"scenes",t)},o.shader=function(e,t){return(0,n.Z)(e,"KHR_techniques_webgl")?o.object(e.extensions.KHR_techniques_webgl.shaders,t):o.topLevel(e,"shaders",t)},o.skin=function(e,t){return o.topLevel(e,"skins",t)},o.skinJoint=function(e,t){const i=e.joints;if((0,r.Z)(i)){const e=i.length;for(let n=0;n<e;n++){const e=t(i[n]);if((0,r.Z)(e))return e}}},o.techniqueAttribute=function(e,t){const i=e.attributes;for(const e in i)if(Object.prototype.hasOwnProperty.call(i,e)){const n=t(i[e],e);if((0,r.Z)(n))return n}},o.techniqueUniform=function(e,t){const i=e.uniforms;for(const e in i)if(Object.prototype.hasOwnProperty.call(i,e)){const n=t(i[e],e);if((0,r.Z)(n))return n}},o.techniqueParameter=function(e,t){const i=e.parameters;for(const e in i)if(Object.prototype.hasOwnProperty.call(i,e)){const n=t(i[e],e);if((0,r.Z)(n))return n}},o.technique=function(e,t){return(0,n.Z)(e,"KHR_techniques_webgl")?o.object(e.extensions.KHR_techniques_webgl.techniques,t):o.topLevel(e,"techniques",t)},o.texture=function(e,t){return o.topLevel(e,"textures",t)};const s=o},97523:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(48564);const r=function(e,t){const i={byteLength:t.length,extras:{_pipeline:{source:t}}},r={buffer:(0,n.Z)(e.buffers,i),byteOffset:0,byteLength:t.length};return(0,n.Z)(e.bufferViews,r)}},19632:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(48564),r=i(794130),o=i(675622),s=i(406144),a=i(426468),c=i(619287);function u(e){(0,a.Z)(e)&&(e.texCoord=(0,s.Z)(e.texCoord,0))}const l=function(e){r.Z.accessor(e,(function(e){(0,a.Z)(e.bufferView)&&(e.byteOffset=(0,s.Z)(e.byteOffset,0))})),r.Z.bufferView(e,(function(e){(0,a.Z)(e.buffer)&&(e.byteOffset=(0,s.Z)(e.byteOffset,0))})),r.Z.mesh(e,(function(t){r.Z.meshPrimitive(t,(function(t){if(t.mode=(0,s.Z)(t.mode,c.Z.TRIANGLES),!(0,a.Z)(t.material)){(0,a.Z)(e.materials)||(e.materials=[]);const i={name:"default"};t.material=(0,n.Z)(e.materials,i)}}))})),r.Z.accessorContainingVertexAttributeData(e,(function(t){const i=e.accessors[t],n=i.bufferView;if(i.normalized=(0,s.Z)(i.normalized,!1),(0,a.Z)(n)){const t=e.bufferViews[n];t.byteStride=(0,o.Z)(e,i),t.target=c.Z.ARRAY_BUFFER}})),r.Z.accessorContainingIndexData(e,(function(t){const i=e.accessors[t].bufferView;(0,a.Z)(i)&&(e.bufferViews[i].target=c.Z.ELEMENT_ARRAY_BUFFER)})),r.Z.material(e,(function(e){const t=(0,s.Z)(e.extensions,s.Z.EMPTY_OBJECT),i=t.KHR_materials_common;if((0,a.Z)(i)){const e=i.technique,t=(0,a.Z)(i.values)?i.values:{};return i.values=t,t.ambient=(0,a.Z)(t.ambient)?t.ambient:[0,0,0,1],t.emission=(0,a.Z)(t.emission)?t.emission:[0,0,0,1],t.transparency=(0,s.Z)(t.transparency,1),t.transparent=(0,s.Z)(t.transparent,!1),t.doubleSided=(0,s.Z)(t.doubleSided,!1),void("CONSTANT"!==e&&(t.diffuse=(0,a.Z)(t.diffuse)?t.diffuse:[0,0,0,1],"LAMBERT"!==e&&(t.specular=(0,a.Z)(t.specular)?t.specular:[0,0,0,1],t.shininess=(0,s.Z)(t.shininess,0))))}e.emissiveFactor=(0,s.Z)(e.emissiveFactor,[0,0,0]),e.alphaMode=(0,s.Z)(e.alphaMode,"OPAQUE"),e.doubleSided=(0,s.Z)(e.doubleSided,!1),"MASK"===e.alphaMode&&(e.alphaCutoff=(0,s.Z)(e.alphaCutoff,.5));const n=t.KHR_techniques_webgl;(0,a.Z)(n)&&r.Z.materialValue(e,(function(e){(0,a.Z)(e.index)&&u(e)})),u(e.emissiveTexture),u(e.normalTexture),u(e.occlusionTexture);const o=e.pbrMetallicRoughness;(0,a.Z)(o)&&(o.baseColorFactor=(0,s.Z)(o.baseColorFactor,[1,1,1,1]),o.metallicFactor=(0,s.Z)(o.metallicFactor,1),o.roughnessFactor=(0,s.Z)(o.roughnessFactor,1),u(o.baseColorTexture),u(o.metallicRoughnessTexture));const c=t.KHR_materials_pbrSpecularGlossiness;(0,a.Z)(c)&&(c.diffuseFactor=(0,s.Z)(c.diffuseFactor,[1,1,1,1]),c.specularFactor=(0,s.Z)(c.specularFactor,[1,1,1]),c.glossinessFactor=(0,s.Z)(c.glossinessFactor,1),u(c.specularGlossinessTexture))})),r.Z.animation(e,(function(e){r.Z.animationSampler(e,(function(e){e.interpolation=(0,s.Z)(e.interpolation,"LINEAR")}))}));const t=function(e){const t={};return r.Z.animation(e,(function(e){r.Z.animationChannel(e,(function(e){const i=e.target,n=i.node,r=i.path;"translation"!==r&&"rotation"!==r&&"scale"!==r||(t[n]=!0)}))})),t}(e);return r.Z.node(e,(function(e,i){(0,a.Z)(t[i])||(0,a.Z)(e.translation)||(0,a.Z)(e.rotation)||(0,a.Z)(e.scale)?(e.translation=(0,s.Z)(e.translation,[0,0,0]),e.rotation=(0,s.Z)(e.rotation,[0,0,0,1]),e.scale=(0,s.Z)(e.scale,[1,1,1])):e.matrix=(0,s.Z)(e.matrix,[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])})),r.Z.sampler(e,(function(e){e.wrapS=(0,s.Z)(e.wrapS,c.Z.REPEAT),e.wrapT=(0,s.Z)(e.wrapT,c.Z.REPEAT)})),(0,a.Z)(e.scenes)&&!(0,a.Z)(e.scene)&&(e.scene=0),e}},586284:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(805523),r=i(48564),o=i(426468);const s=function(e,t){let i=e.extensionsRequired;(0,o.Z)(i)||(i=[],e.extensionsRequired=i),(0,r.Z)(i,t,!0),(0,n.Z)(e,t)}},805523:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(48564),r=i(426468);const o=function(e,t){let i=e.extensionsUsed;(0,r.Z)(i)||(i=[],e.extensionsUsed=i),(0,n.Z)(i,t,!0)}},943244:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(794130),r=i(426468);function o(e){e.extras=(0,r.Z)(e.extras)?e.extras:{},e.extras._pipeline=(0,r.Z)(e.extras._pipeline)?e.extras._pipeline:{}}const s=function(e){return n.Z.shader(e,(function(e){o(e)})),n.Z.buffer(e,(function(e){o(e)})),n.Z.image(e,(function(e){o(e)})),o(e),e}},48564:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(406144);const r=function(e,t,i){if(i=(0,n.Z)(i,!1)){const i=e.indexOf(t);if(i>-1)return i}return e.push(t),e.length-1}},691741:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(675622),r=i(306333),o=i(597722),s=i(170099),a=i(997274),c=i(426468);const u=function(e,t){const i=e.bufferViews,u=e.buffers,l=t.bufferView,h=(0,o.Z)(t.type);if(!(0,c.Z)(t.bufferView))return{min:(0,s.Z)(new Array(h),0),max:(0,s.Z)(new Array(h),0)};const d=(0,s.Z)(new Array(h),Number.POSITIVE_INFINITY),f=(0,s.Z)(new Array(h),Number.NEGATIVE_INFINITY),p=i[l],m=u[p.buffer].extras._pipeline.source,_=t.count,Z=(0,n.Z)(e,t);let g=t.byteOffset+p.byteOffset+m.byteOffset;const y=t.componentType,b=a.Z.getSizeInBytes(y),A=new DataView(m.buffer),w=new Array(h),v=(0,r.Z)(y);for(let e=0;e<_;e++){v(A,g,h,b,w);for(let e=0;e<h;e++){const t=w[e];d[e]=Math.min(d[e],t),f[e]=Math.max(f[e],t)}g+=Z}return{min:d,max:f}}},629226:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(794130),r=i(357299),o=i(426468);const s=function(e,t){r.Z.typeOf.object("material",e),r.Z.defined("handler",t);const i=e.pbrMetallicRoughness;if((0,o.Z)(i)){if((0,o.Z)(i.baseColorTexture)){const e=i.baseColorTexture,n=t(e.index,e);if((0,o.Z)(n))return n}if((0,o.Z)(i.metallicRoughnessTexture)){const e=i.metallicRoughnessTexture,n=t(e.index,e);if((0,o.Z)(n))return n}}if((0,o.Z)(e.extensions)){const i=e.extensions.KHR_materials_pbrSpecularGlossiness;if((0,o.Z)(i)){if((0,o.Z)(i.diffuseTexture)){const e=i.diffuseTexture,n=t(e.index,e);if((0,o.Z)(n))return n}if((0,o.Z)(i.specularGlossinessTexture)){const e=i.specularGlossinessTexture,n=t(e.index,e);if((0,o.Z)(n))return n}}const n=e.extensions.KHR_materials_common;if((0,o.Z)(n)){const e=n.values.diffuse,i=n.values.ambient,r=n.values.emission,s=n.values.specular;if((0,o.Z)(e)&&(0,o.Z)(e.index)){const i=t(e.index,e);if((0,o.Z)(i))return i}if((0,o.Z)(i)&&(0,o.Z)(i.index)){const e=t(i.index,i);if((0,o.Z)(e))return e}if((0,o.Z)(r)&&(0,o.Z)(r.index)){const e=t(r.index,r);if((0,o.Z)(e))return e}if((0,o.Z)(s)&&(0,o.Z)(s.index)){const e=t(s.index,s);if((0,o.Z)(e))return e}}}const s=n.Z.materialValue(e,(function(e){if((0,o.Z)(e.index)){const i=t(e.index,e);if((0,o.Z)(i))return i}}));if((0,o.Z)(s))return s;if((0,o.Z)(e.emissiveTexture)){const i=e.emissiveTexture,n=t(i.index,i);if((0,o.Z)(n))return n}if((0,o.Z)(e.normalTexture)){const i=e.normalTexture,n=t(i.index,i);if((0,o.Z)(n))return n}if((0,o.Z)(e.occlusionTexture)){const i=e.occlusionTexture,n=t(i.index,i);if((0,o.Z)(n))return n}}},675622:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(597722),r=i(997274),o=i(426468);const s=function(e,t){const i=t.bufferView;if((0,o.Z)(i)){const t=e.bufferViews[i];if((0,o.Z)(t.byteStride)&&t.byteStride>0)return t.byteStride}return r.Z.getSizeInBytes(t.componentType)*(0,n.Z)(t.type)}},306333:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(997274);const r=function(e){switch(e){case n.Z.BYTE:return function(e,t,i,n,r){for(let o=0;o<i;++o)r[o]=e.getInt8(t+o*n)};case n.Z.UNSIGNED_BYTE:return function(e,t,i,n,r){for(let o=0;o<i;++o)r[o]=e.getUint8(t+o*n)};case n.Z.SHORT:return function(e,t,i,n,r){for(let o=0;o<i;++o)r[o]=e.getInt16(t+o*n,!0)};case n.Z.UNSIGNED_SHORT:return function(e,t,i,n,r){for(let o=0;o<i;++o)r[o]=e.getUint16(t+o*n,!0)};case n.Z.INT:return function(e,t,i,n,r){for(let o=0;o<i;++o)r[o]=e.getInt32(t+o*n,!0)};case n.Z.UNSIGNED_INT:return function(e,t,i,n,r){for(let o=0;o<i;++o)r[o]=e.getUint32(t+o*n,!0)};case n.Z.FLOAT:return function(e,t,i,n,r){for(let o=0;o<i;++o)r[o]=e.getFloat32(t+o*n,!0)};case n.Z.DOUBLE:return function(e,t,i,n,r){for(let o=0;o<i;++o)r[o]=e.getFloat64(t+o*n,!0)}}}},852593:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});var n=i(805523),r=i(794130),o=i(406144),s=i(426468),a=i(619287);const c=[a.Z.FUNC_ADD,a.Z.FUNC_ADD],u=[a.Z.ONE,a.Z.ZERO,a.Z.ONE,a.Z.ZERO];function l(e,t){const i=e.enable;return!!(0,s.Z)(i)&&i.indexOf(t)>-1}const h=[a.Z.ZERO,a.Z.ONE,a.Z.SRC_COLOR,a.Z.ONE_MINUS_SRC_COLOR,a.Z.SRC_ALPHA,a.Z.ONE_MINUS_SRC_ALPHA,a.Z.DST_ALPHA,a.Z.ONE_MINUS_DST_ALPHA,a.Z.DST_COLOR,a.Z.ONE_MINUS_DST_COLOR];function d(e,t){if(!(0,s.Z)(e))return t;for(let i=0;i<4;i++)if(-1===h.indexOf(e[i]))return t;return e}const f=function(e){const t={},i={},h=e.techniques;return(0,s.Z)(h)?(r.Z.technique(e,(function(e,n){const r=e.states;if((0,s.Z)(r)){const h=i[n]={};if(l(r,a.Z.BLEND)){h.alphaMode="BLEND";const e=r.functions;(0,s.Z)(e)&&((0,s.Z)(e.blendEquationSeparate)||(0,s.Z)(e.blendFuncSeparate))&&(t[n]={blendEquation:(0,o.Z)(e.blendEquationSeparate,c),blendFactors:d(e.blendFuncSeparate,u)})}l(r,a.Z.CULL_FACE)||(h.doubleSided=!0),delete e.states}})),Object.keys(t).length>0&&((0,s.Z)(e.extensions)||(e.extensions={}),(0,n.Z)(e,"KHR_blend")),r.Z.material(e,(function(e){if((0,s.Z)(e.technique)){const n=i[e.technique];r.Z.objectLegacy(n,(function(t,i){e[i]=t}));const o=t[e.technique];(0,s.Z)(o)&&((0,s.Z)(e.extensions)||(e.extensions={}),e.extensions.KHR_blend=o)}})),e):e}},715797:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(805523),r=i(586284),o=i(48564),s=i(794130),a=i(426468);const c=function(e){const t=e.techniques,i={},c={},u={};if((0,a.Z)(t)){const t={programs:[],shaders:[],techniques:[]},l=e.glExtensionsUsed;delete e.glExtensionsUsed,s.Z.technique(e,(function(n,r){const h={name:n.name,program:void 0,attributes:{},uniforms:{}};let d;if(s.Z.techniqueAttribute(n,(function(e,t){d=n.parameters[e],h.attributes[t]={semantic:d.semantic}})),s.Z.techniqueUniform(n,(function(e,t){d=n.parameters[e],h.uniforms[t]={count:d.count,node:d.node,type:d.type,semantic:d.semantic,value:d.value},(0,a.Z)(i[r])||(i[r]={}),i[r][e]=t})),(0,a.Z)(u[n.program]))h.program=u[n.program];else{const i=e.programs[n.program],r={name:i.name,fragmentShader:void 0,vertexShader:void 0,glExtensions:l},s=e.shaders[i.fragmentShader];r.fragmentShader=(0,o.Z)(t.shaders,s,!0);const a=e.shaders[i.vertexShader];r.vertexShader=(0,o.Z)(t.shaders,a,!0),h.program=(0,o.Z)(t.programs,r),u[n.program]=h.program}c[r]=(0,o.Z)(t.techniques,h)})),t.techniques.length>0&&((0,a.Z)(e.extensions)||(e.extensions={}),e.extensions.KHR_techniques_webgl=t,(0,n.Z)(e,"KHR_techniques_webgl"),(0,r.Z)(e,"KHR_techniques_webgl"))}return s.Z.material(e,(function(e){if((0,a.Z)(e.technique)){const t={technique:c[e.technique]};s.Z.objectLegacy(e.values,(function(n,r){(0,a.Z)(t.values)||(t.values={});const o=i[e.technique][r];t.values[o]=n})),(0,a.Z)(e.extensions)||(e.extensions={}),e.extensions.KHR_techniques_webgl=t}delete e.technique,delete e.values})),delete e.techniques,delete e.programs,delete e.shaders,e}},761766:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(943244),r=i(740802),o=i(406144),s=i(426468),a=i(707009),c=i(482103),u=i(50128);function l(e,t,i){const n=new DataView(e.buffer),r=new Array(i);for(let o=0;o<i;++o)r[o]=n.getUint32(e.byteOffset+t+4*o,!0);return r}const h=function(e){if("glTF"!==(0,a.Z)(e))throw new u.Z("File is not valid binary glTF");const t=l(e,0,5),i=t[1];if(1!==i&&2!==i)throw new u.Z("Binary glTF version is not 1 or 2");return 1===i?function(e,t){const i=t[2],a=t[3];if(0!==t[4])throw new u.Z("Binary glTF scene format is not JSON");const l=20+a,h=(0,c.Z)(e,20,a),d=JSON.parse(h);(0,n.Z)(d);const f=e.subarray(l,i),p=d.buffers;if((0,s.Z)(p)&&Object.keys(p).length>0){const e=(0,o.Z)(p.binary_glTF,p.KHR_binary_glTF);(0,s.Z)(e)&&(e.extras._pipeline.source=f,delete e.uri)}return(0,r.Z)(d,"KHR_binary_glTF"),d}(e,t):function(e,t){const i=t[2];let r,o,a=12;for(;a<i;){const t=l(e,a,2),i=t[0],s=t[1];a+=8;const u=e.subarray(a,a+i);if(a+=i,1313821514===s){const e=(0,c.Z)(u);r=JSON.parse(e),(0,n.Z)(r)}else 5130562===s&&(o=u)}if((0,s.Z)(r)&&(0,s.Z)(o)){const e=r.buffers;(0,s.Z)(e)&&e.length>0&&(e[0].extras._pipeline.source=o)}return r}(e,t)}},707843:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(675622),r=i(306333),o=i(597722),s=i(170099),a=i(997274),c=i(426468);const u=function(e,t){const i=(0,n.Z)(e,t),u=a.Z.getSizeInBytes(t.componentType),l=(0,o.Z)(t.type),h=t.count,d=new Array(l*h);if(!(0,c.Z)(t.bufferView))return(0,s.Z)(d,0),d;const f=e.bufferViews[t.bufferView],p=e.buffers[f.buffer].extras._pipeline.source;let m=t.byteOffset+f.byteOffset+p.byteOffset;const _=new DataView(p.buffer),Z=new Array(l),g=(0,r.Z)(t.componentType);for(let e=0;e<h;++e){g(_,m,l,u,Z);for(let t=0;t<l;++t)d[e*l+t]=Z[t];m+=i}return d}},529104:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(794130),r=i(426468);function o(e){(0,r.Z)(e.extras)&&((0,r.Z)(e.extras._pipeline)&&delete e.extras._pipeline,0===Object.keys(e.extras).length&&delete e.extras)}const s=function(e){return n.Z.shader(e,(function(e){o(e)})),n.Z.buffer(e,(function(e){o(e)})),n.Z.image(e,(function(e){o(e)})),o(e),e}},769369:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});var n=i(794130),r=i(629226),o=i(934804),s=i(406144),a=i(426468);const c=["mesh","node","material","accessor","bufferView","buffer","texture","sampler","image"],u={accessor:"accessors",buffer:"buffers",bufferView:"bufferViews",image:"images",node:"nodes",material:"materials",mesh:"meshes",sampler:"samplers",texture:"textures"};function l(){}function h(){}function d(e,t,i){const n=e.nodes[t];return!((0,a.Z)(n.mesh)||(0,a.Z)(n.camera)||(0,a.Z)(n.skin)||(0,a.Z)(n.weights)||(0,a.Z)(n.extras)||(0,a.Z)(n.extensions)&&0!==Object.keys(n.extensions).length||(0,a.Z)(i[t])||(0,a.Z)(n.children)&&0!==n.children.filter((function(t){return!d(e,t,i)})).length)}l.accessor=function(e,t){e.accessors.splice(t,1),n.Z.mesh(e,(function(e){n.Z.meshPrimitive(e,(function(e){n.Z.meshPrimitiveAttribute(e,(function(i,n){i>t&&e.attributes[n]--})),n.Z.meshPrimitiveTarget(e,(function(e){n.Z.meshPrimitiveTargetAttribute(e,(function(i,n){i>t&&e[n]--}))}));const i=e.indices;(0,a.Z)(i)&&i>t&&e.indices--}))})),n.Z.skin(e,(function(e){(0,a.Z)(e.inverseBindMatrices)&&e.inverseBindMatrices>t&&e.inverseBindMatrices--})),n.Z.animation(e,(function(e){n.Z.animationSampler(e,(function(e){(0,a.Z)(e.input)&&e.input>t&&e.input--,(0,a.Z)(e.output)&&e.output>t&&e.output--}))}))},l.buffer=function(e,t){e.buffers.splice(t,1),n.Z.bufferView(e,(function(e){(0,a.Z)(e.buffer)&&e.buffer>t&&e.buffer--,(0,a.Z)(e.extensions)&&(0,a.Z)(e.extensions.EXT_meshopt_compression)&&e.extensions.EXT_meshopt_compression.buffer--}))},l.bufferView=function(e,t){if(e.bufferViews.splice(t,1),n.Z.accessor(e,(function(e){(0,a.Z)(e.bufferView)&&e.bufferView>t&&e.bufferView--})),n.Z.shader(e,(function(e){(0,a.Z)(e.bufferView)&&e.bufferView>t&&e.bufferView--})),n.Z.image(e,(function(e){(0,a.Z)(e.bufferView)&&e.bufferView>t&&e.bufferView--})),(0,o.Z)(e,"KHR_draco_mesh_compression")&&n.Z.mesh(e,(function(e){n.Z.meshPrimitive(e,(function(e){(0,a.Z)(e.extensions)&&(0,a.Z)(e.extensions.KHR_draco_mesh_compression)&&e.extensions.KHR_draco_mesh_compression.bufferView>t&&e.extensions.KHR_draco_mesh_compression.bufferView--}))})),(0,o.Z)(e,"EXT_feature_metadata")){const i=e.extensions.EXT_feature_metadata.featureTables;for(const e in i)if(i.hasOwnProperty(e)){const n=i[e].properties;if((0,a.Z)(n))for(const e in n)if(n.hasOwnProperty(e)){const i=n[e];(0,a.Z)(i.bufferView)&&i.bufferView>t&&i.bufferView--,(0,a.Z)(i.arrayOffsetBufferView)&&i.arrayOffsetBufferView>t&&i.arrayOffsetBufferView--,(0,a.Z)(i.stringOffsetBufferView)&&i.stringOffsetBufferView>t&&i.stringOffsetBufferView--}}}},l.image=function(e,t){e.images.splice(t,1),n.Z.texture(e,(function(e){(0,a.Z)(e.source)&&e.source>t&&--e.source;const i=e.extensions;(0,a.Z)(i)&&(0,a.Z)(i.EXT_texture_webp)&&i.EXT_texture_webp.source>t?--e.extensions.EXT_texture_webp.source:(0,a.Z)(i)&&(0,a.Z)(i.KHR_texture_basisu)&&i.KHR_texture_basisu.source>t&&--e.extensions.KHR_texture_basisu.source}))},l.mesh=function(e,t){e.meshes.splice(t,1),n.Z.node(e,(function(e){(0,a.Z)(e.mesh)&&(e.mesh>t?e.mesh--:e.mesh===t&&delete e.mesh)}))},l.node=function(e,t){e.nodes.splice(t,1),n.Z.skin(e,(function(e){(0,a.Z)(e.skeleton)&&e.skeleton>t&&e.skeleton--,e.joints=e.joints.map((function(e){return e>t?e-1:e}))})),n.Z.animation(e,(function(e){n.Z.animationChannel(e,(function(e){(0,a.Z)(e.target)&&(0,a.Z)(e.target.node)&&e.target.node>t&&e.target.node--}))})),n.Z.technique(e,(function(e){n.Z.techniqueUniform(e,(function(e){(0,a.Z)(e.node)&&e.node>t&&e.node--}))})),n.Z.node(e,(function(e){(0,a.Z)(e.children)&&(e.children=e.children.filter((function(e){return e!==t})).map((function(e){return e>t?e-1:e})))})),n.Z.scene(e,(function(e){e.nodes=e.nodes.filter((function(e){return e!==t})).map((function(e){return e>t?e-1:e}))}))},l.material=function(e,t){e.materials.splice(t,1),n.Z.mesh(e,(function(e){n.Z.meshPrimitive(e,(function(e){(0,a.Z)(e.material)&&e.material>t&&e.material--}))}))},l.sampler=function(e,t){e.samplers.splice(t,1),n.Z.texture(e,(function(e){(0,a.Z)(e.sampler)&&e.sampler>t&&--e.sampler}))},l.texture=function(e,t){if(e.textures.splice(t,1),n.Z.material(e,(function(e){(0,r.Z)(e,(function(e,i){i.index>t&&--i.index}))})),(0,o.Z)(e,"EXT_feature_metadata")){n.Z.mesh(e,(function(e){n.Z.meshPrimitive(e,(function(e){const i=e.extensions;if((0,a.Z)(i)&&(0,a.Z)(i.EXT_feature_metadata)){const e=i.EXT_feature_metadata.featureIdTextures;if((0,a.Z)(e)){const i=e.length;for(let n=0;n<i;++n){const i=e[n].featureIds.texture;i.index>t&&--i.index}}}}))}));const i=e.extensions.EXT_feature_metadata.featureTextures;for(const e in i)if(i.hasOwnProperty(e)){const n=i[e].properties;if((0,a.Z)(n))for(const e in n)if(n.hasOwnProperty(e)){const i=n[e].texture;i.index>t&&--i.index}}}},h.accessor=function(e){const t={};return n.Z.mesh(e,(function(e){n.Z.meshPrimitive(e,(function(e){n.Z.meshPrimitiveAttribute(e,(function(e){t[e]=!0})),n.Z.meshPrimitiveTarget(e,(function(e){n.Z.meshPrimitiveTargetAttribute(e,(function(e){t[e]=!0}))}));const i=e.indices;(0,a.Z)(i)&&(t[i]=!0)}))})),n.Z.skin(e,(function(e){(0,a.Z)(e.inverseBindMatrices)&&(t[e.inverseBindMatrices]=!0)})),n.Z.animation(e,(function(e){n.Z.animationSampler(e,(function(e){(0,a.Z)(e.input)&&(t[e.input]=!0),(0,a.Z)(e.output)&&(t[e.output]=!0)}))})),(0,o.Z)(e,"EXT_mesh_gpu_instancing")&&n.Z.node(e,(function(e){(0,a.Z)(e.extensions)&&(0,a.Z)(e.extensions.EXT_mesh_gpu_instancing)&&Object.keys(e.extensions.EXT_mesh_gpu_instancing.attributes).forEach((function(i){const n=e.extensions.EXT_mesh_gpu_instancing.attributes[i];t[n]=!0}))})),t},h.buffer=function(e){const t={};return n.Z.bufferView(e,(function(e){(0,a.Z)(e.buffer)&&(t[e.buffer]=!0),(0,a.Z)(e.extensions)&&(0,a.Z)(e.extensions.EXT_meshopt_compression)&&(t[e.extensions.EXT_meshopt_compression.buffer]=!0)})),t},h.bufferView=function(e){const t={};if(n.Z.accessor(e,(function(e){(0,a.Z)(e.bufferView)&&(t[e.bufferView]=!0)})),n.Z.shader(e,(function(e){(0,a.Z)(e.bufferView)&&(t[e.bufferView]=!0)})),n.Z.image(e,(function(e){(0,a.Z)(e.bufferView)&&(t[e.bufferView]=!0)})),(0,o.Z)(e,"KHR_draco_mesh_compression")&&n.Z.mesh(e,(function(e){n.Z.meshPrimitive(e,(function(e){(0,a.Z)(e.extensions)&&(0,a.Z)(e.extensions.KHR_draco_mesh_compression)&&(t[e.extensions.KHR_draco_mesh_compression.bufferView]=!0)}))})),(0,o.Z)(e,"EXT_feature_metadata")){const i=e.extensions.EXT_feature_metadata.featureTables;for(const e in i)if(i.hasOwnProperty(e)){const n=i[e].properties;if((0,a.Z)(n))for(const e in n)if(n.hasOwnProperty(e)){const i=n[e];(0,a.Z)(i.bufferView)&&(t[i.bufferView]=!0),(0,a.Z)(i.arrayOffsetBufferView)&&(t[i.arrayOffsetBufferView]=!0),(0,a.Z)(i.stringOffsetBufferView)&&(t[i.stringOffsetBufferView]=!0)}}}return t},h.image=function(e){const t={};return n.Z.texture(e,(function(e){(0,a.Z)(e.source)&&(t[e.source]=!0),(0,a.Z)(e.extensions)&&(0,a.Z)(e.extensions.EXT_texture_webp)?t[e.extensions.EXT_texture_webp.source]=!0:(0,a.Z)(e.extensions)&&(0,a.Z)(e.extensions.KHR_texture_basisu)&&(t[e.extensions.KHR_texture_basisu.source]=!0)})),t},h.mesh=function(e){const t={};return n.Z.node(e,(function(i){if((0,a.Z)(i.mesh&&(0,a.Z)(e.meshes))){const n=e.meshes[i.mesh];(0,a.Z)(n)&&(0,a.Z)(n.primitives)&&n.primitives.length>0&&(t[i.mesh]=!0)}})),t},h.node=function(e){const t={};return n.Z.skin(e,(function(e){(0,a.Z)(e.skeleton)&&(t[e.skeleton]=!0),n.Z.skinJoint(e,(function(e){t[e]=!0}))})),n.Z.animation(e,(function(e){n.Z.animationChannel(e,(function(e){(0,a.Z)(e.target)&&(0,a.Z)(e.target.node)&&(t[e.target.node]=!0)}))})),n.Z.technique(e,(function(e){n.Z.techniqueUniform(e,(function(e){(0,a.Z)(e.node)&&(t[e.node]=!0)}))})),n.Z.node(e,(function(i,n){d(e,n,t)||(t[n]=!0)})),t},h.material=function(e){const t={};return n.Z.mesh(e,(function(e){n.Z.meshPrimitive(e,(function(e){(0,a.Z)(e.material)&&(t[e.material]=!0)}))})),t},h.texture=function(e){const t={};if(n.Z.material(e,(function(e){(0,r.Z)(e,(function(e){t[e]=!0}))})),(0,o.Z)(e,"EXT_feature_metadata")){n.Z.mesh(e,(function(e){n.Z.meshPrimitive(e,(function(e){const i=e.extensions;if((0,a.Z)(i)&&(0,a.Z)(i.EXT_feature_metadata)){const e=i.EXT_feature_metadata.featureIdTextures;if((0,a.Z)(e)){const i=e.length;for(let n=0;n<i;++n){const i=e[n].featureIds.texture;t[i.index]=!0}}}}))}));const i=e.extensions.EXT_feature_metadata.featureTextures;for(const e in i)if(i.hasOwnProperty(e)){const n=i[e].properties;if((0,a.Z)(n))for(const e in n)if(n.hasOwnProperty(e)){const i=n[e].texture;t[i.index]=!0}}}return t},h.sampler=function(e){const t={};return n.Z.texture(e,(function(e){(0,a.Z)(e.sampler)&&(t[e.sampler]=!0)})),t};const f=function(e,t){return t=(0,s.Z)(t,c),c.forEach((function(i){t.indexOf(i)>-1&&function(e,t){const i=e[u[t]];if((0,a.Z)(i)){let n=0;const r=h[t](e),o=i.length;for(let i=0;i<o;++i)r[i]||(l[t](e,i-n),n++)}}(e,i)})),e}},626809:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(97523),r=i(794130),o=i(707843),s=i(997274),a=i(619287);function c(e,t,i){const r=s.Z.createTypedArray(i,(0,o.Z)(e,t)),a=new Uint8Array(r.buffer);t.bufferView=(0,n.Z)(e,a),t.componentType=i,t.byteOffset=0}const u=function(e){let t;return r.Z.accessorWithSemantic(e,"JOINTS_0",(function(i){const n=e.accessors[i];t=n.componentType,t===a.Z.BYTE?c(e,n,s.Z.UNSIGNED_BYTE):t!==a.Z.UNSIGNED_BYTE&&t!==a.Z.UNSIGNED_SHORT&&c(e,n,s.Z.UNSIGNED_SHORT)})),r.Z.accessorWithSemantic(e,"WEIGHTS_0",(function(i){const n=e.accessors[i];t=n.componentType,t===a.Z.BYTE?c(e,n,s.Z.UNSIGNED_BYTE):t===a.Z.SHORT&&c(e,n,s.Z.UNSIGNED_SHORT)})),e}},68822:(e,t,i)=>{"use strict";i.d(t,{Z:()=>D});var n=i(805523),r=i(48564),o=i(691741),s=i(794130),a=i(675622),c=i(597722),u=i(852593),l=i(715797),h=i(769369),d=i(626809),f=i(919382),p=i(114754),m=i(556592),_=i(997274),Z=i(406144),g=i(426468),y=i(583917),b=i(129782),A=i(619287);const w={.8:function(e){(0,g.Z)(e.asset)||(e.asset={});const t=e.asset;if(t.version="1.0","string"==typeof t.profile){const e=t.profile.split(" ");t.profile={api:e[0],version:e[1]}}else t.profile={};if((0,g.Z)(e.version)&&delete e.version,v(e),function(e){const t=e.meshes;for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const i=t[e].primitives;if((0,g.Z)(i)){const e=i.length;for(let t=0;t<e;++t){const e=i[t],n=(0,Z.Z)(e.primitive,A.Z.TRIANGLES);e.mode=(0,Z.Z)(e.mode,n),delete e.primitive}}}}(e),function(e){const t=e.nodes,i=new f.Z,n=new b.Z;for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const r=t[e];if((0,g.Z)(r.rotation)){const e=r.rotation;f.Z.fromArray(e,0,i),b.Z.fromAxisAngle(i,e[3],n),r.rotation=[n.x,n.y,n.z,n.w]}const o=r.instanceSkin;(0,g.Z)(o)&&(r.skeletons=o.skeletons,r.skin=o.skin,r.meshes=o.meshes,delete r.instanceSkin)}}(e),function(e){const t=e.animations,i=e.accessors,n=e.bufferViews,r=e.buffers,o={},s=new f.Z,a=new b.Z;for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const u=t[e],l=u.channels,h=u.parameters,d=u.samplers;if((0,g.Z)(l)){const e=l.length;for(let t=0;t<e;++t){const e=l[t];if("rotation"===e.target.path){const t=h[d[e.sampler].output];if((0,g.Z)(o[t]))continue;o[t]=!0;const u=i[t],l=n[u.bufferView],p=r[l.buffer].extras._pipeline.source,m=p.byteOffset+l.byteOffset+u.byteOffset,Z=u.componentType,y=u.count,A=(0,c.Z)(u.type),w=u.count*A,v=_.Z.createArrayBufferView(Z,p.buffer,m,w);for(let e=0;e<y;e++){const t=e*A;f.Z.unpack(v,t,s);const i=v[t+3];b.Z.fromAxisAngle(s,i,a),b.Z.pack(a,v,t)}}}}}}(e),function(e){const t=e.techniques;for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const i=t[e],n=i.passes;if((0,g.Z)(n)){const e=(0,Z.Z)(i.pass,"defaultPass");if(Object.prototype.hasOwnProperty.call(n,e)){const t=n[e],r=t.instanceProgram;i.attributes=(0,Z.Z)(i.attributes,r.attributes),i.program=(0,Z.Z)(i.program,r.program),i.uniforms=(0,Z.Z)(i.uniforms,r.uniforms),i.states=(0,Z.Z)(i.states,t.states)}delete i.passes,delete i.pass}}}(e),(0,g.Z)(e.allExtensions)&&(e.extensionsUsed=e.allExtensions,delete e.allExtensions),(0,g.Z)(e.lights)){const t=(0,Z.Z)(e.extensions,{});e.extensions=t;const i=(0,Z.Z)(t.KHR_materials_common,{});t.KHR_materials_common=i,i.lights=e.lights,delete e.lights,(0,n.Z)(e,"KHR_materials_common")}},"1.0":function(e){e.asset=(0,Z.Z)(e.asset,{}),e.asset.version="2.0",v(e),function(e){const t=e.animations;for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const i=t[e],n=i.parameters;if((0,g.Z)(n)){const e=i.samplers;for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const i=e[t];i.input=n[i.input],i.output=n[i.output]}delete i.parameters}}}(e),function(e){s.Z.node(e,(function(t,i){O(t)&&I(e,i)}))}(e),function(e){let t;const i={accessors:{},animations:{},buffers:{},bufferViews:{},cameras:{},images:{},materials:{},meshes:{},nodes:{},programs:{},samplers:{},scenes:{},shaders:{},skins:{},textures:{},techniques:{}};let n;const o={},a=e.nodes;for(const e in a)Object.prototype.hasOwnProperty.call(a,e)&&(n=a[e].jointName,(0,g.Z)(n)&&(o[n]=e));for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&(0,g.Z)(i[t])){const n={},r=e[t];e[t]=T(r,n),i[t]=n}for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(o[n]=i.nodes[o[n]]);(0,g.Z)(e.scene)&&(e.scene=i.scenes[e.scene]),s.Z.bufferView(e,(function(e){(0,g.Z)(e.buffer)&&(e.buffer=i.buffers[e.buffer])})),s.Z.accessor(e,(function(e){(0,g.Z)(e.bufferView)&&(e.bufferView=i.bufferViews[e.bufferView])})),s.Z.shader(e,(function(e){const t=e.extensions;if((0,g.Z)(t)){const n=t.KHR_binary_glTF;(0,g.Z)(n)&&(e.bufferView=i.bufferViews[n.bufferView],delete t.KHR_binary_glTF),0===Object.keys(t).length&&delete e.extensions}})),s.Z.program(e,(function(e){(0,g.Z)(e.vertexShader)&&(e.vertexShader=i.shaders[e.vertexShader]),(0,g.Z)(e.fragmentShader)&&(e.fragmentShader=i.shaders[e.fragmentShader])})),s.Z.technique(e,(function(e){(0,g.Z)(e.program)&&(e.program=i.programs[e.program]),s.Z.techniqueParameter(e,(function(e){(0,g.Z)(e.node)&&(e.node=i.nodes[e.node]);const t=e.value;"string"==typeof t&&(e.value={index:i.textures[t]})}))})),s.Z.mesh(e,(function(e){s.Z.meshPrimitive(e,(function(e){(0,g.Z)(e.indices)&&(e.indices=i.accessors[e.indices]),s.Z.meshPrimitiveAttribute(e,(function(t,n){e.attributes[n]=i.accessors[t]})),(0,g.Z)(e.material)&&(e.material=i.materials[e.material])}))})),s.Z.node(e,(function(n){let o=n.children;if((0,g.Z)(o)){const e=o.length;for(t=0;t<e;++t)o[t]=i.nodes[o[t]]}if((0,g.Z)(n.meshes)){const s=n.meshes,a=s.length;if(a>0)for(n.mesh=i.meshes[s[0]],t=1;t<a;++t){const a={mesh:i.meshes[s[t]]},c=(0,r.Z)(e.nodes,a);(0,g.Z)(o)||(o=[],n.children=o),o.push(c)}delete n.meshes}if((0,g.Z)(n.camera)&&(n.camera=i.cameras[n.camera]),(0,g.Z)(n.skin)&&(n.skin=i.skins[n.skin]),(0,g.Z)(n.skeletons)){const t=n.skeletons;t.length>0&&(0,g.Z)(n.skin)&&(e.skins[n.skin].skeleton=i.nodes[t[0]]),delete n.skeletons}(0,g.Z)(n.jointName)&&delete n.jointName})),s.Z.skin(e,(function(e){(0,g.Z)(e.inverseBindMatrices)&&(e.inverseBindMatrices=i.accessors[e.inverseBindMatrices]);const n=e.jointNames;if((0,g.Z)(n)){const i=[],r=n.length;for(t=0;t<r;++t)i[t]=o[n[t]];e.joints=i,delete e.jointNames}})),s.Z.scene(e,(function(e){const n=e.nodes;if((0,g.Z)(n)){const e=n.length;for(t=0;t<e;++t)n[t]=i.nodes[n[t]]}})),s.Z.animation(e,(function(e){const t={};e.samplers=T(e.samplers,t),s.Z.animationSampler(e,(function(e){e.input=i.accessors[e.input],e.output=i.accessors[e.output]})),s.Z.animationChannel(e,(function(e){e.sampler=t[e.sampler];const n=e.target;(0,g.Z)(n)&&(n.node=i.nodes[n.id],delete n.id)}))})),s.Z.material(e,(function(e){(0,g.Z)(e.technique)&&(e.technique=i.techniques[e.technique]),s.Z.materialValue(e,(function(t,n){"string"==typeof t&&(e.values[n]={index:i.textures[t]})}));const t=e.extensions;if((0,g.Z)(t)){const e=t.KHR_materials_common;(0,g.Z)(e)&&s.Z.materialValue(e,(function(t,n){"string"==typeof t&&(e.values[n]={index:i.textures[t]})}))}})),s.Z.image(e,(function(e){const t=e.extensions;if((0,g.Z)(t)){const n=t.KHR_binary_glTF;(0,g.Z)(n)&&(e.bufferView=i.bufferViews[n.bufferView],e.mimeType=n.mimeType,delete t.KHR_binary_glTF),0===Object.keys(t).length&&delete e.extensions}})),s.Z.texture(e,(function(e){(0,g.Z)(e.sampler)&&(e.sampler=i.samplers[e.sampler]),(0,g.Z)(e.source)&&(e.source=i.images[e.source])}))}(e),function(e){s.Z.animation(e,(function(e){s.Z.animationSampler(e,(function(e){delete e.name}))}))}(e),function(e){const t=e.asset;delete t.profile,delete t.premultipliedAlpha}(e),function(e){const t=e.extensionsUsed;if(e.extensionsRequired=(0,Z.Z)(e.extensionsRequired,[]),(0,g.Z)(t)){const i=t.length;for(let n=0;n<i;++n){const i=t[n];(0,g.Z)(C[i])&&e.extensionsRequired.push(i)}}}(e),function(e){s.Z.buffer(e,(function(e){(0,g.Z)(e.byteLength)||(e.byteLength=e.extras._pipeline.source.length)})),s.Z.accessor(e,(function(t){const i=t.bufferView;if((0,g.Z)(i)){const n=e.bufferViews[i],r=S(e,t),o=t.byteOffset+t.count*r;n.byteLength=Math.max((0,Z.Z)(n.byteLength,0),o)}}))}(e),function(e){let t,i,n;const o=e.bufferViews,a={};s.Z.accessorContainingVertexAttributeData(e,(function(t){const i=e.accessors[t];(0,g.Z)(i.bufferView)&&(a[i.bufferView]=!0)}));const c={};s.Z.accessor(e,(function(e){(0,g.Z)(e.bufferView)&&(c[e.bufferView]=(0,Z.Z)(c[e.bufferView],[]),c[e.bufferView].push(e))}));for(const s in c)if(Object.prototype.hasOwnProperty.call(c,s)){n=o[s];const u=c[s];u.sort((function(e,t){return e.byteOffset-t.byteOffset}));let l=0,h=0;const d=u.length;for(t=0;t<d;++t){let c=u[t];const f=S(e,c),p=c.byteOffset,_=c.count*f;delete c.byteStride;const Z=t<d-1;if(f!==(Z?S(e,u[t+1]):void 0)){const e=(0,m.Z)(n,!0);a[s]&&(e.byteStride=f),e.byteOffset+=l,e.byteLength=p+_-l;const d=(0,r.Z)(o,e);for(i=h;i<=t;++i)c=u[i],c.bufferView=d,c.byteOffset=c.byteOffset-l;l=Z?u[t+1].byteOffset:void 0,h=t+1}}}(0,h.Z)(e,["accessor","bufferView","buffer"])}(e),function(e){s.Z.accessorWithSemantic(e,"POSITION",(function(t){const i=e.accessors[t];if(!(0,g.Z)(i.min)||!(0,g.Z)(i.max)){const t=(0,o.Z)(e,i);i.min=t.min,i.max=t.max}}))}(e),function(e){s.Z.animation(e,(function(t){s.Z.animationSampler(t,(function(t){const i=e.accessors[t.input];if(!(0,g.Z)(i.min)||!(0,g.Z)(i.max)){const t=(0,o.Z)(e,i);i.min=t.min,i.max=t.max}}))}))}(e),function(e){s.Z.buffer(e,(function(e){delete e.type}))}(e),function(e){s.Z.texture(e,(function(e){delete e.format,delete e.internalFormat,delete e.target,delete e.type}))}(e),function(e){s.Z.mesh(e,(function(e){s.Z.meshPrimitive(e,(function(e){s.Z.meshPrimitiveAttribute(e,(function(t,i){"TEXCOORD"===i?e.attributes.TEXCOORD_0=t:"COLOR"===i&&(e.attributes.COLOR_0=t)})),delete e.attributes.TEXCOORD,delete e.attributes.COLOR}))})),s.Z.technique(e,(function(e){s.Z.techniqueParameter(e,(function(e){const t=e.semantic;(0,g.Z)(t)&&("TEXCOORD"===t?e.semantic="TEXCOORD_0":"COLOR"===t&&(e.semantic="COLOR_0"))}))}))}(e),function(e){const t={};s.Z.mesh(e,(function(e){s.Z.meshPrimitive(e,(function(e){s.Z.meshPrimitiveAttribute(e,(function(e,i){if("_"!==i.charAt(0)){const e=i.search(/_[0-9]+/g);let n,r=i,o="_0";e>=0&&(r=i.substring(0,e),o=i.substring(e));const s=x[r];(0,g.Z)(s)?(n=s+o,t[i]=n):(0,g.Z)(E[r])||(n="_"+i,t[i]=n)}}));for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)){const n=t[i],r=e.attributes[i];(0,g.Z)(r)&&(delete e.attributes[i],e.attributes[n]=r)}}))})),s.Z.technique(e,(function(e){s.Z.techniqueParameter(e,(function(e){const i=t[e.semantic];(0,g.Z)(i)&&(e.semantic=i)}))}))}(e),(0,d.Z)(e),function(e){s.Z.camera(e,(function(e){const t=e.perspective;if((0,g.Z)(t)){const e=t.aspectRatio;(0,g.Z)(e)&&0===e&&delete t.aspectRatio;const i=t.yfov;(0,g.Z)(i)&&0===i&&(t.yfov=1)}}))}(e),(0,u.Z)(e),(0,l.Z)(e),function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const i=e[t];Array.isArray(i)&&0===i.length&&delete e[t]}s.Z.node(e,(function(e){(0,g.Z)(e.children)&&0===e.children.length&&delete e.children}))}(e)},"2.0":void 0};function v(e){const t=e.materials;for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const i=t[e],n=i.instanceTechnique;(0,g.Z)(n)&&(i.technique=n.technique,i.values=n.values,delete i.instanceTechnique)}}function T(e,t){const i=[];for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const r=e[n];t[n]=i.length,i.push(r),(0,g.Z)(r.name)||(r.name=n)}return i}const C={CESIUM_RTC:!0,KHR_materials_common:!0,WEB3D_quantized_attributes:!0},E={POSITION:!0,NORMAL:!0,TANGENT:!0},x={COLOR:"COLOR",JOINT:"JOINTS",JOINTS:"JOINTS",TEXCOORD:"TEXCOORD",WEIGHT:"WEIGHTS",WEIGHTS:"WEIGHTS"};function S(e,t){return(0,g.Z)(t.byteStride)&&0!==t.byteStride?t.byteStride:(0,a.Z)(e,t)}function O(e){return(!(0,g.Z)(e.children)||0===e.children.length)&&(!(0,g.Z)(e.meshes)||0===e.meshes.length)&&!(0,g.Z)(e.camera)&&!(0,g.Z)(e.skin)&&!(0,g.Z)(e.skeletons)&&!(0,g.Z)(e.jointName)&&(!(0,g.Z)(e.translation)||f.Z.fromArray(e.translation).equals(f.Z.ZERO))&&(!(0,g.Z)(e.scale)||f.Z.fromArray(e.scale).equals(new f.Z(1,1,1)))&&(!(0,g.Z)(e.rotation)||p.Z.fromArray(e.rotation).equals(new p.Z(0,0,0,1)))&&(!(0,g.Z)(e.matrix)||y.Z.fromColumnMajorArray(e.matrix).equals(y.Z.IDENTITY))&&!(0,g.Z)(e.extensions)&&!(0,g.Z)(e.extras)}function I(e,t){s.Z.scene(e,(function(e){const i=e.nodes;if((0,g.Z)(i))for(let e=i.length;e>=0;--e)if(i[e]===t)return void i.splice(e,1)})),s.Z.node(e,(function(i,n){if((0,g.Z)(i.children)){const r=i.children.indexOf(t);r>-1&&(i.children.splice(r,1),O(i)&&I(e,n))}})),delete e.nodes[t]}const D=function(e,t){const i=(t=(0,Z.Z)(t,Z.Z.EMPTY_OBJECT)).targetVersion;let n=e.version;e.asset=(0,Z.Z)(e.asset,{version:"1.0"}),e.asset.version=(0,Z.Z)(e.asset.version,"1.0"),n=(0,Z.Z)(n,e.asset.version).toString(),Object.prototype.hasOwnProperty.call(w,n)||((0,g.Z)(n)&&(n=n.substring(0,3)),Object.prototype.hasOwnProperty.call(w,n)||(n="1.0"));let r=w[n];for(;(0,g.Z)(r)&&n!==i;)r(e,t),n=e.asset.version,r=w[n];return e}},162810:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_});var n=i(357299),r=i(362017),o=i(406144),s=i(426468),a=i(100883),c=i(283044),u=i(636664),l=i(655499),h=i(527758),d=i(169474),f=i(495589),p=i(81967),m=i(646754);function _(e){const t=(e=(0,o.Z)(e,o.Z.EMPTY_OBJECT)).resourceCache,i=e.gltf,r=e.textureInfo,s=e.gltfResource,a=e.baseResource,c=e.supportedImageFormats,u=e.cacheKey,l=(0,o.Z)(e.asynchronous,!0);n.Z.typeOf.func("options.resourceCache",t),n.Z.typeOf.object("options.gltf",i),n.Z.typeOf.object("options.textureInfo",r),n.Z.typeOf.object("options.gltfResource",s),n.Z.typeOf.object("options.baseResource",a),n.Z.typeOf.object("options.supportedImageFormats",c);const f=r.index,p=d.Z.getImageIdFromTexture({gltf:i,textureId:f,supportedImageFormats:c});this._resourceCache=t,this._gltf=i,this._textureInfo=r,this._imageId=p,this._gltfResource=s,this._baseResource=a,this._cacheKey=u,this._asynchronous=l,this._imageLoader=void 0,this._image=void 0,this._mipLevels=void 0,this._texture=void 0,this._state=m.Z.UNLOADED,this._promise=h.Z.defer()}function Z(){this.gltf=void 0,this.textureInfo=void 0,this.image=void 0,this.context=void 0,this.texture=void 0}function g(e,t,i,n,o){const h=i.internalFormat;let f=!1;a.Z.isCompressedFormat(h)&&!(0,s.Z)(n)&&(f=!0);const p=d.Z.createSampler({gltf:e,textureInfo:t,compressedTextureNoMipmap:f}),m=p.minificationFilter,_=p.wrapS,Z=p.wrapT,g=m===u.Z.NEAREST_MIPMAP_NEAREST||m===u.Z.NEAREST_MIPMAP_LINEAR||m===u.Z.LINEAR_MIPMAP_NEAREST||m===u.Z.LINEAR_MIPMAP_LINEAR,y=!(0,s.Z)(h)&&g,b=y||_===l.Z.REPEAT||_===l.Z.MIRRORED_REPEAT||Z===l.Z.REPEAT||Z===l.Z.MIRRORED_REPEAT,A=!r.Z.isPowerOfTwo(i.width)||!r.Z.isPowerOfTwo(i.height),w=b&&A;let v;return(0,s.Z)(h)?(!o.webgl2&&a.Z.isCompressedFormat(h)&&A&&b&&console.warn("Compressed texture uses REPEAT or MIRRORED_REPEAT texture wrap mode and dimensions are not powers of two. The texture may be rendered incorrectly."),v=c.Z.create({context:o,source:{arrayBufferView:i.bufferView,mipLevels:n},width:i.width,height:i.height,pixelFormat:i.internalFormat,sampler:p})):(w&&(i=function(e){const t=document.createElement("canvas");return t.width=r.Z.nextPowerOfTwo(e.width),t.height=r.Z.nextPowerOfTwo(e.height),t.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,t.width,t.height),t}(i)),v=c.Z.create({context:o,source:i,sampler:p,flipY:!1,skipColorSpaceConversion:!0})),y&&v.generateMipmap(),v}(0,s.Z)(Object.create)&&(_.prototype=Object.create(p.Z.prototype),_.prototype.constructor=_),Object.defineProperties(_.prototype,{promise:{get:function(){return this._promise.promise}},cacheKey:{get:function(){return this._cacheKey}},texture:{get:function(){return this._texture}}}),_.prototype.load=function(){const e=this._resourceCache.loadImage({gltf:this._gltf,imageId:this._imageId,gltfResource:this._gltfResource,baseResource:this._baseResource});this._imageLoader=e,this._state=m.Z.LOADING;const t=this;e.promise.then((function(){t.isDestroyed()||(t._image=e.image,t._mipLevels=e.mipLevels,t._state=m.Z.PROCESSING)})).otherwise((function(e){t.isDestroyed()||(t.unload(),t._state=m.Z.FAILED,t._promise.reject(t.getError("Failed to load texture",e)))}))},Z.prototype.set=function(e,t,i,n,r){this.gltf=e,this.textureInfo=t,this.image=i,this.mipLevels=n,this.context=r},Z.prototype.execute=function(){this.texture=g(this.gltf,this.textureInfo,this.image,this.mipLevels,this.context)};const y=new Z;_.prototype.process=function(e){if(n.Z.typeOf.object("frameState",e),(0,s.Z)(this._texture))return;if(!(0,s.Z)(this._image))return;let t;if(this._asynchronous){const i=y;if(i.set(this._gltf,this._textureInfo,this._image,this._mipLevels,e.context),!e.jobScheduler.execute(i,f.Z.TEXTURE))return;t=i.texture}else t=g(this._gltf,this._textureInfo,this._image,this._mipLevels,e.context);this.unload(),this._texture=t,this._state=m.Z.READY,this._promise.resolve(this)},_.prototype.unload=function(){(0,s.Z)(this._texture)&&this._texture.destroy(),(0,s.Z)(this._imageLoader)&&this._resourceCache.unload(this._imageLoader),this._imageLoader=void 0,this._image=void 0,this._mipLevels=void 0,this._texture=void 0,this._gltf=void 0}},743391:(e,t,i)=>{"use strict";i.d(t,{Z:()=>g});var n=i(170099),r=i(357299),o=i(406144),s=i(426468),a=i(446938),c=i(636807),u=i(50720),l=i(527758),h=i(295189),d=i(495589),f=i(148306),p=i(81967),m=i(646754),_=i(247976),Z=i(997274);function g(e){const t=(e=(0,o.Z)(e,o.Z.EMPTY_OBJECT)).resourceCache,i=e.gltf,n=e.gltfResource,c=e.baseResource,u=e.bufferViewId,h=e.draco,d=e.attributeSemantic,f=e.accessorId,p=e.cacheKey,_=(0,o.Z)(e.asynchronous,!0),Z=(0,o.Z)(e.dequantize,!1),g=(0,o.Z)(e.loadAsTypedArray,!1);r.Z.typeOf.func("options.resourceCache",t),r.Z.typeOf.object("options.gltf",i),r.Z.typeOf.object("options.gltfResource",n),r.Z.typeOf.object("options.baseResource",c);const y=(0,s.Z)(u),b=(0,s.Z)(h),A=(0,s.Z)(d),w=(0,s.Z)(f);if(y===b)throw new a.Z("One of options.bufferViewId and options.draco must be defined.");if(b&&!A)throw new a.Z("When options.draco is defined options.attributeSemantic must also be defined.");if(b&&!w)throw new a.Z("When options.draco is defined options.accessorId must also be defined.");b&&(r.Z.typeOf.object("options.draco",h),r.Z.typeOf.string("options.attributeSemantic",d),r.Z.typeOf.number("options.accessorId",f)),this._resourceCache=t,this._gltfResource=n,this._baseResource=c,this._gltf=i,this._bufferViewId=u,this._draco=h,this._attributeSemantic=d,this._accessorId=f,this._cacheKey=p,this._asynchronous=_,this._dequantize=Z,this._loadAsTypedArray=g,this._bufferViewLoader=void 0,this._dracoLoader=void 0,this._quantization=void 0,this._typedArray=void 0,this._buffer=void 0,this._state=m.Z.UNLOADED,this._promise=l.Z.defer()}function y(e,t){e.unload(),e._state=m.Z.FAILED,t=e.getError("Failed to load vertex buffer",t),e._promise.reject(t)}function b(){this.typedArray=void 0,this.dequantize=void 0,this.componentType=void 0,this.type=void 0,this.count=void 0,this.context=void 0,this.buffer=void 0}function A(e,t,i,n,r,o){t&&i!==Z.Z.FLOAT&&(e=_.Z.dequantize(e,i,n,r));const s=c.Z.createVertexBuffer({typedArray:e,context:o,usage:u.Z.STATIC_DRAW});return s.vertexArrayDestroyable=!1,s}(0,s.Z)(Object.create)&&(g.prototype=Object.create(p.Z.prototype),g.prototype.constructor=g),Object.defineProperties(g.prototype,{promise:{get:function(){return this._promise.promise}},cacheKey:{get:function(){return this._cacheKey}},buffer:{get:function(){return this._buffer}},typedArray:{get:function(){return this._typedArray}},quantization:{get:function(){return this._quantization}}}),g.prototype.load=function(){(0,s.Z)(this._draco)?function(e){const t=e._resourceCache.loadDraco({gltf:e._gltf,draco:e._draco,gltfResource:e._gltfResource,baseResource:e._baseResource});e._dracoLoader=t,e._state=m.Z.LOADING,t.promise.then((function(){if(e.isDestroyed())return;const i=t.decodedData.vertexAttributes[e._attributeSemantic],r=e._accessorId,o=e._gltf.accessors[r].type,a=i.array,c=i.data.quantization;(0,s.Z)(c)&&(e._quantization=function(e,t,i,r){const o=(1<<e.quantizationBits)-1,s=1/o,a=new f.Z.Quantization;if(a.componentDatatype=t,a.octEncoded=e.octEncoded,a.octEncodedZXY=!0,a.type=r,a.octEncoded)a.type=h.Z.VEC2,a.normalizationRange=o;else{const t=h.Z.getMathType(r);if(t===Number){const t=e.range;a.quantizedVolumeOffset=e.minValues[0],a.quantizedVolumeDimensions=t,a.normalizationRange=o,a.quantizedVolumeStepSize=t*s}else{a.quantizedVolumeOffset=t.unpack(e.minValues),a.normalizationRange=t.unpack((0,n.Z)(new Array(i),o));const r=(0,n.Z)(new Array(i),e.range);a.quantizedVolumeDimensions=t.unpack(r);const c=r.map((function(e){return e*s}));a.quantizedVolumeStepSize=t.unpack(c)}}return a}(c,i.data.componentDatatype,i.data.componentsPerAttribute,o)),e._typedArray=a,e._state=m.Z.PROCESSING})).otherwise((function(t){e.isDestroyed()||y(e,t)}))}(this):function(e){const t=e._resourceCache.loadBufferView({gltf:e._gltf,bufferViewId:e._bufferViewId,gltfResource:e._gltfResource,baseResource:e._baseResource});e._state=m.Z.LOADING,e._bufferViewLoader=t,t.promise.then((function(){e.isDestroyed()||(e._typedArray=t.typedArray,e._state=m.Z.PROCESSING)})).otherwise((function(t){e.isDestroyed()||y(e,t)}))}(this)},b.prototype.set=function(e,t,i,n,r,o){this.typedArray=e,this.dequantize=t,this.componentType=i,this.type=n,this.count=r,this.context=o},b.prototype.execute=function(){this.buffer=A(this.typedArray,this.dequantize,this.componentType,this.type,this.count,this.context)};const w=new b;g.prototype.process=function(e){if(r.Z.typeOf.object("frameState",e),this._state===m.Z.READY)return;const t=this._typedArray,i=this._dequantize;if((0,s.Z)(this._dracoLoader)&&this._dracoLoader.process(e),(0,s.Z)(this._bufferViewLoader)&&this._bufferViewLoader.process(e),!(0,s.Z)(t))return;if(this._loadAsTypedArray)return this.unload(),this._typedArray=t,this._state=m.Z.READY,void this._promise.resolve(this);const n=this._gltf.accessors[this._accessorId];let o;if(this._asynchronous){const r=w;if(r.set(t,i,n.componentType,n.type,n.count,e.context),!e.jobScheduler.execute(r,d.Z.BUFFER))return;o=r.buffer}else o=A(t,i,n.componentType,n.type,n.count,e.context);this.unload(),this._buffer=o,this._state=m.Z.READY,this._promise.resolve(this)},g.prototype.unload=function(){(0,s.Z)(this._buffer)&&this._buffer.destroy();const e=this._resourceCache;(0,s.Z)(this._bufferViewLoader)&&e.unload(this._bufferViewLoader),(0,s.Z)(this._dracoLoader)&&e.unload(this._dracoLoader),this._bufferViewLoader=void 0,this._dracoLoader=void 0,this._typedArray=void 0,this._buffer=void 0,this._gltf=void 0}},145049:(e,t,i)=>{"use strict";i.d(t,{Z:()=>w});var n=i(846748),r=i(194442),o=i(406144),s=i(426468),a=i(446938),c=i(197685),u=i(910946),l=i(218954),h=i(312562),d=i(362017),f=i(523501),p=i(261045),m=i(795788),_=i(50128),Z=i(723822),g=i(735581),y=i(527758);function b(){this._image=new Image}function A(e){if(e=(0,o.Z)(e,o.Z.EMPTY_OBJECT),!(0,s.Z)(e.url)&&!(0,s.Z)(e.metadata))throw new a.Z("options.url or options.metadata is required.");let t;if(this.defaultAlpha=void 0,this.defaultNightAlpha=void 0,this.defaultDayAlpha=void 0,this.defaultBrightness=void 0,this.defaultContrast=void 0,this.defaultHue=void 0,this.defaultSaturation=void 0,this.defaultGamma=void 0,this.defaultMinificationFilter=void 0,this.defaultMagnificationFilter=void 0,(0,s.Z)(e.metadata))t=e.metadata;else{const i=m.Z.createIfNeeded(e.url);t=new l.Z(i)}this._metadata=t,this._tileDiscardPolicy=e.tileDiscardPolicy,this._tilingScheme=new u.Z({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:2,rectangle:new f.Z(-d.Z.PI,-d.Z.PI,d.Z.PI,d.Z.PI),ellipsoid:e.ellipsoid});let i=e.credit;"string"==typeof i&&(i=new n.Z(i)),this._credit=i,this._tileWidth=256,this._tileHeight=256,this._maximumLevel=23,(0,s.Z)(this._tileDiscardPolicy)||(this._tileDiscardPolicy=new b),this._errorEvent=new c.Z,this._ready=!1;const r=this;let h;this._readyPromise=t.readyPromise.then((function(e){if(!t.imageryPresent){const e=new _.Z("The server "+t.url+" doesn't have imagery");return h=Z.Z.handleError(h,r,r._errorEvent,e.message,void 0,void 0,void 0,e),y.Z.reject(e)}return Z.Z.handleSuccess(h),r._ready=e,e})).otherwise((function(e){return h=Z.Z.handleError(h,r,r._errorEvent,e.message,void 0,void 0,void 0,e),y.Z.reject(e)}))}b.prototype.isReady=function(){return!0},b.prototype.shouldDiscardImage=function(e){return e===this._image},Object.defineProperties(A.prototype,{url:{get:function(){return this._metadata.url}},proxy:{get:function(){return this._metadata.proxy}},tileWidth:{get:function(){if(!this._ready)throw new a.Z("tileWidth must not be called before the imagery provider is ready.");return this._tileWidth}},tileHeight:{get:function(){if(!this._ready)throw new a.Z("tileHeight must not be called before the imagery provider is ready.");return this._tileHeight}},maximumLevel:{get:function(){if(!this._ready)throw new a.Z("maximumLevel must not be called before the imagery provider is ready.");return this._maximumLevel}},minimumLevel:{get:function(){if(!this._ready)throw new a.Z("minimumLevel must not be called before the imagery provider is ready.");return 0}},tilingScheme:{get:function(){if(!this._ready)throw new a.Z("tilingScheme must not be called before the imagery provider is ready.");return this._tilingScheme}},rectangle:{get:function(){if(!this._ready)throw new a.Z("rectangle must not be called before the imagery provider is ready.");return this._tilingScheme.rectangle}},tileDiscardPolicy:{get:function(){if(!this._ready)throw new a.Z("tileDiscardPolicy must not be called before the imagery provider is ready.");return this._tileDiscardPolicy}},errorEvent:{get:function(){return this._errorEvent}},ready:{get:function(){return this._ready}},readyPromise:{get:function(){return this._readyPromise}},credit:{get:function(){return this._credit}},hasAlphaChannel:{get:function(){return!1}}}),A.prototype.getTileCredits=function(e,t,i){if(!this._ready)throw new a.Z("getTileCredits must not be called before the imagery provider is ready.");const n=this._metadata,r=n.getTileInformation(e,t,i);if((0,s.Z)(r)){const e=n.providers[r.imageryProvider];if((0,s.Z)(e))return[e]}},A.prototype.requestImage=function(e,t,i,n){if(!this._ready)throw new a.Z("requestImage must not be called before the imagery provider is ready.");const o=this._tileDiscardPolicy._image,c=this._metadata,u=l.Z.tileXYToQuadKey(e,t,i),d=c.getTileInformation(e,t,i);if(!(0,s.Z)(d)){if(c.isValid(u)){const r=new p.Z({throttle:n.throttle,throttleByServer:n.throttleByServer,type:n.type,priorityFunction:n.priorityFunction});return void c.populateSubtree(e,t,i,r)}return o}if(!d.hasImagery())return o;const f=function(e,t,i,n,r,o){const a=l.Z.tileXYToQuadKey(i,n,r);let c=t.imageryVersion;return c=(0,s.Z)(c)&&c>0?c:1,e._metadata.resource.getDerivedResource({url:"flatfile?f1-0"+a+"-i."+c.toString(),request:o})}(this,d,e,t,i,n).fetchArrayBuffer();return(0,s.Z)(f)?f.then((function(e){(0,r.Z)(c.key,e);let t,i=new Uint8Array(e);const n=c.protoImagery;if((0,s.Z)(n)&&n||(t=function(e){const t="JFIF";if(e[6]===t.charCodeAt(0)&&e[7]===t.charCodeAt(1)&&e[8]===t.charCodeAt(2)&&e[9]===t.charCodeAt(3))return"image/jpeg";const i="PNG";return e[1]===i.charCodeAt(0)&&e[2]===i.charCodeAt(1)&&e[3]===i.charCodeAt(2)?"image/png":void 0}(i)),!(0,s.Z)(t)&&(!(0,s.Z)(n)||n)){const e=function(e){const t=g.Z.Reader.create(e),i=t.len,n={};for(;t.pos<i;){const e=t.uint32();let i;switch(e>>>3){case 1:n.imageType=t.uint32();break;case 2:n.imageData=t.bytes();break;case 3:n.alphaType=t.uint32();break;case 4:n.imageAlpha=t.bytes();break;case 5:if(i=n.copyrightIds,(0,s.Z)(i)||(i=n.copyrightIds=[]),2==(7&e)){const e=t.uint32()+t.pos;for(;t.pos<e;)i.push(t.uint32())}else i.push(t.uint32());break;default:t.skipType(7&e)}}const r=n.imageType;if((0,s.Z)(r))switch(r){case 0:n.imageType="image/jpeg";break;case 4:n.imageType="image/png";break;default:throw new _.Z("GoogleEarthEnterpriseImageryProvider: Unsupported image type.")}const o=n.alphaType;return(0,s.Z)(o)&&0!==o&&(console.log("GoogleEarthEnterpriseImageryProvider: External alpha not supported."),delete n.alphaType,delete n.imageAlpha),n}(i);t=e.imageType,i=e.imageData}return(0,s.Z)(t)&&(0,s.Z)(i)?(0,h.Z)({uint8Array:i,format:t,flipY:!0}):o})):void 0},A.prototype.pickFeatures=function(e,t,i,n,r){};const w=A},29422:(e,t,i)=>{"use strict";i.d(t,{Z:()=>y});var n=i(913216),r=i(357299),o=i(846748),s=i(406144),a=i(426468),c=i(446938),u=i(197685),l=i(910946),h=i(523501),d=i(795788),f=i(50128),p=i(723822),m=i(310526),_=i(527758),Z=i(616007);function g(e){if(e=(0,s.Z)(e,{}),!(0,a.Z)(e.url))throw new c.Z("options.url is required.");if(!(0,a.Z)(e.channel))throw new c.Z("options.channel is required.");this.defaultAlpha=void 0,this.defaultNightAlpha=void 0,this.defaultDayAlpha=void 0,this.defaultBrightness=void 0,this.defaultContrast=void 0,this.defaultHue=void 0,this.defaultSaturation=void 0,this.defaultGamma=1.9,this.defaultMinificationFilter=void 0,this.defaultMagnificationFilter=void 0;const t=e.url,i=(0,s.Z)(e.path,"/default_map"),n=d.Z.createIfNeeded(t).getDerivedResource({url:"/"===i[0]?i.substring(1):i});n.appendForwardSlash(),this._resource=n,this._url=t,this._path=i,this._tileDiscardPolicy=e.tileDiscardPolicy,this._channel=e.channel,this._requestType="ImageryMaps",this._credit=new o.Z('<a href="http://www.google.com/enterprise/mapsearth/products/earthenterprise.html"><img src="'+g.logoUrl+'" title="Google Imagery"/></a>'),this._tilingScheme=void 0,this._version=void 0,this._tileWidth=256,this._tileHeight=256,this._maximumLevel=e.maximumLevel,this._errorEvent=new u.Z,this._ready=!1,this._readyPromise=_.Z.defer();const r=n.getDerivedResource({url:"query",queryParameters:{request:"Json",vars:"geeServerDefs",is2d:"t"}}),Z=this;let y;function b(t){let i,n,r;try{i=JSON.parse(t)}catch(e){i=JSON.parse(t.replace(/([\[\{,])[\n\r ]*([A-Za-z0-9]+)[\n\r ]*:/g,'$1"$2":'))}for(let e=0;e<i.layers.length;e++)if(i.layers[e].id===Z._channel){n=i.layers[e];break}if(!(0,a.Z)(n))throw r="Could not find layer with channel (id) of "+Z._channel+".",y=p.Z.handleError(y,Z,Z._errorEvent,r,void 0,void 0,void 0,w),new f.Z(r);if(!(0,a.Z)(n.version))throw r="Could not find a version in channel (id) "+Z._channel+".",y=p.Z.handleError(y,Z,Z._errorEvent,r,void 0,void 0,void 0,w),new f.Z(r);if(Z._version=n.version,(0,a.Z)(i.projection)&&"flat"===i.projection)Z._tilingScheme=new l.Z({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:2,rectangle:new h.Z(-Math.PI,-Math.PI,Math.PI,Math.PI),ellipsoid:e.ellipsoid});else{if((0,a.Z)(i.projection)&&"mercator"!==i.projection)throw r="Unsupported projection "+i.projection+".",y=p.Z.handleError(y,Z,Z._errorEvent,r,void 0,void 0,void 0,w),new f.Z(r);Z._tilingScheme=new m.Z({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:2,ellipsoid:e.ellipsoid})}Z._ready=!0,Z._readyPromise.resolve(!0),p.Z.handleSuccess(y)}function A(e){const t="An error occurred while accessing "+r.url+".";y=p.Z.handleError(y,Z,Z._errorEvent,t,void 0,void 0,void 0,w),Z._readyPromise.reject(new f.Z(t))}function w(){const e=r.fetchText();(0,_.Z)(e,b,A)}w()}Object.defineProperties(g.prototype,{url:{get:function(){return this._url}},path:{get:function(){return this._path}},proxy:{get:function(){return this._resource.proxy}},channel:{get:function(){return this._channel}},tileWidth:{get:function(){if(!this._ready)throw new c.Z("tileWidth must not be called before the imagery provider is ready.");return this._tileWidth}},tileHeight:{get:function(){if(!this._ready)throw new c.Z("tileHeight must not be called before the imagery provider is ready.");return this._tileHeight}},maximumLevel:{get:function(){if(!this._ready)throw new c.Z("maximumLevel must not be called before the imagery provider is ready.");return this._maximumLevel}},minimumLevel:{get:function(){if(!this._ready)throw new c.Z("minimumLevel must not be called before the imagery provider is ready.");return 0}},tilingScheme:{get:function(){if(!this._ready)throw new c.Z("tilingScheme must not be called before the imagery provider is ready.");return this._tilingScheme}},version:{get:function(){if(!this._ready)throw new c.Z("version must not be called before the imagery provider is ready.");return this._version}},requestType:{get:function(){if(!this._ready)throw new c.Z("requestType must not be called before the imagery provider is ready.");return this._requestType}},rectangle:{get:function(){if(!this._ready)throw new c.Z("rectangle must not be called before the imagery provider is ready.");return this._tilingScheme.rectangle}},tileDiscardPolicy:{get:function(){if(!this._ready)throw new c.Z("tileDiscardPolicy must not be called before the imagery provider is ready.");return this._tileDiscardPolicy}},errorEvent:{get:function(){return this._errorEvent}},ready:{get:function(){return this._ready}},readyPromise:{get:function(){return this._readyPromise.promise}},credit:{get:function(){return this._credit}},hasAlphaChannel:{get:function(){return!0}}}),g.prototype.getTileCredits=function(e,t,i){},g.prototype.requestImage=function(e,t,i,n){if(!this._ready)throw new c.Z("requestImage must not be called before the imagery provider is ready.");const r=this._resource.getDerivedResource({url:"query",request:n,queryParameters:{request:this._requestType,channel:this._channel,version:this._version,x:e,y:t,z:i+1}});return Z.Z.loadImage(this,r)},g.prototype.pickFeatures=function(e,t,i,n,r){},g._logoUrl=void 0,Object.defineProperties(g,{logoUrl:{get:function(){return(0,a.Z)(g._logoUrl)||(g._logoUrl=(0,n.Z)("Assets/Images/google_earth_credit.png")),g._logoUrl},set:function(e){r.Z.defined("value",e),g._logoUrl=e}}});const y=g},557543:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});var n=i(545125),r=i(406144),o=i(426468),s=i(197685),a=i(910946),c=i(527758);const u=new n.Z(1,1,1,.4),l=new n.Z(0,1,0,.05),h=new n.Z(0,.5,0,.2);function d(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),this.defaultAlpha=void 0,this.defaultNightAlpha=void 0,this.defaultDayAlpha=void 0,this.defaultBrightness=void 0,this.defaultContrast=void 0,this.defaultHue=void 0,this.defaultSaturation=void 0,this.defaultGamma=void 0,this.defaultMinificationFilter=void 0,this.defaultMagnificationFilter=void 0,this._tilingScheme=(0,o.Z)(e.tilingScheme)?e.tilingScheme:new a.Z({ellipsoid:e.ellipsoid}),this._cells=(0,r.Z)(e.cells,8),this._color=(0,r.Z)(e.color,u),this._glowColor=(0,r.Z)(e.glowColor,l),this._glowWidth=(0,r.Z)(e.glowWidth,6),this._backgroundColor=(0,r.Z)(e.backgroundColor,h),this._errorEvent=new s.Z,this._tileWidth=(0,r.Z)(e.tileWidth,256),this._tileHeight=(0,r.Z)(e.tileHeight,256),this._canvasSize=(0,r.Z)(e.canvasSize,256),this._canvas=this._createGridCanvas(),this._readyPromise=c.Z.resolve(!0)}Object.defineProperties(d.prototype,{proxy:{get:function(){}},tileWidth:{get:function(){return this._tileWidth}},tileHeight:{get:function(){return this._tileHeight}},maximumLevel:{get:function(){}},minimumLevel:{get:function(){}},tilingScheme:{get:function(){return this._tilingScheme}},rectangle:{get:function(){return this._tilingScheme.rectangle}},tileDiscardPolicy:{get:function(){}},errorEvent:{get:function(){return this._errorEvent}},ready:{get:function(){return!0}},readyPromise:{get:function(){return this._readyPromise}},credit:{get:function(){}},hasAlphaChannel:{get:function(){return!0}}}),d.prototype._drawGrid=function(e){const t=this._canvasSize;for(let i=0;i<=this._cells;++i){const n=1+i/this._cells*(t-1);e.moveTo(n,0),e.lineTo(n,t),e.moveTo(0,n),e.lineTo(t,n)}e.stroke()},d.prototype._createGridCanvas=function(){const e=document.createElement("canvas");e.width=this._canvasSize,e.height=this._canvasSize;const t=this._canvasSize,i=e.getContext("2d"),n=this._backgroundColor.toCssColorString();i.fillStyle=n,i.fillRect(0,0,t,t);const r=this._glowColor.toCssColorString();i.strokeStyle=r,i.lineWidth=this._glowWidth,i.strokeRect(0,0,t,t),this._drawGrid(i),i.lineWidth=.5*this._glowWidth,i.strokeRect(0,0,t,t),this._drawGrid(i);const o=this._color.toCssColorString();return i.strokeStyle=o,i.lineWidth=2,i.strokeRect(0,0,t,t),i.lineWidth=1,this._drawGrid(i),e},d.prototype.getTileCredits=function(e,t,i){},d.prototype.requestImage=function(e,t,i,n){return this._canvas},d.prototype.pickFeatures=function(e,t,i,n,r){};const f=d},284283:(e,t,i)=>{"use strict";i.d(t,{Z:()=>M});var n=i(140537),r=i(997274),o=i(406144),s=i(426468),a=i(54879),c=i(446938),u=i(952254),l=i(194218),h=i(542787),d=i(247913),f=i(842649),p=i(364232),m=i(928096),_=i(279427),Z=i(452529),g=i(868123),y=i(479019),b=i(253137),A=i(527758),w=i(451356),v=i(576049),T=i(690466),C=i(843658),E=i(957049),x=i(939800),S=i(506678),O=i(42973),I=i(786861),D=i(301859);function P(e){e=(0,o.Z)(e,o.Z.EMPTY_OBJECT),this.geometryInstances=e.geometryInstances,this._hasPerInstanceColors=!0;let t=e.appearance;(0,s.Z)(t)||(t=new E.Z),this.appearance=t,this.show=(0,o.Z)(e.show,!0),this.classificationType=(0,o.Z)(e.classificationType,v.Z.BOTH),this.debugShowBoundingVolume=(0,o.Z)(e.debugShowBoundingVolume,!1),this._debugShowShadowVolume=(0,o.Z)(e.debugShowShadowVolume,!1),this._primitiveOptions={geometryInstances:void 0,appearance:void 0,vertexCacheOptimize:!1,interleave:(0,o.Z)(e.interleave,!1),releaseGeometryInstances:(0,o.Z)(e.releaseGeometryInstances,!0),allowPicking:(0,o.Z)(e.allowPicking,!0),asynchronous:(0,o.Z)(e.asynchronous,!0),compressVertices:!1,_createShaderProgramFunction:void 0,_createCommandsFunction:void 0,_updateAndQueueCommandsFunction:void 0},this._zIndex=void 0,this._ready=!1,this._readyPromise=A.Z.defer(),this._primitive=void 0,this._sp=void 0,this._sp2D=void 0,this._spMorph=void 0,this._renderState=R(!1),this._renderState3DTiles=R(!0),this._renderStateMorph=p.Z.fromCache({cull:{enabled:!0,face:T.Z.FRONT},depthTest:{enabled:!0},blending:w.Z.PRE_MULTIPLIED_ALPHA_BLEND,depthMask:!1})}function R(e){return p.Z.fromCache({cull:{enabled:!0},blending:w.Z.PRE_MULTIPLIED_ALPHA_BLEND,depthMask:!1,stencilTest:{enabled:e,frontFunction:I.Z.EQUAL,frontOperation:{fail:D.Z.KEEP,zFail:D.Z.KEEP,zPass:D.Z.KEEP},backFunction:I.Z.EQUAL,backOperation:{fail:D.Z.KEEP,zFail:D.Z.KEEP,zPass:D.Z.KEEP},reference:O.Z.CESIUM_3D_TILE_MASK,mask:O.Z.CESIUM_3D_TILE_MASK}})}function B(e,t,i,n,r,o,s){i.mode===S.Z.MORPHING?t=t.derivedCommands.colorMorph:i.mode!==S.Z.SCENE3D&&(t=t.derivedCommands.color2D),t.modelMatrix=n,t.boundingVolume=o,t.cull=r,t.debugShowBoundingVolume=s,i.commandList.push(t)}Object.defineProperties(P.prototype,{interleave:{get:function(){return this._primitiveOptions.interleave}},releaseGeometryInstances:{get:function(){return this._primitiveOptions.releaseGeometryInstances}},allowPicking:{get:function(){return this._primitiveOptions.allowPicking}},asynchronous:{get:function(){return this._primitiveOptions.asynchronous}},ready:{get:function(){return this._ready}},readyPromise:{get:function(){return this._readyPromise.promise}},debugShowShadowVolume:{get:function(){return this._debugShowShadowVolume}}}),P.initializeTerrainHeights=function(){return n.Z.initialize()},P.prototype.update=function(e){if(!(0,s.Z)(this._primitive)&&!(0,s.Z)(this.geometryInstances))return;if(!n.Z.initialized){if(!this.asynchronous)throw new c.Z("For synchronous GroundPolylinePrimitives, you must call GroundPolylinePrimitives.initializeTerrainHeights() and wait for the returned promise to resolve.");return void P.initializeTerrainHeights()}let t;const i=this,o=this._primitiveOptions;if(!(0,s.Z)(this._primitive)){const a=Array.isArray(this.geometryInstances)?this.geometryInstances:[this.geometryInstances],c=a.length,p=new Array(c);let A;for(t=0;t<c;++t)if(A=a[t].attributes,!(0,s.Z)(A)||!(0,s.Z)(A.color)){this._hasPerInstanceColors=!1;break}for(t=0;t<c;++t){const n=a[t];A={};const o=n.attributes;for(const e in o)o.hasOwnProperty(e)&&(A[e]=o[e]);(0,s.Z)(A.width)||(A.width=new l.Z({componentDatatype:r.Z.UNSIGNED_BYTE,componentsPerAttribute:1,value:[n.geometry.width]})),n.geometry._scene3DOnly=e.scene3DOnly,h.Z.setProjectionAndEllipsoid(n.geometry,e.mapProjection),p[t]=new u.Z({geometry:n.geometry,attributes:A,id:n.id,pickPrimitive:i})}o.geometryInstances=p,o.appearance=this.appearance,o._createShaderProgramFunction=function(e,t,r){!function(e,t,i){const r=t.context,o=e._primitive,a=o._attributeLocations;let c=o._batchTable.getVertexShaderCallback()(b.Z);c=x.Z._appendShowToShader(o,c),c=x.Z._appendDistanceDisplayConditionToShader(o,c),c=x.Z._modifyShaderPosition(e,c,t.scene3DOnly);let u=o._batchTable.getVertexShaderCallback()(y.Z);u=x.Z._appendShowToShader(o,u),u=x.Z._appendDistanceDisplayConditionToShader(o,u),u=x.Z._modifyShaderPosition(e,u,t.scene3DOnly);let l=o._batchTable.getVertexShaderCallback()(Z.Z);const h=["GLOBE_MINIMUM_ALTITUDE "+t.mapProjection.ellipsoid.minimumRadius.toFixed(1)];let d="",f="";(0,s.Z)(i.material)?(f=(0,s.Z)(i.material)?i.material.shaderSource:"",-1!==f.search(/varying\s+float\s+v_polylineAngle;/g)&&h.push("ANGLE_VARYING"),-1!==f.search(/varying\s+float\s+v_width;/g)&&h.push("WIDTH_VARYING")):d="PER_INSTANCE_COLOR",h.push(d);const p=e.debugShowShadowVolume?["DEBUG_SHOW_VOLUME",d]:[d],A=new _.Z({defines:h,sources:[c]}),w=new _.Z({defines:p,sources:[f,l]});e._sp=m.Z.replaceCache({context:r,shaderProgram:o._sp,vertexShaderSource:A,fragmentShaderSource:w,attributeLocations:a});let v=r.shaderCache.getDerivedShaderProgram(e._sp,"2dColor");if(!(0,s.Z)(v)){const t=new _.Z({defines:h.concat(["COLUMBUS_VIEW_2D"]),sources:[c]});v=r.shaderCache.createDerivedShaderProgram(e._sp,"2dColor",{context:r,shaderProgram:e._sp2D,vertexShaderSource:t,fragmentShaderSource:w,attributeLocations:a})}e._sp2D=v;let T=r.shaderCache.getDerivedShaderProgram(e._sp,"MorphColor");if(!(0,s.Z)(T)){const t=new _.Z({defines:h.concat(["MAX_TERRAIN_HEIGHT "+n.Z._defaultMaxTerrainHeight.toFixed(1)]),sources:[u]});l=o._batchTable.getVertexShaderCallback()(g.Z);const i=new _.Z({defines:p,sources:[f,l]});T=r.shaderCache.createDerivedShaderProgram(e._sp,"MorphColor",{context:r,shaderProgram:e._spMorph,vertexShaderSource:t,fragmentShaderSource:i,attributeLocations:a})}e._spMorph=T}(i,t,r)},o._createCommandsFunction=function(e,t,n,r,o,a,c){!function(e,t,i,n,r,o){const a=e._primitive,c=a._va.length;r.length=c,o.length=c;const u=t instanceof C.Z?{}:i._uniforms,l=a._batchTable.getUniformMapCallback()(u);for(let t=0;t<c;t++){const i=a._va[t];let n=r[t];(0,s.Z)(n)||(n=r[t]=new d.Z({owner:e,primitiveType:a._primitiveType})),n.vertexArray=i,n.renderState=e._renderState,n.shaderProgram=e._sp,n.uniformMap=l,n.pass=f.Z.TERRAIN_CLASSIFICATION,n.pickId="czm_batchTable_pickColor(v_endPlaneNormalEcAndBatchId.w)";const o=d.Z.shallowClone(n,n.derivedCommands.tileset);o.renderState=e._renderState3DTiles,o.pass=f.Z.CESIUM_3D_TILE_CLASSIFICATION,n.derivedCommands.tileset=o;const c=d.Z.shallowClone(n,n.derivedCommands.color2D);c.shaderProgram=e._sp2D,n.derivedCommands.color2D=c;const u=d.Z.shallowClone(o,o.derivedCommands.color2D);u.shaderProgram=e._sp2D,o.derivedCommands.color2D=u;const h=d.Z.shallowClone(n,n.derivedCommands.colorMorph);h.renderState=e._renderStateMorph,h.shaderProgram=e._spMorph,h.pickId="czm_batchTable_pickColor(v_batchId)",n.derivedCommands.colorMorph=h}}(i,t,n,0,a,c)},o._updateAndQueueCommandsFunction=function(e,t,n,r,o,a,c,u){!function(e,t,i,n,r,o,a){const c=e._primitive;let u;x.Z._updateBoundingVolumes(c,t,r),t.mode===S.Z.SCENE3D?u=c._boundingSphereWC:t.mode===S.Z.COLUMBUS_VIEW?u=c._boundingSphereCV:t.mode===S.Z.SCENE2D&&(0,s.Z)(c._boundingSphere2D)?u=c._boundingSphere2D:(0,s.Z)(c._boundingSphereMorph)&&(u=c._boundingSphereMorph);const l=t.mode===S.Z.MORPHING,h=e.classificationType,d=h!==v.Z.CESIUM_3D_TILE,f=h!==v.Z.TERRAIN&&!l;let p;const m=t.passes;if(m.render||m.pick&&c.allowPicking){const e=i.length;for(let n=0;n<e;++n){const e=u[n];d&&(p=i[n],B(0,p,t,r,o,e,a)),f&&(p=i[n].derivedCommands.tileset,B(0,p,t,r,o,e,a))}}}(i,t,n,0,o,a,c)},this._primitive=new x.Z(o),this._primitive.readyPromise.then((function(e){i._ready=!0,i.releaseGeometryInstances&&(i.geometryInstances=void 0);const t=e._error;(0,s.Z)(t)?i._readyPromise.reject(t):i._readyPromise.resolve(i)}))}if(this.appearance instanceof C.Z&&!this._hasPerInstanceColors)throw new c.Z("All GeometryInstances must have color attributes to use PolylineColorAppearance with GroundPolylinePrimitive.");this._primitive.appearance=this.appearance,this._primitive.show=this.show,this._primitive.debugShowBoundingVolume=this.debugShowBoundingVolume,this._primitive.update(e)},P.prototype.getGeometryInstanceAttributes=function(e){if(!(0,s.Z)(this._primitive))throw new c.Z("must call update before calling getGeometryInstanceAttributes");return this._primitive.getGeometryInstanceAttributes(e)},P.isSupported=function(e){return e.frameState.context.depthTexture},P.prototype.isDestroyed=function(){return!1},P.prototype.destroy=function(){return this._primitive=this._primitive&&this._primitive.destroy(),this._sp=this._sp&&this._sp.destroy(),this._sp2D=void 0,this._spMorph=void 0,(0,a.Z)(this)};const M=P},975023:(e,t,i)=>{"use strict";i.d(t,{Z:()=>M});var n=i(140537),r=i(360791),o=i(919382),s=i(698907),a=i(357299),c=i(406144),u=i(426468),l=i(54879),h=i(446938),d=i(952254),f=i(126874),p=i(523501),m=i(957443),_=i(213821),Z=i(576049),g=i(578721),y=i(506678),b=i(816723),A=i(527758);const w={u_globeMinimumAltitude:function(){return 55e3}};function v(e){let t=(e=(0,c.Z)(e,c.Z.EMPTY_OBJECT)).appearance;const i=e.geometryInstances;if(!(0,u.Z)(t)&&(0,u.Z)(i)){const e=Array.isArray(i)?i:[i],n=e.length;for(let i=0;i<n;i++){const n=e[i].attributes;if((0,u.Z)(n)&&(0,u.Z)(n.color)){t=new g.Z({flat:!0});break}}}this.appearance=t,this.geometryInstances=e.geometryInstances,this.show=(0,c.Z)(e.show,!0),this.classificationType=(0,c.Z)(e.classificationType,Z.Z.BOTH),this.debugShowBoundingVolume=(0,c.Z)(e.debugShowBoundingVolume,!1),this.debugShowShadowVolume=(0,c.Z)(e.debugShowShadowVolume,!1),this._boundingVolumes=[],this._boundingVolumes2D=[],this._ready=!1,this._readyPromise=A.Z.defer(),this._primitive=void 0,this._maxHeight=void 0,this._minHeight=void 0,this._maxTerrainHeight=n.Z._defaultMaxTerrainHeight,this._minTerrainHeight=n.Z._defaultMinTerrainHeight,this._boundingSpheresKeys=[],this._boundingSpheres=[],this._useFragmentCulling=!1,this._zIndex=void 0,this._classificationPrimitiveOptions={geometryInstances:void 0,appearance:void 0,vertexCacheOptimize:(0,c.Z)(e.vertexCacheOptimize,!1),interleave:(0,c.Z)(e.interleave,!1),releaseGeometryInstances:(0,c.Z)(e.releaseGeometryInstances,!0),allowPicking:(0,c.Z)(e.allowPicking,!0),asynchronous:(0,c.Z)(e.asynchronous,!0),compressVertices:(0,c.Z)(e.compressVertices,!0),_createBoundingVolumeFunction:void 0,_updateAndQueueCommandsFunction:void 0,_pickPrimitive:this,_extruded:!0,_uniformMap:w}}function T(e){return function(t,i){const n=i.maximumRadius,r=n/Math.cos(.5*t)-n;return e._maxHeight+r}}function C(e){return function(t,i){return e._minHeight}}Object.defineProperties(v.prototype,{vertexCacheOptimize:{get:function(){return this._classificationPrimitiveOptions.vertexCacheOptimize}},interleave:{get:function(){return this._classificationPrimitiveOptions.interleave}},releaseGeometryInstances:{get:function(){return this._classificationPrimitiveOptions.releaseGeometryInstances}},allowPicking:{get:function(){return this._classificationPrimitiveOptions.allowPicking}},asynchronous:{get:function(){return this._classificationPrimitiveOptions.asynchronous}},compressVertices:{get:function(){return this._classificationPrimitiveOptions.compressVertices}},ready:{get:function(){return this._ready}},readyPromise:{get:function(){return this._readyPromise.promise}}}),v.isSupported=_.Z.isSupported;const E=new o.Z,x=new o.Z,S=new o.Z,O=new s.Z,I=new p.Z;function D(e,t){const i=e.mapProjection.ellipsoid;if(!(0,u.Z)(t.attributes)||!(0,u.Z)(t.attributes.position3DHigh))return(0,u.Z)(t.rectangle)?t.rectangle:void 0;const n=t.attributes.position3DHigh.values,r=t.attributes.position3DLow.values,s=n.length;let a=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,h=Number.NEGATIVE_INFINITY;for(let e=0;e<s;e+=3){const t=o.Z.unpack(n,e,E),s=o.Z.unpack(r,e,x),u=o.Z.add(t,s,S),d=i.cartesianToCartographic(u,O),f=d.latitude,p=d.longitude;a=Math.min(a,f),c=Math.min(c,p),l=Math.max(l,f),h=Math.max(h,p)}const d=I;return d.north=l,d.south=a,d.east=h,d.west=c,d}function P(e,t){return Math.floor(e%t/2)}function R(e,t,i,n,r,o,s){const a=e._primitive;i.mode!==y.Z.SCENE3D&&t.shaderProgram===a._spColor&&a._needs2DShader&&(t=t.derivedCommands.appearance2D),t.owner=e,t.modelMatrix=n,t.boundingVolume=o,t.cull=r,t.debugShowBoundingVolume=s,i.commandList.push(t)}function B(e,t,i,n,r,o){const s=e._primitive;i.mode!==y.Z.SCENE3D&&t.shaderProgram===s._spPick&&s._needs2DShader&&(t=t.derivedCommands.pick2D),t.owner=e,t.modelMatrix=n,t.boundingVolume=o,t.cull=r,i.commandList.push(t)}v.initializeTerrainHeights=function(){return n.Z.initialize()},v.prototype.update=function(e){if(!(0,u.Z)(this._primitive)&&!(0,u.Z)(this.geometryInstances))return;if(!n.Z.initialized){if(!this.asynchronous)throw new h.Z("For synchronous GroundPrimitives, you must call GroundPrimitive.initializeTerrainHeights() and wait for the returned promise to resolve.");return void v.initializeTerrainHeights()}const t=this,i=this._classificationPrimitiveOptions;if(!(0,u.Z)(this._primitive)){const s=e.mapProjection.ellipsoid;let a,c,l;const g=Array.isArray(this.geometryInstances)?this.geometryInstances:[this.geometryInstances],A=g.length,w=new Array(A);let E,x;for(E=0;E<A;++E){a=g[E],c=a.geometry;const t=D(e,c);(0,u.Z)(x)?(0,u.Z)(t)&&p.Z.union(x,t,x):x=p.Z.clone(t);const i=a.id;if((0,u.Z)(i)&&(0,u.Z)(t)){const e=n.Z.getBoundingSphere(t,s);this._boundingSpheresKeys.push(i),this._boundingSpheres.push(e)}if(l=c.constructor,!(0,u.Z)(l)||!(0,u.Z)(l.createShadowVolume))throw new h.Z("Not all of the geometry instances have GroundPrimitive support.")}!function(e,t,i){const r=n.Z.getMinimumMaximumHeights(t,i);e._minTerrainHeight=r.minimumTerrainHeight,e._maxTerrainHeight=r.maximumTerrainHeight}(this,x,s);const S=e.terrainExaggeration,O=e.terrainExaggerationRelativeHeight;this._minHeight=m.Z.getHeight(this._minTerrainHeight,S,O),this._maxHeight=m.Z.getHeight(this._maxTerrainHeight,S,O);const I=v._supportsMaterials(e.context);if(this._useFragmentCulling=I,I){let t,i=!0;for(E=0;E<A;++E)if(a=g[E],c=a.geometry,x=D(e,c),b.Z.shouldUseSphericalCoordinates(x)){i=!1;break}for(E=0;E<A;++E){a=g[E],c=a.geometry,l=c.constructor;const n=D(e,c),r=c.textureCoordinateRotationPoints;t=i?b.Z.getPlanarTextureCoordinateAttributes(n,r,s,e.mapProjection,this._maxHeight):b.Z.getSphericalExtentGeometryInstanceAttributes(n,r,s,e.mapProjection);const o=a.attributes;for(const e in o)o.hasOwnProperty(e)&&(t[e]=o[e]);w[E]=new d.Z({geometry:l.createShadowVolume(c,C(this),T(this)),attributes:t,id:a.id})}}else for(E=0;E<A;++E)a=g[E],c=a.geometry,l=c.constructor,w[E]=new d.Z({geometry:l.createShadowVolume(c,C(this),T(this)),attributes:a.attributes,id:a.id});i.geometryInstances=w,i.appearance=this.appearance,i._createBoundingVolumeFunction=function(e,i){!function(e,t,i){const n=t.mapProjection.ellipsoid,s=D(t,i),a=f.Z.fromRectangle(s,e._minHeight,e._maxHeight,n);if(e._boundingVolumes.push(a),!t.scene3DOnly){const i=t.mapProjection,n=r.Z.fromRectangleWithHeights2D(s,i,e._maxHeight,e._minHeight);o.Z.fromElements(n.center.z,n.center.x,n.center.y,n.center),e._boundingVolumes2D.push(n)}}(t,e,i)},i._updateAndQueueCommandsFunction=function(e,i,n,r,o,s,a,c){!function(e,t,i,n,r,o,s,a){let c;c=t.mode===y.Z.SCENE3D?e._boundingVolumes:e._boundingVolumes2D;const u=e.classificationType,l=u!==Z.Z.CESIUM_3D_TILE,h=u!==Z.Z.TERRAIN,d=t.passes,f=e._primitive;let p,m,_;if(d.render){const n=i.length;for(p=0;p<n;++p)m=c[P(p,n)],l&&(_=i[p],R(e,_,t,r,o,m,s)),h&&(_=i[p].derivedCommands.tileset,R(e,_,t,r,o,m,s));if(t.invertClassification){const i=f._commandsIgnoreShow,n=i.length;for(p=0;p<n;++p)m=c[p],_=i[p],R(e,_,t,r,o,m,s)}}if(d.pick){const i=n.length;let s;for(e._useFragmentCulling||(s=f._primitive._pickOffsets),p=0;p<i;++p)m=c[P(p,i)],e._useFragmentCulling||(m=c[s[P(p,i)].index]),l&&(_=n[p],B(e,_,t,r,o,m)),h&&(_=n[p].derivedCommands.tileset,B(e,_,t,r,o,m))}}(t,i,n,r,o,s,a)},this._primitive=new _.Z(i),this._primitive.readyPromise.then((function(e){t._ready=!0,t.releaseGeometryInstances&&(t.geometryInstances=void 0);const i=e._error;(0,u.Z)(i)?t._readyPromise.reject(i):t._readyPromise.resolve(t)}))}this._primitive.appearance=this.appearance,this._primitive.show=this.show,this._primitive.debugShowShadowVolume=this.debugShowShadowVolume,this._primitive.debugShowBoundingVolume=this.debugShowBoundingVolume,this._primitive.update(e)},v.prototype.getBoundingSphere=function(e){const t=this._boundingSpheresKeys.indexOf(e);if(-1!==t)return this._boundingSpheres[t]},v.prototype.getGeometryInstanceAttributes=function(e){if(!(0,u.Z)(this._primitive))throw new h.Z("must call update before calling getGeometryInstanceAttributes");return this._primitive.getGeometryInstanceAttributes(e)},v.prototype.isDestroyed=function(){return!1},v.prototype.destroy=function(){return this._primitive=this._primitive&&this._primitive.destroy(),(0,l.Z)(this)},v._supportsMaterials=function(e){return e.depthTexture},v.supportsMaterials=function(e){return a.Z.typeOf.object("scene",e),v._supportsMaterials(e.frameState.context)};const M=v},881417:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(357299),r=i(406144),o=i(426468),s=i(726422);function a(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).id,i=e.group;n.Z.typeOf.string("options.id",t),n.Z.typeOf.object("options.group",i);const s=(0,o.Z)(i.properties)?i.properties:{};this._class=e.class,this._properties=s,this._id=t,this._extras=i.extras,this._extensions=i.extensions}Object.defineProperties(a.prototype,{class:{get:function(){return this._class}},id:{get:function(){return this._id}},extras:{get:function(){return this._extras}},extensions:{get:function(){return this._extensions}}}),a.prototype.hasProperty=function(e){return s.Z.hasProperty(e,this._properties,this._class)},a.prototype.hasPropertyBySemantic=function(e){return s.Z.hasPropertyBySemantic(e,this._properties,this._class)},a.prototype.getPropertyIds=function(e){return s.Z.getPropertyIds(this._properties,this._class,e)},a.prototype.getProperty=function(e){return s.Z.getProperty(e,this._properties,this._class)},a.prototype.setProperty=function(e,t){return s.Z.setProperty(e,t,this._properties,this._class)},a.prototype.getPropertyBySemantic=function(e){return s.Z.getPropertyBySemantic(e,this._properties,this._class)},a.prototype.setPropertyBySemantic=function(e,t){return s.Z.setPropertyBySemantic(e,t,this._properties,this._class)};const c=a},110499:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({NONE:0,CLAMP_TO_GROUND:1,RELATIVE_TO_GROUND:2})},121015:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({CENTER:0,LEFT:1,RIGHT:-1})},957312:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(357299),r=i(406144),o=i(859071),s=i(987606),a=i(50128);const c={};c._deprecationWarning=o.Z;const u=Uint32Array.BYTES_PER_ELEMENT;c.parse=function(e,t){n.Z.defined("arrayBuffer",e);const i=(0,r.Z)(t,0);t=i;const o=new Uint8Array(e),l=new DataView(e);t+=u;const h=l.getUint32(t,!0);if(1!==h)throw new a.Z("Only Instanced 3D Model version 1 is supported. Version "+h+" is not.");t+=u;const d=l.getUint32(t,!0);t+=u;const f=l.getUint32(t,!0);if(0===f)throw new a.Z("featureTableJsonByteLength is zero, the feature table must be defined.");t+=u;const p=l.getUint32(t,!0);t+=u;const m=l.getUint32(t,!0);t+=u;const _=l.getUint32(t,!0);t+=u;const Z=l.getUint32(t,!0);if(1!==Z&&0!==Z)throw new a.Z("Only glTF format 0 (uri) or 1 (embedded) are supported. Format "+Z+" is not.");t+=u;const g=(0,s.Z)(o,t,f);t+=f;const y=new Uint8Array(e,t,p);let b,A;t+=p,m>0&&(b=(0,s.Z)(o,t,m),t+=m,_>0&&(A=new Uint8Array(e,t,_),A=new Uint8Array(A),t+=_));const w=i+d-t;if(0===w)throw new a.Z("glTF byte length must be greater than 0.");let v;return t%4==0?v=new Uint8Array(e,t,w):(c._deprecationWarning("i3dm-glb-unaligned","The embedded glb is not aligned to a 4-byte boundary."),v=new Uint8Array(o.subarray(t,t+w))),{gltfFormat:Z,featureTableJson:g,featureTableBinary:y,batchTableJson:b,batchTableBinary:A,gltf:v}};const l=c},101088:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(426468),r=i(54879),o=i(649479);function s(e,t,i,r,s){if(this.imageryLayer=e,this.x=t,this.y=i,this.level=r,this.request=void 0,0!==r){const n=t/2|0,o=i/2|0,s=r-1;this.parent=e.getImageryFromCache(n,o,s)}this.state=o.Z.UNLOADED,this.imageUrl=void 0,this.image=void 0,this.texture=void 0,this.textureWebMercator=void 0,this.credits=void 0,this.referenceCount=0,!(0,n.Z)(s)&&e.imageryProvider.ready&&(s=e.imageryProvider.tilingScheme.tileXYToRectangle(t,i,r)),this.rectangle=s}s.createPlaceholder=function(e){const t=new s(e,0,0,0);return t.addReference(),t.state=o.Z.PLACEHOLDER,t},s.prototype.addReference=function(){++this.referenceCount},s.prototype.releaseReference=function(){return--this.referenceCount,0===this.referenceCount?(this.imageryLayer.removeImageryFromCache(this),(0,n.Z)(this.parent)&&this.parent.releaseReference(),(0,n.Z)(this.image)&&(0,n.Z)(this.image.destroy)&&this.image.destroy(),(0,n.Z)(this.texture)&&this.texture.destroy(),(0,n.Z)(this.textureWebMercator)&&this.texture!==this.textureWebMercator&&this.textureWebMercator.destroy(),(0,r.Z)(this),0):this.referenceCount},s.prototype.processStateMachine=function(e,t,i){this.state!==o.Z.UNLOADED||i||(this.state=o.Z.TRANSITIONING,this.imageryLayer._requestImagery(this)),this.state===o.Z.RECEIVED&&(this.state=o.Z.TRANSITIONING,this.imageryLayer._createTexture(e.context,this));const n=this.state===o.Z.READY&&t&&!this.texture;(this.state===o.Z.TEXTURE_LOADED||n)&&(this.state=o.Z.TRANSITIONING,this.imageryLayer._reprojectTexture(e,this,t))};const a=s},522032:(e,t,i)=>{"use strict";i.d(t,{Z:()=>X});var n=i(337968),r=i(114754),o=i(406144),s=i(426468),a=i(54879),c=i(446938),u=i(488802),l=i(921099),h=i(546135),d=i(362017),f=i(100883),p=i(523501),m=i(261045),_=i(316954),Z=i(690220),g=i(950714),y=i(723822),b=i(786409),A=i(636807),w=i(50720),v=i(138012),T=i(994589),C=i(375983),E=i(270013),x=i(928096),S=i(279427),O=i(283044),I=i(59102),D=i(636664),P=i(655499),R=i(676311),B=i(173209),M=i(667281),L=i(527758),N=i(101088),F=i(201142),k=i(649479),U=i(560743);function V(e,t){this._imageryProvider=e,t=(0,o.Z)(t,o.Z.EMPTY_OBJECT),this.alpha=(0,o.Z)(t.alpha,(0,o.Z)(e.defaultAlpha,1)),this.nightAlpha=(0,o.Z)(t.nightAlpha,(0,o.Z)(e.defaultNightAlpha,1)),this.dayAlpha=(0,o.Z)(t.dayAlpha,(0,o.Z)(e.defaultDayAlpha,1)),this.brightness=(0,o.Z)(t.brightness,(0,o.Z)(e.defaultBrightness,V.DEFAULT_BRIGHTNESS)),this.contrast=(0,o.Z)(t.contrast,(0,o.Z)(e.defaultContrast,V.DEFAULT_CONTRAST)),this.hue=(0,o.Z)(t.hue,(0,o.Z)(e.defaultHue,V.DEFAULT_HUE)),this.saturation=(0,o.Z)(t.saturation,(0,o.Z)(e.defaultSaturation,V.DEFAULT_SATURATION)),this.gamma=(0,o.Z)(t.gamma,(0,o.Z)(e.defaultGamma,V.DEFAULT_GAMMA)),this.splitDirection=(0,o.Z)(t.splitDirection,(0,o.Z)(e.defaultSplit,V.DEFAULT_SPLIT)),this.minificationFilter=(0,o.Z)(t.minificationFilter,(0,o.Z)(e.defaultMinificationFilter,V.DEFAULT_MINIFICATION_FILTER)),this.magnificationFilter=(0,o.Z)(t.magnificationFilter,(0,o.Z)(e.defaultMagnificationFilter,V.DEFAULT_MAGNIFICATION_FILTER)),this.show=(0,o.Z)(t.show,!0),this._minimumTerrainLevel=t.minimumTerrainLevel,this._maximumTerrainLevel=t.maximumTerrainLevel,this._rectangle=(0,o.Z)(t.rectangle,p.Z.MAX_VALUE),this._maximumAnisotropy=t.maximumAnisotropy,this._imageryCache={},this._skeletonPlaceholder=new U.Z(N.Z.createPlaceholder(this)),this._show=!0,this._layerIndex=-1,this._isBaseLayer=!1,this._requestImageError=void 0,this._reprojectComputeCommands=[],this.cutoutRectangle=t.cutoutRectangle,this.colorToAlpha=t.colorToAlpha,this.colorToAlphaThreshold=(0,o.Z)(t.colorToAlphaThreshold,V.DEFAULT_APPLY_COLOR_TO_ALPHA_THRESHOLD)}Object.defineProperties(V.prototype,{imageryProvider:{get:function(){return this._imageryProvider}},rectangle:{get:function(){return this._rectangle}}}),V.DEFAULT_BRIGHTNESS=1,V.DEFAULT_CONTRAST=1,V.DEFAULT_HUE=0,V.DEFAULT_SATURATION=1,V.DEFAULT_GAMMA=1,V.DEFAULT_SPLIT=F.Z.NONE,V.DEFAULT_MINIFICATION_FILTER=D.Z.LINEAR,V.DEFAULT_MAGNIFICATION_FILTER=I.Z.LINEAR,V.DEFAULT_APPLY_COLOR_TO_ALPHA_THRESHOLD=.004,V.prototype.isBaseLayer=function(){return this._isBaseLayer},V.prototype.isDestroyed=function(){return!1},V.prototype.destroy=function(){return(0,a.Z)(this)};const z=new p.Z,H=new p.Z,G=new p.Z,q=new p.Z;function j(e,t,i){return e+":"+t+":"+i}function W(e,t,i){return JSON.stringify([e,t,i])}V.prototype.getViewableRectangle=function(){const e=this._imageryProvider,t=this._rectangle;return e.readyPromise.then((function(){return p.Z.intersection(e.rectangle,t)}))},V.prototype._createTileImagerySkeletons=function(e,t,i){const n=e.data;if((0,s.Z)(this._minimumTerrainLevel)&&e.level<this._minimumTerrainLevel)return!1;if((0,s.Z)(this._maximumTerrainLevel)&&e.level>this._maximumTerrainLevel)return!1;const o=this._imageryProvider;if((0,s.Z)(i)||(i=n.imagery.length),!o.ready)return this._skeletonPlaceholder.loadingImagery.addReference(),n.imagery.splice(i,0,this._skeletonPlaceholder),!0;const a=o.tilingScheme.projection instanceof b.Z&&e.rectangle.north<b.Z.MaximumLatitude&&e.rectangle.south>-b.Z.MaximumLatitude,c=p.Z.intersection(o.rectangle,this._rectangle,z);let u=p.Z.intersection(e.rectangle,c,H);if(!(0,s.Z)(u)){if(!this.isBaseLayer())return!1;const t=c,i=e.rectangle;u=H,i.south>=t.north?u.north=u.south=t.north:i.north<=t.south?u.north=u.south=t.south:(u.south=Math.max(i.south,t.south),u.north=Math.min(i.north,t.north)),i.west>=t.east?u.west=u.east=t.east:i.east<=t.west?u.west=u.east=t.west:(u.west=Math.max(i.west,t.west),u.east=Math.min(i.east,t.east))}let h=0;u.south>0?h=u.south:u.north<0&&(h=u.north);let d=function(e,t,i){const n=e._imageryProvider,r=n.tilingScheme,o=r.ellipsoid,s=e._imageryProvider.tilingScheme.projection instanceof l.Z?1:Math.cos(i),a=r.rectangle,c=o.maximumRadius*a.width*s/(n.tileWidth*r.getNumberOfXTilesAtLevel(0))/t,u=Math.log(c)/Math.log(2);return 0|Math.round(u)}(this,1*t.getLevelMaximumGeometricError(e.level),h);d=Math.max(0,d);const f=o.maximumLevel;if(d>f&&(d=f),(0,s.Z)(o.minimumLevel)){const e=o.minimumLevel;d<e&&(d=e)}const m=o.tilingScheme,_=m.positionToTileXY(p.Z.northwest(u),d),Z=m.positionToTileXY(p.Z.southeast(u),d);let g=e.rectangle.width/512,y=e.rectangle.height/512;const A=m.tileXYToRectangle(_.x,_.y,d);Math.abs(A.south-e.rectangle.north)<y&&_.y<Z.y&&++_.y,Math.abs(A.east-e.rectangle.west)<g&&_.x<Z.x&&++_.x;const w=m.tileXYToRectangle(Z.x,Z.y,d);Math.abs(w.north-e.rectangle.south)<y&&Z.y>_.y&&--Z.y,Math.abs(w.west-e.rectangle.east)<g&&Z.x>_.x&&--Z.x;const v=p.Z.clone(e.rectangle,q);let T,C,E=m.tileXYToRectangle(_.x,_.y,d),x=p.Z.intersection(E,c,G);a?(m.rectangleToNativeRectangle(v,v),m.rectangleToNativeRectangle(E,E),m.rectangleToNativeRectangle(x,x),m.rectangleToNativeRectangle(c,c),T=m.tileXYToNativeRectangle.bind(m),g=v.width/512,y=v.height/512):T=m.tileXYToRectangle.bind(m);let S,O=0,I=1;!this.isBaseLayer()&&Math.abs(x.west-v.west)>=g&&(O=Math.min(1,(x.west-v.west)/v.width)),!this.isBaseLayer()&&Math.abs(x.north-v.north)>=y&&(I=Math.max(0,(x.north-v.south)/v.height));const D=I;for(let e=_.x;e<=Z.x;e++)if(C=O,E=T(e,_.y,d),x=p.Z.simpleIntersection(E,c,G),(0,s.Z)(x)){O=Math.min(1,(x.east-v.west)/v.width),e===Z.x&&(this.isBaseLayer()||Math.abs(x.east-v.east)<g)&&(O=1),I=D;for(let t=_.y;t<=Z.y;t++){if(S=I,E=T(e,t,d),x=p.Z.simpleIntersection(E,c,G),!(0,s.Z)(x))continue;I=Math.max(0,(x.south-v.south)/v.height),t===Z.y&&(this.isBaseLayer()||Math.abs(x.south-v.south)<y)&&(I=0);const o=new r.Z(C,I,O,S),u=this.getImageryFromCache(e,t,d);n.imagery.splice(i,0,new U.Z(u,o,a)),++i}}return!0},V.prototype._calculateTextureTranslationAndScale=function(e,t){let i=t.readyImagery.rectangle,n=e.rectangle;if(t.useWebMercatorT){const e=t.readyImagery.imageryLayer.imageryProvider.tilingScheme;i=e.rectangleToNativeRectangle(i,z),n=e.rectangleToNativeRectangle(n,q)}const o=n.width,s=n.height,a=o/i.width,c=s/i.height;return new r.Z(a*(n.west-i.west)/o,c*(n.south-i.south)/s,a,c)},V.prototype._requestImagery=function(e){const t=this._imageryProvider,i=this;function n(t){if(!(0,s.Z)(t))return r();e.image=t,e.state=k.Z.RECEIVED,e.request=void 0,y.Z.handleSuccess(i._requestImageError)}function r(n){if(e.request.state===_.Z.CANCELLED)return e.state=k.Z.UNLOADED,void(e.request=void 0);e.state=k.Z.FAILED,e.request=void 0;const r="Failed to obtain image tile X: "+e.x+" Y: "+e.y+" Level: "+e.level+".";i._requestImageError=y.Z.handleError(i._requestImageError,t,t.errorEvent,r,e.x,e.y,e.level,o,n)}function o(){const i=new m.Z({throttle:!1,throttleByServer:!0,type:Z.Z.IMAGERY});e.request=i,e.state=k.Z.TRANSITIONING;const o=t.requestImage(e.x,e.y,e.level,i);if(!(0,s.Z)(o))return e.state=k.Z.UNLOADED,void(e.request=void 0);(0,s.Z)(t.getTileCredits)&&(e.credits=t.getTileCredits(e.x,e.y,e.level)),(0,L.Z)(o,n,r)}o()},V.prototype._createTextureWebGL=function(e,t){const i=new E.Z({minificationFilter:this.minificationFilter,magnificationFilter:this.magnificationFilter}),n=t.image;return(0,s.Z)(n.internalFormat)?new O.Z({context:e,pixelFormat:n.internalFormat,width:n.width,height:n.height,source:{arrayBufferView:n.bufferView},sampler:i}):new O.Z({context:e,source:n,pixelFormat:this._imageryProvider.hasAlphaChannel?f.Z.RGBA:f.Z.RGB,sampler:i})},V.prototype._createTexture=function(e,t){const i=this._imageryProvider,n=t.image;if((0,s.Z)(i.tileDiscardPolicy)){const e=i.tileDiscardPolicy;if((0,s.Z)(e)){if(!e.isReady())return void(t.state=k.Z.RECEIVED);if(e.shouldDiscardImage(n))return void(t.state=k.Z.INVALID)}}if(this.minificationFilter!==D.Z.NEAREST&&this.minificationFilter!==D.Z.LINEAR)throw new c.Z("ImageryLayer minification filter must be NEAREST or LINEAR");const r=this._createTextureWebGL(e,t);i.tilingScheme.projection instanceof b.Z?t.textureWebMercator=r:t.texture=r,t.image=void 0,t.state=k.Z.TEXTURE_LOADED},V.prototype._finalizeReprojectTexture=function(e,t){let i=this.minificationFilter;const n=this.magnificationFilter;if(i===D.Z.LINEAR&&n===I.Z.LINEAR&&!f.Z.isCompressedFormat(t.pixelFormat)&&d.Z.isPowerOfTwo(t.width)&&d.Z.isPowerOfTwo(t.height)){i=D.Z.LINEAR_MIPMAP_LINEAR;const r=T.Z.maximumTextureFilterAnisotropy,a=Math.min(r,(0,o.Z)(this._maximumAnisotropy,r)),c=j(i,n,a);let u=e.cache.imageryLayerMipmapSamplers;(0,s.Z)(u)||(u={},e.cache.imageryLayerMipmapSamplers=u);let l=u[c];(0,s.Z)(l)||(l=u[c]=new E.Z({wrapS:P.Z.CLAMP_TO_EDGE,wrapT:P.Z.CLAMP_TO_EDGE,minificationFilter:i,magnificationFilter:n,maximumAnisotropy:a})),t.generateMipmap(C.Z.NICEST),t.sampler=l}else{const r=j(i,n,0);let o=e.cache.imageryLayerNonMipmapSamplers;(0,s.Z)(o)||(o={},e.cache.imageryLayerNonMipmapSamplers=o);let a=o[r];(0,s.Z)(a)||(a=o[r]=new E.Z({wrapS:P.Z.CLAMP_TO_EDGE,wrapT:P.Z.CLAMP_TO_EDGE,minificationFilter:i,magnificationFilter:n})),t.sampler=a}},V.prototype._reprojectTexture=function(e,t,i){const n=t.textureWebMercator||t.texture,r=t.rectangle,a=e.context;if((i=(0,o.Z)(i,!0))&&!(this._imageryProvider.tilingScheme.projection instanceof l.Z)&&r.width/n.width>1e-5){const e=this;t.addReference();const i=new v.Z({persists:!0,owner:this,preExecute:function(e){!function(e,t,i,n){let r=t.cache.imageryLayer_reproject;if(!(0,s.Z)(r)){r=t.cache.imageryLayer_reproject={vertexArray:void 0,shaderProgram:void 0,sampler:void 0,destroy:function(){(0,s.Z)(this.framebuffer)&&this.framebuffer.destroy(),(0,s.Z)(this.vertexArray)&&this.vertexArray.destroy(),(0,s.Z)(this.shaderProgram)&&this.shaderProgram.destroy()}};const e=new Float32Array(256);let i=0;for(let t=0;t<64;++t){const n=t/63;e[i++]=0,e[i++]=n,e[i++]=1,e[i++]=n}const n={position:0,webMercatorT:1},o=g.Z.getRegularGridIndices(2,64),a=A.Z.createIndexBuffer({context:t,typedArray:o,usage:w.Z.STATIC_DRAW,indexDatatype:h.Z.UNSIGNED_SHORT});r.vertexArray=new R.Z({context:t,attributes:[{index:n.position,vertexBuffer:A.Z.createVertexBuffer({context:t,typedArray:e,usage:w.Z.STATIC_DRAW}),componentsPerAttribute:2},{index:n.webMercatorT,vertexBuffer:A.Z.createVertexBuffer({context:t,sizeInBytes:512,usage:w.Z.STREAM_DRAW}),componentsPerAttribute:1}],indexBuffer:a});const c=new S.Z({sources:[M.Z]});r.shaderProgram=x.Z.fromCache({context:t,vertexShaderSource:c,fragmentShaderSource:B.Z,attributeLocations:n}),r.sampler=new E.Z({wrapS:P.Z.CLAMP_TO_EDGE,wrapT:P.Z.CLAMP_TO_EDGE,minificationFilter:D.Z.LINEAR,magnificationFilter:I.Z.LINEAR})}i.sampler=r.sampler;const o=i.width,a=i.height;K.textureDimensions.x=o,K.textureDimensions.y=a,K.texture=i;let c=Math.sin(n.south);const u=.5*Math.log((1+c)/(1-c));c=Math.sin(n.north);const l=1/(.5*Math.log((1+c)/(1-c))-u),f=new O.Z({context:t,width:o,height:a,pixelFormat:i.pixelFormat,pixelDatatype:i.pixelDatatype,preMultiplyAlpha:i.preMultiplyAlpha});d.Z.isPowerOfTwo(o)&&d.Z.isPowerOfTwo(a)&&f.generateMipmap(C.Z.NICEST);const p=n.south,m=n.north,_=Y;let Z=0;for(let e=0;e<64;++e){const t=e/63,i=d.Z.lerp(p,m,t);c=Math.sin(i);const n=(.5*Math.log((1+c)/(1-c))-u)*l;_[Z++]=n,_[Z++]=n}r.vertexArray.getAttribute(1).vertexBuffer.copyFromArrayView(_),e.shaderProgram=r.shaderProgram,e.outputTexture=f,e.uniformMap=K,e.vertexArray=r.vertexArray}(e,a,n,t.rectangle)},postExecute:function(i){t.texture=i,e._finalizeReprojectTexture(a,i),t.state=k.Z.READY,t.releaseReference()},canceled:function(){t.state=k.Z.TEXTURE_LOADED,t.releaseReference()}});this._reprojectComputeCommands.push(i)}else i&&(t.texture=n),this._finalizeReprojectTexture(a,n),t.state=k.Z.READY},V.prototype.queueReprojectionCommands=function(e){const t=this._reprojectComputeCommands,i=t.length;for(let n=0;n<i;++n)e.commandList.push(t[n]);t.length=0},V.prototype.cancelReprojections=function(){this._reprojectComputeCommands.forEach((function(e){(0,s.Z)(e.canceled)&&e.canceled()})),this._reprojectComputeCommands.length=0},V.prototype.getImageryFromCache=function(e,t,i,n){const r=W(e,t,i);let o=this._imageryCache[r];return(0,s.Z)(o)||(o=new N.Z(this,e,t,i,n),this._imageryCache[r]=o),o.addReference(),o},V.prototype.removeImageryFromCache=function(e){const t=W(e.x,e.y,e.level);delete this._imageryCache[t]};const K={u_textureDimensions:function(){return this.textureDimensions},u_texture:function(){return this.texture},textureDimensions:new n.Z,texture:void 0},Y=u.Z.supportsTypedArrays()?new Float32Array(128):void 0,X=V},791939:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Z});var n=i(406144),r=i(426468),o=i(54879),s=i(446938),a=i(197685),c=i(362017),u=i(523501),l=i(527758),h=i(522032);function d(){this._layers=[],this.layerAdded=new a.Z,this.layerRemoved=new a.Z,this.layerMoved=new a.Z,this.layerShownOrHidden=new a.Z}function f(e,t){if(!(0,r.Z)(t))throw new s.Z("layer is required.");const i=e.indexOf(t);if(-1===i)throw new s.Z("layer is not in this collection.");return i}function p(e,t,i){const n=e._layers;if((t=c.Z.clamp(t,0,n.length-1))===(i=c.Z.clamp(i,0,n.length-1)))return;const r=n[t];n[t]=n[i],n[i]=r,e._update(),e.layerMoved.raiseEvent(r,i,t)}Object.defineProperties(d.prototype,{length:{get:function(){return this._layers.length}}}),d.prototype.add=function(e,t){const i=(0,r.Z)(t);if(!(0,r.Z)(e))throw new s.Z("layer is required.");if(i){if(t<0)throw new s.Z("index must be greater than or equal to zero.");if(t>this._layers.length)throw new s.Z("index must be less than or equal to the number of layers.")}i?this._layers.splice(t,0,e):(t=this._layers.length,this._layers.push(e)),this._update(),this.layerAdded.raiseEvent(e,t)},d.prototype.addImageryProvider=function(e,t){if(!(0,r.Z)(e))throw new s.Z("imageryProvider is required.");const i=new h.Z(e);return this.add(i,t),i},d.prototype.remove=function(e,t){t=(0,n.Z)(t,!0);const i=this._layers.indexOf(e);return-1!==i&&(this._layers.splice(i,1),this._update(),this.layerRemoved.raiseEvent(e,i),t&&e.destroy(),!0)},d.prototype.removeAll=function(e){e=(0,n.Z)(e,!0);const t=this._layers;for(let i=0,n=t.length;i<n;i++){const n=t[i];this.layerRemoved.raiseEvent(n,i),e&&n.destroy()}this._layers=[]},d.prototype.contains=function(e){return-1!==this.indexOf(e)},d.prototype.indexOf=function(e){return this._layers.indexOf(e)},d.prototype.get=function(e){if(!(0,r.Z)(e))throw new s.Z("index is required.","index");return this._layers[e]},d.prototype.raise=function(e){const t=f(this._layers,e);p(this,t,t+1)},d.prototype.lower=function(e){const t=f(this._layers,e);p(this,t,t-1)},d.prototype.raiseToTop=function(e){const t=f(this._layers,e);t!==this._layers.length-1&&(this._layers.splice(t,1),this._layers.push(e),this._update(),this.layerMoved.raiseEvent(e,this._layers.length-1,t))},d.prototype.lowerToBottom=function(e){const t=f(this._layers,e);0!==t&&(this._layers.splice(t,1),this._layers.splice(0,0,e),this._update(),this.layerMoved.raiseEvent(e,0,t))};const m=new u.Z;function _(e,t,i,n){const o=e.globe._surface._tilesToRender;let s;for(let e=0;!(0,r.Z)(s)&&e<o.length;++e){const i=o[e];u.Z.contains(i.rectangle,t)&&(s=i)}if(!(0,r.Z)(s))return;const a=s.data.imagery;for(let e=a.length-1;e>=0;--e){const o=a[e],l=o.readyImagery;if(!(0,r.Z)(l))continue;const h=l.imageryLayer.imageryProvider;if(i&&!(0,r.Z)(h.pickFeatures))continue;if(!u.Z.contains(l.rectangle,t))continue;const d=m,f=1/1024;d.west=c.Z.lerp(s.rectangle.west,s.rectangle.east,o.textureCoordinateRectangle.x-f),d.east=c.Z.lerp(s.rectangle.west,s.rectangle.east,o.textureCoordinateRectangle.z+f),d.south=c.Z.lerp(s.rectangle.south,s.rectangle.north,o.textureCoordinateRectangle.y-f),d.north=c.Z.lerp(s.rectangle.south,s.rectangle.north,o.textureCoordinateRectangle.w+f),u.Z.contains(d,t)&&n(l)}}d.prototype.pickImageryLayers=function(e,t){const i=t.globe.pick(e,t);if(!(0,r.Z)(i))return;const n=t.globe.ellipsoid.cartesianToCartographic(i),o=[];return _(t,n,!1,(function(e){o.push(e.imageryLayer)})),0!==o.length?o:void 0},d.prototype.pickImageryLayerFeatures=function(e,t){const i=t.globe.pick(e,t);if(!(0,r.Z)(i))return;const n=t.globe.ellipsoid.cartesianToCartographic(i),o=[],s=[];return _(t,n,!0,(function(e){const t=e.imageryLayer.imageryProvider.pickFeatures(e.x,e.y,e.level,n.longitude,n.latitude);(0,r.Z)(t)&&(o.push(t),s.push(e.imageryLayer))})),0!==o.length?l.Z.all(o,(function(e){const t=[];for(let i=0;i<e.length;++i){const o=e[i],a=s[i];if((0,r.Z)(o)&&o.length>0)for(let e=0;e<o.length;++e){const i=o[e];i.imageryLayer=a,(0,r.Z)(i.position)||(i.position=n),t.push(i)}}return t})):void 0},d.prototype.queueReprojectionCommands=function(e){const t=this._layers;for(let i=0,n=t.length;i<n;++i)t[i].queueReprojectionCommands(e)},d.prototype.cancelReprojections=function(){const e=this._layers;for(let t=0,i=e.length;t<i;++t)e[t].cancelReprojections()},d.prototype.isDestroyed=function(){return!1},d.prototype.destroy=function(){return this.removeAll(!0),(0,o.Z)(this)},d.prototype._update=function(){let e=!0;const t=this._layers;let i,n,o,s;for(o=0,s=t.length;o<s;++o)n=t[o],n._layerIndex=o,n.show?(n._isBaseLayer=e,e=!1):n._isBaseLayer=!1,n.show!==n._show&&((0,r.Z)(n._show)&&((0,r.Z)(i)||(i=[]),i.push(n)),n._show=n.show);if((0,r.Z)(i))for(o=0,s=i.length;o<s;++o)n=i[o],this.layerShownOrHidden.raiseEvent(n,n._layerIndex,n.show)};const Z=d},103198:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(426468);function r(){this.name=void 0,this.description=void 0,this.position=void 0,this.data=void 0,this.imageryLayer=void 0}r.prototype.configureNameFromProperties=function(e){let t,i=10;for(const n in e)if(e.hasOwnProperty(n)&&e[n]){const e=n.toLowerCase();i>1&&"name"===e?(i=1,t=n):i>2&&"title"===e?(i=2,t=n):i>3&&/name/i.test(n)?(i=3,t=n):i>4&&/title/i.test(n)&&(i=4,t=n)}(0,n.Z)(t)&&(this.name=e[t])},r.prototype.configureDescriptionFromProperties=function(e){this.description=function e(t){let i='<table class="cesium-infoBox-defaultTable">';for(const r in t)if(t.hasOwnProperty(r)){const o=t[r];(0,n.Z)(o)&&(i+="object"==typeof o?"<tr><td>"+r+"</td><td>"+e(o)+"</td></tr>":"<tr><td>"+r+"</td><td>"+o+"</td></tr>")}return i+="</table>",i}(e)};const o=r},616007:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(357299),r=i(426468),o=i(446938),s=i(210510),a=i(795788);function c(){this.defaultAlpha=void 0,this.defaultNightAlpha=void 0,this.defaultDayAlpha=void 0,this.defaultBrightness=void 0,this.defaultContrast=void 0,this.defaultHue=void 0,this.defaultSaturation=void 0,this.defaultGamma=void 0,this.defaultMinificationFilter=void 0,this.defaultMagnificationFilter=void 0,o.Z.throwInstantiationError()}Object.defineProperties(c.prototype,{ready:{get:o.Z.throwInstantiationError},readyPromise:{get:o.Z.throwInstantiationError},rectangle:{get:o.Z.throwInstantiationError},tileWidth:{get:o.Z.throwInstantiationError},tileHeight:{get:o.Z.throwInstantiationError},maximumLevel:{get:o.Z.throwInstantiationError},minimumLevel:{get:o.Z.throwInstantiationError},tilingScheme:{get:o.Z.throwInstantiationError},tileDiscardPolicy:{get:o.Z.throwInstantiationError},errorEvent:{get:o.Z.throwInstantiationError},credit:{get:o.Z.throwInstantiationError},proxy:{get:o.Z.throwInstantiationError},hasAlphaChannel:{get:o.Z.throwInstantiationError}}),c.prototype.getTileCredits=function(e,t,i){o.Z.throwInstantiationError()},c.prototype.requestImage=function(e,t,i,n){o.Z.throwInstantiationError()},c.prototype.pickFeatures=function(e,t,i,n,r){o.Z.throwInstantiationError()};const u=/\.ktx2$/i;c.loadImage=function(e,t){n.Z.defined("url",t);const i=a.Z.createIfNeeded(t);return u.test(i.url)?(0,s.Z)(i):(0,r.Z)(e)&&(0,r.Z)(e.tileDiscardPolicy)?i.fetchImage({preferBlob:!0,preferImageBitmap:!0,flipY:!0}):i.fetchImage({preferImageBitmap:!0,flipY:!0})};const l=c},201142:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({LEFT:-1,NONE:0,RIGHT:1})},649479:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({UNLOADED:0,TRANSITIONING:1,RECEIVED:2,TEXTURE_LOADED:3,READY:4,FAILED:5,INVALID:6,PLACEHOLDER:7})},361180:(e,t,i)=>{"use strict";i.d(t,{Z:()=>A});var n=i(919382),r=i(357299),o=i(556592),s=i(307260),a=i(406144),c=i(426468),u=i(54879),l=i(362017),h=i(440066),d=i(165373),f=i(523501),p=i(820074),m=i(527758),_=i(560849),Z=i(354845),g=i(105385),y=i(933197),b=i(503728);function A(e,t,i,n,o){r.Z.defined("tile.implicitTileset",t.implicitTileset),r.Z.defined("tile.implicitCoordinates",t.implicitCoordinates);const s=t.implicitTileset,u=t.implicitCoordinates;this._implicitTileset=s,this._implicitCoordinates=u,this._implicitSubtree=void 0,this._tileset=e,this._tile=t,this._resource=i,this._readyPromise=m.Z.defer(),this.featurePropertiesDirty=!1,this._groupMetadata=void 0;const l=u.getTemplateValues(),h=s.subtreeUriTemplate.getDerivedResource({templateValues:l});this._url=h.getUrlComponent(!0),function(e,t,i){i=(0,a.Z)(i,0);const n=new Uint8Array(t,i),r=new _.Z(e._resource,n,e._implicitTileset,e._implicitCoordinates);e._implicitSubtree=r,r.readyPromise.then((function(){!function(e,t){const i=e._tile,n=function(e,t,i,n){const r=v(e,t,i,n,0,!0);let o=[r],s=[];const a=e._implicitTileset;for(let i=1;i<a.subtreeLevels;i++){const n=t.getLevelOffset(i),r=a.branchingFactor*o.length;for(let i=0;i<r;i++){const r=n+i;if(!t.tileIsAvailableAtIndex(r)){s.push(void 0);continue}const c=o[t.getParentMortonIndex(i)],u=v(e,t,c,i%a.branchingFactor,r);c.children.push(u),s.push(u)}o=s,s=[]}return{rootTile:r,bottomRow:o}}(e,t,i,e._implicitCoordinates.childIndex);i.children.push(n.rootTile);const r=function(e,t,i){const n=[],r=e._implicitTileset.branchingFactor;for(let e=0;e<i.length;e++){const o=i[e];if((0,c.Z)(o))for(let i=0;i<r;i++){const s=e*r+i;t.childSubtreeIsAvailableAtIndex(s)&&n.push({tile:o,childIndex:i})}}return n}(e,t,n.bottomRow);for(let t=0;t<r.length;t++){const i=r[t],n=i.tile,o=L(e,n,i.childIndex);n.children.push(o)}}(e,r),e._readyPromise.resolve()})).otherwise((function(t){e._readyPromise.reject(t)}))}(this,n,o)}function w(e,t,i){const n=y.Z.TILE_GEOMETRIC_ERROR;return(0,c.Z)(e)&&e.hasPropertyBySemantic(n)?e.getPropertyBySemantic(n):t.geometricError/Math.pow(2,i.level)}function v(e,t,i,n,r,u){const l=e._implicitTileset;let h,d,f,p;if(h=(0,a.Z)(u,!1)?i.implicitCoordinates:i.implicitCoordinates.getChildCoordinates(n),(0,c.Z)(t.metadataExtension)){const e=t.metadataTable;d=new Z.Z({class:e.class,implicitCoordinates:h,implicitSubtree:t});const i=(0,b.Z)(d);f=i.tile,p=i.content}const m=function(e,t,i,n,r,o){let s;return s=!(0,c.Z)(o)||!(0,c.Z)(o.boundingVolume)||!T(o.boundingVolume,o)&&T(e.boundingVolume,o)?x(e,t,i,(0,a.Z)(n,!1),r):o.boundingVolume,C(s,o),s}(l,h,n,u,i,f),_=[];for(let e=0;e<l.contentCount;e++){if(!t.contentIsAvailableAtIndex(r,e))continue;const i={uri:l.contentUriTemplates[e].getDerivedResource({templateValues:h.getTemplateValues()}).url},n=E(m,p);(0,c.Z)(n)&&(i.boundingVolume=n),_.push((0,s.Z)(i,l.contentHeaders[e]))}const g={boundingVolume:m,geometricError:w(d,l,h),refine:l.refine};1===_.length?g.content=_[0]:_.length>1&&(g.extensions={"3DTILES_multiple_contents":{content:_}});const y=(0,o.Z)(l.tileHeader,!0);delete y.boundingVolume,delete y.transform;const A=(0,s.Z)(g,y,!0),v=N(e,l.baseResource,A,i);return v.implicitCoordinates=h,v.implicitSubtree=t,v.metadata=d,v}function T(e,t){return(0,c.Z)(e)&&(0,c.Z)(t)&&((0,c.Z)(t.minimumHeight)||(0,c.Z)(t.maximumHeight))&&((0,g.Z)(e,"3DTILES_bounding_volume_S2")||(0,c.Z)(e.region))}function C(e,t){var i,n,r;(0,g.Z)(e,"3DTILES_bounding_volume_S2")&&(0,c.Z)(t)?(i=e.extensions["3DTILES_bounding_volume_S2"],n=t.minimumHeight,r=t.maximumHeight,(0,c.Z)(n)&&(i.minimumHeight=n),(0,c.Z)(r)&&(i.maximumHeight=r)):(0,c.Z)(e.region)&&(0,c.Z)(t)&&function(e,t,i){(0,c.Z)(t)&&(e[4]=t),(0,c.Z)(i)&&(e[5]=i)}(e.region,t.minimumHeight,t.maximumHeight)}function E(e,t){let i;return(0,c.Z)(t)&&(i=t.boundingVolume),T(i,t)?C(i,t):T(e,t)&&(i=(0,o.Z)(e,!0),C(i,t)),i}function x(e,t,i,n,r){const o=e.boundingVolume;return(0,g.Z)(o,"3DTILES_bounding_volume_S2")?S(n,r,i,t.level,t.x,t.y,t.z):(0,c.Z)(o.region)?{region:M(o.region,t.level,t.x,t.y,t.z)}:{box:R(o.box,t.level,t.x,t.y,t.z)}}function S(e,t,i,n,o,s,a){r.Z.typeOf.bool("parentIsPlaceholderTile",e),r.Z.typeOf.object("parentTile",t),r.Z.typeOf.number("childIndex",i),r.Z.typeOf.number("level",n),r.Z.typeOf.number("x",o),r.Z.typeOf.number("y",s),(0,c.Z)(a)&&r.Z.typeOf.number("z",a);const u=t._boundingVolume;if(e)return{extensions:{"3DTILES_bounding_volume_S2":{token:p.Z.getTokenFromId(u.s2Cell._cellId),minimumHeight:u.minimumHeight,maximumHeight:u.maximumHeight}}};var l=Number(t._boundingVolume.s2Cell._cellId>>BigInt(61));const d=l%2==0?h.Z.encode2D(n,o,s):h.Z.encode2D(n,s,o);var f=p.Z.fromFacePositionLevel(l,BigInt(d),n);let m,_;if((0,c.Z)(a)){const e=(u.maximumHeight+u.minimumHeight)/2;m=i<4?u.minimumHeight:e,_=i<4?e:u.maximumHeight}else m=u.minimumHeight,_=u.maximumHeight;return{extensions:{"3DTILES_bounding_volume_S2":{token:p.Z.getTokenFromId(f._cellId),minimumHeight:m,maximumHeight:_}}}}Object.defineProperties(A.prototype,{featuresLength:{get:function(){return 0}},pointsLength:{get:function(){return 0}},trianglesLength:{get:function(){return 0}},geometryByteLength:{get:function(){return 0}},texturesByteLength:{get:function(){return 0}},batchTableByteLength:{get:function(){return 0}},innerContents:{get:function(){}},readyPromise:{get:function(){return this._readyPromise.promise}},tileset:{get:function(){return this._tileset}},tile:{get:function(){return this._tile}},url:{get:function(){return this._url}},batchTable:{get:function(){}},groupMetadata:{get:function(){return this._groupMetadata},set:function(e){this._groupMetadata=e}}});const O=new n.Z,I=new n.Z,D=new n.Z,P=new d.Z;function R(e,t,i,o,s){if(r.Z.typeOf.object("rootBox",e),r.Z.typeOf.number("level",t),r.Z.typeOf.number("x",i),r.Z.typeOf.number("y",o),(0,c.Z)(s)&&r.Z.typeOf.number("z",s),0===t)return e;const a=n.Z.unpack(e,0,I),u=d.Z.unpack(e,3,P),l=Math.pow(2,-t),h=(2*i+1)*l-1,f=(2*o+1)*l-1;let p=0;const m=n.Z.fromElements(l,l,1,O);(0,c.Z)(s)&&(p=(2*s+1)*l-1,m.z=l);let _=n.Z.fromElements(h,f,p,D);_=d.Z.multiplyByVector(u,_,D),_=n.Z.add(_,a,D);let Z=d.Z.clone(u);Z=d.Z.multiplyByScale(Z,m,Z);const g=new Array(12);return n.Z.pack(_,g),d.Z.pack(Z,g,3),g}const B=new f.Z;function M(e,t,i,n,o){if(r.Z.typeOf.object("rootRegion",e),r.Z.typeOf.number("level",t),r.Z.typeOf.number("x",i),r.Z.typeOf.number("y",n),(0,c.Z)(o)&&r.Z.typeOf.number("z",o),0===t)return e.slice();const s=f.Z.unpack(e,0,B),a=e[4],u=e[5],h=Math.pow(2,-t),d=h*s.width,p=l.Z.negativePiToPi(s.west+i*d),m=l.Z.negativePiToPi(p+d),_=h*s.height,Z=l.Z.negativePiToPi(s.south+n*_),g=l.Z.negativePiToPi(Z+_);let y=a,b=u;if((0,c.Z)(o)){const e=h*(u-a);y+=o*e,b=y+e}return[p,Z,m,g,y,b]}function L(e,t,i){const n=e._implicitTileset,r=t.implicitCoordinates.getChildCoordinates(i),o=x(n,r,i,!1,t),s=w(void 0,n,r),a=n.subtreeUriTemplate.getDerivedResource({templateValues:r.getTemplateValues()}).url,c={boundingVolume:o,geometricError:s,refine:n.refine,content:{uri:a}},u=N(e,n.baseResource,c,t);return u.implicitTileset=n,u.implicitCoordinates=r,u}function N(e,t,i,n){return new(0,e._tile.constructor)(e._tileset,t,i,n)}A.prototype.hasProperty=function(e,t){return!1},A.prototype.getFeature=function(e){},A.prototype.applyDebugSettings=function(e,t){},A.prototype.applyStyle=function(e){},A.prototype.update=function(e,t){},A.prototype.isDestroyed=function(){return!1},A.prototype.destroy=function(){return this._implicitSubtree=this._implicitSubtree&&this._implicitSubtree.destroy(),(0,u.Z)(this)},A._deriveBoundingBox=R,A._deriveBoundingRegion=M,A._deriveBoundingVolumeS2=S},47661:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(357299),r=i(426468),o=i(406144),s=i(446938),a=i(50128);function c(e){const t=e.lengthBits;let i=e.availableCount;n.Z.typeOf.number("options.lengthBits",t);const s=e.constant,c=e.bitstream;if((0,r.Z)(s))i=t;else{const n=Math.ceil(t/8);if(c.length!==n)throw new a.Z("Availability bitstream must be exactly "+n+" bytes long to store "+t+" bits. Actual bitstream was "+c.length+" bytes long.");const s=(0,o.Z)(e.computeAvailableCountEnabled,!1);!(0,r.Z)(i)&&s&&(i=function(e,t){let i=0;for(let n=0;n<t;n++){const t=n%8;i+=e[n>>3]>>t&1}return i}(c,t))}this._lengthBits=t,this._availableCount=i,this._constant=s,this._bitstream=c}Object.defineProperties(c.prototype,{lengthBits:{get:function(){return this._lengthBits}},availableCount:{get:function(){return this._availableCount}}}),c.prototype.getBit=function(e){if(e<0||e>=this._lengthBits)throw new s.Z("Bit index out of bounds.");if((0,r.Z)(this._constant))return this._constant;const t=e>>3,i=e%8;return 1==(this._bitstream[t]>>i&1)}},940736:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(446938);const r={QUADTREE:"QUADTREE",OCTREE:"OCTREE",getBranchingFactor:function(e){switch(e){case r.OCTREE:return 8;case r.QUADTREE:return 4;default:throw new n.Z("subdivisionScheme is not a valid value.")}}},o=Object.freeze(r)},560849:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_});var n=i(357299),r=i(406144),o=i(446938),s=i(426468),a=i(54879),c=i(987606),u=i(50128),l=i(105385),h=i(47661),d=i(940736),f=i(388847),p=i(182370),m=i(527758);function _(e,t,i,o){n.Z.typeOf.object("resource",e),n.Z.typeOf.object("subtreeView",t),n.Z.typeOf.object("implicitTileset",i),n.Z.typeOf.object("implicitCoordinates",o),this._resource=e,this._subtreeJson=void 0,this._bufferLoader=void 0,this._tileAvailability=void 0,this._implicitCoordinates=o,this._contentAvailabilityBitstreams=[],this._childSubtreeAvailability=void 0,this._subtreeLevels=i.subtreeLevels,this._subdivisionScheme=i.subdivisionScheme,this._branchingFactor=i.branchingFactor,this._readyPromise=m.Z.defer(),this._metadataTable=void 0,this._metadataExtension=void 0,this._jumpBuffer=void 0,function(e,t,i){const n=function(e){const t=new DataView(e.buffer,e.byteOffset);let i=8;const n=t.getUint32(i,true);i+=8;const r=t.getUint32(i,true);i+=8;const o=(0,c.Z)(e,i,n);i+=n;return{json:o,binary:e.subarray(i,i+r)}}(t),o=n.json;let a;e._subtreeJson=o,(0,l.Z)(o,"3DTILES_metadata")&&(a=o.extensions["3DTILES_metadata"]),e._metadataExtension=a;o.contentAvailabilityHeaders=[],(0,l.Z)(o,"3DTILES_multiple_contents")?o.contentAvailabilityHeaders=o.extensions["3DTILES_multiple_contents"].contentAvailability:o.contentAvailabilityHeaders.push((0,r.Z)(o.contentAvailability,{constant:0}));const u=function(e){e=(0,s.Z)(e)?e:[];for(let t=0;t<e.length;t++){const i=e[t];i.isExternal=(0,s.Z)(i.uri),i.isActive=!1}return e}(o.buffers),h=function(e,t){e=(0,s.Z)(e)?e:[];for(let i=0;i<e.length;i++){const n=e[i],r=t[n.buffer];n.bufferHeader=r,n.isActive=!1}return e}(o.bufferViews,u);(function(e,t){let i;const n=e.tileAvailability;(0,s.Z)(n.bufferView)&&(i=t[n.bufferView],i.isActive=!0,i.bufferHeader.isActive=!0);const r=e.contentAvailabilityHeaders;for(let e=0;e<r.length;e++)(0,s.Z)(r[e].bufferView)&&(i=t[r[e].bufferView],i.isActive=!0,i.bufferHeader.isActive=!0);const o=e.childSubtreeAvailability;(0,s.Z)(o.bufferView)&&(i=t[o.bufferView],i.isActive=!0,i.bufferHeader.isActive=!0)})(o,h),(0,s.Z)(a)&&function(e,t){const i=e.properties;let n;for(const e in i)if(i.hasOwnProperty(e)){const r=i[e];n=t[r.bufferView],n.isActive=!0,n.bufferHeader.isActive=!0,(0,s.Z)(r.stringOffsetBufferView)&&(n=t[r.stringOffsetBufferView],n.isActive=!0,n.bufferHeader.isActive=!0),(0,s.Z)(r.arrayOffsetBufferView)&&(n=t[r.arrayOffsetBufferView],n.isActive=!0,n.bufferHeader.isActive=!0)}}(a,h),function(e,t,i){const n=[];for(let r=0;r<t.length;r++){const o=t[r];if(o.isActive)if(o.isExternal){const t=Z(e,o);n.push(t)}else n.push(m.Z.resolve(i));else n.push(m.Z.resolve(void 0))}return m.Z.all(n).then((function(e){const t={};for(let i=0;i<e.length;i++){const n=e[i];(0,s.Z)(n)&&(t[i]=n)}return t}))}(e,u,n.binary).then((function(t){const n=function(e,t){const i={};for(let n=0;n<e.length;n++){const r=e[n];if(!r.isActive)continue;const o=r.byteOffset,s=o+r.byteLength,a=t[r.buffer].subarray(o,s);i[n]=a}return i}(h,t);!function(e,t,i,n){const r=i.branchingFactor,o=i.subtreeLevels,s=(Math.pow(r,o)-1)/(r-1),a=Math.pow(r,o),c=(0,l.Z)(t,"3DTILES_metadata");e._tileAvailability=g(t.tileAvailability,n,s,c);for(let i=0;i<t.contentAvailabilityHeaders.length;i++){const r=g(t.contentAvailabilityHeaders[i],n,s);e._contentAvailabilityBitstreams.push(r)}e._childSubtreeAvailability=g(t.childSubtreeAvailability,n,a)}(e,o,i,n),(0,s.Z)(a)&&(function(e,t,i){const n=e._metadataExtension,r=e._tileAvailability.availableCount,o=n.class,s=t.metadataSchema.classes[o];e._metadataTable=new f.Z({class:s,count:r,properties:n.properties,bufferViews:i})}(e,i,n),function(e){const t=e._tileAvailability;let i=0;const n=t.lengthBits,r=t.availableCount;let o;o=r<256?new Uint8Array(n):r<65536?new Uint16Array(n):new Uint32Array(n);for(let e=0;e<t.lengthBits;e++)t.getBit(e)&&(o[e]=i,i++);e._jumpBuffer=o}(e)),e._readyPromise.resolve(e)})).otherwise((function(t){e._readyPromise.reject(t)}))}(this,t,i)}function Z(e,t){const i=e._resource.getDerivedResource({url:t.uri}),n=p.Z.loadExternalBuffer({resource:i});return e._bufferLoader=n,n.promise.then((function(e){return e.typedArray}))}function g(e,t,i,n){if((0,s.Z)(e.constant))return new h.Z({constant:Boolean(e.constant),lengthBits:i,availableCount:e.availableCount});const r=t[e.bufferView];return new h.Z({bitstream:r,lengthBits:i,availableCount:e.availableCount,computeAvailableCountEnabled:n})}Object.defineProperties(_.prototype,{readyPromise:{get:function(){return this._readyPromise.promise}},metadataTable:{get:function(){return this._metadataTable}},metadataExtension:{get:function(){return this._metadataExtension}},implicitCoordinates:{get:function(){return this._implicitCoordinates}}}),_.prototype.tileIsAvailableAtIndex=function(e){return this._tileAvailability.getBit(e)},_.prototype.tileIsAvailableAtCoordinates=function(e){const t=this.getTileIndex(e);return this.tileIsAvailableAtIndex(t)},_.prototype.contentIsAvailableAtIndex=function(e,t){if((t=(0,r.Z)(t,0))<0||t>=this._contentAvailabilityBitstreams.length)throw new o.Z("contentIndex out of bounds.");return this._contentAvailabilityBitstreams[t].getBit(e)},_.prototype.contentIsAvailableAtCoordinates=function(e,t){const i=this.getTileIndex(e,t);return this.contentIsAvailableAtIndex(i)},_.prototype.childSubtreeIsAvailableAtIndex=function(e){return this._childSubtreeAvailability.getBit(e)},_.prototype.childSubtreeIsAvailableAtCoordinates=function(e){const t=this.getChildSubtreeIndex(e);return this.childSubtreeIsAvailableAtIndex(t)},_.prototype.getLevelOffset=function(e){const t=this._branchingFactor;return(Math.pow(t,e)-1)/(t-1)},_.prototype.getParentMortonIndex=function(e){let t=2;return this._subdivisionScheme===d.Z.OCTREE&&(t=3),e>>t},_.prototype.getTileIndex=function(e){const t=e.level-this._implicitCoordinates.level;if(t<0||this._subtreeLevels<=t)throw new u.Z("level is out of bounds for this subtree");return e.getSubtreeCoordinates().getOffsetCoordinates(e).tileIndex},_.prototype.getChildSubtreeIndex=function(e){if(e.level-this._implicitCoordinates.level!==this._implicitCoordinates.subtreeLevels)throw new u.Z("level is out of bounds for this subtree");return e.getParentSubtreeCoordinates().getOffsetCoordinates(e).mortonIndex},_.prototype.getEntityId=function(e){if(!(0,s.Z)(this._metadataTable))return;const t=this.getTileIndex(e);return this._tileAvailability.getBit(t)?this._jumpBuffer[t]:void 0},_.prototype.isDestroyed=function(){return!1},_.prototype.destroy=function(){return(0,s.Z)(this._bufferLoader)&&p.Z.unload(this._bufferLoader),(0,a.Z)(this)}},980854:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(362017),r=i(357299),o=i(446938),s=i(190004),a=i(940736);function c(e){if(r.Z.typeOf.string("options.subdivisionScheme",e.subdivisionScheme),r.Z.typeOf.number("options.subtreeLevels",e.subtreeLevels),r.Z.typeOf.number("options.level",e.level),r.Z.typeOf.number("options.x",e.x),r.Z.typeOf.number("options.y",e.y),e.subdivisionScheme===a.Z.OCTREE&&r.Z.typeOf.number("options.z",e.z),e.level<0)throw new o.Z("level must be non-negative");if(e.x<0)throw new o.Z("x must be non-negative");if(e.y<0)throw new o.Z("y must be non-negative");if(e.subdivisionScheme===a.Z.OCTREE&&e.z<0)throw new o.Z("z must be non-negative");const t=1<<e.level;if(e.x>=t)throw new o.Z("x is out of range");if(e.y>=t)throw new o.Z("y is out of range");if(e.subdivisionScheme===a.Z.OCTREE&&e.z>=t)throw new o.Z("z is out of range");this.subdivisionScheme=e.subdivisionScheme,this.subtreeLevels=e.subtreeLevels,this.level=e.level,this.x=e.x,this.y=e.y,this.z=void 0,e.subdivisionScheme===a.Z.OCTREE&&(this.z=e.z)}function u(e,t){if(e.subdivisionScheme!==t.subdivisionScheme)throw new o.Z("coordinates must have same subdivisionScheme");if(e.subtreeLevels!==t.subtreeLevels)throw new o.Z("coordinates must have same subtreeLevels")}Object.defineProperties(c.prototype,{childIndex:{get:function(){let e=0;return e|=1&this.x,e|=(1&this.y)<<1,this.subdivisionScheme===a.Z.OCTREE&&(e|=(1&this.z)<<2),e}},mortonIndex:{get:function(){return this.subdivisionScheme===a.Z.OCTREE?s.Z.encode3D(this.x,this.y,this.z):s.Z.encode2D(this.x,this.y)}},tileIndex:{get:function(){return(this.subdivisionScheme===a.Z.OCTREE?((1<<3*this.level)-1)/7:((1<<2*this.level)-1)/3)+this.mortonIndex}}}),c.prototype.getDescendantCoordinates=function(e){r.Z.typeOf.object("offsetCoordinates",e),u(this,e);const t=this.level+e.level,i=(this.x<<e.level)+e.x,n=(this.y<<e.level)+e.y;if(this.subdivisionScheme===a.Z.OCTREE){const r=(this.z<<e.level)+e.z;return new c({subdivisionScheme:this.subdivisionScheme,subtreeLevels:this.subtreeLevels,level:t,x:i,y:n,z:r})}return new c({subdivisionScheme:this.subdivisionScheme,subtreeLevels:this.subtreeLevels,level:t,x:i,y:n})},c.prototype.getAncestorCoordinates=function(e){if(r.Z.typeOf.number("offsetLevels",e),e<0)throw new o.Z("offsetLevels must be non-negative");if(e>this.level)throw new o.Z("ancestor cannot be above the tileset root");const t=1<<e,i=this.level-e,n=Math.floor(this.x/t),s=Math.floor(this.y/t);if(this.subdivisionScheme===a.Z.OCTREE){const e=Math.floor(this.z/t);return new c({subdivisionScheme:this.subdivisionScheme,subtreeLevels:this.subtreeLevels,level:i,x:n,y:s,z:e})}return new c({subdivisionScheme:this.subdivisionScheme,subtreeLevels:this.subtreeLevels,level:i,x:n,y:s})},c.prototype.getOffsetCoordinates=function(e){if(r.Z.typeOf.object("descendantCoordinates",e),!this.isEqual(e)&&!this.isAncestor(e))throw new o.Z("this is not an ancestor of descendant");u(this,e);const t=e.level-this.level,i=1<<t,n=e.x%i,s=e.y%i;if(this.subdivisionScheme===a.Z.OCTREE){const r=e.z%i;return new c({subdivisionScheme:this.subdivisionScheme,subtreeLevels:this.subtreeLevels,level:t,x:n,y:s,z:r})}return new c({subdivisionScheme:this.subdivisionScheme,subtreeLevels:this.subtreeLevels,level:t,x:n,y:s})},c.prototype.getChildCoordinates=function(e){r.Z.typeOf.number("childIndex",e);const t=a.Z.getBranchingFactor(this.subdivisionScheme);if(e<0||t<=e)throw new o.Z("childIndex must be at least 0 and less than "+t);const i=this.level+1,n=2*this.x+e%2,s=2*this.y+Math.floor(e/2)%2;if(this.subdivisionScheme===a.Z.OCTREE){const t=2*this.z+Math.floor(e/4)%2;return new c({subdivisionScheme:this.subdivisionScheme,subtreeLevels:this.subtreeLevels,level:i,x:n,y:s,z:t})}return new c({subdivisionScheme:this.subdivisionScheme,subtreeLevels:this.subtreeLevels,level:i,x:n,y:s})},c.prototype.getSubtreeCoordinates=function(){return this.getAncestorCoordinates(this.level%this.subtreeLevels)},c.prototype.getParentSubtreeCoordinates=function(){return this.getAncestorCoordinates(this.level%this.subtreeLevels+this.subtreeLevels)},c.prototype.isAncestor=function(e){r.Z.typeOf.object("descendantCoordinates",e),u(this,e);const t=e.level-this.level;if(t<=0)return!1;const i=e.x>>t,n=e.y>>t,o=this.x===i,s=this.y===n;if(this.subdivisionScheme===a.Z.OCTREE){const i=e.z>>t,n=this.z===i;return o&&s&&n}return o&&s},c.prototype.isEqual=function(e){return r.Z.typeOf.object("otherCoordinates",e),this.subdivisionScheme===e.subdivisionScheme&&this.subtreeLevels===e.subtreeLevels&&this.level===e.level&&this.x===e.x&&this.y===e.y&&(this.subdivisionScheme!==a.Z.OCTREE||this.z===e.z)},c.prototype.isImplicitTilesetRoot=function(){return 0===this.level},c.prototype.isSubtreeRoot=function(){return this.level%this.subtreeLevels==0},c.prototype.isBottomOfSubtree=function(){return this.level%this.subtreeLevels==this.subtreeLevels-1},c.prototype.getTemplateValues=function(){const e={level:this.level,x:this.x,y:this.y};return this.subdivisionScheme===a.Z.OCTREE&&(e.z=this.z),e};const l=[0,0,0];c.fromMortonIndex=function(e,t,i,n){let r;return e===a.Z.OCTREE?(r=s.Z.decode3D(n,l),new c({subdivisionScheme:e,subtreeLevels:t,level:i,x:r[0],y:r[1],z:r[2]})):(r=s.Z.decode2D(n,l),new c({subdivisionScheme:e,subtreeLevels:t,level:i,x:r[0],y:r[1]}))},c.fromTileIndex=function(e,t,i){let r,o,s;return e===a.Z.OCTREE?(r=Math.floor(n.Z.log2(7*i+1)/3),o=((1<<3*r)-1)/7,s=i-o):(r=Math.floor(n.Z.log2(3*i+1)/2),o=((1<<2*r)-1)/3,s=i-o),c.fromMortonIndex(e,t,r,s)}},354845:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(357299),r=i(406144);function o(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),n.Z.typeOf.object("options.implicitSubtree",e.implicitSubtree),n.Z.typeOf.object("options.implicitCoordinates",e.implicitCoordinates),this._class=e.class;const t=e.implicitSubtree;this._metadataTable=t.metadataTable,this._entityId=t.getEntityId(e.implicitCoordinates);const i=t.metadataExtension;this._extensions=i.extensions,this._extras=i.extras}Object.defineProperties(o.prototype,{class:{get:function(){return this._class}},extras:{get:function(){return this._extras}},extensions:{get:function(){return this._extensions}}}),o.prototype.hasProperty=function(e){return this._metadataTable.hasProperty(e)},o.prototype.hasPropertyBySemantic=function(e){return this._metadataTable.hasPropertyBySemantic(e)},o.prototype.getPropertyIds=function(e){return this._metadataTable.getPropertyIds(e)},o.prototype.getProperty=function(e){return this._metadataTable.getProperty(this._entityId,e)},o.prototype.setProperty=function(e,t){return this._metadataTable.setProperty(this._entityId,e,t)},o.prototype.getPropertyBySemantic=function(e){return this._metadataTable.getPropertyBySemantic(this._entityId,e)},o.prototype.setPropertyBySemantic=function(e,t){return this._metadataTable.setPropertyBySemantic(this._entityId,e,t)}},548463:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(357299),r=i(556592),o=i(426468),s=i(795788),a=i(50128),c=i(105385),u=i(940736);function l(e,t,i){const l=t.extensions["3DTILES_implicit_tiling"];if(n.Z.typeOf.object('tileJson.extensions["3DTILES_implicit_tiling"]',l),this.baseResource=e,this.geometricError=t.geometricError,this.metadataSchema=i,!(0,o.Z)(t.boundingVolume.box)&&!(0,o.Z)(t.boundingVolume.region)&&!(0,c.Z)(t.boundingVolume,"3DTILES_bounding_volume_S2"))throw new a.Z("Only box, region and 3DTILES_bounding_volume_S2 are supported for implicit tiling");this.boundingVolume=t.boundingVolume,this.refine=t.refine,this.subtreeUriTemplate=new s.Z({url:l.subtrees.uri}),this.contentUriTemplates=[],this.contentHeaders=[];const h=function(e){return(0,c.Z)(e,"3DTILES_multiple_contents")?e.extensions["3DTILES_multiple_contents"].content:(0,o.Z)(e.content)?[e.content]:[]}(t);for(let e=0;e<h.length;e++){const t=h[e];this.contentHeaders.push((0,r.Z)(t,!0));const i=new s.Z({url:t.uri});this.contentUriTemplates.push(i)}this.contentCount=this.contentHeaders.length,this.tileHeader=function(e){const t=(0,r.Z)(e,!0);return delete t.extensions["3DTILES_implicit_tiling"],delete t.content,delete t.extensions["3DTILES_multiple_contents"],0===Object.keys(t.extensions).length&&delete t.extensions,t}(t),this.subdivisionScheme=u.Z[l.subdivisionScheme],this.branchingFactor=u.Z.getBranchingFactor(this.subdivisionScheme),this.subtreeLevels=l.subtreeLevels,this.maximumLevel=l.maximumLevel}},232804:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(357299);const r={TRANSLATION:"TRANSLATION",ROTATION:"ROTATION",SCALE:"SCALE",FEATURE_ID:"FEATURE_ID",fromGltfSemantic:function(e){n.Z.typeOf.string("gltfSemantic",e);let t=e;const i=/^(\w+)_\d+$/.exec(e);switch(null!==i&&(t=i[1]),t){case"TRANSLATION":return r.TRANSLATION;case"ROTATION":return r.ROTATION;case"SCALE":return r.SCALE;case"_FEATURE_ID":case"FEATURE_ID":return r.FEATURE_ID}}},o=Object.freeze(r)},479932:(e,t,i)=>{"use strict";i.d(t,{Z:()=>P});var n=i(247976),r=i(919382),o=i(545125),s=i(997274),a=i(426468),c=i(859071),u=i(54879),l=i(446938),h=i(253316),d=i(482103),f=i(165373),p=i(583917),m=i(129782),_=i(690220),Z=i(50128),g=i(358198),y=i(988131),b=i(842649),A=i(39213),w=i(657045),v=i(268053),T=i(447490),C=i(957312),E=i(788485),x=i(723710);function S(e,t,i,o,c){this._tileset=e,this._tile=t,this._resource=i,this._modelInstanceCollection=void 0,this._batchTable=void 0,this._features=void 0,this.featurePropertiesDirty=!1,this._groupMetadata=void 0,function(e,t,i){const o=C.Z.parse(t,i),c=o.gltfFormat,u=o.gltf,l=o.featureTableJson,v=o.featureTableBinary,S=o.batchTableJson,P=o.batchTableBinary,R=new T.Z(l,v),B=R.getGlobalProperty("INSTANCES_LENGTH");if(R.featuresLength=B,!(0,a.Z)(B))throw new Z.Z("Feature table global property: INSTANCES_LENGTH must be defined");e._batchTable=new w.Z(e,B,S,P);const M=e._tileset,L={instances:new Array(B),batchTable:e._batchTable,cull:!1,url:void 0,requestType:_.Z.TILES3D,gltf:void 0,basePath:void 0,incrementallyLoadTextures:!1,upAxis:M._gltfUpAxis,forwardAxis:A.Z.X,opaquePass:b.Z.CESIUM_3D_TILE,pickIdLoaded:O(e),imageBasedLightingFactor:M.imageBasedLightingFactor,lightColor:M.lightColor,luminanceAtZenith:M.luminanceAtZenith,sphericalHarmonicCoefficients:M.sphericalHarmonicCoefficients,specularEnvironmentMaps:M.specularEnvironmentMaps,backFaceCulling:M.backFaceCulling,showOutline:M.showOutline};if(0===c){let t=(0,d.Z)(u);t=t.replace(/[\s\0]+$/,""),L.url=e._resource.getDerivedResource({url:t})}else L.gltf=u,L.basePath=e._resource.clone();const N=R.getGlobalProperty("EAST_NORTH_UP");let F;const k=R.getGlobalProperty("RTC_CENTER",s.Z.FLOAT,3);(0,a.Z)(k)&&(F=r.Z.unpack(k));const U=L.instances,V=new r.Z,z=new Array(3),H=new r.Z,G=new r.Z,q=new r.Z,j=new f.Z,W=new m.Z;let K=new r.Z;const Y=new y.Z,X=new p.Z;for(let e=0;e<B;e++){let t=R.getProperty("POSITION",s.Z.FLOAT,3,e,I);if(!(0,a.Z)(t)){t=z;const i=R.getProperty("POSITION_QUANTIZED",s.Z.UNSIGNED_SHORT,3,e,I);if(!(0,a.Z)(i))throw new Z.Z("Either POSITION or POSITION_QUANTIZED must be defined for each instance.");const n=R.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",s.Z.FLOAT,3);if(!(0,a.Z)(n))throw new Z.Z("Global property: QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");const r=R.getGlobalProperty("QUANTIZED_VOLUME_SCALE",s.Z.FLOAT,3);if(!(0,a.Z)(r))throw new Z.Z("Global property: QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");for(let e=0;e<3;e++)t[e]=i[e]/65535*r[e]+n[e]}r.Z.unpack(t,0,V),(0,a.Z)(F)&&r.Z.add(V,F,V),Y.translation=V;const i=R.getProperty("NORMAL_UP",s.Z.FLOAT,3,e,I),o=R.getProperty("NORMAL_RIGHT",s.Z.FLOAT,3,e,D);let c=!1;if((0,a.Z)(i)){if(!(0,a.Z)(o))throw new Z.Z("To define a custom orientation, both NORMAL_UP and NORMAL_RIGHT must be defined.");r.Z.unpack(i,0,G),r.Z.unpack(o,0,H),c=!0}else{const t=R.getProperty("NORMAL_UP_OCT32P",s.Z.UNSIGNED_SHORT,2,e,I),i=R.getProperty("NORMAL_RIGHT_OCT32P",s.Z.UNSIGNED_SHORT,2,e,D);if((0,a.Z)(t)){if(!(0,a.Z)(i))throw new Z.Z("To define a custom orientation with oct-encoded vectors, both NORMAL_UP_OCT32P and NORMAL_RIGHT_OCT32P must be defined.");n.Z.octDecodeInRange(t[0],t[1],65535,G),n.Z.octDecodeInRange(i[0],i[1],65535,H),c=!0}else N?(g.Z.eastNorthUpToFixedFrame(V,h.Z.WGS84,X),p.Z.getMatrix3(X,j)):f.Z.clone(f.Z.IDENTITY,j)}c&&(r.Z.cross(H,G,q),r.Z.normalize(q,q),f.Z.setColumn(j,0,H,j),f.Z.setColumn(j,1,G,j),f.Z.setColumn(j,2,q,j)),m.Z.fromRotationMatrix(j,W),Y.rotation=W,K=r.Z.fromElements(1,1,1,K);const u=R.getProperty("SCALE",s.Z.FLOAT,1,e);(0,a.Z)(u)&&r.Z.multiplyByScalar(K,u,K);const l=R.getProperty("SCALE_NON_UNIFORM",s.Z.FLOAT,3,e,I);(0,a.Z)(l)&&(K.x*=l[0],K.y*=l[1],K.z*=l[2]),Y.scale=K;let d=R.getProperty("BATCH_ID",s.Z.UNSIGNED_SHORT,1,e);(0,a.Z)(d)||(d=e),p.Z.fromTranslationRotationScale(Y,X);const _=X.clone();U[e]={modelMatrix:_,batchId:d}}e._modelInstanceCollection=new E.Z(L),e._modelInstanceCollection.readyPromise.then((function(e){e.activeAnimations.addAll({loop:x.Z.REPEAT})}))}(this,o,c)}function O(e){return function(){return e._batchTable.getPickId()}}S._deprecationWarning=c.Z,Object.defineProperties(S.prototype,{featuresLength:{get:function(){return this._batchTable.featuresLength}},pointsLength:{get:function(){return 0}},trianglesLength:{get:function(){const e=this._modelInstanceCollection._model;return(0,a.Z)(e)?e.trianglesLength:0}},geometryByteLength:{get:function(){const e=this._modelInstanceCollection._model;return(0,a.Z)(e)?e.geometryByteLength:0}},texturesByteLength:{get:function(){const e=this._modelInstanceCollection._model;return(0,a.Z)(e)?e.texturesByteLength:0}},batchTableByteLength:{get:function(){return this._batchTable.memorySizeInBytes}},innerContents:{get:function(){}},readyPromise:{get:function(){return this._modelInstanceCollection.readyPromise}},tileset:{get:function(){return this._tileset}},tile:{get:function(){return this._tile}},url:{get:function(){return this._resource.getUrlComponent(!0)}},batchTable:{get:function(){return this._batchTable}},groupMetadata:{get:function(){return this._groupMetadata},set:function(e){this._groupMetadata=e}}});const I=new Array(4),D=new Array(4);S.prototype.hasProperty=function(e,t){return this._batchTable.hasProperty(e,t)},S.prototype.getFeature=function(e){const t=this.featuresLength;if(!(0,a.Z)(e)||e<0||e>=t)throw new l.Z("batchId is required and between zero and featuresLength - 1 ("+(t-1)+").");return function(e){const t=e.featuresLength;if(!(0,a.Z)(e._features)&&t>0){const i=new Array(t);for(let n=0;n<t;++n)i[n]=new v.Z(e,n);e._features=i}}(this),this._features[e]},S.prototype.applyDebugSettings=function(e,t){t=e?t:o.Z.WHITE,this._batchTable.setAllColor(t)},S.prototype.applyStyle=function(e){this._batchTable.applyStyle(e)},S.prototype.update=function(e,t){const i=t.commandList.length;this._batchTable.update(e,t),this._modelInstanceCollection.modelMatrix=this._tile.computedTransform,this._modelInstanceCollection.shadows=this._tileset.shadows,this._modelInstanceCollection.lightColor=this._tileset.lightColor,this._modelInstanceCollection.luminanceAtZenith=this._tileset.luminanceAtZenith,this._modelInstanceCollection.imageBasedLightingFactor=this._tileset.imageBasedLightingFactor,this._modelInstanceCollection.sphericalHarmonicCoefficients=this._tileset.sphericalHarmonicCoefficients,this._modelInstanceCollection.specularEnvironmentMaps=this._tileset.specularEnvironmentMaps,this._modelInstanceCollection.backFaceCulling=this._tileset.backFaceCulling,this._modelInstanceCollection.debugWireframe=this._tileset.debugWireframe;const n=this._modelInstanceCollection._model;if((0,a.Z)(n)){const e=this._tileset.clippingPlanes;n.referenceMatrix=this._tileset.clippingPlanesOriginMatrix,(0,a.Z)(e)&&this._tile.clippingPlanesDirty&&(n._clippingPlanes=e.enabled&&this._tile._isClipped?e:void 0),(0,a.Z)(e)&&(0,a.Z)(n._clippingPlanes)&&n._clippingPlanes!==e&&(n._clippingPlanes=e)}this._modelInstanceCollection.update(t),i<t.commandList.length&&(t.passes.render||t.passes.pick)&&this._batchTable.addDerivedCommands(t,i,!1)},S.prototype.isDestroyed=function(){return!1},S.prototype.destroy=function(){return this._modelInstanceCollection=this._modelInstanceCollection&&this._modelInstanceCollection.destroy(),this._batchTable=this._batchTable&&this._batchTable.destroy(),(0,u.Z)(this)};const P=S},22995:(e,t,i)=>{"use strict";i.d(t,{Z:()=>w});var n=i(545125),r=i(426468),o=i(54879),s=i(100883),a=i(20209),c=i(273642),u=i(687931),l=i(364232),h=i(279427),d=i(283044),f=i(426301),p=i(451356),m=i(42973),_=i(786861),Z=i(301859);function g(){this.previousFramebuffer=void 0,this._previousFramebuffer=void 0,this._depthStencilTexture=void 0,this._fbo=new c.Z({createDepthAttachments:!1}),this._fboClassified=new c.Z({createDepthAttachments:!1}),this._rsUnclassified=void 0,this._rsClassified=void 0,this._unclassifiedCommand=void 0,this._classifiedCommand=void 0,this._translucentCommand=void 0,this._clearColorCommand=new a.Z({color:new n.Z(0,0,0,0),owner:this}),this._clearCommand=new a.Z({color:new n.Z(0,0,0,0),depth:1,stencil:0});const e=this;this._uniformMap={colorTexture:function(){return e._fbo.getColorTexture()},depthTexture:function(){return e._depthStencilTexture},classifiedTexture:function(){return e._fboClassified.getColorTexture()}}}Object.defineProperties(g.prototype,{unclassifiedCommand:{get:function(){return this._unclassifiedCommand}}}),g.isTranslucencySupported=function(e){return e.depthTexture&&e.fragmentDepth};const y={depthMask:!1,stencilTest:{enabled:!0,frontFunction:_.Z.EQUAL,frontOperation:{fail:Z.Z.KEEP,zFail:Z.Z.KEEP,zPass:Z.Z.KEEP},backFunction:_.Z.NEVER,reference:0,mask:m.Z.CLASSIFICATION_MASK},blending:p.Z.ALPHA_BLEND},b={depthMask:!1,stencilTest:{enabled:!0,frontFunction:_.Z.NOT_EQUAL,frontOperation:{fail:Z.Z.KEEP,zFail:Z.Z.KEEP,zPass:Z.Z.KEEP},backFunction:_.Z.NEVER,reference:0,mask:m.Z.CLASSIFICATION_MASK},blending:p.Z.ALPHA_BLEND},A={depthMask:!0,depthTest:{enabled:!0},stencilTest:m.Z.setCesium3DTileBit(),stencilMask:m.Z.CESIUM_3D_TILE_MASK,blending:p.Z.ALPHA_BLEND};g.prototype.update=function(e){const t=this._fbo.getColorTexture(),i=this.previousFramebuffer!==this._previousFramebuffer;this._previousFramebuffer=this.previousFramebuffer;const n=e.drawingBufferWidth,o=e.drawingBufferHeight,a=!(0,r.Z)(t)||t.width!==n||t.height!==o;if((a||i)&&(this._depthStencilTexture=this._depthStencilTexture&&this._depthStencilTexture.destroy(),(0,r.Z)(this._previousFramebuffer)||(this._depthStencilTexture=new d.Z({context:e,width:n,height:o,pixelFormat:s.Z.DEPTH_STENCIL,pixelDatatype:u.Z.UNSIGNED_INT_24_8}))),!(0,r.Z)(this._fbo.framebuffer)||a||i){let t,i;this._fbo.destroy(),this._fboClassified.destroy(),(0,r.Z)(this._previousFramebuffer)?(t=this._previousFramebuffer.depthStencilTexture,i=this._previousFramebuffer.depthStencilRenderbuffer):t=this._depthStencilTexture,this._fbo.setDepthStencilTexture(t),(0,r.Z)(i)&&this._fbo.setDepthStencilRenderbuffer(i),this._fbo.update(e,n,o),(0,r.Z)(this._previousFramebuffer)||(this._fboClassified.setDepthStencilTexture(t),this._fboClassified.update(e,n,o))}if((0,r.Z)(this._rsUnclassified)||(this._rsUnclassified=l.Z.fromCache(y),this._rsClassified=l.Z.fromCache(b),this._rsDefault=l.Z.fromCache(A)),!(0,r.Z)(this._unclassifiedCommand)||i){(0,r.Z)(this._unclassifiedCommand)&&(this._unclassifiedCommand.shaderProgram=this._unclassifiedCommand.shaderProgram&&this._unclassifiedCommand.shaderProgram.destroy(),this._classifiedCommand.shaderProgram=this._classifiedCommand.shaderProgram&&this._classifiedCommand.shaderProgram.destroy());const t=(0,r.Z)(this._previousFramebuffer)?"uniform sampler2D colorTexture;\nvarying vec2 v_textureCoordinates;\nvoid main()\n{\n vec4 color = texture2D(colorTexture, v_textureCoordinates);\n if (color.a == 0.0)\n {\n discard;\n }\n#ifdef UNCLASSIFIED\n gl_FragColor = color * czm_invertClassificationColor;\n#else\n gl_FragColor = color;\n#endif\n}\n":"#extension GL_EXT_frag_depth : enable\nuniform sampler2D colorTexture;\nuniform sampler2D depthTexture;\nuniform sampler2D classifiedTexture;\nvarying vec2 v_textureCoordinates;\nvoid main()\n{\n vec4 color = texture2D(colorTexture, v_textureCoordinates);\n if (color.a == 0.0)\n {\n discard;\n }\n bool isClassified = all(equal(texture2D(classifiedTexture, v_textureCoordinates), vec4(0.0)));\n#ifdef UNCLASSIFIED\n vec4 highlightColor = czm_invertClassificationColor;\n if (isClassified)\n {\n discard;\n }\n#else\n vec4 highlightColor = vec4(1.0);\n if (!isClassified)\n {\n discard;\n }\n#endif\n gl_FragColor = color * highlightColor;\n gl_FragDepthEXT = texture2D(depthTexture, v_textureCoordinates).r;\n}\n",i=new h.Z({defines:["UNCLASSIFIED"],sources:[t]}),n=new h.Z({sources:[t]});this._unclassifiedCommand=e.createViewportQuadCommand(i,{renderState:(0,r.Z)(this._previousFramebuffer)?this._rsUnclassified:this._rsDefault,uniformMap:this._uniformMap,owner:this}),this._classifiedCommand=e.createViewportQuadCommand(n,{renderState:(0,r.Z)(this._previousFramebuffer)?this._rsClassified:this._rsDefault,uniformMap:this._uniformMap,owner:this}),(0,r.Z)(this._translucentCommand)&&(this._translucentCommand.shaderProgram=this._translucentCommand.shaderProgram&&this._translucentCommand.shaderProgram.destroy()),(0,r.Z)(this._previousFramebuffer)||(this._translucentCommand=e.createViewportQuadCommand(f.Z,{renderState:this._rsUnclassified,uniformMap:this._uniformMap,owner:this}))}},g.prototype.clear=function(e,t){(0,r.Z)(this._previousFramebuffer)?this._fbo.clear(e,this._clearColorCommand,t):(this._fbo.clear(e,this._clearCommand,t),this._fboClassified.clear(e,this._clearCommand,t))},g.prototype.executeClassified=function(e,t){if(!(0,r.Z)(this._previousFramebuffer)){const i=t.framebuffer;t.framebuffer=this._fboClassified.framebuffer,this._translucentCommand.execute(e,t),t.framebuffer=i}this._classifiedCommand.execute(e,t)},g.prototype.executeUnclassified=function(e,t){this._unclassifiedCommand.execute(e,t)},g.prototype.isDestroyed=function(){return!1},g.prototype.destroy=function(){return this._fbo.destroy(),this._fboClassified.destroy(),this._depthStencilTexture=this._depthStencilTexture&&this._depthStencilTexture.destroy(),(0,r.Z)(this._unclassifiedCommand)&&(this._unclassifiedCommand.shaderProgram=this._unclassifiedCommand.shaderProgram&&this._unclassifiedCommand.shaderProgram.destroy(),this._classifiedCommand.shaderProgram=this._classifiedCommand.shaderProgram&&this._classifiedCommand.shaderProgram.destroy()),(0,o.Z)(this)};const w=g},632145:(e,t,i)=>{"use strict";i.d(t,{Z:()=>v});var n=i(357299),r=i(406144),o=i(426468),s=i(446938),a=i(197685),c=i(822302),u=i(50128),l=i(527758),h=i(74173),d=i(42118),f=i(618050),p=i(29422),m=i(923102),_=i(131303),Z=i(193866),g=i(108738),y=i(226227);function b(e){return function(t){return new e(t)}}const A={ARCGIS_MAPSERVER:b(h.Z),BING:b(d.Z),GOOGLE_EARTH:b(p.Z),MAPBOX:b(m.Z),SINGLE_TILE:b(_.Z),TMS:b(f.Z),URL_TEMPLATE:b(Z.Z),WMS:b(g.Z),WMTS:b(y.Z)};function w(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).assetId;n.Z.typeOf.number("options.assetId",t),this.defaultAlpha=void 0,this.defaultNightAlpha=void 0,this.defaultDayAlpha=void 0,this.defaultBrightness=void 0,this.defaultContrast=void 0,this.defaultHue=void 0,this.defaultSaturation=void 0,this.defaultGamma=void 0,this.defaultMinificationFilter=void 0,this.defaultMagnificationFilter=void 0,this._ready=!1,this._tileCredits=void 0,this._errorEvent=new a.Z;const i=this,s=c.Z._createEndpointResource(t,e),h=e.assetId.toString()+e.accessToken+e.server;let d=w._endpointCache[h];(0,o.Z)(d)||(d=s.fetchJson(),w._endpointCache[h]=d),this._readyPromise=d.then((function(e){if("IMAGERY"!==e.type)return l.Z.reject(new u.Z("Cesium ion asset "+t+" is not an imagery asset."));let n;const r=e.externalType;if((0,o.Z)(r)){const t=A[r];if(!(0,o.Z)(t))return l.Z.reject(new u.Z("Unrecognized Cesium ion imagery type: "+r));n=t(e.options)}else n=new f.Z({url:new c.Z(e,s)});return i._tileCredits=c.Z.getCreditsFromEndpoint(e,s),n.errorEvent.addEventListener((function(e){e.provider=i,i._errorEvent.raiseEvent(e)})),i._imageryProvider=n,n.readyPromise.then((function(){return i._ready=!0,!0}))}))}Object.defineProperties(w.prototype,{ready:{get:function(){return this._ready}},readyPromise:{get:function(){return this._readyPromise}},rectangle:{get:function(){if(!this._ready)throw new s.Z("tileHeight must not be called before the imagery provider is ready.");return this._imageryProvider.rectangle}},tileWidth:{get:function(){if(!this._ready)throw new s.Z("tileWidth must not be called before the imagery provider is ready.");return this._imageryProvider.tileWidth}},tileHeight:{get:function(){if(!this._ready)throw new s.Z("tileHeight must not be called before the imagery provider is ready.");return this._imageryProvider.tileHeight}},maximumLevel:{get:function(){if(!this._ready)throw new s.Z("maximumLevel must not be called before the imagery provider is ready.");return this._imageryProvider.maximumLevel}},minimumLevel:{get:function(){if(!this._ready)throw new s.Z("minimumLevel must not be called before the imagery provider is ready.");return this._imageryProvider.minimumLevel}},tilingScheme:{get:function(){if(!this._ready)throw new s.Z("tilingScheme must not be called before the imagery provider is ready.");return this._imageryProvider.tilingScheme}},tileDiscardPolicy:{get:function(){if(!this._ready)throw new s.Z("tileDiscardPolicy must not be called before the imagery provider is ready.");return this._imageryProvider.tileDiscardPolicy}},errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){if(!this._ready)throw new s.Z("credit must not be called before the imagery provider is ready.");return this._imageryProvider.credit}},hasAlphaChannel:{get:function(){if(!this._ready)throw new s.Z("hasAlphaChannel must not be called before the imagery provider is ready.");return this._imageryProvider.hasAlphaChannel},proxy:{get:function(){}}}}),w.prototype.getTileCredits=function(e,t,i){if(!this._ready)throw new s.Z("getTileCredits must not be called before the imagery provider is ready.");const n=this._imageryProvider.getTileCredits(e,t,i);return(0,o.Z)(n)?this._tileCredits.concat(n):this._tileCredits},w.prototype.requestImage=function(e,t,i,n){if(!this._ready)throw new s.Z("requestImage must not be called before the imagery provider is ready.");return this._imageryProvider.requestImage(e,t,i,n)},w.prototype.pickFeatures=function(e,t,i,n,r){if(!this._ready)throw new s.Z("pickFeatures must not be called before the imagery provider is ready.");return this._imageryProvider.pickFeatures(e,t,i,n,r)},w._endpointCache={};const v=w},382106:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({AERIAL:2,AERIAL_WITH_LABELS:3,ROAD:4})},683919:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(426468),r=i(446938),o=i(485083),s=i(495589);function a(e){this._total=e,this.usedThisFrame=0,this.stolenFromMeThisFrame=0,this.starvedThisFrame=!1,this.starvedLastFrame=!1}function c(e){if((0,n.Z)(e)&&e.length!==s.Z.NUMBER_OF_JOB_TYPES)throw new r.Z("A budget must be specified for each job type; budgets.length should equal JobType.NUMBER_OF_JOB_TYPES.");const t=new Array(s.Z.NUMBER_OF_JOB_TYPES);t[s.Z.TEXTURE]=new a((0,n.Z)(e)?e[s.Z.TEXTURE]:10),t[s.Z.PROGRAM]=new a((0,n.Z)(e)?e[s.Z.PROGRAM]:10),t[s.Z.BUFFER]=new a((0,n.Z)(e)?e[s.Z.BUFFER]:30);const i=t.length;let o,c=0;for(o=0;o<i;++o)c+=t[o].total;const u=new Array(i);for(o=0;o<i;++o)u[o]=!1;this._totalBudget=c,this._totalUsedThisFrame=0,this._budgets=t,this._executedThisFrame=u}Object.defineProperties(a.prototype,{total:{get:function(){return this._total}}}),c.getTimestamp=o.Z,Object.defineProperties(c.prototype,{totalBudget:{get:function(){return this._totalBudget}}}),c.prototype.disableThisFrame=function(){this._totalUsedThisFrame=this._totalBudget},c.prototype.resetBudgets=function(){const e=this._budgets,t=e.length;for(let i=0;i<t;++i){const t=e[i];t.starvedLastFrame=t.starvedThisFrame,t.starvedThisFrame=!1,t.usedThisFrame=0,t.stolenFromMeThisFrame=0}this._totalUsedThisFrame=0},c.prototype.execute=function(e,t){const i=this._budgets,n=i[t],r=this._executedThisFrame[t];if(this._totalUsedThisFrame>=this._totalBudget&&r)return n.starvedThisFrame=!0,!1;let o;if(n.usedThisFrame+n.stolenFromMeThisFrame>=n.total){const e=i.length;let t;for(t=0;t<e&&(o=i[t],!(o.usedThisFrame+o.stolenFromMeThisFrame<o.total)||o.starvedLastFrame);++t);if(t===e&&r)return!1;r&&(n.starvedThisFrame=!0)}const s=c.getTimestamp();e.execute();const a=c.getTimestamp()-s;return this._totalUsedThisFrame+=a,o?o.stolenFromMeThisFrame+=a:n.usedThisFrame+=a,this._executedThisFrame[t]=!0,!0};const u=c},495589:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({TEXTURE:0,PROGRAM:1,BUFFER:2,NUMBER_OF_JOB_TYPES:3})},81108:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(357299),r=i(556592),o=i(426468),s=i(446938),a=i(726422);function c(e){n.Z.typeOf.number.greaterThan("options.count",e.count,0),n.Z.typeOf.object("options.properties",e.properties),this._count=e.count,this._properties=(0,r.Z)(e.properties,!0)}c.prototype.hasProperty=function(e){return a.Z.hasProperty(e,this._properties)},c.prototype.getPropertyIds=function(e){return a.Z.getPropertyIds(this._properties,void 0,e)},c.prototype.getProperty=function(e,t){if(n.Z.typeOf.number("index",e),n.Z.typeOf.string("propertyId",t),e<0||e>=this._count)throw new s.Z("index must be in the range [0, "+this._count+")");const i=this._properties[t];if((0,o.Z)(i))return(0,r.Z)(i[e],!0)},c.prototype.setProperty=function(e,t,i){if(n.Z.typeOf.number("index",e),n.Z.typeOf.string("propertyId",t),e<0||e>=this._count)throw new s.Z("index must be in the range [0, "+this._count+")");const a=this._properties[t];return!!(0,o.Z)(a)&&(a[e]=(0,r.Z)(i,!0),!0)}},218978:(e,t,i)=>{"use strict";i.d(t,{Z:()=>P});var n=i(152124),r=i(337968),o=i(919382),s=i(545125),a=i(406144),c=i(426468),u=i(446938),l=i(744497),h=i(530109),d=i(959064),f=i(110499),p=i(121015),m=i(234320),_=i(882852),Z=i(825497);const g={};let y=0;const b=new s.Z(.165,.165,.165,.8),A=new r.Z(7,5),w=Object.freeze({LTR:0,RTL:1,WEAK:2,BRACKETS:3});function v(e){e._rebindAllGlyphs||e._repositionAllGlyphs||e._labelCollection._labelsToUpdate.push(e),e._rebindAllGlyphs=!0}function T(e){e._rebindAllGlyphs||e._repositionAllGlyphs||e._labelCollection._labelsToUpdate.push(e),e._repositionAllGlyphs=!0}function C(e,t){return document.defaultView.getComputedStyle(e,null).getPropertyValue(t)}function E(e){let t=g[e._font];if(!(0,c.Z)(t)){const i=document.createElement("div");i.style.position="absolute",i.style.opacity=0,i.style.font=e._font,document.body.appendChild(i);let n=parseFloat(C(i,"line-height"));isNaN(n)&&(n=void 0),t={family:C(i,"font-family"),size:C(i,"font-size").replace("px",""),style:C(i,"font-style"),weight:C(i,"font-weight"),lineHeight:n},document.body.removeChild(i),y<256&&(g[e._font]=t,y++)}e._fontFamily=t.family,e._fontSize=t.size,e._fontStyle=t.style,e._fontWeight=t.weight,e._lineHeight=t.lineHeight}function x(e,t){if(e=(0,a.Z)(e,a.Z.EMPTY_OBJECT),(0,c.Z)(e.disableDepthTestDistance)&&e.disableDepthTestDistance<0)throw new u.Z("disableDepthTestDistance must be greater than 0.0.");let i=e.translucencyByDistance,n=e.pixelOffsetScaleByDistance,d=e.scaleByDistance,_=e.distanceDisplayCondition;if((0,c.Z)(i)){if(i.far<=i.near)throw new u.Z("translucencyByDistance.far must be greater than translucencyByDistance.near.");i=h.Z.clone(i)}if((0,c.Z)(n)){if(n.far<=n.near)throw new u.Z("pixelOffsetScaleByDistance.far must be greater than pixelOffsetScaleByDistance.near.");n=h.Z.clone(n)}if((0,c.Z)(d)){if(d.far<=d.near)throw new u.Z("scaleByDistance.far must be greater than scaleByDistance.near.");d=h.Z.clone(d)}if((0,c.Z)(_)){if(_.far<=_.near)throw new u.Z("distanceDisplayCondition.far must be greater than distanceDisplayCondition.near.");_=l.Z.clone(_)}this._renderedText=void 0,this._text=void 0,this._show=(0,a.Z)(e.show,!0),this._font=(0,a.Z)(e.font,"30px sans-serif"),this._fillColor=s.Z.clone((0,a.Z)(e.fillColor,s.Z.WHITE)),this._outlineColor=s.Z.clone((0,a.Z)(e.outlineColor,s.Z.BLACK)),this._outlineWidth=(0,a.Z)(e.outlineWidth,1),this._showBackground=(0,a.Z)(e.showBackground,!1),this._backgroundColor=s.Z.clone((0,a.Z)(e.backgroundColor,b)),this._backgroundPadding=r.Z.clone((0,a.Z)(e.backgroundPadding,A)),this._style=(0,a.Z)(e.style,m.Z.FILL),this._verticalOrigin=(0,a.Z)(e.verticalOrigin,Z.Z.BASELINE),this._horizontalOrigin=(0,a.Z)(e.horizontalOrigin,p.Z.LEFT),this._pixelOffset=r.Z.clone((0,a.Z)(e.pixelOffset,r.Z.ZERO)),this._eyeOffset=o.Z.clone((0,a.Z)(e.eyeOffset,o.Z.ZERO)),this._position=o.Z.clone((0,a.Z)(e.position,o.Z.ZERO)),this._scale=(0,a.Z)(e.scale,1),this._id=e.id,this._translucencyByDistance=i,this._pixelOffsetScaleByDistance=n,this._scaleByDistance=d,this._heightReference=(0,a.Z)(e.heightReference,f.Z.NONE),this._distanceDisplayCondition=_,this._disableDepthTestDistance=e.disableDepthTestDistance,this._labelCollection=t,this._glyphs=[],this._backgroundBillboard=void 0,this._batchIndex=void 0,this._rebindAllGlyphs=!0,this._repositionAllGlyphs=!0,this._actualClampedPosition=void 0,this._removeCallbackFunc=void 0,this._mode=void 0,this._clusterShow=!0,this.text=(0,a.Z)(e.text,""),this._relativeSize=1,E(this),this._updateClamping()}function S(e,t){const i=/[a-zA-Z0-9]/,n=/[()[\]{}<>]/,r=[];let o="",s=w.LTR,a="";const c=e.length;for(let u=0;u<c;++u){const c=e.charAt(u);a=t.test(c)?w.RTL:i.test(c)?w.LTR:n.test(c)?w.BRACKETS:w.WEAK,0===u&&(s=a),s===a&&a!==w.BRACKETS?o+=c:(""!==o&&r.push({Type:s,Word:o}),s=a,o=c)}return r.push({Type:a,Word:o}),r}function O(e,t,i){return e.slice(0,t)+i+e.slice(t)}function I(e){switch(e){case"(":return")";case")":return"(";case"[":return"]";case"]":return"[";case"{":return"}";case"}":return"{";case"<":return">";case">":return"<"}}Object.defineProperties(x.prototype,{show:{get:function(){return this._show},set:function(e){if(!(0,c.Z)(e))throw new u.Z("value is required.");if(this._show!==e){this._show=e;const t=this._glyphs;for(let i=0,n=t.length;i<n;i++){const n=t[i].billboard;(0,c.Z)(n)&&(n.show=e)}const i=this._backgroundBillboard;(0,c.Z)(i)&&(i.show=e)}}},position:{get:function(){return this._position},set:function(e){if(!(0,c.Z)(e))throw new u.Z("value is required.");const t=this._position;if(!o.Z.equals(t,e)){o.Z.clone(e,t);const i=this._glyphs;for(let t=0,n=i.length;t<n;t++){const n=i[t].billboard;(0,c.Z)(n)&&(n.position=e)}const n=this._backgroundBillboard;(0,c.Z)(n)&&(n.position=e),this._updateClamping()}}},heightReference:{get:function(){return this._heightReference},set:function(e){if(!(0,c.Z)(e))throw new u.Z("value is required.");if(e!==this._heightReference){this._heightReference=e;const t=this._glyphs;for(let i=0,n=t.length;i<n;i++){const n=t[i].billboard;(0,c.Z)(n)&&(n.heightReference=e)}const i=this._backgroundBillboard;(0,c.Z)(i)&&(i.heightReference=e),T(this),this._updateClamping()}}},text:{get:function(){return this._text},set:function(e){if(!(0,c.Z)(e))throw new u.Z("value is required.");if(this._text!==e){this._text=e;const t=e.replace(/\u00ad/g,"");this._renderedText=x.enableRightToLeftDetection?function(e){const t=e.split("\n");let i="";for(let e=0;e<t.length;e++){const n=t[e],r=D.test(n.charAt(0)),o=S(n,D);let s=0,a="";for(let e=0;e<o.length;++e){const t=o[e],i=t.Type===w.BRACKETS?I(t.Word):t.Word.split("").reverse().join("");r?t.Type===w.RTL?(a=i+a,s=0):t.Type===w.LTR?(a=O(a,s,t.Word),s+=t.Word.length):t.Type!==w.WEAK&&t.Type!==w.BRACKETS||(t.Type===w.WEAK&&o[e-1].Type===w.BRACKETS?a=i+a:o[e-1].Type===w.RTL?(a=i+a,s=0):o.length>e+1?o[e+1].Type===w.RTL?(a=i+a,s=0):(a=O(a,s,t.Word),s+=t.Word.length):a=O(a,0,i)):t.Type===w.RTL?a=O(a,s,i):t.Type===w.LTR?(a+=t.Word,s=a.length):t.Type!==w.WEAK&&t.Type!==w.BRACKETS||(e>0&&o[e-1].Type===w.RTL?o.length>e+1?o[e+1].Type===w.RTL?a=O(a,s,i):(a+=t.Word,s=a.length):a+=t.Word:(a+=t.Word,s=a.length))}i+=a,e<t.length-1&&(i+="\n")}return i}(t):t,v(this)}}},font:{get:function(){return this._font},set:function(e){if(!(0,c.Z)(e))throw new u.Z("value is required.");this._font!==e&&(this._font=e,v(this),E(this))}},fillColor:{get:function(){return this._fillColor},set:function(e){if(!(0,c.Z)(e))throw new u.Z("value is required.");const t=this._fillColor;s.Z.equals(t,e)||(s.Z.clone(e,t),v(this))}},outlineColor:{get:function(){return this._outlineColor},set:function(e){if(!(0,c.Z)(e))throw new u.Z("value is required.");const t=this._outlineColor;s.Z.equals(t,e)||(s.Z.clone(e,t),v(this))}},outlineWidth:{get:function(){return this._outlineWidth},set:function(e){if(!(0,c.Z)(e))throw new u.Z("value is required.");this._outlineWidth!==e&&(this._outlineWidth=e,v(this))}},showBackground:{get:function(){return this._showBackground},set:function(e){if(!(0,c.Z)(e))throw new u.Z("value is required.");this._showBackground!==e&&(this._showBackground=e,v(this))}},backgroundColor:{get:function(){return this._backgroundColor},set:function(e){if(!(0,c.Z)(e))throw new u.Z("value is required.");const t=this._backgroundColor;if(!s.Z.equals(t,e)){s.Z.clone(e,t);const i=this._backgroundBillboard;(0,c.Z)(i)&&(i.color=t)}}},backgroundPadding:{get:function(){return this._backgroundPadding},set:function(e){if(!(0,c.Z)(e))throw new u.Z("value is required.");const t=this._backgroundPadding;r.Z.equals(t,e)||(r.Z.clone(e,t),T(this))}},style:{get:function(){return this._style},set:function(e){if(!(0,c.Z)(e))throw new u.Z("value is required.");this._style!==e&&(this._style=e,v(this))}},pixelOffset:{get:function(){return this._pixelOffset},set:function(e){if(!(0,c.Z)(e))throw new u.Z("value is required.");const t=this._pixelOffset;if(!r.Z.equals(t,e)){r.Z.clone(e,t);const i=this._glyphs;for(let t=0,n=i.length;t<n;t++){const n=i[t];(0,c.Z)(n.billboard)&&(n.billboard.pixelOffset=e)}const n=this._backgroundBillboard;(0,c.Z)(n)&&(n.pixelOffset=e)}}},translucencyByDistance:{get:function(){return this._translucencyByDistance},set:function(e){if((0,c.Z)(e)&&e.far<=e.near)throw new u.Z("far distance must be greater than near distance.");const t=this._translucencyByDistance;if(!h.Z.equals(t,e)){this._translucencyByDistance=h.Z.clone(e,t);const i=this._glyphs;for(let t=0,n=i.length;t<n;t++){const n=i[t];(0,c.Z)(n.billboard)&&(n.billboard.translucencyByDistance=e)}const n=this._backgroundBillboard;(0,c.Z)(n)&&(n.translucencyByDistance=e)}}},pixelOffsetScaleByDistance:{get:function(){return this._pixelOffsetScaleByDistance},set:function(e){if((0,c.Z)(e)&&e.far<=e.near)throw new u.Z("far distance must be greater than near distance.");const t=this._pixelOffsetScaleByDistance;if(!h.Z.equals(t,e)){this._pixelOffsetScaleByDistance=h.Z.clone(e,t);const i=this._glyphs;for(let t=0,n=i.length;t<n;t++){const n=i[t];(0,c.Z)(n.billboard)&&(n.billboard.pixelOffsetScaleByDistance=e)}const n=this._backgroundBillboard;(0,c.Z)(n)&&(n.pixelOffsetScaleByDistance=e)}}},scaleByDistance:{get:function(){return this._scaleByDistance},set:function(e){if((0,c.Z)(e)&&e.far<=e.near)throw new u.Z("far distance must be greater than near distance.");const t=this._scaleByDistance;if(!h.Z.equals(t,e)){this._scaleByDistance=h.Z.clone(e,t);const i=this._glyphs;for(let t=0,n=i.length;t<n;t++){const n=i[t];(0,c.Z)(n.billboard)&&(n.billboard.scaleByDistance=e)}const n=this._backgroundBillboard;(0,c.Z)(n)&&(n.scaleByDistance=e)}}},eyeOffset:{get:function(){return this._eyeOffset},set:function(e){if(!(0,c.Z)(e))throw new u.Z("value is required.");const t=this._eyeOffset;if(!o.Z.equals(t,e)){o.Z.clone(e,t);const i=this._glyphs;for(let t=0,n=i.length;t<n;t++){const n=i[t];(0,c.Z)(n.billboard)&&(n.billboard.eyeOffset=e)}const n=this._backgroundBillboard;(0,c.Z)(n)&&(n.eyeOffset=e)}}},horizontalOrigin:{get:function(){return this._horizontalOrigin},set:function(e){if(!(0,c.Z)(e))throw new u.Z("value is required.");this._horizontalOrigin!==e&&(this._horizontalOrigin=e,T(this))}},verticalOrigin:{get:function(){return this._verticalOrigin},set:function(e){if(!(0,c.Z)(e))throw new u.Z("value is required.");if(this._verticalOrigin!==e){this._verticalOrigin=e;const t=this._glyphs;for(let i=0,n=t.length;i<n;i++){const n=t[i];(0,c.Z)(n.billboard)&&(n.billboard.verticalOrigin=e)}const i=this._backgroundBillboard;(0,c.Z)(i)&&(i.verticalOrigin=e),T(this)}}},scale:{get:function(){return this._scale},set:function(e){if(!(0,c.Z)(e))throw new u.Z("value is required.");if(this._scale!==e){this._scale=e;const t=this._glyphs;for(let i=0,n=t.length;i<n;i++){const n=t[i];(0,c.Z)(n.billboard)&&(n.billboard.scale=e*this._relativeSize)}const i=this._backgroundBillboard;(0,c.Z)(i)&&(i.scale=e*this._relativeSize),T(this)}}},totalScale:{get:function(){return this._scale*this._relativeSize}},distanceDisplayCondition:{get:function(){return this._distanceDisplayCondition},set:function(e){if((0,c.Z)(e)&&e.far<=e.near)throw new u.Z("far must be greater than near");if(!l.Z.equals(e,this._distanceDisplayCondition)){this._distanceDisplayCondition=l.Z.clone(e,this._distanceDisplayCondition);const t=this._glyphs;for(let i=0,n=t.length;i<n;i++){const n=t[i];(0,c.Z)(n.billboard)&&(n.billboard.distanceDisplayCondition=e)}const i=this._backgroundBillboard;(0,c.Z)(i)&&(i.distanceDisplayCondition=e)}}},disableDepthTestDistance:{get:function(){return this._disableDepthTestDistance},set:function(e){if(this._disableDepthTestDistance!==e){if((0,c.Z)(e)&&e<0)throw new u.Z("disableDepthTestDistance must be greater than 0.0.");this._disableDepthTestDistance=e;const t=this._glyphs;for(let i=0,n=t.length;i<n;i++){const n=t[i];(0,c.Z)(n.billboard)&&(n.billboard.disableDepthTestDistance=e)}const i=this._backgroundBillboard;(0,c.Z)(i)&&(i.disableDepthTestDistance=e)}}},id:{get:function(){return this._id},set:function(e){if(this._id!==e){this._id=e;const t=this._glyphs;for(let i=0,n=t.length;i<n;i++){const n=t[i];(0,c.Z)(n.billboard)&&(n.billboard.id=e)}const i=this._backgroundBillboard;(0,c.Z)(i)&&(i.id=e)}}},pickId:{get:function(){if(0!==this._glyphs.length&&(0,c.Z)(this._glyphs[0].billboard))return this._glyphs[0].billboard.pickId}},_clampedPosition:{get:function(){return this._actualClampedPosition},set:function(e){this._actualClampedPosition=o.Z.clone(e,this._actualClampedPosition);const t=this._glyphs;for(let i=0,n=t.length;i<n;i++){const n=t[i];(0,c.Z)(n.billboard)&&(n.billboard._clampedPosition=e)}const i=this._backgroundBillboard;(0,c.Z)(i)&&(i._clampedPosition=e)}},clusterShow:{get:function(){return this._clusterShow},set:function(e){if(this._clusterShow!==e){this._clusterShow=e;const t=this._glyphs;for(let i=0,n=t.length;i<n;i++){const n=t[i];(0,c.Z)(n.billboard)&&(n.billboard.clusterShow=e)}const i=this._backgroundBillboard;(0,c.Z)(i)&&(i.clusterShow=e)}}}}),x.prototype._updateClamping=function(){d.Z._updateClamping(this._labelCollection,this)},x.prototype.computeScreenSpacePosition=function(e,t){if(!(0,c.Z)(e))throw new u.Z("scene is required.");(0,c.Z)(t)||(t=new r.Z);const i=this._labelCollection.modelMatrix,n=(0,c.Z)(this._actualClampedPosition)?this._actualClampedPosition:this._position;return d.Z._computeScreenSpacePosition(i,n,this._eyeOffset,this._pixelOffset,e,t)},x.getScreenSpaceBoundingBox=function(e,t,i){let r=0,o=0,s=0,a=0;const u=e.totalScale,l=e._backgroundBillboard;if((0,c.Z)(l))r=t.x+l._translate.x,o=t.y-l._translate.y,s=l.width*u,a=l.height*u,e.verticalOrigin===Z.Z.BOTTOM||e.verticalOrigin===Z.Z.BASELINE?o-=a:e.verticalOrigin===Z.Z.CENTER&&(o-=.5*a);else{r=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;let i=0,n=0;const l=e._glyphs,h=l.length;for(let s=0;s<h;++s){const a=l[s],h=a.billboard;if(!(0,c.Z)(h))continue;const d=t.x+h._translate.x;let f=t.y-h._translate.y;const p=a.dimensions.width*u,m=a.dimensions.height*u;e.verticalOrigin===Z.Z.BOTTOM||e.verticalOrigin===Z.Z.BASELINE?f-=m:e.verticalOrigin===Z.Z.CENTER&&(f-=.5*m),e._verticalOrigin===Z.Z.TOP?f+=_.Z.PADDING*u:e._verticalOrigin!==Z.Z.BOTTOM&&e._verticalOrigin!==Z.Z.BASELINE||(f-=_.Z.PADDING*u),r=Math.min(r,d),o=Math.min(o,f),i=Math.max(i,d+p),n=Math.max(n,f+m)}s=i-r,a=n-o}return(0,c.Z)(i)||(i=new n.Z),i.x=r,i.y=o,i.width=s,i.height=a,i},x.prototype.equals=function(e){return this===e||(0,c.Z)(e)&&this._show===e._show&&this._scale===e._scale&&this._outlineWidth===e._outlineWidth&&this._showBackground===e._showBackground&&this._style===e._style&&this._verticalOrigin===e._verticalOrigin&&this._horizontalOrigin===e._horizontalOrigin&&this._heightReference===e._heightReference&&this._renderedText===e._renderedText&&this._font===e._font&&o.Z.equals(this._position,e._position)&&s.Z.equals(this._fillColor,e._fillColor)&&s.Z.equals(this._outlineColor,e._outlineColor)&&s.Z.equals(this._backgroundColor,e._backgroundColor)&&r.Z.equals(this._backgroundPadding,e._backgroundPadding)&&r.Z.equals(this._pixelOffset,e._pixelOffset)&&o.Z.equals(this._eyeOffset,e._eyeOffset)&&h.Z.equals(this._translucencyByDistance,e._translucencyByDistance)&&h.Z.equals(this._pixelOffsetScaleByDistance,e._pixelOffsetScaleByDistance)&&h.Z.equals(this._scaleByDistance,e._scaleByDistance)&&l.Z.equals(this._distanceDisplayCondition,e._distanceDisplayCondition)&&this._disableDepthTestDistance===e._disableDepthTestDistance&&this._id===e._id},x.prototype.isDestroyed=function(){return!1},x.enableRightToLeftDetection=!1;const D=new RegExp("[א-ת؀-ۿݐ-ݿࢠ-ࣿ]"),P=x},892512:(e,t,i)=>{"use strict";i.d(t,{Z:()=>U});var n=i(152124),r=i(337968),o=i(545125),s=i(406144),a=i(426468),c=i(54879),u=i(446938),l=i(583917),h=i(986384),d=i(16325),f=i(631754),p=i(593478),m=i(110499),_=i(121015),Z=i(218978),g=i(234320),y=i(882852),b=i(816471),A=i(825497),w=i(603034);function v(){this.textureInfo=void 0,this.dimensions=void 0,this.billboard=void 0}function T(e,t,i){this.labelCollection=e,this.index=t,this.dimensions=i}const C="ID_WHITE_PIXEL",E=new r.Z(4,4),x=new n.Z(1,1,1,1),S={};function O(e,t,i,n,r,s,a){return S.font=t,S.fillColor=i,S.strokeColor=n,S.strokeWidth=r,S.padding=y.Z.PADDING,a===A.Z.CENTER?S.textBaseline="middle":a===A.Z.TOP?S.textBaseline="top":S.textBaseline="bottom",S.fill=s===g.Z.FILL||s===g.Z.FILL_AND_OUTLINE,S.stroke=s===g.Z.OUTLINE||s===g.Z.FILL_AND_OUTLINE,S.backgroundColor=o.Z.BLACK,(0,h.Z)(e,S)}function I(e,t){t.textureInfo=void 0,t.dimensions=void 0;const i=t.billboard;(0,a.Z)(i)&&(i.show=!1,i.image=void 0,(0,a.Z)(i._removeCallbackFunc)&&(i._removeCallbackFunc(),i._removeCallbackFunc=void 0),e._spareBillboards.push(i),t.billboard=void 0)}function D(e,t,i,n){e.addImage(t,i).then((function(e){n.index=e}))}const P=new w.Z;function R(e,t){const i=t._renderedText,n=P.splitGraphemes(i),s=n.length,c=t._glyphs,u=c.length;let l,h,f;if(t._relativeSize=t._fontSize/y.Z.FONT_SIZE,s<u)for(h=s;h<u;++h)I(e,c[h]);c.length=s;const p=t._showBackground&&i.split("\n").join("").length>0;let m=t._backgroundBillboard;const Z=e._backgroundBillboardCollection;p?((0,a.Z)(m)||(m=Z.add({collection:e,image:C,imageSubRegion:x}),t._backgroundBillboard=m),m.color=t._backgroundColor,m.show=t._show,m.position=t._position,m.eyeOffset=t._eyeOffset,m.pixelOffset=t._pixelOffset,m.horizontalOrigin=_.Z.LEFT,m.verticalOrigin=t._verticalOrigin,m.heightReference=t._heightReference,m.scale=t.totalScale,m.pickPrimitive=t,m.id=t._id,m.translucencyByDistance=t._translucencyByDistance,m.pixelOffsetScaleByDistance=t._pixelOffsetScaleByDistance,m.scaleByDistance=t._scaleByDistance,m.distanceDisplayCondition=t._distanceDisplayCondition,m.disableDepthTestDistance=t._disableDepthTestDistance):(0,a.Z)(m)&&(Z.remove(m),t._backgroundBillboard=m=void 0);const b=e._glyphTextureCache;for(f=0;f<s;++f){const i=n[f],s=t._verticalOrigin,u=JSON.stringify([i,t._fontFamily,t._fontStyle,t._fontWeight,+s]);let h=b[u];if(!(0,a.Z)(h)){const n=O(i,t._fontStyle+" "+t._fontWeight+" "+y.Z.FONT_SIZE+"px "+t._fontFamily,o.Z.WHITE,o.Z.WHITE,0,g.Z.FILL,s);if(h=new T(e,-1,n.dimensions),b[u]=h,n.width>0&&n.height>0){const t=(0,d.Z)(n,{cutoff:y.Z.CUTOFF,radius:y.Z.RADIUS}),r=n.getContext("2d"),o=n.width,s=n.height,a=r.getImageData(0,0,o,s);for(let e=0;e<o;e++)for(let i=0;i<s;i++){const n=i*o+e,r=255*t[n],s=4*n;a.data[s+0]=r,a.data[s+1]=r,a.data[s+2]=r,a.data[s+3]=r}r.putImageData(a,0,0)," "!==i&&D(e._textureAtlas,u,n,h)}}if(l=c[f],(0,a.Z)(l)?-1===h.index?I(e,l):(0,a.Z)(l.textureInfo)&&(l.textureInfo=void 0):(l=new v,c[f]=l),l.textureInfo=h,l.dimensions=h.dimensions,-1!==h.index){let i=l.billboard;const n=e._spareBillboards;(0,a.Z)(i)||(n.length>0?i=n.pop():(i=e._billboardCollection.add({collection:e}),i._labelDimensions=new r.Z,i._labelTranslate=new r.Z),l.billboard=i),i.show=t._show,i.position=t._position,i.eyeOffset=t._eyeOffset,i.pixelOffset=t._pixelOffset,i.horizontalOrigin=_.Z.LEFT,i.verticalOrigin=t._verticalOrigin,i.heightReference=t._heightReference,i.scale=t.totalScale,i.pickPrimitive=t,i.id=t._id,i.image=u,i.translucencyByDistance=t._translucencyByDistance,i.pixelOffsetScaleByDistance=t._pixelOffsetScaleByDistance,i.scaleByDistance=t._scaleByDistance,i.distanceDisplayCondition=t._distanceDisplayCondition,i.disableDepthTestDistance=t._disableDepthTestDistance,i._batchIndex=t._batchIndex,i.outlineColor=t.outlineColor,t.style===g.Z.FILL_AND_OUTLINE?(i.color=t._fillColor,i.outlineWidth=t.outlineWidth):t.style===g.Z.FILL?(i.color=t._fillColor,i.outlineWidth=0):t.style===g.Z.OUTLINE&&(i.color=o.Z.TRANSPARENT,i.outlineWidth=t.outlineWidth)}}t._repositionAllGlyphs=!0}function B(e,t,i){return t===_.Z.CENTER?-e/2:t===_.Z.RIGHT?-(e+i.x):i.x}const M=new r.Z,L=new r.Z;function N(e){const t=e._glyphs,i=e._renderedText;let n,o,s=0,c=0;const u=[];let l,h=Number.NEGATIVE_INFINITY,d=0,f=1;const p=t.length,Z=e._backgroundBillboard,g=r.Z.clone((0,a.Z)(Z)?e._backgroundPadding:r.Z.ZERO,L);for(g.x/=e._relativeSize,g.y/=e._relativeSize,l=0;l<p;++l)"\n"===i.charAt(l)?(u.push(s),++f,s=0):(n=t[l],o=n.dimensions,d=Math.max(d,o.height-o.descent),h=Math.max(h,o.descent),s+=o.width-o.minx,l<p-1&&(s+=t[l+1].dimensions.minx),c=Math.max(c,s));u.push(s);const b=d+h,w=e.totalScale,v=e._horizontalOrigin,T=e._verticalOrigin;let C=0,E=u[C],x=B(E,v,g);const S=((0,a.Z)(e._lineHeight)?e._lineHeight:1.2*e._fontSize)/e._relativeSize,O=S*(f-1);let I=c,D=b+O;(0,a.Z)(Z)&&(I+=2*g.x,D+=2*g.y,Z._labelHorizontalOrigin=v),M.x=x*w,M.y=0;let P=!0,R=0;for(l=0;l<p;++l)if("\n"===i.charAt(l))++C,R+=S,E=u[C],x=B(E,v,g),M.x=x*w,P=!0;else if(n=t[l],o=n.dimensions,T===A.Z.TOP?(M.y=o.height-d-g.y,M.y+=y.Z.PADDING):T===A.Z.CENTER?M.y=(O+o.height-d)/2:T===A.Z.BASELINE?(M.y=O,M.y-=y.Z.PADDING):(M.y=O+h+g.y,M.y-=y.Z.PADDING),M.y=(M.y-o.descent-R)*w,P&&(M.x-=y.Z.PADDING*w,P=!1),(0,a.Z)(n.billboard)&&(n.billboard._setTranslate(M),n.billboard._labelDimensions.x=I,n.billboard._labelDimensions.y=D,n.billboard._labelHorizontalOrigin=v),l<p-1){const e=t[l+1];M.x+=(o.width-o.minx+e.dimensions.minx)*w}if((0,a.Z)(Z)&&i.split("\n").join("").length>0&&(x=v===_.Z.CENTER?-c/2-g.x:v===_.Z.RIGHT?-(c+2*g.x):0,M.x=x*w,T===A.Z.TOP?M.y=b-d-h:T===A.Z.CENTER?M.y=(b-d)/2-h:T===A.Z.BASELINE?M.y=-g.y-h:M.y=0,M.y=M.y*w,Z.width=I,Z.height=D,Z._setTranslate(M),Z._labelTranslate=r.Z.clone(M,Z._labelTranslate)),e.heightReference===m.Z.CLAMP_TO_GROUND)for(l=0;l<p;++l){n=t[l];const e=n.billboard;(0,a.Z)(e)&&(e._labelTranslate=r.Z.clone(M,e._labelTranslate))}}function F(e,t){const i=t._glyphs;for(let t=0,n=i.length;t<n;++t)I(e,i[t]);(0,a.Z)(t._backgroundBillboard)&&(e._backgroundBillboardCollection.remove(t._backgroundBillboard),t._backgroundBillboard=void 0),t._labelCollection=void 0,(0,a.Z)(t._removeCallbackFunc)&&t._removeCallbackFunc(),(0,c.Z)(t)}function k(e){e=(0,s.Z)(e,s.Z.EMPTY_OBJECT),this._scene=e.scene,this._batchTable=e.batchTable,this._textureAtlas=void 0,this._backgroundTextureAtlas=void 0,this._whitePixelIndex=void 0,this._backgroundBillboardCollection=new f.Z({scene:this._scene}),this._backgroundBillboardCollection.destroyTextureAtlas=!1,this._billboardCollection=new f.Z({scene:this._scene,batchTable:this._batchTable}),this._billboardCollection.destroyTextureAtlas=!1,this._billboardCollection._sdf=!0,this._spareBillboards=[],this._glyphTextureCache={},this._labels=[],this._labelsToUpdate=[],this._totalGlyphCount=0,this._highlightColor=o.Z.clone(o.Z.WHITE),this.show=(0,s.Z)(e.show,!0),this.modelMatrix=l.Z.clone((0,s.Z)(e.modelMatrix,l.Z.IDENTITY)),this.debugShowBoundingVolume=(0,s.Z)(e.debugShowBoundingVolume,!1),this.blendOption=(0,s.Z)(e.blendOption,p.Z.OPAQUE_AND_TRANSLUCENT)}Object.defineProperties(k.prototype,{length:{get:function(){return this._labels.length}}}),k.prototype.add=function(e){const t=new Z.Z(e,this);return this._labels.push(t),this._labelsToUpdate.push(t),t},k.prototype.remove=function(e){if((0,a.Z)(e)&&e._labelCollection===this){const t=this._labels.indexOf(e);if(-1!==t)return this._labels.splice(t,1),F(this,e),!0}return!1},k.prototype.removeAll=function(){const e=this._labels;for(let t=0,i=e.length;t<i;++t)F(this,e[t]);e.length=0},k.prototype.contains=function(e){return(0,a.Z)(e)&&e._labelCollection===this},k.prototype.get=function(e){if(!(0,a.Z)(e))throw new u.Z("index is required.");return this._labels[e]},k.prototype.update=function(e){if(!this.show)return;const t=this._billboardCollection,i=this._backgroundBillboardCollection;t.modelMatrix=this.modelMatrix,t.debugShowBoundingVolume=this.debugShowBoundingVolume,i.modelMatrix=this.modelMatrix,i.debugShowBoundingVolume=this.debugShowBoundingVolume;const n=e.context;(0,a.Z)(this._textureAtlas)||(this._textureAtlas=new b.Z({context:n}),t.textureAtlas=this._textureAtlas),(0,a.Z)(this._backgroundTextureAtlas)||(this._backgroundTextureAtlas=new b.Z({context:n,initialSize:E}),i.textureAtlas=this._backgroundTextureAtlas,function(e,t){const i=document.createElement("canvas");i.width=E.x,i.height=E.y;const n=i.getContext("2d");n.fillStyle="#fff",n.fillRect(0,0,i.width,i.height),e.addImage(C,i).then((function(e){t._whitePixelIndex=e}))}(this._backgroundTextureAtlas,this));const r=this._labelsToUpdate.length;for(let e=0;e<r;++e){const t=this._labelsToUpdate[e];if(t.isDestroyed())continue;const i=t._glyphs.length;t._rebindAllGlyphs&&(R(this,t),t._rebindAllGlyphs=!1),t._repositionAllGlyphs&&(N(t),t._repositionAllGlyphs=!1);const n=t._glyphs.length-i;this._totalGlyphCount+=n}const o=i.length>0?p.Z.TRANSLUCENT:this.blendOption;t.blendOption=o,i.blendOption=o,t._highlightColor=this._highlightColor,i._highlightColor=this._highlightColor,this._labelsToUpdate.length=0,i.update(e),t.update(e)},k.prototype.isDestroyed=function(){return!1},k.prototype.destroy=function(){return this.removeAll(),this._billboardCollection=this._billboardCollection.destroy(),this._textureAtlas=this._textureAtlas&&this._textureAtlas.destroy(),this._backgroundBillboardCollection=this._backgroundBillboardCollection.destroy(),this._backgroundTextureAtlas=this._backgroundTextureAtlas&&this._backgroundTextureAtlas.destroy(),(0,c.Z)(this)};const U=k},234320:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({FILL:0,OUTLINE:1,FILL_AND_OUTLINE:2})},90754:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(446938);function r(){}Object.defineProperties(r.prototype,{color:{get:n.Z.throwInstantiationError},intensity:{get:n.Z.throwInstantiationError}});const o=r},456157:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({ROTATE:0,INFINITE_SCROLL:1})},923102:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(846748),r=i(406144),o=i(426468),s=i(446938),a=i(795788),c=i(193866);const u=/\/$/,l=new n.Z('© <a href="https://www.mapbox.com/about/maps/">Mapbox</a> © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> <strong><a href="https://www.mapbox.com/map-feedback/">Improve this map</a></strong>');function h(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).mapId;if(!(0,o.Z)(t))throw new s.Z("options.mapId is required.");const i=e.accessToken;if(!(0,o.Z)(i))throw new s.Z("options.accessToken is required.");this.defaultAlpha=void 0,this.defaultNightAlpha=void 0,this.defaultDayAlpha=void 0,this.defaultBrightness=void 0,this.defaultContrast=void 0,this.defaultHue=void 0,this.defaultSaturation=void 0,this.defaultGamma=void 0,this.defaultMinificationFilter=void 0,this.defaultMagnificationFilter=void 0;const h=a.Z.createIfNeeded((0,r.Z)(e.url,"https://{s}.tiles.mapbox.com/v4/"));this._mapId=t,this._accessToken=i;let d=(0,r.Z)(e.format,"png");/\./.test(d)||(d="."+d),this._format=d;let f,p=h.getUrlComponent();u.test(p)||(p+="/"),p+=t+"/{z}/{x}/{y}"+this._format,h.url=p,h.setQueryParameters({access_token:i}),(0,o.Z)(e.credit)?(f=e.credit,"string"==typeof f&&(f=new n.Z(f))):f=l,this._resource=h,this._imageryProvider=new c.Z({url:h,credit:f,ellipsoid:e.ellipsoid,minimumLevel:e.minimumLevel,maximumLevel:e.maximumLevel,rectangle:e.rectangle})}Object.defineProperties(h.prototype,{url:{get:function(){return this._imageryProvider.url}},ready:{get:function(){return this._imageryProvider.ready}},readyPromise:{get:function(){return this._imageryProvider.readyPromise}},rectangle:{get:function(){return this._imageryProvider.rectangle}},tileWidth:{get:function(){return this._imageryProvider.tileWidth}},tileHeight:{get:function(){return this._imageryProvider.tileHeight}},maximumLevel:{get:function(){return this._imageryProvider.maximumLevel}},minimumLevel:{get:function(){return this._imageryProvider.minimumLevel}},tilingScheme:{get:function(){return this._imageryProvider.tilingScheme}},tileDiscardPolicy:{get:function(){return this._imageryProvider.tileDiscardPolicy}},errorEvent:{get:function(){return this._imageryProvider.errorEvent}},credit:{get:function(){return this._imageryProvider.credit}},proxy:{get:function(){return this._imageryProvider.proxy}},hasAlphaChannel:{get:function(){return this._imageryProvider.hasAlphaChannel}}}),h.prototype.getTileCredits=function(e,t,i){},h.prototype.requestImage=function(e,t,i,n){return this._imageryProvider.requestImage(e,t,i,n)},h.prototype.pickFeatures=function(e,t,i,n,r){return this._imageryProvider.pickFeatures(e,t,i,n,r)},h._defaultCredit=l;const d=h},599364:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(846748),r=i(406144),o=i(426468),s=i(446938),a=i(795788),c=i(193866);const u=/\/$/,l=new n.Z('© <a href="https://www.mapbox.com/about/maps/">Mapbox</a> © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> <strong><a href="https://www.mapbox.com/map-feedback/">Improve this map</a></strong>');function h(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).styleId;if(!(0,o.Z)(t))throw new s.Z("options.styleId is required.");const i=e.accessToken;if(!(0,o.Z)(i))throw new s.Z("options.accessToken is required.");this.defaultAlpha=void 0,this.defaultNightAlpha=void 0,this.defaultDayAlpha=void 0,this.defaultBrightness=void 0,this.defaultContrast=void 0,this.defaultHue=void 0,this.defaultSaturation=void 0,this.defaultGamma=void 0,this.defaultMinificationFilter=void 0,this.defaultMagnificationFilter=void 0;const h=a.Z.createIfNeeded((0,r.Z)(e.url,"https://api.mapbox.com/styles/v1/"));this._styleId=t,this._accessToken=i;const d=(0,r.Z)(e.tilesize,512);this._tilesize=d;const f=(0,r.Z)(e.username,"mapbox");this._username=f;const p=(0,o.Z)(e.scaleFactor)?"@2x":"";let m,_=h.getUrlComponent();u.test(_)||(_+="/"),_+=this._username+"/"+t+"/tiles/"+this._tilesize+"/{z}/{x}/{y}"+p,h.url=_,h.setQueryParameters({access_token:i}),(0,o.Z)(e.credit)?(m=e.credit,"string"==typeof m&&(m=new n.Z(m))):m=l,this._resource=h,this._imageryProvider=new c.Z({url:h,credit:m,ellipsoid:e.ellipsoid,minimumLevel:e.minimumLevel,maximumLevel:e.maximumLevel,rectangle:e.rectangle})}Object.defineProperties(h.prototype,{url:{get:function(){return this._imageryProvider.url}},ready:{get:function(){return this._imageryProvider.ready}},readyPromise:{get:function(){return this._imageryProvider.readyPromise}},rectangle:{get:function(){return this._imageryProvider.rectangle}},tileWidth:{get:function(){return this._imageryProvider.tileWidth}},tileHeight:{get:function(){return this._imageryProvider.tileHeight}},maximumLevel:{get:function(){return this._imageryProvider.maximumLevel}},minimumLevel:{get:function(){return this._imageryProvider.minimumLevel}},tilingScheme:{get:function(){return this._imageryProvider.tilingScheme}},tileDiscardPolicy:{get:function(){return this._imageryProvider.tileDiscardPolicy}},errorEvent:{get:function(){return this._imageryProvider.errorEvent}},credit:{get:function(){return this._imageryProvider.credit}},proxy:{get:function(){return this._imageryProvider.proxy}},hasAlphaChannel:{get:function(){return this._imageryProvider.hasAlphaChannel}}}),h.prototype.getTileCredits=function(e,t,i){},h.prototype.requestImage=function(e,t,i,n){return this._imageryProvider.requestImage(e,t,i,n)},h.prototype.pickFeatures=function(e,t,i,n,r){return this._imageryProvider.pickFeatures(e,t,i,n,r)},h._defaultCredit=l;const d=h},172795:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Q});var n=i(337968),r=i(556592),o=i(545125),s=i(307260),a=i(416974),c=i(406144),u=i(426468),l=i(54879),h=i(446938),d=i(210510),f=i(631145),p=i(165373),m=i(583917),_=i(795788),Z=i(161842),g=i(283044),y=i(256504),b=i(139281),A=i(51596),w=i(977906),v=i(49948),T=i(239972),C=i(86546),E=i(810691),x=i(543184),S=i(960543),O=i(280131),I=i(819438),D=i(357016),P=i(136607),R=i(991811),B=i(270013),M=i(867647),L=i(676049),N=i(59102),F=i(636664),k=i(22812),U=i(527758);function V(e){this.type=void 0,this.shaderSource=void 0,this.materials=void 0,this.uniforms=void 0,this._uniforms=void 0,this.translucent=void 0,this._minificationFilter=(0,c.Z)(e.minificationFilter,F.Z.LINEAR),this._magnificationFilter=(0,c.Z)(e.magnificationFilter,N.Z.LINEAR),this._strict=void 0,this._template=void 0,this._count=void 0,this._texturePaths={},this._loadedImages=[],this._loadedCubeMaps=[],this._textures={},this._updateFunctions=[],this._defaultTexture=void 0,function(e,t){let i;e=(0,c.Z)(e,c.Z.EMPTY_OBJECT),t._strict=(0,c.Z)(e.strict,!1),t._count=(0,c.Z)(e.count,0),t._template=(0,r.Z)((0,c.Z)(e.fabric,c.Z.EMPTY_OBJECT)),t._template.uniforms=(0,r.Z)((0,c.Z)(t._template.uniforms,c.Z.EMPTY_OBJECT)),t._template.materials=(0,r.Z)((0,c.Z)(t._template.materials,c.Z.EMPTY_OBJECT)),t.type=(0,u.Z)(t._template.type)?t._template.type:(0,a.Z)(),t.shaderSource="",t.materials={},t.uniforms={},t._uniforms={},t._translucentFunctions=[];const n=V._materialCache.getMaterial(t.type);if((0,u.Z)(n)){const e=(0,r.Z)(n.fabric,!0);t._template=(0,s.Z)(t._template,e,!0),i=n.translucent}(function(e){const t=e._template,i=t.uniforms,n=t.materials,r=t.components;if((0,u.Z)(r)&&(0,u.Z)(t.source))throw new h.Z("fabric: cannot have source and components in the same template.");z(t,q,H,!0),z(r,j,H,!0);const o=[];for(const e in n)n.hasOwnProperty(e)&&o.push(e);z(i,o,G,!1)})(t),(0,u.Z)(n)||V._materialCache.addMaterial(t.type,t),function(e){const t=e._template.components,i=e._template.source;if((0,u.Z)(i))e.shaderSource+=i+"\n";else{if(e.shaderSource+="czm_material czm_getMaterial(czm_materialInput materialInput)\n{\n",e.shaderSource+="czm_material material = czm_getDefaultMaterial(materialInput);\n",(0,u.Z)(t)){const i=Object.keys(e._template.materials).length>0;for(const n in t)if(t.hasOwnProperty(n))if("diffuse"===n||"emission"===n){const r=i&&W(t[n],e)?t[n]:"czm_gammaCorrect("+t[n]+")";e.shaderSource+="material."+n+" = "+r+"; \n"}else e.shaderSource+="alpha"===n?"material.alpha = "+t.alpha+"; \n":"material."+n+" = "+t[n]+";\n"}e.shaderSource+="return material;\n}\n"}}(t),function(e){const t=e._template.uniforms;for(const i in t)t.hasOwnProperty(i)&&X(e,i)}(t),function(e){const t=e._strict,i=e._template.materials;for(const n in i)if(i.hasOwnProperty(n)){const r=new V({strict:t,fabric:i[n],count:e._count});e._count=r._count,e._uniforms=(0,s.Z)(e._uniforms,r._uniforms,!0),e.materials[n]=r,e._translucentFunctions=e._translucentFunctions.concat(r._translucentFunctions);const o="czm_getMaterial",a=o+"_"+e._count++;if(J(r,o,a),e.shaderSource=r.shaderSource+e.shaderSource,0===J(e,n,a+"(materialInput)")&&t)throw new h.Z("strict: shader source does not use material '"+n+"'.")}}(t);const o=0===t._translucentFunctions.length||void 0;if(i=(0,c.Z)(i,o),i=(0,c.Z)(e.translucent,i),(0,u.Z)(i))if("function"==typeof i){const e=function(){return i(t)};t._translucentFunctions.push(e)}else t._translucentFunctions.push(i)}(e,this),Object.defineProperties(this,{type:{value:this.type,writable:!1}}),(0,u.Z)(V._uniformList[this.type])||(V._uniformList[this.type]=Object.keys(this._uniforms))}function z(e,t,i,n){if((0,u.Z)(e))for(const r in e)if(e.hasOwnProperty(r)){const e=-1!==t.indexOf(r);(n&&!e||!n&&e)&&i(r,t)}}function H(e,t){let i="fabric: property name '"+e+"' is not valid. It should be ";for(let e=0;e<t.length;e++){const n="'"+t[e]+"'";i+=e===t.length-1?"or "+n+".":n+", "}throw new h.Z(i)}function G(e,t){const i="fabric: uniforms and materials cannot share the same property '"+e+"'";throw new h.Z(i)}V._uniformList={},V.fromType=function(e,t){if(!(0,u.Z)(V._materialCache.getMaterial(e)))throw new h.Z("material with type '"+e+"' does not exist.");const i=new V({fabric:{type:e}});if((0,u.Z)(t))for(const e in t)t.hasOwnProperty(e)&&(i.uniforms[e]=t[e]);return i},V.prototype.isTranslucent=function(){if((0,u.Z)(this.translucent))return"function"==typeof this.translucent?this.translucent():this.translucent;let e=!0;const t=this._translucentFunctions,i=t.length;for(let n=0;n<i;++n){const i=t[n];if(e="function"==typeof i?e&&i():e&&i,!e)break}return e},V.prototype.update=function(e){let t,i;this._defaultTexture=e.defaultTexture;const n=this._loadedImages;let r=n.length;for(t=0;t<r;++t){const r=n[t];i=r.id;let o,s=r.image;Array.isArray(s)&&(o=s.slice(1,s.length).map((function(e){return e.bufferView})),s=s[0]);const a=new B.Z({minificationFilter:this._minificationFilter,magnificationFilter:this._magnificationFilter});let c;c=(0,u.Z)(s.internalFormat)?new g.Z({context:e,pixelFormat:s.internalFormat,width:s.width,height:s.height,source:{arrayBufferView:s.bufferView,mipLevels:o},sampler:a}):new g.Z({context:e,source:s,sampler:a});const l=this._textures[i];(0,u.Z)(l)&&l!==this._defaultTexture&&l.destroy(),this._textures[i]=c;const h=i+"Dimensions";if(this.uniforms.hasOwnProperty(h)){const e=this.uniforms[h];e.x=c._width,e.y=c._height}}n.length=0;const o=this._loadedCubeMaps;for(r=o.length,t=0;t<r;++t){const n=o[t];i=n.id;const r=n.images,s=new Z.Z({context:e,source:{positiveX:r[0],negativeX:r[1],positiveY:r[2],negativeY:r[3],positiveZ:r[4],negativeZ:r[5]},sampler:new B.Z({minificationFilter:this._minificationFilter,magnificationFilter:this._magnificationFilter})});this._textures[i]=s}o.length=0;const s=this._updateFunctions;for(r=s.length,t=0;t<r;++t)s[t](this,e);const a=this.materials;for(const t in a)a.hasOwnProperty(t)&&a[t].update(e)},V.prototype.isDestroyed=function(){return!1},V.prototype.destroy=function(){const e=this._textures;for(const t in e)if(e.hasOwnProperty(t)){const i=e[t];i!==this._defaultTexture&&i.destroy()}const t=this.materials;for(const e in t)t.hasOwnProperty(e)&&t[e].destroy();return(0,l.Z)(this)};const q=["type","materials","uniforms","components","source"],j=["diffuse","specular","shininess","normal","emission","alpha"];function W(e,t){const i=t._template.materials;for(const t in i)if(i.hasOwnProperty(t)&&e.indexOf(t)>-1)return!0;return!1}const K={mat2:f.Z,mat3:p.Z,mat4:m.Z},Y=/\.ktx2$/i;function X(e,t){const i=e._strict,n=e._template.uniforms,r=n[t],o=function(e){let t=e.type;if(!(0,u.Z)(t)){const i=typeof e;if("number"===i)t="float";else if("boolean"===i)t="bool";else if("string"===i||e instanceof _.Z||e instanceof HTMLCanvasElement||e instanceof HTMLImageElement)t=/^([rgba]){1,4}$/i.test(e)?"channels":e===V.DefaultCubeMapId?"samplerCube":"sampler2D";else if("object"===i)if(Array.isArray(e))4!==e.length&&9!==e.length&&16!==e.length||(t="mat"+Math.sqrt(e.length));else{let i=0;for(const t in e)e.hasOwnProperty(t)&&(i+=1);i>=2&&i<=4?t="vec"+i:6===i&&(t="samplerCube")}}return t}(r);if(!(0,u.Z)(o))throw new h.Z("fabric: uniform '"+t+"' has invalid type.");let s;if("channels"===o){if(s=J(e,t,r,!1),0===s&&i)throw new h.Z("strict: shader source does not use channels '"+t+"'.")}else{if("sampler2D"===o){const i=t+"Dimensions";(function(e,t,i){return J(e,t,t,void 0)})(e,i)>0&&(n[i]={type:"ivec3",x:1,y:1},X(e,i))}if(!new RegExp("uniform\\s+"+o+"\\s+"+t+"\\s*;").test(e.shaderSource)){const i="uniform "+o+" "+t+";";e.shaderSource=i+e.shaderSource}const a=t+"_"+e._count++;if(s=J(e,t,a),1===s&&i)throw new h.Z("strict: shader source does not use uniform '"+t+"'.");if(e.uniforms[t]=r,"sampler2D"===o)e._uniforms[a]=function(){return e._textures[t]},e._updateFunctions.push(function(e){let t;return function(i,n){const r=i.uniforms,o=r[e],s=t!==o,a=!(0,u.Z)(o)||o===V.DefaultImageId;t=o;let c,l,h=i._textures[e];if(o instanceof HTMLVideoElement){if(o.readyState>=2){if(s&&(0,u.Z)(h)&&(h!==n.defaultTexture&&h.destroy(),h=void 0),!(0,u.Z)(h)||h===n.defaultTexture){const t=new B.Z({minificationFilter:i._minificationFilter,magnificationFilter:i._magnificationFilter});return h=new g.Z({context:n,source:o,sampler:t}),void(i._textures[e]=h)}h.copyFrom({source:o})}else(0,u.Z)(h)||(i._textures[e]=n.defaultTexture);return}if(o instanceof g.Z&&o!==h){i._texturePaths[e]=void 0;const t=i._textures[e];return(0,u.Z)(t)&&t!==i._defaultTexture&&t.destroy(),i._textures[e]=o,c=e+"Dimensions",void(r.hasOwnProperty(c)&&(l=r[c],l.x=o._width,l.y=o._height))}if(s&&(0,u.Z)(h)&&a&&(h!==i._defaultTexture&&h.destroy(),h=void 0),(0,u.Z)(h)||(i._texturePaths[e]=void 0,h=i._textures[e]=i._defaultTexture,c=e+"Dimensions",r.hasOwnProperty(c)&&(l=r[c],l.x=h._width,l.y=h._height)),a)return;const f=o instanceof _.Z;if(!(0,u.Z)(i._texturePaths[e])||f&&o.url!==i._texturePaths[e].url||!f&&o!==i._texturePaths[e]){if("string"==typeof o||f){const t=f?o:_.Z.createIfNeeded(o);let n;n=Y.test(t.url)?(0,d.Z)(t.url):t.fetchImage(),n.then((function(t){i._loadedImages.push({id:e,image:t})})).otherwise((function(){(0,u.Z)(h)&&h!==i._defaultTexture&&h.destroy(),i._textures[e]=i._defaultTexture}))}else(o instanceof HTMLCanvasElement||o instanceof HTMLImageElement)&&i._loadedImages.push({id:e,image:o});i._texturePaths[e]=o}}}(t));else if("samplerCube"===o)e._uniforms[a]=function(){return e._textures[t]},e._updateFunctions.push(function(e){return function(t,i){const n=t.uniforms[e];if(n instanceof Z.Z){const i=t._textures[e];return i!==t._defaultTexture&&i.destroy(),t._texturePaths[e]=void 0,void(t._textures[e]=n)}if((0,u.Z)(t._textures[e])||(t._texturePaths[e]=void 0,t._textures[e]=i.defaultCubeMap),n===V.DefaultCubeMapId)return;const r=n.positiveX+n.negativeX+n.positiveY+n.negativeY+n.positiveZ+n.negativeZ;if(r!==t._texturePaths[e]){const i=[_.Z.createIfNeeded(n.positiveX).fetchImage(),_.Z.createIfNeeded(n.negativeX).fetchImage(),_.Z.createIfNeeded(n.positiveY).fetchImage(),_.Z.createIfNeeded(n.negativeY).fetchImage(),_.Z.createIfNeeded(n.positiveZ).fetchImage(),_.Z.createIfNeeded(n.negativeZ).fetchImage()];U.Z.all(i).then((function(i){t._loadedCubeMaps.push({id:e,images:i})})),t._texturePaths[e]=r}}}(t));else if(-1!==o.indexOf("mat")){const i=new K[o];e._uniforms[a]=function(){return K[o].fromColumnMajorArray(e.uniforms[t],i)}}else e._uniforms[a]=function(){return e.uniforms[t]}}}function J(e,t,i,n){n=(0,c.Z)(n,!0);let r=0;const o=new RegExp("([\\w"+(n?".":"")+"])?"+t+"([\\w])?","g");return e.shaderSource=e.shaderSource.replace(o,(function(e,t,n){return t||n?e:(r+=1,i)})),r}V._materialCache={_materials:{},addMaterial:function(e,t){this._materials[e]=t},getMaterial:function(e){return this._materials[e]}},V.DefaultImageId="czm_defaultImage",V.DefaultCubeMapId="czm_defaultCubeMap",V.ColorType="Color",V._materialCache.addMaterial(V.ColorType,{fabric:{type:V.ColorType,uniforms:{color:new o.Z(1,0,0,.5)},components:{diffuse:"color.rgb",alpha:"color.a"}},translucent:function(e){return e.uniforms.color.alpha<1}}),V.ImageType="Image",V._materialCache.addMaterial(V.ImageType,{fabric:{type:V.ImageType,uniforms:{image:V.DefaultImageId,repeat:new n.Z(1,1),color:new o.Z(1,1,1,1)},components:{diffuse:"texture2D(image, fract(repeat * materialInput.st)).rgb * color.rgb",alpha:"texture2D(image, fract(repeat * materialInput.st)).a * color.a"}},translucent:function(e){return e.uniforms.color.alpha<1}}),V.DiffuseMapType="DiffuseMap",V._materialCache.addMaterial(V.DiffuseMapType,{fabric:{type:V.DiffuseMapType,uniforms:{image:V.DefaultImageId,channels:"rgb",repeat:new n.Z(1,1)},components:{diffuse:"texture2D(image, fract(repeat * materialInput.st)).channels"}},translucent:!1}),V.AlphaMapType="AlphaMap",V._materialCache.addMaterial(V.AlphaMapType,{fabric:{type:V.AlphaMapType,uniforms:{image:V.DefaultImageId,channel:"a",repeat:new n.Z(1,1)},components:{alpha:"texture2D(image, fract(repeat * materialInput.st)).channel"}},translucent:!0}),V.SpecularMapType="SpecularMap",V._materialCache.addMaterial(V.SpecularMapType,{fabric:{type:V.SpecularMapType,uniforms:{image:V.DefaultImageId,channel:"r",repeat:new n.Z(1,1)},components:{specular:"texture2D(image, fract(repeat * materialInput.st)).channel"}},translucent:!1}),V.EmissionMapType="EmissionMap",V._materialCache.addMaterial(V.EmissionMapType,{fabric:{type:V.EmissionMapType,uniforms:{image:V.DefaultImageId,channels:"rgb",repeat:new n.Z(1,1)},components:{emission:"texture2D(image, fract(repeat * materialInput.st)).channels"}},translucent:!1}),V.BumpMapType="BumpMap",V._materialCache.addMaterial(V.BumpMapType,{fabric:{type:V.BumpMapType,uniforms:{image:V.DefaultImageId,channel:"r",strength:.8,repeat:new n.Z(1,1)},source:b.Z},translucent:!1}),V.NormalMapType="NormalMap",V._materialCache.addMaterial(V.NormalMapType,{fabric:{type:V.NormalMapType,uniforms:{image:V.DefaultImageId,channels:"rgb",strength:.8,repeat:new n.Z(1,1)},source:S.Z},translucent:!1}),V.GridType="Grid",V._materialCache.addMaterial(V.GridType,{fabric:{type:V.GridType,uniforms:{color:new o.Z(0,1,0,1),cellAlpha:.1,lineCount:new n.Z(8,8),lineThickness:new n.Z(1,1),lineOffset:new n.Z(0,0)},source:x.Z},translucent:function(e){const t=e.uniforms;return t.color.alpha<1||t.cellAlpha<1}}),V.StripeType="Stripe",V._materialCache.addMaterial(V.StripeType,{fabric:{type:V.StripeType,uniforms:{horizontal:!0,evenColor:new o.Z(1,1,1,.5),oddColor:new o.Z(0,0,1,.5),offset:0,repeat:5},source:L.Z},translucent:function(e){const t=e.uniforms;return t.evenColor.alpha<1||t.oddColor.alpha<1}}),V.CheckerboardType="Checkerboard",V._materialCache.addMaterial(V.CheckerboardType,{fabric:{type:V.CheckerboardType,uniforms:{lightColor:new o.Z(1,1,1,.5),darkColor:new o.Z(0,0,0,.5),repeat:new n.Z(5,5)},source:A.Z},translucent:function(e){const t=e.uniforms;return t.lightColor.alpha<1||t.darkColor.alpha<1}}),V.DotType="Dot",V._materialCache.addMaterial(V.DotType,{fabric:{type:V.DotType,uniforms:{lightColor:new o.Z(1,1,0,.75),darkColor:new o.Z(0,1,1,.75),repeat:new n.Z(5,5)},source:w.Z},translucent:function(e){const t=e.uniforms;return t.lightColor.alpha<1||t.darkColor.alpha<1}}),V.WaterType="Water",V._materialCache.addMaterial(V.WaterType,{fabric:{type:V.WaterType,uniforms:{baseWaterColor:new o.Z(.2,.3,.6,1),blendColor:new o.Z(0,1,.699,1),specularMap:V.DefaultImageId,normalMap:V.DefaultImageId,frequency:10,animationSpeed:.01,amplitude:1,specularIntensity:.5,fadeFactor:1},source:k.Z},translucent:function(e){const t=e.uniforms;return t.baseWaterColor.alpha<1||t.blendColor.alpha<1}}),V.RimLightingType="RimLighting",V._materialCache.addMaterial(V.RimLightingType,{fabric:{type:V.RimLightingType,uniforms:{color:new o.Z(1,0,0,.7),rimColor:new o.Z(1,1,1,.4),width:.3},source:R.Z},translucent:function(e){const t=e.uniforms;return t.color.alpha<1||t.rimColor.alpha<1}}),V.FadeType="Fade",V._materialCache.addMaterial(V.FadeType,{fabric:{type:V.FadeType,uniforms:{fadeInColor:new o.Z(1,0,0,1),fadeOutColor:new o.Z(0,0,0,0),maximumDistance:.5,repeat:!0,fadeDirection:{x:!0,y:!0},time:new n.Z(.5,.5)},source:E.Z},translucent:function(e){const t=e.uniforms;return t.fadeInColor.alpha<1||t.fadeOutColor.alpha<1}}),V.PolylineArrowType="PolylineArrow",V._materialCache.addMaterial(V.PolylineArrowType,{fabric:{type:V.PolylineArrowType,uniforms:{color:new o.Z(1,1,1,1)},source:O.Z},translucent:!0}),V.PolylineDashType="PolylineDash",V._materialCache.addMaterial(V.PolylineDashType,{fabric:{type:V.PolylineDashType,uniforms:{color:new o.Z(1,0,1,1),gapColor:new o.Z(0,0,0,0),dashLength:16,dashPattern:255},source:I.Z},translucent:!0}),V.PolylineGlowType="PolylineGlow",V._materialCache.addMaterial(V.PolylineGlowType,{fabric:{type:V.PolylineGlowType,uniforms:{color:new o.Z(0,.5,1,1),glowPower:.25,taperPower:1},source:D.Z},translucent:!0}),V.PolylineOutlineType="PolylineOutline",V._materialCache.addMaterial(V.PolylineOutlineType,{fabric:{type:V.PolylineOutlineType,uniforms:{color:new o.Z(1,1,1,1),outlineColor:new o.Z(1,0,0,1),outlineWidth:1},source:P.Z},translucent:function(e){const t=e.uniforms;return t.color.alpha<1||t.outlineColor.alpha<1}}),V.ElevationContourType="ElevationContour",V._materialCache.addMaterial(V.ElevationContourType,{fabric:{type:V.ElevationContourType,uniforms:{spacing:100,color:new o.Z(1,0,0,1),width:1},source:T.Z},translucent:!1}),V.ElevationRampType="ElevationRamp",V._materialCache.addMaterial(V.ElevationRampType,{fabric:{type:V.ElevationRampType,uniforms:{image:V.DefaultImageId,minimumHeight:0,maximumHeight:1e4},source:C.Z},translucent:!1}),V.SlopeRampMaterialType="SlopeRamp",V._materialCache.addMaterial(V.SlopeRampMaterialType,{fabric:{type:V.SlopeRampMaterialType,uniforms:{image:V.DefaultImageId},source:M.Z},translucent:!1}),V.AspectRampMaterialType="AspectRamp",V._materialCache.addMaterial(V.AspectRampMaterialType,{fabric:{type:V.AspectRampMaterialType,uniforms:{image:V.DefaultImageId},source:y.Z},translucent:!1}),V.ElevationBandType="ElevationBand",V._materialCache.addMaterial(V.ElevationBandType,{fabric:{type:V.ElevationBandType,uniforms:{heights:V.DefaultImageId,colors:V.DefaultImageId},source:v.Z},translucent:!0});const Q=V},112546:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});var n=i(406144),r=i(426468),o=i(172674),s=i(577050),a=i(474988),c=i(504752),u=i(800697),l=i(563598),h=i(122423),d=i(23851),f=i(172795);function p(e){e=(0,n.Z)(e,n.Z.EMPTY_OBJECT);const t=(0,n.Z)(e.translucent,!0),i=(0,n.Z)(e.closed,!1),o=(0,n.Z)(e.materialSupport,p.MaterialSupport.TEXTURED);this.material=(0,r.Z)(e.material)?e.material:f.Z.fromType(f.Z.ColorType),this.translucent=t,this._vertexShaderSource=(0,n.Z)(e.vertexShaderSource,o.vertexShaderSource),this._fragmentShaderSource=(0,n.Z)(e.fragmentShaderSource,o.fragmentShaderSource),this._renderState=d.Z.getDefaultRenderState(t,i,e.renderState),this._closed=i,this._materialSupport=o,this._vertexFormat=o.vertexFormat,this._flat=(0,n.Z)(e.flat,!1),this._faceForward=(0,n.Z)(e.faceForward,!i)}Object.defineProperties(p.prototype,{vertexShaderSource:{get:function(){return this._vertexShaderSource}},fragmentShaderSource:{get:function(){return this._fragmentShaderSource}},renderState:{get:function(){return this._renderState}},closed:{get:function(){return this._closed}},materialSupport:{get:function(){return this._materialSupport}},vertexFormat:{get:function(){return this._vertexFormat}},flat:{get:function(){return this._flat}},faceForward:{get:function(){return this._faceForward}}}),p.prototype.getFragmentShaderSource=d.Z.prototype.getFragmentShaderSource,p.prototype.isTranslucent=d.Z.prototype.isTranslucent,p.prototype.getRenderState=d.Z.prototype.getRenderState,p.MaterialSupport={BASIC:Object.freeze({vertexFormat:o.Z.POSITION_AND_NORMAL,vertexShaderSource:u.Z,fragmentShaderSource:c.Z}),TEXTURED:Object.freeze({vertexFormat:o.Z.POSITION_NORMAL_AND_ST,vertexShaderSource:h.Z,fragmentShaderSource:l.Z}),ALL:Object.freeze({vertexFormat:o.Z.ALL,vertexShaderSource:a.Z,fragmentShaderSource:s.Z})};const m=p},211303:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(357299),r=i(406144),o=i(426468),s=i(219783);function a(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).id,i=e.class;n.Z.typeOf.string("options.id",t),n.Z.typeOf.object("options.class",i);const a={},c={};for(const t in i.properties)if(i.properties.hasOwnProperty(t)){const n=new s.Z({id:t,property:i.properties[t],enums:e.enums});a[t]=n,(0,o.Z)(n.semantic)&&(c[n.semantic]=n)}this._properties=a,this._propertiesBySemantic=c,this._id=t,this._name=i.name,this._description=i.description,this._extras=i.extras,this._extensions=i.extensions}Object.defineProperties(a.prototype,{properties:{get:function(){return this._properties}},propertiesBySemantic:{get:function(){return this._propertiesBySemantic}},id:{get:function(){return this._id}},name:{get:function(){return this._name}},description:{get:function(){return this._description}},extras:{get:function(){return this._extras}},extensions:{get:function(){return this._extensions}}}),a.BATCH_TABLE_CLASS_NAME="_batchTable";const c=a},219783:(e,t,i)=>{"use strict";i.d(t,{Z:()=>b});var n=i(337968),r=i(919382),o=i(114754),s=i(357299),a=i(406144),c=i(426468),u=i(631145),l=i(165373),h=i(583917),d=i(594193),f=i(53194);function p(e){const t=(e=(0,a.Z)(e,a.Z.EMPTY_OBJECT)).id,i=e.property;let n;s.Z.typeOf.string("options.id",t),s.Z.typeOf.object("options.property",i),(0,c.Z)(i.enumType)&&(n=e.enums[i.enumType]);let r,o=i.type;f.Z.hasOwnProperty(o)?(r=f.Z[o],o=d.Z.SINGLE):(o=(0,a.Z)(d.Z[o],d.Z.SINGLE),r=f.Z[i.componentType]);const u=function(e,t){return e===f.Z.ENUM?t.valueType:e}(r,n),l=f.Z.isIntegerType(r)&&(0,a.Z)(i.normalized,!1),h=o===d.Z.ARRAY?i.componentCount:d.Z.getComponentCount(o);this._id=t,this._name=i.name,this._description=i.description,this._type=o,this._enumType=n,this._valueType=u,this._componentType=r,this._componentCount=h,this._normalized=l,this._min=i.min,this._max=i.max,this._default=i.default,this._optional=(0,a.Z)(i.optional,!1),this._semantic=i.semantic,this._extras=i.extras,this._extensions=i.extensions}function m(e,t){return"value "+e+" does not match type "+t}function _(e,t,i){let n="value "+e+" is out of range for type "+t;return i&&(n+=" (normalized)"),n}function Z(e,t,i){if(i){const n=1;return e<(f.Z.isUnsignedIntegerType(t)?0:-1)||e>n?_(e,t,i):void 0}if(e<f.Z.getMinimum(t)||e>f.Z.getMaximum(t))return _(e,t,i)}function g(e,t){const i=typeof t,n=e._enumType;if((0,c.Z)(n))return"string"===i&&(0,c.Z)(n.valuesByName[t])?void 0:"value "+t+" is not a valid enum name for "+n.id;const r=e._valueType,o=e._normalized;switch(r){case f.Z.INT8:case f.Z.UINT8:case f.Z.INT16:case f.Z.UINT16:case f.Z.INT32:case f.Z.UINT32:return"number"!==i?m(t,r):Z(t,r,o);case f.Z.INT64:case f.Z.UINT64:return"number"!==i&&"bigint"!==i?m(t,r):Z(t,r,o);case f.Z.FLOAT32:case f.Z.FLOAT64:return"number"!==i?m(t,r):isFinite(t)?Z(t,r,o):function(e,t){return"value "+e+" of type "+t+" must be finite"}(t,r);case f.Z.BOOLEAN:if("boolean"!==i)return m(t,r);break;case f.Z.STRING:if("string"!==i)return m(t,r)}}function y(e,t,i){if(!e._normalized)return t;const n=e._type,r=e._valueType;let o,s;if(n===d.Z.ARRAY)for(s=t.length,o=0;o<s;++o)t[o]=i(t[o],r);else if(d.Z.isVectorType(n)||d.Z.isMatrixType(n))for(s=d.Z.getComponentCount(n),o=0;o<s;++o)t[o]=i(t[o],r);else t=i(t,r);return t}Object.defineProperties(p.prototype,{id:{get:function(){return this._id}},name:{get:function(){return this._name}},description:{get:function(){return this._description}},type:{get:function(){return this._type}},enumType:{get:function(){return this._enumType}},componentType:{get:function(){return this._componentType}},valueType:{get:function(){return this._valueType}},componentCount:{get:function(){return this._componentCount}},normalized:{get:function(){return this._normalized}},max:{get:function(){return this._max}},min:{get:function(){return this._min}},default:{get:function(){return this._default}},optional:{get:function(){return this._optional}},semantic:{get:function(){return this._semantic}},extras:{get:function(){return this._extras}},extensions:{get:function(){return this._extensions}}}),p.prototype.normalize=function(e){return y(this,e,f.Z.normalize)},p.prototype.unnormalize=function(e){return y(this,e,f.Z.unnormalize)},p.prototype.unpackVectorAndMatrixTypes=function(e){switch(this._type){case d.Z.VEC2:return n.Z.unpack(e);case d.Z.VEC3:return r.Z.unpack(e);case d.Z.VEC4:return o.Z.unpack(e);case d.Z.MAT2:return u.Z.unpack(e);case d.Z.MAT3:return l.Z.unpack(e);case d.Z.MAT4:return h.Z.unpack(e);default:return e}},p.prototype.packVectorAndMatrixTypes=function(e){switch(this._type){case d.Z.VEC2:return n.Z.pack(e,[]);case d.Z.VEC3:return r.Z.pack(e,[]);case d.Z.VEC4:return o.Z.pack(e,[]);case d.Z.MAT2:return u.Z.pack(e,[]);case d.Z.MAT3:return l.Z.pack(e,[]);case d.Z.MAT4:return h.Z.pack(e,[]);default:return e}},p.prototype.validate=function(e){const t=this._type,i=this._componentType;return d.Z.isVectorType(t)||d.Z.isMatrixType(t)?function(e,t,i){if(!f.Z.isVectorCompatible(i)){const e="componentType "+i+" is incompatible with ";return d.Z.isVectorType(t)?e+"vector type "+t:e+"matrix type "+t}return t!==d.Z.VEC2||e instanceof n.Z?t!==d.Z.VEC3||e instanceof r.Z?t!==d.Z.VEC4||e instanceof o.Z?t!==d.Z.MAT2||e instanceof u.Z?t!==d.Z.MAT3||e instanceof l.Z?t!==d.Z.MAT4||e instanceof h.Z?void 0:"matrix value "+e+" must be a Matrix4":"matrix value "+e+" must be a Matrix3":"matrix value "+e+" must be a Matrix2":"vector value "+e+" must be a Cartesian4":"vector value "+e+" must be a Cartesian3":"vector value "+e+" must be a Cartesian2"}(e,t,i):t===d.Z.ARRAY?function(e,t,i){if(!Array.isArray(t))return m(t,d.Z.ARRAY);const n=t.length;if((0,c.Z)(i)&&i!==n)return"Array length does not match componentCount";for(let i=0;i<n;++i){const n=g(e,t[i]);if((0,c.Z)(n))return n}}(this,e,this._componentCount):g(this,e)};const b=p},53194:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(357299),r=i(446938),o=i(488802);const s={INT8:"INT8",UINT8:"UINT8",INT16:"INT16",UINT16:"UINT16",INT32:"INT32",UINT32:"UINT32",INT64:"INT64",UINT64:"UINT64",FLOAT32:"FLOAT32",FLOAT64:"FLOAT64",BOOLEAN:"BOOLEAN",STRING:"STRING",ENUM:"ENUM",getMinimum:function(e){if(!s.isNumericType(e))throw new r.Z("type must be a numeric type");switch(e){case s.INT8:return-128;case s.UINT8:return 0;case s.INT16:return-32768;case s.UINT16:return 0;case s.INT32:return-2147483648;case s.UINT32:return 0;case s.INT64:return o.Z.supportsBigInt()?BigInt("-9223372036854775808"):-Math.pow(2,63);case s.UINT64:return o.Z.supportsBigInt()?BigInt(0):0;case s.FLOAT32:return-34028234663852886e22;case s.FLOAT64:return-Number.MAX_VALUE}},getMaximum:function(e){if(!s.isNumericType(e))throw new r.Z("type must be a numeric type");switch(e){case s.INT8:return 127;case s.UINT8:return 255;case s.INT16:return 32767;case s.UINT16:return 65535;case s.INT32:return 2147483647;case s.UINT32:return 4294967295;case s.INT64:return o.Z.supportsBigInt()?BigInt("9223372036854775807"):Math.pow(2,63)-1;case s.UINT64:return o.Z.supportsBigInt()?BigInt("18446744073709551615"):Math.pow(2,64)-1;case s.FLOAT32:return 34028234663852886e22;case s.FLOAT64:return Number.MAX_VALUE}},isNumericType:function(e){switch(n.Z.typeOf.string("type",e),e){case s.INT8:case s.UINT8:case s.INT16:case s.UINT16:case s.INT32:case s.UINT32:case s.INT64:case s.UINT64:case s.FLOAT32:case s.FLOAT64:return!0;default:return!1}},isIntegerType:function(e){switch(n.Z.typeOf.string("type",e),e){case s.INT8:case s.UINT8:case s.INT16:case s.UINT16:case s.INT32:case s.UINT32:case s.INT64:case s.UINT64:return!0;default:return!1}},isUnsignedIntegerType:function(e){switch(n.Z.typeOf.string("type",e),e){case s.UINT8:case s.UINT16:case s.UINT32:case s.UINT64:return!0;default:return!1}},isVectorCompatible:function(e){switch(n.Z.typeOf.string("type",e),e){case s.INT8:case s.UINT8:case s.INT16:case s.UINT16:case s.INT32:case s.UINT32:case s.FLOAT32:case s.FLOAT64:return!0;default:return!1}},normalize:function(e,t){if("number"!=typeof e&&"bigint"!=typeof e)throw new r.Z("value must be a number or a BigInt");if(!s.isIntegerType(t))throw new r.Z("type must be an integer type");return e>=0?Math.min(Number(e)/Number(s.getMaximum(t)),1):-Math.min(Number(e)/Number(s.getMinimum(t)),1)},unnormalize:function(e,t){if(n.Z.typeOf.number("value",e),!s.isIntegerType(t))throw new r.Z("type must be an integer type");const i=s.getMinimum(t),a=s.getMaximum(t);return e>=0?e*=Number(a):e=-e*Number(i),t!==s.INT64&&t!==s.UINT64||!o.Z.supportsBigInt()||(e=BigInt(e)),e>a?a:e<i?i:e},getSizeInBytes:function(e){if(!s.isNumericType(e))throw new r.Z("type must be a numeric type");switch(e){case s.INT8:case s.UINT8:return 1;case s.INT16:case s.UINT16:return 2;case s.INT32:case s.UINT32:return 4;case s.INT64:case s.UINT64:return 8;case s.FLOAT32:return 4;case s.FLOAT64:return 8}}},a=Object.freeze(s)},726422:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(357299),r=i(426468),o=i(446938);function s(){}Object.defineProperties(s.prototype,{class:{get:function(){o.Z.throwInstantiationError()}}}),s.prototype.hasProperty=function(e){o.Z.throwInstantiationError()},s.prototype.hasPropertyBySemantic=function(e){o.Z.throwInstantiationError()},s.prototype.getPropertyIds=function(e){o.Z.throwInstantiationError()},s.prototype.getProperty=function(e){o.Z.throwInstantiationError()},s.prototype.setProperty=function(e,t){o.Z.throwInstantiationError()},s.prototype.getPropertyBySemantic=function(e){o.Z.throwInstantiationError()},s.prototype.setPropertyBySemantic=function(e,t){o.Z.throwInstantiationError()},s.hasProperty=function(e,t,i){if(n.Z.typeOf.string("propertyId",e),n.Z.typeOf.object("properties",t),(0,r.Z)(t[e]))return!0;if((0,r.Z)(i)){const t=i.properties[e];if((0,r.Z)(t)&&(0,r.Z)(t.default))return!0}return!1},s.hasPropertyBySemantic=function(e,t,i){if(n.Z.typeOf.string("semantic",e),n.Z.typeOf.object("properties",t),!(0,r.Z)(i))return!1;const o=i.propertiesBySemantic[e];return(0,r.Z)(o)},s.getPropertyIds=function(e,t,i){n.Z.typeOf.object("properties",e),(i=(0,r.Z)(i)?i:[]).length=0;for(const t in e)e.hasOwnProperty(t)&&(0,r.Z)(e[t])&&i.push(t);if((0,r.Z)(t)){const n=t.properties;for(const t in n)n.hasOwnProperty(t)&&!(0,r.Z)(e[t])&&(0,r.Z)(n[t].default)&&i.push(t)}return i},s.getProperty=function(e,t,i){n.Z.typeOf.string("propertyId",e),n.Z.typeOf.object("properties",t);let o,s=t[e];if((0,r.Z)(i)&&(o=i.properties[e]),!(0,r.Z)(s)&&(0,r.Z)(o)&&(s=o.default),(0,r.Z)(s))return Array.isArray(s)&&(s=s.slice()),(0,r.Z)(o)&&(s=o.normalize(s),s=o.unpackVectorAndMatrixTypes(s)),s},s.setProperty=function(e,t,i,o){if(n.Z.typeOf.string("propertyId",e),n.Z.defined("value",t),n.Z.typeOf.object("properties",i),!(0,r.Z)(i[e]))return!1;if(Array.isArray(t)&&(t=t.slice()),(0,r.Z)(o)){const i=o.properties[e];(0,r.Z)(i)&&(t=i.packVectorAndMatrixTypes(t),t=i.unnormalize(t))}return i[e]=t,!0},s.getPropertyBySemantic=function(e,t,i){if(n.Z.typeOf.string("semantic",e),n.Z.typeOf.object("properties",t),!(0,r.Z)(i))return;const o=i.propertiesBySemantic[e];return(0,r.Z)(o)?s.getProperty(o.id,t,i):void 0},s.setPropertyBySemantic=function(e,t,i,o){n.Z.typeOf.string("semantic",e),n.Z.defined("value",t),n.Z.typeOf.object("properties",i),n.Z.typeOf.object("classDefinition",o);const a=o.propertiesBySemantic[e];return!!(0,r.Z)(a)&&s.setProperty(a.id,t,i,o)};const a=s},75970:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(357299),r=i(406144),o=i(679523),s=i(53194);function a(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).id,i=e.enum;n.Z.typeOf.string("options.id",t),n.Z.typeOf.object("options.enum",i);const a={},c={},u=i.values.map((function(e){return a[e.value]=e.name,c[e.name]=e.value,new o.Z(e)})),l=(0,r.Z)(s.Z[i.valueType],s.Z.UINT16);this._values=u,this._namesByValue=a,this._valuesByName=c,this._valueType=l,this._id=t,this._name=i.name,this._description=i.description,this._extras=i.extras,this._extensions=i.extensions}Object.defineProperties(a.prototype,{values:{get:function(){return this._values}},namesByValue:{get:function(){return this._namesByValue}},valuesByName:{get:function(){return this._valuesByName}},valueType:{get:function(){return this._valueType}},id:{get:function(){return this._id}},name:{get:function(){return this._name}},description:{get:function(){return this._description}},extras:{get:function(){return this._extras}},extensions:{get:function(){return this._extensions}}});const c=a},679523:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(357299);function r(e){n.Z.typeOf.object("value",e),this._value=e.value,this._name=e.name,this._description=e.description,this._extras=e.extras,this._extensions=e.extensions}Object.defineProperties(r.prototype,{value:{get:function(){return this._value}},name:{get:function(){return this._name}},description:{get:function(){return this._description}},extras:{get:function(){return this._extras}},extensions:{get:function(){return this._extensions}}});const o=r},518201:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(357299),r=i(426468),o=i(211303),s=i(75970);function a(e){n.Z.typeOf.object("schema",e);const t={};if((0,r.Z)(e.enums))for(const i in e.enums)e.enums.hasOwnProperty(i)&&(t[i]=new s.Z({id:i,enum:e.enums[i]}));const i={};if((0,r.Z)(e.classes))for(const n in e.classes)e.classes.hasOwnProperty(n)&&(i[n]=new o.Z({id:n,class:e.classes[n],enums:t}));this._classes=i,this._enums=t,this._id=e.id,this._name=e.name,this._description=e.description,this._version=e.version,this._extras=e.extras,this._extensions=e.extensions}Object.defineProperties(a.prototype,{classes:{get:function(){return this._classes}},enums:{get:function(){return this._enums}},id:{get:function(){return this._id}},name:{get:function(){return this._name}},description:{get:function(){return this._description}},version:{get:function(){return this._version}},extras:{get:function(){return this._extras}},extensions:{get:function(){return this._extensions}}});const c=a},789340:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(406144),r=i(426468),o=i(446938),s=i(527758),a=i(518201),c=i(81967),u=i(646754);function l(e){const t=(e=(0,n.Z)(e,n.Z.EMPTY_OBJECT)).schema,i=e.resource,c=e.cacheKey;if((0,r.Z)(t)===(0,r.Z)(i))throw new o.Z("One of options.schema and options.resource must be defined.");this._schema=(0,r.Z)(t)?new a.Z(t):void 0,this._resource=i,this._cacheKey=c,this._state=u.Z.UNLOADED,this._promise=s.Z.defer()}(0,r.Z)(Object.create)&&(l.prototype=Object.create(c.Z.prototype),l.prototype.constructor=l),Object.defineProperties(l.prototype,{promise:{get:function(){return this._promise.promise}},cacheKey:{get:function(){return this._cacheKey}},schema:{get:function(){return this._schema}}}),l.prototype.load=function(){(0,r.Z)(this._schema)?this._promise.resolve(this):function(e){const t=e._resource;e._state=u.Z.LOADING,t.fetchJson().then((function(t){e.isDestroyed()||(e._schema=new a.Z(t),e._state=u.Z.READY,e._promise.resolve(e))})).otherwise((function(i){if(e.isDestroyed())return;e._state=u.Z.FAILED;const n="Failed to load schema: "+t.url;e._promise.reject(e.getError(n,i))}))}(this)},l.prototype.unload=function(){this._schema=void 0}},933197:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({ID:"ID",NAME:"NAME",DESCRIPTION:"DESCRIPTION",TILE_BOUNDING_BOX:"TILE_BOUNDING_BOX",TILE_BOUNDING_REGION:"TILE_BOUNDING_REGION",TILE_BOUNDING_SPHERE:"TILE_BOUNDING_SPHERE",TILE_MINIMUM_HEIGHT:"TILE_MINIMUM_HEIGHT",TILE_MAXIMUM_HEIGHT:"TILE_MAXIMUM_HEIGHT",TILE_HORIZON_OCCLUSION_POINT:"TILE_HORIZON_OCCLUSION_POINT",TILE_GEOMETRIC_ERROR:"TILE_GEOMETRIC_ERROR",CONTENT_BOUNDING_BOX:"CONTENT_BOUNDING_BOX",CONTENT_BOUNDING_REGION:"CONTENT_BOUNDING_REGION",CONTENT_BOUNDING_SPHERE:"CONTENT_BOUNDING_SPHERE",CONTENT_MINIMUM_HEIGHT:"CONTENT_MINIMUM_HEIGHT",CONTENT_MAXIMUM_HEIGHT:"CONTENT_MAXIMUM_HEIGHT",CONTENT_HORIZON_OCCLUSION_POINT:"CONTENT_HORIZON_OCCLUSION_POINT"})},388847:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(357299),r=i(406144),o=i(426468),s=i(726422),a=i(991085),c=i(594193);function u(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).count;n.Z.typeOf.number.greaterThan("options.count",t,0);const i={};if((0,o.Z)(e.properties))for(const n in e.properties)e.properties.hasOwnProperty(n)&&(i[n]=new a.Z({count:t,property:e.properties[n],classProperty:e.class.properties[n],bufferViews:e.bufferViews}));this._count=t,this._class=e.class,this._properties=i}Object.defineProperties(u.prototype,{count:{get:function(){return this._count}},class:{get:function(){return this._class}}}),u.prototype.hasProperty=function(e){return s.Z.hasProperty(e,this._properties,this._class)},u.prototype.hasPropertyBySemantic=function(e){return s.Z.hasPropertyBySemantic(e,this._properties,this._class)},u.prototype.getPropertyIds=function(e){return s.Z.getPropertyIds(this._properties,this._class,e)},u.prototype.getProperty=function(e,t){n.Z.typeOf.string("propertyId",t);const i=this._properties[t];let r;return r=(0,o.Z)(i)?i.get(e):function(e,t){if((0,o.Z)(e)){const i=e.properties[t];if((0,o.Z)(i)&&(0,o.Z)(i.default)){let e=i.default;return i.type===c.Z.ARRAY&&(e=e.slice()),e=i.normalize(e),i.unpackVectorAndMatrixTypes(e)}}}(this._class,t),r},u.prototype.setProperty=function(e,t,i){n.Z.typeOf.string("propertyId",t);const r=this._properties[t];return!!(0,o.Z)(r)&&(r.set(e,i),!0)},u.prototype.getPropertyBySemantic=function(e,t){if(n.Z.typeOf.string("semantic",t),(0,o.Z)(this._class)){const i=this._class.propertiesBySemantic[t];if((0,o.Z)(i))return this.getProperty(e,i.id)}},u.prototype.setPropertyBySemantic=function(e,t,i){if(n.Z.typeOf.string("semantic",t),(0,o.Z)(this._class)){const n=this._class.propertiesBySemantic[t];if((0,o.Z)(n))return this.setProperty(e,n.id,i)}return!1},u.prototype.getPropertyTypedArray=function(e){n.Z.typeOf.string("propertyId",e);const t=this._properties[e];if((0,o.Z)(t))return t.getTypedArray()},u.prototype.getPropertyTypedArrayBySemantic=function(e){if(n.Z.typeOf.string("semantic",e),(0,o.Z)(this._class)){const t=this._class.propertiesBySemantic[e];if((0,o.Z)(t))return this.getPropertyTypedArray(t.id)}};const l=u},991085:(e,t,i)=>{"use strict";i.d(t,{Z:()=>g});var n=i(357299),r=i(997274),o=i(406144),s=i(426468),a=i(446938),c=i(488802),u=i(482103),l=i(594798),h=i(53194),d=i(594193);function f(e){const t=(e=(0,o.Z)(e,o.Z.EMPTY_OBJECT)).count,i=e.property,r=e.classProperty,a=e.bufferViews;n.Z.typeOf.number.greaterThan("options.count",t,0),n.Z.typeOf.object("options.property",i),n.Z.typeOf.object("options.classProperty",r),n.Z.typeOf.object("options.bufferViews",a);const c=r.type,l=c===d.Z.ARRAY,f=l&&!(0,s.Z)(r.componentCount),p=d.Z.isVectorType(c)||d.Z.isMatrixType(c);let m=r.valueType;const _=r.enumType,g=m===h.Z.STRING,y=m===h.Z.BOOLEAN;let b,A,w,v;if(f){let e=(0,o.Z)(i.arrayOffsetType,i.offsetType);e=(0,o.Z)(h.Z[e],h.Z.UINT32),b=new Z(a[i.arrayOffsetBufferView],e,t+1)}if(A=f?b.get(t)-b.get(0):l||p?t*r.componentCount:t,g){let e=(0,o.Z)(i.stringOffsetType,i.offsetType);e=(0,o.Z)(h.Z[e],h.Z.UINT32),w=new Z(a[i.stringOffsetBufferView],e,A+1)}(g||y)&&(m=h.Z.UINT8),v=g?w.get(A)-w.get(0):y?Math.ceil(A/8):A;const T=new Z(a[i.bufferView],m,v),C=this;let E,x;g?E=function(e){return function(e,t,i){const n=i.get(e),r=i.get(e+1)-n;return(0,u.Z)(t.typedArray,n,r)}(e,C._values,C._stringOffsets)}:y?(E=function(e){return function(e,t){const i=e>>3,n=e%8;return 1==(t.typedArray[i]>>n&1)}(e,C._values)},x=function(e,t){!function(e,t,i){const n=e>>3,r=e%8;i?t.typedArray[n]|=1<<r:t.typedArray[n]&=~(1<<r)}(e,C._values,t)}):(0,s.Z)(_)?(E=function(e){const t=C._values.get(e);return _.namesByValue[t]},x=function(e,t){const i=_.valuesByName[t];C._values.set(e,i)}):(E=function(e){return C._values.get(e)},x=function(e,t){C._values.set(e,t)}),this._arrayOffsets=b,this._stringOffsets=w,this._values=T,this._classProperty=r,this._count=t,this._getValue=E,this._setValue=x,this._unpackedValues=void 0,this._extras=i.extras,this._extensions=i.extensions}function p(e,t){const i=e._count;if(!(0,s.Z)(t)||t<0||t>=i){const e=i-1;throw new a.Z("index is required and between zero and count - 1. Actual value: "+e)}}function m(e){if((0,s.Z)(e._unpackedValues))return!1;const t=e._classProperty.valueType;return t===h.Z.STRING||t===h.Z.INT64&&!c.Z.supportsBigInt64Array()||t===h.Z.UINT64&&!c.Z.supportsBigUint64Array()}function _(e){e._unpackedValues=function(e){let t;const i=e._count,n=new Array(i),r=e._classProperty;if(r.type!==d.Z.ARRAY){for(t=0;t<i;++t)n[t]=e._getValue(t);return n}let o,a,c;const u=r.componentCount;if((0,s.Z)(u)){for(t=0;t<i;++t)for(c=new Array(u),n[t]=c,a=t*u,o=0;o<u;++o)c[o]=e._getValue(a+o);return n}for(t=0;t<i;++t){a=e._arrayOffsets.get(t);const i=e._arrayOffsets.get(t+1)-a;for(c=new Array(i),n[t]=c,o=0;o<i;++o)c[o]=e._getValue(a+o)}return n}(e),e._arrayOffsets=void 0,e._stringOffsets=void 0,e._values=void 0}function Z(e,t,i){const n=this;let o,a,u;if(t===h.Z.INT64)c.Z.supportsBigInt()?c.Z.supportsBigInt64Array()?(o=new BigInt64Array(e.buffer,e.byteOffset,i),u=function(e,t){n.typedArray[e]=BigInt(t)}):(o=new Uint8Array(e.buffer,e.byteOffset,8*i),a=function(e){return function(e,t){const i=t.dataView,n=8*e;var r=BigInt(0);const o=(128&i.getUint8(n+7))>0;let s=!0;for(let e=0;e<8;++e){let t=i.getUint8(n+e);o&&(s?0!==t&&(t=255&~(t-1),s=!1):t=255&~t),r+=BigInt(t)*(BigInt(1)<<BigInt(8*e))}return o&&(r=-r),r}(e,n)}):((0,l.Z)("INT64 type is not fully supported on this platform. Values greater than 2^53 - 1 or less than -(2^53 - 1) may lose precision when read."),o=new Uint8Array(e.buffer,e.byteOffset,8*i),a=function(e){return function(e,t){const i=t.dataView,n=8*e;let r=0;const o=(128&i.getUint8(n+7))>0;let s=!0;for(let e=0;e<8;++e){let t=i.getUint8(n+e);o&&(s?0!==t&&(t=255&~(t-1),s=!1):t=255&~t),r+=t*Math.pow(256,e)}return o&&(r=-r),r}(e,n)});else if(t===h.Z.UINT64)c.Z.supportsBigInt()?c.Z.supportsBigUint64Array()?(o=new BigUint64Array(e.buffer,e.byteOffset,i),u=function(e,t){n.typedArray[e]=BigInt(t)}):(o=new Uint8Array(e.buffer,e.byteOffset,8*i),a=function(e){return function(e,t){const i=t.dataView,n=8*e;var r=BigInt(i.getUint32(n,!0)),o=BigInt(i.getUint32(n+4,!0));return r+BigInt(4294967296)*o}(e,n)}):((0,l.Z)("UINT64 type is not fully supported on this platform. Values greater than 2^53 - 1 may lose precision when read."),o=new Uint8Array(e.buffer,e.byteOffset,8*i),a=function(e){return function(e,t){const i=t.dataView,n=8*e;return i.getUint32(n,!0)+4294967296*i.getUint32(n+4,!0)}(e,n)});else{const s=function(e){switch(e){case h.Z.INT8:return r.Z.BYTE;case h.Z.UINT8:return r.Z.UNSIGNED_BYTE;case h.Z.INT16:return r.Z.SHORT;case h.Z.UINT16:return r.Z.UNSIGNED_SHORT;case h.Z.INT32:return r.Z.INT;case h.Z.UINT32:return r.Z.UNSIGNED_INT;case h.Z.FLOAT32:return r.Z.FLOAT;case h.Z.FLOAT64:return r.Z.DOUBLE}}(t);o=r.Z.createArrayBufferView(s,e.buffer,e.byteOffset,i),u=function(e,t){n.typedArray[e]=t}}(0,s.Z)(a)||(a=function(e){return n.typedArray[e]}),this.typedArray=o,this.dataView=new DataView(o.buffer,o.byteOffset),this.get=a,this.set=u,this._componentType=t}Object.defineProperties(f.prototype,{extras:{get:function(){return this._extras}},extensions:{get:function(){return this._extensions}}}),f.prototype.get=function(e){p(this,e);let t=function(e,t){m(e)&&_(e);const i=e._classProperty;if((0,s.Z)(e._unpackedValues)){const n=e._unpackedValues[t];return i.type===d.Z.ARRAY?n.slice():n}const n=i.type,r=i.type===d.Z.ARRAY,o=d.Z.isVectorType(n)||d.Z.isMatrixType(n);if(!r&&!o)return e._getValue(t);let a,c;const u=i.componentCount;(0,s.Z)(u)?(a=t*u,c=u):(a=e._arrayOffsets.get(t),c=e._arrayOffsets.get(t+1)-a);const l=new Array(c);for(let t=0;t<c;++t)l[t]=e._getValue(a+t);return l}(this,e);return t=this._classProperty.normalize(t),this._classProperty.unpackVectorAndMatrixTypes(t)},f.prototype.set=function(e,t){const i=this._classProperty;p(this,e);const n=i.validate(t);if((0,s.Z)(n))throw new a.Z(n);t=i.packVectorAndMatrixTypes(t),function(e,t,i){(function(e,t,i){if(m(e))return!0;const n=e._arrayOffsets;return!(!(0,s.Z)(n)||n.get(t+1)-n.get(t)===i.length)})(e,t,i)&&_(e);const n=e._classProperty;if((0,s.Z)(e._unpackedValues))return n.type===d.Z.ARRAY&&(i=i.slice()),void(e._unpackedValues[t]=i);const r=n.type,o=n.type===d.Z.ARRAY,a=d.Z.isVectorType(r)||d.Z.isMatrixType(r);if(!o&&!a)return void e._setValue(t,i);let c,u;const l=n.componentCount;(0,s.Z)(l)?(c=t*l,u=l):(c=e._arrayOffsets.get(t),u=e._arrayOffsets.get(t+1)-c);for(let t=0;t<u;++t)e._setValue(c+t,i[t])}(this,e,t=i.unnormalize(t))},f.prototype.getTypedArray=function(){if((0,s.Z)(this._values))return this._values.typedArray};const g=f},594193:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(357299);const r={SINGLE:"SINGLE",VEC2:"VEC2",VEC3:"VEC3",VEC4:"VEC4",MAT2:"MAT2",MAT3:"MAT3",MAT4:"MAT4",ARRAY:"ARRAY",isVectorType:function(e){switch(n.Z.typeOf.string("type",e),e){case r.VEC2:case r.VEC3:case r.VEC4:return!0;default:return!1}},isMatrixType:function(e){switch(n.Z.typeOf.string("type",e),e){case r.MAT2:case r.MAT3:case r.MAT4:return!0;default:return!1}},getComponentCount:function(e){switch(n.Z.typeOf.string("type",e),e){case r.SINGLE:return 1;case r.VEC2:return 2;case r.VEC3:return 3;case r.VEC4:case r.MAT2:return 4;case r.MAT3:return 9;case r.MAT4:return 16;default:return}}},o=Object.freeze(r)},427570:(e,t,i)=>{"use strict";i.d(t,{Z:()=>fi});var n=i(360791),r=i(337968),o=i(919382),s=i(114754),a=i(698907),c=i(357299),u=i(556592),l=i(545125),h=i(307260),d=i(416974),f=i(846748),p=i(406144),m=i(426468),_=i(54879),Z=i(446938),g=i(744497),y=i(488802),b=i(47628),A=i(987606),w=i(707009),v=i(482103),T=i(546135),C=i(312562),E=i(210510),x=i(362017),S=i(165373),O=i(583917),I=i(100883),D=i(195809),P=i(129782),R=i(795788),B=i(358198),M=i(619287),L=i(636807),N=i(50720),F=i(247913),k=i(842649),U=i(364232),V=i(270013),z=i(928096),H=i(279427),G=i(283044),q=i(636664),j=i(655499),W=i(676311),K=i(19632),Y=i(943244),X=i(794130),J=i(675622),Q=i(934804),$=i(597722),ee=i(761766),te=i(68822),ie=i(527758),ne=i(39213),re=i(451356),oe=i(586949),se=i(567485),ae=i(329286),ce=i(947941),ue=i(488818),le=i(394088),he=i(110499),de=i(495589),fe=i(953328),pe=i(191495),me=i(774664),_e=i(747085),Ze=i(436848),ge=i(839186),ye=i(626507),be=i(152823),Ae=i(520459),we=i(102610),ve=i(883748),Te=i(506678),Ce=i(556198),Ee=i(42973);const xe=new o.Z,Se=be.Z.ModelState,Oe=x.Z.EPSILON16;function Ie(e,t){e._cachedGltf=t}function De(e){this._gltf=e.gltf,this.ready=e.ready,this.modelsToLoad=[],this.count=0}Object.defineProperties(De.prototype,{gltf:{set:function(e){this._gltf=e},get:function(){return this._gltf}}}),De.prototype.makeReady=function(e){this.gltf=e;const t=this.modelsToLoad,i=t.length;for(let e=0;e<i;++e){const i=t[e];i.isDestroyed()||Ie(i,this)}this.modelsToLoad=void 0,this.ready=!0};const Pe={},Re={};function Be(e){const t=(e=(0,p.Z)(e,p.Z.EMPTY_OBJECT)).cacheKey;let i;if(this._cacheKey=t,this._cachedGltf=void 0,this._releaseGltfJson=(0,p.Z)(e.releaseGltfJson,!1),(0,m.Z)(t)&&(0,m.Z)(Pe[t])&&Pe[t].ready)i=Pe[t],++i.count;else{let n=e.gltf;(0,m.Z)(n)&&(n instanceof ArrayBuffer&&(n=new Uint8Array(n)),i=n instanceof Uint8Array?new De({gltf:(0,ee.Z)(n),ready:!0}):new De({gltf:e.gltf,ready:!0}),i.count=1,(0,m.Z)(t)&&(Pe[t]=i))}Ie(this,i);const s=(0,p.Z)(e.basePath,"");this._resource=R.Z.createIfNeeded(s);let a=e.credit;"string"==typeof a&&(a=new f.Z(a)),this._credit=a,this._resourceCredits=[],this.show=(0,p.Z)(e.show,!0),this.silhouetteColor=(0,p.Z)(e.silhouetteColor,l.Z.RED),this._silhouetteColor=new l.Z,this._silhouetteColorPreviousAlpha=1,this._normalAttributeName=void 0,this.silhouetteSize=(0,p.Z)(e.silhouetteSize,0),this.modelMatrix=O.Z.clone((0,p.Z)(e.modelMatrix,O.Z.IDENTITY)),this._modelMatrix=O.Z.clone(this.modelMatrix),this._clampedModelMatrix=void 0,this.scale=(0,p.Z)(e.scale,1),this._scale=this.scale,this.minimumPixelSize=(0,p.Z)(e.minimumPixelSize,0),this._minimumPixelSize=this.minimumPixelSize,this.maximumScale=e.maximumScale,this._maximumScale=this.maximumScale,this.id=e.id,this._id=e.id,this.heightReference=(0,p.Z)(e.heightReference,he.Z.NONE),this._heightReference=this.heightReference,this._heightChanged=!1,this._removeUpdateHeightCallback=void 0;const c=e.scene;this._scene=c,(0,m.Z)(c)&&(0,m.Z)(c.terrainProviderChanged)&&(this._terrainProviderChangedCallback=c.terrainProviderChanged.addEventListener((function(){this._heightChanged=!0}),this)),this._pickObject=e.pickObject,this._allowPicking=(0,p.Z)(e.allowPicking,!0),this._ready=!1,this._readyPromise=ie.Z.defer(),this.activeAnimations=new pe.Z(this),this.clampAnimations=(0,p.Z)(e.clampAnimations,!0),this._defaultTexture=void 0,this._incrementallyLoadTextures=(0,p.Z)(e.incrementallyLoadTextures,!0),this._asynchronous=(0,p.Z)(e.asynchronous,!0),this.shadows=(0,p.Z)(e.shadows,Ce.Z.ENABLED),this._shadows=this.shadows,this.color=l.Z.clone((0,p.Z)(e.color,l.Z.WHITE)),this._colorPreviousAlpha=1,this.colorBlendMode=(0,p.Z)(e.colorBlendMode,se.Z.HIGHLIGHT),this.colorBlendAmount=(0,p.Z)(e.colorBlendAmount,.5),this._colorShadingEnabled=!1,this._clippingPlanes=void 0,this.clippingPlanes=e.clippingPlanes,this._clippingPlanesState=0,this.referenceMatrix=void 0,this.backFaceCulling=(0,p.Z)(e.backFaceCulling,!0),this.showOutline=(0,p.Z)(e.showOutline,!0),this.debugShowBoundingVolume=(0,p.Z)(e.debugShowBoundingVolume,!1),this._debugShowBoundingVolume=!1,this.debugWireframe=(0,p.Z)(e.debugWireframe,!1),this._debugWireframe=!1,this._distanceDisplayCondition=e.distanceDisplayCondition,this._addBatchIdToGeneratedShaders=e.addBatchIdToGeneratedShaders,this._precreatedAttributes=e.precreatedAttributes,this._vertexShaderLoaded=e.vertexShaderLoaded,this._fragmentShaderLoaded=e.fragmentShaderLoaded,this._uniformMapLoaded=e.uniformMapLoaded,this._pickIdLoaded=e.pickIdLoaded,this._ignoreCommands=(0,p.Z)(e.ignoreCommands,!1),this._requestType=e.requestType,this._upAxis=(0,p.Z)(e.upAxis,ne.Z.Y),this._gltfForwardAxis=ne.Z.Z,this._forwardAxis=e.forwardAxis,this.cull=(0,p.Z)(e.cull,!0),this.opaquePass=(0,p.Z)(e.opaquePass,k.Z.OPAQUE),this._computedModelMatrix=new O.Z,this._clippingPlanesMatrix=O.Z.clone(O.Z.IDENTITY),this._iblReferenceFrameMatrix=S.Z.clone(S.Z.IDENTITY),this._initialRadius=void 0,this._boundingSphere=void 0,this._scaledBoundingSphere=new n.Z,this._state=Se.NEEDS_LOAD,this._loadResources=void 0,this._mode=void 0,this._perNodeShowDirty=!1,this._cesiumAnimationsDirty=!1,this._dirty=!1,this._maxDirtyNumber=0,this._runtime={animations:void 0,articulationsByName:void 0,articulationsByStageKey:void 0,stagesByKey:void 0,rootNodes:void 0,nodes:void 0,nodesByName:void 0,skinnedNodes:void 0,meshesByName:void 0,materialsByName:void 0,materialsById:void 0},this._uniformMaps={},this._extensionsUsed=void 0,this._extensionsRequired=void 0,this._quantizedUniforms={},this._programPrimitives={},this._rendererResources={buffers:{},vertexArrays:{},programs:{},sourceShaders:{},silhouettePrograms:{},textures:{},samplers:{},renderStates:{}},this._cachedRendererResources=void 0,this._loadRendererResourcesFromCache=!1,this._dequantizeInShader=(0,p.Z)(e.dequantizeInShader,!0),this._decodedData={},this._cachedGeometryByteLength=0,this._cachedTexturesByteLength=0,this._geometryByteLength=0,this._texturesByteLength=0,this._trianglesLength=0,this._pointsLength=0,this._sourceTechniques={},this._sourcePrograms={},this._quantizedVertexShaders={},this._nodeCommands=[],this._pickIds=[],this._rtcCenter=void 0,this._rtcCenterEye=void 0,this._rtcCenter3D=void 0,this._rtcCenter2D=void 0,this._sourceVersion=void 0,this._sourceKHRTechniquesWebGL=void 0,this._imageBasedLightingFactor=new r.Z(1,1),r.Z.clone(e.imageBasedLightingFactor,this._imageBasedLightingFactor),this._lightColor=o.Z.clone(e.lightColor),this._luminanceAtZenith=void 0,this.luminanceAtZenith=(0,p.Z)(e.luminanceAtZenith,.2),this._sphericalHarmonicCoefficients=e.sphericalHarmonicCoefficients,this._specularEnvironmentMaps=e.specularEnvironmentMaps,this._shouldUpdateSpecularMapAtlas=!0,this._specularEnvironmentMapAtlas=void 0,this._useDefaultSphericalHarmonics=!1,this._useDefaultSpecularMaps=!1,this._shouldRegenerateShaders=!1}function Me(e){return e.stencilBuffer}function Le(e){return!l.Z.equals(e.color,l.Z.WHITE)||e.colorBlendMode!==se.Z.HIGHLIGHT}function Ne(e){const t=e._clippingPlanes;return(0,m.Z)(t)&&t.enabled&&0!==t.length}function Fe(e,t,i){if(e._state!==Se.LOADED)throw new Z.Z("The model is not loaded. Use Model.readyPromise or wait for Model.ready to be true.");if(!(0,m.Z)(i))throw new Z.Z("name is required.");return e._runtime[t][i]}Object.defineProperties(Be.prototype,{gltf:{get:function(){return(0,m.Z)(this._cachedGltf)?this._cachedGltf.gltf:void 0}},releaseGltfJson:{get:function(){return this._releaseGltfJson}},cacheKey:{get:function(){return this._cacheKey}},basePath:{get:function(){return this._resource.url}},boundingSphere:{get:function(){if(this._state!==Se.LOADED)throw new Z.Z("The model is not loaded. Use Model.readyPromise or wait for Model.ready to be true.");let e=this.modelMatrix;this.heightReference!==he.Z.NONE&&this._clampedModelMatrix&&(e=this._clampedModelMatrix);const t=O.Z.getScale(e,xe),i=(0,m.Z)(this.maximumScale)?Math.min(this.maximumScale,this.scale):this.scale;o.Z.multiplyByScalar(t,i,t);const n=this._scaledBoundingSphere;return n.center=o.Z.multiplyComponents(this._boundingSphere.center,t,n.center),n.radius=o.Z.maximumComponent(t)*this._initialRadius,(0,m.Z)(this._rtcCenter)&&o.Z.add(this._rtcCenter,n.center,n.center),n}},ready:{get:function(){return this._ready}},readyPromise:{get:function(){return this._readyPromise.promise}},asynchronous:{get:function(){return this._asynchronous}},allowPicking:{get:function(){return this._allowPicking}},incrementallyLoadTextures:{get:function(){return this._incrementallyLoadTextures}},pendingTextureLoads:{get:function(){return(0,m.Z)(this._loadResources)?this._loadResources.pendingTextureLoads:0}},dirty:{get:function(){return this._dirty}},distanceDisplayCondition:{get:function(){return this._distanceDisplayCondition},set:function(e){if((0,m.Z)(e)&&e.far<=e.near)throw new Z.Z("far must be greater than near");this._distanceDisplayCondition=g.Z.clone(e,this._distanceDisplayCondition)}},extensionsUsed:{get:function(){return(0,m.Z)(this._extensionsUsed)||(this._extensionsUsed=be.Z.getUsedExtensions(this.gltf)),this._extensionsUsed}},extensionsRequired:{get:function(){return(0,m.Z)(this._extensionsRequired)||(this._extensionsRequired=be.Z.getRequiredExtensions(this.gltf)),this._extensionsRequired}},upAxis:{get:function(){return this._upAxis}},forwardAxis:{get:function(){return(0,m.Z)(this._forwardAxis)?this._forwardAxis:this._gltfForwardAxis}},trianglesLength:{get:function(){return this._trianglesLength}},pointsLength:{get:function(){return this._pointsLength}},geometryByteLength:{get:function(){return this._geometryByteLength}},texturesByteLength:{get:function(){return this._texturesByteLength}},cachedGeometryByteLength:{get:function(){return this._cachedGeometryByteLength}},cachedTexturesByteLength:{get:function(){return this._cachedTexturesByteLength}},clippingPlanes:{get:function(){return this._clippingPlanes},set:function(e){e!==this._clippingPlanes&&oe.Z.setOwner(e,this,"_clippingPlanes")}},pickIds:{get:function(){return this._pickIds}},imageBasedLightingFactor:{get:function(){return this._imageBasedLightingFactor},set:function(e){c.Z.typeOf.object("imageBasedLightingFactor",e),c.Z.typeOf.number.greaterThanOrEquals("imageBasedLightingFactor.x",e.x,0),c.Z.typeOf.number.lessThanOrEquals("imageBasedLightingFactor.x",e.x,1),c.Z.typeOf.number.greaterThanOrEquals("imageBasedLightingFactor.y",e.y,0),c.Z.typeOf.number.lessThanOrEquals("imageBasedLightingFactor.y",e.y,1);const t=this._imageBasedLightingFactor;e===t||r.Z.equals(e,t)||(this._shouldRegenerateShaders=this._shouldRegenerateShaders||this._imageBasedLightingFactor.x>0&&0===e.x||0===this._imageBasedLightingFactor.x&&e.x>0,this._shouldRegenerateShaders=this._shouldRegenerateShaders||this._imageBasedLightingFactor.y>0&&0===e.y||0===this._imageBasedLightingFactor.y&&e.y>0,r.Z.clone(e,this._imageBasedLightingFactor))}},lightColor:{get:function(){return this._lightColor},set:function(e){const t=this._lightColor;e===t||o.Z.equals(e,t)||(this._shouldRegenerateShaders=this._shouldRegenerateShaders||(0,m.Z)(t)&&!(0,m.Z)(e)||(0,m.Z)(e)&&!(0,m.Z)(t),this._lightColor=o.Z.clone(e,t))}},luminanceAtZenith:{get:function(){return this._luminanceAtZenith},set:function(e){const t=this._luminanceAtZenith;e!==t&&(this._shouldRegenerateShaders=this._shouldRegenerateShaders||(0,m.Z)(t)&&!(0,m.Z)(e)||(0,m.Z)(e)&&!(0,m.Z)(t),this._luminanceAtZenith=e)}},sphericalHarmonicCoefficients:{get:function(){return this._sphericalHarmonicCoefficients},set:function(e){if((0,m.Z)(e)&&(!Array.isArray(e)||9!==e.length))throw new Z.Z("sphericalHarmonicCoefficients must be an array of 9 Cartesian3 values.");e!==this._sphericalHarmonicCoefficients&&(this._sphericalHarmonicCoefficients=e,this._shouldRegenerateShaders=!0)}},specularEnvironmentMaps:{get:function(){return this._specularEnvironmentMaps},set:function(e){this._shouldUpdateSpecularMapAtlas=this._shouldUpdateSpecularMapAtlas||e!==this._specularEnvironmentMaps,this._specularEnvironmentMaps=e}},credit:{get:function(){return this._credit}}}),Be.silhouetteSupported=function(e){return Me(e.context)},Be.fromGltf=function(e){if(!(0,m.Z)(e)||!(0,m.Z)(e.url))throw new Z.Z("options.url is required");const t=e.url;e=(0,u.Z)(e);const i=R.Z.createIfNeeded(t),n=(0,p.Z)(e.basePath,i.clone()),r=R.Z.createIfNeeded(n);let o=(0,p.Z)(e.cacheKey,Re[(0,b.Z)(i.url)]);(0,m.Z)(o)||(o=(0,d.Z)(),Re[(0,b.Z)(i.url)]=o),(0,m.Z)(e.basePath)&&!(0,m.Z)(e.cacheKey)&&(o+=r.url),e.cacheKey=o,e.basePath=r;const s=new Be(e);let a=Pe[o];return(0,m.Z)(a)?a.ready||(++a.count,a.modelsToLoad.push(s)):(a=new De({ready:!1}),a.count=1,a.modelsToLoad.push(s),Ie(s,a),Pe[o]=a,(0,m.Z)(i.headers.Accept)||(i.headers.Accept="model/gltf-binary,model/gltf+json;q=0.8,application/json;q=0.2,*/*;q=0.01"),i.fetchArrayBuffer().then((function(e){const t=new Uint8Array(e);if(n=t,"glTF"===(0,w.Z)(n)){const e=(0,ee.Z)(t);a.makeReady(e)}else{const e=(0,A.Z)(t);a.makeReady(e)}var n;const r=s._resourceCredits,o=i.credits;if((0,m.Z)(o)){const e=o.length;for(let t=0;t<e;t++)r.push(o[t])}})).otherwise(be.Z.getFailedLoadFunction(s,"model",i.url))),s},Be._gltfCache=Pe,Be.prototype.getNode=function(e){const t=Fe(this,"nodesByName",e);return(0,m.Z)(t)?t.publicNode:void 0},Be.prototype.getMesh=function(e){return Fe(this,"meshesByName",e)},Be.prototype.getMaterial=function(e){return Fe(this,"materialsByName",e)},Be.prototype.setArticulationStage=function(e,t){c.Z.typeOf.number("value",t);const i=Fe(this,"stagesByKey",e),n=Fe(this,"articulationsByStageKey",e);(0,m.Z)(i)&&(0,m.Z)(n)&&(t=x.Z.clamp(t,i.minimumValue,i.maximumValue),x.Z.equalsEpsilon(i.currentValue,t,Oe)||(i.currentValue=t,n.isDirty=!0))};const ke=new o.Z,Ue=new S.Z;function Ve(e,t){c.Z.typeOf.object("stage",e),c.Z.typeOf.object("result",t);const i=e.currentValue,n=ke;let r;switch(e.type){case"xRotate":r=S.Z.fromRotationX(x.Z.toRadians(i),Ue),O.Z.multiplyByMatrix3(t,r,t);break;case"yRotate":r=S.Z.fromRotationY(x.Z.toRadians(i),Ue),O.Z.multiplyByMatrix3(t,r,t);break;case"zRotate":r=S.Z.fromRotationZ(x.Z.toRadians(i),Ue),O.Z.multiplyByMatrix3(t,r,t);break;case"xTranslate":n.x=i,n.y=0,n.z=0,O.Z.multiplyByTranslation(t,n,t);break;case"yTranslate":n.x=0,n.y=i,n.z=0,O.Z.multiplyByTranslation(t,n,t);break;case"zTranslate":n.x=0,n.y=0,n.z=i,O.Z.multiplyByTranslation(t,n,t);break;case"xScale":n.x=i,n.y=1,n.z=1,O.Z.multiplyByScale(t,n,t);break;case"yScale":n.x=1,n.y=i,n.z=1,O.Z.multiplyByScale(t,n,t);break;case"zScale":n.x=1,n.y=1,n.z=i,O.Z.multiplyByScale(t,n,t);break;case"uniformScale":O.Z.multiplyByUniformScale(t,i,t)}return t}const ze=new O.Z;function He(e,t){return function(i){const n=e._loadResources,r=new Uint8Array(i);--n.pendingBufferLoads,e.gltf.buffers[t].extras._pipeline.source=r}}function Ge(e,t){return function(i){const n=e._loadResources;let r;--n.pendingTextureLoads,Array.isArray(i)&&(r=i.slice(1,i.length).map((function(e){return e.bufferView})),i=i[0]),n.texturesToCreate.enqueue({id:t,image:i,bufferView:i.bufferView,width:i.width,height:i.height,internalFormat:i.internalFormat,mipLevels:r})}}Be.prototype.applyArticulations=function(){const e=this._runtime.articulationsByName;for(const t in e)if(e.hasOwnProperty(t)){const i=e[t];if(i.isDirty){i.isDirty=!1;const e=i.nodes.length;for(let t=0;t<e;++t){const e=i.nodes[t];let n=O.Z.clone(e.originalMatrix,ze);const r=i.stages.length;for(let e=0;e<r;++e)n=Ve(i.stages[e],n);e.matrix=n}}}};const qe=/(^data:image\/ktx2)|(\.ktx2$)/i,je=new O.Z,We=function(){this.id=void 0,this.model=void 0,this.context=void 0};function Ke(e,t,i){const n=t._loadResources;let r=t.gltf.bufferViews[e];(0,m.Z)(r)||(r=n.createdBufferViews[e]);const o=L.Z.createVertexBuffer({context:i,typedArray:n.getBuffer(r),usage:N.Z.STATIC_DRAW});o.vertexArrayDestroyable=!1,t._rendererResources.buffers[e]=o,t._geometryByteLength+=o.sizeInBytes}We.prototype.set=function(e,t,i){this.id=e,this.model=t,this.context=i},We.prototype.execute=function(){Ke(this.id,this.model,this.context)};const Ye=function(){this.id=void 0,this.componentType=void 0,this.model=void 0,this.context=void 0};function Xe(e,t,i,n){const r=i._loadResources;let o=i.gltf.bufferViews[e];(0,m.Z)(o)||(o=r.createdBufferViews[e]);const s=L.Z.createIndexBuffer({context:n,typedArray:r.getBuffer(o),usage:N.Z.STATIC_DRAW,indexDatatype:t});s.vertexArrayDestroyable=!1,i._rendererResources.buffers[e]=s,i._geometryByteLength+=s.sizeInBytes}Ye.prototype.set=function(e,t,i,n){this.id=e,this.componentType=t,this.model=i,this.context=n},Ye.prototype.execute=function(){Xe(this.id,this.componentType,this.model,this.context)};const Je=new We,Qe=new Ye;function $e(e,t){const i=e._runtime.materialsById[t.material];if((0,m.Z)(i))return i._program}function et(e,t,i){let n;const r=i._programPrimitives[t];if(!(0,m.Z)(r))return e;let o,s;for(o in r)if(r.hasOwnProperty(o)&&(n=r[o],$e(i,n)===t))break;if(i._programPrimitives[t]=void 0,i.extensionsUsed.WEB3D_quantized_attributes)s=be.Z.modifyShaderForQuantizedAttributes(i.gltf,n,e),i._quantizedUniforms[t]=s.uniforms;else{const t=i._decodedData[o];if(!(0,m.Z)(t))return e;s=be.Z.modifyShaderForDracoQuantizedAttributes(i.gltf,n,e,t.attributes)}return s.shader}function tt(e,t,i){return(0,m.Z)(i)&&(e=i(e,t)),e}const it=function(){this.programToCreate=void 0,this.model=void 0,this.context=void 0};function nt(e,t,i){const n=e.programId,r=e.techniqueId,o=t._sourcePrograms[n],s=t._rendererResources.sourceShaders;let a=s[o.vertexShader];const c=s[o.fragmentShader],u=t._quantizedVertexShaders;if(t.extensionsUsed.WEB3D_quantized_attributes||t._dequantizeInShader){let e=u[n];(0,m.Z)(e)||(e=et(a,n,t),u[n]=e),a=e}const l=tt(a,n,t._vertexShaderLoaded);let h=tt(c,n,t._fragmentShaderLoaded);(0,m.Z)(t._uniformMapLoaded)||(h="uniform vec4 czm_pickColor;\n"+h);const d=t._imageBasedLightingFactor.x>0||t._imageBasedLightingFactor.y>0;if(d&&(h="#define USE_IBL_LIGHTING \n\n"+h),(0,m.Z)(t._lightColor)&&(h="#define USE_CUSTOM_LIGHT_COLOR \n\n"+h),("2.0"!==t._sourceVersion||t._sourceKHRTechniquesWebGL)&&(h=H.Z.replaceMain(h,"non_gamma_corrected_main"),h+="\nvoid main() { \n non_gamma_corrected_main(); \n gl_FragColor = czm_gammaCorrect(gl_FragColor); \n} \n"),Ae.Z.isSupported(i)){const e=(0,m.Z)(t._sphericalHarmonicCoefficients)||t._useDefaultSphericalHarmonics,i=(0,m.Z)(t._specularEnvironmentMapAtlas)&&t._specularEnvironmentMapAtlas.ready||t._useDefaultSpecularMaps;(e||i||d)&&(h="uniform mat3 gltf_iblReferenceFrameMatrix; \n"+h),(0,m.Z)(t._sphericalHarmonicCoefficients)?h="#define DIFFUSE_IBL \n#define CUSTOM_SPHERICAL_HARMONICS \nuniform vec3 gltf_sphericalHarmonicCoefficients[9]; \n"+h:t._useDefaultSphericalHarmonics&&(h="#define DIFFUSE_IBL \n"+h),(0,m.Z)(t._specularEnvironmentMapAtlas)&&t._specularEnvironmentMapAtlas.ready?h="#define SPECULAR_IBL \n#define CUSTOM_SPECULAR_IBL \nuniform sampler2D gltf_specularMap; \nuniform vec2 gltf_specularMapSize; \nuniform float gltf_maxSpecularLOD; \n"+h:t._useDefaultSpecularMaps&&(h="#define SPECULAR_IBL \n"+h)}(0,m.Z)(t._luminanceAtZenith)&&(h="#define USE_SUN_LUMINANCE \nuniform float gltf_luminanceAtZenith;\n"+h),ot(n,r,h,l,t,i)}function rt(e,t,i){const n=e.programId,r=e.techniqueId,o=t._sourcePrograms[n],s=t._rendererResources.sourceShaders,a=t._quantizedVertexShaders,c=t.clippingPlanes,u=Ne(t);let l=s[o.vertexShader];const h=s[o.fragmentShader];(t.extensionsUsed.WEB3D_quantized_attributes||t._dequantizeInShader)&&(l=a[n]);let d=h;Le(t)&&(d=Be._modifyShaderForColor(d)),u&&(d=function(e,t,i){return e=H.Z.replaceMain(e,"gltf_clip_main"),(e+=Be._getClippingFunction(t,i)+"\n")+"uniform highp sampler2D gltf_clippingPlanes; \nuniform mat4 gltf_clippingPlanesMatrix; \nuniform vec4 gltf_clippingPlanesEdgeStyle; \nvoid main() \n{ \n gltf_clip_main(); \n"+(0,ue.Z)("gltf_clippingPlanes","gltf_clippingPlanesMatrix","gltf_clippingPlanesEdgeStyle")+"} \n"}(d,c,i));const f=tt(l,n,t._vertexShaderLoaded);let p=tt(d,n,t._fragmentShaderLoaded);(0,m.Z)(t._uniformMapLoaded)||(p="uniform vec4 czm_pickColor;\n"+p);const _=t._imageBasedLightingFactor.x>0||t._imageBasedLightingFactor.y>0;if(_&&(p="#define USE_IBL_LIGHTING \n\n"+p),(0,m.Z)(t._lightColor)&&(p="#define USE_CUSTOM_LIGHT_COLOR \n\n"+p),("2.0"!==t._sourceVersion||t._sourceKHRTechniquesWebGL)&&(p=H.Z.replaceMain(p,"non_gamma_corrected_main"),p+="\nvoid main() { \n non_gamma_corrected_main(); \n gl_FragColor = czm_gammaCorrect(gl_FragColor); \n} \n"),Ae.Z.isSupported(i)){const e=(0,m.Z)(t._sphericalHarmonicCoefficients)||t._useDefaultSphericalHarmonics,i=(0,m.Z)(t._specularEnvironmentMapAtlas)&&t._specularEnvironmentMapAtlas.ready||t._useDefaultSpecularMaps;(e||i||_)&&(p="uniform mat3 gltf_iblReferenceFrameMatrix; \n"+p),(0,m.Z)(t._sphericalHarmonicCoefficients)?p="#define DIFFUSE_IBL \n#define CUSTOM_SPHERICAL_HARMONICS \nuniform vec3 gltf_sphericalHarmonicCoefficients[9]; \n"+p:t._useDefaultSphericalHarmonics&&(p="#define DIFFUSE_IBL \n"+p),(0,m.Z)(t._specularEnvironmentMapAtlas)&&t._specularEnvironmentMapAtlas.ready?p="#define SPECULAR_IBL \n#define CUSTOM_SPECULAR_IBL \nuniform sampler2D gltf_specularMap; \nuniform vec2 gltf_specularMapSize; \nuniform float gltf_maxSpecularLOD; \n"+p:t._useDefaultSpecularMaps&&(p="#define SPECULAR_IBL \n"+p)}(0,m.Z)(t._luminanceAtZenith)&&(p="#define USE_SUN_LUMINANCE \nuniform float gltf_luminanceAtZenith;\n"+p),ot(n,r,p,f,t,i)}function ot(e,t,i,n,r,o){const s=r._sourceTechniques[t],a=be.Z.createAttributeLocations(s,r._precreatedAttributes);r._rendererResources.programs[e]=z.Z.fromCache({context:o,vertexShaderSource:n,fragmentShaderSource:i,attributeLocations:a})}it.prototype.set=function(e,t,i){this.programToCreate=e,this.model=t,this.context=i},it.prototype.execute=function(){nt(this.programToCreate,this.model,this.context)};const st=new it;function at(e,t){return function(i){e.texturesToCreate.enqueue({id:t.id,image:i,bufferView:void 0}),--e.pendingBufferViewToImage}}const ct=function(){this.gltfTexture=void 0,this.model=void 0,this.context=void 0};function ut(e,t,i){const n=t.gltf.textures[e.id];let r=t._rendererResources.samplers[n.sampler];(0,m.Z)(r)||(r=new V.Z({wrapS:j.Z.REPEAT,wrapT:j.Z.REPEAT}));let o=!1;const s=t.gltf.materials,a=s.length;for(let t=0;t<a;++t){const i=s[t];if((0,m.Z)(i.extensions)&&(0,m.Z)(i.extensions.KHR_techniques_webgl)){const t=i.extensions.KHR_techniques_webgl.values;for(const i in t)if(t.hasOwnProperty(i)&&-1!==i.indexOf("Texture")){const n=t[i];if(n.index===e.id&&(0,m.Z)(n.extensions)&&(0,m.Z)(n.extensions.KHR_texture_transform)){o=!0;break}}}if(o)break}const c=r.wrapS,u=r.wrapT;let l=r.minificationFilter;o&&l!==q.Z.LINEAR&&l!==q.Z.NEAREST&&(l=l===q.Z.NEAREST_MIPMAP_NEAREST||l===q.Z.NEAREST_MIPMAP_LINEAR?q.Z.NEAREST:q.Z.LINEAR,r=new V.Z({wrapS:r.wrapS,wrapT:r.wrapT,minificationFilter:l,magnificationFilter:r.magnificationFilter}));const h=e.internalFormat,d=!((0,m.Z)(h)&&I.Z.isCompressedFormat(h)||l!==q.Z.NEAREST_MIPMAP_NEAREST&&l!==q.Z.NEAREST_MIPMAP_LINEAR&&l!==q.Z.LINEAR_MIPMAP_NEAREST&&l!==q.Z.LINEAR_MIPMAP_LINEAR),f=d||c===j.Z.REPEAT||c===j.Z.MIRRORED_REPEAT||u===j.Z.REPEAT||u===j.Z.MIRRORED_REPEAT;let p,_,Z=e.image;if((0,m.Z)(h)){p=!x.Z.isPowerOfTwo(e.width)||!x.Z.isPowerOfTwo(e.height),!i.webgl2&&I.Z.isCompressedFormat(h)&&p&&f&&console.warn("Compressed texture uses REPEAT or MIRRORED_REPEAT texture wrap mode and dimensions are not powers of two. The texture may be rendered incorrectly. See the Model.js constructor documentation for more information.");let t=r.minificationFilter;(0,m.Z)(e.mipLevels)||l!==q.Z.NEAREST_MIPMAP_NEAREST&&l!==q.Z.NEAREST_MIPMAP_LINEAR?(0,m.Z)(e.mipLevels)||l!==q.Z.LINEAR_MIPMAP_NEAREST&&l!==q.Z.LINEAR_MIPMAP_LINEAR||(t=q.Z.LINEAR):t=q.Z.NEAREST,r=new V.Z({wrapS:r.wrapS,wrapT:r.wrapT,minificationFilter:t,magnificationFilter:r.magnificationFilter}),_=new G.Z({context:i,source:{arrayBufferView:e.bufferView,mipLevels:e.mipLevels},width:e.width,height:e.height,pixelFormat:h,sampler:r})}else if((0,m.Z)(Z)){if(p=!x.Z.isPowerOfTwo(Z.width)||!x.Z.isPowerOfTwo(Z.height),f&&p){const e=document.createElement("canvas");e.width=x.Z.nextPowerOfTwo(Z.width),e.height=x.Z.nextPowerOfTwo(Z.height),e.getContext("2d").drawImage(Z,0,0,Z.width,Z.height,0,0,e.width,e.height),Z=e}_=new G.Z({context:i,source:Z,pixelFormat:n.internalFormat,pixelDatatype:n.type,sampler:r,flipY:!1,skipColorSpaceConversion:!0}),d&&_.generateMipmap()}(0,m.Z)(_)&&(t._rendererResources.textures[e.id]=_,t._texturesByteLength+=_.sizeInBytes)}ct.prototype.set=function(e,t,i){this.gltfTexture=e,this.model=t,this.context=i},ct.prototype.execute=function(){ut(this.gltfTexture,this.model,this.context)};const lt=new ct;function ht(e,t,i,n){return function(r){(0,m.Z)(n)&&(r=e.clampAnimations?n.clampTime(r):n.wrapTime(r),t[i]=n.evaluate(r,t[i]),t.dirtyNumber=e._maxDirtyNumber)}}function dt(e,t){const i=e._loadResources;if(!i.finishedBuffersCreation()||!i.finishedProgramCreation()||!i.createVertexArrays)return;i.createVertexArrays=!1;const n=e._rendererResources.buffers,r=e._rendererResources.vertexArrays,o=e.gltf,s=o.accessors;X.Z.mesh(o,(function(i,a){X.Z.meshPrimitive(i,(function(i,c){const u=[];let l;const h=function(e,t){const i=e._sourceTechniques,n={};let r,o;const s=e._runtime.materialsById[t.material];if(!(0,m.Z)(s))return n;const a=i[s._technique];if(!(0,m.Z)(a))return n;const c=a.attributes,u=e._rendererResources.programs[a.program]._attributeLocations;for(r in u)if(u.hasOwnProperty(r)){const e=c[r];(0,m.Z)(e)&&(o=u[r],n[e.semantic]=o)}const l=e._precreatedAttributes;if((0,m.Z)(l))for(r in l)l.hasOwnProperty(r)&&(o=u[r],n[r]=o);return n}(e,i),d=e._decodedData[a+".primitive."+c];let f,p;X.Z.meshPrimitiveAttribute(i,(function(e,t){if(l=h[t],(0,m.Z)(l)){if((0,m.Z)(d)){const e=d.attributes;if(e.hasOwnProperty(t)){const i=e[t];return void u.push({index:l,vertexBuffer:n[i.bufferView],componentsPerAttribute:i.componentsPerAttribute,componentDatatype:i.componentDatatype,normalize:i.normalized,offsetInBytes:i.byteOffset,strideInBytes:i.byteStride})}}const i=s[e],r=(0,m.Z)(i.normalized)&&i.normalized;u.push({index:l,vertexBuffer:n[i.bufferView],componentsPerAttribute:(0,$.Z)(i.type),componentDatatype:i.componentType,normalize:r,offsetInBytes:i.byteOffset,strideInBytes:(0,J.Z)(o,i)})}}));const _=e._precreatedAttributes;if((0,m.Z)(_))for(p in _)_.hasOwnProperty(p)&&(l=h[p],(0,m.Z)(l)&&(f=_[p],f.index=l,u.push(f)));let Z;if((0,m.Z)(i.indices)){let e=s[i.indices].bufferView;(0,m.Z)(d)&&(e=d.bufferView),Z=n[e]}r[a+".primitive."+c]=new W.Z({context:t,attributes:u,indexBuffer:Z})}))}))}const ft={MODEL:function(e,t,i){return function(){return i.computedMatrix}},VIEW:function(e,t,i){return function(){return e.view}},PROJECTION:function(e,t,i){return function(){return e.projection}},MODELVIEW:function(e,t,i){const n=new O.Z;return function(){return O.Z.multiplyTransformation(e.view,i.computedMatrix,n)}},CESIUM_RTC_MODELVIEW:function(e,t,i){const n=new O.Z;return function(){return O.Z.multiplyTransformation(e.view,i.computedMatrix,n),O.Z.setTranslation(n,t._rtcCenterEye,n)}},MODELVIEWPROJECTION:function(e,t,i){const n=new O.Z;return function(){return O.Z.multiplyTransformation(e.view,i.computedMatrix,n),O.Z.multiply(e._projection,n,n)}},MODELINVERSE:function(e,t,i){const n=new O.Z;return function(){return O.Z.inverse(i.computedMatrix,n)}},VIEWINVERSE:function(e,t){return function(){return e.inverseView}},PROJECTIONINVERSE:function(e,t,i){return function(){return e.inverseProjection}},MODELVIEWINVERSE:function(e,t,i){const n=new O.Z,r=new O.Z;return function(){return O.Z.multiplyTransformation(e.view,i.computedMatrix,n),O.Z.inverse(n,r)}},MODELVIEWPROJECTIONINVERSE:function(e,t,i){const n=new O.Z,r=new O.Z;return function(){return O.Z.multiplyTransformation(e.view,i.computedMatrix,n),O.Z.multiply(e._projection,n,n),O.Z.inverse(n,r)}},MODELINVERSETRANSPOSE:function(e,t,i){const n=new O.Z,r=new S.Z;return function(){return O.Z.inverse(i.computedMatrix,n),O.Z.getMatrix3(n,r),S.Z.transpose(r,r)}},MODELVIEWINVERSETRANSPOSE:function(e,t,i){const n=new O.Z,r=new O.Z,o=new S.Z;return function(){return O.Z.multiplyTransformation(e.view,i.computedMatrix,n),O.Z.inverse(n,r),O.Z.getMatrix3(r,o),S.Z.transpose(o,o)}},VIEWPORT:function(e,t,i){return function(){return e.viewportCartesian4}}};function pt(e){return be.Z.createUniformsForDracoQuantizedAttributes(e.attributes)}function mt(e,t){const i=$e(e,t),n=e._quantizedUniforms[i];return be.Z.createUniformsForQuantizedAttributes(e.gltf,t,n)}function _t(e){return function(){return e}}function Zt(e){return function(){return e.computedJointMatrices}}function gt(e){return function(){return e.weights}}function yt(e){return function(){return e.silhouetteColor}}function bt(e){return function(){return e.silhouetteSize}}function At(e){return function(){return e.color}}function wt(e){return function(){return e._clippingPlanesMatrix}}function vt(e){return function(){return e._iblReferenceFrameMatrix}}function Tt(e){return function(){const t=e.clippingPlanes;return(0,m.Z)(t)&&t.enabled?t.texture:e._defaultTexture}}function Ct(e){return function(){const t=e.clippingPlanes;if(!(0,m.Z)(t))return l.Z.WHITE.withAlpha(0);const i=l.Z.clone(t.edgeColor);return i.alpha=t.edgeWidth,i}}function Et(e){return function(){return se.Z.getColorBlend(e.colorBlendMode,e.colorBlendAmount)}}function xt(e){return function(){return e._imageBasedLightingFactor}}function St(e){return function(){return e._lightColor}}function Ot(e){return function(){return e.luminanceAtZenith}}function It(e){return function(){return e._sphericalHarmonicCoefficients}}function Dt(e){return function(){return e._specularEnvironmentMapAtlas.texture}}function Pt(e){return function(){return e._specularEnvironmentMapAtlas.texture.dimensions}}function Rt(e){return function(){return e._specularEnvironmentMapAtlas.maximumMipmapLevel}}function Bt(e,t){switch(e.mode){case D.Z.TRIANGLES:return t/3;case D.Z.TRIANGLE_STRIP:case D.Z.TRIANGLE_FAN:return Math.max(t-2,0);default:return 0}}function Mt(e,t,i,r,s){const a=e._nodeCommands,c=e._pickIds,u=e.allowPicking,l=e._runtime.meshesByName,d=e._rendererResources,f=d.vertexArrays,p=d.programs,_=d.renderStates,Z=e._uniformMaps,g=e.gltf,y=g.accessors,b=g.meshes,A=t.mesh,w=b[A],v=w.primitives,C=v.length;for(let t=0;t<C;++t){const d=v[t],b=y[d.indices],C=e._runtime.materialsById[d.material]._program,E=e._decodedData[A+".primitive."+t];let x;const S=d.attributes.POSITION;if((0,m.Z)(S)){const e=be.Z.getAccessorMinMax(g,S);x=n.Z.fromCornerPoints(o.Z.fromArray(e.min),o.Z.fromArray(e.max))}const I=f[A+".primitive."+t];let P,R;(0,m.Z)(E)?(R=E.numberOfIndices,P=0):(0,m.Z)(b)?(R=b.count,P=b.byteOffset/T.Z.getSizeInBytes(b.componentType)):(R=y[d.attributes.POSITION].count,P=0),e._trianglesLength+=Bt(d,R),d.mode===D.Z.POINTS&&(e._pointsLength+=R);const B=Z[d.material];let M=B.uniformMap;if((0,m.Z)(B.jointMatrixUniformName)){const e={};e[B.jointMatrixUniformName]=Zt(i),M=(0,h.Z)(M,e)}if((0,m.Z)(B.morphWeightsUniformName)){const e={};e[B.morphWeightsUniformName]=gt(i),M=(0,h.Z)(M,e)}M=(0,h.Z)(M,{gltf_color:At(e),gltf_colorBlend:Et(e),gltf_clippingPlanes:Tt(e),gltf_clippingPlanesEdgeStyle:Ct(e),gltf_clippingPlanesMatrix:wt(e),gltf_iblReferenceFrameMatrix:vt(e),gltf_iblFactor:xt(e),gltf_lightColor:St(e),gltf_sphericalHarmonicCoefficients:It(e),gltf_specularMap:Dt(e),gltf_specularMapSize:Pt(e),gltf_maxSpecularLOD:Rt(e),gltf_luminanceAtZenith:Ot(e)}),(0,m.Z)(e._uniformMapLoaded)&&(M=e._uniformMapLoaded(M,C,i));let L={};e.extensionsUsed.WEB3D_quantized_attributes?L=mt(e,d):e._dequantizeInShader&&(0,m.Z)(E)&&(L=pt(E)),M=(0,h.Z)(M,L);const N=_[d.material],U=N.blending.enabled;let V=e._pickObject;(0,m.Z)(V)||(V={primitive:e,id:e.id,node:i.publicNode,mesh:l[w.name]});const z=Ce.Z.castShadows(e._shadows),H=Ce.Z.receiveShadows(e._shadows);let G;if(u&&!(0,m.Z)(e._uniformMapLoaded)){G=r.createPickId(V),c.push(G);const e={czm_pickColor:_t(G.color)};M=(0,h.Z)(M,e)}u&&(G=(0,m.Z)(e._pickIdLoaded)&&(0,m.Z)(e._uniformMapLoaded)?e._pickIdLoaded():"czm_pickColor");const q=new F.Z({boundingVolume:new n.Z,cull:e.cull,modelMatrix:new O.Z,primitiveType:d.mode,vertexArray:I,count:R,offset:P,shaderProgram:p[C],castShadows:z,receiveShadows:H,uniformMap:M,renderState:N,owner:V,pass:U?k.Z.TRANSLUCENT:e.opaquePass,pickId:G});let j;s||(j=F.Z.shallowClone(q),j.boundingVolume=new n.Z,j.modelMatrix=new O.Z);const W={show:!0,boundingSphere:x,command:q,command2D:j,silhouetteModelCommand:void 0,silhouetteModelCommand2D:void 0,silhouetteColorCommand:void 0,silhouetteColorCommand2D:void 0,translucentCommand:void 0,translucentCommand2D:void 0,disableCullingCommand:void 0,disableCullingCommand2D:void 0,programId:C};i.commands.push(W),a.push(W)}}function Lt(e,t){const i=t.context,n=t.scene3DOnly,r=e._quantizedVertexShaders,s=e._sourceTechniques,a=e._sourcePrograms,c=e._rendererResources;let u=c.sourceShaders;e._loadRendererResourcesFromCache&&(u=c.sourceShaders=e._cachedRendererResources.sourceShaders);for(const t in s)if(s.hasOwnProperty(t)){const n=s[t].program,o=a[n];let c=u[o.vertexShader];if(be.Z.checkSupportedGlExtensions(o.glExtensions,i),e.extensionsUsed.WEB3D_quantized_attributes||e._dequantizeInShader){let t=r[n];(0,m.Z)(t)||(t=et(c,n,e),r[n]=t),c=t}c=tt(c,n,e._vertexShaderLoaded)}if(e._loadRendererResourcesFromCache){const t=e._cachedRendererResources;c.buffers=t.buffers,c.vertexArrays=t.vertexArrays,c.programs=t.programs,c.silhouettePrograms=t.silhouettePrograms,c.textures=t.textures,c.samplers=t.samplers,c.renderStates=t.renderStates,(0,m.Z)(e._precreatedAttributes)&&dt(e,i),e._cachedGeometryByteLength+=function(e){let t=0;for(const i in e)e.hasOwnProperty(i)&&(t+=e[i].sizeInBytes);return t}(t.buffers),e._cachedTexturesByteLength+=function(e){let t=0;for(const i in e)e.hasOwnProperty(i)&&(t+=e[i].sizeInBytes);return t}(t.textures)}else!function(e,t){const i=e._loadResources;if(0!==i.pendingBufferLoads)return;const n=t.context,r=i.vertexBuffersToCreate,o=i.indexBuffersToCreate;let s;if(e.asynchronous){for(;r.length>0&&(Je.set(r.peek(),e,n),t.jobScheduler.execute(Je,de.Z.BUFFER));)r.dequeue();for(;o.length>0&&(s=o.peek(),Qe.set(s.id,s.componentType,e,n),t.jobScheduler.execute(Qe,de.Z.BUFFER));)o.dequeue()}else{for(;r.length>0;)Ke(r.dequeue(),e,n);for(;o.length>0;)s=o.dequeue(),Xe(s.id,s.componentType,e,n)}}(e,t),function(e,t){const i=e._loadResources,n=i.programsToCreate;if(0!==i.pendingShaderLoads)return;if(0!==i.pendingBufferLoads)return;const r=t.context;if(e.asynchronous)for(;n.length>0&&(st.set(n.peek(),e,r),t.jobScheduler.execute(st,de.Z.PROGRAM));)n.dequeue();else for(;n.length>0;)nt(n.dequeue(),e,r)}(e,t),function(e){const t=e._loadResources;if(t.createSamplers){t.createSamplers=!1;const i=e._rendererResources.samplers;X.Z.sampler(e.gltf,(function(e,t){i[t]=new V.Z({wrapS:e.wrapS,wrapT:e.wrapT,minificationFilter:e.minFilter,magnificationFilter:e.magFilter})}))}}(e),function(e){const t=e._loadResources;if(0===t.pendingBufferLoads)for(;t.texturesToCreateFromBufferView.length>0;){const i=t.texturesToCreateFromBufferView.dequeue(),n=e.gltf,r=n.bufferViews[i.bufferView],o=(n.textures[i.id].source,be.Z.getFailedLoadFunction(e,"image","id: "+i.id+", bufferView: "+i.bufferView));if("image/ktx2"===i.mimeType){const n=new Uint8Array(t.getBuffer(r));(0,E.Z)(n).then(Ge(e,i.id)).otherwise(o),++e._loadResources.pendingTextureLoads}else{const e=at(t,i);(0,C.Z)({uint8Array:t.getBuffer(r),format:i.mimeType,flipY:!1,skipColorSpaceConversion:!0}).then(e).otherwise(o),++t.pendingBufferViewToImage}}}(e),function(e,t){const i=t.context,n=e._loadResources.texturesToCreate;if(e.asynchronous)for(;n.length>0&&(lt.set(n.peek(),e,i),t.jobScheduler.execute(lt,de.Z.TEXTURE));)n.dequeue();else for(;n.length>0;)ut(n.dequeue(),e,i)}(e,t);!function(e){const t=e._loadResources;if(0!==t.pendingBufferLoads)return;if(!t.createSkins)return;t.createSkins=!1;const i=e.gltf,n=i.accessors,r={};X.Z.skin(i,(function(t,i){const o=n[t.inverseBindMatrices];let s;O.Z.equals(t.bindShapeMatrix,O.Z.IDENTITY)||(s=O.Z.clone(t.bindShapeMatrix)),r[i]={inverseBindMatrices:fe.Z.getSkinInverseBindMatrices(e,o),bindShapeMatrix:s}})),function(e,t){const i=e.gltf,n=i.skins,r=i.nodes,o=e._runtime.nodes,s=e._loadResources.skinnedNodesIds,a=s.length;for(let e=0;e<a;++e){const i=s[e],a=o[i],c=r[i],u=t[c.skin];a.inverseBindMatrices=u.inverseBindMatrices,a.bindShapeMatrix=u.bindShapeMatrix;const l=n[c.skin].joints,h=l.length;for(let e=0;e<h;++e){const t=o[l[e]];a.joints.push(t)}}}(e,r)}(e),function(e){const t=e._loadResources;if(!t.finishedPendingBufferLoads())return;if(!t.createRuntimeAnimations)return;t.createRuntimeAnimations=!1,e._runtime.animations=[];const i=e._runtime.nodes,n=e.gltf.accessors;X.Z.animation(e.gltf,(function(t,r){const o=t.channels,s=t.samplers;let a=Number.MAX_VALUE,c=-Number.MAX_VALUE;const u=o.length,l=new Array(u);for(let h=0;h<u;++h){const u=o[h],d=u.target,f=d.path,p=s[u.sampler],m=fe.Z.getAnimationParameterValues(e,n[p.input]),_=fe.Z.getAnimationParameterValues(e,n[p.output]);a=Math.min(a,m[0]),c=Math.max(c,m[m.length-1]);const Z=fe.Z.getAnimationSpline(e,r,t,u.sampler,p,m,f,_);l[h]=ht(e,i[d.node],d.path,Z)}e._runtime.animations[r]={name:t.name,startTime:a,stopTime:c,channelEvaluators:l}}))}(e),e._loadRendererResourcesFromCache||(dt(e,i),function(e){const t=e._loadResources;t.createRenderStates&&(t.createRenderStates=!1,X.Z.material(e.gltf,(function(t,i){!function(e,t,i){const n=e._rendererResources.renderStates;let r=[M.Z.FUNC_ADD,M.Z.FUNC_ADD],o=[M.Z.ONE,M.Z.ONE_MINUS_SRC_ALPHA,M.Z.ONE,M.Z.ONE_MINUS_SRC_ALPHA];(0,m.Z)(t.extensions)&&(0,m.Z)(t.extensions.KHR_blend)&&(r=t.extensions.KHR_blend.blendEquation,o=t.extensions.KHR_blend.blendFactors);const s=!t.doubleSided,a="BLEND"===t.alphaMode;n[i]=U.Z.fromCache({cull:{enabled:s},depthTest:{enabled:!0,func:ae.Z.LESS_OR_EQUAL},depthMask:!a,blending:{enabled:a,equationRgb:r[0],equationAlpha:r[1],functionSourceRgb:o[0],functionDestinationRgb:o[1],functionSourceAlpha:o[2],functionDestinationAlpha:o[3]}})}(e,t,i)})))}(e)),function(e,t){const i=e._loadResources;if(!i.finishedProgramCreation())return;if(!i.createUniformMaps)return;i.createUniformMaps=!1;const n=e.gltf,r=e._sourceTechniques,o=e._uniformMaps,s=e._rendererResources.textures,a=e._defaultTexture;X.Z.material(n,(function(i,n){const c=e._runtime.materialsById[n],u=r[c._technique],l=c._values,h=function(e,t,i,n,r,o,s){const a={},c={};let u,l;return X.Z.techniqueUniform(i,(function(i,h){let d;if((0,m.Z)(n)&&(0,m.Z)(n[h]))d=be.Z.createUniformFunction(i.type,n[h],o,s),a[h]=d.func,c[h]=d;else if((0,m.Z)(i.node))a[h]=function(e,t,i,n){const r=t._runtime.nodes[e];return ft[i](n,t,r)}(i.node,e,i.semantic,r.uniformState);else if((0,m.Z)(i.semantic))if("JOINTMATRIX"===i.semantic)u=h;else if("MORPHWEIGHTS"===i.semantic)l=h;else if("ALPHACUTOFF"===i.semantic){const e=t.alphaMode;if((0,m.Z)(e)&&"MASK"===e){const e=(0,p.Z)(t.alphaCutoff,.5);d=be.Z.createUniformFunction(i.type,e,o,s),a[h]=d.func,c[h]=d}}else a[h]=be.Z.getGltfSemanticUniforms()[i.semantic](r.uniformState,e);else if((0,m.Z)(i.value)){const e=be.Z.createUniformFunction(i.type,i.value,o,s);a[h]=e.func,c[h]=e}})),{map:a,values:c,jointMatrixUniformName:u,morphWeightsUniformName:l}}(e,i,u,l,t,s,a),d=o[n];if(d.uniformMap=h.map,d.values=h.values,d.jointMatrixUniformName=h.jointMatrixUniformName,d.morphWeightsUniformName=h.morphWeightsUniformName,(0,m.Z)(u.attributes.a_outlineCoordinates)){const i=ye.Z.createTexture(e,t);d.uniformMap.u_outlineTexture=function(){return i}}}))}(e,i),function(e,t,i){const n=e._loadResources;if(!n.finishedEverythingButTextureCreation())return;if(!n.createRuntimeNodes)return;n.createRuntimeNodes=!1;const r=[],s=e._runtime.nodes,a=e.gltf,c=a.nodes,u=a.scenes[a.scene].nodes,l=u.length,h=[],d={};for(let n=0;n<l;++n)for(h.push({parentRuntimeNode:void 0,gltfNode:c[u[n]],id:u[n]});h.length>0;){const n=h.pop();d[n.id]=!0;const a=n.parentRuntimeNode,u=n.gltfNode,l=s[n.id];if(0===l.parents.length)if((0,m.Z)(u.matrix))l.matrix=O.Z.fromColumnMajorArray(u.matrix);else{const e=u.rotation;l.translation=o.Z.fromArray(u.translation),l.rotation=P.Z.unpack(e),l.scale=o.Z.fromArray(u.scale)}(0,m.Z)(a)?(a.children.push(l),l.parents.push(a)):r.push(l),(0,m.Z)(u.mesh)&&Mt(e,u,l,t,i);const f=u.children;if((0,m.Z)(f)){const e=f.length;for(let t=0;t<e;t++){const e=f[t];d[e]||h.push({parentRuntimeNode:l,gltfNode:c[e],id:f[t]})}}}e._runtime.rootNodes=r,e._runtime.nodes=s}(e,i,n)}function Nt(e,t){const i=e.publicNode,n=i.matrix;i.useMatrix&&(0,m.Z)(n)?O.Z.clone(n,t):(0,m.Z)(e.matrix)?O.Z.clone(e.matrix,t):(O.Z.fromTranslationQuaternionRotationScale(e.translation,e.rotation,e.scale,t),i.setMatrix(t))}const Ft=[],kt=new s.Z,Ut=new O.Z;let Vt=new O.Z;function zt(e,t){const i=F.Z.shallowClone(t);return i.pass=k.Z.TRANSLUCENT,i.renderState=function(e,t){const i=(0,u.Z)(t,!0);return i.cull.enabled=!1,i.depthTest.enabled=!0,i.depthMask=!1,i.blending=re.Z.ALPHA_BLEND,e.opaquePass===k.Z.CESIUM_3D_TILE&&(i.stencilTest=Ee.Z.setCesium3DTileBit(),i.stencilMask=Ee.Z.CESIUM_3D_TILE_MASK),U.Z.fromCache(i)}(e,t.renderState),i}function Ht(e,t,i){const n=t.scene3DOnly,r=e.color.alpha;if(r>0&&r<1){const t=e._nodeCommands,r=t.length;if(r>0&&(!(0,m.Z)(t[0].translucentCommand)||i))for(let i=0;i<r;++i){const r=t[i],o=r.command;if(r.translucentCommand=zt(e,o),!n){const t=r.command2D;r.translucentCommand2D=zt(e,t)}}}}function Gt(e){const t=F.Z.shallowClone(e);return t.renderState=function(e){const t=(0,u.Z)(e,!0);return t.cull.enabled=!1,U.Z.fromCache(t)}(e.renderState),t}function qt(e,t,i){const n=t.scene3DOnly;if(!e.backFaceCulling){const t=e._nodeCommands,r=t.length;if(r>0&&(!(0,m.Z)(t[0].disableCullingCommand)||i))for(let e=0;e<r;++e){const i=t[e],r=i.command;if(i.disableCullingCommand=Gt(r),!n){const e=i.command2D;i.disableCullingCommand2D=Gt(e)}}}}function jt(e,t){const i=e._rendererResources.programs;for(const e in i)if(i.hasOwnProperty(e)&&i[e]===t)return e}function Wt(e,t,i){let n=t.vertexShaderSource.sources[0];const r=t._attributeLocations,o=e._normalAttributeName;return n=H.Z.replaceMain(n,"gltf_silhouette_main"),n+="uniform float gltf_silhouetteSize; \nvoid main() \n{ \n gltf_silhouette_main(); \n vec3 n = normalize(czm_normal3D * "+o+"); \n n.x *= czm_projection[0][0]; \n n.y *= czm_projection[1][1]; \n vec4 clip = gl_Position; \n clip.xy += n.xy * clip.w * gltf_silhouetteSize * czm_pixelRatio / czm_viewport.z; \n gl_Position = clip; \n}",z.Z.fromCache({context:i.context,vertexShaderSource:n,fragmentShaderSource:"uniform vec4 gltf_silhouetteColor; \nvoid main() \n{ \n gl_FragColor = czm_gammaCorrect(gltf_silhouetteColor); \n}",attributeLocations:r})}function Kt(e,t){return Me(t.context)&&e.silhouetteSize>0&&e.silhouetteColor.alpha>0&&(0,m.Z)(e._normalAttributeName)}function Yt(e){return e.color.alpha>0&&e.color.alpha<1}function Xt(e){return 0===e.color.alpha}function Jt(e,t){return Math.floor(e)!==Math.floor(t)||Math.ceil(e)!==Math.ceil(t)}let Qt=0;function $t(e,t,i){if(!Kt(e,t))return;const n=e._nodeCommands,r=n.length>0&&(Jt(e.color.alpha,e._colorPreviousAlpha)||Jt(e.silhouetteColor.alpha,e._silhouetteColorPreviousAlpha)||!(0,m.Z)(n[0].silhouetteModelCommand));e._colorPreviousAlpha=e.color.alpha,e._silhouetteColorPreviousAlpha=e.silhouetteColor.alpha,(r||i)&&function(e,t){const i=++Qt%255,n=function(e){const t=e._nodeCommands,i=t.length;for(let e=0;e<i;++e)if(t[e].command.pass===k.Z.TRANSLUCENT)return!0;return!1}(e)||Yt(e)||e.silhouetteColor.alpha<1,r=e._rendererResources.silhouettePrograms,o=t.scene3DOnly,s=e._nodeCommands,a=s.length;for(let c=0;c<a;++c){const a=s[c],l=a.command,d=Yt(e)?a.translucentCommand:l,f=F.Z.shallowClone(d);let p=(0,u.Z)(d.renderState);p.stencilTest={enabled:!0,frontFunction:M.Z.ALWAYS,backFunction:M.Z.ALWAYS,reference:i,mask:-1,frontOperation:{fail:M.Z.KEEP,zFail:M.Z.KEEP,zPass:M.Z.REPLACE},backOperation:{fail:M.Z.KEEP,zFail:M.Z.KEEP,zPass:M.Z.REPLACE}},Xt(e)&&(p.colorMask={red:!1,green:!1,blue:!1,alpha:!1},p.depthMask=!1),p=U.Z.fromCache(p),f.renderState=p,a.silhouetteModelCommand=f;const _=F.Z.shallowClone(l);p=(0,u.Z)(l.renderState,!0),p.depthTest.enabled=!0,p.cull.enabled=!1,n&&(_.pass=k.Z.TRANSLUCENT,p.depthMask=!1,p.blending=re.Z.ALPHA_BLEND),p.stencilTest={enabled:!0,frontFunction:M.Z.NOTEQUAL,backFunction:M.Z.NOTEQUAL,reference:i,mask:-1,frontOperation:{fail:M.Z.KEEP,zFail:M.Z.KEEP,zPass:M.Z.KEEP},backOperation:{fail:M.Z.KEEP,zFail:M.Z.KEEP,zPass:M.Z.KEEP}},p=U.Z.fromCache(p);const Z=l.shaderProgram,g=jt(e,Z);let y=r[g];(0,m.Z)(y)||(y=Wt(e,Z,t),r[g]=y);const b=(0,h.Z)(l.uniformMap,{gltf_silhouetteColor:yt(e),gltf_silhouetteSize:bt(e)});if(_.renderState=p,_.shaderProgram=y,_.uniformMap=b,_.castShadows=!1,_.receiveShadows=!1,a.silhouetteColorCommand=_,!o){const e=a.command2D,t=F.Z.shallowClone(f);t.boundingVolume=e.boundingVolume,t.modelMatrix=e.modelMatrix,a.silhouetteModelCommand2D=t;const i=F.Z.shallowClone(_);t.boundingVolume=e.boundingVolume,t.modelMatrix=e.modelMatrix,a.silhouetteColorCommand2D=i}}}(e,t)}const ei=new n.Z,ti=new o.Z,ii=new a.Z;function ni(e){(0,m.Z)(e._cacheKey)&&(0,m.Z)(e._cachedGltf)&&0==--e._cachedGltf.count&&delete Pe[e._cacheKey],e._cachedGltf=void 0}function ri(e,t){this.buffers=void 0,this.vertexArrays=void 0,this.programs=void 0,this.sourceShaders=void 0,this.silhouettePrograms=void 0,this.textures=void 0,this.samplers=void 0,this.renderStates=void 0,this.ready=!1,this.context=e,this.cacheKey=t,this.count=0}function oi(e){for(const t in e)e.hasOwnProperty(t)&&e[t].destroy()}function si(e,t,i){return function(n){if(e.heightReference===he.Z.RELATIVE_TO_GROUND){const e=t.cartesianToCartographic(n,ii);e.height+=i.height,t.cartographicToCartesian(e,n)}const r=e._clampedModelMatrix;O.Z.clone(e.modelMatrix,r),r[12]=n.x,r[13]=n.y,r[14]=n.z,e._heightChanged=!0}}ri.prototype.release=function(){if(0==--this.count)return(0,m.Z)(this.cacheKey)&&delete this.context.cache.modelRendererResourceCache[this.cacheKey],oi((e=this).buffers),oi(e.vertexArrays),oi(e.programs),oi(e.silhouettePrograms),oi(e.textures),(0,_.Z)(this);var e};const ai=new o.Z,ci=new a.Z,ui=new O.Z,li=new O.Z,hi=new S.Z;function di(e,t){e.programs!==t.programs&&oi(e.programs),e.silhouettePrograms!==t.silhouettePrograms&&oi(e.silhouettePrograms)}Be.prototype.update=function(e){if(e.mode===Te.Z.MORPHING)return;if(!y.Z.supportsWebP.initialized)return void y.Z.supportsWebP.initialize();const t=e.context;this._defaultTexture=t.defaultTexture;const i=y.Z.supportsWebP();if(this._state===Se.NEEDS_LOAD&&(0,m.Z)(this.gltf)){let i;const n=this.cacheKey;if((0,m.Z)(n)){t.cache.modelRendererResourceCache=(0,p.Z)(t.cache.modelRendererResourceCache,{});const e=t.cache.modelRendererResourceCache;if(i=e[this.cacheKey],(0,m.Z)(i)){if(!i.ready)return;++i.count,this._loadRendererResourcesFromCache=!0}else i=new ri(t,n),i.count=1,e[this.cacheKey]=i;this._cachedRendererResources=i}else i=new ri(t),i.count=1,this._cachedRendererResources=i;if(this._state=Se.LOADING,this._state!==Se.FAILED){const t=this.gltf.extensions;if((0,m.Z)(t)&&(0,m.Z)(t.CESIUM_RTC)){const i=o.Z.fromArray(t.CESIUM_RTC.center);if(!o.Z.equals(i,o.Z.ZERO)){this._rtcCenter3D=i;const t=e.mapProjection,n=t.ellipsoid.cartesianToCartographic(this._rtcCenter3D),r=t.project(n);o.Z.fromElements(r.z,r.x,r.y,r),this._rtcCenter2D=r,this._rtcCenterEye=new o.Z,this._rtcCenter=this._rtcCenter3D}}(0,Y.Z)(this.gltf),this._loadResources=new me.Z,this._loadRendererResourcesFromCache||be.Z.parseBuffers(this,He)}}const r=this._loadResources,c=this._incrementallyLoadTextures;let l=!1;if(this._state===Se.LOADING){if(0===r.pendingBufferLoads){if(!r.initialized){if(e.brdfLutGenerator.update(e),be.Z.checkSupportedExtensions(this.extensionsRequired,i),be.Z.updateForwardAxis(this),!(0,m.Z)(this.gltf.extras.sourceVersion)){const e=this.gltf;e.extras.sourceVersion=be.Z.getAssetVersion(e),e.extras.sourceKHRTechniquesWebGL=(0,m.Z)(be.Z.getUsedExtensions(e).KHR_techniques_webgl),this._sourceVersion=e.extras.sourceVersion,this._sourceKHRTechniquesWebGL=e.extras.sourceKHRTechniquesWebGL,(0,te.Z)(e),(0,K.Z)(e);const t={addBatchIdToGeneratedShaders:this._addBatchIdToGeneratedShaders};(0,we.Z)(e,t),(0,ve.Z)(e,t)}this._sourceVersion=this.gltf.extras.sourceVersion,this._sourceKHRTechniquesWebGL=this.gltf.extras.sourceKHRTechniquesWebGL,this._dequantizeInShader=this._dequantizeInShader&&ce.Z.hasExtension(this),function(e){const t=e.gltf,i=e._loadResources;X.Z.buffer(t,(function(e,t){i.buffers[t]=e.extras._pipeline.source}))}(this),function(e){const t={},i={},n={};e._runtime.articulationsByName=t,e._runtime.articulationsByStageKey=i,e._runtime.stagesByKey=n;const r=e.gltf;if(!(0,Q.Z)(r,"AGI_articulations")||!(0,m.Z)(r.extensions)||!(0,m.Z)(r.extensions.AGI_articulations))return;const o=r.extensions.AGI_articulations.articulations;if(!(0,m.Z)(o))return;const s=o.length;for(let e=0;e<s;++e){const r=(0,u.Z)(o[e]);r.nodes=[],r.isDirty=!0,t[r.name]=r;const s=r.stages.length;for(let e=0;e<s;++e){const t=r.stages[e];t.currentValue=t.initialValue;const o=r.name+" "+t.name;i[o]=r,n[o]=t}}}(this),function(e){const t=e.gltf;if(!(0,Q.Z)(t,"KHR_techniques_webgl"))return;const i=e._sourcePrograms,n=e._sourceTechniques,r=t.extensions.KHR_techniques_webgl.programs;X.Z.technique(t,(function(e,t){n[t]=(0,u.Z)(e);const o=e.program;(0,m.Z)(i[o])||(i[o]=(0,u.Z)(r[o]))}))}(this),this._loadRendererResourcesFromCache||(function(e){const t=e.gltf.bufferViews,i=e._loadResources.vertexBuffersToCreate;X.Z.bufferView(e.gltf,(function(e,t){e.target===M.Z.ARRAY_BUFFER&&i.enqueue(t)}));const n=e._loadResources.indexBuffersToCreate,r={};X.Z.accessor(e.gltf,(function(e){const i=e.bufferView;(0,m.Z)(i)&&(t[i].target!==M.Z.ELEMENT_ARRAY_BUFFER||(0,m.Z)(r[i])||(r[i]=!0,n.enqueue({id:i,componentType:e.componentType})))}))}(this),function(e){const t=e.gltf,i=t.buffers,n=t.bufferViews,r=e._rendererResources.sourceShaders;X.Z.shader(t,(function(t,o){if((0,m.Z)(t.bufferView)){const e=t.bufferView,s=n[e],a=s.buffer,c=i[a],u=(0,v.Z)(c.extras._pipeline.source,s.byteOffset,s.byteLength);r[o]=u}else if((0,m.Z)(t.extras._pipeline.source))r[o]=t.extras._pipeline.source;else{++e._loadResources.pendingShaderLoads;const i=e._resource.getDerivedResource({url:t.uri});i.fetchText().then(function(e,t,i){return function(n){const r=e._loadResources;r.shaders[i]={source:n,type:t,bufferView:void 0},--r.pendingShaderLoads,e._rendererResources.sourceShaders[i]=n}}(e,t.type,o)).otherwise(be.Z.getFailedLoadFunction(e,"shader",i.url))}}))}(this),function(e){const t=e._sourceTechniques;for(const i in t)if(t.hasOwnProperty(i)){const n=t[i];e._loadResources.programsToCreate.enqueue({programId:n.program,techniqueId:i})}}(this),function(e,t,i){const n=e.gltf,r=n.images;let o;X.Z.texture(n,(function(n,s){let a=n.source;(0,m.Z)(n.extensions)&&(0,m.Z)(n.extensions.EXT_texture_webp)&&i?a=n.extensions.EXT_texture_webp.source:(0,m.Z)(n.extensions)&&(0,m.Z)(n.extensions.KHR_texture_basisu)&&t.supportsBasis&&(a=n.extensions.KHR_texture_basisu.source);const c=r[a],u=c.bufferView,l=c.mimeType;if(o=c.uri,(0,m.Z)(u))e._loadResources.texturesToCreateFromBufferView.enqueue({id:s,image:void 0,bufferView:u,mimeType:l});else{++e._loadResources.pendingTextureLoads;const t=e._resource.getDerivedResource({url:o});let i;i=qe.test(o)?(0,E.Z)(t):t.fetchImage({skipColorSpaceConversion:!0,preferImageBitmap:!0}),i.then(Ge(e,s)).otherwise(be.Z.getFailedLoadFunction(e,"image",t.url))}}))}(this,t,i)),function(e){const t=e.gltf,i=e._sourceTechniques,n={},r={},o=e._uniformMaps;X.Z.material(t,(function(t,s){o[s]={uniformMap:void 0,values:void 0,jointMatrixUniformName:void 0,morphWeightsUniformName:void 0};const a=new _e.Z(e,t,s);if((0,m.Z)(t.extensions)&&(0,m.Z)(t.extensions.KHR_techniques_webgl)){const e=t.extensions.KHR_techniques_webgl.technique;a._technique=e,a._program=i[e].program,X.Z.materialValue(t,(function(e,t){(0,m.Z)(a._values)||(a._values={}),a._values[t]=(0,u.Z)(e)}))}n[t.name]=a,r[s]=a})),e._runtime.materialsByName=n,e._runtime.materialsById=r}(this),function(e){const t={},i=e._runtime.materialsById;X.Z.mesh(e.gltf,(function(n,r){t[n.name]=new Ze.Z(n,i,r),((0,m.Z)(e.extensionsUsed.WEB3D_quantized_attributes)||e._dequantizeInShader)&&X.Z.meshPrimitive(n,(function(t,i){const n=$e(e,t);let o=e._programPrimitives[n];(0,m.Z)(o)||(o={},e._programPrimitives[n]=o),o[r+".primitive."+i]=t}))})),e._runtime.meshesByName=t}(this),function(e){const t={},i={},n=[],r=e._loadResources.skinnedNodesIds,o=e._runtime.articulationsByName;X.Z.node(e.gltf,(function(s,a){const c={matrix:void 0,translation:void 0,rotation:void 0,scale:void 0,computedShow:!0,transformToRoot:new O.Z,computedMatrix:new O.Z,dirtyNumber:0,commands:[],inverseBindMatrices:void 0,bindShapeMatrix:void 0,joints:[],computedJointMatrices:[],jointName:s.jointName,weights:[],children:[],parents:[],publicNode:void 0};if(c.publicNode=new ge.Z(e,s,c,a,be.Z.getTransform(s)),t[a]=c,i[s.name]=c,(0,m.Z)(s.skin)&&(r.push(a),n.push(c)),(0,m.Z)(s.extensions)&&(0,m.Z)(s.extensions.AGI_articulations)){const e=s.extensions.AGI_articulations.articulationName;if((0,m.Z)(e)){let t=O.Z.clone(c.publicNode.originalMatrix,je);const i=o[e];i.nodes.push(c.publicNode);const n=i.stages.length;for(let e=0;e<n;++e)t=Ve(i.stages[e],t);c.publicNode.matrix=t}}})),e._runtime.nodes=t,e._runtime.nodesByName=i,e._runtime.skinnedNodes=n}(this),ce.Z.parse(this,t),r.initialized=!0}r.finishedDecoding()||ce.Z.decodeModel(this,t).otherwise(be.Z.getFailedLoadFunction(this,"model",this.basePath)),r.finishedDecoding()&&!r.resourcesParsed&&(this._boundingSphere=be.Z.computeBoundingSphere(this),this._initialRadius=this._boundingSphere.radius,ce.Z.cacheDataForModel(this),r.resourcesParsed=!0),r.resourcesParsed&&0===r.pendingShaderLoads&&(this.showOutline&&ye.Z.outlinePrimitives(this),Lt(this,e))}(r.finished()||c&&r.finishedEverythingButTextureCreation())&&(this._state=Se.LOADED,l=!0)}if((0,m.Z)(r)&&this._state===Se.LOADED&&(c&&!l&&Lt(this,e),r.finished())){this._loadResources=void 0;const e=this._rendererResources,t=this._cachedRendererResources;t.buffers=e.buffers,t.vertexArrays=e.vertexArrays,t.programs=e.programs,t.sourceShaders=e.sourceShaders,t.silhouettePrograms=e.silhouettePrograms,t.textures=e.textures,t.samplers=e.samplers,t.renderStates=e.renderStates,t.ready=!0,this._normalAttributeName=be.Z.getAttributeOrUniformBySemantic(this.gltf,"NORMAL"),(0,m.Z)(this._precreatedAttributes)&&(t.vertexArrays={}),this.releaseGltfJson&&ni(this)}const h=Ae.Z.isSupported(t);if(this._shouldUpdateSpecularMapAtlas&&h){if(this._shouldUpdateSpecularMapAtlas=!1,this._specularEnvironmentMapAtlas=this._specularEnvironmentMapAtlas&&this._specularEnvironmentMapAtlas.destroy(),this._specularEnvironmentMapAtlas=void 0,(0,m.Z)(this._specularEnvironmentMaps)){this._specularEnvironmentMapAtlas=new Ae.Z(this._specularEnvironmentMaps);const e=this;this._specularEnvironmentMapAtlas.readyPromise.then((function(){e._shouldRegenerateShaders=!0})).otherwise((function(e){console.error("Error loading specularEnvironmentMaps: "+e)}))}this._shouldRegenerateShaders=!0}(0,m.Z)(this._specularEnvironmentMapAtlas)&&this._specularEnvironmentMapAtlas.update(e);const d=!(0,m.Z)(this._specularEnvironmentMapAtlas)&&(0,m.Z)(e.specularEnvironmentMaps)&&!this._useDefaultSpecularMaps,f=!(0,m.Z)(e.specularEnvironmentMaps)&&this._useDefaultSpecularMaps,_=!(0,m.Z)(this._sphericalHarmonicCoefficients)&&(0,m.Z)(e.sphericalHarmonicCoefficients)&&!this._useDefaultSphericalHarmonics,g=!(0,m.Z)(e.sphericalHarmonicCoefficients)&&this._useDefaultSphericalHarmonics;this._shouldRegenerateShaders=this._shouldRegenerateShaders||d||f||_||g,this._useDefaultSpecularMaps=!(0,m.Z)(this._specularEnvironmentMapAtlas)&&(0,m.Z)(e.specularEnvironmentMaps),this._useDefaultSphericalHarmonics=!(0,m.Z)(this._sphericalHarmonicCoefficients)&&(0,m.Z)(e.sphericalHarmonicCoefficients);const b=Kt(this,e),A=Yt(this),w=Xt(this),T=this.backFaceCulling,C=!(0,m.Z)(this.distanceDisplayCondition)||function(e,t){let i;const n=e.distanceDisplayCondition,r=n.near*n.near,s=n.far*n.far;if(t.mode===Te.Z.SCENE2D)i=.5*(t.camera.frustum.right-t.camera.frustum.left),i*=i;else{let n=O.Z.getTranslation(e.modelMatrix,ai);if(t.mode===Te.Z.COLUMBUS_VIEW){const e=t.mapProjection,i=e.ellipsoid.cartesianToCartographic(n,ci);n=e.project(i,n),o.Z.fromElements(n.z,n.x,n.y,n)}i=o.Z.distanceSquared(n,t.camera.positionWC)}return i>=r&&i<=s}(this,e),I=this.show&&C&&0!==this.scale&&(!w||b);if(I&&this._state===Se.LOADED||l){const i=this.activeAnimations.update(e)||this._cesiumAnimationsDirty;this._cesiumAnimationsDirty=!1,this._dirty=!1;let r=this.modelMatrix;const c=e.mode!==this._mode;this._mode=e.mode;const u=!O.Z.equals(this._modelMatrix,r)||this._scale!==this.scale||this._minimumPixelSize!==this.minimumPixelSize||0!==this.minimumPixelSize||this._maximumScale!==this.maximumScale||this._heightReference!==this.heightReference||this._heightChanged||c;if(u||l){O.Z.clone(r,this._modelMatrix),function(e){(0,m.Z)(e._removeUpdateHeightCallback)&&(e._removeUpdateHeightCallback(),e._removeUpdateHeightCallback=void 0);const t=e._scene;if(!(0,m.Z)(t)||!(0,m.Z)(t.globe)||e.heightReference===he.Z.NONE){if(e.heightReference!==he.Z.NONE)throw new Z.Z("Height reference is not supported without a scene and globe.");return void(e._clampedModelMatrix=void 0)}const i=t.globe,n=i.ellipsoid,r=e.modelMatrix;ti.x=r[12],ti.y=r[13],ti.z=r[14];const o=n.cartesianToCartographic(ti);(0,m.Z)(e._clampedModelMatrix)||(e._clampedModelMatrix=O.Z.clone(r,new O.Z));const s=i._surface;e._removeUpdateHeightCallback=s.updateHeight(o,si(e,n,o));const c=i.getHeight(o);if((0,m.Z)(c)){const t=si(e,n,o);a.Z.clone(o,ii),ii.height=c,n.cartographicToCartesian(ii,ti),t(ti)}}(this),(0,m.Z)(this._clampedModelMatrix)&&(r=this._clampedModelMatrix),this._scale=this.scale,this._minimumPixelSize=this.minimumPixelSize,this._maximumScale=this.maximumScale,this._heightReference=this.heightReference,this._heightChanged=!1;const t=function(e,t){let i=e.scale;if(0!==e.minimumPixelSize){const n=t.context,r=Math.max(n.drawingBufferWidth,n.drawingBufferHeight),s=(0,m.Z)(e._clampedModelMatrix)?e._clampedModelMatrix:e.modelMatrix;if(ti.x=s[12],ti.y=s[13],ti.z=s[14],(0,m.Z)(e._rtcCenter)&&o.Z.add(e._rtcCenter,ti,ti),e._mode!==Te.Z.SCENE3D){const e=t.mapProjection,i=e.ellipsoid.cartesianToCartographic(ti,ii);e.project(i,ti),o.Z.fromElements(ti.z,ti.x,ti.y,ti)}const a=e.boundingSphere.radius,c=function(e,t,i){return ei.center=e,ei.radius=t,i.camera.getPixelSize(ei,i.context.drawingBufferWidth,i.context.drawingBufferHeight)}(ti,a,t),u=1/c;Math.min(u*(2*a),r)<e.minimumPixelSize&&(i=e.minimumPixelSize*c/(2*e._initialRadius))}return(0,m.Z)(e.maximumScale)?Math.min(e.maximumScale,i):i}(this,e),i=this._computedModelMatrix;O.Z.multiplyByUniformScale(r,t,i),this._upAxis===ne.Z.Y?O.Z.multiplyTransformation(i,ne.Z.Y_UP_TO_Z_UP,i):this._upAxis===ne.Z.X&&O.Z.multiplyTransformation(i,ne.Z.X_UP_TO_Z_UP,i),this.forwardAxis===ne.Z.Z&&O.Z.multiplyTransformation(i,ne.Z.Z_UP_TO_X_UP,i)}(i||u||l)&&(function(e,t,i,r){const a=e._maxDirtyNumber,c=e._runtime.rootNodes,u=c.length,l=Ft;let h=e._computedModelMatrix;if(e._mode!==Te.Z.SCENE3D&&!e._ignoreCommands){const t=O.Z.getColumn(h,3,kt);if(s.Z.equals(t,s.Z.UNIT_W)){const t=e.boundingSphere.center,i=B.Z.wgs84To2DModelMatrix(r,t,Ut);h=O.Z.multiply(i,h,Ut),(0,m.Z)(e._rtcCenter)&&(O.Z.setTranslation(h,s.Z.UNIT_W,h),e._rtcCenter=e._rtcCenter2D)}else h=B.Z.basisTo2D(r,h,Ut),e._rtcCenter=e._rtcCenter3D}for(let s=0;s<u;++s){let u=c[s];for(Nt(u,u.transformToRoot),l.push(u);l.length>0;){u=l.pop();const s=u.transformToRoot,c=u.commands;if(u.dirtyNumber===a||t||i){const t=O.Z.multiplyTransformation(h,s,u.computedMatrix),i=c.length;if(i>0)for(let s=0;s<i;++s){const i=c[s];let a=i.command;O.Z.clone(t,a.modelMatrix),n.Z.transform(i.boundingSphere,a.modelMatrix,a.boundingVolume),(0,m.Z)(e._rtcCenter)&&o.Z.add(e._rtcCenter,a.boundingVolume.center,a.boundingVolume.center),a=i.command2D,(0,m.Z)(a)&&e._mode===Te.Z.SCENE2D&&(O.Z.clone(t,a.modelMatrix),a.modelMatrix[13]-=2*x.Z.sign(a.modelMatrix[13])*x.Z.PI*r.ellipsoid.maximumRadius,n.Z.transform(i.boundingSphere,a.modelMatrix,a.boundingVolume))}}const d=u.children;if((0,m.Z)(d)){const e=d.length;for(let t=0;t<e;++t){const e=d[t];e.dirtyNumber=Math.max(e.dirtyNumber,u.dirtyNumber),(e.dirtyNumber===a||i)&&(Nt(e,e.transformToRoot),O.Z.multiplyTransformation(s,e.transformToRoot,e.transformToRoot)),l.push(e)}}}}++e._maxDirtyNumber}(this,u,l,e.mapProjection),this._dirty=!0,(i||l)&&function(e){const t=e._runtime.skinnedNodes,i=t.length;for(let e=0;e<i;++e){const i=t[e];Vt=O.Z.inverseTransformation(i.transformToRoot,Vt);const n=i.computedJointMatrices,r=i.joints,o=i.bindShapeMatrix,s=i.inverseBindMatrices,a=s.length;for(let e=0;e<a;++e)(0,m.Z)(n[e])||(n[e]=new O.Z),n[e]=O.Z.multiplyTransformation(Vt,r[e].transformToRoot,n[e]),n[e]=O.Z.multiplyTransformation(n[e],s[e],n[e]),(0,m.Z)(o)&&(n[e]=O.Z.multiplyTransformation(n[e],o,n[e]))}}(this)),this._perNodeShowDirty&&(this._perNodeShowDirty=!1,function(e){const t=e._runtime.rootNodes,i=t.length,n=Ft;for(let e=0;e<i;++e){let i=t[e];for(i.computedShow=i.publicNode.show,n.push(i);n.length>0;){i=n.pop();const e=i.computedShow,t=i.commands,r=t.length;for(let i=0;i<r;++i)t[i].show=e;const o=i.children;if((0,m.Z)(o)){const t=o.length;for(let i=0;i<t;++i){const t=o[i];t.computedShow=e&&t.publicNode.show,n.push(t)}}}}}(this)),function(e,t){const i=e.id;if(e._id!==i){e._id=i;const t=e._pickIds,n=t.length;for(let e=0;e<n;++e)t[e].object.id=i}}(this),function(e){if(e._debugWireframe!==e.debugWireframe){e._debugWireframe=e.debugWireframe;const t=e.debugWireframe?D.Z.LINES:D.Z.TRIANGLES,i=e._nodeCommands,n=i.length;for(let e=0;e<n;++e)i[e].command.primitiveType=t}}(this),function(e){if(e.debugShowBoundingVolume!==e._debugShowBoundingVolume){e._debugShowBoundingVolume=e.debugShowBoundingVolume;const t=e.debugShowBoundingVolume,i=e._nodeCommands,n=i.length;for(let e=0;e<n;++e)i[e].command.debugShowBoundingVolume=t}}(this),function(e){if(e.shadows!==e._shadows){e._shadows=e.shadows;const t=Ce.Z.castShadows(e.shadows),i=Ce.Z.receiveShadows(e.shadows),n=e._nodeCommands,r=n.length;for(let e=0;e<r;e++){const r=n[e];r.command.castShadows=t,r.command.receiveShadows=i}}}(this),function(e,t){const i=e._clippingPlanes;(0,m.Z)(i)&&i.owner===e&&i.enabled&&i.update(t)}(this,e);const h=this._clippingPlanes;let d=0;const f=(0,p.Z)(this.referenceMatrix,r);if(Ne(this)){let e=ui;e=O.Z.multiply(t.uniformState.view3D,f,e),e=O.Z.multiply(e,h.modelMatrix,e),this._clippingPlanesMatrix=O.Z.inverseTranspose(e,this._clippingPlanesMatrix),d=h.clippingPlanesState}const _=(0,m.Z)(this._sphericalHarmonicCoefficients)||this._useDefaultSphericalHarmonics,g=(0,m.Z)(this._specularEnvironmentMapAtlas)&&this._specularEnvironmentMapAtlas.ready||this._useDefaultSpecularMaps;if(_||g){let e=hi,i=li;i=O.Z.multiply(t.uniformState.view3D,f,i),e=O.Z.getMatrix3(i,e),e=S.Z.getRotation(e,e),this._iblReferenceFrameMatrix=S.Z.transpose(e,this._iblReferenceFrameMatrix)}let y=this._shouldRegenerateShaders;y=y||this._clippingPlanesState!==d,this._clippingPlanesState=d;const b=Le(this);b!==this._colorShadingEnabled&&(this._colorShadingEnabled=b,y=!0),y?function(e,t){const i=e._rendererResources,n=e._cachedRendererResources;let r;if(di(i,n),Ne(e)||Le(e)||e._shouldRegenerateShaders){e._shouldRegenerateShaders=!1,i.programs={},i.silhouettePrograms={};const n={},o=e._sourceTechniques;let s;for(const i in o)o.hasOwnProperty(i)&&(s=o[i],r=s.program,n[r]||(n[r]=!0,rt({programId:r,techniqueId:i},e,t.context)))}else i.programs=n.programs,i.silhouettePrograms=n.silhouettePrograms;const o=i.programs,s=e._nodeCommands,a=s.length;for(let e=0;e<a;++e){const t=s[e];r=t.programId;const i=o[r];t.command.shaderProgram=i,(0,m.Z)(t.command2D)&&(t.command2D.shaderProgram=i)}Ht(e,t,!0),qt(e,t,!0),$t(e,t,!0)}(this,e):(Ht(this,e,!1),qt(this,e,!1),$t(this,e,!1))}if(l){const t=this;return void e.afterRender.push((function(){t._ready=!0,t._readyPromise.resolve(t)}))}if(I&&!this._ignoreCommands){const t=e.commandList,i=e.passes,n=this._nodeCommands,r=n.length;let o,s;const a=e.mapProjection.ellipsoid.maximumRadius*x.Z.PI;let c;if(i.render||i.pick&&this.allowPicking){for(o=0;o<r;++o)if(s=n[o],s.show){let i=s.command;if(b?i=s.silhouetteModelCommand:A?i=s.translucentCommand:T||(i=s.disableCullingCommand),t.push(i),c=s.command.boundingVolume,e.mode===Te.Z.SCENE2D&&(c.center.y+c.radius>a||c.center.y-c.radius<a)){let e=s.command2D;b?e=s.silhouetteModelCommand2D:A?e=s.translucentCommand2D:T||(e=s.disableCullingCommand2D),t.push(e)}}if(b&&!i.pick)for(o=0;o<r;++o)s=n[o],s.show&&(t.push(s.silhouetteColorCommand),c=s.command.boundingVolume,e.mode===Te.Z.SCENE2D&&(c.center.y+c.radius>a||c.center.y-c.radius<a)&&t.push(s.silhouetteColorCommand2D))}}const P=this._credit;(0,m.Z)(P)&&e.creditDisplay.addCredit(P);const R=this._resourceCredits,L=R.length;for(let t=0;t<L;t++)e.creditDisplay.addCredit(R[t])},Be.prototype.isDestroyed=function(){return!1},Be.prototype.destroy=function(){(0,m.Z)(this._precreatedAttributes)&&oi(this._rendererResources.vertexArrays),(0,m.Z)(this._removeUpdateHeightCallback)&&(this._removeUpdateHeightCallback(),this._removeUpdateHeightCallback=void 0),(0,m.Z)(this._terrainProviderChangedCallback)&&(this._terrainProviderChangedCallback(),this._terrainProviderChangedCallback=void 0),(0,m.Z)(this._cachedRendererResources)&&di(this._rendererResources,this._cachedRendererResources),this._rendererResources=void 0,this._cachedRendererResources=this._cachedRendererResources&&this._cachedRendererResources.release(),ce.Z.destroyCachedDataForModel(this);const e=this._pickIds,t=e.length;for(let i=0;i<t;++i)e[i].destroy();ni(this),this._quantizedVertexShaders=void 0;const i=this._clippingPlanes;return(0,m.Z)(i)&&!i.isDestroyed()&&i.owner===this&&i.destroy(),this._clippingPlanes=void 0,this._specularEnvironmentMapAtlas=this._specularEnvironmentMapAtlas&&this._specularEnvironmentMapAtlas.destroy(),(0,_.Z)(this)},Be._getClippingFunction=le.Z,Be._modifyShaderForColor=function(e){return(e=H.Z.replaceMain(e,"gltf_blend_main"))+"uniform vec4 gltf_color; \nuniform float gltf_colorBlend; \nvoid main() \n{ \n gltf_blend_main(); \n gl_FragColor.rgb = mix(gl_FragColor.rgb, gltf_color.rgb, gltf_colorBlend); \n float highlight = ceil(gltf_colorBlend); \n gl_FragColor.rgb *= mix(gltf_color.rgb, vec3(1.0), highlight); \n gl_FragColor.a *= gltf_color.a; \n} \n"};const fi=Be},108418:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(406144),r=i(197685),o=i(40080),s=i(723710),a=i(77880);function c(e,t,i){this._name=i.name,this._startTime=o.Z.clone(e.startTime),this._delay=(0,n.Z)(e.delay,0),this._stopTime=e.stopTime,this.removeOnStop=(0,n.Z)(e.removeOnStop,!1),this._multiplier=(0,n.Z)(e.multiplier,1),this._reverse=(0,n.Z)(e.reverse,!1),this._loop=(0,n.Z)(e.loop,s.Z.NONE),this.start=new r.Z,this.update=new r.Z,this.stop=new r.Z,this._state=a.Z.STOPPED,this._runtimeAnimation=i,this._computedStartTime=void 0,this._duration=void 0;const c=this;this._raiseStartEvent=function(){c.start.raiseEvent(t,c)},this._updateEventTime=0,this._raiseUpdateEvent=function(){c.update.raiseEvent(t,c,c._updateEventTime)},this._raiseStopEvent=function(){c.stop.raiseEvent(t,c)}}Object.defineProperties(c.prototype,{name:{get:function(){return this._name}},startTime:{get:function(){return this._startTime}},delay:{get:function(){return this._delay}},stopTime:{get:function(){return this._stopTime}},multiplier:{get:function(){return this._multiplier}},reverse:{get:function(){return this._reverse}},loop:{get:function(){return this._loop}}});const u=c},953328:(e,t,i)=>{"use strict";i.d(t,{Z:()=>C});var n=i(919382),r=i(997274),o=i(406144),s=i(426468),a=i(24238),c=i(583917),u=i(129782),l=i(913601),h=i(54791),d=i(619287),f=i(445363),p=i(675622),m=i(597722),_=i(295189);function Z(){}const g=/^data\:/i;function y(e,t){const i=e.gltf,n=i.buffers,r=i.bufferViews[t.bufferView],o=n[r.buffer],s=r.byteOffset+t.byteOffset,a=t.count*(0,m.Z)(t.type),c=g.test(o.uri)?"":o.uri;return e.cacheKey+"//"+c+"/"+s+"/"+a}const b={};Z.getAnimationParameterValues=function(e,t){const i=y(e,t);let a=b[i];if(!(0,s.Z)(a)){const c=e.gltf,l=c.buffers,h=c.bufferViews[t.bufferView],d=l[h.buffer].extras._pipeline.source,f=t.componentType,_=t.type,Z=(0,m.Z)(_),g=t.count,y=(0,p.Z)(c,t);a=new Array(g);const A=(0,o.Z)(t.byteOffset,0);let w=h.byteOffset+A;for(let e=0;e<g;e++){const t=r.Z.createArrayBufferView(f,d.buffer,d.byteOffset+w,Z);"SCALAR"===_?a[e]=t[0]:"VEC3"===_?a[e]=n.Z.fromArray(t):"VEC4"===_&&(a[e]=u.Z.unpack(t)),w+=y}(0,s.Z)(e.cacheKey)&&(b[i]=a)}return a};const A={};function w(e){this._value=e}function v(e){this._spline=e,this._lastTimeIndex=0}w.prototype.evaluate=function(e,t){return this._value},w.prototype.wrapTime=function(e){return 0},w.prototype.clampTime=function(e){return 0},v.prototype.findTimeInterval=h.Z.prototype.findTimeInterval,v.prototype.evaluate=function(e,t){const i=this._lastTimeIndex=this.findTimeInterval(e,this._lastTimeIndex),n=this._spline.times,r=e>=n[i+1]?n[i+1]:n[i];return this._spline.evaluate(r,t)},Object.defineProperties(v.prototype,{times:{get:function(){return this._spline.times}}}),v.prototype.wrapTime=function(e){return this._spline.wrapTime(e)},v.prototype.clampTime=function(e){return this._spline.clampTime(e)},Z.getAnimationSpline=function(e,t,i,n,r,o,c,u){const h=function(e,t,i){return e.cacheKey+"//"+t+"/"+i}(e,t,n);let d=A[h];if(!(0,s.Z)(d)){const t=o,i=u;1===t.length&&1===i.length?d=new w(i[0]):"LINEAR"!==r.interpolation&&"STEP"!==r.interpolation||("translation"===c||"scale"===c?d=new a.Z({times:t,points:i}):"rotation"===c?d=new l.Z({times:t,points:i}):"weights"===c&&(d=new f.Z({times:t,weights:i})),(0,s.Z)(d)&&"STEP"===r.interpolation&&(d=new v(d))),(0,s.Z)(e.cacheKey)&&(A[h]=d)}return d};const T={};Z.getSkinInverseBindMatrices=function(e,t){const i=y(e,t);let n=T[i];if(!(0,s.Z)(n)){const o=e.gltf,s=o.buffers,a=o.bufferViews[t.bufferView],u=s[a.buffer].extras._pipeline.source,l=t.componentType,h=t.type,f=t.count,Z=(0,p.Z)(o,t);let g=a.byteOffset+t.byteOffset;const y=(0,m.Z)(h);if(n=new Array(f),l===d.Z.FLOAT&&h===_.Z.MAT4)for(let e=0;e<f;++e){const t=r.Z.createArrayBufferView(l,u.buffer,u.byteOffset+g,y);n[e]=c.Z.fromArray(t),g+=Z}T[i]=n}return n};const C=Z},191495:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Z});var n=i(406144),r=i(426468),o=i(446938),s=i(197685),a=i(40080),c=i(362017),u=i(108418),l=i(723710),h=i(77880);function d(e){this.animationAdded=new s.Z,this.animationRemoved=new s.Z,this._model=e,this._scheduledAnimations=[],this._previousTime=void 0}function f(e,t,i){const n=e._model,r=n._runtime.animations[t],o=new u.Z(i,n,r);return e._scheduledAnimations.push(o),e.animationAdded.raiseEvent(n,o),o}function p(e,t){const i=e.channelEvaluators,n=i.length;for(let e=0;e<n;++e)i[e](t)}Object.defineProperties(d.prototype,{length:{get:function(){return this._scheduledAnimations.length}}}),d.prototype.add=function(e){e=(0,n.Z)(e,n.Z.EMPTY_OBJECT);const t=this._model._runtime.animations;if(!(0,r.Z)(t))throw new o.Z("Animations are not loaded. Wait for Model.readyPromise to resolve.");if(!(0,r.Z)(e.name)&&!(0,r.Z)(e.index))throw new o.Z("Either options.name or options.index must be defined.");if((0,r.Z)(e.multiplier)&&e.multiplier<=0)throw new o.Z("options.multiplier must be greater than zero.");if((0,r.Z)(e.index)&&(e.index>=t.length||e.index<0))throw new o.Z("options.index must be a valid animation index.");if((0,r.Z)(e.index))return f(this,e.index,e);let i;const s=t.length;for(let n=0;n<s;++n)if(t[n].name===e.name){i=n;break}if(!(0,r.Z)(i))throw new o.Z("options.name must be a valid animation name.");return f(this,i,e)},d.prototype.addAll=function(e){if(e=(0,n.Z)(e,n.Z.EMPTY_OBJECT),!(0,r.Z)(this._model._runtime.animations))throw new o.Z("Animations are not loaded. Wait for Model.readyPromise to resolve.");if((0,r.Z)(e.multiplier)&&e.multiplier<=0)throw new o.Z("options.multiplier must be greater than zero.");const t=[],i=this._model._runtime.animations.length;for(let n=0;n<i;++n)t.push(f(this,n,e));return t},d.prototype.remove=function(e){if((0,r.Z)(e)){const t=this._scheduledAnimations,i=t.indexOf(e);if(-1!==i)return t.splice(i,1),this.animationRemoved.raiseEvent(this._model,e),!0}return!1},d.prototype.removeAll=function(){const e=this._model,t=this._scheduledAnimations,i=t.length;this._scheduledAnimations=[];for(let n=0;n<i;++n)this.animationRemoved.raiseEvent(e,t[n])},d.prototype.contains=function(e){return!!(0,r.Z)(e)&&-1!==this._scheduledAnimations.indexOf(e)},d.prototype.get=function(e){if(!(0,r.Z)(e))throw new o.Z("index is required.");return this._scheduledAnimations[e]};const m=[];function _(e,t,i){return function(){e.animationRemoved.raiseEvent(t,i)}}d.prototype.update=function(e){const t=this._scheduledAnimations;let i=t.length;if(0===i)return this._previousTime=void 0,!1;if(a.Z.equals(e.time,this._previousTime))return!1;this._previousTime=a.Z.clone(e.time,this._previousTime);let o=!1;const s=e.time,u=this._model;for(let u=0;u<i;++u){const i=t[u],d=i._runtimeAnimation;(0,r.Z)(i._computedStartTime)||(i._computedStartTime=a.Z.addSeconds((0,n.Z)(i.startTime,s),i.delay,new a.Z)),(0,r.Z)(i._duration)||(i._duration=d.stopTime*(1/i.multiplier));const f=i._computedStartTime,_=i._duration,Z=i.stopTime;let g=0!==_?a.Z.secondsDifference(s,f)/_:0;0!==_&&(0,r.Z)(Z)&&a.Z.greaterThan(s,Z)&&(g=a.Z.secondsDifference(Z,f)/_);const y=g>=0,b=i.loop===l.Z.REPEAT||i.loop===l.Z.MIRRORED_REPEAT,A=(y||b&&!(0,r.Z)(i.startTime))&&(g<=1||b)&&(!(0,r.Z)(Z)||a.Z.lessThanOrEquals(s,Z));if(A||i._state===h.Z.ANIMATING){if(A&&i._state===h.Z.STOPPED&&(i._state=h.Z.ANIMATING,i.start.numberOfListeners>0&&e.afterRender.push(i._raiseStartEvent)),i.loop===l.Z.REPEAT)g-=Math.floor(g);else if(i.loop===l.Z.MIRRORED_REPEAT){const e=Math.floor(g),t=g-e;g=e%2==1?1-t:t}i.reverse&&(g=1-g);let t=g*_*i.multiplier;t=c.Z.clamp(t,d.startTime,d.stopTime),p(d,t),i.update.numberOfListeners>0&&(i._updateEventTime=t,e.afterRender.push(i._raiseUpdateEvent)),o=!0,A||(i._state=h.Z.STOPPED,i.stop.numberOfListeners>0&&e.afterRender.push(i._raiseStopEvent),i.removeOnStop&&m.push(i))}}i=m.length;for(let n=0;n<i;++n){const i=m[n];t.splice(t.indexOf(i),1),e.afterRender.push(_(this,u,i))}return m.length=0,o};const Z=d},723710:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({NONE:0,REPEAT:1,MIRRORED_REPEAT:2})},77880:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({STOPPED:0,ANIMATING:1})},148306:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(919382),r=i(114754),o=i(165373),s=i(583917),a=i(843257);const c={};function u(){this.baseColorTexture=void 0,this.metallicRoughnessTexture=void 0,this.baseColorFactor=r.Z.clone(u.DEFAULT_BASE_COLOR_FACTOR),this.metallicFactor=u.DEFAULT_METALLIC_FACTOR,this.roughnessFactor=u.DEFAULT_ROUGHNESS_FACTOR}function l(){this.diffuseTexture=void 0,this.specularGlossinessTexture=void 0,this.diffuseFactor=r.Z.clone(l.DEFAULT_DIFFUSE_FACTOR),this.specularFactor=n.Z.clone(l.DEFAULT_SPECULAR_FACTOR),this.glossinessFactor=l.DEFAULT_GLOSSINESS_FACTOR}function h(){this.metallicRoughness=new u,this.specularGlossiness=void 0,this.emissiveTexture=void 0,this.normalTexture=void 0,this.occlusionTexture=void 0,this.emissiveFactor=n.Z.clone(h.DEFAULT_EMISSIVE_FACTOR),this.alphaMode=a.Z.OPAQUE,this.alphaCutoff=.5,this.doubleSided=!1,this.unlit=!1}u.DEFAULT_BASE_COLOR_FACTOR=r.Z.ONE,u.DEFAULT_METALLIC_FACTOR=1,u.DEFAULT_ROUGHNESS_FACTOR=1,l.DEFAULT_DIFFUSE_FACTOR=r.Z.ONE,l.DEFAULT_SPECULAR_FACTOR=n.Z.ONE,l.DEFAULT_GLOSSINESS_FACTOR=1,h.DEFAULT_EMISSIVE_FACTOR=n.Z.ZERO,c.Quantization=function(){this.octEncoded=!1,this.octEncodedZXY=!1,this.normalizationRange=void 0,this.quantizedVolumeOffset=void 0,this.quantizedVolumeDimensions=void 0,this.quantizedVolumeStepSize=void 0,this.componentDatatype=void 0,this.type=void 0},c.Attribute=function(){this.name=void 0,this.semantic=void 0,this.setIndex=void 0,this.componentDatatype=void 0,this.type=void 0,this.normalized=!1,this.count=void 0,this.min=void 0,this.max=void 0,this.constant=void 0,this.quantization=void 0,this.packedTypedArray=void 0,this.buffer=void 0,this.typedArray=void 0,this.byteOffset=0,this.byteStride=void 0},c.Indices=function(){this.indexDatatype=void 0,this.count=void 0,this.buffer=void 0,this.typedArray=void 0},c.FeatureIdAttribute=function(){this.propertyTableId=void 0,this.setIndex=void 0},c.FeatureIdTexture=function(){this.propertyTableId=void 0,this.textureReader=void 0},c.FeatureIdImplicitRange=function(){this.propertyTableId=void 0,this.offset=0,this.repeat=void 0},c.MorphTarget=function(){this.attributes=[]},c.Primitive=function(){this.attributes=[],this.morphTargets=[],this.morphWeights=[],this.indices=void 0,this.material=void 0,this.primitiveType=void 0,this.featureIds=[],this.propertyTextureIds=[]},c.Instances=function(){this.attributes=[],this.featureIds=[],this.transformInWorldSpace=!1},c.Skin=function(){this.joints=void 0,this.inverseBindMatrices=void 0},c.Node=function(){this.children=[],this.primitives=[],this.instances=void 0,this.skin=void 0,this.matrix=void 0,this.translation=void 0,this.rotation=void 0,this.scale=void 0},c.Scene=function(){this.nodes=[]},c.Components=function(){this.scene=void 0,this.nodes=void 0,this.featureMetadata=void 0,this.upAxis=void 0,this.forwardAxis=void 0,this.transform=s.Z.clone(s.Z.IDENTITY)},c.TextureReader=function(){this.texture=void 0,this.texCoord=0,this.transform=o.Z.clone(o.Z.IDENTITY),this.channels=void 0},c.MetallicRoughness=u,c.SpecularGlossiness=l,c.Material=h;const d=c},5021:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(406144),r=i(30171),o=i(843257),s=i(451356),a=i(842649);const c={name:"AlphaPipelineStage",process:function(e,t,i){const c=e.alphaOptions,u=e.model;c.pass=(0,n.Z)(c.pass,u.opaquePass);const l=e.renderStateOptions;c.pass===a.Z.TRANSLUCENT?l.blending=s.Z.ALPHA_BLEND:l.blending=s.Z.DISABLED;const h=e.shaderBuilder,d=e.uniformMap,f=c.alphaMode;f===o.Z.MASK?(h.addDefine("ALPHA_MODE_MASK",void 0,r.Z.FRAGMENT),h.addUniform("float","u_alphaCutoff",r.Z.FRAGMENT),d.u_alphaCutoff=function(){return c.alphaCutoff}):f===o.Z.BLEND?h.addDefine("ALPHA_MODE_BLEND",void 0,r.Z.FRAGMENT):h.addDefine("ALPHA_MODE_OPAQUE",void 0,r.Z.FRAGMENT)}}},672287:(e,t,i)=>{"use strict";i.d(t,{Z:()=>C});var n=i(39213),r=i(86138),o=i(919382),s=i(447490),a=i(357299),c=i(997274),u=i(406144),l=i(426468),h=i(549773),d=i(771918),f=i(583917),p=i(211303),m=i(148306),_=i(10146),Z=i(331508),g=i(785049),y=i(81967),b=i(527758),A=i(578765);const w=m.Z.FeatureIdAttribute;function v(e){const t=(e=(0,u.Z)(e,u.Z.EMPTY_OBJECT)).b3dmResource;let i=e.baseResource;const r=e.arrayBuffer,o=(0,u.Z)(e.byteOffset,0),s=(0,u.Z)(e.releaseGltfJson,!1),c=(0,u.Z)(e.asynchronous,!0),h=(0,u.Z)(e.incrementallyLoadTextures,!0),d=(0,u.Z)(e.upAxis,n.Z.Y),p=(0,u.Z)(e.forwardAxis,n.Z.X),m=(0,u.Z)(e.loadAsTypedArray,!1);a.Z.typeOf.object("options.b3dmResource",t),a.Z.typeOf.object("options.arrayBuffer",r),i=(0,l.Z)(i)?i:t.clone(),this._b3dmResource=t,this._baseResource=i,this._arrayBuffer=r,this._byteOffset=o,this._releaseGltfJson=s,this._asynchronous=c,this._incrementallyLoadTextures=h,this._upAxis=d,this._forwardAxis=p,this._loadAsTypedArray=m,this._state=0,this._promise=b.Z.defer(),this._gltfLoader=void 0,this._batchLength=0,this._propertyTable=void 0,this._batchTable=void 0,this._components=void 0,this._transform=f.Z.IDENTITY}function T(e){if(!(0,l.Z)(e.children)&&!(0,l.Z)(e.primitives))return;let t;if((0,l.Z)(e.children))for(t=0;t<e.children.length;t++)T(e.children[t]);if((0,l.Z)(e.primitives))for(t=0;t<e.primitives.length;t++){const i=e.primitives[t],n=_.Z.getAttributeBySemantic(i,A.Z.FEATURE_ID);if((0,l.Z)(n)){n.setIndex=0;const e=new w;e.propertyTableId=0,e.setIndex=0,i.featureIds.push(e)}}}(0,l.Z)(Object.create)&&(v.prototype=Object.create(y.Z.prototype),v.prototype.constructor=v),Object.defineProperties(v.prototype,{promise:{get:function(){return this._promise.promise}},texturesLoadedPromise:{get:function(){return this._gltfLoader.texturesLoadedPromise}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}}),v.prototype.load=function(){const e=r.Z.parse(this._arrayBuffer,this._byteOffset);let t=e.batchLength;const i=e.featureTableJson,n=e.featureTableBinary,a=e.batchTableJson,u=e.batchTableBinary,m=new s.Z(i,n);t=m.getGlobalProperty("BATCH_LENGTH"),this._batchLength=t;const _=m.getGlobalProperty("RTC_CENTER",c.Z.FLOAT,3);(0,l.Z)(_)&&(this._transform=f.Z.fromTranslation(o.Z.fromArray(_))),this._batchTable={json:a,binary:u};const y=new d.Z({typedArray:e.gltf,upAxis:this._upAxis,forwardAxis:this._forwardAxis,gltfResource:this._b3dmResource,baseResource:this._baseResource,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAsTypedArray:this._loadAsTypedArray,renameBatchIdSemantic:!0});this._gltfLoader=y,this._state=1;const b=this;y.load(),y.promise.then((function(){if(b.isDestroyed())return;const e=y.components;e.transform=b._transform,function(e,t){const i=e._batchTable,n=e._batchLength;if(0===n)return;let r;if((0,l.Z)(i.json))r=(0,Z.Z)({count:n,batchTable:i.json,binaryBody:i.binary});else{const e=new g.Z({name:p.Z.BATCH_TABLE_CLASS_NAME,count:n});r=new h.Z({schema:{},propertyTables:[e]})}const o=t.scene.nodes;for(let e=0;e<o.length;e++)T(o[e]);t.featureMetadata=r}(b,e),b._components=e,b._state=3,b._promise.resolve(b)})).otherwise((function(e){b.isDestroyed()||function(e,t){e.unload(),e._state=4;t=e.getError("Failed to load b3dm",t),e._promise.reject(t)}(b,e)}))},v.prototype.process=function(e){a.Z.typeOf.object("frameState",e),1===this._state&&(this._state=2),2===this._state&&this._gltfLoader.process(e)},v.prototype.unload=function(){(0,l.Z)(this._gltfLoader)&&this._gltfLoader.unload(),this._components=void 0};const C=v},117695:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(307260),r=i(406144);const o={name:"BatchTexturePipelineStage",process:function(e,t,i){const o=e.shaderBuilder,s={},a=e.model,c=a.featureTables[a.featureTableId],u=c.featuresLength;o.addUniform("float","model_featuresLength"),s.model_featuresLength=function(){return u};const l=c.batchTexture;o.addUniform("sampler2D","model_batchTexture"),s.model_batchTexture=function(){return(0,r.Z)(l.batchTexture,l.defaultTexture)},o.addUniform("vec4","model_textureStep"),s.model_textureStep=function(){return l.textureStep},l.textureDimensions.y>1&&(o.addDefine("MULTILINE_BATCH_TEXTURE"),o.addUniform("vec2","model_textureDimensions"),s.model_textureDimensions=function(){return l.textureDimensions}),e.uniformMap=(0,n.Z)(s,e.uniformMap)}}},911440:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(951782),r=i(870614),o=i(842649),s=i(567485),a=i(30171),c=i(806361),u=i(266093),l=i(843257),h=i(426468);const d={name:"CPUStylingPipelineStage",process:function(e,t,i){const d=e.model,f=e.shaderBuilder;f.addVertexLines([n.Z]),f.addFragmentLines([r.Z]),f.addDefine("USE_CPU_STYLING",void 0,a.Z.BOTH),(0,h.Z)(d.color)||(f.addUniform("float",u.Z.COLOR_BLEND_UNIFORM_NAME,a.Z.FRAGMENT),e.uniformMap[u.Z.COLOR_BLEND_UNIFORM_NAME]=function(){return s.Z.getColorBlend(d.colorBlendMode,d.colorBlendAmount)});const p=e.alphaOptions.pass===o.Z.TRANSLUCENT;f.addUniform("bool","model_commandTranslucent",a.Z.BOTH),e.uniformMap.model_commandTranslucent=function(){return p};const m=d.featureTables[d.featureTableId],_=c.Z.getStyleCommandsNeeded(m.featuresLength,m.batchTexture.translucentFeaturesLength);_!==c.Z.ALL_OPAQUE&&(e.alphaOptions.alphaMode=l.Z.BLEND),e.styleCommandsNeeded=_}}},96897:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(357299),r=i(406144),o=i(426468),s=i(54879),a=i(446938),c=i(592892),u=i(808168),l=i(418477);function h(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),this.mode=(0,r.Z)(e.mode,c.Z.MODIFY_MATERIAL),this.lightingModel=e.lightingModel,this.uniforms=(0,r.Z)(e.uniforms,r.Z.EMPTY_OBJECT),this.varyings=(0,r.Z)(e.varyings,r.Z.EMPTY_OBJECT),this.vertexShaderText=e.vertexShaderText,this.fragmentShaderText=e.fragmentShaderText,this.isTranslucent=(0,r.Z)(e.isTranslucent,!1),this._textureManager=new l.Z,this._defaultTexture=void 0,this.uniformMap=function(e){const t=e.uniforms,i={};for(const n in t)if(t.hasOwnProperty(n)){const r=t[n],o=r.type;if(o===u.Z.SAMPLER_CUBE)throw new a.Z("CustomShader does not support samplerCube uniforms");o===u.Z.SAMPLER_2D?(e._textureManager.loadTexture2D(n,r.value),i[n]=d(e,n)):i[n]=f(e,n)}return i}(this),this.usedVariablesVertex={attributeSet:{},featureIdSet:{}},this.usedVariablesFragment={attributeSet:{},featureIdSet:{},materialSet:{}},function(e){const t=/[vf]sInput\.attributes\.(\w+)/g,i=/[vf]sInput\.featureIds\.(\w+)/g;let n;const r=e.vertexShaderText;(0,o.Z)(r)&&(n=e.usedVariablesVertex.attributeSet,p(r,t,n),n=e.usedVariablesVertex.featureIdSet,p(r,i,n));const s=e.fragmentShaderText;(0,o.Z)(s)&&(n=e.usedVariablesFragment.attributeSet,p(s,t,n),n=e.usedVariablesFragment.featureIdSet,p(s,i,n),p(s,/material\.(\w+)/g,e.usedVariablesFragment.materialSet))}(this),function(e){const t=e.usedVariablesVertex.attributeSet;_(t,"position","positionMC","vertex"),_(t,"normal","normalMC","vertex"),_(t,"tangent","tangentMC","vertex"),_(t,"bitangent","bitangentMC","vertex"),_(t,"positionWC","positionMC","vertex"),_(t,"positionEC","positionMC","vertex"),_(t,"normalEC","normalMC","vertex"),_(t,"tangentEC","tangentMC","vertex"),_(t,"bitangentEC","bitangentMC","vertex");const i=e.usedVariablesFragment.attributeSet;_(i,"position","positionEC","fragment"),_(i,"normal","normalEC","fragment"),_(i,"tangent","tangentEC","fragment"),_(i,"bitangent","bitangentEC","fragment"),_(i,"normalMC","normalEC","fragment"),_(i,"tangentMC","tangentEC","fragment"),_(i,"bitangentMC","bitangentEC","fragment")}(this)}function d(e,t){return function(){return(0,r.Z)(e._textureManager.getTexture(t),e._defaultTexture)}}function f(e,t){return function(){return e.uniforms[t].value}}function p(e,t,i){let n;for(;null!==(n=t.exec(e));)i[n[1]]=!0}function m(e){return/^.*MC$/.test(e)?e+" (model coordinates)":/^.*WC$/.test(e)?e+" (Cartesian world coordinates)":/^.*EC$/.test(e)?e+" (eye coordinates)":e}function _(e,t,i,n){if(e.hasOwnProperty(t)){const e=m(t)+" is not available in the "+n+" shader. Did you mean "+m(i)+" instead?";throw new a.Z(e)}}h.prototype.setUniform=function(e,t){if(n.Z.typeOf.string("uniformName",e),n.Z.defined("value",t),!(0,o.Z)(this.uniforms[e]))throw new a.Z("Uniform "+e+" must be declared in the CustomShader constructor.");const i=this.uniforms[e];i.type===u.Z.SAMPLER_2D?this._textureManager.loadTexture2D(e,t):(0,o.Z)(t.clone)?i.value=t.clone(i.value):i.value=t},h.prototype.update=function(e){this._defaultTexture=e.context.defaultTexture,this._textureManager.update(e)},h.prototype.isDestroyed=function(){return!1},h.prototype.destroy=function(){this._textureManager=this._textureManager&&this._textureManager.destroy(),(0,s.Z)(this)}},592892:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({MODIFY_MATERIAL:"MODIFY_MATERIAL",REPLACE_MATERIAL:"REPLACE_MATERIAL",getDefineName:function(e){return"CUSTOM_SHADER_"+e}})},277153:(e,t,i)=>{"use strict";i.d(t,{Z:()=>b});var n=i(307260),r=i(426468),o=i(594798),s=i(30171),a=i(842649),c=i(379220),u=i(608751),l=i(843257),h=i(592892),d=i(997100),f=i(10146);const p={name:"CustomShaderPipelineStage",STRUCT_ID_ATTRIBUTES_VS:"AttributesVS",STRUCT_ID_ATTRIBUTES_FS:"AttributesFS",STRUCT_NAME_ATTRIBUTES:"Attributes",STRUCT_ID_VERTEX_INPUT:"VertexInput",STRUCT_NAME_VERTEX_INPUT:"VertexInput",STRUCT_ID_FRAGMENT_INPUT:"FragmentInput",STRUCT_NAME_FRAGMENT_INPUT:"FragmentInput",FUNCTION_ID_INITIALIZE_INPUT_STRUCT_VS:"initializeInputStructVS",FUNCTION_SIGNATURE_INITIALIZE_INPUT_STRUCT_VS:"void initializeInputStruct(out VertexInput vsInput, ProcessedAttributes attributes)",FUNCTION_ID_INITIALIZE_INPUT_STRUCT_FS:"initializeInputStructFS",FUNCTION_SIGNATURE_INITIALIZE_INPUT_STRUCT_FS:"void initializeInputStruct(out FragmentInput fsInput, ProcessedAttributes attributes)",process:function(e,t,i){const o=e.shaderBuilder,m=e.model.customShader,_=function(e,t){const i={enabled:!1},n={enabled:!1},o=function(e){const t={};for(let i=0;i<e.length;i++){const n=e[i],r=f.Z.getAttributeInfo(n);t[r.variableName]=r}return t}(t.attributes);(0,r.Z)(e.vertexShaderText)&&function(e,t,i){const n=y(t,e.usedVariablesVertex.attributeSet,!1),o=n.addToShader,s=n.missingAttributes;let a,c;const u=[],l=[];for(a in o)if(o.hasOwnProperty(a)){const e=[o[a].glslType,a];u.push(e),c="vsInput.attributes."+a+" = attributes."+a+";",l.push(c)}for(let e=0;e<s.length;e++){a=s[e];const t=Z(a);if(!(0,r.Z)(t))return void p._oneTimeWarning("CustomShaderPipelineStage.incompatiblePrimitiveVS","Primitive is missing attribute "+a+", disabling custom vertex shader");u.push(t.attributeField),c="vsInput.attributes."+a+" = "+t.value+";",l.push(c)}i.enabled=!0,i.attributeFields=u,i.initializationLines=l}(e,o,i),(0,r.Z)(e.fragmentShaderText)&&function(e,t,i){const n=y(t,e.usedVariablesFragment.attributeSet,!0),o=n.addToShader,s=n.missingAttributes;let a,c;const u=[],l=[];for(a in o)if(o.hasOwnProperty(a)){const e=[o[a].glslType,a];u.push(e),c="fsInput.attributes."+a+" = attributes."+a+";",l.push(c)}for(let e=0;e<s.length;e++){a=s[e];const t=Z(a);if(!(0,r.Z)(t))return void p._oneTimeWarning("CustomShaderPipelineStage.incompatiblePrimitiveFS","Primitive is missing attribute "+a+", disabling custom fragment shader.");u.push(t.attributeField),c="fsInput.attributes."+a+" = "+t.value+";",l.push(c)}const h=function(e){const t=[],i=[],n=e.usedVariablesFragment.attributeSet;return n.hasOwnProperty("positionWC")&&(t.push(["vec3","positionWC"]),i.push("fsInput.attributes.positionWC = attributes.positionWC;")),n.hasOwnProperty("positionEC")&&(t.push(["vec3","positionEC"]),i.push("fsInput.attributes.positionEC = attributes.positionEC;")),{attributeFields:t,initializationLines:i}}(e);i.enabled=!0,i.attributeFields=u.concat(h.attributeFields),i.initializationLines=h.initializationLines.concat(l)}(e,o,n);const s=e.usedVariablesFragment.attributeSet.hasOwnProperty("positionWC")&&n.enabled;return{vertexLines:i,fragmentLines:n,vertexLinesEnabled:i.enabled,fragmentLinesEnabled:n.enabled,customShaderEnabled:i.enabled||n.enabled,shouldComputePositionWC:s}}(m,t);if(!_.customShaderEnabled)return;if(function(e,t,i){const n=i.vertexLines;n.enabled&&(function(e,t){let i,n=p.STRUCT_ID_ATTRIBUTES_VS;e.addStruct(n,p.STRUCT_NAME_ATTRIBUTES,s.Z.VERTEX);const r=t.attributeFields;for(i=0;i<r.length;i++){const t=r[i],o=t[0],s=t[1];e.addStructField(n,o,s)}n=p.STRUCT_ID_VERTEX_INPUT,e.addStruct(n,p.STRUCT_NAME_VERTEX_INPUT,s.Z.VERTEX),e.addStructField(n,p.STRUCT_NAME_ATTRIBUTES,"attributes"),e.addStructField(n,d.Z.STRUCT_NAME_FEATURE_IDS,"featureIds");const o=p.FUNCTION_ID_INITIALIZE_INPUT_STRUCT_VS;e.addFunction(o,p.FUNCTION_SIGNATURE_INITIALIZE_INPUT_STRUCT_VS,s.Z.VERTEX);const a=t.initializationLines;e.addFunctionLines(o,a)}(e,n),e.addVertexLines(["#line 0",t.vertexShaderText,c.Z]));const r=i.fragmentLines;r.enabled&&(function(e,t){let i,n,r,o,a=p.STRUCT_ID_ATTRIBUTES_FS;e.addStruct(a,p.STRUCT_NAME_ATTRIBUTES,s.Z.FRAGMENT);const c=t.attributeFields;for(i=0;i<c.length;i++)n=c[i],r=n[0],o=n[1],e.addStructField(a,r,o);a=p.STRUCT_ID_FRAGMENT_INPUT,e.addStruct(a,p.STRUCT_NAME_FRAGMENT_INPUT,s.Z.FRAGMENT),e.addStructField(a,p.STRUCT_NAME_ATTRIBUTES,"attributes"),e.addStructField(a,d.Z.STRUCT_NAME_FEATURE_IDS,"featureIds");const u=p.FUNCTION_ID_INITIALIZE_INPUT_STRUCT_FS;e.addFunction(u,p.FUNCTION_SIGNATURE_INITIALIZE_INPUT_STRUCT_FS,s.Z.FRAGMENT);const l=t.initializationLines;e.addFunctionLines(u,l)}(e,r),e.addFragmentLines(["#line 0",t.fragmentShaderText,u.Z]))}(o,m,_),_.shouldComputePositionWC&&o.addDefine("COMPUTE_POSITION_WC",void 0,s.Z.BOTH),(0,r.Z)(m.vertexShaderText)&&o.addDefine("HAS_CUSTOM_VERTEX_SHADER",void 0,s.Z.VERTEX),(0,r.Z)(m.fragmentShaderText)){o.addDefine("HAS_CUSTOM_FRAGMENT_SHADER",void 0,s.Z.FRAGMENT);const e=h.Z.getDefineName(m.mode);o.addDefine(e,void 0,s.Z.FRAGMENT)}const g=m.uniforms;for(const e in g)if(g.hasOwnProperty(e)){const t=g[e];o.addUniform(t.type,e)}const b=m.varyings;for(const e in b)if(b.hasOwnProperty(e)){const t=b[e];o.addVarying(t,e)}(0,r.Z)(m.lightingModel)&&(e.lightingOptions.lightingModel=m.lightingModel);const A=e.alphaOptions;m.isTranslucent?(A.pass=a.Z.TRANSLUCENT,A.alphaMode=l.Z.BLEND):(A.pass=void 0,A.alphaMode=l.Z.OPAQUE),e.uniformMap=(0,n.Z)(e.uniformMap,m.uniformMap)}},m={position:"vec3",normal:"vec3",tangent:"vec3",bitangent:"vec3",texCoord:"vec2",color:"vec4",joints:"ivec4",weights:"vec4"},_={position:"vec3(0.0)",normal:"vec3(0.0, 0.0, 1.0)",tangent:"vec3(1.0, 0.0, 0.0)",bitangent:"vec3(0.0, 1.0, 0.0)",texCoord:"vec2(0.0)",color:"vec4(1.0)",joints:"ivec4(0)",weights:"vec4(0.0)"};function Z(e){let t=e.replace(/_[0-9]+$/,"");t=t.replace(/(MC|EC)$/,"");const i=m[t],n=_[t];if((0,r.Z)(i))return{attributeField:[i,e],value:n}}const g={positionWC:!0,positionEC:!0};function y(e,t,i){let n,r;const o={};for(r in e)if(e.hasOwnProperty(r)){const s=e[r];n=r,i&&"normalMC"===r?n="normalEC":i&&"tangentMC"===r&&(n="tangentEC"),t.hasOwnProperty(n)&&(o[n]=s)}const s=[];for(r in t)if(t.hasOwnProperty(r)){if(g.hasOwnProperty(r))continue;n=r,i&&"normalEC"===r?n="normalMC":i&&"tangentEC"===r&&(n="tangentMC"),e.hasOwnProperty(n)||s.push(r)}return{addToShader:o,missingAttributes:s}}p._oneTimeWarning=o.Z;const b=p},208476:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(426468),r=i(114754),o=i(30171),s=i(10146);const a={};function c(e,t){const i=e.shaderBuilder,n=e.uniformMap,r=t.variableName,s=t.attribute.quantization;if(s.octEncoded){const e="model_normalizationRange_"+r;i.addUniform("float",e,o.Z.VERTEX),n[e]=function(){return s.normalizationRange}}else{const e="model_quantizedVolumeOffset_"+r,a="model_quantizedVolumeStepSize_"+r,c=t.glslType;i.addUniform(c,e,o.Z.VERTEX),i.addUniform(c,a,o.Z.VERTEX);let l=s.quantizedVolumeOffset,h=s.quantizedVolumeStepSize;/^color_\d+$/.test(r)&&(l=u(l,0),h=u(h,1)),n[e]=function(){return l},n[a]=function(){return h}}}function u(e,t){return e instanceof r.Z?e:new r.Z(e.x,e.y,e.z,t)}function l(e,t){const i=t.variableName,n=t.attribute.quantization;let r;r=n.octEncoded?function(e,t){return"attributes."+e+" = czm_octDecode("+("a_quantized_"+e)+", "+("model_normalizationRange_"+e)+")"+(t.octEncodedZXY?".zxy":".xyz")+";"}(i,n):function(e){return"attributes."+e+" = model_quantizedVolumeOffset_"+e+" + a_quantized_"+e+" * model_quantizedVolumeStepSize_"+e+";"}(i),e.addFunctionLines(a.FUNCTION_ID_DEQUANTIZATION_STAGE_VS,[r])}a.name="DequantizationPipelineStage",a.FUNCTION_ID_DEQUANTIZATION_STAGE_VS="dequantizationStage",a.FUNCTION_SIGNATURE_DEQUANTIZATION_STAGE_VS="void dequantizationStage(inout ProcessedAttributes attributes)",a.process=function(e,t){const i=e.shaderBuilder;i.addFunction(a.FUNCTION_ID_DEQUANTIZATION_STAGE_VS,a.FUNCTION_SIGNATURE_DEQUANTIZATION_STAGE_VS,o.Z.VERTEX),i.addDefine("USE_DEQUANTIZATION",void 0,o.Z.VERTEX);const r=t.attributes;for(let t=0;t<r.length;t++){const o=r[t],a=o.quantization;if(!(0,n.Z)(a))continue;const u=s.Z.getAttributeInfo(o);l(i,u),c(e,u)}};const h=a},997100:(e,t,i)=>{"use strict";i.d(t,{Z:()=>y});var n=i(997274),r=i(406144),o=i(426468),s=i(30171),a=i(636807),c=i(50720),u=i(10146),l=i(578765),h=i(148306),d=i(73457),f=i(62687);const p={};function m(e,t,i){const n=e.shaderBuilder;n.addStructField(p.STRUCT_ID_FEATURE_IDS_VS,"float",i),n.addStructField(p.STRUCT_ID_FEATURE_IDS_FS,"float",i);const r=t.setIndex,o=i.replace(/_\d+$/,"_"),s="a_"+o+r,a="v_"+o+r,c="featureIds."+i+" = "+s+";",u="featureIds."+i+" = "+a+";";n.addFunctionLines(p.FUNCTION_ID_INITIALIZE_FEATURE_IDS_VS,[c]),n.addFunctionLines(p.FUNCTION_ID_INITIALIZE_FEATURE_IDS_FS,[u]),n.addVarying("float",a),n.addFunctionLines(p.FUNCTION_ID_SET_FEATURE_ID_VARYINGS,[a+" = "+s+";"])}function _(e,t,i){const n=e.shaderBuilder;n.addStructField(p.STRUCT_ID_FEATURE_IDS_VS,"float",i),n.addStructField(p.STRUCT_ID_FEATURE_IDS_FS,"float",i);const r=t.setIndex,o=i.replace(/_\d+$/,"_"),s=["featureIds."+i+" = attributes."+o+r+";"];n.addFunctionLines(p.FUNCTION_ID_INITIALIZE_FEATURE_IDS_VS,s),n.addFunctionLines(p.FUNCTION_ID_INITIALIZE_FEATURE_IDS_FS,s)}function Z(e,t,i,r,s,u){!function(e,t,i,r,s){const u=e.model;let l,h;if((0,o.Z)(t.repeat)){const e=function(e,t){const i=e.offset,n=e.repeat,r=new Float32Array(t);for(let e=0;e<t;e++)r[e]=i+Math.floor(e/n);return r}(t,i);l=a.Z.createVertexBuffer({context:s.context,typedArray:e,usage:c.Z.STATIC_DRAW}),l.vertexArrayDestroyable=!1,u._resources.push(l)}else h=[t.offset];const d={index:e.attributeIndex++,instanceDivisor:r,value:h,vertexBuffer:l,normalize:!1,componentsPerAttribute:1,componentDatatype:n.Z.FLOAT,strideInBytes:n.Z.getSizeInBytes(n.Z.FLOAT),offsetInBytes:0};e.attributes.push(d)}(e,t,r,s,u);const l=e.shaderBuilder,h="a_implicit_"+i;l.addAttribute("float",h);const d="v_implicit_"+i;l.addVarying("float",d),l.addStructField(p.STRUCT_ID_FEATURE_IDS_VS,"float",i),l.addStructField(p.STRUCT_ID_FEATURE_IDS_FS,"float",i),l.addFunctionLines(p.FUNCTION_ID_SET_FEATURE_ID_VARYINGS,[d+" = "+h+";"]),l.addFunctionLines(p.FUNCTION_ID_INITIALIZE_FEATURE_IDS_VS,["featureIds."+i+" = "+h+";"]),l.addFunctionLines(p.FUNCTION_ID_INITIALIZE_FEATURE_IDS_FS,["featureIds."+i+" = "+d+";"])}function g(e,t,i,n,o){const a="u_featureIdTexture_"+n,c=e.uniformMap,u=t.textureReader;c[a]=function(){return(0,r.Z)(u.texture,o.context.defaultTexture)};const l=e.shaderBuilder;l.addStructField(p.STRUCT_ID_FEATURE_IDS_FS,"float",i),l.addUniform("sampler2D",a,s.Z.FRAGMENT);const h="floor(texture2D("+a+", v_texCoord_"+u.texCoord+")."+u.channels+" * 255.0 + 0.5)";l.addFunctionLines(p.FUNCTION_ID_INITIALIZE_FEATURE_IDS_FS,["featureIds."+i+" = "+h+";"])}p.name="FeatureIdPipelineStage",p.STRUCT_ID_FEATURE_IDS_VS="FeatureIdsVS",p.STRUCT_ID_FEATURE_IDS_FS="FeatureIdsFS",p.STRUCT_NAME_FEATURE_IDS="FeatureIds",p.FUNCTION_ID_INITIALIZE_FEATURE_IDS_VS="initializeFeatureIdsVS",p.FUNCTION_ID_INITIALIZE_FEATURE_IDS_FS="initializeFeatureIdsFS",p.FUNCTION_SIGNATURE_INITIALIZE_FEATURE_IDS="void initializeFeatureIds(out FeatureIds featureIds, ProcessedAttributes attributes)",p.FUNCTION_ID_SET_FEATURE_ID_VARYINGS="setFeatureIdVaryings",p.FUNCTION_SIGNATURE_SET_FEATURE_ID_VARYINGS="void setFeatureIdVaryings()",p.process=function(e,t,i){const n=e.shaderBuilder;!function(e){e.addStruct(p.STRUCT_ID_FEATURE_IDS_VS,p.STRUCT_NAME_FEATURE_IDS,s.Z.VERTEX),e.addStruct(p.STRUCT_ID_FEATURE_IDS_FS,p.STRUCT_NAME_FEATURE_IDS,s.Z.FRAGMENT),e.addFunction(p.FUNCTION_ID_INITIALIZE_FEATURE_IDS_VS,p.FUNCTION_SIGNATURE_INITIALIZE_FEATURE_IDS,s.Z.VERTEX),e.addFunction(p.FUNCTION_ID_INITIALIZE_FEATURE_IDS_FS,p.FUNCTION_SIGNATURE_INITIALIZE_FEATURE_IDS,s.Z.FRAGMENT),e.addFunction(p.FUNCTION_ID_SET_FEATURE_ID_VARYINGS,p.FUNCTION_SIGNATURE_SET_FEATURE_ID_VARYINGS,s.Z.VERTEX)}(n);const r=e.runtimeNode.node.instances;(0,o.Z)(r)&&function(e,t,i){const n=t.featureIds,r=t.attributes[0].count;for(let t=0;t<n.length;t++){const o=n[t],s="instanceFeatureId_"+t;o instanceof h.Z.FeatureIdAttribute?m(e,o,s):Z(e,o,s,r,1,i)}}(e,r,i),function(e,t,i){const n=t.featureIds,r=u.Z.getAttributeBySemantic(t,l.Z.POSITION).count;for(let t=0;t<n.length;t++){const o=n[t],s="featureId_"+t;o instanceof h.Z.FeatureIdAttribute?_(e,o,s):o instanceof h.Z.FeatureIdImplicitRange?Z(e,o,s,r,void 0,i):g(e,o,s,t,i)}}(e,t,i),n.addVertexLines([f.Z]),n.addFragmentLines([d.Z])};const y=p},678362:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});var n=i(426468),r=i(195809),o=i(295189),s=i(578765),a=i(830588),c=i(430492),u=i(146778),l=i(30171),h=i(10146),d=i(841811);const f={};function p(e,t,i){const r=e.shaderBuilder,a=h.Z.getAttributeInfo(t);!function(e,t,i){const r=t.quantization;let a,c;(0,n.Z)(r)?(a=r.type,c=r.componentDatatype):(a=t.type,c=t.componentDatatype);const u=t.semantic,l=t.setIndex;u===s.Z.FEATURE_ID&&l>=e.featureIdVertexAttributeSetIndex&&(e.featureIdVertexAttributeSetIndex=l+1);const h={index:i,value:(0,n.Z)(t.buffer)?void 0:t.constant,vertexBuffer:t.buffer,componentsPerAttribute:o.Z.getNumberOfComponents(a),componentDatatype:c,offsetInBytes:t.byteOffset,strideInBytes:t.byteStride,normalize:t.normalized};e.attributes.push(h)}(e,t,i),function(e,t){const i=t.attribute.semantic,n=t.variableName;let r,o;t.isQuantized?(r="a_quantized_"+n,o=t.quantizedGlslType):(r="a_"+n,o=t.glslType),i===s.Z.POSITION?e.setPositionAttribute(o,r):e.addAttribute(o,r)}(r,a),function(e,t){const i=t.variableName;let n,r="v_"+i;"normalMC"===i?(r="v_normalEC",n=t.glslType):"tangentMC"===i?(n="vec3",r="v_tangentEC"):n=t.glslType,e.addVarying(n,r)}(r,a),(0,n.Z)(t.semantic)&&function(e,t){const i=t.semantic,n=t.setIndex;switch(i){case s.Z.NORMAL:e.addDefine("HAS_NORMALS");break;case s.Z.TANGENT:e.addDefine("HAS_TANGENTS");break;case s.Z.FEATURE_ID:case s.Z.TEXCOORD:case s.Z.COLOR:e.addDefine("HAS_"+i+"_"+n)}}(r,t),e.model.type===d.Z.TILE_PNTS&&r.addDefine("HAS_SRGB_COLOR",void 0,l.Z.FRAGMENT),function(e,t){const i=f.STRUCT_ID_PROCESSED_ATTRIBUTES_VS,n=f.STRUCT_ID_PROCESSED_ATTRIBUTES_FS,r=t.variableName;"tangentMC"===r?(e.addStructField(i,"vec3","tangentMC"),e.addStructField(n,"vec3","tangentEC")):"normalMC"===r?(e.addStructField(i,"vec3","normalMC"),e.addStructField(n,"vec3","normalEC")):(e.addStructField(i,t.glslType,r),e.addStructField(n,t.glslType,r))}(r,a),function(e,t){if(t.isQuantized)return;const i=f.FUNCTION_ID_INITIALIZE_ATTRIBUTES,n=t.variableName;let r;r="tangentMC"===n?"attributes.tangentMC = a_tangentMC.xyz;":"attributes."+n+" = a_"+n+";",e.addFunctionLines(i,[r])}(r,a),function(e,t){const i=t.attribute.semantic,r=t.attribute.setIndex;if((0,n.Z)(i)&&!(0,n.Z)(r))return;let o=f.FUNCTION_ID_SET_DYNAMIC_VARYINGS_VS;const s=t.variableName;let a="v_"+s+" = attributes."+s+";";e.addFunctionLines(o,[a]),o=f.FUNCTION_ID_SET_DYNAMIC_VARYINGS_FS,a="attributes."+s+" = v_"+s+";",e.addFunctionLines(o,[a])}(r,a)}f.name="GeometryPipelineStage",f.STRUCT_ID_PROCESSED_ATTRIBUTES_VS="ProcessedAttributesVS",f.STRUCT_ID_PROCESSED_ATTRIBUTES_FS="ProcessedAttributesFS",f.STRUCT_NAME_PROCESSED_ATTRIBUTES="ProcessedAttributes",f.FUNCTION_ID_INITIALIZE_ATTRIBUTES="initializeAttributes",f.FUNCTION_SIGNATURE_INITIALIZE_ATTRIBUTES="void initializeAttributes(out ProcessedAttributes attributes)",f.FUNCTION_ID_SET_DYNAMIC_VARYINGS_VS="setDynamicVaryingsVS",f.FUNCTION_ID_SET_DYNAMIC_VARYINGS_FS="setDynamicVaryingsFS",f.FUNCTION_SIGNATURE_SET_DYNAMIC_VARYINGS="void setDynamicVaryings(inout ProcessedAttributes attributes)",f.process=function(e,t){const i=e.shaderBuilder;let n;i.addStruct(f.STRUCT_ID_PROCESSED_ATTRIBUTES_VS,"ProcessedAttributes",l.Z.VERTEX),i.addStruct(f.STRUCT_ID_PROCESSED_ATTRIBUTES_FS,"ProcessedAttributes",l.Z.FRAGMENT),i.addStruct(u.Z.STRUCT_ID_SELECTED_FEATURE,u.Z.STRUCT_NAME_SELECTED_FEATURE,l.Z.BOTH),i.addFunction(f.FUNCTION_ID_INITIALIZE_ATTRIBUTES,f.FUNCTION_SIGNATURE_INITIALIZE_ATTRIBUTES,l.Z.VERTEX),i.addVarying("vec3","v_positionWC"),i.addVarying("vec3","v_positionEC"),i.addStructField(f.STRUCT_ID_PROCESSED_ATTRIBUTES_FS,"vec3","positionWC"),i.addStructField(f.STRUCT_ID_PROCESSED_ATTRIBUTES_FS,"vec3","positionEC"),i.addFunction(f.FUNCTION_ID_SET_DYNAMIC_VARYINGS_VS,f.FUNCTION_SIGNATURE_SET_DYNAMIC_VARYINGS,l.Z.VERTEX),i.addFunction(f.FUNCTION_ID_SET_DYNAMIC_VARYINGS_FS,f.FUNCTION_SIGNATURE_SET_DYNAMIC_VARYINGS,l.Z.FRAGMENT);for(let i=0;i<t.attributes.length;i++){const r=t.attributes[i];n=r.semantic===s.Z.POSITION?0:e.attributeIndex++,p(e,r,n)}!function(e,t){let i=!1,n=!1;for(let e=0;e<t.length;e++){const r=t[e];r.semantic===s.Z.NORMAL?i=!0:r.semantic===s.Z.TANGENT&&(n=!0)}i&&n&&(e.addDefine("HAS_BITANGENTS"),e.addFunctionLines(f.FUNCTION_ID_INITIALIZE_ATTRIBUTES,["attributes.bitangentMC = normalize(cross(a_normalMC, a_tangentMC.xyz) * a_tangentMC.w);"]),e.addVarying("vec3","v_bitangentEC"),e.addStructField(f.STRUCT_ID_PROCESSED_ATTRIBUTES_VS,"vec3","bitangentMC"),e.addStructField(f.STRUCT_ID_PROCESSED_ATTRIBUTES_FS,"vec3","bitangentEC"))}(i,t.attributes),t.primitiveType===r.Z.POINTS&&i.addDefine("PRIMITIVE_TYPE_POINTS"),i.addVertexLines([c.Z]),i.addFragmentLines([a.Z])};const m=f},379176:(e,t,i)=>{"use strict";i.d(t,{Z:()=>k});var n=i(247976),r=i(39213),o=i(919382),s=i(447490),a=i(357299),c=i(997274),u=i(406144),l=i(426468),h=i(253316),d=i(549773),f=i(482103),p=i(771918),m=i(957312),_=i(165373),Z=i(583917),g=i(211303),y=i(148306),b=i(331508),A=i(785049),w=i(129782),v=i(81967),T=i(50128),C=i(358198),E=i(527758),x=i(232804),S=i(295189),O=i(360791);const I=y.Z.Attribute,D=y.Z.FeatureIdAttribute,P=y.Z.Instances;function R(e){const t=(e=(0,u.Z)(e,u.Z.EMPTY_OBJECT)).i3dmResource,i=e.arrayBuffer;let n=e.baseResource;const o=(0,u.Z)(e.byteOffset,0),s=(0,u.Z)(e.releaseGltfJson,!1),c=(0,u.Z)(e.asynchronous,!0),h=(0,u.Z)(e.incrementallyLoadTextures,!0),d=(0,u.Z)(e.upAxis,r.Z.Y),f=(0,u.Z)(e.forwardAxis,r.Z.X),p=(0,u.Z)(e.loadAsTypedArray,!1);a.Z.typeOf.object("options.i3dmResource",t),a.Z.typeOf.object("options.arrayBuffer",i),n=(0,l.Z)(n)?n:t.clone(),this._i3dmResource=t,this._baseResource=n,this._arrayBuffer=i,this._byteOffset=o,this._releaseGltfJson=s,this._asynchronous=c,this._incrementallyLoadTextures=h,this._upAxis=d,this._forwardAxis=f,this._loadAsTypedArray=p,this._state=0,this._promise=E.Z.defer(),this._gltfLoader=void 0,this._transform=Z.Z.IDENTITY,this._batchTable=void 0,this._featureTable=void 0,this._instancesLength=0}(0,l.Z)(Object.create)&&(R.prototype=Object.create(v.Z.prototype),R.prototype.constructor=R),Object.defineProperties(R.prototype,{promise:{get:function(){return this._promise.promise}},texturesLoadedPromise:{get:function(){return this._gltfLoader.texturesLoadedPromise}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}}),R.prototype.load=function(){const e=m.Z.parse(this._arrayBuffer,this._byteOffset),t=e.featureTableJson,i=e.featureTableBinary,n=e.batchTableJson,r=e.batchTableBinary,a=e.gltfFormat,u=new s.Z(t,i);this._featureTable=u;const h=u.getGlobalProperty("INSTANCES_LENGTH");if(u.featuresLength=h,!(0,l.Z)(h))throw new T.Z("Feature table global property: INSTANCES_LENGTH must be defined");this._instancesLength=h;const y=u.getGlobalProperty("RTC_CENTER",c.Z.FLOAT,3);(0,l.Z)(y)&&(this._transform=Z.Z.fromTranslation(o.Z.fromArray(y))),this._batchTable={json:n,binary:r};const v={upAxis:this._upAxis,forwardAxis:this._forwardAxis,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAsTypedArray:this._loadAsTypedArray};if(0===a){let t=(0,f.Z)(e.gltf);t=t.replace(/[\s\0]+$/,"");const i=this._baseResource.getDerivedResource({url:t});v.gltfResource=i,v.baseResource=i}else v.gltfResource=this._i3dmResource,v.typedArray=e.gltf;const C=new p.Z(v);this._gltfLoader=C,this._state=1;const E=this;C.load(),C.promise.then((function(){if(E.isDestroyed())return;const e=C.components;e.transform=E._transform,function(e,t){let i;const n=e._featureTable,r=e._instancesLength;if(0===r)return;const s=n.getGlobalProperty("RTC_CENTER",c.Z.FLOAT,3),a=n.getGlobalProperty("EAST_NORTH_UP"),u=n.hasProperty("NORMAL_UP")||n.hasProperty("NORMAL_UP_OCT32P")||a,h=n.hasProperty("SCALE")||n.hasProperty("SCALE_NON_UNIFORM"),d=function(e,t){if(e.hasProperty("POSITION"))return e.getPropertyArray("POSITION",c.Z.FLOAT,3);if(e.hasProperty("POSITION_QUANTIZED")){const t=e.getPropertyArray("POSITION_QUANTIZED",c.Z.UNSIGNED_SHORT,3),i=e.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",c.Z.FLOAT,3);if(!(0,l.Z)(i))throw new T.Z("Global property: QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");const n=e.getGlobalProperty("QUANTIZED_VOLUME_SCALE",c.Z.FLOAT,3);if(!(0,l.Z)(n))throw new T.Z("Global property: QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");for(let e=0;e<t.length/3;e++){const r=t[e];for(let o=0;o<3;o++)t[3*e+o]=r[o]/65535*n[o]+i[o]}return t}throw new T.Z("Either POSITION or POSITION_QUANTIZED must be defined for each instance.")}(n);let f,p;u&&(f=new Float32Array(4*r)),h&&(p=new Float32Array(3*r));const m=new Float32Array(r),g=o.Z.unpackArray(d);let y=new o.Z;const b=new o.Z,A=new o.Z,v=new o.Z,C=new _.Z,E=new w.Z,R=new Array(4),M=new o.Z,L=new Array(3),k=new Z.Z;if(!(0,l.Z)(s)){const e=O.Z.fromPoints(g);for(i=0;i<g.length;i++)o.Z.subtract(g[i],e.center,B),d[3*i+0]=B.x,d[3*i+1]=B.y,d[3*i+2]=B.z;t.transform=Z.Z.fromTranslation(e.center)}for(i=0;i<r;i++){y=o.Z.clone(g[i]),(0,l.Z)(s)&&o.Z.add(y,o.Z.unpack(s),y),u&&(N(n,a,i,E,y,A,b,v,C,k),w.Z.pack(E,R,0),f[4*i+0]=R[0],f[4*i+1]=R[1],f[4*i+2]=R[2],f[4*i+3]=R[3]),h&&(F(n,i,M),o.Z.pack(M,L,0),p[3*i+0]=L[0],p[3*i+1]=L[1],p[3*i+2]=L[2]);let e=n.getProperty("BATCH_ID",c.Z.UNSIGNED_SHORT,1,i);(0,l.Z)(e)||(e=i),m[i]=e}const U=new P;U.transformInWorldSpace=!0;const V=new I;if(V.name="Instance Translation",V.semantic=x.Z.TRANSLATION,V.componentDatatype=c.Z.FLOAT,V.type=S.Z.VEC3,V.count=r,V.packedTypedArray=d,U.attributes.push(V),u){const e=new I;e.name="Instance Rotation",e.semantic=x.Z.ROTATION,e.componentDatatype=c.Z.FLOAT,e.type=S.Z.VEC4,e.count=r,e.packedTypedArray=f,U.attributes.push(e)}if(h){const e=new I;e.name="Instance Scale",e.semantic=x.Z.SCALE,e.componentDatatype=c.Z.FLOAT,e.type=S.Z.VEC3,e.count=r,e.packedTypedArray=p,U.attributes.push(e)}const z=new I;z.name="Instance Feature ID",z.setIndex=0,z.semantic=x.Z.FEATURE_ID,z.componentDatatype=c.Z.FLOAT,z.type=S.Z.SCALAR,z.count=r,z.packedTypedArray=m,U.attributes.push(z);const H=new D;for(H.propertyTableId=0,H.setIndex=0,U.featureIds.push(H),i=0;i<t.nodes.length;i++){const e=t.nodes[i];e.primitives.length>0&&(e.instances=U)}}(E,e),function(e,t){const i=e._batchTable,n=e._instancesLength;if(0===n)return;let r;if((0,l.Z)(i.json))r=(0,b.Z)({count:n,batchTable:i.json,binaryBody:i.binary});else{const e=new A.Z({name:g.Z.BATCH_TABLE_CLASS_NAME,count:n});r=new d.Z({schema:{},propertyTables:[e]})}t.featureMetadata=r}(E,e),E._components=e,E._state=3,E._promise.resolve(E)})).otherwise((function(e){E.isDestroyed()||function(e,t){e.unload(),e._state=4;t=e.getError("Failed to load I3DM",t),e._promise.reject(t)}(E,e)}))},R.prototype.process=function(e){a.Z.typeOf.object("frameState",e),1===this._state&&(this._state=2),2===this._state&&this._gltfLoader.process(e)};const B=new o.Z,M=new Array(4),L=new Array(4);function N(e,t,i,r,s,a,u,d,f,p){const m=e.getProperty("NORMAL_UP",c.Z.FLOAT,3,i,M),g=e.getProperty("NORMAL_RIGHT",c.Z.FLOAT,3,i,L);let y=!1;if((0,l.Z)(m)){if(!(0,l.Z)(g))throw new T.Z("To define a custom orientation, both NORMAL_UP and NORMAL_RIGHT must be defined.");o.Z.unpack(m,0,a),o.Z.unpack(g,0,u),y=!0}else{const r=e.getProperty("NORMAL_UP_OCT32P",c.Z.UNSIGNED_SHORT,2,i,M),o=e.getProperty("NORMAL_RIGHT_OCT32P",c.Z.UNSIGNED_SHORT,2,i,L);if((0,l.Z)(r)){if(!(0,l.Z)(o))throw new T.Z("To define a custom orientation with oct-encoded vectors, both NORMAL_UP_OCT32P and NORMAL_RIGHT_OCT32P must be defined.");n.Z.octDecodeInRange(r[0],r[1],65535,a),n.Z.octDecodeInRange(o[0],o[1],65535,u),y=!0}else t?(C.Z.eastNorthUpToFixedFrame(s,h.Z.WGS84,p),Z.Z.getMatrix3(p,f)):_.Z.clone(_.Z.IDENTITY,f)}y&&(o.Z.cross(u,a,d),o.Z.normalize(d,d),_.Z.setColumn(f,0,u,f),_.Z.setColumn(f,1,a,f),_.Z.setColumn(f,2,d,f)),w.Z.fromRotationMatrix(f,r)}function F(e,t,i){i=o.Z.fromElements(1,1,1,i);const n=e.getProperty("SCALE",c.Z.FLOAT,1,t);(0,l.Z)(n)&&o.Z.multiplyByScalar(i,n,i);const r=e.getProperty("SCALE_NON_UNIFORM",c.Z.FLOAT,3,t,M);(0,l.Z)(r)&&(i.x*=r[0],i.y*=r[1],i.z*=r[2])}R.prototype.unload=function(){(0,l.Z)(this._gltfLoader)&&this._gltfLoader.unload(),this._components=void 0};const k=R},910903:(e,t,i)=>{"use strict";i.d(t,{Z:()=>T});var n=i(919382),r=i(997274),o=i(426468),s=i(583917),a=i(295189),c=i(129782),u=i(636807),l=i(50720),h=i(232804),d=i(10146),f=i(771304),p=i(67301),m=i(835200),_=i(30171);const Z=new s.Z,g={name:"InstancingPipelineStage",process:function(e,t,i){const n=t.instances,c=n.attributes[0].count;let g=[];const y=e.model.sceneGraph,b=e.shaderBuilder;b.addDefine("HAS_INSTANCING"),b.addVertexLines([f.Z]);const A=d.Z.getAttributeBySemantic(n,h.Z.TRANSLATION);let w,T;(0,o.Z)(A)&&(w=A.max,T=A.min);const C=d.Z.getAttributeBySemantic(n,h.Z.ROTATION);if(!(0,o.Z)(C)&&(0,o.Z)(w)&&(0,o.Z)(T)){(0,o.Z)(A)&&(g.push({index:e.attributeIndex++,vertexBuffer:A.buffer,componentsPerAttribute:a.Z.getNumberOfComponents(A.type),componentDatatype:A.componentDatatype,normalize:!1,offsetInBytes:A.byteOffset,strideInBytes:A.byteStride,instanceDivisor:1}),e.instancingTranslationMax=w,e.instancingTranslationMin=T,b.addDefine("HAS_INSTANCE_TRANSLATION"),b.addAttribute("vec3","a_instanceTranslation"));const t=d.Z.getAttributeBySemantic(n,h.Z.SCALE);(0,o.Z)(t)&&(g.push({index:e.attributeIndex++,vertexBuffer:t.buffer,componentsPerAttribute:a.Z.getNumberOfComponents(t.type),componentDatatype:t.componentDatatype,normalize:!1,offsetInBytes:t.byteOffset,strideInBytes:t.byteStride,instanceDivisor:1}),b.addDefine("HAS_INSTANCE_SCALE"),b.addAttribute("vec3","a_instanceScale"))}else g=function(e,t,i,n){const o=v(e.instances,t,i),s=u.Z.createVertexBuffer({context:n.context,typedArray:o,usage:l.Z.STATIC_DRAW});s.vertexArrayDestroyable=!1,i.model._resources.push(s);const a=r.Z.getSizeInBytes(r.Z.FLOAT),c=[{index:i.attributeIndex++,vertexBuffer:s,componentsPerAttribute:4,componentDatatype:r.Z.FLOAT,normalize:!1,offsetInBytes:0,strideInBytes:12*a,instanceDivisor:1},{index:i.attributeIndex++,vertexBuffer:s,componentsPerAttribute:4,componentDatatype:r.Z.FLOAT,normalize:!1,offsetInBytes:4*a,strideInBytes:12*a,instanceDivisor:1},{index:i.attributeIndex++,vertexBuffer:s,componentsPerAttribute:4,componentDatatype:r.Z.FLOAT,normalize:!1,offsetInBytes:8*a,strideInBytes:12*a,instanceDivisor:1}],h=i.shaderBuilder;return h.addDefine("HAS_INSTANCE_MATRICES"),h.addAttribute("vec4","a_instancingTransformRow0"),h.addAttribute("vec4","a_instancingTransformRow1"),h.addAttribute("vec4","a_instancingTransformRow2"),c}(t,c,e,i);if(function(e,t,i,n){const r=i.attributes,o=e.model,s=e.shaderBuilder;for(let i=0;i<r.length;i++){const c=r[i];if(c.semantic!==h.Z.FEATURE_ID)continue;c.setIndex>=e.featureIdVertexAttributeSetIndex&&(e.featureIdVertexAttributeSetIndex=c.setIndex+1);const d=u.Z.createVertexBuffer({context:t.context,typedArray:c.packedTypedArray,usage:l.Z.STATIC_DRAW});d.vertexArrayDestroyable=!1,o._resources.push(d),n.push({index:e.attributeIndex++,vertexBuffer:d,componentsPerAttribute:a.Z.getNumberOfComponents(c.type),componentDatatype:c.componentDatatype,normalize:!1,offsetInBytes:c.byteOffset,strideInBytes:c.byteStride,instanceDivisor:1}),s.addAttribute("float","a_instanceFeatureId_"+c.setIndex)}}(e,i,n,g),n.transformInWorldSpace){const t=e.uniformMap;b.addDefine("USE_LEGACY_INSTANCING",void 0,_.Z.VERTEX),b.addUniform("mat4","u_instance_modifiedModelView",_.Z.VERTEX),b.addUniform("mat4","u_instance_nodeTransform",_.Z.VERTEX),t.u_instance_modifiedModelView=function(){return s.Z.multiply(i.context.uniformState.view,y.components.transform,Z)},t.u_instance_nodeTransform=function(){return e.runtimeNode.axisCorrectedTransform},b.addVertexLines([m.Z])}else b.addVertexLines([p.Z]);e.instanceCount=c,e.attributes.push.apply(e.attributes,g)}},y=new n.Z,b=new c.Z,A=new n.Z,w=new s.Z;function v(e,t,i){const r=new Float32Array(12*t),a=d.Z.getAttributeBySemantic(e,h.Z.TRANSLATION),u=d.Z.getAttributeBySemantic(e,h.Z.ROTATION),l=d.Z.getAttributeBySemantic(e,h.Z.SCALE),f=new n.Z(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE),p=new n.Z(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),m=(0,o.Z)(a),_=(0,o.Z)(u),Z=(0,o.Z)(l),g=m?a.packedTypedArray:new Float32Array(3*t),v=_?u.packedTypedArray:new Float32Array(4*t);let T;Z?T=l.packedTypedArray:(T=new Float32Array(3*t),T.fill(1));for(let e=0;e<t;e++){const t=new n.Z(g[3*e],g[3*e+1],g[3*e+2],y);n.Z.maximumByComponent(f,t,f),n.Z.minimumByComponent(p,t,p);const o=new c.Z(v[4*e],v[4*e+1],v[4*e+2],_?v[4*e+3]:1,b),a=new n.Z(T[3*e],T[3*e+1],T[3*e+2],A),u=s.Z.fromTranslationQuaternionRotationScale(t,o,a,w),l=12*e;r[l+0]=u[0],r[l+1]=u[4],r[l+2]=u[8],r[l+3]=u[12],r[l+4]=u[1],r[l+5]=u[5],r[l+6]=u[9],r[l+7]=u[13],r[l+8]=u[2],r[l+9]=u[6],r[l+10]=u[10],r[l+11]=u[14],i.instancingTranslationMax=f,i.instancingTranslationMin=p}return r}g._getInstanceTransformsTypedArray=v;const T=g},926286:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({UNLIT:0,PBR:1})},595552:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(30171),r=i(567909),o=i(926286);const s={name:"LightingPipelineStage",process:function(e,t){const i=e.lightingOptions,s=e.shaderBuilder;i.lightingModel===o.Z.PBR?s.addDefine("LIGHTING_PBR",void 0,n.Z.FRAGMENT):s.addDefine("LIGHTING_UNLIT",void 0,n.Z.FRAGMENT),s.addFragmentLines([r.Z])}}},697278:(e,t,i)=>{"use strict";i.d(t,{Z:()=>b});var n=i(426468),r=i(406144),o=i(30171),s=i(843257),a=i(926286),c=i(615822),u=i(842649),l=i(165373),h=i(919382),d=i(114754),f=i(148306);const p=f.Z.Material,m=f.Z.MetallicRoughness,_=f.Z.SpecularGlossiness,Z={};function g(e,t,i,n,r){const s="HAS_"+r+"_TEXTURE_TRANSFORM";e.addDefine(s,void 0,o.Z.FRAGMENT);const a=n+"Transform";e.addUniform("mat3",a,o.Z.FRAGMENT),t[a]=function(){return i.transform}}function y(e,t,i,s,a,c){e.addUniform("sampler2D",s,o.Z.FRAGMENT),t[s]=function(){return(0,r.Z)(i.texture,c)};const u="HAS_"+a+"_TEXTURE";e.addDefine(u,void 0,o.Z.FRAGMENT);const h="v_texCoord_"+i.texCoord,d="TEXCOORD_"+a;e.addDefine(d,h,o.Z.FRAGMENT);const f=i.transform;(0,n.Z)(f)&&!l.Z.equals(f,l.Z.IDENTITY)&&g(e,t,i,s,a)}Z.name="MaterialPipelineStage",Z.process=function(e,t,i){const r=t.material,l=e.uniformMap,f=e.shaderBuilder,Z=i.context.defaultTexture;!function(e,t,i,r,s,a){const c=e.emissiveTexture;(0,n.Z)(c)&&y(i,t,c,"u_emissiveTexture","EMISSIVE",a);const u=e.emissiveFactor;(0,n.Z)(u)&&!h.Z.equals(u,p.DEFAULT_EMISSIVE_FACTOR)&&(i.addUniform("vec3","u_emissiveFactor",o.Z.FRAGMENT),t.u_emissiveFactor=function(){return e.emissiveFactor},i.addDefine("HAS_EMISSIVE_FACTOR",void 0,o.Z.FRAGMENT));const l=e.normalTexture;(0,n.Z)(l)&&y(i,t,l,"u_normalTexture","NORMAL",s);const d=e.occlusionTexture;(0,n.Z)(d)&&y(i,t,d,"u_occlusionTexture","OCCLUSION",r)}(r,l,f,Z,i.context.defaultNormalTexture,i.context.defaultEmissiveTexture),(0,n.Z)(r.specularGlossiness)?function(e,t,i,r){const s=e.specularGlossiness;i.addDefine("USE_SPECULAR_GLOSSINESS",void 0,o.Z.FRAGMENT);const a=s.diffuseTexture;(0,n.Z)(a)&&y(i,t,a,"u_diffuseTexture","DIFFUSE",r);const c=s.diffuseFactor;(0,n.Z)(c)&&!d.Z.equals(c,_.DEFAULT_DIFFUSE_FACTOR)&&(i.addUniform("vec4","u_diffuseFactor",o.Z.FRAGMENT),t.u_diffuseFactor=function(){return s.diffuseFactor},i.addDefine("HAS_DIFFUSE_FACTOR",void 0,o.Z.FRAGMENT));const u=s.specularGlossinessTexture;(0,n.Z)(u)&&y(i,t,u,"u_specularGlossinessTexture","SPECULAR_GLOSSINESS",r);const l=s.specularFactor;(0,n.Z)(l)&&!h.Z.equals(l,_.DEFAULT_SPECULAR_FACTOR)&&(i.addUniform("vec3","u_specularFactor",o.Z.FRAGMENT),t.u_specularFactor=function(){return s.specularFactor},i.addDefine("HAS_SPECULAR_FACTOR",void 0,o.Z.FRAGMENT));const f=s.glossinessFactor;(0,n.Z)(f)&&f!==_.DEFAULT_GLOSSINESS_FACTOR&&(i.addUniform("float","u_glossinessFactor",o.Z.FRAGMENT),t.u_glossinessFactor=function(){return s.glossinessFactor},i.addDefine("HAS_GLOSSINESS_FACTOR",void 0,o.Z.FRAGMENT))}(r,l,f,Z):function(e,t,i,r){const s=e.metallicRoughness;i.addDefine("USE_METALLIC_ROUGHNESS",void 0,o.Z.FRAGMENT);const a=s.baseColorTexture;(0,n.Z)(a)&&y(i,t,a,"u_baseColorTexture","BASE_COLOR",r);const c=s.baseColorFactor;(0,n.Z)(c)&&!d.Z.equals(c,m.DEFAULT_BASE_COLOR_FACTOR)&&(i.addUniform("vec4","u_baseColorFactor",o.Z.FRAGMENT),t.u_baseColorFactor=function(){return s.baseColorFactor},i.addDefine("HAS_BASE_COLOR_FACTOR",void 0,o.Z.FRAGMENT));const u=s.metallicRoughnessTexture;(0,n.Z)(u)&&y(i,t,u,"u_metallicRoughnessTexture","METALLIC_ROUGHNESS",r);const l=s.metallicFactor;(0,n.Z)(l)&&l!==m.DEFAULT_METALLIC_FACTOR&&(i.addUniform("float","u_metallicFactor",o.Z.FRAGMENT),t.u_metallicFactor=function(){return s.metallicFactor},i.addDefine("HAS_METALLIC_FACTOR",void 0,o.Z.FRAGMENT));const h=s.roughnessFactor;(0,n.Z)(h)&&h!==m.DEFAULT_ROUGHNESS_FACTOR&&(i.addUniform("float","u_roughnessFactor",o.Z.FRAGMENT),t.u_roughnessFactor=function(){return s.roughnessFactor},i.addDefine("HAS_ROUGHNESS_FACTOR",void 0,o.Z.FRAGMENT))}(r,l,f,Z);const g=e.lightingOptions;r.unlit?g.lightingModel=a.Z.UNLIT:g.lightingModel=a.Z.PBR;const b=!r.doubleSided;e.renderStateOptions.cull={enabled:b};const A=e.alphaOptions;(0,n.Z)(A.alphaMode)||(A.alphaMode=r.alphaMode,r.alphaMode===s.Z.BLEND?A.pass=u.Z.TRANSLUCENT:r.alphaMode===s.Z.MASK&&(A.alphaCutoff=r.alphaCutoff)),f.addFragmentLines([c.Z])},Z._processTexture=y,Z._processTextureTransform=g;const b=Z},266093:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(843257),r=i(567485),o=i(307260),s=i(473279),a=i(842649),c=i(30171);const u={COLOR_UNIFORM_NAME:"model_color",COLOR_BLEND_UNIFORM_NAME:"model_colorBlend",process:function(e,t,i){const l=e.shaderBuilder;l.addDefine("HAS_MODEL_COLOR",void 0,c.Z.FRAGMENT),l.addFragmentLines([s.Z]);const h={},d=t.color;d.alpha>0&&d.alpha<1&&(e.alphaOptions.pass=a.Z.TRANSLUCENT,e.alphaOptions.alphaMode=n.Z.BLEND),l.addUniform("vec4",u.COLOR_UNIFORM_NAME,c.Z.FRAGMENT),h[u.COLOR_UNIFORM_NAME]=function(){return t.color},l.addUniform("float",u.COLOR_BLEND_UNIFORM_NAME,c.Z.FRAGMENT),h[u.COLOR_BLEND_UNIFORM_NAME]=function(){return r.Z.getColorBlend(t.colorBlendMode,t.colorBlendAmount)},e.uniformMap=(0,o.Z)(h,e.uniformMap)}},l=u},138745:(e,t,i)=>{"use strict";i.d(t,{Z:()=>v});var n=i(357299),r=i(567485),o=i(426468),s=i(406144),a=i(446938),c=i(771918),u=i(936353),l=i(841811),h=i(10146),d=i(842649),f=i(795788),p=i(527758),m=i(54879),_=i(583917),Z=i(782670),g=i(715696),y=i(672287),b=i(779848),A=i(545125),w=i(379176);function v(e){e=(0,s.Z)(e,s.Z.EMPTY_OBJECT),n.Z.typeOf.object("options.loader",e.loader),n.Z.typeOf.object("options.resource",e.resource),this._loader=e.loader,this._resource=e.resource,this.type=(0,s.Z)(e.type,l.Z.GLTF),this.modelMatrix=_.Z.clone((0,s.Z)(e.modelMatrix,_.Z.IDENTITY)),this._modelMatrix=_.Z.clone(this.modelMatrix),this._resourcesLoaded=!1,this._drawCommandsBuilt=!1,this._ready=!1,this._readyPromise=p.Z.defer(),this._customShader=e.customShader,this._content=e.content,this._texturesLoaded=!1;const t=e.color;this._color=(0,s.Z)(t)?A.Z.clone(t):void 0,this._colorBlendMode=(0,s.Z)(e.colorBlendMode,r.Z.HIGHLIGHT),this._colorBlendAmount=(0,s.Z)(e.colorBlendAmount,.5),this._cull=(0,s.Z)(e.cull,!0),this._opaquePass=(0,s.Z)(e.opaquePass,d.Z.OPAQUE),this._allowPicking=(0,s.Z)(e.allowPicking,!0),this._show=(0,s.Z)(e.show,!0),this._style=void 0,this._featureIdIndex=(0,s.Z)(e.featureIdIndex,0),this._instanceFeatureIdIndex=(0,s.Z)(e.instanceFeatureIdIndex,0),this._featureTables=[],this._featureTableId=void 0,this._featureTableIdDirty=!0,this._resources=[],this._boundingSphere=void 0;const i=new g.Z(e.pointCloudShading);this._attenuation=i.attenuation,this._pointCloudShading=i,this._debugShowBoundingVolumeDirty=!1,this._debugShowBoundingVolume=(0,s.Z)(e.debugShowBoundingVolume,!1),function(e){const t=e._loader,i=e._resource;t.load(),t.promise.then((function(t){const i=t.components,n=i.featureMetadata;(0,o.Z)(n)&&n.propertyTableCount>0&&function(e,t){const i=e._featureTables,n=t.propertyTables;for(let t=0;t<n.length;t++){const r=n[t],o=new Z.Z({model:e,propertyTable:r});i.push(o)}}(e,n),e._sceneGraph=new u.Z({model:e,modelComponents:i}),e._resourcesLoaded=!0})).otherwise(h.Z.getFailedLoadFunction(e,"model",i)),(0,s.Z)(t.texturesLoadedPromise,p.Z.resolve()).then((function(){e._texturesLoaded=!0})).otherwise(h.Z.getFailedLoadFunction(e,"model",i))}(this)}Object.defineProperties(v.prototype,{ready:{get:function(){return this._ready}},readyPromise:{get:function(){return this._readyPromise.promise}},loader:{get:function(){return this._loader}},cull:{get:function(){return this._cull}},opaquePass:{get:function(){return this._opaquePass}},pointCloudShading:{get:function(){return this._pointCloudShading},set:function(e){n.Z.defined("pointCloudShading",e),e!==this._pointCloudShading&&this.resetDrawCommands(),this._pointCloudShading=e}},customShader:{get:function(){return this._customShader},set:function(e){e!==this._customShader&&this.resetDrawCommands(),this._customShader=e}},sceneGraph:{get:function(){return this._sceneGraph}},content:{get:function(){return this._content}},featureTableId:{get:function(){return this._featureTableId},set:function(e){this._featureTableId=e}},featureTables:{get:function(){return this._featureTables},set:function(e){this._featureTables=e}},allowPicking:{get:function(){return this._allowPicking}},style:{get:function(){return this._style},set:function(e){e!==this._style&&this.applyStyle(e),this._style=e}},color:{get:function(){return this._color},set:function(e){A.Z.equals(this._color,e)||this.resetDrawCommands(),this._color=A.Z.clone(e,this._color)}},colorBlendMode:{get:function(){return this._colorBlendMode},set:function(e){this._colorBlendMode=e}},colorBlendAmount:{get:function(){return this._colorBlendAmount},set:function(e){this._colorBlendAmount=e}},boundingSphere:{get:function(){if(!this._ready)throw new a.Z("The model is not loaded. Use ModelExperimental.readyPromise or wait for ModelExperimental.ready to be true.");return this._sceneGraph.boundingSphere}},debugShowBoundingVolume:{get:function(){return this._debugShowBoundingVolume},set:function(e){this._debugShowBoundingVolume!==e&&(this._debugShowBoundingVolumeDirty=!0),this._debugShowBoundingVolume=e}},show:{get:function(){return this._show},set:function(e){this._show=e}},featureIdIndex:{get:function(){return this._featureIdIndex},set:function(e){e!==this._featureIdIndex&&(this._featureTableIdDirty=!0),this._featureIdIndex=e}},instanceFeatureIdIndex:{get:function(){return this._instanceFeatureIdIndex},set:function(e){e!==this._instanceFeatureIdIndex&&(this._featureTableIdDirty=!0),this._instanceFeatureIdIndex=e}}}),v.prototype.resetDrawCommands=function(){this._drawCommandsBuilt&&(this.destroyResources(),this._drawCommandsBuilt=!1)},v.prototype.update=function(e){if(this._resourcesLoaded&&this._texturesLoaded||this._loader.process(e),(0,o.Z)(this._customShader)&&this._customShader.update(e),this.pointCloudShading.attenuation!==this._attenuation&&(this.resetDrawCommands(),this._attenuation=this.pointCloudShading.attenuation),!this._resourcesLoaded)return;this._featureTableIdDirty&&(function(e){const t=e._sceneGraph.components,i=t.featureMetadata;(0,o.Z)(i)&&i.propertyTableCount>0&&(e.featureTableId=function(e,t){const i=t._featureIdIndex,n=t._instanceFeatureIdIndex;let r,s,a,c;for(r=0;r<e.nodes.length;r++)if(c=e.nodes[r],(0,o.Z)(c.instances)&&(a=c.instances.featureIds[n],(0,o.Z)(a)&&(0,o.Z)(a.propertyTableId)))return a.propertyTableId;for(r=0;r<e.nodes.length;r++)for(c=e.nodes[r],s=0;s<c.primitives.length;s++){const e=c.primitives[s].featureIds[i];if((0,o.Z)(e))return e.propertyTableId}}(t,e),e.applyStyle(e._style))}(this),this._featureTableIdDirty=!1);const t=this._featureTables;for(let i=0;i<t.length;i++)t[i].update(e),t[i].styleCommandsNeededDirty&&this.resetDrawCommands();if(!this._drawCommandsBuilt){this._sceneGraph.buildDrawCommands(e),this._drawCommandsBuilt=!0;const t=this;if(!t._ready)return void e.afterRender.push((function(){t._ready=!0,t._readyPromise.resolve(t)}))}if(this._debugShowBoundingVolumeDirty&&(function(e,t){const i=e._drawCommands;for(let e=0;e<i.length;e++)i[e].debugShowBoundingVolume=t}(this._sceneGraph,this._debugShowBoundingVolume),this._debugShowBoundingVolumeDirty=!1),_.Z.equals(this.modelMatrix,this._modelMatrix)||this._sceneGraph.updateModelMatrix(this),this._sceneGraph.update(e),this._show){const t=this._sceneGraph.getDrawCommands();e.commandList.push.apply(e.commandList,t)}},v.prototype.isDestroyed=function(){return!1},v.prototype.destroy=function(){const e=this._loader;(0,o.Z)(e)&&e.destroy();const t=this._featureTables;if((0,o.Z)(t))for(let e=0;e<t.length;e++)t[e].destroy();this.destroyResources(),(0,m.Z)(this)},v.prototype.destroyResources=function(){const e=this._resources;for(let t=0;t<e.length;t++)e[t].destroy();this._resources=[]},v.fromGltf=function(e){e=(0,s.Z)(e,s.Z.EMPTY_OBJECT),n.Z.defined("options.gltf",e.gltf);const t={releaseGltfJson:e.releaseGltfJson,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis},i=e.gltf,r=(0,s.Z)(e.basePath,""),a=f.Z.createIfNeeded(r);(0,o.Z)(i.asset)?(t.gltfJson=i,t.baseResource=a,t.gltfResource=a):i instanceof Uint8Array?(t.typedArray=i,t.baseResource=a,t.gltfResource=a):t.gltfResource=f.Z.createIfNeeded(e.gltf);const u=new c.Z(t),h=(0,o.Z)(e.content)?l.Z.TILE_GLTF:l.Z.GLTF;return new v({loader:u,resource:t.gltfResource,type:h,modelMatrix:e.modelMatrix,debugShowBoundingVolume:e.debugShowBoundingVolume,cull:e.cull,opaquePass:e.opaquePass,allowPicking:e.allowPicking,customShader:e.customShader,content:e.content,show:e.show,color:e.color,colorBlendAmount:e.colorBlendAmount,colorBlendMode:e.colorBlendMode,featureIdIndex:e.featureIdIndex,instanceFeatureIdIndex:e.instanceFeatureIdIndex,pointCloudShading:e.pointCloudShading})},v.fromB3dm=function(e){const t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis};return new v({loader:new y.Z(t),resource:t.b3dmResource,type:l.Z.TILE_B3DM,modelMatrix:e.modelMatrix,debugShowBoundingVolume:e.debugShowBoundingVolume,cull:e.cull,opaquePass:e.opaquePass,allowPicking:e.allowPicking,customShader:e.customShader,content:e.content,show:e.show,color:e.color,colorBlendAmount:e.colorBlendAmount,colorBlendMode:e.colorBlendMode,featureIdIndex:e.featureIdIndex,instanceFeatureIdIndex:e.instanceFeatureIdIndex})},v.fromPnts=function(e){const t={arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset};return new v({loader:new b.Z(t),resource:e.resource,type:l.Z.TILE_PNTS,modelMatrix:e.modelMatrix,debugShowBoundingVolume:e.debugShowBoundingVolume,cull:e.cull,opaquePass:e.opaquePass,allowPicking:e.allowPicking,customShader:e.customShader,content:e.content,show:e.show,color:e.color,colorBlendAmount:e.colorBlendAmount,colorBlendMode:e.colorBlendMode,featureIdIndex:e.featureIdIndex,instanceFeatureIdIndex:e.instanceFeatureIdIndex})},v.fromI3dm=function(e){const t={i3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis};return new v({loader:new w.Z(t),resource:t.i3dmResource,type:l.Z.TILE_I3DM,modelMatrix:e.modelMatrix,debugShowBoundingVolume:e.debugShowBoundingVolume,cull:e.cull,opaquePass:e.opaquePass,allowPicking:e.allowPicking,customShader:e.customShader,content:e.content,show:e.show,featureIdAttributeIndex:e.featureIdAttributeIndex,featureIdTextureIndex:e.featureIdTextureIndex})},v.prototype.applyColorAndShow=function(e){const t=(0,o.Z)(e)&&(0,o.Z)(e.color),i=(0,o.Z)(e)&&(0,o.Z)(e.show);this._color=t?e.color.evaluateColor(void 0,this._color):A.Z.clone(A.Z.WHITE,this._color),this._show=!i||e.show.evaluate(void 0)},v.prototype.applyStyle=function(e){(0,o.Z)(this.featureTableId)&&this.featureTables[this.featureTableId].featuresLength>0?this.featureTables[this.featureTableId].applyStyle(e):this.applyColorAndShow(e),this.resetDrawCommands()}},908566:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(39213),r=i(426468),o=i(54879),s=i(842649),a=i(138745);function c(e,t,i){this._tileset=e,this._tile=t,this._resource=i,this._model=void 0,this._groupMetadata=void 0}Object.defineProperties(c.prototype,{featuresLength:{get:function(){const e=this._model,t=e.featureTables,i=e.featureTableId;return(0,r.Z)(t)&&(0,r.Z)(t[i])?t[i].featuresLength:0}},pointsLength:{get:function(){return 0}},trianglesLength:{get:function(){return 0}},geometryByteLength:{get:function(){return 0}},texturesByteLength:{get:function(){return 0}},batchTableByteLength:{get:function(){return 0}},innerContents:{get:function(){}},readyPromise:{get:function(){return this._model.readyPromise}},tileset:{get:function(){return this._tileset}},tile:{get:function(){return this._tile}},url:{get:function(){return this._resource.getUrlComponent(!0)}},batchTable:{get:function(){const e=this._model,t=e.featureTables,i=e.featureTableId;if((0,r.Z)(t)&&(0,r.Z)(t[i]))return t[i]}},groupMetadata:{get:function(){return this._groupMetadata},set:function(e){this._groupMetadata=e}}}),c.prototype.getFeature=function(e){const t=this._model,i=t.featureTableId;if((0,r.Z)(i))return t.featureTables[i].getFeature(e)},c.prototype.hasProperty=function(e,t){const i=this._model,n=i.featureTableId;return!!(0,r.Z)(n)&&i.featureTables[n].hasProperty(e,t)},c.prototype.applyDebugSettings=function(e,t){},c.prototype.applyStyle=function(e){this._model.style=e},c.prototype.update=function(e,t){const i=this._model,n=this._tile;i.colorBlendAmount=e.colorBlendAmount,i.colorBlendMode=e.colorBlendMode,i.modelMatrix=n.computedTransform,i.customShader=e.customShader,i.pointCloudShading=e.pointCloudShading,i.featureIdIndex=e.featureIdIndex,i.instanceFeatureIdIndex=e.instanceFeatureIdIndex,i.update(t)},c.prototype.isDestroyed=function(){return!1},c.prototype.destroy=function(){return this._model=this._model&&this._model.destroy(),(0,o.Z)(this)},c.fromGltf=function(e,t,i,r){const o=new c(e,t,i),u={gltf:r,cull:!1,releaseGltfJson:!0,opaquePass:s.Z.CESIUM_3D_TILE,basePath:i,modelMatrix:t.computedTransform,upAxis:e._gltfUpAxis,forwardAxis:n.Z.X,incrementallyLoadTextures:!1,customShader:e.customShader,content:o,colorBlendMode:e.colorBlendMode,colorBlendAmount:e.colorBlendAmount};return o._model=a.Z.fromGltf(u),o},c.fromB3dm=function(e,t,i,r,o){const u=new c(e,t,i),l={arrayBuffer:r,byteOffset:o,resource:i,cull:!1,releaseGltfJson:!0,opaquePass:s.Z.CESIUM_3D_TILE,modelMatrix:t.computedTransform,upAxis:e._gltfUpAxis,forwardAxis:n.Z.X,incrementallyLoadTextures:!1,customShader:e.customShader,content:u,colorBlendMode:e.colorBlendMode,colorBlendAmount:e.colorBlendAmount};return u._model=a.Z.fromB3dm(l),u},c.fromI3dm=function(e,t,i,r,o){const u=new c(e,t,i),l={arrayBuffer:r,byteOffset:o,resource:i,cull:!1,releaseGltfJson:!0,opaquePass:s.Z.CESIUM_3D_TILE,modelMatrix:t.computedTransform,upAxis:e._gltfUpAxis,forwardAxis:n.Z.X,incrementallyLoadTextures:!1,customShader:e.customShader,content:u,colorBlendMode:e.colorBlendMode,colorBlendAmount:e.colorBlendAmount};return u._model=a.Z.fromI3dm(l),u},c.fromPnts=function(e,t,i,r,o){const u=new c(e,t,i),l={arrayBuffer:r,byteOffset:o,resource:i,cull:!1,releaseGltfJson:!0,opaquePass:s.Z.CESIUM_3D_TILE,modelMatrix:t.computedTransform,upAxis:e._gltfUpAxis,forwardAxis:n.Z.X,incrementallyLoadTextures:!1,customShader:e.customShader,content:u,colorBlendMode:e.colorBlendMode,colorBlendAmount:e.colorBlendAmount};return u._model=a.Z.fromPnts(l),u}},201992:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(357299),r=i(406144),o=i(426468),s=i(446938),a=i(583917),c=i(910903),u=i(377894),l=i(10146);function h(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),n.Z.typeOf.object("options.node",e.node),n.Z.typeOf.object("options.transform",e.transform),n.Z.typeOf.object("options.sceneGraph",e.sceneGraph),n.Z.typeOf.object("options.children",e.children);const t=e.sceneGraph,i=e.transform;this._sceneGraph=t,this._children=e.children,this._node=e.node;const o=t.components;this._originalTransform=a.Z.clone(i),this._axisCorrectedTransform=a.Z.clone(i),l.Z.correctModelMatrix(this._axisCorrectedTransform,o.upAxis,o.forwardAxis),this._transform=a.Z.clone(i),this._computedTransform=a.Z.multiplyTransformation(t.computedModelMatrix,i,new a.Z),this._transformDirty=!1,this.pipelineStages=[],this.runtimePrimitives=[],this.updateStages=[],this.configurePipeline()}Object.defineProperties(h.prototype,{node:{get:function(){return this._node}},sceneGraph:{get:function(){return this._sceneGraph}},children:{get:function(){return this._children}},transform:{get:function(){return this._transform},set:function(e){a.Z.equals(this._transform,e)||(this._transformDirty=!0,this._transform=a.Z.clone(e,this._transform),this._axisCorrectedTransform=a.Z.clone(e,this._axisCorrectedTransform),l.Z.correctModelMatrix(this._axisCorrectedTransform,this._sceneGraph.components.upAxis,this._sceneGraph.components.forwardAxis),a.Z.multiplyTransformation(this._sceneGraph.computedModelMatrix,e,this._computedTransform))}},axisCorrectedTransform:{get:function(){return this._axisCorrectedTransform}},computedTransform:{get:function(){return this._computedTransform}},originalTransform:{get:function(){return this._originalTransform}}}),h.prototype.getChild=function(e){if(n.Z.typeOf.number("index",e),e<0||e>=this.children.length)throw new s.Z("index must be greater than or equal to 0 and less than the number of children.");return this.sceneGraph.runtimeNodes[this.children[e]]},h.prototype.configurePipeline=function(){const e=this.node,t=this.pipelineStages;t.length=0;const i=this.updateStages;i.length=0,(0,o.Z)(e.instances)&&t.push(c.Z),i.push(u.Z)},h.prototype.updateModelMatrix=function(){this._transformDirty=!0,a.Z.multiplyTransformation(this._sceneGraph.computedModelMatrix,this._transform,this._computedTransform)}},877313:(e,t,i)=>{"use strict";i.d(t,{Z:()=>A});var n=i(357299),r=i(406144),o=i(426468),s=i(195809),a=i(5021),c=i(117695),u=i(592892),l=i(277153),h=i(997100),d=i(911440),f=i(208476),p=i(678362),m=i(595552),_=i(697278),Z=i(10146),g=i(242695),y=i(953969),b=i(146778);function A(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),n.Z.typeOf.object("options.primitive",e.primitive),n.Z.typeOf.object("options.node",e.node),n.Z.typeOf.object("options.model",e.model),this.primitive=e.primitive,this.node=e.node,this.model=e.model,this.pipelineStages=[],this.drawCommands=[],this.boundingSphere=void 0,this.updateStages=[],this.configurePipeline()}A.prototype.configurePipeline=function(){const e=this.pipelineStages;e.length=0;const t=this.primitive,i=this.node,n=this.model,r=n.customShader,A=(0,o.Z)(r),w=!(A&&(0,o.Z)(r.fragmentShaderText))||r.mode!==u.Z.REPLACE_MATERIAL,v=Z.Z.hasQuantizedAttributes(t.attributes),T=n.pointCloudShading,C=(0,o.Z)(T)&&T.attenuation,E=function(e,t,i){let n;return(0,o.Z)(t.instances)&&(n=t.instances.featureIds[e.instanceFeatureIdIndex],(0,o.Z)(n))?{hasFeatureIds:!0,hasPropertyTable:(0,o.Z)(n.propertyTableId)}:(n=i.featureIds[e.featureIdIndex],(0,o.Z)(n)?{hasFeatureIds:!0,hasPropertyTable:(0,o.Z)(n.propertyTableId)}:{hasFeatureIds:!1,hasPropertyTable:!1})}(n,i,t);e.push(p.Z),C&&t.primitiveType===s.Z.POINTS&&e.push(y.Z),v&&e.push(f.Z),w&&e.push(_.Z),e.push(h.Z),E.hasPropertyTable&&(e.push(b.Z),e.push(c.Z),e.push(d.Z)),A&&e.push(l.Z),e.push(m.Z),n.allowPicking&&e.push(g.Z),e.push(a.Z)}},936353:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_});var n=i(963737),r=i(360791),o=i(357299),s=i(406144),a=i(426468),c=i(583917),u=i(266093),l=i(877313),h=i(201992),d=i(10146),f=i(429156),p=i(661101),m=i(821431);function _(e){e=(0,s.Z)(e,s.Z.EMPTY_OBJECT),o.Z.typeOf.object("options.model",e.model),o.Z.typeOf.object("options.modelComponents",e.modelComponents),this._model=e.model,this._modelComponents=e.modelComponents,this._pipelineStages=[],this._updateStages=[],this._runtimeNodes=[],this._rootNodes=[],this._drawCommands=[],this._boundingSpheres=[],this.modelPipelineStages=[],this._boundingSphere=void 0,this._computedModelMatrix=c.Z.clone(this._model.modelMatrix),function(e){const t=e._modelComponents,i=t.scene,n=e._model;e._computedModelMatrix=c.Z.multiplyTransformation(n.modelMatrix,t.transform,new c.Z),d.Z.correctModelMatrix(e._computedModelMatrix,t.upAxis,t.forwardAxis);const r=i.nodes;for(let t=0;t<r.length;t++){const n=i.nodes[t],r=Z(e,n,d.Z.getNodeTransform(n));e._rootNodes.push(r)}}(this)}function Z(e,t,i){const n=[];let r;if((0,a.Z)(t.children))for(r=0;r<t.children.length;r++){const o=t.children[r],s=Z(e,o,c.Z.multiply(i,d.Z.getNodeTransform(o),new c.Z));n.push(s)}const o=new h.Z({node:t,transform:i,children:n,sceneGraph:e});if((0,a.Z)(t.primitives))for(r=0;r<t.primitives.length;r++)o.runtimePrimitives.push(new l.Z({primitive:t.primitives[r],node:t,model:e._model}));return e._runtimeNodes.push(o),e._runtimeNodes.length-1}Object.defineProperties(_.prototype,{components:{get:function(){return this._modelComponents}},computedModelMatrix:{get:function(){return this._computedModelMatrix}},boundingSphere:{get:function(){return this._boundingSphere}}}),_.prototype.buildDrawCommands=function(e){const t=this._model,i=new f.Z(t);this.configurePipeline();const o=this.modelPipelineStages;let s,a,c;for(s=0;s<o.length;s++)o[s].process(i,t,e);for(s=0;s<this._runtimeNodes.length;s++){const t=this._runtimeNodes[s];t.configurePipeline();const o=t.pipelineStages,u=new p.Z(i,t);for(a=0;a<o.length;a++)o[a].process(u,t.node,e);for(a=0;a<t.runtimePrimitives.length;a++){const i=t.runtimePrimitives[a];i.configurePipeline();const o=i.pipelineStages,s=new m.Z(u,i);for(c=0;c<o.length;c++)o[c].process(s,i.primitive,e);i.boundingSphere=r.Z.clone(s.boundingSphere),this._boundingSpheres.push(s.boundingSphere);const l=(0,n.Z)(s,e);i.drawCommands=l}}this._boundingSphere=r.Z.fromBoundingSpheres(this._boundingSpheres)},_.prototype.configurePipeline=function(){const e=this.modelPipelineStages;e.length=0;const t=this._model;(0,a.Z)(t.color)&&e.push(u.Z)},_.prototype.update=function(e){let t,i,n;for(t=0;t<this._runtimeNodes.length;t++){const r=this._runtimeNodes[t];for(i=0;i<r.updateStages.length;i++)r.updateStages[i].update(r,this,e);for(i=0;i<r.runtimePrimitives.length;i++){const e=r.runtimePrimitives[i];for(n=0;n<e.updateStages.length;n++)e.updateStages[n].update(e)}}},_.prototype.updateModelMatrix=function(){this._computedModelMatrix=c.Z.clone(this._model.modelMatrix),c.Z.multiply(this._computedModelMatrix,this._modelComponents.transform,this._computedModelMatrix),d.Z.correctModelMatrix(this._computedModelMatrix,this._modelComponents.upAxis,this._modelComponents.forwardAxis);const e=this._rootNodes;for(let t=0;t<e.length;t++)this._runtimeNodes[e[t]].updateModelMatrix()},_.prototype.getDrawCommands=function(){const e=[];for(let t=0;t<this._runtimeNodes.length;t++){const i=this._runtimeNodes[t];for(let t=0;t<i.runtimePrimitives.length;t++){const n=i.runtimePrimitives[t];e.push.apply(e,n.drawCommands)}}return e}},841811:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(357299),r=i(446938);const o={GLTF:"GLTF",TILE_GLTF:"TILE_GLTF",TILE_B3DM:"B3DM",TILE_I3DM:"I3DM",TILE_PNTS:"PNTS",is3DTiles:function(e){switch(n.Z.typeOf.string("modelType",e),e){case o.TILE_GLTF:case o.TILE_B3DM:case o.TILE_I3DM:case o.TILE_PNTS:return!0;case o.GLTF:return!1;default:throw new r.Z("modelType is not a valid value.")}}},s=Object.freeze(o)},10146:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(360791),r=i(919382),o=i(426468),s=i(583917),a=i(129782),c=i(50128),u=i(39213),l=i(295189),h=i(578765);function d(){}d.getFailedLoadFunction=function(e,t,i){return function(n){let r="Failed to load "+t+": "+i;(0,o.Z)(n)&&(r+="\n"+n.message),e._readyPromise.reject(new c.Z(r))}},d.getNodeTransform=function(e){return(0,o.Z)(e.matrix)?e.matrix:s.Z.fromTranslationQuaternionRotationScale((0,o.Z)(e.translation)?e.translation:r.Z.ZERO,(0,o.Z)(e.rotation)?e.rotation:a.Z.IDENTITY,(0,o.Z)(e.scale)?e.scale:r.Z.ONE)},d.getAttributeBySemantic=function(e,t,i){const n=e.attributes,r=n.length;for(let e=0;e<r;++e){const r=n[e],s=!(0,o.Z)(i)||r.setIndex===i;if(r.semantic===t&&s)return r}},d.hasQuantizedAttributes=function(e){if(!(0,o.Z)(e))return!1;for(let t=0;t<e.length;t++){const i=e[t];if((0,o.Z)(i.quantization))return!0}return!1},d.getAttributeInfo=function(e){const t=e.semantic,i=e.setIndex;let n,r=!1;(0,o.Z)(t)?(n=h.Z.getVariableName(t,i),r=!0):(n=e.name,n=n.replace(/^_/,""),n=n.toLowerCase());const s=/^color_\d+$/.test(n),a=e.type;let c=l.Z.getGlslType(a);s&&(c="vec4");const u=(0,o.Z)(e.quantization);let d;return u&&(d=s?"vec4":l.Z.getGlslType(e.quantization.type)),{attribute:e,isQuantized:u,variableName:n,hasSemantic:r,glslType:c,quantizedGlslType:d}};const f=new r.Z,p=new r.Z;d.createBoundingSphere=function(e,t,i,s){const a=d.getAttributeBySemantic(e,"POSITION"),c=a.max,u=a.min;let l;if((0,o.Z)(i)&&(0,o.Z)(s)){const e=r.Z.add(u,s,p),t=r.Z.add(c,i,f);l=n.Z.fromCornerPoints(e,t)}else l=n.Z.fromCornerPoints(u,c);return n.Z.transform(l,t,l),l},d.correctModelMatrix=function(e,t,i){t===u.Z.Y?s.Z.multiplyTransformation(e,u.Z.Y_UP_TO_Z_UP,e):t===u.Z.X&&s.Z.multiplyTransformation(e,u.Z.X_UP_TO_Z_UP,e),i===u.Z.Z&&s.Z.multiplyTransformation(e,u.Z.Z_UP_TO_X_UP,e)}},936853:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(545125),r=i(426468);function o(e){this._model=e.model,this._featureTable=e.featureTable,this._featureId=e.featureId,this._color=void 0}Object.defineProperties(o.prototype,{show:{get:function(){return this._featureTable.getShow(this._featureId)},set:function(e){this._featureTable.setShow(this._featureId,e)}},color:{get:function(){return(0,r.Z)(this._color)||(this._color=new n.Z),this._featureTable.getColor(this._featureId,this._color)},set:function(e){this._featureTable.setColor(this._featureId,e)}},primitive:{get:function(){return this._model}},featureTable:{get:function(){return this._featureTable}},featureId:{get:function(){return this._featureId}}}),o.prototype.hasProperty=function(e){return this._featureTable.hasProperty(this._featureId,e)},o.prototype.getProperty=function(e){return this._featureTable.getProperty(this._featureId,e)},o.prototype.getPropertyInherited=function(e){const t=this._featureTable.getPropertyBySemantic(this._featureId,e);return(0,r.Z)(t)?t:this._featureTable.getProperty(this._featureId,e)},o.prototype.getPropertyNames=function(e){return this._featureTable.getPropertyNames(e)},o.prototype.setProperty=function(e,t){return this._featureTable.setProperty(this._featureId,e,t)}},782670:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});var n=i(598577),r=i(268053),o=i(357299),s=i(545125),a=i(426468),c=i(54879),u=i(936853),l=i(406144),h=i(806361),d=i(841811);function f(e){const t=e.model,i=e.propertyTable;o.Z.typeOf.object("propertyTable",i),o.Z.typeOf.object("model",t),this._propertyTable=i,this._model=t,this._features=void 0,this._featuresLength=0,this._batchTexture=void 0,this._styleCommandsNeededDirty=!1,this._styleCommandsNeeded=h.Z.ALL_OPAQUE,function(e){const t=e._model,i=d.Z.is3DTiles(t.type),o=e._propertyTable.count;if(0===o)return;let s;const a=new Array(o);if(i){const e=t.content;for(s=0;s<o;s++)a[s]=new r.Z(e,s)}else for(s=0;s<o;s++)a[s]=new u.Z({model:t,featureId:s,featureTable:e});e._features=a,e._featuresLength=o,e._batchTexture=new n.Z({featuresLength:o,owner:e,statistics:i?t.content.tileset.statistics:e._statistics})}(this)}Object.defineProperties(f.prototype,{batchTexture:{get:function(){return this._batchTexture}},featuresLength:{get:function(){return this._featuresLength}},styleCommandsNeededDirty:{get:function(){return this._styleCommandsNeededDirty}}}),f.prototype.update=function(e){this._styleCommandsNeededDirty=!1,this._batchTexture.update(void 0,e);const t=h.Z.getStyleCommandsNeeded(this._featuresLength,this._batchTexture.translucentFeaturesLength);this._styleCommandsNeeded!==t&&(this._styleCommandsNeededDirty=!0,this._styleCommandsNeeded=t)},f.prototype.setShow=function(e,t){this._batchTexture.setShow(e,t)},f.prototype.setAllShow=function(e){this._batchTexture.setAllShow(e)},f.prototype.getShow=function(e){return this._batchTexture.getShow(e)},f.prototype.setColor=function(e,t){this._batchTexture.setColor(e,t)},f.prototype.setAllColor=function(e){this._batchTexture.setAllColor(e)},f.prototype.getColor=function(e,t){return this._batchTexture.getColor(e,t)},f.prototype.getPickColor=function(e){return this._batchTexture.getPickColor(e)},f.prototype.getFeature=function(e){return this._features[e]},f.prototype.hasProperty=function(e,t){return this._propertyTable.hasProperty(e,t)},f.prototype.getProperty=function(e,t){return this._propertyTable.getProperty(e,t)},f.prototype.getPropertyBySemantic=function(e,t){return this._propertyTable.getPropertyBySemantic(e,t)},f.prototype.getPropertyNames=function(e){return this._propertyTable.getPropertyIds(e)},f.prototype.setProperty=function(e,t,i){return this._propertyTable.setProperty(e,t,i)};const p=new s.Z;f.prototype.applyStyle=function(e){if(!(0,a.Z)(e))return this.setAllColor(n.Z.DEFAULT_COLOR_VALUE),void this.setAllShow(n.Z.DEFAULT_SHOW_VALUE);for(let t=0;t<this._featuresLength;t++){const i=this.getFeature(t),r=(0,a.Z)(e.color)?(0,l.Z)(e.color.evaluateColor(i,p),n.Z.DEFAULT_COLOR_VALUE):n.Z.DEFAULT_COLOR_VALUE,o=(0,a.Z)(e.show)?(0,l.Z)(e.show.evaluate(i),n.Z.DEFAULT_SHOW_VALUE):n.Z.DEFAULT_SHOW_VALUE;this.setColor(t,r),this.setShow(t,o)}},f.prototype.isDestroyed=function(){return!1},f.prototype.destroy=function(e){this._batchTexture.destroy(),(0,c.Z)(this)}},3645:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(406144),r=i(926286);function o(e){e=(0,n.Z)(e,n.Z.EMPTY_OBJECT),this.lightingModel=(0,n.Z)(e.lightingModel,r.Z.UNLIT)}},377894:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(360791),r=i(426468),o=i(583917);const s={name:"ModelMatrixUpdateStage"};s.update=function(e,t,i){e._transformDirty&&(c(e,t,e.transform),e._transformDirty=!1)};const a=new o.Z;function c(e,t,i){let s,u;for(s=0;s<e.runtimePrimitives.length;s++){const r=e.runtimePrimitives[s];for(u=0;u<r.drawCommands.length;u++){const e=r.drawCommands[u];o.Z.multiplyTransformation(t._computedModelMatrix,i,e.modelMatrix),n.Z.transform(r.boundingSphere,e.modelMatrix,e.boundingVolume)}}if((0,r.Z)(e.children))for(s=0;s<e.children.length;s++){const i=t._runtimeNodes[e.children[s]];o.Z.multiplyTransformation(e.transform,i.transform,a),c(i,t,a)}}const u=s},429156:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(357299),r=i(547797),o=i(154774);function s(e){n.Z.typeOf.object("model",e),this.shaderBuilder=new o.Z,this.model=e,this.uniformMap={},this.alphaOptions=new r.Z}},661101:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(357299),r=i(556592);function o(e,t){n.Z.typeOf.object("modelRenderResources",e),n.Z.typeOf.object("runtimeNode",t),this.model=e.model,this.shaderBuilder=e.shaderBuilder.clone(),this.uniformMap=(0,r.Z)(e.uniformMap),this.alphaOptions=(0,r.Z)(e.alphaOptions),this.runtimeNode=t,this.modelMatrix=t.transform,this.attributes=[],this.attributeIndex=1,this.featureIdVertexAttributeSetIndex=0,this.instanceCount=0,this.instancingTranslationMax=void 0,this.instancingTranslationMin=void 0}},242695:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});var n=i(636807),r=i(50720),o=i(545125),s=i(997274),a=i(406144),c=i(426468),u=i(30171),l=i(841811);const h={};function d(e,t){const i=e.model,n={model:i,node:e.runtimeNode,primitive:e.runtimePrimitive};let r;if(l.Z.is3DTiles(i.type)){const e=i.content;r={content:e,primitive:e.tileset,detail:n}}else r={primitive:i,detail:n};return(0,c.Z)(t)&&(r.instanceId=t),r}h.name="PickingPipelineStage",h.process=function(e,t,i){const l=i.context,h=e.runtimeNode,f=e.shaderBuilder,p=e.model,m=h.node.instances;if(e.hasPropertyTable)!function(e,t,i){const n=e.model;let r,o;const s=n.featureIdIndex,l=n.instanceFeatureIdIndex;(0,c.Z)(n.featureTableId)?r=n.featureTableId:(0,c.Z)(i)?(o=i.featureIds[l],r=o.propertyTableId):(o=t.featureIds[s],r=o.propertyTableId);const h=n.featureTables[r];e.shaderBuilder.addUniform("sampler2D","model_pickTexture",u.Z.FRAGMENT);const d=h.batchTexture;e.uniformMap.model_pickTexture=function(){return(0,a.Z)(d.pickTexture,d.defaultTexture)},e.pickId="((selectedFeature.id < int(model_featuresLength)) ? texture2D(model_pickTexture, selectedFeature.st) : vec4(0.0))"}(e,t,m);else if((0,c.Z)(m))!function(e,t,i){const a=e.instanceCount,c=new Array(a),l=new Uint8Array(4*a),h=e.model._resources;for(let t=0;t<a;t++){const n=d(e,t),r=i.createPickId(n);h.push(r),c[t]=r;const s=r.color;l[4*t+0]=o.Z.floatToByte(s.red),l[4*t+1]=o.Z.floatToByte(s.green),l[4*t+2]=o.Z.floatToByte(s.blue),l[4*t+3]=o.Z.floatToByte(s.alpha)}const f=n.Z.createVertexBuffer({context:i,typedArray:l,usage:r.Z.STATIC_DRAW});f.vertexArrayDestroyable=!1,h.push(f);const p={index:e.attributeIndex++,vertexBuffer:f,componentsPerAttribute:4,componentDatatype:s.Z.UNSIGNED_BYTE,normalize:!0,offsetInBytes:0,strideInBytes:0,instanceDivisor:1};e.attributes.push(p);const m=e.shaderBuilder;m.addDefine("USE_PICKING",void 0,u.Z.BOTH),m.addAttribute("vec4","a_pickColor"),m.addVarying("vec4","v_pickColor"),e.pickId="v_pickColor"}(e,0,l);else{const t=d(e),i=l.createPickId(t);p._resources.push(i),f.addUniform("vec4","czm_pickColor",u.Z.FRAGMENT),e.uniformMap.czm_pickColor=function(){return i.color},e.pickId="czm_pickColor"}};const f=h},779848:(e,t,i)=>{"use strict";i.d(t,{Z:()=>F});var n=i(247976),r=i(919382),o=i(545125),s=i(357299),a=i(997274),c=i(406144),u=i(426468),l=i(583917),h=i(195809),d=i(761677),f=i(527758),p=i(636807),m=i(50720),_=i(843257),Z=i(295189),g=i(39213),y=i(331508),b=i(947941),A=i(549773),w=i(81967),v=i(211303),T=i(148306),C=i(607890),E=i(785049),x=i(646754),S=i(578765);const O=T.Z.Components,I=T.Z.Scene,D=T.Z.Node,P=T.Z.Primitive,R=T.Z.Attribute,B=T.Z.Quantization,M=T.Z.FeatureIdAttribute,L=T.Z.Material,N=T.Z.MetallicRoughness;function F(e){const t=(e=(0,c.Z)(e,c.Z.EMPTY_OBJECT)).arrayBuffer,i=(0,c.Z)(e.byteOffset,0);s.Z.typeOf.object("options.arrayBuffer",t),this._arrayBuffer=t,this._byteOffset=i,this._parsedContent=void 0,this._decodePromise=void 0,this._decodedAttributes=void 0,this._promise=f.Z.defer(),this._state=x.Z.UNLOADED,this._buffers=[],this._components=void 0,this._transform=l.Z.IDENTITY}function k(e,t,i){let s,a=t.typedArray;if(t.octEncoded&&(s=new B,s.octEncoded=t.octEncoded,s.octEncodedZXY=t.octEncodedZXY,s.normalizationRange=t.quantizedRange,s.type=t.quantizedType,s.componentDatatype=t.quantizedComponentDatatype),t.isQuantized){s=new B;const e=t.quantizedRange;s.normalizationRange=e,s.quantizedVolumeOffset=r.Z.ZERO;const i=t.quantizedVolumeScale;s.quantizedVolumeDimensions=i,s.quantizedVolumeStepSize=r.Z.divideByScalar(i,e,new r.Z),s.componentDatatype=t.quantizedComponentDatatype,s.type=t.quantizedType}const l=new R;if(l.name=t.name,l.semantic=t.semantic,l.setIndex=t.setIndex,l.componentDatatype=t.componentDatatype,l.type=t.type,l.normalized=(0,c.Z)(t.normalized,!1),l.min=t.min,l.max=t.max,l.quantization=s,t.isRGB565&&(a=n.Z.decodeRGB565(a)),(0,u.Z)(t.constantColor)){const e=new Array(4);l.constant=o.Z.pack(t.constantColor,e)}else{const t=p.Z.createVertexBuffer({typedArray:a,context:i,usage:m.Z.STATIC_DRAW});t.vertexArrayDestroyable=!1,e._buffers.push(t),l.buffer=t}return l}let U,V;function z(e){if(!(0,u.Z)(V)){U=new d.Z(0),V=new Array(e);for(let t=0;t<e;++t)V[t]=U.random()}return V}(0,u.Z)(Object.create)&&(F.prototype=Object.create(w.Z.prototype),F.prototype.constructor=F),Object.defineProperties(F.prototype,{promise:{get:function(){return this._promise.promise}},cacheKey:{get:function(){}},components:{get:function(){return this._components}},transform:{get:function(){return this._transform}}}),F.prototype.load=function(){this._parsedContent=C.Z.parse(this._arrayBuffer,this._byteOffset),this._state=x.Z.PROCESSING},F.prototype.process=function(e){this._state===x.Z.PROCESSING&&((0,u.Z)(this._decodePromise)||function(e,t){const i=e._parsedContent.draco;let n;n=(0,u.Z)(i)?b.Z.decodePointCloud(i,t):f.Z.resolve(),(0,u.Z)(n)&&(e._decodePromise=n,n.then((function(n){e.isDestroyed()||((0,u.Z)(n)&&function(e,t,i){e._state=x.Z.READY;const n=e._parsedContent;let o;if((0,u.Z)(i.POSITION)){if(o={name:"POSITION",semantic:S.Z.POSITION,typedArray:i.POSITION.array,componentDatatype:a.Z.FLOAT,type:Z.Z.VEC3,isQuantized:!1},(0,u.Z)(i.POSITION.data.quantization)){const e=i.POSITION.data.quantization,t=e.range,n=r.Z.fromElements(t,t,t),s=r.Z.unpack(e.minValues),c=(1<<e.quantizationBits)-1;o.isQuantized=!0,o.quantizedRange=c,o.quantizedVolumeOffset=s,o.quantizedVolumeScale=n,o.quantizedComponentDatatype=a.Z.UNSIGNED_SHORT,o.quantizedType=Z.Z.VEC3}n.positions=o}if((0,u.Z)(i.NORMAL)){if(o={name:"NORMAL",semantic:S.Z.NORMAL,typedArray:i.NORMAL.array,componentDatatype:a.Z.FLOAT,type:Z.Z.VEC3,isQuantized:!1,octEncoded:!1,octEncodedZXY:!1},(0,u.Z)(i.NORMAL.data.quantization)){const e=(1<<i.NORMAL.data.quantization.quantizationBits)-1;o.quantizedRange=e,o.octEncoded=!0,o.octEncodedZXY=!0,o.quantizedComponentDatatype=a.Z.UNSIGNED_BYTE,o.quantizedType=Z.Z.VEC2}n.normals=o}if((0,u.Z)(i.RGBA)?n.colors={name:"COLOR",semantic:S.Z.COLOR,setIndex:0,typedArray:i.RGBA.array,componentDatatype:a.Z.UNSIGNED_BYTE,type:Z.Z.VEC4,normalized:!0,isTranslucent:!0}:(0,u.Z)(i.RGB)&&(n.colors={name:"COLOR",semantic:S.Z.COLOR,setIndex:0,typedArray:i.RGB.array,componentDatatype:a.Z.UNSIGNED_BYTE,type:Z.Z.VEC3,normalized:!0,isTranslucent:!1}),(0,u.Z)(i.BATCH_ID)){const e=i.BATCH_ID.array;n.batchIds={name:"FEATURE_ID",semantic:S.Z.FEATURE_ID,setIndex:0,typedArray:e,componentDatatype:a.Z.fromTypedArray(e),type:Z.Z.SCALAR}}let s=n.styleableProperties;const c=t.batchTableProperties;for(const e in c)if(c.hasOwnProperty(e)){const t=i[e];(0,u.Z)(s)||(s={}),s[e]={typedArray:t.array,componentCount:t.data.componentsPerAttribute}}n.styleableProperties=s}(e,i,n),function(e,t){const i=e._parsedContent,n=new N;n.metallicFactor=0,n.roughnessFactor=.9;const o=new L;o.metallicRoughness=n;const s=i.colors;(0,u.Z)(s)&&s.isTranslucent&&(o.alphaMode=_.Z.BLEND);const a=!(0,u.Z)(i.normals);o.unlit=a;const d=new P;if(d.attributes=function(e,t,i){const n=[];let o;const s=t.positions;return(0,u.Z)(s)&&(function(e){const t=e.typedArray,i=t.length/3,n=Math.min(i,20),o=z(20),s=Number.MAX_VALUE,a=-Number.MAX_VALUE;let c,u,l,h=r.Z.fromElements(s,s,s,H),d=r.Z.fromElements(a,a,a,G);if(e.isQuantized)h=r.Z.ZERO,d=e.quantizedVolumeScale;else for(c=0;c<n;++c)u=Math.floor(o[c]*i),l=r.Z.unpack(t,3*u,q),r.Z.minimumByComponent(h,l,h),r.Z.maximumByComponent(d,l,d);e.min=r.Z.clone(h),e.max=r.Z.clone(d)}(s),o=k(e,s,i),o.count=t.pointsLength,n.push(o)),(0,u.Z)(t.normals)&&(o=k(e,t.normals,i),n.push(o)),(0,u.Z)(t.colors)?(o=k(e,t.colors,i),n.push(o)):(o=k(e,j,i),n.push(o)),(0,u.Z)(t.batchIds)&&(o=k(e,t.batchIds,i),n.push(o)),n}(e,i,t),d.primitiveType=h.Z.POINTS,d.material=o,(0,u.Z)(i.batchIds)){const e=new M;e.propertyTableId=0,e.setIndex=0,d.featureIds.push(e)}const f=new D;f.primitives=[d];const p=new I;p.nodes=[f],p.upAxis=g.Z.Z,p.forwardAxis=g.Z.X;const m=new O;m.scene=p,m.nodes=[f],m.featureMetadata=function(e){const t=e.batchLength,i=e.pointsLength,n=e.batchTableBinary;if((0,u.Z)(n)){const r=(0,c.Z)(t,i);return(0,y.Z)({count:r,batchTable:e.batchTableJson,binaryBody:n})}const r=new E.Z({name:v.Z.BATCH_TABLE_CLASS_NAME,count:i});return new A.Z({schema:{},propertyTables:[r]})}(i),(0,u.Z)(i.rtcCenter)&&(m.transform=l.Z.multiplyByTranslation(m.transform,i.rtcCenter,m.transform));const Z=i.positions;(0,u.Z)(Z)&&Z.isQuantized&&(m.transform=l.Z.multiplyByTranslation(m.transform,Z.quantizedVolumeOffset,m.transform)),e._components=m,e._parsedContent=void 0}(e,t),e._state=x.Z.READY,e._promise.resolve(e))})).otherwise((function(t){e.unload(),e._state=x.Z.FAILED;e._promise.reject(e.getError("Failed to load Draco",t))})))}(this,e.context))};const H=new r.Z,G=new r.Z,q=new r.Z,j={name:S.Z.COLOR,semantic:S.Z.COLOR,setIndex:0,constantColor:o.Z.DARKGRAY,componentDatatype:a.Z.FLOAT,type:Z.Z.VEC4,isQuantized:!1,isTranslucent:!1};F.prototype.unload=function(){const e=this._buffers;for(let t=0;t<e.length;t++)e[t].destroy();e.length=0,this._components=void 0,this._parsedContent=void 0}},953969:(e,t,i)=>{"use strict";i.d(t,{Z:()=>y});var n=i(919382),r=i(362017),o=i(406144),s=i(426468),a=i(583917),c=i(610490),u=i(30171),l=i(742543),h=i(286400),d=i(506678),f=i(578765),p=i(841811),m=i(10146);const _={name:"PointCloudAttenuationPipelineStage"},Z=new n.Z;_.process=function(e,t,i){const _=e.shaderBuilder;_.addVertexLines([l.Z]),_.addDefine("USE_POINT_CLOUD_ATTENUATION",void 0,u.Z.VERTEX);const y=e.model,b=y.pointCloudShading;let A,w,v;p.Z.is3DTiles(y.type)&&(w=!0,A=y.content,v=A.tile.refine===h.Z.ADD),_.addUniform("vec3","model_pointCloudAttenuation",u.Z.VERTEX),e.uniformMap.model_pointCloudAttenuation=function(){const u=Z;let l=1;w&&(l=v?5:A.tileset.maximumScreenSpaceError),u.x=(0,o.Z)(b.maximumAttenuation,l),u.x*=i.pixelRatio;const h=function(e,t,i,o){if((0,s.Z)(o)){const e=o.tile.geometricError;if(e>0)return e}if((0,s.Z)(i.baseResolution))return i.baseResolution;const c=m.Z.getAttributeBySemantic(t,f.Z.POSITION),u=c.count,l=e.runtimeNode.transform;let h=n.Z.subtract(c.max,c.min,g);h=a.Z.multiplyByPointAsVector(l,h,g);const d=h.x*h.y*h.z;return r.Z.cbrt(d/u)}(e,t,b,A);u.y=h*b.geometricErrorScale;const p=i.context,_=i.camera.frustum;let y;return y=i.mode===d.Z.SCENE2D||_ instanceof c.Z?Number.POSITIVE_INFINITY:p.drawingBufferHeight/i.camera.frustum.sseDenominator,u.z=y,u}};const g=new n.Z,y=_},821431:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(357299),r=i(556592),o=i(426468),s=i(583917),a=i(451356),c=i(329286),u=i(10146),l=i(3645);function h(e,t){n.Z.typeOf.object("nodeRenderResources",e),n.Z.typeOf.object("runtimePrimitive",t),this.model=e.model,this.runtimeNode=e.runtimeNode,this.attributes=e.attributes.slice(),this.attributeIndex=e.attributeIndex,this.featureIdVertexAttributeSetIndex=e.featureIdVertexAttributeSetIndex,this.hasPropertyTable=!1,this.uniformMap=(0,r.Z)(e.uniformMap),this.alphaOptions=(0,r.Z)(e.alphaOptions),this.transform=e.runtimeNode.transform.clone(),this.shaderBuilder=e.shaderBuilder.clone(),this.instanceCount=e.instanceCount,this.runtimePrimitive=t;const i=t.primitive;this.count=(0,o.Z)(i.indices)?i.indices.count:u.Z.getAttributeBySemantic(i,"POSITION").count,this.indices=i.indices,this.primitiveType=i.primitiveType,this.boundingSphere=u.Z.createBoundingSphere(i,s.Z.IDENTITY,e.instancingTranslationMax,e.instancingTranslationMin),this.lightingOptions=new l.Z,this.pickId=void 0,this.renderStateOptions={depthTest:{enabled:!0,func:c.Z.LESS_OR_EQUAL},blending:a.Z.DISABLED},this.styleCommandsNeeded=void 0}},146778:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(426468),r=i(30171),o=i(98012),s=i(148306);const a={};function c(e){return e instanceof s.Z.FeatureIdTexture?"HAS_SELECTED_FEATURE_ID_TEXTURE":"HAS_SELECTED_FEATURE_ID_ATTRIBUTE"}function u(e){return e instanceof s.Z.FeatureIdTexture?r.Z.FRAGMENT:r.Z.BOTH}a.name="SelectedFeatureIdPipelineStage",a.STRUCT_ID_SELECTED_FEATURE="SelectedFeature",a.STRUCT_NAME_SELECTED_FEATURE="SelectedFeature",a.FUNCTION_ID_FEATURE_VARYINGS_VS="updateFeatureStructVS",a.FUNCTION_ID_FEATURE_VARYINGS_FS="updateFeatureStructFS",a.FUNCTION_SIGNATURE_UPDATE_FEATURE="void updateFeatureStruct(inout SelectedFeature feature)",a.process=function(e,t,i){const s=e.shaderBuilder;e.hasPropertyTable=!0;const l=function(e,t,i){let r,o;return(0,n.Z)(t.instances)&&(o=t.instances.featureIds[e.instanceFeatureIdIndex],(0,n.Z)(o))?(r="instanceFeatureId_"+e.instanceFeatureIdIndex,{featureIds:o,variableName:r,shaderDestination:u(o),featureIdDefine:c(o)}):(o=i.featureIds[e.featureIdIndex],r="featureId_"+e.featureIdIndex,{featureIds:o,variableName:r,shaderDestination:u(o),featureIdDefine:c(o)})}(e.model,e.runtimeNode.node,t);s.addDefine("HAS_SELECTED_FEATURE_ID",void 0,l.shaderDestination),s.addDefine("SELECTED_FEATURE_ID",l.variableName,l.shaderDestination),s.addDefine(l.featureIdDefine,void 0,l.shaderDestination),function(e){e.addStructField(a.STRUCT_ID_SELECTED_FEATURE,"int","id"),e.addStructField(a.STRUCT_ID_SELECTED_FEATURE,"vec2","st"),e.addStructField(a.STRUCT_ID_SELECTED_FEATURE,"vec4","color")}(s),l.shaderDestination===r.Z.BOTH&&s.addVertexLines([o.Z]),s.addFragmentLines([o.Z])};const l=a},806361:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});const n={ALL_OPAQUE:0,ALL_TRANSLUCENT:1,OPAQUE_AND_TRANSLUCENT:2,getStyleCommandsNeeded:function(e,t){return 0===t?n.ALL_OPAQUE:t===e?n.ALL_TRANSLUCENT:n.OPAQUE_AND_TRANSLUCENT}},r=Object.freeze(n)},418477:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(426468),r=i(54879),o=i(283044);function s(){this._defaultTexture=void 0,this._textures={},this._loadedImages=[],this._lastUpdatedFrame=-1}function a(e,t,i){const r=t.id,s=t.textureUniform,a=s.typedArray,c=s.sampler;let u;u=(0,n.Z)(a)?new o.Z({context:i,pixelFormat:s.pixelFormat,pixelDatatype:s.pixelDatatype,source:{arrayBufferView:a,width:s.width,height:s.height},sampler:c,flipY:!1}):new o.Z({context:i,source:t.image,sampler:c});const l=e._textures[r];(0,n.Z)(l)&&l!==i.defaultTexture&&l.destroy(),e._textures[r]=u}s.prototype.getTexture=function(e){return this._textures[e]},s.prototype.loadTexture2D=function(e,t){(0,n.Z)(t.typedArray)?this._loadedImages.push({id:e,textureUniform:t}):function(e,t,i){i.resource.fetchImage().then((function(n){e._loadedImages.push({id:t,image:n,textureUniform:i})})).otherwise((function(){const i=e._textures[t];(0,n.Z)(i)&&i!==e._defaultTexture&&i.destroy(),e._textures[t]=e._defaultTexture}))}(this,e,t)},s.prototype.update=function(e){if(e.frameNumber===this._lastUpdatedFrame)return;this._lastUpdatedFrame=e.frameNumber;const t=e.context;this._defaultTexture=t.defaultTexture;const i=this._loadedImages;for(let e=0;e<i.length;e++)a(this,i[e],t);i.length=0},s.prototype.isDestroyed=function(){return!1},s.prototype.destroy=function(){const e=this._textures;for(const t in e)if(e.hasOwnProperty(t)){const i=e[t];i!==this._defaultTexture&&i.destroy()}return(0,r.Z)(this)}},765233:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(406144),r=i(426468),o=i(446938),s=i(795788),a=i(100883),c=i(687931),u=i(270013),l=i(655499);function h(e){e=(0,n.Z)(e,n.Z.EMPTY_OBJECT);const t=(0,r.Z)(e.typedArray);if(t===(0,r.Z)(e.url))throw new o.Z("exactly one of options.typedArray, options.url must be defined");if(t&&(!(0,r.Z)(e.width)||!(0,r.Z)(e.height)))throw new o.Z("options.width and options.height are required when options.typedArray is defined");this.typedArray=e.typedArray,this.width=e.width,this.height=e.height,this.pixelFormat=(0,n.Z)(e.pixelFormat,a.Z.RGBA),this.pixelDatatype=(0,n.Z)(e.pixelDatatype,c.Z.UNSIGNED_BYTE);let i=e.url;"string"==typeof i&&(i=s.Z.createIfNeeded(i)),this.resource=i;const h=(0,n.Z)(e.repeat,!0)?l.Z.REPEAT:l.Z.CLAMP_TO_EDGE;this.sampler=new u.Z({wrapS:h,wrapT:h,minificationFilter:e.minificationFilter,magnificationFilter:e.magnificationFilter,maximumAnisotropy:e.maximumAnisotropy})}},808168:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({FLOAT:"float",VEC2:"vec2",VEC3:"vec3",VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",MAT2:"mat2",MAT3:"mat2",MAT4:"mat4",SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube"})},739080:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({FLOAT:"float",VEC2:"vec2",VEC3:"vec3",VEC4:"vec4",MAT2:"mat2",MAT3:"mat2",MAT4:"mat4"})},963737:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Z});var n=i(451356),r=i(556592),o=i(426468),s=i(247913),a=i(409683),c=i(661025),u=i(842649),l=i(364232),h=i(50128),d=i(42973),f=i(806361),p=i(676311),m=i(360791),_=i(583917);function Z(e,t){const i=e.shaderBuilder;i.addVertexLines([c.Z]),i.addFragmentLines([a.Z]);const Z=(0,o.Z)(e.indices)?e.indices.buffer:void 0,g=new p.Z({context:t.context,indexBuffer:Z,attributes:e.attributes}),y=e.model;y._resources.push(g);let b=e.renderStateOptions;y.opaquePass===u.Z.CESIUM_3D_TILE&&(b=(0,r.Z)(b,!0),b.stencilTest=d.Z.setCesium3DTileBit(),b.stencilMask=d.Z.CESIUM_3D_TILE_MASK),b=l.Z.fromCache(b);const A=i.buildShaderProgram(t.context);y._resources.push(A);const w=e.alphaOptions.pass,v=y.sceneGraph,T=_.Z.multiply(v.computedModelMatrix,e.transform,new _.Z);m.Z.transform(e.boundingSphere,T,e.boundingSphere);const C=new s.Z({boundingVolume:e.boundingSphere,modelMatrix:T,uniformMap:e.uniformMap,renderState:b,vertexArray:g,shaderProgram:A,cull:y.cull,pass:w,count:e.count,pickId:e.pickId,instanceCount:e.instanceCount,primitiveType:e.primitiveType,debugShowBoundingVolume:y.debugShowBoundingVolume}),E=e.styleCommandsNeeded,x=[];if((0,o.Z)(E)){const e=function(e){const t={};return t.translucent=function(e){const t=s.Z.shallowClone(e);t.pass=u.Z.TRANSLUCENT;const i=(0,r.Z)(e.renderState,!0);return i.cull.enabled=!1,i.depthTest.enabled=!0,i.depthMask=!1,i.blending=n.Z.ALPHA_BLEND,t.renderState=l.Z.fromCache(i),t}(e),t}(C);if(w!==u.Z.TRANSLUCENT)switch(E){case f.Z.ALL_OPAQUE:x.push(C);break;case f.Z.ALL_TRANSLUCENT:x.push(e.translucent);break;case f.Z.OPAQUE_AND_TRANSLUCENT:x.push(C,e.translucent);break;default:throw new h.Z("styleCommandsNeeded is not a valid value.")}else x.push(C)}else x.push(C);return x}},777304:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(583917);function r(e,t,i){this.primitive=e,this._modelMatrix=n.Z.clone(t),this._instanceId=i}Object.defineProperties(r.prototype,{instanceId:{get:function(){return this._instanceId}},model:{get:function(){return this.primitive._model}},modelMatrix:{get:function(){return n.Z.clone(this._modelMatrix)},set:function(e){n.Z.clone(e,this._modelMatrix),this.primitive.expandBoundingSphere(this._modelMatrix),this.primitive._dirty=!0}}});const o=r},788485:(e,t,i)=>{"use strict";i.d(t,{Z:()=>q});var n=i(360791),r=i(337968),o=i(919382),s=i(357299),a=i(556592),c=i(545125),u=i(997274),l=i(406144),h=i(426468),d=i(54879),f=i(446938),p=i(583917),m=i(195809),_=i(795788),Z=i(50128),g=i(358198),y=i(636807),b=i(50720),A=i(247913),w=i(842649),v=i(364232),T=i(279427),C=i(794130),E=i(527758),x=i(427570),S=i(777304),O=i(152823),I=i(506678),D=i(556198);function P(e){if(e=(0,l.Z)(e,l.Z.EMPTY_OBJECT),!(0,h.Z)(e.gltf)&&!(0,h.Z)(e.url))throw new f.Z("Either options.gltf or options.url is required.");if((0,h.Z)(e.gltf)&&(0,h.Z)(e.url))throw new f.Z("Cannot pass in both options.gltf and options.url.");this.show=(0,l.Z)(e.show,!0),this._instancingSupported=!1,this._dynamic=(0,l.Z)(e.dynamic,!1),this._allowPicking=(0,l.Z)(e.allowPicking,!0),this._ready=!1,this._readyPromise=E.Z.defer(),this._state=0,this._dirty=!1,this._cull=(0,l.Z)(e.cull,!0),this._opaquePass=(0,l.Z)(e.opaquePass,w.Z.OPAQUE),this._instances=function(e,t){const i=(t=(0,l.Z)(t,[])).length,n=new Array(i);for(let r=0;r<i;++r){const i=t[r],o=i.modelMatrix,s=(0,l.Z)(i.batchId,r);n[r]=new S.Z(e,o,s)}return n}(this,e.instances),this._batchTable=e.batchTable,this._model=void 0,this._vertexBufferTypedArray=void 0,this._vertexBuffer=void 0,this._batchIdBuffer=void 0,this._instancedUniformsByProgram=void 0,this._drawCommands=[],this._modelCommands=void 0,this._renderStates=void 0,this._disableCullingRenderStates=void 0,this._boundingSphere=function(e){const t=e.length,i=new Array(t);for(let n=0;n<t;++n)i[n]=p.Z.getTranslation(e._instances[n]._modelMatrix,new o.Z);return n.Z.fromPoints(i)}(this),this._center=o.Z.clone(this._boundingSphere.center),this._rtcTransform=new p.Z,this._rtcModelView=new p.Z,this._mode=void 0,this.modelMatrix=p.Z.clone(p.Z.IDENTITY),this._modelMatrix=p.Z.clone(this.modelMatrix),this._url=_.Z.createIfNeeded(e.url),this._requestType=e.requestType,this._gltf=e.gltf,this._basePath=_.Z.createIfNeeded(e.basePath),this._asynchronous=e.asynchronous,this._incrementallyLoadTextures=e.incrementallyLoadTextures,this._upAxis=e.upAxis,this._forwardAxis=e.forwardAxis,this.shadows=(0,l.Z)(e.shadows,D.Z.ENABLED),this._shadows=this.shadows,this._pickIdLoaded=e.pickIdLoaded,this.debugShowBoundingVolume=(0,l.Z)(e.debugShowBoundingVolume,!1),this._debugShowBoundingVolume=!1,this.debugWireframe=(0,l.Z)(e.debugWireframe,!1),this._debugWireframe=!1,this._imageBasedLightingFactor=new r.Z(1,1),r.Z.clone(e.imageBasedLightingFactor,this._imageBasedLightingFactor),this.lightColor=e.lightColor,this.luminanceAtZenith=e.luminanceAtZenith,this.sphericalHarmonicCoefficients=e.sphericalHarmonicCoefficients,this.specularEnvironmentMaps=e.specularEnvironmentMaps,this.backFaceCulling=(0,l.Z)(e.backFaceCulling,!0),this._backFaceCulling=this.backFaceCulling}Object.defineProperties(P.prototype,{allowPicking:{get:function(){return this._allowPicking}},length:{get:function(){return this._instances.length}},activeAnimations:{get:function(){return this._model.activeAnimations}},ready:{get:function(){return this._ready}},readyPromise:{get:function(){return this._readyPromise.promise}},imageBasedLightingFactor:{get:function(){return this._imageBasedLightingFactor},set:function(e){s.Z.typeOf.object("imageBasedLightingFactor",e),s.Z.typeOf.number.greaterThanOrEquals("imageBasedLightingFactor.x",e.x,0),s.Z.typeOf.number.lessThanOrEquals("imageBasedLightingFactor.x",e.x,1),s.Z.typeOf.number.greaterThanOrEquals("imageBasedLightingFactor.y",e.y,0),s.Z.typeOf.number.lessThanOrEquals("imageBasedLightingFactor.y",e.y,1),r.Z.clone(e,this._imageBasedLightingFactor)}}});const R=new o.Z,B=new p.Z;function M(e,t,i,n){return function(r,o){const s=r.semantic;if((0,h.Z)(s)&&e.indexOf(s)>-1){if(!(t.indexOf(s)>-1))throw new Z.Z('Shader program cannot be optimized for instancing. Uniform "'+o+'" in program "'+i+'" uses unsupported semantic "'+s+'"');n[o]=s}}}function L(e,t){if((0,h.Z)(e._instancedUniformsByProgram))return e._instancedUniformsByProgram[t];const i={};e._instancedUniformsByProgram=i;const n=["MODEL","MODELVIEW","CESIUM_RTC_MODELVIEW","MODELVIEWPROJECTION","MODELINVERSE","MODELVIEWINVERSE","MODELVIEWPROJECTIONINVERSE","MODELINVERSETRANSPOSE","MODELVIEWINVERSETRANSPOSE"],r=["MODELVIEW","CESIUM_RTC_MODELVIEW","MODELVIEWPROJECTION","MODELVIEWINVERSETRANSPOSE"],o=e._model._sourceTechniques;for(const e in o)if(o.hasOwnProperty(e)){const s=o[e],a=s.program;if(!(0,h.Z)(i[a])){const e={};i[a]=e,C.Z.techniqueUniform(s,M(n,r,t,e))}}return i[t]}function N(e){const t=e._instances,i=e.length,n=e._center;let r=e._vertexBufferTypedArray;(0,h.Z)(r)||(r=new Float32Array(12*i)),e._dynamic&&(e._vertexBufferTypedArray=r);for(let e=0;e<i;++e){const i=t[e]._modelMatrix,o=p.Z.clone(i,B);o[12]-=n.x,o[13]-=n.y,o[14]-=n.z;const s=12*e;r[s+0]=o[0],r[s+1]=o[4],r[s+2]=o[8],r[s+3]=o[12],r[s+4]=o[1],r[s+5]=o[5],r[s+6]=o[9],r[s+7]=o[13],r[s+8]=o[2],r[s+9]=o[6],r[s+10]=o[10],r[s+11]=o[14]}return r}function F(e,t){const i=e._instancingSupported,n=(0,h.Z)(e._batchTable),r=e._allowPicking,o={url:e._url,requestType:e._requestType,gltf:e._gltf,basePath:e._basePath,shadows:e._shadows,cacheKey:void 0,asynchronous:e._asynchronous,allowPicking:r,incrementallyLoadTextures:e._incrementallyLoadTextures,upAxis:e._upAxis,forwardAxis:e._forwardAxis,precreatedAttributes:void 0,vertexShaderLoaded:void 0,fragmentShaderLoaded:void 0,uniformMapLoaded:void 0,pickIdLoaded:e._pickIdLoaded,ignoreCommands:!0,opaquePass:e._opaquePass,imageBasedLightingFactor:e.imageBasedLightingFactor,lightColor:e.lightColor,luminanceAtZenith:e.luminanceAtZenith,sphericalHarmonicCoefficients:e.sphericalHarmonicCoefficients,specularEnvironmentMaps:e.specularEnvironmentMaps,showOutline:e.showOutline};if(n||(e._pickIds=function(e,t){const i=e._instances,n=i.length,r=new Array(n);for(let e=0;e<n;++e)r[e]=t.createPickId(i[e]);return r}(e,t)),i){!function(e,t){let i;const n=e._instances,r=e.length,o=e._dynamic,s=(0,h.Z)(e._batchTable);if(s){const o=new Uint16Array(r);for(i=0;i<r;++i)o[i]=n[i]._instanceId;e._batchIdBuffer=y.Z.createVertexBuffer({context:t,typedArray:o,usage:b.Z.STATIC_DRAW})}if(!s){const n=new Uint8Array(4*r);for(i=0;i<r;++i){const t=e._pickIds[i].color,r=4*i;n[r]=c.Z.floatToByte(t.red),n[r+1]=c.Z.floatToByte(t.green),n[r+2]=c.Z.floatToByte(t.blue),n[r+3]=c.Z.floatToByte(t.alpha)}e._pickIdBuffer=y.Z.createVertexBuffer({context:t,typedArray:n,usage:b.Z.STATIC_DRAW})}const a=N(e);e._vertexBuffer=y.Z.createVertexBuffer({context:t,typedArray:a,usage:o?b.Z.STREAM_DRAW:b.Z.STATIC_DRAW})}(e,t);const i=12,r=u.Z.getSizeInBytes(u.Z.FLOAT),s={czm_modelMatrixRow0:{index:0,vertexBuffer:e._vertexBuffer,componentsPerAttribute:4,componentDatatype:u.Z.FLOAT,normalize:!1,offsetInBytes:0,strideInBytes:r*i,instanceDivisor:1},czm_modelMatrixRow1:{index:0,vertexBuffer:e._vertexBuffer,componentsPerAttribute:4,componentDatatype:u.Z.FLOAT,normalize:!1,offsetInBytes:4*r,strideInBytes:r*i,instanceDivisor:1},czm_modelMatrixRow2:{index:0,vertexBuffer:e._vertexBuffer,componentsPerAttribute:4,componentDatatype:u.Z.FLOAT,normalize:!1,offsetInBytes:8*r,strideInBytes:r*i,instanceDivisor:1}};n&&(s.a_batchId={index:0,vertexBuffer:e._batchIdBuffer,componentsPerAttribute:1,componentDatatype:u.Z.UNSIGNED_SHORT,normalize:!1,offsetInBytes:0,strideInBytes:0,instanceDivisor:1}),n||(s.pickColor={index:0,vertexBuffer:e._pickIdBuffer,componentsPerAttribute:4,componentDatatype:u.Z.UNSIGNED_BYTE,normalize:!0,offsetInBytes:0,strideInBytes:0,instanceDivisor:1}),o.precreatedAttributes=s,o.vertexShaderLoaded=function(e){return function(t,i){const n=L(e,i),r=(0,h.Z)(e._batchTable);let o,s,a,c=T.Z.replaceMain(t,"czm_instancing_main"),u="",l="";for(const e in n)if(n.hasOwnProperty(e)){const t=n[e];let i;"MODELVIEW"===t||"CESIUM_RTC_MODELVIEW"===t?i="czm_instanced_modelView":"MODELVIEWPROJECTION"===t?(i="czm_instanced_modelViewProjection",u+="mat4 czm_instanced_modelViewProjection;\n",l+="czm_instanced_modelViewProjection = czm_projection * czm_instanced_modelView;\n"):"MODELVIEWINVERSETRANSPOSE"===t&&(i="czm_instanced_modelViewInverseTranspose",u+="mat3 czm_instanced_modelViewInverseTranspose;\n",l+="czm_instanced_modelViewInverseTranspose = mat3(czm_instanced_modelView);\n");let r=new RegExp("uniform.*"+e+".*");c=c.replace(r,""),r=new RegExp(e+"\\b","g"),c=c.replace(r,i)}r?(o="attribute float a_batchId;\n",s="",a=""):(o="",s="attribute vec4 pickColor;\nvarying vec4 v_pickColor;\n",a=" v_pickColor = pickColor;\n");let d="uniform mat4 czm_instanced_modifiedModelView;\nuniform mat4 czm_instanced_nodeTransform;\n"+u+"mat4 czm_instanced_modelView;\nattribute vec4 czm_modelMatrixRow0;\nattribute vec4 czm_modelMatrixRow1;\nattribute vec4 czm_modelMatrixRow2;\n"+o+s+c+"void main()\n{\n mat4 czm_instanced_model = mat4(czm_modelMatrixRow0.x, czm_modelMatrixRow1.x, czm_modelMatrixRow2.x, 0.0, czm_modelMatrixRow0.y, czm_modelMatrixRow1.y, czm_modelMatrixRow2.y, 0.0, czm_modelMatrixRow0.z, czm_modelMatrixRow1.z, czm_modelMatrixRow2.z, 0.0, czm_modelMatrixRow0.w, czm_modelMatrixRow1.w, czm_modelMatrixRow2.w, 1.0);\n czm_instanced_modelView = czm_instanced_modifiedModelView * czm_instanced_model * czm_instanced_nodeTransform;\n"+l+" czm_instancing_main();\n"+a+"}\n";if(r){const t=e._model.gltf,n=O.Z.getDiffuseAttributeOrUniform(t,i);d=e._batchTable.getVertexShaderCallback(!0,"a_batchId",n)(d)}return d}}(e),o.fragmentShaderLoaded=function(e){return function(t,i){const n=e._batchTable;if((0,h.Z)(n)){const r=e._model.gltf,o=O.Z.getDiffuseAttributeOrUniform(r,i);t=n.getFragmentShaderCallback(!0,o,!1)(t)}else t="varying vec4 v_pickColor;\n"+t;return t}}(e),o.uniformMapLoaded=function(e,t){return function(i,n,r){(i=(0,a.Z)(i)).czm_instanced_modifiedModelView=function(e,t){return function(){return p.Z.multiply(t.uniformState.view,e._rtcTransform,e._rtcModelView)}}(e,t),i.czm_instanced_nodeTransform=function(e){return function(){return e.computedMatrix}}(r);const o=L(e,n);for(const e in o)o.hasOwnProperty(e)&&delete i[e];return(0,h.Z)(e._batchTable)&&(i=e._batchTable.getUniformMapCallback()(i)),i}}(e,t),(0,h.Z)(e._url)&&(o.cacheKey=e._url.getUrlComponent()+"#instanced")}else o.vertexShaderLoaded=function(e){return function(t,i){if((0,h.Z)(e._batchTable)){const n=e._model.gltf,r=O.Z.getDiffuseAttributeOrUniform(n,i);t="uniform float a_batchId\n;"+(t=e._batchTable.getVertexShaderCallback(!0,"a_batchId",r)(t))}return t}}(e),o.fragmentShaderLoaded=function(e){return function(t,i){const n=e._batchTable;if((0,h.Z)(n)){const r=e._model.gltf,o=O.Z.getDiffuseAttributeOrUniform(r,i);t=n.getFragmentShaderCallback(!0,o,!1)(t)}else t="uniform vec4 czm_pickColor;\n"+t;return t}}(e),o.uniformMapLoaded=function(e){return function(t){return(0,h.Z)(e._batchTable)&&(t=e._batchTable.getUniformMapCallback()(t)),t}}(e);(0,h.Z)(e._url)?e._model=x.Z.fromGltf(o):e._model=new x.Z(o)}function k(e){const t=(0,a.Z)(e,!0);return t.cull.enabled=!1,v.Z.fromCache(t)}function U(e){return function(){return e}}function V(e){return function(){return e}}function z(e){const t=e._modelCommands,i=t.length,r=e.length,o=e._rtcTransform,s=e._center;for(let a=0;a<i;++a){const i=t[a];for(let t=0;t<r;++t){const c=a*r+t,u=e._drawCommands[c];let l=p.Z.clone(e._instances[t]._modelMatrix,B);l[12]-=s.x,l[13]-=s.y,l[14]-=s.z,l=p.Z.multiply(o,l,B);const h=i.modelMatrix,d=u.modelMatrix;p.Z.multiply(l,h,d);const f=i.boundingVolume,m=u.boundingVolume;n.Z.transform(f,l,m)}}}function H(e){const t=e._nodeCommands,i=t.length,n=[];for(let e=0;e<i;++e){const i=t[e];i.show&&n.push(i.command)}return n}function G(e,t){e._drawCommands=[];const i=H(e._model);t?function(e,t){const i=t.length,n=e.length,r=e._boundingSphere,o=e._cull;for(let s=0;s<i;++s){const i=A.Z.shallowClone(t[s]);i.instanceCount=n,i.boundingVolume=r,i.cull=o,(0,h.Z)(e._batchTable)?i.pickId=e._batchTable.getPickId():i.pickId="v_pickColor",e._drawCommands.push(i)}}(e,i):(function(e,t){const i=e._instances,r=t.length,o=e.length,s=e._batchTable,c=(0,h.Z)(s),u=e._cull;for(let s=0;s<r;++s)for(let r=0;r<o;++r){const o=A.Z.shallowClone(t[s]);if(o.modelMatrix=new p.Z,o.boundingVolume=new n.Z,o.cull=u,o.uniformMap=(0,a.Z)(o.uniformMap),c)o.uniformMap.a_batchId=U(i[r]._instanceId);else{const t=e._pickIds[r];o.uniformMap.czm_pickColor=V(t.color)}e._drawCommands.push(o)}}(e,i),z(e))}P.prototype.expandBoundingSphere=function(e){const t=p.Z.getTranslation(e,R);n.Z.expand(this._boundingSphere,t,this._boundingSphere)},P.prototype.update=function(e){if(e.mode===I.Z.MORPHING)return;if(!this.show)return;if(0===this.length)return;const t=e.context;if(0===this._state){this._state=1,this._instancingSupported=t.instancedArrays,F(this,t);const e=this;this._model.readyPromise.otherwise((function(t){e._state=3,e._readyPromise.reject(t)}))}const i=this._instancingSupported,n=this._model;if(n.imageBasedLightingFactor=this.imageBasedLightingFactor,n.lightColor=this.lightColor,n.luminanceAtZenith=this.luminanceAtZenith,n.sphericalHarmonicCoefficients=this.sphericalHarmonicCoefficients,n.specularEnvironmentMaps=this.specularEnvironmentMaps,n.update(e),n.ready&&1===this._state){this._state=2,this._ready=!0;const e=n.boundingSphere.radius+o.Z.magnitude(n.boundingSphere.center);return this._boundingSphere.radius+=e,this._modelCommands=H(n),G(this,i),void this._readyPromise.resolve(this)}if(2!==this._state)return;const r=e.mode!==this._mode,s=this.modelMatrix,a=!p.Z.equals(this._modelMatrix,s);if(r||a){this._mode=e.mode,p.Z.clone(s,this._modelMatrix);let t=p.Z.multiplyByTranslation(this._modelMatrix,this._center,this._rtcTransform);this._mode!==I.Z.SCENE3D&&(t=g.Z.basisTo2D(e.mapProjection,t,t)),p.Z.getTranslation(t,this._boundingSphere.center)}i&&this._dirty&&(this._dynamic=!0,this._dirty=!1,function(e){const t=N(e);e._vertexBuffer.copyFromArrayView(t)}(this));const c=function(e){const t=e._nodeCommands,i=t.length;let n=!1;for(let e=0;e<i;e++){const i=t[e];i.command.dirty&&(i.command.dirty=!1,n=!0)}return n}(n);c&&G(this,i),!i&&(n.dirty||this._dirty||r||a)&&z(this),function(e,t){if(e.shadows!==e._shadows||t){e._shadows=e.shadows;const t=D.Z.castShadows(e.shadows),i=D.Z.receiveShadows(e.shadows),n=e._drawCommands,r=n.length;for(let e=0;e<r;++e){const r=n[e];r.castShadows=t,r.receiveShadows=i}}}(this,c),function(e,t){if(e._debugWireframe!==e.debugWireframe||t){e._debugWireframe=e.debugWireframe;const t=e.debugWireframe?m.Z.LINES:m.Z.TRIANGLES,i=e._drawCommands,n=i.length;for(let e=0;e<n;++e)i[e].primitiveType=t}}(this,c),function(e,t){if(e._backFaceCulling!==e.backFaceCulling||t){e._backFaceCulling=e.backFaceCulling;const t=e._drawCommands,i=t.length;let n;if(!(0,h.Z)(e._disableCullingRenderStates))for(e._disableCullingRenderStates=new Array(i),e._renderStates=new Array(i),n=0;n<i;++n){const i=t[n].renderState,r=k(i);e._disableCullingRenderStates[n]=r,e._renderStates[n]=i}for(n=0;n<i;++n)t[n].renderState=e._backFaceCulling?e._renderStates[n]:e._disableCullingRenderStates[n]}}(this,c),function(e,t){if(e.debugShowBoundingVolume!==e._debugShowBoundingVolume||t){e._debugShowBoundingVolume=e.debugShowBoundingVolume;const t=e._drawCommands,i=t.length;for(let n=0;n<i;++n)t[n].debugShowBoundingVolume=e.debugShowBoundingVolume}}(this,c);const u=e.passes;if(!u.render&&!u.pick)return;const l=e.commandList,d=this._drawCommands,f=d.length;for(let e=0;e<f;++e)l.push(d[e])},P.prototype.isDestroyed=function(){return!1},P.prototype.destroy=function(){this._model=this._model&&this._model.destroy();const e=this._pickIds;if((0,h.Z)(e)){const t=e.length;for(let i=0;i<t;++i)e[i].destroy()}return(0,d.Z)(this)};const q=P},774664:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(188684);function r(){this.initialized=!1,this.resourcesParsed=!1,this.vertexBuffersToCreate=new n.Z,this.indexBuffersToCreate=new n.Z,this.buffers={},this.pendingBufferLoads=0,this.programsToCreate=new n.Z,this.shaders={},this.pendingShaderLoads=0,this.texturesToCreate=new n.Z,this.pendingTextureLoads=0,this.texturesToCreateFromBufferView=new n.Z,this.pendingBufferViewToImage=0,this.createSamplers=!0,this.createSkins=!0,this.createRuntimeAnimations=!0,this.createVertexArrays=!0,this.createRenderStates=!0,this.createUniformMaps=!0,this.createRuntimeNodes=!0,this.createdBufferViews={},this.primitivesToDecode=new n.Z,this.activeDecodingTasks=0,this.pendingDecodingCache=!1,this.skinnedNodesIds=[]}r.prototype.getBuffer=function(e){return t=this.buffers[e.buffer],i=e.byteOffset,n=e.byteLength,t.subarray(i,i+n);var t,i,n},r.prototype.finishedPendingBufferLoads=function(){return 0===this.pendingBufferLoads},r.prototype.finishedBuffersCreation=function(){return 0===this.pendingBufferLoads&&0===this.vertexBuffersToCreate.length&&0===this.indexBuffersToCreate.length},r.prototype.finishedProgramCreation=function(){return 0===this.pendingShaderLoads&&0===this.programsToCreate.length},r.prototype.finishedTextureCreation=function(){const e=0===this.pendingTextureLoads,t=0===this.texturesToCreate.length&&0===this.texturesToCreateFromBufferView.length;return e&&t},r.prototype.finishedEverythingButTextureCreation=function(){const e=0===this.pendingBufferLoads&&0===this.pendingShaderLoads,t=0===this.vertexBuffersToCreate.length&&0===this.indexBuffersToCreate.length&&0===this.programsToCreate.length&&0===this.pendingBufferViewToImage;return this.finishedDecoding()&&e&&t},r.prototype.finishedDecoding=function(){return 0===this.primitivesToDecode.length&&0===this.activeDecodingTasks&&!this.pendingDecodingCache},r.prototype.finished=function(){return this.finishedDecoding()&&this.finishedTextureCreation()&&this.finishedEverythingButTextureCreation()};const o=r},747085:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(426468),r=i(446938);function o(e,t,i){this._name=t.name,this._id=i,this._uniformMap=e._uniformMaps[i],this._technique=void 0,this._program=void 0,this._values=void 0}Object.defineProperties(o.prototype,{name:{get:function(){return this._name}},id:{get:function(){return this._id}}}),o.prototype.setValue=function(e,t){if(!(0,n.Z)(e))throw new r.Z("name is required.");const i="u_"+e,o=this._uniformMap.values[i];if(!(0,n.Z)(o))throw new r.Z("name must match a parameter name in the material's technique that is targetable and not optimized out.");o.value=o.clone(t,o.value)},o.prototype.getValue=function(e){if(!(0,n.Z)(e))throw new r.Z("name is required.");const t="u_"+e,i=this._uniformMap.values[t];if((0,n.Z)(i))return i.value};const s=o},436848:(e,t,i)=>{"use strict";function n(e,t,i){const n=[],r=e.primitives,o=r.length;for(let e=0;e<o;++e){const i=r[e];n[e]=t[i.material]}this._name=e.name,this._materials=n,this._id=i}i.d(t,{Z:()=>r}),Object.defineProperties(n.prototype,{name:{get:function(){return this._name}},id:{get:function(){return this._id}},materials:{get:function(){return this._materials}}});const r=n},839186:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(583917);function r(e,t,i,r,o){this._model=e,this._runtimeNode=i,this._name=t.name,this._id=r,this.useMatrix=!1,this._show=!0,this._matrix=n.Z.clone(o),this._originalMatrix=n.Z.clone(o)}Object.defineProperties(r.prototype,{name:{get:function(){return this._name}},id:{get:function(){return this._id}},show:{get:function(){return this._show},set:function(e){this._show!==e&&(this._show=e,this._model._perNodeShowDirty=!0)}},matrix:{get:function(){return this._matrix},set:function(e){this._matrix=n.Z.clone(e,this._matrix),this.useMatrix=!0;const t=this._model;t._cesiumAnimationsDirty=!0,this._runtimeNode.dirtyNumber=t._maxDirtyNumber}},originalMatrix:{get:function(){return this._originalMatrix}}}),r.prototype.setMatrix=function(e){n.Z.clone(e,this._matrix)};const o=r},626507:(e,t,i)=>{"use strict";i.d(t,{Z:()=>b});var n=i(426468),r=i(100883),o=i(994589),s=i(270013),a=i(283044),c=i(59102),u=i(636664),l=i(655499),h=i(794130);function d(){}function f(e,t,i,n,r){const o=3*t,s=e[o],a=e[o+1],c=e[o+2];return void 0===s?63:((s===i&&a===n&&c===r)<<0)+((s===i&&a===r&&c===n)<<1)+((s===n&&a===i&&c===r)<<2)+((s===n&&a===r&&c===i)<<3)+((s===r&&a===i&&c===n)<<4)+((s===r&&a===n&&c===i)<<5)}function p(e){return(1&e)+(e>>1&1)+(e>>2&1)+(e>>3&1)+(e>>4&1)+(e>>5&1)}function m(e,t,i,n,r,o,s){const a=s?1:0,c=r?1:0,u=f(e,t,a,c,0);if(0===u)return t;const l=r?1:0,h=o?1:0,d=f(e,i,0,l,h);if(0===d)return i;const m=s?1:0,_=o?1:0,Z=f(e,n,m,0,_);if(0===Z)return n;const g=u&d&Z;let y,b,A;if(1&g)y=0,b=1,A=2;else if(2&g)y=0,A=1,b=2;else if(4&g)b=0,y=1,A=2;else if(8&g)b=0,A=1,y=2;else if(16&g)A=0,y=1,b=2;else{if(!(32&g)){const e=p(u),r=p(d),o=p(Z);return e<r&&e<o?t:r<o?i:n}A=0,b=1,y=2}const w=3*t;e[w+y]=a,e[w+b]=c,e[w+A]=0;const v=3*i;e[v+y]=0,e[v+b]=l,e[v+A]=h;const T=3*n;return e[T+y]=m,e[T+b]=0,e[T+A]=_,-1}function _(e,t,i){const n=e[0];return 1===e[Math.min(t,i)*n+Math.max(t,i)]}function Z(e){const t=new Uint8Array(e);return t[e-1]=192,8===e?t[e-1]=96:4===e?t[e-1]=48:2===e?t[e-1]=24:1===e&&(t[e-1]=12),t}function g(e,t){const i=e.gltf,n=e._loadResources;let r,o;for(r=0;r<t.length;++r){const s=t[r],a=s.extras._pipeline.vertexNumberingScope;s.extras._pipeline.vertexNumberingScope=void 0;const c=a.extraVertices,u=n.getBuffer(s),l=s.byteStride||4,h=c.length,d=new Uint8Array(u.byteLength+h*l);for(d.set(u),o=0;o<h;++o){const e=c[o]*l,t=u.length+o*l;for(let i=0;i<l;++i)d[t+i]=d[e+i]}s.byteOffset=0,s.byteLength=d.byteLength;const f=i.buffers.push({byteLength:d.byteLength,extras:{_pipeline:{source:d.buffer}}})-1;s.buffer=f,n.buffers[f]=d;const p=a.accessors;for(o=0;o<p.length;++o){const e=p[o];i.accessors[e].count+=h}if(!a.createdOutlines){const t=a.outlineCoordinates,i=new Float32Array(t),r=e.gltf.buffers.push({byteLength:i.byteLength,extras:{_pipeline:{source:i.buffer}}})-1;n.buffers[r]=new Uint8Array(i.buffer,0,i.byteLength);const s=e.gltf.bufferViews.push({buffer:r,byteLength:i.byteLength,byteOffset:0,byteStride:3*Float32Array.BYTES_PER_ELEMENT,target:34962})-1,c=e.gltf.accessors.push({bufferView:s,byteOffset:0,componentType:5126,count:i.length/3,type:"VEC3",min:[0,0,0],max:[1,1,1]})-1,u=a.primitives;for(o=0;o<u.length;++o)u[o].attributes._OUTLINE_COORDINATES=c;n.vertexBuffersToCreate.enqueue(s),a.createdOutlines=!0}}}function y(e,t){return t.buffer===e}d.hasExtension=function(e){return(0,n.Z)(e.extensionsRequired.CESIUM_primitive_outline)||(0,n.Z)(e.extensionsUsed.CESIUM_primitive_outline)},d.outlinePrimitives=function(e){if(!d.hasExtension(e))return;const t=e.gltf,i=[];h.Z.mesh(t,(function(t,r){h.Z.meshPrimitive(t,(function(t,o){if(!(0,n.Z)(t.extensions))return;const s=t.extensions.CESIUM_primitive_outline;if(!(0,n.Z)(s))return;const a=function(e,t){const i=t.attributes;if(void 0===i)return;const r=e.gltf;let o;for(const e in i){if(!i.hasOwnProperty(e))continue;const t=i[e],s=r.accessors[t].bufferView,a=r.bufferViews[s];if((0,n.Z)(a.extras)||(a.extras={}),(0,n.Z)(a.extras._pipeline)||(a.extras._pipeline={}),(0,n.Z)(a.extras._pipeline.vertexNumberingScope)){if(void 0!==o&&a.extras._pipeline.vertexNumberingScope!==o)return}else a.extras._pipeline.vertexNumberingScope=o||{vertexCopies:[],extraVertices:[],outlineCoordinates:[],accessors:[],bufferViews:[],primitives:[],createdOutlines:!1};o=a.extras._pipeline.vertexNumberingScope,o.bufferViews.indexOf(a)<0&&o.bufferViews.push(a),o.accessors.indexOf(t)<0&&o.accessors.push(t)}return o.primitives.push(t),o}(e,t);void 0!==a&&(i.indexOf(a)<0&&i.push(a),function(e,t,i,r,o){const s=o.vertexCopies,a=o.extraVertices,c=o.outlineCoordinates,u=e.gltf,l=u.meshes[t].primitives[i],h=u.accessors,d=u.bufferViews;let f;for(const e in l.attributes)if(l.attributes.hasOwnProperty(e)){const t=h[l.attributes[e]];if((0,n.Z)(t)){f=t.count;break}}if(!(0,n.Z)(f))return;const p=h[l.indices],Z=d[p.bufferView],g=h[r],y=d[g.bufferView],b=e._loadResources,A=b.getBuffer(Z),w=b.getBuffer(y);let v=5123===p.componentType?new Uint16Array(A.buffer,A.byteOffset+p.byteOffset,p.count):new Uint32Array(A.buffer,A.byteOffset+p.byteOffset,p.count);const T=5123===g.componentType?new Uint16Array(w.buffer,w.byteOffset+g.byteOffset,g.count):new Uint32Array(w.buffer,w.byteOffset+g.byteOffset,g.count),C=f,E=[C];let x;for(x=0;x<T.length;x+=2){const e=T[x],t=T[x+1];E[Math.min(e,t)*C+Math.max(e,t)]=1}for(x=0;x<v.length;x+=3){let t=v[x],i=v[x+1],r=v[x+2];const o=!1,l=o||_(E,t,i),h=o||_(E,i,r),d=o||_(E,r,t);let g=m(c,t,i,r,l,h,d);for(;g>=0;){let o;if(o=g===t?s[t]:g===i?s[i]:s[r],void 0===o){o=f+a.length;let e=g;for(;e>=f;)e=a[e-f];a.push(e),s[g]=o}o>65534&&v instanceof Uint16Array&&(v=new Uint32Array(v),p.componentType=5125,Z.buffer=u.buffers.push({byteLength:v.byteLength,extras:{_pipeline:{source:v.buffer}}})-1,Z.byteLength=v.byteLength,Z.byteOffset=0,e._loadResources.buffers[Z.buffer]=new Uint8Array(v.buffer,0,v.byteLength),b.indexBuffersToCreate._array.forEach((function(e){e.id===p.bufferView&&(e.componentType=p.componentType)}))),g===t?(t=o,v[x]=o):g===i?(i=o,v[x+1]=o):(r=o,v[x+2]=o),(0,n.Z)(p.max)&&(p.max[0]=Math.max(p.max[0],o)),g=m(c,t,i,r,l,h,d)}}}(e,r,o,s.indices,a))}))}));for(let t=0;t<i.length;++t)g(e,i[t].bufferViews);!function(e){const t=e.gltf,i=e._loadResources;let n;for(n=0;n<t.buffers.length;++n){const e=t.buffers[n],r=t.bufferViews.filter(y.bind(void 0,n)),o=r.reduce((function(e,t){return e+t.byteLength}),0);if(o===e.byteLength)continue;const s=new Uint8Array(o);let a=0;for(let e=0;e<r.length;++e){const t=r[e],n=i.getBuffer(t);s.set(n,a),t.byteOffset=a,a+=n.byteLength}i.buffers[n]=s,e.extras._pipeline.source=s.buffer,e.byteLength=o}}(e)},d.createTexture=function(e,t){let i=t.cache.modelOutliningCache;if((0,n.Z)(i)||(i=t.cache.modelOutliningCache={}),(0,n.Z)(i.outlineTexture))return i.outlineTexture;const h=Math.min(4096,o.Z.maximumTextureSize);let d=h;const f=Z(d),p=[];for(;d>1;)d>>=1,p.push(Z(d));const m=new a.Z({context:t,source:{arrayBufferView:f,mipLevels:p},width:h,height:1,pixelFormat:r.Z.LUMINANCE,sampler:new s.Z({wrapS:l.Z.CLAMP_TO_EDGE,wrapT:l.Z.CLAMP_TO_EDGE,minificationFilter:u.Z.LINEAR_MIPMAP_LINEAR,magnificationFilter:c.Z.LINEAR})});return i.outlineTexture=m,m};const b=d},152823:(e,t,i)=>{"use strict";i.d(t,{Z:()=>G});var n=i(360791),r=i(337968),o=i(919382),s=i(114754),a=i(556592),c=i(426468),u=i(631145),l=i(165373),h=i(583917),d=i(129782),f=i(50128),p=i(619287),m=i(279427),_=i(48564),Z=i(794130),g=i(934804),y=i(295189),b=i(39213);const A={updateForwardAxis:function(e){const t=e.gltf.extras.sourceVersion;((0,c.Z)(t)&&"2.0"!==t||"2.0"!==A.getAssetVersion(e.gltf))&&(e._gltfForwardAxis=b.Z.X)},getAssetVersion:function(e){return(0,c.Z)(e.asset)&&(0,c.Z)(e.asset.version)?e.asset.version:"1.0"},splitIncompatibleMaterials:function(e){const t=e.accessors,i=e.materials,n={};return Z.Z.mesh(e,(function(e){Z.Z.meshPrimitive(e,(function(e){let r=e.material;const o=i[r],s=e.attributes.JOINTS_0;let u,l;if((0,c.Z)(s)){const e=t[s];u=e.componentType,l=e.type}const h=(0,c.Z)(s)&&"VEC4"===l,d=(0,c.Z)(e.attributes.COLOR_0),f=(0,c.Z)(e.targets),p=(0,c.Z)(e.attributes.NORMAL),m=(0,c.Z)(e.attributes.TANGENT),Z=(0,c.Z)(e.attributes.TEXCOORD_0),g=Z&&(0,c.Z)(e.attributes.TEXCOORD_1),y=(0,c.Z)(e.extensions)&&(0,c.Z)(e.extensions.CESIUM_primitive_outline),b=n[r];if((0,c.Z)(b)){if(b.skinning.skinned!==h||b.hasVertexColors!==d||b.hasMorphTargets!==f||b.hasNormals!==p||b.hasTangents!==m||b.hasTexCoords!==Z||b.hasTexCoord1!==g||b.hasOutline!==y){const t=(0,a.Z)(o,!0);r=(0,_.Z)(i,t),e.material=r,n[r]={skinning:{skinned:h,componentType:u},hasVertexColors:d,hasMorphTargets:f,hasNormals:p,hasTangents:m,hasTexCoords:Z,hasTexCoord1:g,hasOutline:y}}}else n[r]={skinning:{skinned:h,componentType:u},hasVertexColors:d,hasMorphTargets:f,hasNormals:p,hasTangents:m,hasTexCoords:Z,hasTexCoord1:g,hasOutline:y}}))})),n},getShaderVariable:function(e){return"SCALAR"===e?"float":e.toLowerCase()},ModelState:{NEEDS_LOAD:0,LOADING:1,LOADED:2,FAILED:3},getFailedLoadFunction:function(e,t,i){return function(n){e._state=A.ModelState.FAILED;let r="Failed to load "+t+": "+i;(0,c.Z)(n)&&(r+="\n"+n.message),e._readyPromise.reject(new f.Z(r))}},parseBuffers:function(e,t){const i=e._loadResources;Z.Z.buffer(e.gltf,(function(n,r){if((0,c.Z)(n.extras._pipeline.source))i.buffers[r]=n.extras._pipeline.source;else if((0,c.Z)(t)){const o=e._resource.getDerivedResource({url:n.uri});++i.pendingBufferLoads,o.fetchArrayBuffer().then(t(e,r)).otherwise(A.getFailedLoadFunction(e,"buffer",o.url))}}))}},w=new o.Z,v=new o.Z;function T(e,t){return Z.Z.techniqueAttribute(e,(function(e,i){if(e.semantic===t)return i}))}function C(e,t,i,n){return(0,g.Z)(e,"KHR_techniques_webgl")?function(e,t){if(!(e.semantic!==i||n&&(0,c.Z)(e.node)))return t}:function(e,r){const o=t.parameters[e];if(!(o.semantic!==i||n&&(0,c.Z)(o.node)))return r}}A.computeBoundingSphere=function(e){const t=e.gltf,i=t.nodes,r=t.meshes,s=t.scenes[t.scene].nodes,a=s.length,u=[],l=new o.Z(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),d=new o.Z(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE);for(let e=0;e<a;++e){let n=i[s[e]];for(n._transformToRoot=A.getTransform(n),u.push(n);u.length>0;){n=u.pop();const e=n._transformToRoot,s=n.mesh;if((0,c.Z)(s)){const i=r[s].primitives,n=i.length;for(let r=0;r<n;++r){const n=i[r].attributes.POSITION;if((0,c.Z)(n)){const i=A.getAccessorMinMax(t,n);if((0,c.Z)(i.min)&&(0,c.Z)(i.max)){const t=o.Z.fromArray(i.min,0,w),n=o.Z.fromArray(i.max,0,v);h.Z.multiplyByPoint(e,t,t),h.Z.multiplyByPoint(e,n,n),o.Z.minimumByComponent(l,t,l),o.Z.maximumByComponent(d,n,d)}}}}const a=n.children;if((0,c.Z)(a)){const t=a.length;for(let n=0;n<t;++n){const t=i[a[n]];t._transformToRoot=A.getTransform(t),h.Z.multiplyTransformation(e,t._transformToRoot,t._transformToRoot),u.push(t)}}delete n._transformToRoot}}const f=n.Z.fromCornerPoints(l,d);return e._forwardAxis===b.Z.Z&&n.Z.transformWithoutScale(f,b.Z.Z_UP_TO_X_UP,f),e._upAxis===b.Z.Y?n.Z.transformWithoutScale(f,b.Z.Y_UP_TO_Z_UP,f):e._upAxis===b.Z.X&&n.Z.transformWithoutScale(f,b.Z.X_UP_TO_Z_UP,f),f},A.ensureSemanticExistence=function(e){return Z.Z.mesh(e,(function(t){Z.Z.meshPrimitive(t,(function(t){!function(e,t){const i=e.accessors,n=e.materials,r=e.extensions.KHR_techniques_webgl,o=r.techniques,s=r.programs,a=r.shaders,u=t.targets,l=t.attributes;for(const e in u)if(u.hasOwnProperty(e)){const t=u[e];for(const i in t)"extras"!==i&&(l[i+"_"+e]=t[i])}const h=o[n[t.material].extensions.KHR_techniques_webgl.technique],d=a[s[h.program].vertexShader];for(const e in l)if(l.hasOwnProperty(e)&&!(0,c.Z)(T(h,e))){const t=i[l[e]];let n=e.toLowerCase();"_"===n.charAt(0)&&(n=n.slice(1));const r="a_"+n;h.attributes[r]={semantic:e,type:t.componentType};const o=d.extras._pipeline;let s=o.source;s="attribute "+A.getShaderVariable(t.type)+" "+r+";\n"+s,o.source=s}}(e,t)}))})),e},A.createAttributeLocations=function(e,t){const i={};let n=!1,r=1;if(Z.Z.techniqueAttribute(e,(function(e,t){/pos/i.test(t)&&!n?(i[t]=0,n=!0):i[t]=r++})),(0,c.Z)(t))for(const e in t)t.hasOwnProperty(e)&&(i[e]=r++);return i},A.getAccessorMinMax=function(e,t){const i=e.accessors[t],n=i.extensions;let r=i.min,o=i.max;if((0,c.Z)(n)){const e=n.WEB3D_quantized_attributes;(0,c.Z)(e)&&(r=e.decodedMin,o=e.decodedMax)}return{min:r,max:o}},A.getAttributeOrUniformBySemantic=function(e,t,i,n){return Z.Z.technique(e,(function(r){if((0,c.Z)(i)&&r.program!==i)return;const o=Z.Z.techniqueAttribute(r,C(e,r,t,n));return(0,c.Z)(o)?o:Z.Z.techniqueUniform(r,C(e,r,t,n))}))},A.getDiffuseAttributeOrUniform=function(e,t){let i=A.getAttributeOrUniformBySemantic(e,"COLOR_0",t);return(0,c.Z)(i)||(i=A.getAttributeOrUniformBySemantic(e,"_3DTILESDIFFUSE",t)),i};const E=new o.Z,x=new d.Z,S=new o.Z;function O(e,t,i){t+="(?!\\w)",t=new RegExp(t,"g");const n=e.search(t);return e.replace(t,(function(e,t){return n===t?e:i}))}function I(e,t){const i=e.accessors[t].extensions;if((0,c.Z)(i))return i.WEB3D_quantized_attributes}function D(e,t,i){const n=t.material,r=e.materials[n];if(!(0,g.Z)(e,"KHR_techniques_webgl")||!(0,c.Z)(r.extensions)||!(0,c.Z)(r.extensions.KHR_techniques_webgl))return;const o=r.extensions.KHR_techniques_webgl.technique,s=e.extensions.KHR_techniques_webgl.techniques[o];return Z.Z.techniqueAttribute(s,(function(e,t){if(e.semantic===i)return t}))}function P(e){const t={value:e,clone:function(e,t){return e},func:function(){return t.value}};return t}function R(e){const t={value:r.Z.fromArray(e),clone:r.Z.clone,func:function(){return t.value}};return t}function B(e){const t={value:o.Z.fromArray(e),clone:o.Z.clone,func:function(){return t.value}};return t}function M(e){const t={value:s.Z.fromArray(e),clone:s.Z.clone,func:function(){return t.value}};return t}function L(e){const t={value:u.Z.fromColumnMajorArray(e),clone:u.Z.clone,func:function(){return t.value}};return t}function N(e){const t={value:l.Z.fromColumnMajorArray(e),clone:l.Z.clone,func:function(){return t.value}};return t}function F(e){const t={value:h.Z.fromColumnMajorArray(e),clone:h.Z.clone,func:function(){return t.value}};return t}function k(e,t,i){this._value=void 0,this._textureId=e.index,this._textures=t,this._defaultTexture=i}A.getTransform=function(e,t){return(0,c.Z)(e.matrix)?h.Z.fromColumnMajorArray(e.matrix,t):h.Z.fromTranslationQuaternionRotationScale(o.Z.fromArray(e.translation,0,E),d.Z.unpack(e.rotation,0,x),o.Z.fromArray(e.scale,0,S),t)},A.getUsedExtensions=function(e){const t=e.extensionsUsed,i={};if((0,c.Z)(t)){const e=t.length;for(let n=0;n<e;n++)i[t[n]]=!0}return i},A.getRequiredExtensions=function(e){const t=e.extensionsRequired,i={};if((0,c.Z)(t)){const e=t.length;for(let n=0;n<e;n++)i[t[n]]=!0}return i},A.supportedExtensions={AGI_articulations:!0,CESIUM_RTC:!0,EXT_texture_webp:!0,KHR_blend:!0,KHR_binary_glTF:!0,KHR_texture_basisu:!0,KHR_draco_mesh_compression:!0,KHR_materials_common:!0,KHR_techniques_webgl:!0,KHR_materials_unlit:!0,KHR_materials_pbrSpecularGlossiness:!0,KHR_texture_transform:!0,WEB3D_quantized_attributes:!0},A.checkSupportedExtensions=function(e,t){for(const i in e)if(e.hasOwnProperty(i)){if(!A.supportedExtensions[i])throw new f.Z("Unsupported glTF Extension: "+i);if("EXT_texture_webp"===i&&!1===t)throw new f.Z("Loaded model requires WebP but browser does not support it.")}},A.checkSupportedGlExtensions=function(e,t){if((0,c.Z)(e)){const i=e.length;for(let n=0;n<i;n++){const i=e[n];if("OES_element_index_uint"!==i)throw new f.Z("Unsupported WebGL Extension: "+i);if(!t.elementIndexUint)throw new f.Z("OES_element_index_uint WebGL extension is not enabled.")}}},A.modifyShaderForDracoQuantizedAttributes=function(e,t,i,n){const r={};for(let o in n)if(n.hasOwnProperty(o)){const s=n[o],a=s.quantization;if(!(0,c.Z)(a))continue;const u=D(e,t,o);"_"===o.charAt(0)&&(o=o.substring(1));const l="gltf_u_dec_"+o.toLowerCase();if(!(0,c.Z)(r[l])){const e="gltf_decoded_"+o,t=u.replace("a_","gltf_a_dec_"),n=s.componentsPerAttribute;let r;i=O(i,u,t),r=a.octEncoded?"vec3":n>1?"vec"+n:"float",i=r+" "+t+";\n"+i;const c=3===n&&"COLOR_0"===o;c&&(i=O(i,t,"vec4("+t+", 1.0)"));let h="";if(a.octEncoded){const n=l+"_rangeConstant";i="uniform float "+n+";\n"+i,h="\nvoid main() {\n "+t+" = czm_octDecode("+u+".xy, "+n+").zxy;\n "+e+"();\n}\n"}else{const n=l+"_normConstant",o=l+"_min";i="uniform float "+n+";\nuniform "+r+" "+o+";\n"+i,h="\nvoid main() {\n "+t+" = "+o+" + "+u+(c?".xyz":"")+" * "+n+";\n "+e+"();\n}\n"}i=m.Z.replaceMain(i,e),i+=h}}return{shader:i}},A.modifyShaderForQuantizedAttributes=function(e,t,i){const n={},r=t.attributes;for(let o in r)if(r.hasOwnProperty(o)){const r=D(e,t,o),s=t.attributes[o];"_"===o.charAt(0)&&(o=o.substring(1));const a="gltf_u_dec_"+o.toLowerCase(),u=a+"_scale",l=a+"_translate";if(!(0,c.Z)(n[a])&&!(0,c.Z)(n[u])){const t=I(e,s);if((0,c.Z)(t)){const e=t.decodeMatrix,s="gltf_decoded_"+o,c=r.replace("a_","gltf_a_dec_"),h=Math.floor(Math.sqrt(e.length));let d;i=O(i,r,c),d=h>2?"vec"+(h-1):"float",i=d+" "+c+";\n"+i;let f="";5===h?(i="uniform vec4 "+l+";\n"+(i="uniform mat4 "+u+";\n"+i),f="\nvoid main() {\n "+c+" = "+u+" * "+r+" + "+l+";\n "+s+"();\n}\n",n[u]={mat:4},n[l]={vec:4}):(i="uniform mat"+h+" "+a+";\n"+i,f="\nvoid main() {\n "+c+" = "+d+"("+a+" * vec"+h+"("+r+",1.0));\n "+s+"();\n}\n",n[a]={mat:h}),i=m.Z.replaceMain(i,s),i+=f}}}return{shader:i,uniforms:n}},Object.defineProperties(k.prototype,{value:{get:function(){if(!(0,c.Z)(this._value)){const e=this._textures[this._textureId];if(!(0,c.Z)(e))return this._defaultTexture;this._value=e}return this._value},set:function(e){this._value=e}}}),k.prototype.clone=function(e){return e},k.prototype.func=void 0;const U={};function V(e){return[e[20],e[21],e[22],e[23]]}U[p.Z.FLOAT]=P,U[p.Z.FLOAT_VEC2]=R,U[p.Z.FLOAT_VEC3]=B,U[p.Z.FLOAT_VEC4]=M,U[p.Z.INT]=P,U[p.Z.INT_VEC2]=R,U[p.Z.INT_VEC3]=B,U[p.Z.INT_VEC4]=M,U[p.Z.BOOL]=P,U[p.Z.BOOL_VEC2]=R,U[p.Z.BOOL_VEC3]=B,U[p.Z.BOOL_VEC4]=M,U[p.Z.FLOAT_MAT2]=L,U[p.Z.FLOAT_MAT3]=N,U[p.Z.FLOAT_MAT4]=F,U[p.Z.SAMPLER_2D]=function(e,t,i){const n=new k(e,t,i);return n.func=function(){return n.value},n},A.createUniformFunction=function(e,t,i,n){return U[e](t,i,n)},A.createUniformsForDracoQuantizedAttributes=function(e){const t={};for(let i in e)if(e.hasOwnProperty(i)){const n=e[i],r=n.quantization;if(!(0,c.Z)(r))continue;"_"===i.charAt(0)&&(i=i.substring(1));const o="gltf_u_dec_"+i.toLowerCase();if(r.octEncoded){const e=o+"_rangeConstant",i=(1<<r.quantizationBits)-1;t[e]=P(i).func;continue}const s=o+"_normConstant",a=r.range/(1<<r.quantizationBits);t[s]=P(a).func;const u=o+"_min";switch(n.componentsPerAttribute){case 1:t[u]=P(r.minValues).func;break;case 2:t[u]=R(r.minValues).func;break;case 3:t[u]=B(r.minValues).func;break;case 4:t[u]=M(r.minValues).func}}return t},A.createUniformsForQuantizedAttributes=function(e,t,i){const n=e.accessors,r={},o={},s=t.attributes;for(let e in s)if(s.hasOwnProperty(e)){const t=n[s[e]],i=t.extensions;if("_"===e.charAt(0)&&(e=e.substring(1)),(0,c.Z)(i)){const n=i.WEB3D_quantized_attributes;if((0,c.Z)(n)){const i=n.decodeMatrix,s="gltf_u_dec_"+e.toLowerCase();let c,u;switch(t.type){case y.Z.SCALAR:o[s]=L(i).func,r[s]=!0;break;case y.Z.VEC2:o[s]=N(i).func,r[s]=!0;break;case y.Z.VEC3:o[s]=F(i).func,r[s]=!0;break;case y.Z.VEC4:c=s+"_scale",u=s+"_translate",o[c]=F((a=i,[a[0],a[1],a[2],a[3],a[5],a[6],a[7],a[8],a[10],a[11],a[12],a[13],a[15],a[16],a[17],a[18]])).func,o[u]=M(V(i)).func,r[c]=!0,r[u]=!0}}}}var a;for(const e in i)if(i.hasOwnProperty(e)&&!r[e]){const t=i[e];(0,c.Z)(t.mat)&&(2===t.mat?o[e]=L(u.Z.IDENTITY).func:3===t.mat?o[e]=N(l.Z.IDENTITY).func:4===t.mat&&(o[e]=F(h.Z.IDENTITY).func)),(0,c.Z)(t.vec)&&4===t.vec&&(o[e]=M([0,0,0,0]).func)}return o};const z=new o.Z,H={MODEL:function(e,t){return function(){return e.model}},VIEW:function(e,t){return function(){return e.view}},PROJECTION:function(e,t){return function(){return e.projection}},MODELVIEW:function(e,t){return function(){return e.modelView}},CESIUM_RTC_MODELVIEW:function(e,t){const i=new h.Z;return function(){return(0,c.Z)(t._rtcCenter)?(h.Z.getTranslation(e.model,z),o.Z.add(z,t._rtcCenter,z),h.Z.multiplyByPoint(e.view,z,z),h.Z.setTranslation(e.modelView,z,i)):e.modelView}},MODELVIEWPROJECTION:function(e,t){return function(){return e.modelViewProjection}},MODELINVERSE:function(e,t){return function(){return e.inverseModel}},VIEWINVERSE:function(e,t){return function(){return e.inverseView}},PROJECTIONINVERSE:function(e,t){return function(){return e.inverseProjection}},MODELVIEWINVERSE:function(e,t){return function(){return e.inverseModelView}},MODELVIEWPROJECTIONINVERSE:function(e,t){return function(){return e.inverseModelViewProjection}},MODELINVERSETRANSPOSE:function(e,t){return function(){return e.inverseTransposeModel}},MODELVIEWINVERSETRANSPOSE:function(e,t){return function(){return e.normal}},VIEWPORT:function(e,t){return function(){return e.viewportCartesian4}}};A.getGltfSemanticUniforms=function(){return H};const G=A},840558:(e,t,i)=>{"use strict";i.d(t,{Z:()=>A});var n=i(913216),r=i(919382),o=i(406144),s=i(426468),a=i(54879),c=i(253316),u=i(581223),l=i(165373),h=i(583917),d=i(846264),f=i(358198),p=i(314685),m=i(172795);function _(e){let t=(e=(0,o.Z)(e,o.Z.EMPTY_OBJECT)).textureUrl;(0,s.Z)(t)||(t=(0,n.Z)("Assets/Textures/moonSmall.jpg")),this.show=(0,o.Z)(e.show,!0),this.textureUrl=t,this._ellipsoid=(0,o.Z)(e.ellipsoid,c.Z.MOON),this.onlySunLighting=(0,o.Z)(e.onlySunLighting,!0),this._ellipsoidPrimitive=new p.Z({radii:this.ellipsoid.radii,material:m.Z.fromType(m.Z.ImageType),depthTestEnabled:!1,_owner:this}),this._ellipsoidPrimitive.material.translucent=!1,this._axes=new u.Z}Object.defineProperties(_.prototype,{ellipsoid:{get:function(){return this._ellipsoid}}});const Z=new l.Z,g=new l.Z,y=new r.Z,b=[];_.prototype.update=function(e){if(!this.show)return;const t=this._ellipsoidPrimitive;t.material.uniforms.image=this.textureUrl,t.onlySunLighting=this.onlySunLighting;const i=e.time;(0,s.Z)(f.Z.computeIcrfToFixedMatrix(i,Z))||f.Z.computeTemeToPseudoFixedMatrix(i,Z);const n=this._axes.evaluate(i,g);l.Z.transpose(n,n),l.Z.multiply(Z,n,n);const r=d.Z.computeMoonPositionInEarthInertialFrame(i,y);l.Z.multiplyByVector(Z,r,r),h.Z.fromRotationTranslation(n,r,t.modelMatrix);const o=e.commandList;return e.commandList=b,b.length=0,t.update(e),e.commandList=o,1===b.length?b[0]:void 0},_.prototype.isDestroyed=function(){return!1},_.prototype.destroy=function(){return this._ellipsoidPrimitive=this._ellipsoidPrimitive&&this._ellipsoidPrimitive.destroy(),(0,a.Z)(this)};const A=_},695185:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_});var n=i(426468),r=i(54879),o=i(446938),s=i(261045),a=i(336217),c=i(316954),u=i(690220),l=i(50128),h=i(527758),d=i(58277),f=i(720095),p=i(292336),m=i(921778);function _(e,t,i,n){this._tileset=e,this._tile=t,this._tilesetResource=i,this._contents=[];const r=n.content;this._innerContentHeaders=r,this._requestsInFlight=0,this._cancelCount=0;const o=this._innerContentHeaders.length;this._arrayFetchPromises=new Array(o),this._requests=new Array(o),this._innerContentResources=new Array(o),this._serverKeys=new Array(o);for(let e=0;e<o;e++){const t=i.getDerivedResource({url:r[e].uri}),n=a.Z.getServerKey(t.getUrlComponent());this._innerContentResources[e]=t,this._serverKeys[e]=n}this._contentsFetchedPromise=void 0,this._readyPromise=h.Z.defer()}function Z(e,t){e._requestsInFlight+=t,e.tileset.statistics.numberOfPendingRequests+=t}function g(e,t,i,n){const r=e._innerContentResources[t].clone(),o=e.tile,a=e._serverKeys[t],l=new s.Z({throttle:!0,throttleByServer:!0,type:u.Z.TILES3D,priorityFunction:function(){return o._priority},serverKey:a});return r.request=l,e._requests[t]=l,r.fetchArrayBuffer().then((function(t){if(!(i<e._cancelCount))return Z(e,-1),t})).otherwise((function(o){i<e._cancelCount||(r.request.state!==c.Z.CANCELLED?(Z(e,-1),y(e,t,o)):function(e,t){e._cancelCount++,e._tile._contentState=t,e.tileset.statistics.numberOfPendingRequests-=e._requestsInFlight,e._requestsInFlight=0;const i=e._innerContentHeaders.length;e._arrayFetchPromises=new Array(i)}(e,n))}))}function y(e,t,i){const r=e._tileset,o=e._innerContentResources[t].url,s=(0,n.Z)(i.message)?i.message:i.toString();r.tileFailed.numberOfListeners>0?r.tileFailed.raiseEvent({url:o,message:s}):(console.log("A content failed to load: "+o),console.log("Error: "+s))}Object.defineProperties(_.prototype,{featurePropertiesDirty:{get:function(){const e=this._contents,t=e.length;for(let i=0;i<t;++i)if(e[i].featurePropertiesDirty)return!0;return!1},set:function(e){const t=this._contents,i=t.length;for(let n=0;n<i;++n)t[n].featurePropertiesDirty=e}},featuresLength:{get:function(){return 0}},pointsLength:{get:function(){return 0}},trianglesLength:{get:function(){return 0}},geometryByteLength:{get:function(){return 0}},texturesByteLength:{get:function(){return 0}},batchTableByteLength:{get:function(){return 0}},innerContents:{get:function(){return this._contents}},readyPromise:{get:function(){return this._readyPromise.promise}},tileset:{get:function(){return this._tileset}},tile:{get:function(){return this._tile}},url:{get:function(){}},batchTable:{get:function(){}},groupMetadata:{get:function(){},set:function(){throw new o.Z("Multiple3DTileContent cannot have group metadata")}},innerContentUrls:{get:function(){return this._innerContentHeaders.map((function(e){return e.uri}))}},contentsFetchedPromise:{get:function(){if((0,n.Z)(this._contentsFetchedPromise))return this._contentsFetchedPromise.promise}}}),_.prototype.requestInnerContents=function(){if(!function(e){const t={};for(let i=0;i<e.length;i++){const r=e[i];(0,n.Z)(t[r])?t[r]++:t[r]=1}for(const e in t)if(t.hasOwnProperty(e)&&!a.Z.serverHasOpenSlots(e,t[e]))return!1;return a.Z.heapHasOpenSlots(e.length)}(this._serverKeys))return this._serverKeys.length;const e=this._innerContentHeaders;Z(this,e.length);for(let t=0;t<e.length;t++)this._arrayFetchPromises[t]=g(this,t,this._cancelCount,this._tile._contentState);return(0,n.Z)(this._contentsFetchedPromise)||(this._contentsFetchedPromise=h.Z.defer()),function(e){const t=e._cancelCount;h.Z.all(e._arrayFetchPromises).then((function(i){if(!(t<e._cancelCount))return i.map((function(t,i){if((0,n.Z)(t))try{return function(e,t,i){const r=(0,m.Z)(t);if(r.contentType===d.Z.EXTERNAL_TILESET)throw new l.Z("External tilesets are disallowed inside the 3DTILES_multiple_contents extension");e._disableSkipLevelOfDetail=e._disableSkipLevelOfDetail||r.contentType===d.Z.GEOMETRY||r.contentType===d.Z.VECTOR;const o=e._tileset,s=e._innerContentResources[i];let a;const c=f.Z[r.contentType];a=(0,n.Z)(r.binaryPayload)?c(o,e._tile,s,r.binaryPayload.buffer,0):c(o,e._tile,s,r.jsonPayload);const u=e._innerContentHeaders[i];return a.groupMetadata=(0,p.Z)(o,u),a}(e,t,i)}catch(t){return void y(e,i,t)}}))})).then((function(t){(0,n.Z)(t)?(e._contents=t.filter(n.Z),function(e){const t=e._contents.map((function(e){return e.readyPromise}));h.Z.all(t).then((function(){e._readyPromise.resolve(e)})).otherwise((function(t){e._readyPromise.reject(t)}))}(e),(0,n.Z)(e._contentsFetchedPromise)&&e._contentsFetchedPromise.resolve()):(0,n.Z)(e._contentsFetchedPromise)&&(e._contentsFetchedPromise.resolve(),e._contentsFetchedPromise=void 0)})).otherwise((function(t){(0,n.Z)(e._contentsFetchedPromise)&&e._contentsFetchedPromise.reject(t)}))}(this),0},_.prototype.cancelRequests=function(){for(let e=0;e<this._requests.length;e++){const t=this._requests[e];(0,n.Z)(t)&&t.cancel()}},_.prototype.hasProperty=function(e,t){return!1},_.prototype.getFeature=function(e){},_.prototype.applyDebugSettings=function(e,t){const i=this._contents,n=i.length;for(let r=0;r<n;++r)i[r].applyDebugSettings(e,t)},_.prototype.applyStyle=function(e){const t=this._contents,i=t.length;for(let n=0;n<i;++n)t[n].applyStyle(e)},_.prototype.update=function(e,t){const i=this._contents,n=i.length;for(let r=0;r<n;++r)i[r].update(e,t)},_.prototype.isDestroyed=function(){return!1},_.prototype.destroy=function(){const e=this._contents,t=e.length;for(let i=0;i<t;++i)e[i].destroy();return(0,r.Z)(this)}},194657:(e,t,i)=>{"use strict";function n(e){}i.d(t,{Z:()=>r}),n.prototype.isReady=function(){return!0},n.prototype.shouldDiscardImage=function(e){return!1};const r=n},295811:(e,t,i)=>{"use strict";i.d(t,{Z:()=>O});var n=i(152124),r=i(545125),o=i(426468),s=i(54879),a=i(100883),c=i(619287),u=i(20209),l=i(247913),h=i(273642),d=i(687931),f=i(364232),p=i(279427),m=i(283044),_=i(275457),Z=i(23581),g=i(758409),y=i(601195);function b(e){this._translucentMultipassSupport=!1,this._translucentMRTSupport=!1;const t=e.colorBufferFloat&&e.depthTexture;this._translucentMRTSupport=e.drawBuffers&&t,this._translucentMultipassSupport=!this._translucentMRTSupport&&t,this._opaqueFBO=void 0,this._opaqueTexture=void 0,this._depthStencilTexture=void 0,this._accumulationTexture=void 0,this._translucentFBO=new h.Z({colorAttachmentsLength:this._translucentMRTSupport?2:1,createColorAttachments:!1,createDepthAttachments:!1}),this._alphaFBO=new h.Z({createColorAttachments:!1,createDepthAttachments:!1}),this._adjustTranslucentFBO=new h.Z({colorAttachmentsLength:this._translucentMRTSupport?2:1,createColorAttachments:!1}),this._adjustAlphaFBO=new h.Z({createColorAttachments:!1}),this._opaqueClearCommand=new u.Z({color:new r.Z(0,0,0,0),owner:this}),this._translucentMRTClearCommand=new u.Z({color:new r.Z(0,0,0,1),owner:this}),this._translucentMultipassClearCommand=new u.Z({color:new r.Z(0,0,0,0),owner:this}),this._alphaClearCommand=new u.Z({color:new r.Z(1,1,1,1),owner:this}),this._translucentRenderStateCache={},this._alphaRenderStateCache={},this._compositeCommand=void 0,this._adjustTranslucentCommand=void 0,this._adjustAlphaCommand=void 0,this._viewport=new n.Z,this._rs=void 0,this._useScissorTest=!1,this._scissorRectangle=void 0,this._useHDR=!1}function A(e){e._accumulationTexture=e._accumulationTexture&&!e._accumulationTexture.isDestroyed()&&e._accumulationTexture.destroy(),e._revealageTexture=e._revealageTexture&&!e._revealageTexture.isDestroyed()&&e._revealageTexture.destroy()}function w(e){e._translucentFBO.destroy(),e._alphaFBO.destroy(),e._adjustTranslucentFBO.destroy(),e._adjustAlphaFBO.destroy()}function v(e){A(e),w(e)}b.prototype.update=function(e,t,i,r){if(!this.isSupported())return;this._opaqueFBO=i,this._opaqueTexture=i.getColorTexture(0),this._depthStencilTexture=i.depthStencilTexture;const s=this._opaqueTexture.width,u=this._opaqueTexture.height,l=this._accumulationTexture,h=!(0,o.Z)(l)||l.width!==s||l.height!==u||r!==this._useHDR;if(h&&function(e,t,i,n){A(e),e._accumulationTexture=new m.Z({context:t,width:i,height:n,pixelFormat:a.Z.RGBA,pixelDatatype:d.Z.FLOAT});const r=new Float32Array(i*n*4);e._revealageTexture=new m.Z({context:t,pixelFormat:a.Z.RGBA,pixelDatatype:d.Z.FLOAT,source:{arrayBufferView:r,width:i,height:n},flipY:!1})}(this,e,s,u),(!(0,o.Z)(this._translucentFBO.framebuffer)||h)&&!function(e,t){w(e);const i=c.Z.FRAMEBUFFER_COMPLETE;let n=!0;const r=e._accumulationTexture.width,o=e._accumulationTexture.height;if(e._translucentMRTSupport&&(e._translucentFBO.setColorTexture(e._accumulationTexture,0),e._translucentFBO.setColorTexture(e._revealageTexture,1),e._translucentFBO.setDepthStencilTexture(e._depthStencilTexture),e._translucentFBO.update(t,r,o),e._adjustTranslucentFBO.setColorTexture(e._accumulationTexture,0),e._adjustTranslucentFBO.setColorTexture(e._revealageTexture,1),e._adjustTranslucentFBO.update(t,r,o),e._translucentFBO.status===i&&e._adjustTranslucentFBO.status===i||(w(e),e._translucentMRTSupport=!1)),!e._translucentMRTSupport){e._translucentFBO.setColorTexture(e._accumulationTexture),e._translucentFBO.setDepthStencilTexture(e._depthStencilTexture),e._translucentFBO.update(t,r,o),e._alphaFBO.setColorTexture(e._revealageTexture),e._alphaFBO.setDepthStencilTexture(e._depthStencilTexture),e._alphaFBO.update(t,r,o),e._adjustTranslucentFBO.setColorTexture(e._accumulationTexture),e._adjustTranslucentFBO.update(t,r,o),e._adjustAlphaFBO.setColorTexture(e._revealageTexture),e._adjustAlphaFBO.update(t,r,o);const s=e._translucentFBO.status===i,a=e._alphaFBO.status===i,c=e._adjustTranslucentFBO.status===i,u=e._adjustAlphaFBO.status===i;s&&a&&c&&u||(v(e),e._translucentMultipassSupport=!1,n=!1)}return n}(this,e))return;this._useHDR=r;const g=this;let y,b;(0,o.Z)(this._compositeCommand)||(y=new p.Z({sources:[Z.Z]}),this._translucentMRTSupport&&y.defines.push("MRT"),b={u_opaque:function(){return g._opaqueTexture},u_accumulation:function(){return g._accumulationTexture},u_revealage:function(){return g._revealageTexture}},this._compositeCommand=e.createViewportQuadCommand(y,{uniformMap:b,owner:this})),(0,o.Z)(this._adjustTranslucentCommand)||(this._translucentMRTSupport?(y=new p.Z({defines:["MRT"],sources:[_.Z]}),b={u_bgColor:function(){return g._translucentMRTClearCommand.color},u_depthTexture:function(){return g._depthStencilTexture}},this._adjustTranslucentCommand=e.createViewportQuadCommand(y,{uniformMap:b,owner:this})):this._translucentMultipassSupport&&(y=new p.Z({sources:[_.Z]}),b={u_bgColor:function(){return g._translucentMultipassClearCommand.color},u_depthTexture:function(){return g._depthStencilTexture}},this._adjustTranslucentCommand=e.createViewportQuadCommand(y,{uniformMap:b,owner:this}),b={u_bgColor:function(){return g._alphaClearCommand.color},u_depthTexture:function(){return g._depthStencilTexture}},this._adjustAlphaCommand=e.createViewportQuadCommand(y,{uniformMap:b,owner:this}))),this._viewport.width=s,this._viewport.height=u;const T=!n.Z.equals(this._viewport,t.viewport);let C=T!==this._useScissorTest;this._useScissorTest=T,n.Z.equals(this._scissorRectangle,t.viewport)||(this._scissorRectangle=n.Z.clone(t.viewport,this._scissorRectangle),C=!0),(0,o.Z)(this._rs)&&n.Z.equals(this._viewport,this._rs.viewport)&&!C||(this._rs=f.Z.fromCache({viewport:this._viewport,scissorTest:{enabled:this._useScissorTest,rectangle:this._scissorRectangle}})),(0,o.Z)(this._compositeCommand)&&(this._compositeCommand.renderState=this._rs),this._adjustTranslucentCommand&&(this._adjustTranslucentCommand.renderState=this._rs),(0,o.Z)(this._adjustAlphaCommand)&&(this._adjustAlphaCommand.renderState=this._rs)};const T={enabled:!0,color:new r.Z(0,0,0,0),equationRgb:g.Z.ADD,equationAlpha:g.Z.ADD,functionSourceRgb:y.Z.ONE,functionDestinationRgb:y.Z.ONE,functionSourceAlpha:y.Z.ZERO,functionDestinationAlpha:y.Z.ONE_MINUS_SOURCE_ALPHA},C={enabled:!0,color:new r.Z(0,0,0,0),equationRgb:g.Z.ADD,equationAlpha:g.Z.ADD,functionSourceRgb:y.Z.ONE,functionDestinationRgb:y.Z.ONE,functionSourceAlpha:y.Z.ONE,functionDestinationAlpha:y.Z.ONE},E={enabled:!0,color:new r.Z(0,0,0,0),equationRgb:g.Z.ADD,equationAlpha:g.Z.ADD,functionSourceRgb:y.Z.ZERO,functionDestinationRgb:y.Z.ONE_MINUS_SOURCE_ALPHA,functionSourceAlpha:y.Z.ZERO,functionDestinationAlpha:y.Z.ONE_MINUS_SOURCE_ALPHA};function x(e,t,i,n){let r=i[n.id];if(!(0,o.Z)(r)){const e=f.Z.getState(n);e.depthMask=!1,e.blending=t,r=f.Z.fromCache(e),i[n.id]=r}return r}function S(e,t,i,n){let r=e.shaderCache.getDerivedShaderProgram(t,i);if(!(0,o.Z)(r)){const o=t._attributeLocations,s=t.fragmentShaderSource.clone();s.sources=s.sources.map((function(e){return(e=(e=(e=p.Z.replaceMain(e,"czm_translucent_main")).replace(/gl_FragColor/g,"czm_gl_FragColor")).replace(/\bdiscard\b/g,"czm_discard = true")).replace(/czm_phong/g,"czm_translucentPhong")})),s.sources.splice(0,0,(-1!==n.indexOf("gl_FragData")?"#extension GL_EXT_draw_buffers : enable \n":"")+"vec4 czm_gl_FragColor;\nbool czm_discard = false;\n"),s.sources.push("void main()\n{\n czm_translucent_main();\n if (czm_discard)\n {\n discard;\n }\n"+n+"}\n"),r=e.shaderCache.createDerivedShaderProgram(t,i,{vertexShaderSource:t.vertexShaderSource,fragmentShaderSource:s,attributeLocations:o})}return r}b.prototype.createDerivedCommands=function(e,t,i){if((0,o.Z)(i)||(i={}),this._translucentMRTSupport){let r,s;(0,o.Z)(i.translucentCommand)&&(r=i.translucentCommand.shaderProgram,s=i.translucentCommand.renderState),i.translucentCommand=l.Z.shallowClone(e,i.translucentCommand),(0,o.Z)(r)&&i.shaderProgramId===e.shaderProgram.id?(i.translucentCommand.shaderProgram=r,i.translucentCommand.renderState=s):(i.translucentCommand.shaderProgram=function(e,t){return S(e,t,"translucentMRT"," vec3 Ci = czm_gl_FragColor.rgb * czm_gl_FragColor.a;\n float ai = czm_gl_FragColor.a;\n float wzi = czm_alphaWeight(ai);\n gl_FragData[0] = vec4(Ci * wzi, ai);\n gl_FragData[1] = vec4(ai * wzi);\n")}(t,e.shaderProgram),i.translucentCommand.renderState=(this,n=e.renderState,x(0,T,this._translucentRenderStateCache,n)),i.shaderProgramId=e.shaderProgram.id)}else{let n,r,s,a;(0,o.Z)(i.translucentCommand)&&(n=i.translucentCommand.shaderProgram,r=i.translucentCommand.renderState,s=i.alphaCommand.shaderProgram,a=i.alphaCommand.renderState),i.translucentCommand=l.Z.shallowClone(e,i.translucentCommand),i.alphaCommand=l.Z.shallowClone(e,i.alphaCommand),(0,o.Z)(n)&&i.shaderProgramId===e.shaderProgram.id?(i.translucentCommand.shaderProgram=n,i.translucentCommand.renderState=r,i.alphaCommand.shaderProgram=s,i.alphaCommand.renderState=a):(i.translucentCommand.shaderProgram=function(e,t){return S(e,t,"translucentMultipass"," vec3 Ci = czm_gl_FragColor.rgb * czm_gl_FragColor.a;\n float ai = czm_gl_FragColor.a;\n float wzi = czm_alphaWeight(ai);\n gl_FragColor = vec4(Ci, ai) * wzi;\n")}(t,e.shaderProgram),i.translucentCommand.renderState=function(e,t,i){return x(0,C,e._translucentRenderStateCache,i)}(this,0,e.renderState),i.alphaCommand.shaderProgram=function(e,t){return S(e,t,"alphaMultipass"," float ai = czm_gl_FragColor.a;\n gl_FragColor = vec4(ai);\n")}(t,e.shaderProgram),i.alphaCommand.renderState=function(e,t,i){return x(0,E,e._alphaRenderStateCache,i)}(this,0,e.renderState),i.shaderProgramId=e.shaderProgram.id)}var n;return i},b.prototype.executeCommands=function(e,t,i,n,r){this._translucentMRTSupport?function(e,t,i,n,r,s){const a=t.context,c=t.frameState.useLogDepth,u=t._hdr,l=n.framebuffer,h=r.length,d=t.frameState.shadowState.lightShadowsEnabled;n.framebuffer=e._adjustTranslucentFBO.framebuffer,e._adjustTranslucentCommand.execute(a,n);const f=e._opaqueFBO;let p,m;n.framebuffer=e._translucentFBO.framebuffer;for(let e=0;e<h;++e)p=r[e],p=c?p.derivedCommands.logDepth.command:p,p=u?p.derivedCommands.hdr.command:p,m=d&&p.receiveShadows?p.derivedCommands.oit.shadows.translucentCommand:p.derivedCommands.oit.translucentCommand,i(m,t,a,n,f);(0,o.Z)(s)&&(p=s.unclassifiedCommand,m=d&&p.receiveShadows?p.derivedCommands.oit.shadows.translucentCommand:p.derivedCommands.oit.translucentCommand,i(m,t,a,n,f)),n.framebuffer=l}(this,e,t,i,n,r):function(e,t,i,n,r,s){let a,c,u;const l=t.context,h=t.frameState.useLogDepth,d=t._hdr,f=n.framebuffer,p=r.length,m=t.frameState.shadowState.lightShadowsEnabled;n.framebuffer=e._adjustTranslucentFBO.framebuffer,e._adjustTranslucentCommand.execute(l,n),n.framebuffer=e._adjustAlphaFBO.framebuffer,e._adjustAlphaCommand.execute(l,n);const _=e._opaqueFBO;for(n.framebuffer=e._translucentFBO.framebuffer,u=0;u<p;++u)a=r[u],a=h?a.derivedCommands.logDepth.command:a,a=d?a.derivedCommands.hdr.command:a,c=m&&a.receiveShadows?a.derivedCommands.oit.shadows.translucentCommand:a.derivedCommands.oit.translucentCommand,i(c,t,l,n,_);for((0,o.Z)(s)&&(a=s.unclassifiedCommand,c=m&&a.receiveShadows?a.derivedCommands.oit.shadows.translucentCommand:a.derivedCommands.oit.translucentCommand,i(c,t,l,n,_)),n.framebuffer=e._alphaFBO.framebuffer,u=0;u<p;++u)a=r[u],a=h?a.derivedCommands.logDepth.command:a,a=d?a.derivedCommands.hdr.command:a,c=m&&a.receiveShadows?a.derivedCommands.oit.shadows.alphaCommand:a.derivedCommands.oit.alphaCommand,i(c,t,l,n,_);(0,o.Z)(s)&&(a=s.unclassifiedCommand,c=m&&a.receiveShadows?a.derivedCommands.oit.shadows.alphaCommand:a.derivedCommands.oit.alphaCommand,i(c,t,l,n,_)),n.framebuffer=f}(this,e,t,i,n,r)},b.prototype.execute=function(e,t){this._compositeCommand.execute(e,t)},b.prototype.clear=function(e,t,i){const n=t.framebuffer;t.framebuffer=this._opaqueFBO,r.Z.clone(i,this._opaqueClearCommand.color),this._opaqueClearCommand.execute(e,t),t.framebuffer=this._translucentFBO.framebuffer,(this._translucentMRTSupport?this._translucentMRTClearCommand:this._translucentMultipassClearCommand).execute(e,t),this._translucentMultipassSupport&&(t.framebuffer=this._alphaFBO.framebuffer,this._alphaClearCommand.execute(e,t)),t.framebuffer=n},b.prototype.isSupported=function(){return this._translucentMRTSupport||this._translucentMultipassSupport},b.prototype.isDestroyed=function(){return!1},b.prototype.destroy=function(){return v(this),(0,o.Z)(this._compositeCommand)&&(this._compositeCommand.shaderProgram=this._compositeCommand.shaderProgram&&this._compositeCommand.shaderProgram.destroy()),(0,o.Z)(this._adjustTranslucentCommand)&&(this._adjustTranslucentCommand.shaderProgram=this._adjustTranslucentCommand.shaderProgram&&this._adjustTranslucentCommand.shaderProgram.destroy()),(0,o.Z)(this._adjustAlphaCommand)&&(this._adjustAlphaCommand.shaderProgram=this._adjustAlphaCommand.shaderProgram&&this._adjustAlphaCommand.shaderProgram.destroy()),(0,s.Z)(this)};const O=b},520459:(e,t,i)=>{"use strict";i.d(t,{Z:()=>N});var n=i(919382),r=i(997274),o=i(426468),s=i(54879),a=i(546135),c=i(210510),u=i(100883),l=i(636807),h=i(50720),d=i(138012),f=i(161842),p=i(687931),m=i(928096),_=i(279427),Z=i(283044),g=i(676311),y=i(563431),b=i(63130),A=i(282758),w=i(527758);function v(e){this._url=e,this._cubeMapBuffers=void 0,this._cubeMaps=void 0,this._texture=void 0,this._mipTextures=void 0,this._va=void 0,this._sp=void 0,this._maximumMipmapLevel=void 0,this._loading=!1,this._ready=!1,this._readyPromise=w.Z.defer()}Object.defineProperties(v.prototype,{url:{get:function(){return this._url}},texture:{get:function(){return this._texture}},maximumMipmapLevel:{get:function(){return this._maximumMipmapLevel}},ready:{get:function(){return this._ready}},readyPromise:{get:function(){return this._readyPromise.promise}}}),v.isSupported=function(e){return e.colorBufferHalfFloat&&e.halfFloatingPointTexture||e.floatingPointTexture&&e.colorBufferFloat};const T=new n.Z(1,0,0),C=new n.Z(0,0,1),E=new n.Z(-1,0,0),x=new n.Z(0,0,-1),S=new n.Z(0,1,0),O=[S,E,C,new n.Z(0,-1,0),T,S,x,S,S],I=O.length,D=new Float32Array(3*I);let P=0;for(let e=0;e<I;++e,P+=3)n.Z.pack(O[e],D,P);const R=new Float32Array([-1,1,-1,0,0,1,0,0,1,0,1,1,0,-1,-1,-1,1,-1]),B=new Uint16Array([0,1,2,2,3,1,7,6,1,3,6,1,2,5,4,3,4,2,4,8,6,3,4,6]);function M(e){return function(){return e}}function L(e){let t,i;e._va=e._va&&e._va.destroy(),e._sp=e._sp&&e._sp.destroy();const n=e._cubeMaps;if((0,o.Z)(n))for(i=n.length,t=0;t<i;++t)n[t].destroy();const r=e._mipTextures;if((0,o.Z)(r))for(i=r.length,t=0;t<i;++t)r[t].destroy();e._va=void 0,e._sp=void 0,e._cubeMaps=void 0,e._cubeMapBuffers=void 0,e._mipTextures=void 0}v.prototype.update=function(e){const t=e.context;if(!v.isSupported(t))return;if((0,o.Z)(this._texture)&&(0,o.Z)(this._va)&&L(this),(0,o.Z)(this._texture))return;if(!(0,o.Z)(this._texture)&&!this._loading){const e=t.textureCache.getTexture(this._url);if((0,o.Z)(e))return L(this),this._texture=e,this._maximumMipmapLevel=this._texture.maximumMipmapLevel,this._ready=!0,void this._readyPromise.resolve()}const i=this._cubeMapBuffers;if(!(0,o.Z)(i)&&!this._loading){const e=this;(0,c.Z)(this._url).then((function(t){e._cubeMapBuffers=t,e._loading=!1})).otherwise(this._readyPromise.reject),this._loading=!0}if(!(0,o.Z)(this._cubeMapBuffers))return;const n=[];let s=i[0].positiveX.pixelDatatype;(0,o.Z)(s)?n.push("RGBA_NORMALIZED"):s=t.halfFloatingPointTexture?p.Z.HALF_FLOAT:p.Z.FLOAT;const w=u.Z.RGBA,T=new _.Z({defines:n,sources:[b.Z]});this._va=function(e){const t=l.Z.createVertexBuffer({context:e,typedArray:R,usage:h.Z.STATIC_DRAW}),i=l.Z.createVertexBuffer({context:e,typedArray:D,usage:h.Z.STATIC_DRAW}),n=l.Z.createIndexBuffer({context:e,typedArray:B,usage:h.Z.STATIC_DRAW,indexDatatype:a.Z.UNSIGNED_SHORT}),o=[{index:0,vertexBuffer:t,componentsPerAttribute:2,componentDatatype:r.Z.FLOAT},{index:1,vertexBuffer:i,componentsPerAttribute:3,componentDatatype:r.Z.FLOAT}];return new g.Z({context:e,attributes:o,indexBuffer:n})}(t),this._sp=m.Z.fromCache({context:t,vertexShaderSource:A.Z,fragmentShaderSource:T,attributeLocations:{position:0,cubeMapCoordinates:1}});const C=Math.min(i.length,6);this._maximumMipmapLevel=C-1;const E=this._cubeMaps=new Array(C),x=this._mipTextures=new Array(C),S=2*i[0].positiveX.width,O={originalSize:function(){return S}};for(let n=0;n<C;++n){const r=i[n].positiveY;i[n].positiveY=i[n].negativeY,i[n].negativeY=r;const o=E[n]=new f.Z({context:t,source:i[n],pixelDatatype:s}),a=2*E[n].width,c=x[n]=new Z.Z({context:t,width:a,height:a,pixelDatatype:s,pixelFormat:w}),u=new d.Z({vertexArray:this._va,shaderProgram:this._sp,uniformMap:{cubeMap:M(o)},outputTexture:c,persists:!0,owner:this});e.commandList.push(u),O["texture"+n]=M(c)}this._texture=new Z.Z({context:t,width:1.5*S+2,height:S,pixelDatatype:s,pixelFormat:w}),this._texture.maximumMipmapLevel=this._maximumMipmapLevel,t.textureCache.addTexture(this._url,this._texture);const I=new d.Z({fragmentShaderSource:y.Z,uniformMap:O,outputTexture:this._texture,persists:!1,owner:this});e.commandList.push(I),this._ready=!0,this._readyPromise.resolve()},v.prototype.isDestroyed=function(){return!1},v.prototype.destroy=function(){return L(this),this._texture=this._texture&&this._texture.destroy(),(0,s.Z)(this)};const N=v},152736:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});var n=i(846748),r=i(406144),o=i(426468),s=i(446938),a=i(523501),c=i(795788),u=i(310526),l=i(193866);const h=new n.Z("MapQuest, Open Street Map and contributors, CC-BY-SA");function d(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT);const t=c.Z.createIfNeeded((0,r.Z)(e.url,"https://a.tile.openstreetmap.org/"));t.appendForwardSlash(),t.url+="{z}/{x}/{y}."+(0,r.Z)(e.fileExtension,"png");const i=new u.Z({ellipsoid:e.ellipsoid}),o=(0,r.Z)(e.minimumLevel,0),d=e.maximumLevel,f=(0,r.Z)(e.rectangle,i.rectangle),p=i.positionToTileXY(a.Z.southwest(f),o),m=i.positionToTileXY(a.Z.northeast(f),o),_=(Math.abs(m.x-p.x)+1)*(Math.abs(m.y-p.y)+1);if(_>4)throw new s.Z("The rectangle and minimumLevel indicate that there are "+_+" tiles at the minimum level. Imagery providers with more than four tiles at the minimum level are not supported.");let Z=(0,r.Z)(e.credit,h);"string"==typeof Z&&(Z=new n.Z(Z)),l.Z.call(this,{url:t,credit:Z,tilingScheme:i,tileWidth:256,tileHeight:256,minimumLevel:o,maximumLevel:d,rectangle:f})}(0,o.Z)(Object.create)&&(d.prototype=Object.create(l.Z.prototype),d.prototype.constructor=d);const f=d},846888:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(357299),r=i(406144),o=i(426468),s=i(54879),a=i(417067);function c(){this._length=0,this._collections={},this._collectionsArray=[],this.show=!0}Object.defineProperties(c.prototype,{length:{get:function(){return this._length}}}),c.prototype.add=function(e,t){n.Z.defined("primitive",e),(0,o.Z)(t)&&n.Z.typeOf.number("zIndex",t),t=(0,r.Z)(t,0);let i=this._collections[t];if(!(0,o.Z)(i)){i=new a.Z({destroyPrimitives:!1}),i._zIndex=t,this._collections[t]=i;const e=this._collectionsArray;let n=0;for(;n<e.length&&e[n]._zIndex<t;)n++;e.splice(n,0,i)}return i.add(e),this._length++,e._zIndex=t,e},c.prototype.set=function(e,t){return n.Z.defined("primitive",e),n.Z.typeOf.number("zIndex",t),t===e._zIndex||(this.remove(e,!0),this.add(e,t)),e},c.prototype.remove=function(e,t){if(this.contains(e)){const i=e._zIndex,n=this._collections[i];let r;return r=t?n.remove(e):n.removeAndDestroy(e),r&&this._length--,0===n.length&&(this._collectionsArray.splice(this._collectionsArray.indexOf(n),1),this._collections[i]=void 0,n.destroy()),r}return!1},c.prototype.removeAll=function(){const e=this._collectionsArray;for(let t=0;t<e.length;t++){const i=e[t];i.destroyPrimitives=!0,i.destroy()}this._collections={},this._collectionsArray=[],this._length=0},c.prototype.contains=function(e){if(!(0,o.Z)(e))return!1;const t=this._collections[e._zIndex];return(0,o.Z)(t)&&t.contains(e)},c.prototype.update=function(e){if(!this.show)return;const t=this._collectionsArray;for(let i=0;i<t.length;i++)t[i].update(e)},c.prototype.isDestroyed=function(){return!1},c.prototype.destroy=function(){return this.removeAll(),(0,s.Z)(this)};const u=c},599132:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(337968),r=i(919382),o=i(545125),s=i(406144),a=i(426468);const c=new n.Z(1,1);function u(e){e=(0,s.Z)(e,s.Z.EMPTY_OBJECT),this.mass=(0,s.Z)(e.mass,1),this.position=r.Z.clone((0,s.Z)(e.position,r.Z.ZERO)),this.velocity=r.Z.clone((0,s.Z)(e.velocity,r.Z.ZERO)),this.life=(0,s.Z)(e.life,Number.MAX_VALUE),this.image=e.image,this.startColor=o.Z.clone((0,s.Z)(e.startColor,o.Z.WHITE)),this.endColor=o.Z.clone((0,s.Z)(e.endColor,o.Z.WHITE)),this.startScale=(0,s.Z)(e.startScale,1),this.endScale=(0,s.Z)(e.endScale,1),this.imageSize=n.Z.clone((0,s.Z)(e.imageSize,c)),this._age=0,this._normalizedAge=0,this._billboard=void 0}Object.defineProperties(u.prototype,{age:{get:function(){return this._age}},normalizedAge:{get:function(){return this._normalizedAge}}});const l=new r.Z;u.prototype.update=function(e,t){return r.Z.multiplyByScalar(this.velocity,e,l),r.Z.add(this.position,l,this.position),(0,a.Z)(t)&&t(this,e),this._age+=e,this.life===Number.MAX_VALUE?this._normalizedAge=0:this._normalizedAge=this._age/this.life,this._age<=this.life};const h=u},902311:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(406144);function r(e){e=(0,n.Z)(e,n.Z.EMPTY_OBJECT),this.time=(0,n.Z)(e.time,0),this.minimum=(0,n.Z)(e.minimum,0),this.maximum=(0,n.Z)(e.maximum,50),this._complete=!1}Object.defineProperties(r.prototype,{complete:{get:function(){return this._complete}}});const o=r},449114:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(446938);function r(e){throw new n.Z("This type should not be instantiated directly. Instead, use BoxEmitter, CircleEmitter, ConeEmitter or SphereEmitter.")}r.prototype.emit=function(e){n.Z.throwInstantiationError()};const o=r},458874:(e,t,i)=>{"use strict";i.d(t,{Z:()=>C});var n=i(337968),r=i(919382),o=i(357299),s=i(545125),a=i(406144),c=i(426468),u=i(54879),l=i(197685),h=i(40080),d=i(362017),f=i(583917),p=i(631754),m=i(730709),_=i(599132);const Z=new n.Z(1,1);function g(e){e=(0,a.Z)(e,a.Z.EMPTY_OBJECT),this.show=(0,a.Z)(e.show,!0),this.updateCallback=e.updateCallback,this.loop=(0,a.Z)(e.loop,!0),this.image=(0,a.Z)(e.image,void 0);let t=e.emitter;(0,c.Z)(t)||(t=new m.Z(.5)),this._emitter=t,this._bursts=e.bursts,this._modelMatrix=f.Z.clone((0,a.Z)(e.modelMatrix,f.Z.IDENTITY)),this._emitterModelMatrix=f.Z.clone((0,a.Z)(e.emitterModelMatrix,f.Z.IDENTITY)),this._matrixDirty=!0,this._combinedMatrix=new f.Z,this._startColor=s.Z.clone((0,a.Z)(e.color,(0,a.Z)(e.startColor,s.Z.WHITE))),this._endColor=s.Z.clone((0,a.Z)(e.color,(0,a.Z)(e.endColor,s.Z.WHITE))),this._startScale=(0,a.Z)(e.scale,(0,a.Z)(e.startScale,1)),this._endScale=(0,a.Z)(e.scale,(0,a.Z)(e.endScale,1)),this._emissionRate=(0,a.Z)(e.emissionRate,5),this._minimumSpeed=(0,a.Z)(e.speed,(0,a.Z)(e.minimumSpeed,1)),this._maximumSpeed=(0,a.Z)(e.speed,(0,a.Z)(e.maximumSpeed,1)),this._minimumParticleLife=(0,a.Z)(e.particleLife,(0,a.Z)(e.minimumParticleLife,5)),this._maximumParticleLife=(0,a.Z)(e.particleLife,(0,a.Z)(e.maximumParticleLife,5)),this._minimumMass=(0,a.Z)(e.mass,(0,a.Z)(e.minimumMass,1)),this._maximumMass=(0,a.Z)(e.mass,(0,a.Z)(e.maximumMass,1)),this._minimumImageSize=n.Z.clone((0,a.Z)(e.imageSize,(0,a.Z)(e.minimumImageSize,Z))),this._maximumImageSize=n.Z.clone((0,a.Z)(e.imageSize,(0,a.Z)(e.maximumImageSize,Z))),this._sizeInMeters=(0,a.Z)(e.sizeInMeters,!1),this._lifetime=(0,a.Z)(e.lifetime,Number.MAX_VALUE),this._billboardCollection=void 0,this._particles=[],this._particlePool=[],this._previousTime=void 0,this._currentTime=0,this._carryOver=0,this._complete=new l.Z,this._isComplete=!1,this._updateParticlePool=!0,this._particleEstimate=0}function y(e){let t=e._particlePool.pop();return(0,c.Z)(t)||(t=new _.Z),t}function b(e,t){e._particlePool.push(t)}function A(e){(0,c.Z)(e._billboard)&&(e._billboard.show=!1)}function w(e,t){let i=t._billboard;(0,c.Z)(i)||(i=t._billboard=e._billboardCollection.add({image:t.image})),i.width=t.imageSize.x,i.height=t.imageSize.y,i.position=t.position,i.sizeInMeters=e.sizeInMeters,i.show=!0;const n=d.Z.lerp(t.startColor.red,t.endColor.red,t.normalizedAge),r=d.Z.lerp(t.startColor.green,t.endColor.green,t.normalizedAge),o=d.Z.lerp(t.startColor.blue,t.endColor.blue,t.normalizedAge),a=d.Z.lerp(t.startColor.alpha,t.endColor.alpha,t.normalizedAge);i.color=new s.Z(n,r,o,a),i.scale=d.Z.lerp(t.startScale,t.endScale,t.normalizedAge)}function v(e,t){t.startColor=s.Z.clone(e._startColor,t.startColor),t.endColor=s.Z.clone(e._endColor,t.endColor),t.startScale=e._startScale,t.endScale=e._endScale,t.image=e.image,t.life=d.Z.randomBetween(e._minimumParticleLife,e._maximumParticleLife),t.mass=d.Z.randomBetween(e._minimumMass,e._maximumMass),t.imageSize.x=d.Z.randomBetween(e._minimumImageSize.x,e._maximumImageSize.x),t.imageSize.y=d.Z.randomBetween(e._minimumImageSize.y,e._maximumImageSize.y),t._normalizedAge=0,t._age=0;const i=d.Z.randomBetween(e._minimumSpeed,e._maximumSpeed);r.Z.multiplyByScalar(t.velocity,i,t.velocity),e._particles.push(t)}Object.defineProperties(g.prototype,{emitter:{get:function(){return this._emitter},set:function(e){o.Z.defined("value",e),this._emitter=e}},bursts:{get:function(){return this._bursts},set:function(e){this._bursts=e,this._updateParticlePool=!0}},modelMatrix:{get:function(){return this._modelMatrix},set:function(e){o.Z.defined("value",e),this._matrixDirty=this._matrixDirty||!f.Z.equals(this._modelMatrix,e),f.Z.clone(e,this._modelMatrix)}},emitterModelMatrix:{get:function(){return this._emitterModelMatrix},set:function(e){o.Z.defined("value",e),this._matrixDirty=this._matrixDirty||!f.Z.equals(this._emitterModelMatrix,e),f.Z.clone(e,this._emitterModelMatrix)}},startColor:{get:function(){return this._startColor},set:function(e){o.Z.defined("value",e),s.Z.clone(e,this._startColor)}},endColor:{get:function(){return this._endColor},set:function(e){o.Z.defined("value",e),s.Z.clone(e,this._endColor)}},startScale:{get:function(){return this._startScale},set:function(e){o.Z.typeOf.number.greaterThanOrEquals("value",e,0),this._startScale=e}},endScale:{get:function(){return this._endScale},set:function(e){o.Z.typeOf.number.greaterThanOrEquals("value",e,0),this._endScale=e}},emissionRate:{get:function(){return this._emissionRate},set:function(e){o.Z.typeOf.number.greaterThanOrEquals("value",e,0),this._emissionRate=e,this._updateParticlePool=!0}},minimumSpeed:{get:function(){return this._minimumSpeed},set:function(e){o.Z.typeOf.number.greaterThanOrEquals("value",e,0),this._minimumSpeed=e}},maximumSpeed:{get:function(){return this._maximumSpeed},set:function(e){o.Z.typeOf.number.greaterThanOrEquals("value",e,0),this._maximumSpeed=e}},minimumParticleLife:{get:function(){return this._minimumParticleLife},set:function(e){o.Z.typeOf.number.greaterThanOrEquals("value",e,0),this._minimumParticleLife=e}},maximumParticleLife:{get:function(){return this._maximumParticleLife},set:function(e){o.Z.typeOf.number.greaterThanOrEquals("value",e,0),this._maximumParticleLife=e,this._updateParticlePool=!0}},minimumMass:{get:function(){return this._minimumMass},set:function(e){o.Z.typeOf.number.greaterThanOrEquals("value",e,0),this._minimumMass=e}},maximumMass:{get:function(){return this._maximumMass},set:function(e){o.Z.typeOf.number.greaterThanOrEquals("value",e,0),this._maximumMass=e}},minimumImageSize:{get:function(){return this._minimumImageSize},set:function(e){o.Z.typeOf.object("value",e),o.Z.typeOf.number.greaterThanOrEquals("value.x",e.x,0),o.Z.typeOf.number.greaterThanOrEquals("value.y",e.y,0),this._minimumImageSize=e}},maximumImageSize:{get:function(){return this._maximumImageSize},set:function(e){o.Z.typeOf.object("value",e),o.Z.typeOf.number.greaterThanOrEquals("value.x",e.x,0),o.Z.typeOf.number.greaterThanOrEquals("value.y",e.y,0),this._maximumImageSize=e}},sizeInMeters:{get:function(){return this._sizeInMeters},set:function(e){o.Z.typeOf.bool("value",e),this._sizeInMeters=e}},lifetime:{get:function(){return this._lifetime},set:function(e){o.Z.typeOf.number.greaterThanOrEquals("value",e,0),this._lifetime=e}},complete:{get:function(){return this._complete}},isComplete:{get:function(){return this._isComplete}}});const T=new r.Z;g.prototype.update=function(e){if(!this.show)return;(0,c.Z)(this._billboardCollection)||(this._billboardCollection=new p.Z),this._updateParticlePool&&(function(e){const t=e._emissionRate,i=e._maximumParticleLife;let n=0;const r=e._bursts;if((0,c.Z)(r)){const e=r.length;for(let t=0;t<e;++t)n+=r[t].maximum}const o=e._billboardCollection,s=e.image,a=Math.ceil(t*i+n),u=e._particles,l=e._particlePool,h=Math.max(a-u.length-l.length,0);for(let e=0;e<h;++e){const e=new _.Z;e._billboard=o.add({image:s}),l.push(e)}e._particleEstimate=a}(this),this._updateParticlePool=!1);let t=0;this._previousTime&&(t=h.Z.secondsDifference(e.time,this._previousTime)),t<0&&(t=0);const i=this._particles,n=this._emitter,o=this.updateCallback;let s,a,u=i.length;for(s=0;s<u;++s)a=i[s],a.update(t,o)?w(this,a):(A(a),b(this,a),i[s]=i[u-1],--s,--u);i.length=u;const l=function(e,t){if(e._isComplete)return 0;const i=(t=d.Z.mod(t,e._lifetime))*e._emissionRate;let n=Math.floor(i);if(e._carryOver+=i-n,e._carryOver>1&&(n++,e._carryOver-=1),(0,c.Z)(e.bursts)){const t=e.bursts.length;for(let i=0;i<t;i++){const t=e.bursts[i],r=e._currentTime;(0,c.Z)(t)&&!t._complete&&r>t.time&&(n+=d.Z.randomBetween(t.minimum,t.maximum),t._complete=!0)}}return n}(this,t);if(l>0&&(0,c.Z)(n)){this._matrixDirty&&(this._combinedMatrix=f.Z.multiply(this.modelMatrix,this.emitterModelMatrix,this._combinedMatrix),this._matrixDirty=!1);const e=this._combinedMatrix;for(s=0;s<l;s++)a=y(this),this._emitter.emit(a),r.Z.add(a.position,a.velocity,T),f.Z.multiplyByPoint(e,T,T),a.position=f.Z.multiplyByPoint(e,a.position,a.position),r.Z.subtract(T,a.position,a.velocity),r.Z.normalize(a.velocity,a.velocity),v(this,a),w(this,a)}if(this._billboardCollection.update(e),this._previousTime=h.Z.clone(e.time,this._previousTime),this._currentTime+=t,this._lifetime!==Number.MAX_VALUE&&this._currentTime>this._lifetime)if(this.loop){if(this._currentTime=d.Z.mod(this._currentTime,this._lifetime),this.bursts){const e=this.bursts.length;for(s=0;s<e;s++)this.bursts[s]._complete=!1}}else this._isComplete=!0,this._complete.raiseEvent(this);e.frameNumber%120==0&&function(e){const t=e._particles,i=e._particlePool,n=e._billboardCollection,r=t.length,o=i.length,s=e._particleEstimate,a=o-Math.max(s-r-o,0);for(let e=a;e<o;++e){const t=i[e];n.remove(t._billboard)}i.length=a}(this)},g.prototype.isDestroyed=function(){return!1},g.prototype.destroy=function(){return this._billboardCollection=this._billboardCollection&&this._billboardCollection.destroy(),(0,u.Z)(this)};const C=g},578721:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(406144),r=i(172674),o=i(321141),s=i(42935),a=i(116119),c=i(546715),u=i(23851);function l(e){e=(0,n.Z)(e,n.Z.EMPTY_OBJECT);const t=(0,n.Z)(e.translucent,!0),i=(0,n.Z)(e.closed,!1),r=(0,n.Z)(e.flat,!1),h=r?c.Z:s.Z,d=r?a.Z:o.Z,f=r?l.FLAT_VERTEX_FORMAT:l.VERTEX_FORMAT;this.material=void 0,this.translucent=t,this._vertexShaderSource=(0,n.Z)(e.vertexShaderSource,h),this._fragmentShaderSource=(0,n.Z)(e.fragmentShaderSource,d),this._renderState=u.Z.getDefaultRenderState(t,i,e.renderState),this._closed=i,this._vertexFormat=f,this._flat=r,this._faceForward=(0,n.Z)(e.faceForward,!i)}Object.defineProperties(l.prototype,{vertexShaderSource:{get:function(){return this._vertexShaderSource}},fragmentShaderSource:{get:function(){return this._fragmentShaderSource}},renderState:{get:function(){return this._renderState}},closed:{get:function(){return this._closed}},vertexFormat:{get:function(){return this._vertexFormat}},flat:{get:function(){return this._flat}},faceForward:{get:function(){return this._faceForward}}}),l.VERTEX_FORMAT=r.Z.POSITION_AND_NORMAL,l.FLAT_VERTEX_FORMAT=r.Z.POSITION_ONLY,l.prototype.getFragmentShaderSource=u.Z.prototype.getFragmentShaderSource,l.prototype.isTranslucent=u.Z.prototype.isTranslucent,l.prototype.getRenderState=u.Z.prototype.getRenderState;const h=l},12965:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(406144),r=i(426468),o=i(54879),s=i(446938),a=i(485083),c=i(78320);function u(e){e=(0,n.Z)(e,n.Z.EMPTY_OBJECT);const t=(0,c.Z)(e.container);if(!(0,r.Z)(t))throw new s.Z("container is required");this._container=t;const i=document.createElement("div");i.className="cesium-performanceDisplay";const o=document.createElement("div");o.className="cesium-performanceDisplay-fps",this._fpsText=document.createTextNode(""),o.appendChild(this._fpsText);const u=document.createElement("div");u.className="cesium-performanceDisplay-ms",this._msText=document.createTextNode(""),u.appendChild(this._msText),i.appendChild(u),i.appendChild(o),this._container.appendChild(i),this._lastFpsSampleTime=(0,a.Z)(),this._lastMsSampleTime=(0,a.Z)(),this._fpsFrameCount=0,this._msFrameCount=0,this._throttled=!1;const l=document.createElement("div");l.className="cesium-performanceDisplay-throttled",this._throttledText=document.createTextNode(""),l.appendChild(this._throttledText),i.appendChild(l)}Object.defineProperties(u.prototype,{throttled:{get:function(){return this._throttled},set:function(e){this._throttled!==e&&(this._throttledText.nodeValue=e?"(throttled)":"",this._throttled=e)}}}),u.prototype.update=function(e){const t=(0,a.Z)(),i=(0,n.Z)(e,!0);this._fpsFrameCount++;const r=t-this._lastFpsSampleTime;if(r>1e3){let e="N/A";i&&(e=1e3*this._fpsFrameCount/r|0),this._fpsText.nodeValue=e+" FPS",this._lastFpsSampleTime=t,this._fpsFrameCount=0}this._msFrameCount++;const o=t-this._lastMsSampleTime;if(o>200){let e="N/A";i&&(e=(o/this._msFrameCount).toFixed(2)),this._msText.nodeValue=e+" MS",this._lastMsSampleTime=t,this._msFrameCount=0}},u.prototype.destroy=function(){return(0,o.Z)(this)};const l=u},382566:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(114754),r=i(426468),o=i(54879),s=i(273642),a=i(364232);function c(){this._framebuffer=new s.Z,this._textureToCopy=void 0,this._copyDepthCommand=void 0}Object.defineProperties(c.prototype,{framebuffer:{get:function(){return this._framebuffer.framebuffer}}}),c.prototype.update=function(e,t){!function(e,t,i){const n=i.width,r=i.height;e._framebuffer.update(t,n,r)}(this,e,t),function(e,t,i){if(!(0,r.Z)(e._copyDepthCommand)){const i="uniform highp sampler2D u_texture;\nvarying vec2 v_textureCoordinates;\nvoid main()\n{\n gl_FragColor = czm_packDepth(texture2D(u_texture, v_textureCoordinates).r);\n}\n";e._copyDepthCommand=t.createViewportQuadCommand(i,{renderState:a.Z.fromCache(),uniformMap:{u_texture:function(){return e._textureToCopy}},owner:e})}e._textureToCopy=i,e._copyDepthCommand.framebuffer=e.framebuffer}(this,e,t)};const u=new n.Z,l=new n.Z(1,1/255,1/65025,1/16581375);c.prototype.getDepth=function(e,t,i){if(!(0,r.Z)(this.framebuffer))return;const o=e.readPixels({x:t,y:i,width:1,height:1,framebuffer:this.framebuffer}),s=n.Z.unpack(o,0,u);return n.Z.divideByScalar(s,255,s),n.Z.dot(s,l)},c.prototype.executeCopyDepth=function(e,t){this._copyDepthCommand.execute(e,t)},c.prototype.isDestroyed=function(){return!1},c.prototype.destroy=function(){return this._framebuffer.destroy(),(0,r.Z)(this._copyDepthCommand)&&(this._copyDepthCommand.shaderProgram=(0,r.Z)(this._copyDepthCommand.shaderProgram)&&this._copyDepthCommand.shaderProgram.destroy()),(0,o.Z)(this)};const h=c},439653:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(152124),r=i(54879),o=i(273642),s=i(823989);function a(){this._framebuffer=new o.Z({color:!1,depthStencil:!0,supportsDepthTexture:!0}),this._passState=void 0}Object.defineProperties(a.prototype,{framebuffer:{get:function(){return this._framebuffer.framebuffer}}}),a.prototype.update=function(e,t,i){const r=i.width,o=i.height;this._framebuffer.isDirty(r,o)&&function(e,t){const i=t.drawingBufferWidth,r=t.drawingBufferHeight;e._framebuffer.update(t,i,r);const o=new s.Z(t);o.blendingEnabled=!1,o.scissorTest={enabled:!0,rectangle:new n.Z},o.viewport=new n.Z,e._passState=o}(this,e);const a=this.framebuffer,c=this._passState;return c.framebuffer=a,c.viewport.width=r,c.viewport.height=o,c.scissorTest.rectangle.x=t.x,c.scissorTest.rectangle.y=o-t.y,c.scissorTest.rectangle.width=1,c.scissorTest.rectangle.height=1,c},a.prototype.isDestroyed=function(){return!1},a.prototype.destroy=function(){return this._framebuffer.destroy(),(0,r.Z)(this)};const c=a},29900:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(152124),r=i(545125),o=i(406144),s=i(426468),a=i(54879),c=i(273642),u=i(823989);function l(e){const t=new u.Z(e);t.blendingEnabled=!1,t.scissorTest={enabled:!0,rectangle:new n.Z},t.viewport=new n.Z,this._context=e,this._fb=new c.Z({depthStencil:!0}),this._passState=t,this._width=0,this._height=0}l.prototype.begin=function(e,t){const i=this._context,r=t.width,o=t.height;return n.Z.clone(e,this._passState.scissorTest.rectangle),this._width=r,this._height=o,this._fb.update(i,r,o),this._passState.framebuffer=this._fb.framebuffer,this._passState.viewport.width=r,this._passState.viewport.height=o,this._passState};const h=new r.Z;l.prototype.end=function(e){const t=(0,o.Z)(e.width,1),i=(0,o.Z)(e.height,1),n=this._context,a=n.readPixels({x:e.x,y:e.y,width:t,height:i,framebuffer:this._fb.framebuffer}),c=Math.max(t,i),u=c*c,l=Math.floor(.5*t),d=Math.floor(.5*i);let f=0,p=0,m=0,_=-1;for(let e=0;e<u;++e){if(-l<=f&&f<=l&&-d<=p&&p<=d){const e=4*((d-p)*t+f+l);h.red=r.Z.byteToFloat(a[e]),h.green=r.Z.byteToFloat(a[e+1]),h.blue=r.Z.byteToFloat(a[e+2]),h.alpha=r.Z.byteToFloat(a[e+3]);const i=n.getObjectByPickColor(h);if((0,s.Z)(i))return i}if(f===p||f<0&&-f===p||f>0&&f===1-p){const e=m;m=-_,_=e}f+=m,p+=_}},l.prototype.isDestroyed=function(){return!1},l.prototype.destroy=function(){return this._fb.destroy(),(0,a.Z)(this)};const d=l},959889:(e,t,i)=>{"use strict";i.d(t,{Z:()=>be});var n=i(140537),r=i(152124),o=i(337968),s=i(919382),a=i(698907),c=i(357299),u=i(545125),l=i(406144),h=i(426468),d=i(446938),f=i(583917),p=i(610490),m=i(736404),_=i(118121),Z=i(348808),g=i(24401),y=i(208613),b=i(527758),A=i(333473),w=i(268053),v=i(992722),T=i(78355),C=i(382566),E=i(417067),x=i(506678),S=i(867536),O=i(786453);const I=new T.Z({pass:v.Z.MOST_DETAILED_PRELOAD}),D=new T.Z({pass:v.Z.MOST_DETAILED_PICK}),P=new T.Z({pass:v.Z.PICK});function R(e){this._mostDetailedRayPicks=[],this.pickRenderStateCache={},this._pickPositionCache={},this._pickPositionCacheDirty=!1;const t=new r.Z(0,0,1,1),i=new A.Z(e);i.frustum=new p.Z({width:.1,aspectRatio:1,near:.1}),this._pickOffscreenView=new O.Z(e,i,t)}R.prototype.update=function(){this._pickPositionCacheDirty=!0},R.prototype.getPickDepth=function(e,t){const i=e.view.pickDepths;let n=i[t];return(0,h.Z)(n)||(n=new C.Z,i[t]=n),n};const B=new m.Z,M=new s.Z,L=new s.Z,N=new o.Z,F=new f.Z,k=new Z.Z,U=new o.Z;function V(e,t,i,n,r){const o=e.camera.frustum;return o instanceof p.Z||o instanceof m.Z?function(e,t,i,n,r){const o=e.camera;let a=o.frustum;(0,h.Z)(a._offCenterFrustum)&&(a=a._offCenterFrustum);let c=2*(t.x-r.x)/r.width-1;c*=.5*(a.right-a.left);let u=2*(r.height-t.y-r.y)/r.height-1;u*=.5*(a.top-a.bottom);const l=f.Z.clone(o.transform,F);o._setTransform(f.Z.IDENTITY);const d=s.Z.clone(o.position,M);s.Z.multiplyByScalar(o.right,c,L),s.Z.add(L,d,d),s.Z.multiplyByScalar(o.up,u,L),s.Z.add(L,d,d),o._setTransform(l),e.mode===x.Z.SCENE2D&&s.Z.fromElements(d.z,d.x,d.y,d);const p=a.getPixelDimensions(r.width,r.height,1,1,N),m=B;return m.right=.5*p.x,m.left=-m.right,m.top=.5*p.y,m.bottom=-m.top,m.near=a.near,m.far=a.far,m.computeCullingVolume(d,o.directionWC,o.upWC)}(e,t,0,0,r):function(e,t,i,n,r){const o=e.camera,s=o.frustum,a=s.near,c=Math.tan(.5*s.fovy),u=s.aspectRatio*c,l=(2*(t.x-r.x)/r.width-1)*a*u,h=(2*(r.height-t.y-r.y)/r.height-1)*a*c,d=s.getPixelDimensions(r.width,r.height,1,1,U),f=d.x*i*.5,p=d.y*n*.5,m=k;return m.top=h+p,m.bottom=h-p,m.right=l+f,m.left=l-f,m.near=a,m.far=s.far,m.computeCullingVolume(o.positionWC,o.directionWC,o.upWC)}(e,t,i,n,r)}let z=3,H=3,G=new r.Z(0,0,z,H);const q=new o.Z,j=new u.Z(0,0,0,0);R.prototype.pick=function(e,t,i,n){if(!(0,h.Z)(t))throw new d.Z("windowPosition is undefined.");z=(0,l.Z)(i,3),H=(0,l.Z)(n,z);const o=e.context,s=o.uniformState,a=e.frameState,c=e.defaultView;e.view=c;const u=c.viewport;u.x=0,u.y=0,u.width=o.drawingBufferWidth,u.height=o.drawingBufferHeight;let f=c.passState;f.viewport=r.Z.clone(u,f.viewport);const p=S.Z.transformWindowToDrawingBuffer(e,t,q);e.jobScheduler.disableThisFrame(),e.updateFrameState(),a.cullingVolume=V(e,p,z,H,u),a.invertClassification=!1,a.passes.pick=!0,a.tilesetPassState=P,s.update(a),e.updateEnvironment(),G.x=p.x-.5*(z-1),G.y=e.drawingBufferHeight-p.y-.5*(H-1),G.width=z,G.height=H,f=c.pickFramebuffer.begin(G,c.viewport),e.updateAndExecuteCommands(f,j),e.resolveFramebuffers(f);const m=c.pickFramebuffer.end(G);return o.endFrame(),m};const W=new _.Z,K=new Z.Z,Y=new p.Z,X=new m.Z;R.prototype.pickPositionWorldCoordinates=function(e,t,i){if(!e.useDepthPicking)return;if(!(0,h.Z)(t))throw new d.Z("windowPosition is undefined.");if(!e.context.depthTexture)throw new d.Z("Picking from the depth buffer is not supported. Check pickPositionSupported.");const n=t.toString();if(this._pickPositionCacheDirty)this._pickPositionCache={},this._pickPositionCacheDirty=!1;else if(this._pickPositionCache.hasOwnProperty(n))return s.Z.clone(this._pickPositionCache[n],i);const o=e.frameState,a=e.context,c=a.uniformState,u=e.defaultView;e.view=u;const l=S.Z.transformWindowToDrawingBuffer(e,t,q);e.pickTranslucentDepth?function(e,t){const i=e.context,n=e.frameState,o=e.environmentState,s=e.defaultView;e.view=s;const a=s.viewport;a.x=0,a.y=0,a.width=i.drawingBufferWidth,a.height=i.drawingBufferHeight;let c=s.passState;c.viewport=r.Z.clone(a,c.viewport),e.clearPasses(n.passes),n.passes.pick=!0,n.passes.depth=!0,n.cullingVolume=V(e,t,1,1,a),n.tilesetPassState=P,e.updateEnvironment(),o.renderTranslucentDepthForPick=!0,c=s.pickDepthFramebuffer.update(i,t,a),e.updateAndExecuteCommands(c,j),e.resolveFramebuffers(c),i.endFrame()}(e,l):(e.updateFrameState(),c.update(o),e.updateEnvironment()),l.y=e.drawingBufferHeight-l.y;const f=e.camera;let p;p=(0,h.Z)(f.frustum.fov)?f.frustum.clone(W):(0,h.Z)(f.frustum.infiniteProjectionMatrix)?f.frustum.clone(K):(0,h.Z)(f.frustum.width)?f.frustum.clone(Y):f.frustum.clone(X);const m=u.frustumCommandsList,_=m.length;for(let t=0;t<_;++t){const r=this.getPickDepth(e,t).getDepth(a,l.x,l.y);if((0,h.Z)(r)&&r>0&&r<1){const a=m[t];let u;return e.mode===x.Z.SCENE2D?(u=f.position.z,f.position.z=u-a.near+1,p.far=Math.max(1,a.far-a.near),p.near=1,c.update(o),c.updateFrustum(p)):(p.near=a.near*(0!==t?e.opaqueFrustumNearOffset:1),p.far=a.far,c.updateFrustum(p)),i=S.Z.drawingBufferToWgs84Coordinates(e,l,r,i),e.mode===x.Z.SCENE2D&&(f.position.z=u,c.update(o)),this._pickPositionCache[n]=s.Z.clone(i),i}}this._pickPositionCache[n]=void 0};const J=new a.Z;function Q(e,t){let i,n;const r=[],o=[],s=[],a=[];(0,h.Z)(e)||(e=Number.MAX_VALUE);let c=t();for(;(0,h.Z)(c);){const i=c.object,u=c.position,l=c.exclude;if((0,h.Z)(u)&&!(0,h.Z)(i)){r.push(c);break}if(!(0,h.Z)(i)||!(0,h.Z)(i.primitive))break;if(!l&&(r.push(c),0>=--e))break;const d=i.primitive;let f=!1;"function"==typeof d.getGeometryInstanceAttributes&&(0,h.Z)(i.id)&&(n=d.getGeometryInstanceAttributes(i.id),(0,h.Z)(n)&&(0,h.Z)(n.show)&&(f=!0,n.show=y.Z.toValue(!1,n.show),s.push(n))),i instanceof w.Z&&(f=!0,i.show=!1,a.push(i)),f||(d.show=!1,o.push(d)),c=t()}for(i=0;i<o.length;++i)o[i].show=!0;for(i=0;i<s.length;++i)n=s[i],n.show=y.Z.toValue(!0,n.show);for(i=0;i<a.length;++i)a[i].show=!0;return r}R.prototype.pickPosition=function(e,t,i){if(i=this.pickPositionWorldCoordinates(e,t,i),(0,h.Z)(i)&&e.mode!==x.Z.SCENE3D){s.Z.fromElements(i.y,i.z,i.x,i);const t=e.mapProjection,n=t.ellipsoid,r=t.unproject(i,J);n.cartographicToCartesian(r,i)}return i},R.prototype.drillPick=function(e,t,i,n,r){const o=this;return Q(i,(function(){const i=o.pick(e,t,n,r);if((0,h.Z)(i))return{object:i,position:void 0,exclude:!1}})).map((function(e){return e.object}))};const $=new s.Z,ee=new s.Z;function te(e,t,i){this.ray=e,this.width=t,this.tilesets=i,this.ready=!1,this.deferred=b.Z.defer(),this.promise=this.deferred.promise}function ie(e,t,i,n){const r=t.direction,o=s.Z.mostOrthogonalAxis(r,$),a=s.Z.cross(r,o,$),c=s.Z.cross(r,a,ee);return n.position=t.origin,n.direction=r,n.up=c,n.right=a,n.frustum.width=(0,l.Z)(i,.1),n.frustum.computeCullingVolume(n.positionWC,n.directionWC,n.upWC)}function ne(e,t,i){const n=t.frameState,r=i.ray,o=i.width,s=i.tilesets,a=e._pickOffscreenView.camera,c=ie(0,r,o,a),u=I;u.camera=a,u.cullingVolume=c;let l=!0;const h=s.length;for(let e=0;e<h;++e){const i=s[e];i.show&&t.primitives.contains(i)&&(i.updateForPass(n,u),l=l&&u.ready)}return l&&i.deferred.resolve(),l}function re(e,t,i){const n=e.length;for(let r=0;r<n;++r){const n=e.get(r);n.show&&((0,h.Z)(n.isCesium3DTileset)?(0,h.Z)(t)&&-1!==t.indexOf(n)||i.push(n):n instanceof E.Z&&re(n,t,i))}}function oe(e,t,i,n,r,o){const s=[];if(re(t.primitives,n,s),0===s.length)return b.Z.resolve(o());const a=new te(i,r,s);return e._mostDetailedRayPicks.push(a),a.promise.then((function(){return o()}))}function se(e,t){return!(!(0,h.Z)(e)||!(0,h.Z)(t)||0===t.length)&&(t.indexOf(e)>-1||t.indexOf(e.primitive)>-1||t.indexOf(e.id)>-1)}function ae(e,t,i,n,o,s,a,c){return Q(n,(function(){return function(e,t,i,n,o,s,a){const c=t.context,u=c.uniformState,l=t.frameState,d=e._pickOffscreenView;t.view=d,ie(0,i,o,d.camera),G=r.Z.clone(d.viewport,G);const f=d.pickFramebuffer.begin(G,d.viewport);let p;t.jobScheduler.disableThisFrame(),t.updateFrameState(),l.invertClassification=!1,l.passes.pick=!0,l.passes.offscreen=!0,l.tilesetPassState=a?D:P,u.update(l),t.updateEnvironment(),t.updateAndExecuteCommands(f,j),t.resolveFramebuffers(f);const m=d.pickFramebuffer.end(G);if(t.context.depthTexture){const n=d.frustumCommandsList.length;for(let r=0;r<n;++r){const n=e.getPickDepth(t,r).getDepth(c,0,0);if((0,h.Z)(n)&&n>0&&n<1){const e=d.frustumCommandsList[r],o=e.near*(0!==r?t.opaqueFrustumNearOffset:1),s=o+n*(e.far-o);p=g.Z.getPoint(i,s);break}}}if(t.view=t.defaultView,c.endFrame(),(0,h.Z)(m)||(0,h.Z)(p))return{object:m,position:p,exclude:!(0,h.Z)(p)&&s||se(m,n)}}(e,t,i,o,s,a,c)}))}function ce(e,t,i,n,r,o,s){const a=ae(e,t,i,1,n,r,o,s);if(a.length>0)return a[0]}function ue(e,t,i,n,r,o,s,a){return ae(e,t,i,n,r,o,s,a)}function le(e,t){const i=b.Z.defer();return t.then((function(t){const n=e.postRender.addEventListener((function(){i.resolve(t),n()}));e.requestRender()})).otherwise((function(e){i.reject(e)})),i.promise}R.prototype.updateMostDetailedRayPicks=function(e){const t=this._mostDetailedRayPicks;for(let i=0;i<t.length;++i)ne(this,e,t[i])&&t.splice(i--,1)},R.prototype.pickFromRay=function(e,t,i,n){if(c.Z.defined("ray",t),e.mode!==x.Z.SCENE3D)throw new d.Z("Ray intersections are only supported in 3D mode.");return ce(this,e,t,i,n,!1,!1)},R.prototype.drillPickFromRay=function(e,t,i,n,r){if(c.Z.defined("ray",t),e.mode!==x.Z.SCENE3D)throw new d.Z("Ray intersections are only supported in 3D mode.");return ue(this,e,t,i,n,r,!1,!1)},R.prototype.pickFromRayMostDetailed=function(e,t,i,n){if(c.Z.defined("ray",t),e.mode!==x.Z.SCENE3D)throw new d.Z("Ray intersections are only supported in 3D mode.");const r=this;return t=g.Z.clone(t),i=(0,h.Z)(i)?i.slice():i,le(e,oe(r,e,t,i,n,(function(){return ce(r,e,t,i,n,!1,!0)})))},R.prototype.drillPickFromRayMostDetailed=function(e,t,i,n,r){if(c.Z.defined("ray",t),e.mode!==x.Z.SCENE3D)throw new d.Z("Ray intersections are only supported in 3D mode.");const o=this;return t=g.Z.clone(t),n=(0,h.Z)(n)?n.slice():n,le(e,oe(o,e,t,n,r,(function(){return ue(o,e,t,i,n,r,!1,!0)})))};const he=new s.Z,de=new s.Z,fe=new g.Z,pe=new a.Z;function me(e,t){const i=e.globe,r=(0,h.Z)(i)?i.ellipsoid:e.mapProjection.ellipsoid,o=n.Z._defaultMaxTerrainHeight,c=r.geodeticSurfaceNormalCartographic(t,de),u=a.Z.toCartesian(t,r,he),l=fe;l.origin=u,l.direction=c;const d=new g.Z;return g.Z.getPoint(l,o,d.origin),s.Z.negate(c,d.direction),d}function _e(e,t){const i=e.globe,n=(0,h.Z)(i)?i.ellipsoid:e.mapProjection.ellipsoid;return me(e,a.Z.fromCartesian(t,n,pe))}function Ze(e,t){const i=e.globe,n=(0,h.Z)(i)?i.ellipsoid:e.mapProjection.ellipsoid;return a.Z.fromCartesian(t,n,pe).height}function ge(e,t,i,n,r){const o=me(t,i);return oe(e,t,o,n,r,(function(){const i=ce(e,t,o,n,r,!0,!0);if((0,h.Z)(i))return Ze(t,i.position)}))}function ye(e,t,i,n,r,o){const a=_e(t,i);return oe(e,t,a,n,r,(function(){const i=ce(e,t,a,n,r,!0,!0);if((0,h.Z)(i))return s.Z.clone(i.position,o)}))}R.prototype.sampleHeight=function(e,t,i,n){if(c.Z.defined("position",t),e.mode!==x.Z.SCENE3D)throw new d.Z("sampleHeight is only supported in 3D mode.");if(!e.sampleHeightSupported)throw new d.Z("sampleHeight requires depth texture support. Check sampleHeightSupported.");const r=ce(this,e,me(e,t),i,n,!0,!1);if((0,h.Z)(r))return Ze(e,r.position)},R.prototype.clampToHeight=function(e,t,i,n,r){if(c.Z.defined("cartesian",t),e.mode!==x.Z.SCENE3D)throw new d.Z("clampToHeight is only supported in 3D mode.");if(!e.clampToHeightSupported)throw new d.Z("clampToHeight requires depth texture support. Check clampToHeightSupported.");const o=ce(this,e,_e(e,t),i,n,!0,!1);if((0,h.Z)(o))return s.Z.clone(o.position,r)},R.prototype.sampleHeightMostDetailed=function(e,t,i,n){if(c.Z.defined("positions",t),e.mode!==x.Z.SCENE3D)throw new d.Z("sampleHeightMostDetailed is only supported in 3D mode.");if(!e.sampleHeightSupported)throw new d.Z("sampleHeightMostDetailed requires depth texture support. Check sampleHeightSupported.");i=(0,h.Z)(i)?i.slice():i;const r=t.length,o=new Array(r);for(let s=0;s<r;++s)o[s]=ge(this,e,t[s],i,n);return le(e,b.Z.all(o).then((function(e){const i=e.length;for(let n=0;n<i;++n)t[n].height=e[n];return t})))},R.prototype.clampToHeightMostDetailed=function(e,t,i,n){if(c.Z.defined("cartesians",t),e.mode!==x.Z.SCENE3D)throw new d.Z("clampToHeightMostDetailed is only supported in 3D mode.");if(!e.clampToHeightSupported)throw new d.Z("clampToHeightMostDetailed requires depth texture support. Check clampToHeightSupported.");i=(0,h.Z)(i)?i.slice():i;const r=t.length,o=new Array(r);for(let s=0;s<r;++s)o[s]=ye(this,e,t[s],i,n,t[s]);return le(e,b.Z.all(o).then((function(e){const i=e.length;for(let n=0;n<i;++n)t[n]=e[n];return t})))},R.prototype.destroy=function(){this._pickOffscreenView=this._pickOffscreenView&&this._pickOffscreenView.destroy()};const be=R},607890:(e,t,i)=>{"use strict";i.d(t,{Z:()=>g});var n=i(155597),r=i(919382),o=i(357299),s=i(545125),a=i(307260),c=i(997274),u=i(406144),l=i(426468),h=i(987606),d=i(50128),f=i(295189),p=i(447490),m=i(578765);const _={},Z=Uint32Array.BYTES_PER_ELEMENT;_.parse=function(e,t){t=(0,u.Z)(t,0),o.Z.defined("arrayBuffer",e);const i=new Uint8Array(e),_=new DataView(e);t+=Z;const g=_.getUint32(t,!0);if(1!==g)throw new d.Z("Only Point Cloud tile version 1 is supported. Version "+g+" is not.");t+=Z,t+=Z;const y=_.getUint32(t,!0);if(0===y)throw new d.Z("Feature table must have a byte length greater than zero");t+=Z;const b=_.getUint32(t,!0);t+=Z;const A=_.getUint32(t,!0);t+=Z;const w=_.getUint32(t,!0);t+=Z;const v=(0,h.Z)(i,t,y);t+=y;const T=new Uint8Array(e,t,b);let C,E;t+=b,A>0&&(C=(0,h.Z)(i,t,A),t+=A,w>0&&(E=new Uint8Array(e,t,w),t+=w));const x=new p.Z(v,T),S=x.getGlobalProperty("POINTS_LENGTH");if(x.featuresLength=S,!(0,l.Z)(S))throw new d.Z("Feature table global property: POINTS_LENGTH must be defined");let O=x.getGlobalProperty("RTC_CENTER",c.Z.FLOAT,3);(0,l.Z)(O)&&(O=r.Z.unpack(O));const I=function(e,t){const i=e.json;let r,o,s;const c=(0,l.Z)(i.extensions)?i.extensions["3DTILES_draco_point_compression"]:void 0,u=(0,l.Z)(t)&&(0,l.Z)(t.extensions)?t.extensions["3DTILES_draco_point_compression"]:void 0;let h,f,p,m,_,Z;if((0,l.Z)(u)&&(s=u.properties),(0,l.Z)(c)){o=c.properties;const t=c.byteOffset,i=c.byteLength;if(!(0,l.Z)(o)||!(0,l.Z)(t)||!(0,l.Z)(i))throw new d.Z("Draco properties, byteOffset, and byteLength must be defined");r=(0,n.Z)(e.buffer,t,t+i),h=(0,l.Z)(o.POSITION),f=(0,l.Z)(o.RGB)||(0,l.Z)(o.RGBA),p=(0,l.Z)(o.NORMAL),m=(0,l.Z)(o.BATCH_ID),_=(0,l.Z)(o.RGBA)}return(0,l.Z)(r)&&(Z={buffer:r,featureTableProperties:o,batchTableProperties:s,properties:(0,a.Z)(o,s),dequantizeInShader:!0}),{draco:Z,hasPositions:h,hasColors:f,isTranslucent:_,hasNormals:p,hasBatchIds:m}}(x,C);if(I.rtcCenter=O,I.pointsLength=S,!I.hasPositions){const e=function(e){const t=e.json;let i;if((0,l.Z)(t.POSITION))return i=e.getPropertyArray("POSITION",c.Z.FLOAT,3),{name:m.Z.POSITION,semantic:m.Z.POSITION,typedArray:i,isQuantized:!1,componentDatatype:c.Z.FLOAT,type:f.Z.VEC3};if((0,l.Z)(t.POSITION_QUANTIZED)){i=e.getPropertyArray("POSITION_QUANTIZED",c.Z.UNSIGNED_SHORT,3);const t=e.getGlobalProperty("QUANTIZED_VOLUME_SCALE",c.Z.FLOAT,3);if(!(0,l.Z)(t))throw new d.Z("Global property: QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");const n=65535,o=e.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",c.Z.FLOAT,3);if(!(0,l.Z)(o))throw new d.Z("Global property: QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");return{name:m.Z.POSITION,semantic:m.Z.POSITION,typedArray:i,isQuantized:!0,componentDatatype:c.Z.FLOAT,type:f.Z.VEC3,quantizedRange:n,quantizedVolumeOffset:r.Z.unpack(o),quantizedVolumeScale:r.Z.unpack(t),quantizedComponentDatatype:c.Z.UNSIGNED_SHORT,quantizedType:f.Z.VEC3}}}(x);I.positions=e,I.hasPositions=I.hasPositions||(0,l.Z)(e)}if(!I.hasPositions)throw new d.Z("Either POSITION or POSITION_QUANTIZED must be defined.");if(!I.hasNormals){const e=function(e){const t=e.json;let i;if((0,l.Z)(t.NORMAL))return i=e.getPropertyArray("NORMAL",c.Z.FLOAT,3),{name:m.Z.NORMAL,semantic:m.Z.NORMAL,typedArray:i,octEncoded:!1,octEncodedZXY:!1,componentDatatype:c.Z.FLOAT,type:f.Z.VEC3};if((0,l.Z)(t.NORMAL_OCT16P)){i=e.getPropertyArray("NORMAL_OCT16P",c.Z.UNSIGNED_BYTE,2);const t=8;return{name:m.Z.NORMAL,semantic:m.Z.NORMAL,typedArray:i,octEncoded:!0,octEncodedZXY:!1,quantizedRange:(1<<t)-1,quantizedType:f.Z.VEC2,quantizedComponentDatatype:c.Z.UNSIGNED_BYTE,componentDatatype:c.Z.FLOAT,type:f.Z.VEC3}}}(x);I.normals=e,I.hasNormals=I.hasNormals||(0,l.Z)(e)}if(!I.hasColors){const e=function(e){const t=e.json;let i;if((0,l.Z)(t.RGBA))return i=e.getPropertyArray("RGBA",c.Z.UNSIGNED_BYTE,4),{name:m.Z.COLOR,semantic:m.Z.COLOR,setIndex:0,typedArray:i,componentDatatype:c.Z.UNSIGNED_BYTE,type:f.Z.VEC4,normalized:!0,isRGB565:!1,isTranslucent:!0};if((0,l.Z)(t.RGB))return i=e.getPropertyArray("RGB",c.Z.UNSIGNED_BYTE,3),{name:"COLOR",semantic:m.Z.COLOR,setIndex:0,typedArray:i,componentDatatype:c.Z.UNSIGNED_BYTE,type:f.Z.VEC3,normalized:!0,isRGB565:!1,isTranslucent:!1};if((0,l.Z)(t.RGB565))return i=e.getPropertyArray("RGB565",c.Z.UNSIGNED_SHORT,1),{name:"COLOR",semantic:m.Z.COLOR,setIndex:0,typedArray:i,componentDatatype:c.Z.FLOAT,type:f.Z.VEC3,normalized:!1,isRGB565:!0,isTranslucent:!1};if((0,l.Z)(t.CONSTANT_RGBA)){const t=e.getGlobalProperty("CONSTANT_RGBA",c.Z.UNSIGNED_BYTE,4),i=t[3],n=s.Z.fromBytes(t[0],t[1],t[2],i),r=i<255;return{name:m.Z.COLOR,semantic:m.Z.COLOR,setIndex:0,constantColor:n,componentDatatype:c.Z.FLOAT,type:f.Z.VEC4,isQuantized:!1,isTranslucent:r}}}(x);I.colors=e,I.hasColors=I.hasColors||(0,l.Z)(e),I.hasConstantColor=(0,l.Z)(I.constantColor),I.isTranslucent=(0,l.Z)(e)&&e.isTranslucent}if(!I.hasBatchIds){const e=function(e){const t=e.json;if((0,l.Z)(t.BATCH_ID)){const t=e.getPropertyArray("BATCH_ID",c.Z.UNSIGNED_SHORT,1);return{name:m.Z.FEATURE_ID,semantic:m.Z.FEATURE_ID,setIndex:0,typedArray:t,componentDatatype:c.Z.fromTypedArray(t),type:f.Z.SCALAR}}}(x);I.batchIds=e,I.hasBatchIds=I.hasBatchIds||(0,l.Z)(e)}if(I.hasBatchIds){const e=x.getGlobalProperty("BATCH_LENGTH");if(!(0,l.Z)(e))throw new d.Z("Global property: BATCH_LENGTH must be defined when BATCH_ID is defined.");I.batchLength=e}return(0,l.Z)(E)&&(E=new Uint8Array(E),I.batchTableJson=C,I.batchTableBinary=E),I};const g=_},878186:(e,t,i)=>{"use strict";i.d(t,{Z:()=>re});var n=i(360791),r=i(919382),o=i(114754),s=i(357299),a=i(556592),c=i(545125),u=i(307260),l=i(997274),h=i(406144),d=i(426468),f=i(54879),p=i(362017),m=i(583917),_=i(594798),Z=i(610490),g=i(195809),y=i(50128),b=i(358198),A=i(636807),w=i(50720),v=i(247913),T=i(842649),C=i(364232),E=i(928096),x=i(676311),S=i(761677),O=i(527758),I=i(451356),D=i(657045),P=i(947941),R=i(488818),B=i(394088),M=i(607890),L=i(506678),N=i(556198),F=i(42973);function k(e){s.Z.typeOf.object("options",e),s.Z.typeOf.object("options.arrayBuffer",e.arrayBuffer),this._parsedContent=void 0,this._drawCommand=void 0,this._isTranslucent=!1,this._styleTranslucent=!1,this._constantColor=c.Z.clone(c.Z.DARKGRAY),this._highlightColor=c.Z.clone(c.Z.WHITE),this._pointSize=1,this._rtcCenter=void 0,this._quantizedVolumeScale=void 0,this._quantizedVolumeOffset=void 0,this._styleableShaderAttributes=void 0,this._isQuantized=!1,this._isOctEncoded16P=!1,this._isRGB565=!1,this._hasColors=!1,this._hasNormals=!1,this._hasBatchIds=!1,this._decodingState=2,this._dequantizeInShader=!0,this._isQuantizedDraco=!1,this._isOctEncodedDraco=!1,this._quantizedRange=0,this._octEncodedRange=0,this.backFaceCulling=!1,this._backFaceCulling=!1,this.normalShading=!0,this._normalShading=!0,this._opaqueRenderState=void 0,this._translucentRenderState=void 0,this._mode=void 0,this._ready=!1,this._readyPromise=O.Z.defer(),this._pointsLength=0,this._geometryByteLength=0,this._vertexShaderLoaded=e.vertexShaderLoaded,this._fragmentShaderLoaded=e.fragmentShaderLoaded,this._uniformMapLoaded=e.uniformMapLoaded,this._batchTableLoaded=e.batchTableLoaded,this._pickIdLoaded=e.pickIdLoaded,this._opaquePass=(0,h.Z)(e.opaquePass,T.Z.OPAQUE),this._cull=(0,h.Z)(e.cull,!0),this.style=void 0,this._style=void 0,this.styleDirty=!1,this.modelMatrix=m.Z.clone(m.Z.IDENTITY),this._modelMatrix=m.Z.clone(m.Z.IDENTITY),this.time=0,this.shadows=N.Z.ENABLED,this._boundingSphere=void 0,this.clippingPlanes=void 0,this.isClipped=!1,this.clippingPlanesDirty=!1,this.clippingPlanesOriginMatrix=void 0,this.attenuation=!1,this._attenuation=!1,this.geometricError=0,this.geometricErrorScale=1,this.maximumAttenuation=this._pointSize,function(e,t){const i=M.Z.parse(t.arrayBuffer,t.byteOffset);if(e._parsedContent=i,e._rtcCenter=i.rtcCenter,e._hasNormals=i.hasNormals,e._hasColors=i.hasColors,e._hasBatchIds=i.hasBatchIds,e._isTranslucent=i.isTranslucent,!i.hasBatchIds&&(0,d.Z)(i.batchTableBinary)&&(i.styleableProperties=D.Z.getBinaryProperties(i.pointsLength,i.batchTableJson,i.batchTableBinary)),(0,d.Z)(i.draco)){const t=i.draco;e._decodingState=0,t.dequantizeInShader=e._dequantizeInShader}const n=i.positions;(0,d.Z)(n)&&(e._isQuantized=n.isQuantized,e._quantizedVolumeScale=n.quantizedVolumeScale,e._quantizedVolumeOffset=n.quantizedVolumeOffset,e._quantizedRange=n.quantizedRange);const r=i.normals;(0,d.Z)(r)&&(e._isOctEncoded16P=r.octEncoded);const o=i.colors;(0,d.Z)(o)&&((0,d.Z)(o.constantColor)&&(e._constantColor=c.Z.clone(o.constantColor,e._constantColor),e._hasColors=!1),e._isRGB565=o.isRGB565);const s=i.batchIds;(0,d.Z)(i.batchIds)&&(s.name="BATCH_ID",s.semantic="BATCH_ID",s.setIndex=void 0),i.hasBatchIds&&e._batchTableLoaded(i.batchLength,i.batchTableJson,i.batchTableBinary),e._pointsLength=i.pointsLength}(this,e)}Object.defineProperties(k.prototype,{pointsLength:{get:function(){return this._pointsLength}},geometryByteLength:{get:function(){return this._geometryByteLength}},ready:{get:function(){return this._ready}},readyPromise:{get:function(){return this._readyPromise.promise}},color:{get:function(){return c.Z.clone(this._highlightColor)},set:function(e){this._highlightColor=c.Z.clone(e,this._highlightColor)}},boundingSphere:{get:function(){if((0,d.Z)(this._drawCommand))return this._drawCommand.boundingVolume},set:function(e){this._boundingSphere=n.Z.clone(e,this._boundingSphere)}}});const U=new r.Z,V=new r.Z,z=new r.Z;let H,G;function q(e){if(!(0,d.Z)(G)){H=new S.Z(0),G=new Array(e);for(let t=0;t<e;++t)G[t]=H.random()}return G}function j(e,t){const i=l.Z.fromTypedArray(e);return i===l.Z.INT||i===l.Z.UNSIGNED_INT||i===l.Z.DOUBLE?((0,_.Z)("Cast pnts property to floats",'Point cloud property "'+t+'" will be casted to a float array because INT, UNSIGNED_INT, and DOUBLE are not valid WebGL vertex attribute types. Some precision may be lost.'),new Float32Array(e)):e}const W=new o.Z,K=new o.Z,Y=new c.Z,X=new m.Z,J=new m.Z;function Q(e,t){const i=/czm_3dtiles_property_(\d+)/g;let n=i.exec(e);for(;null!==n;){const r=parseInt(n[1]);-1===t.indexOf(r)&&t.push(r),n=i.exec(e)}}function $(e,t){e=e.slice(e.indexOf("\n"));const i=/czm_3dtiles_builtin_property_(\w+)/g;let n=i.exec(e);for(;null!==n;){const r=n[1];-1===t.indexOf(r)&&t.push(r),n=i.exec(e)}}function ee(e,t){const i=e.numberOfAttributes;for(let n=0;n<i;++n){const i=e.getAttribute(n);if(i.index===t)return i}}const te={POSITION:"czm_3dtiles_builtin_property_POSITION",POSITION_ABSOLUTE:"czm_3dtiles_builtin_property_POSITION_ABSOLUTE",COLOR:"czm_3dtiles_builtin_property_COLOR",NORMAL:"czm_3dtiles_builtin_property_NORMAL"};const ie=new o.Z,ne=new r.Z;k.prototype.update=function(e){if(function(e,t){if(2===e._decodingState)return!1;if(0===e._decodingState){const i=e._parsedContent,n=i.draco,o=P.Z.decodePointCloud(n,t);(0,d.Z)(o)&&(e._decodingState=1,o.then((function(t){e._decodingState=2;const o=(0,d.Z)(t.POSITION)?t.POSITION.array:void 0,s=(0,d.Z)(t.RGB)?t.RGB.array:void 0,a=(0,d.Z)(t.RGBA)?t.RGBA.array:void 0,c=(0,d.Z)(t.NORMAL)?t.NORMAL.array:void 0,u=(0,d.Z)(t.BATCH_ID)?t.BATCH_ID.array:void 0,l=(0,d.Z)(o)&&(0,d.Z)(t.POSITION.data.quantization),f=(0,d.Z)(c)&&(0,d.Z)(t.NORMAL.data.quantization);if(l){const i=t.POSITION.data.quantization,n=i.range;e._quantizedVolumeScale=r.Z.fromElements(n,n,n),e._quantizedVolumeOffset=r.Z.unpack(i.minValues),e._quantizedRange=(1<<i.quantizationBits)-1,e._isQuantizedDraco=!0}f&&(e._octEncodedRange=(1<<t.NORMAL.data.quantization.quantizationBits)-1,e._isOctEncodedDraco=!0);let p=i.styleableProperties;const m=n.batchTableProperties;for(const e in m)if(m.hasOwnProperty(e)){const i=t[e];(0,d.Z)(p)||(p={}),p[e]={typedArray:i.array,componentCount:i.data.componentsPerAttribute}}(0,d.Z)(o)&&(i.positions={typedArray:o});const _=(0,h.Z)(a,s);(0,d.Z)(_)&&(i.colors={typedArray:_}),(0,d.Z)(c)&&(i.normals={typedArray:c}),(0,d.Z)(u)&&(i.batchIds={typedArray:u}),i.styleableProperties=p})).otherwise((function(t){e._decodingState=3,e._readyPromise.reject(t)})))}return!0}(this,e.context))return;let t=!1,i=!m.Z.equals(this._modelMatrix,this.modelMatrix);if(this._mode!==e.mode&&(this._mode=e.mode,i=!0),(0,d.Z)(this._drawCommand)||(function(e,t){const i=t.context,o=e._parsedContent,s=e._pointsLength,a=o.positions,c=o.colors,u=o.normals;let h=o.batchIds;const f=o.styleableProperties,_=(0,d.Z)(f),Z=e._isQuantized,y=e._isQuantizedDraco,b=e._isOctEncoded16P,E=e._isOctEncodedDraco,S=e._quantizedRange,O=e._octEncodedRange,D=e._isRGB565,P=e._isTranslucent,R=e._hasColors,B=e._hasNormals,M=e._hasBatchIds;let L,N;const k=[],H={};if(e._styleableShaderAttributes=H,_){let t=4;for(const n in f)if(f.hasOwnProperty(n)){const r=f[n],o=j(r.typedArray,n);L=r.componentCount,N=l.Z.fromTypedArray(o);const s=A.Z.createVertexBuffer({context:i,typedArray:o,usage:w.Z.STATIC_DRAW});e._geometryByteLength+=s.sizeInBytes;const a={index:t,vertexBuffer:s,componentsPerAttribute:L,componentDatatype:N,normalize:!1,offsetInBytes:0,strideInBytes:0};k.push(a),H[n]={location:t,componentCount:L},++t}}const G=A.Z.createVertexBuffer({context:i,typedArray:a.typedArray,usage:w.Z.STATIC_DRAW});let W,K,Y;e._geometryByteLength+=G.sizeInBytes,R&&(W=A.Z.createVertexBuffer({context:i,typedArray:c.typedArray,usage:w.Z.STATIC_DRAW}),e._geometryByteLength+=W.sizeInBytes),B&&(K=A.Z.createVertexBuffer({context:i,typedArray:u.typedArray,usage:w.Z.STATIC_DRAW}),e._geometryByteLength+=K.sizeInBytes),M&&(h=j(h,"batchIds"),Y=A.Z.createVertexBuffer({context:i,typedArray:h.typedArray,usage:w.Z.STATIC_DRAW}),e._geometryByteLength+=Y.sizeInBytes);let X=[];if(N=Z?l.Z.UNSIGNED_SHORT:y?S<=255?l.Z.UNSIGNED_BYTE:l.Z.UNSIGNED_SHORT:l.Z.FLOAT,X.push({index:0,vertexBuffer:G,componentsPerAttribute:3,componentDatatype:N,normalize:!1,offsetInBytes:0,strideInBytes:0}),e._cull&&(e._boundingSphere=Z||y?n.Z.fromCornerPoints(r.Z.ZERO,e._quantizedVolumeScale):function(e){const t=e.length/3,i=Math.min(t,20),o=q(20),s=Number.MAX_VALUE,a=-Number.MAX_VALUE,c=r.Z.fromElements(s,s,s,U),u=r.Z.fromElements(a,a,a,V);for(let n=0;n<i;++n){const i=Math.floor(o[n]*t),s=r.Z.unpack(e,3*i,z);r.Z.minimumByComponent(c,s,c),r.Z.maximumByComponent(u,s,u)}const l=n.Z.fromCornerPoints(c,u);return l.radius+=p.Z.EPSILON2,l}(a.typedArray)),R)if(D)X.push({index:1,vertexBuffer:W,componentsPerAttribute:1,componentDatatype:l.Z.UNSIGNED_SHORT,normalize:!1,offsetInBytes:0,strideInBytes:0});else{const e=P?4:3;X.push({index:1,vertexBuffer:W,componentsPerAttribute:e,componentDatatype:l.Z.UNSIGNED_BYTE,normalize:!0,offsetInBytes:0,strideInBytes:0})}B&&(b?(L=2,N=l.Z.UNSIGNED_BYTE):E?(L=2,N=O<=255?l.Z.UNSIGNED_BYTE:l.Z.UNSIGNED_SHORT):(L=3,N=l.Z.FLOAT),X.push({index:2,vertexBuffer:K,componentsPerAttribute:L,componentDatatype:N,normalize:!1,offsetInBytes:0,strideInBytes:0})),M&&X.push({index:3,vertexBuffer:Y,componentsPerAttribute:1,componentDatatype:l.Z.fromTypedArray(h.typedArray),normalize:!1,offsetInBytes:0,strideInBytes:0}),_&&(X=X.concat(k));const J=new x.Z({context:i,attributes:X}),Q={depthTest:{enabled:!0}},$={depthTest:{enabled:!0},depthMask:!1,blending:I.Z.ALPHA_BLEND};e._opaquePass===T.Z.CESIUM_3D_TILE&&(Q.stencilTest=F.Z.setCesium3DTileBit(),Q.stencilMask=F.Z.CESIUM_3D_TILE_MASK,$.stencilTest=F.Z.setCesium3DTileBit(),$.stencilMask=F.Z.CESIUM_3D_TILE_MASK),e._opaqueRenderState=C.Z.fromCache(Q),e._translucentRenderState=C.Z.fromCache($),e._drawCommand=new v.Z({boundingVolume:new n.Z,cull:e._cull,modelMatrix:new m.Z,primitiveType:g.Z.POINTS,vertexArray:J,count:s,shaderProgram:void 0,uniformMap:void 0,renderState:P?e._translucentRenderState:e._opaqueRenderState,pass:P?T.Z.TRANSLUCENT:e._opaquePass,owner:e,castShadows:!1,receiveShadows:!1,pickId:e._pickIdLoaded()})}(this,e),i=!0,t=!0,this._ready=!0,this._readyPromise.resolve(this),this._parsedContent=void 0),i){m.Z.clone(this.modelMatrix,this._modelMatrix);const t=this._drawCommand.modelMatrix;if(m.Z.clone(this._modelMatrix,t),(0,d.Z)(this._rtcCenter)&&m.Z.multiplyByTranslation(t,this._rtcCenter,t),(0,d.Z)(this._quantizedVolumeOffset)&&m.Z.multiplyByTranslation(t,this._quantizedVolumeOffset,t),e.mode!==L.Z.SCENE3D){const i=e.mapProjection,n=m.Z.getColumn(t,3,ie);o.Z.equals(n,o.Z.UNIT_W)||b.Z.basisTo2D(i,t,t)}const i=this._drawCommand.boundingVolume;if(n.Z.clone(this._boundingSphere,i),this._cull){const e=i.center;m.Z.multiplyByPoint(t,e,e);const n=m.Z.getScale(t,ne);i.radius*=r.Z.maximumComponent(n)}}this.clippingPlanesDirty&&(this.clippingPlanesDirty=!1,t=!0),this._attenuation!==this.attenuation&&(this._attenuation=this.attenuation,t=!0),this.backFaceCulling!==this._backFaceCulling&&(this._backFaceCulling=this.backFaceCulling,t=!0),this.normalShading!==this._normalShading&&(this._normalShading=this.normalShading,t=!0),(this._style!==this.style||this.styleDirty)&&(this._style=this.style,this.styleDirty=!1,t=!0),t&&function(e,t,i){let n,o,s;const l=t.context,f=(0,d.Z)(i),p=e._isQuantized,_=e._isQuantizedDraco,g=e._isOctEncoded16P,b=e._isOctEncodedDraco,A=e._isRGB565,w=e._isTranslucent,v=e._hasColors,T=e._hasNormals,C=e._hasBatchIds,x=e._backFaceCulling,S=e._normalShading,O=e._drawCommand.vertexArray,I=e.clippingPlanes,D=e._attenuation;let P,M,N,F=w;const k=(0,a.Z)(te),U={},V=e._styleableShaderAttributes;for(o in V)V.hasOwnProperty(o)&&(s=V[o],k[o]="czm_3dtiles_property_"+s.location,U[s.location]=s);if(f){const e={translucent:!1},t="(vec3 czm_3dtiles_builtin_property_POSITION, vec3 czm_3dtiles_builtin_property_POSITION_ABSOLUTE, vec4 czm_3dtiles_builtin_property_COLOR, vec3 czm_3dtiles_builtin_property_NORMAL)";P=i.getColorShaderFunction("getColorFromStyle"+t,k,e),M=i.getShowShaderFunction("getShowFromStyle"+t,k,e),N=i.getPointSizeShaderFunction("getPointSizeFromStyle"+t,k,e),(0,d.Z)(P)&&e.translucent&&(F=!0)}e._styleTranslucent=F;const z=(0,d.Z)(P),H=(0,d.Z)(M),G=(0,d.Z)(N),q=e.isClipped,j=[],ie=[];z&&(Q(P,j),$(P,ie)),H&&(Q(M,j),$(M,ie)),G&&(Q(N,j),$(N,ie));const ne=ie.indexOf("COLOR")>=0,re=ie.indexOf("NORMAL")>=0;if(re&&!T)throw new y.Z("Style references the NORMAL semantic but the point cloud does not have normals");for(o in V)if(V.hasOwnProperty(o)){s=V[o];const e=j.indexOf(s.location)>=0;ee(O,s.location).enabled=e}const oe=v&&(!z||ne);v&&(ee(O,1).enabled=oe);const se=T&&(S||x||re);T&&(ee(O,2).enabled=se);const ae={a_position:0};oe&&(ae.a_color=1),se&&(ae.a_normal=2),C&&(ae.a_batchId=3);let ce="";const ue=j.length;for(n=0;n<ue;++n){const e=j[n];s=U[e];const t=s.componentCount,i="czm_3dtiles_property_"+e;let r;r=1===t?"float":"vec"+t,ce+="attribute "+r+" "+i+"; \n",ae[i]=s.location}!function(e,t){const i=t.context,n=e._isQuantized,o=e._isQuantizedDraco,s=e._isOctEncodedDraco;let a={u_pointSizeAndTimeAndGeometricErrorAndDepthMultiplier:function(){const n=W;if(n.x=e._attenuation?e.maximumAttenuation:e._pointSize,n.x*=t.pixelRatio,n.y=e.time,e._attenuation){const r=t.camera.frustum;let o;o=t.mode===L.Z.SCENE2D||r instanceof Z.Z?Number.POSITIVE_INFINITY:i.drawingBufferHeight/t.camera.frustum.sseDenominator,n.z=e.geometricError*e.geometricErrorScale,n.w=o}return n},u_highlightColor:function(){return e._highlightColor},u_constantColor:function(){return e._constantColor},u_clippingPlanes:function(){const t=e.clippingPlanes;return e.isClipped?t.texture:i.defaultTexture},u_clippingPlanesEdgeStyle:function(){const t=e.clippingPlanes;if(!(0,d.Z)(t))return c.Z.TRANSPARENT;const i=c.Z.clone(t.edgeColor,Y);return i.alpha=t.edgeWidth,i},u_clippingPlanesMatrix:function(){const t=e.clippingPlanes;if(!(0,d.Z)(t))return m.Z.IDENTITY;const n=(0,h.Z)(e.clippingPlanesOriginMatrix,e._modelMatrix);m.Z.multiply(i.uniformState.view3D,n,X);const r=m.Z.multiply(X,t.modelMatrix,X);return m.Z.inverseTranspose(r,J)}};(n||o||s)&&(a=(0,u.Z)(a,{u_quantizedVolumeScaleAndOctEncodedRange:function(){const t=K;if((0,d.Z)(e._quantizedVolumeScale)){const i=r.Z.clone(e._quantizedVolumeScale,t);r.Z.divideByScalar(i,e._quantizedRange,t)}return t.w=e._octEncodedRange,t}})),(0,d.Z)(e._uniformMapLoaded)&&(a=e._uniformMapLoaded(a)),e._drawCommand.uniformMap=a}(e,t);let le="attribute vec3 a_position; \nvarying vec4 v_color; \nuniform vec4 u_pointSizeAndTimeAndGeometricErrorAndDepthMultiplier; \nuniform vec4 u_constantColor; \nuniform vec4 u_highlightColor; \n";le+="float u_pointSize; \nfloat u_time; \n",D&&(le+="float u_geometricError; \nfloat u_depthMultiplier; \n"),le+=ce,oe&&(le+=w?"attribute vec4 a_color; \n":A?"attribute float a_color; \nconst float SHIFT_RIGHT_11 = 1.0 / 2048.0; \nconst float SHIFT_RIGHT_5 = 1.0 / 32.0; \nconst float SHIFT_LEFT_11 = 2048.0; \nconst float SHIFT_LEFT_5 = 32.0; \nconst float NORMALIZE_6 = 1.0 / 64.0; \nconst float NORMALIZE_5 = 1.0 / 32.0; \n":"attribute vec3 a_color; \n"),se&&(le+=g||b?"attribute vec2 a_normal; \n":"attribute vec3 a_normal; \n"),C&&(le+="attribute float a_batchId; \n"),(p||_||b)&&(le+="uniform vec4 u_quantizedVolumeScaleAndOctEncodedRange; \n"),z&&(le+=P),H&&(le+=M),G&&(le+=N),le+="void main() \n{ \n u_pointSize = u_pointSizeAndTimeAndGeometricErrorAndDepthMultiplier.x; \n u_time = u_pointSizeAndTimeAndGeometricErrorAndDepthMultiplier.y; \n",D&&(le+=" u_geometricError = u_pointSizeAndTimeAndGeometricErrorAndDepthMultiplier.z; \n u_depthMultiplier = u_pointSizeAndTimeAndGeometricErrorAndDepthMultiplier.w; \n"),le+=oe?w?" vec4 color = a_color; \n":A?" float compressed = a_color; \n float r = floor(compressed * SHIFT_RIGHT_11); \n compressed -= r * SHIFT_LEFT_11; \n float g = floor(compressed * SHIFT_RIGHT_5); \n compressed -= g * SHIFT_LEFT_5; \n float b = compressed; \n vec3 rgb = vec3(r * NORMALIZE_5, g * NORMALIZE_6, b * NORMALIZE_5); \n vec4 color = vec4(rgb, 1.0); \n":" vec4 color = vec4(a_color, 1.0); \n":" vec4 color = u_constantColor; \n",le+=p||_?" vec3 position = a_position * u_quantizedVolumeScaleAndOctEncodedRange.xyz; \n":" vec3 position = a_position; \n",le+=" vec3 position_absolute = vec3(czm_model * vec4(position, 1.0)); \n",se?(le+=g?" vec3 normal = czm_octDecode(a_normal); \n":b?" vec3 normal = czm_octDecode(a_normal, u_quantizedVolumeScaleAndOctEncodedRange.w).zxy; \n":" vec3 normal = a_normal; \n",le+=" vec3 normalEC = czm_normal * normal; \n"):le+=" vec3 normal = vec3(1.0); \n",z&&(le+=" color = getColorFromStyle(position, position_absolute, color, normal); \n"),H&&(le+=" float show = float(getShowFromStyle(position, position_absolute, color, normal)); \n"),le+=G?" gl_PointSize = getPointSizeFromStyle(position, position_absolute, color, normal) * czm_pixelRatio; \n":D?" vec4 positionEC = czm_modelView * vec4(position, 1.0); \n float depth = -positionEC.z; \n gl_PointSize = min((u_geometricError / depth) * u_depthMultiplier, u_pointSize); \n":" gl_PointSize = u_pointSize; \n",le+=" color = color * u_highlightColor; \n",se&&S&&(le+=" float diffuseStrength = czm_getLambertDiffuse(czm_lightDirectionEC, normalEC); \n diffuseStrength = max(diffuseStrength, 0.4); \n color.xyz *= diffuseStrength * czm_lightColor; \n"),le+=" v_color = color; \n gl_Position = czm_modelViewProjection * vec4(position, 1.0); \n",se&&x&&(le+=" float visible = step(-normalEC.z, 0.0); \n gl_Position *= visible; \n gl_PointSize *= visible; \n"),H&&(le+=" gl_Position.w *= float(show); \n gl_PointSize *= float(show); \n"),le+="} \n";let he="varying vec4 v_color; \n";q&&(he+="uniform highp sampler2D u_clippingPlanes; \nuniform mat4 u_clippingPlanesMatrix; \nuniform vec4 u_clippingPlanesEdgeStyle; \n",he+="\n",he+=(0,B.Z)(I,l),he+="\n"),he+="void main() \n{ \n gl_FragColor = czm_gammaCorrect(v_color); \n",q&&(he+=(0,R.Z)("u_clippingPlanes","u_clippingPlanesMatrix","u_clippingPlanesEdgeStyle")),he+="} \n",(0,d.Z)(e._vertexShaderLoaded)&&(le=e._vertexShaderLoaded(le)),(0,d.Z)(e._fragmentShaderLoaded)&&(he=e._fragmentShaderLoaded(he));const de=e._drawCommand;(0,d.Z)(de.shaderProgram)&&de.shaderProgram.destroy(),de.shaderProgram=E.Z.fromCache({context:l,vertexShaderSource:le,fragmentShaderSource:he,attributeLocations:ae});try{de.shaderProgram._bind()}catch(e){throw new y.Z("Error generating style shader: this may be caused by a type mismatch, index out-of-bounds, or other syntax error.")}}(this,e,this._style),this._drawCommand.castShadows=N.Z.castShadows(this.shadows),this._drawCommand.receiveShadows=N.Z.receiveShadows(this.shadows);const s=this._highlightColor.alpha<1||this._constantColor.alpha<1||this._styleTranslucent;this._drawCommand.renderState=s?this._translucentRenderState:this._opaqueRenderState,this._drawCommand.pass=s?T.Z.TRANSLUCENT:this._opaquePass;const f=e.commandList,_=e.passes;(_.render||_.pick)&&f.push(this._drawCommand)},k.prototype.isDestroyed=function(){return!1},k.prototype.destroy=function(){const e=this._drawCommand;return(0,d.Z)(e)&&(e.vertexArray=e.vertexArray&&e.vertexArray.destroy(),e.shaderProgram=e.shaderProgram&&e.shaderProgram.destroy()),(0,f.Z)(this)};const re=k},495898:(e,t,i)=>{"use strict";i.d(t,{Z:()=>v});var n=i(545125),r=i(307260),o=i(406144),s=i(426468),a=i(54879),c=i(446938),u=i(362017),l=i(842649),h=i(657045),d=i(268053),f=i(286400),p=i(878186),m=i(715696),_=i(506678);function Z(e,t,i,n,r){var o;this._tileset=e,this._tile=t,this._resource=i,this._pickId=void 0,this._batchTable=void 0,this._styleDirty=!1,this._features=void 0,this.featurePropertiesDirty=!1,this._groupMetadata=void 0,this._pointCloud=new p.Z({arrayBuffer:n,byteOffset:r,cull:!1,opaquePass:l.Z.CESIUM_3D_TILE,vertexShaderLoaded:(o=this,function(e){return(0,s.Z)(o._batchTable)?o._batchTable.getVertexShaderCallback(!1,"a_batchId",void 0)(e):e}),fragmentShaderLoaded:g(this),uniformMapLoaded:y(this),batchTableLoaded:b(this),pickIdLoaded:A(this)})}function g(e){return function(t){return(0,s.Z)(e._batchTable)?e._batchTable.getFragmentShaderCallback(!1,void 0,!1)(t):"uniform vec4 czm_pickColor;\n"+t}}function y(e){return function(t){return(0,s.Z)(e._batchTable)?e._batchTable.getUniformMapCallback()(t):(0,r.Z)(t,{czm_pickColor:function(){return e._pickId.color}})}}function b(e){return function(t,i,n){e._batchTable=new h.Z(e,t,i,n)}}function A(e){return function(){return(0,s.Z)(e._batchTable)?e._batchTable.getPickId():"czm_pickColor"}}Object.defineProperties(Z.prototype,{featuresLength:{get:function(){return(0,s.Z)(this._batchTable)?this._batchTable.featuresLength:0}},pointsLength:{get:function(){return this._pointCloud.pointsLength}},trianglesLength:{get:function(){return 0}},geometryByteLength:{get:function(){return this._pointCloud.geometryByteLength}},texturesByteLength:{get:function(){return 0}},batchTableByteLength:{get:function(){return(0,s.Z)(this._batchTable)?this._batchTable.memorySizeInBytes:0}},innerContents:{get:function(){}},readyPromise:{get:function(){return this._pointCloud.readyPromise}},tileset:{get:function(){return this._tileset}},tile:{get:function(){return this._tile}},url:{get:function(){return this._resource.getUrlComponent(!0)}},batchTable:{get:function(){return this._batchTable}},groupMetadata:{get:function(){return this._groupMetadata},set:function(e){this._groupMetadata=e}}}),Z.prototype.hasProperty=function(e,t){return!!(0,s.Z)(this._batchTable)&&this._batchTable.hasProperty(e,t)},Z.prototype.getFeature=function(e){if(!(0,s.Z)(this._batchTable))return;const t=this.featuresLength;if(!(0,s.Z)(e)||e<0||e>=t)throw new c.Z("batchId is required and between zero and featuresLength - 1 ("+(t-1)+").");return function(e){const t=e.featuresLength;if(!(0,s.Z)(e._features)&&t>0){const i=new Array(t);for(let n=0;n<t;++n)i[n]=new d.Z(e,n);e._features=i}}(this),this._features[e]},Z.prototype.applyDebugSettings=function(e,t){this._pointCloud.color=e?t:n.Z.WHITE},Z.prototype.applyStyle=function(e){(0,s.Z)(this._batchTable)?this._batchTable.applyStyle(e):this._styleDirty=!0};const w=new m.Z;Z.prototype.update=function(e,t){const i=this._pointCloud,n=(0,o.Z)(e.pointCloudShading,w),r=this._tile,a=this._batchTable,c=t.mode,l=e.clippingPlanes;let h;(0,s.Z)(this._pickId)||(0,s.Z)(a)||(this._pickId=t.context.createPickId({primitive:e,content:this})),(0,s.Z)(a)&&a.update(e,t),h=(0,s.Z)(r._contentBoundingVolume)?c===_.Z.SCENE3D?r._contentBoundingVolume.boundingSphere:r._contentBoundingVolume2D.boundingSphere:c===_.Z.SCENE3D?r._boundingVolume.boundingSphere:r._boundingVolume2D.boundingSphere;const d=this._styleDirty;this._styleDirty=!1,i.clippingPlanesOriginMatrix=e.clippingPlanesOriginMatrix,i.style=(0,s.Z)(a)?void 0:e.style,i.styleDirty=d,i.modelMatrix=r.computedTransform,i.time=e.timeSinceLoad,i.shadows=e.shadows,i.boundingSphere=h,i.clippingPlanes=l,i.isClipped=(0,s.Z)(l)&&l.enabled&&r._isClipped,i.clippingPlanesDirty=r.clippingPlanesDirty,i.attenuation=n.attenuation,i.backFaceCulling=n.backFaceCulling,i.normalShading=n.normalShading,i.geometricError=function(e){const t=e._tileset.pointCloudShading,i=e._tile.contentBoundingVolume.boundingSphere.volume(),n=u.Z.cbrt(i/e.pointsLength);let r=e._tile.geometricError;return 0===r&&(r=(0,s.Z)(t)&&(0,s.Z)(t.baseResolution)?t.baseResolution:n),r}(this),i.geometricErrorScale=n.geometricErrorScale,(0,s.Z)(n)&&(0,s.Z)(n.maximumAttenuation)?i.maximumAttenuation=n.maximumAttenuation:r.refine===f.Z.ADD?i.maximumAttenuation=5:i.maximumAttenuation=e.maximumScreenSpaceError,i.update(t)},Z.prototype.isDestroyed=function(){return!1},Z.prototype.destroy=function(){return this._pickId=this._pickId&&this._pickId.destroy(),this._pointCloud=this._pointCloud&&this._pointCloud.destroy(),this._batchTable=this._batchTable&&this._batchTable.destroy(),(0,a.Z)(this)};const v=Z},332270:(e,t,i)=>{"use strict";i.d(t,{Z:()=>A});var n=i(337968),r=i(545125),o=i(426468),s=i(54879),a=i(195809),c=i(20209),u=i(247913),l=i(273642),h=i(842649),d=i(364232),f=i(279427),p=i(451356),m=i(42973),_=i(579790);function Z(){this._framebuffer=new l.Z({colorAttachmentsLength:2,depth:!0,supportsDepthTexture:!0}),this._drawCommand=void 0,this._clearCommand=void 0,this._strength=1,this._radius=1}Object.defineProperties(Z.prototype,{framebuffer:{get:function(){return this._framebuffer.framebuffer}},colorGBuffer:{get:function(){return this._framebuffer.getColorTexture(0)}},depthGBuffer:{get:function(){return this._framebuffer.getColorTexture(1)}}});const g=new n.Z;function y(e){return e.drawBuffers&&e.fragmentDepth}function b(e,t){let i=e.shaderCache.getDerivedShaderProgram(t,"EC");if(!(0,o.Z)(i)){const n=t._attributeLocations,r=t.fragmentShaderSource.clone();r.sources=r.sources.map((function(e){return(e=f.Z.replaceMain(e,"czm_point_cloud_post_process_main")).replace(/gl_FragColor/g,"gl_FragData[0]")})),r.sources.unshift("#extension GL_EXT_draw_buffers : enable \n"),r.sources.push("void main() \n{ \n czm_point_cloud_post_process_main(); \n#ifdef LOG_DEPTH\n czm_writeLogDepth();\n gl_FragData[1] = czm_packDepth(gl_FragDepthEXT); \n#else\n gl_FragData[1] = czm_packDepth(gl_FragCoord.z);\n#endif\n}"),i=e.shaderCache.createDerivedShaderProgram(t,"EC",{vertexShaderSource:t.vertexShaderSource,fragmentShaderSource:r,attributeLocations:n})}return i}Z.isSupported=y,Z.prototype.update=function(e,t,i,n){if(!y(e.context))return;let s;this._strength=i.eyeDomeLightingStrength,this._radius=i.eyeDomeLightingRadius*e.pixelRatio,function(e,t){const i=t.drawingBufferWidth,n=t.drawingBufferHeight;e._framebuffer.update(t,i,n),function(e,t){const i=new f.Z({defines:["LOG_DEPTH_WRITE"],sources:[_.Z]}),n={u_pointCloud_colorGBuffer:function(){return e.colorGBuffer},u_pointCloud_depthGBuffer:function(){return e.depthGBuffer},u_distanceAndEdlStrength:function(){return g.x=e._radius,g.y=e._strength,g}},o=d.Z.fromCache({blending:p.Z.ALPHA_BLEND,depthMask:!0,depthTest:{enabled:!0},stencilTest:m.Z.setCesium3DTileBit(),stencilMask:m.Z.CESIUM_3D_TILE_MASK});e._drawCommand=t.createViewportQuadCommand(i,{uniformMap:n,renderState:o,pass:h.Z.CESIUM_3D_TILE,owner:e}),e._clearCommand=new c.Z({framebuffer:e.framebuffer,color:new r.Z(0,0,0,0),depth:1,renderState:d.Z.fromCache(),pass:h.Z.CESIUM_3D_TILE,owner:e})}(e,t)}(this,e.context);const l=e.commandList,Z=l.length;let A,w;for(s=t;s<Z;++s){const t=l[s];if(t.primitiveType!==a.Z.POINTS||t.pass===h.Z.TRANSLUCENT)continue;A=void 0,w=void 0;let i=t.derivedCommands.pointCloudProcessor;(0,o.Z)(i)&&(A=i.command,w=i.originalShaderProgram),(0,o.Z)(A)&&!t.dirty&&w===t.shaderProgram&&A.framebuffer===this.framebuffer||(A=u.Z.shallowClone(t,A),A.framebuffer=this.framebuffer,A.shaderProgram=b(e.context,t.shaderProgram),A.castShadows=!1,A.receiveShadows=!1,(0,o.Z)(i)||(i={command:A,originalShaderProgram:t.shaderProgram},t.derivedCommands.pointCloudProcessor=i),i.originalShaderProgram=t.shaderProgram),l[s]=A}const v=this._clearCommand,T=this._drawCommand;T.boundingVolume=n,l.push(T),l.push(v)},Z.prototype.isDestroyed=function(){return!1},Z.prototype.destroy=function(){var e;return(e=this)._framebuffer.destroy(),e._drawCommand=void 0,e._clearCommand=void 0,(0,s.Z)(this)};const A=Z},715696:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(406144),r=i(332270);function o(e){const t=(0,n.Z)(e,{});this.attenuation=(0,n.Z)(t.attenuation,!1),this.geometricErrorScale=(0,n.Z)(t.geometricErrorScale,1),this.maximumAttenuation=t.maximumAttenuation,this.baseResolution=t.baseResolution,this.eyeDomeLighting=(0,n.Z)(t.eyeDomeLighting,!0),this.eyeDomeLightingStrength=(0,n.Z)(t.eyeDomeLightingStrength,1),this.eyeDomeLightingRadius=(0,n.Z)(t.eyeDomeLightingRadius,1),this.backFaceCulling=(0,n.Z)(t.backFaceCulling,!1),this.normalShading=(0,n.Z)(t.normalShading,!0)}o.isSupported=function(e){return r.Z.isSupported(e.context)};const s=o},906602:(e,t,i)=>{"use strict";i.d(t,{Z:()=>I});var n=i(152124),r=i(337968),o=i(919382),s=i(114754),a=i(545125),c=i(406144),u=i(426468),l=i(446938),h=i(744497),d=i(583917),f=i(530109),p=i(506678),m=i(867536);function _(e,t){if(e=(0,c.Z)(e,c.Z.EMPTY_OBJECT),(0,u.Z)(e.disableDepthTestDistance)&&e.disableDepthTestDistance<0)throw new l.Z("disableDepthTestDistance must be greater than or equal to 0.0.");let i=e.translucencyByDistance,n=e.scaleByDistance,r=e.distanceDisplayCondition;if((0,u.Z)(i)){if(i.far<=i.near)throw new l.Z("translucencyByDistance.far must be greater than translucencyByDistance.near.");i=f.Z.clone(i)}if((0,u.Z)(n)){if(n.far<=n.near)throw new l.Z("scaleByDistance.far must be greater than scaleByDistance.near.");n=f.Z.clone(n)}if((0,u.Z)(r)){if(r.far<=r.near)throw new l.Z("distanceDisplayCondition.far must be greater than distanceDisplayCondition.near.");r=h.Z.clone(r)}this._show=(0,c.Z)(e.show,!0),this._position=o.Z.clone((0,c.Z)(e.position,o.Z.ZERO)),this._actualPosition=o.Z.clone(this._position),this._color=a.Z.clone((0,c.Z)(e.color,a.Z.WHITE)),this._outlineColor=a.Z.clone((0,c.Z)(e.outlineColor,a.Z.TRANSPARENT)),this._outlineWidth=(0,c.Z)(e.outlineWidth,0),this._pixelSize=(0,c.Z)(e.pixelSize,10),this._scaleByDistance=n,this._translucencyByDistance=i,this._distanceDisplayCondition=r,this._disableDepthTestDistance=(0,c.Z)(e.disableDepthTestDistance,0),this._id=e.id,this._collection=(0,c.Z)(e.collection,t),this._clusterShow=!0,this._pickId=void 0,this._pointPrimitiveCollection=t,this._dirty=!1,this._index=-1}const Z=_.SHOW_INDEX=0,g=_.POSITION_INDEX=1,y=_.COLOR_INDEX=2,b=_.OUTLINE_COLOR_INDEX=3,A=_.OUTLINE_WIDTH_INDEX=4,w=_.PIXEL_SIZE_INDEX=5,v=_.SCALE_BY_DISTANCE_INDEX=6,T=_.TRANSLUCENCY_BY_DISTANCE_INDEX=7,C=_.DISTANCE_DISPLAY_CONDITION_INDEX=8,E=_.DISABLE_DEPTH_DISTANCE_INDEX=9;function x(e,t){const i=e._pointPrimitiveCollection;(0,u.Z)(i)&&(i._updatePointPrimitive(e,t),e._dirty=!0)}_.NUMBER_OF_PROPERTIES=10,Object.defineProperties(_.prototype,{show:{get:function(){return this._show},set:function(e){if(!(0,u.Z)(e))throw new l.Z("value is required.");this._show!==e&&(this._show=e,x(this,Z))}},position:{get:function(){return this._position},set:function(e){if(!(0,u.Z)(e))throw new l.Z("value is required.");const t=this._position;o.Z.equals(t,e)||(o.Z.clone(e,t),o.Z.clone(e,this._actualPosition),x(this,g))}},scaleByDistance:{get:function(){return this._scaleByDistance},set:function(e){if((0,u.Z)(e)&&e.far<=e.near)throw new l.Z("far distance must be greater than near distance.");const t=this._scaleByDistance;f.Z.equals(t,e)||(this._scaleByDistance=f.Z.clone(e,t),x(this,v))}},translucencyByDistance:{get:function(){return this._translucencyByDistance},set:function(e){if((0,u.Z)(e)&&e.far<=e.near)throw new l.Z("far distance must be greater than near distance.");const t=this._translucencyByDistance;f.Z.equals(t,e)||(this._translucencyByDistance=f.Z.clone(e,t),x(this,T))}},pixelSize:{get:function(){return this._pixelSize},set:function(e){if(!(0,u.Z)(e))throw new l.Z("value is required.");this._pixelSize!==e&&(this._pixelSize=e,x(this,w))}},color:{get:function(){return this._color},set:function(e){if(!(0,u.Z)(e))throw new l.Z("value is required.");const t=this._color;a.Z.equals(t,e)||(a.Z.clone(e,t),x(this,y))}},outlineColor:{get:function(){return this._outlineColor},set:function(e){if(!(0,u.Z)(e))throw new l.Z("value is required.");const t=this._outlineColor;a.Z.equals(t,e)||(a.Z.clone(e,t),x(this,b))}},outlineWidth:{get:function(){return this._outlineWidth},set:function(e){if(!(0,u.Z)(e))throw new l.Z("value is required.");this._outlineWidth!==e&&(this._outlineWidth=e,x(this,A))}},distanceDisplayCondition:{get:function(){return this._distanceDisplayCondition},set:function(e){if((0,u.Z)(e)&&e.far<=e.near)throw new l.Z("far must be greater than near");h.Z.equals(this._distanceDisplayCondition,e)||(this._distanceDisplayCondition=h.Z.clone(e,this._distanceDisplayCondition),x(this,C))}},disableDepthTestDistance:{get:function(){return this._disableDepthTestDistance},set:function(e){if(this._disableDepthTestDistance!==e){if(!(0,u.Z)(e)||e<0)throw new l.Z("disableDepthTestDistance must be greater than or equal to 0.0.");this._disableDepthTestDistance=e,x(this,E)}}},id:{get:function(){return this._id},set:function(e){this._id=e,(0,u.Z)(this._pickId)&&(this._pickId.object.id=e)}},pickId:{get:function(){return this._pickId}},clusterShow:{get:function(){return this._clusterShow},set:function(e){this._clusterShow!==e&&(this._clusterShow=e,x(this,Z))}}}),_.prototype.getPickId=function(e){return(0,u.Z)(this._pickId)||(this._pickId=e.createPickId({primitive:this,collection:this._collection,id:this._id})),this._pickId},_.prototype._getActualPosition=function(){return this._actualPosition},_.prototype._setActualPosition=function(e){o.Z.clone(e,this._actualPosition),x(this,g)};const S=new s.Z;_._computeActualPosition=function(e,t,i){return t.mode===p.Z.SCENE3D?e:(d.Z.multiplyByPoint(i,e,S),m.Z.computeActualWgs84Position(t,S))};const O=new s.Z;_._computeScreenSpacePosition=function(e,t,i,n){const r=d.Z.multiplyByVector(e,s.Z.fromElements(t.x,t.y,t.z,1,O),O);return m.Z.wgs84ToWindowCoordinates(i,r,n)},_.prototype.computeScreenSpacePosition=function(e,t){const i=this._pointPrimitiveCollection;if((0,u.Z)(t)||(t=new r.Z),!(0,u.Z)(i))throw new l.Z("PointPrimitive must be in a collection.");if(!(0,u.Z)(e))throw new l.Z("scene is required.");const n=i.modelMatrix,o=_._computeScreenSpacePosition(n,this._actualPosition,e,t);if((0,u.Z)(o))return o.y=e.canvas.clientHeight-o.y,o},_.getScreenSpaceBoundingBox=function(e,t,i){const r=e.pixelSize,o=.5*r,s=t.x-o,a=t.y-o,c=r,l=r;return(0,u.Z)(i)||(i=new n.Z),i.x=s,i.y=a,i.width=c,i.height=l,i},_.prototype.equals=function(e){return this===e||(0,u.Z)(e)&&this._id===e._id&&o.Z.equals(this._position,e._position)&&a.Z.equals(this._color,e._color)&&this._pixelSize===e._pixelSize&&this._outlineWidth===e._outlineWidth&&this._show===e._show&&a.Z.equals(this._outlineColor,e._outlineColor)&&f.Z.equals(this._scaleByDistance,e._scaleByDistance)&&f.Z.equals(this._translucencyByDistance,e._translucencyByDistance)&&h.Z.equals(this._distanceDisplayCondition,e._distanceDisplayCondition)&&this._disableDepthTestDistance===e._disableDepthTestDistance},_.prototype._destroy=function(){this._pickId=this._pickId&&this._pickId.destroy(),this._pointPrimitiveCollection=void 0};const I=_},997023:(e,t,i)=>{"use strict";i.d(t,{Z:()=>te});var n=i(360791),r=i(545125),o=i(997274),s=i(406144),a=i(426468),c=i(54879),u=i(446938),l=i(275949),h=i(362017),d=i(583917),f=i(195809),p=i(619287),m=i(50720),_=i(994589),Z=i(247913),g=i(842649),y=i(364232),b=i(928096),A=i(279427),w=i(311638),v=i(779975),T=i(364527),C=i(451356),E=i(593478),x=i(906602),S=i(506678);const O=x.Z.SHOW_INDEX,I=x.Z.POSITION_INDEX,D=x.Z.COLOR_INDEX,P=x.Z.OUTLINE_COLOR_INDEX,R=x.Z.OUTLINE_WIDTH_INDEX,B=x.Z.PIXEL_SIZE_INDEX,M=x.Z.SCALE_BY_DISTANCE_INDEX,L=x.Z.TRANSLUCENCY_BY_DISTANCE_INDEX,N=x.Z.DISTANCE_DISPLAY_CONDITION_INDEX,F=x.Z.DISABLE_DEPTH_DISTANCE_INDEX,k=x.Z.NUMBER_OF_PROPERTIES,U={positionHighAndSize:0,positionLowAndOutline:1,compressedAttribute0:2,compressedAttribute1:3,scaleByDistance:4,distanceDisplayConditionAndDisableDepth:5};function V(e){e=(0,s.Z)(e,s.Z.EMPTY_OBJECT),this._sp=void 0,this._spTranslucent=void 0,this._rsOpaque=void 0,this._rsTranslucent=void 0,this._vaf=void 0,this._pointPrimitives=[],this._pointPrimitivesToUpdate=[],this._pointPrimitivesToUpdateIndex=0,this._pointPrimitivesRemoved=!1,this._createVertexArray=!1,this._shaderScaleByDistance=!1,this._compiledShaderScaleByDistance=!1,this._shaderTranslucencyByDistance=!1,this._compiledShaderTranslucencyByDistance=!1,this._shaderDistanceDisplayCondition=!1,this._compiledShaderDistanceDisplayCondition=!1,this._shaderDisableDepthDistance=!1,this._compiledShaderDisableDepthDistance=!1,this._propertiesChanged=new Uint32Array(k),this._maxPixelSize=1,this._baseVolume=new n.Z,this._baseVolumeWC=new n.Z,this._baseVolume2D=new n.Z,this._boundingVolume=new n.Z,this._boundingVolumeDirty=!1,this._colorCommands=[],this.show=(0,s.Z)(e.show,!0),this.modelMatrix=d.Z.clone((0,s.Z)(e.modelMatrix,d.Z.IDENTITY)),this._modelMatrix=d.Z.clone(d.Z.IDENTITY),this.debugShowBoundingVolume=(0,s.Z)(e.debugShowBoundingVolume,!1),this.blendOption=(0,s.Z)(e.blendOption,E.Z.OPAQUE_AND_TRANSLUCENT),this._blendOption=void 0,this._mode=S.Z.SCENE3D,this._maxTotalPointSize=1,this._buffersUsage=[m.Z.STATIC_DRAW,m.Z.STATIC_DRAW,m.Z.STATIC_DRAW,m.Z.STATIC_DRAW,m.Z.STATIC_DRAW,m.Z.STATIC_DRAW,m.Z.STATIC_DRAW,m.Z.STATIC_DRAW,m.Z.STATIC_DRAW];const t=this;this._uniforms={u_maxTotalPointSize:function(){return t._maxTotalPointSize}}}function z(e){const t=e.length;for(let i=0;i<t;++i)e[i]&&e[i]._destroy()}function H(e){if(e._pointPrimitivesRemoved){e._pointPrimitivesRemoved=!1;const t=[],i=e._pointPrimitives,n=i.length;for(let e=0,r=0;e<n;++e){const n=i[e];n&&(n._index=r++,t.push(n))}e._pointPrimitives=t}}Object.defineProperties(V.prototype,{length:{get:function(){return H(this),this._pointPrimitives.length}}}),V.prototype.add=function(e){const t=new x.Z(e,this);return t._index=this._pointPrimitives.length,this._pointPrimitives.push(t),this._createVertexArray=!0,t},V.prototype.remove=function(e){return!!this.contains(e)&&(this._pointPrimitives[e._index]=null,this._pointPrimitivesRemoved=!0,this._createVertexArray=!0,e._destroy(),!0)},V.prototype.removeAll=function(){z(this._pointPrimitives),this._pointPrimitives=[],this._pointPrimitivesToUpdate=[],this._pointPrimitivesToUpdateIndex=0,this._pointPrimitivesRemoved=!1,this._createVertexArray=!0},V.prototype._updatePointPrimitive=function(e,t){e._dirty||(this._pointPrimitivesToUpdate[this._pointPrimitivesToUpdateIndex++]=e),++this._propertiesChanged[t]},V.prototype.contains=function(e){return(0,a.Z)(e)&&e._pointPrimitiveCollection===this},V.prototype.get=function(e){if(!(0,a.Z)(e))throw new u.Z("index is required.");return H(this),this._pointPrimitives[e]},V.prototype.computeNewBuffersUsage=function(){const e=this._buffersUsage;let t=!1;const i=this._propertiesChanged;for(let n=0;n<k;++n){const r=0===i[n]?m.Z.STATIC_DRAW:m.Z.STREAM_DRAW;t=t||e[n]!==r,e[n]=r}return t};const G=new l.Z;function q(e,t,i,r){const o=r._index,s=r._getActualPosition();e._mode===S.Z.SCENE3D&&(n.Z.expand(e._baseVolume,s,e._baseVolume),e._boundingVolumeDirty=!0),l.Z.fromCartesian(s,G);const a=r.pixelSize,c=r.outlineWidth;e._maxPixelSize=Math.max(e._maxPixelSize,a+c);const u=i[U.positionHighAndSize],h=G.high;u(o,h.x,h.y,h.z,a);const d=i[U.positionLowAndOutline],f=G.low;d(o,f.x,f.y,f.z,c)}const j=65536,W=256;function K(e,t,i,n){const o=n._index,s=n.color,a=n.getPickId(t).color,c=n.outlineColor;let u=r.Z.floatToByte(s.red),l=r.Z.floatToByte(s.green),h=r.Z.floatToByte(s.blue);const d=u*j+l*W+h;u=r.Z.floatToByte(c.red),l=r.Z.floatToByte(c.green),h=r.Z.floatToByte(c.blue);const f=u*j+l*W+h;u=r.Z.floatToByte(a.red),l=r.Z.floatToByte(a.green),h=r.Z.floatToByte(a.blue);const p=u*j+l*W+h,m=r.Z.floatToByte(s.alpha)*j+r.Z.floatToByte(c.alpha)*W+r.Z.floatToByte(a.alpha);(0,i[U.compressedAttribute0])(o,d,f,p,m)}function Y(e,t,i,n){const r=n._index;let o=0,s=1,c=1,u=1;const l=n.translucencyByDistance;(0,a.Z)(l)&&(o=l.near,s=l.nearValue,c=l.far,u=l.farValue,1===s&&1===u||(e._shaderTranslucencyByDistance=!0));let d=n.show&&n.clusterShow;0===n.color.alpha&&0===n.outlineColor.alpha&&(d=!1),s=h.Z.clamp(s,0,1),s=1===s?255:255*s|0;const f=(d?1:0)*W+s;u=h.Z.clamp(u,0,1),u=1===u?255:255*u|0;const p=u;(0,i[U.compressedAttribute1])(r,f,p,o,c)}function X(e,t,i,n){const r=n._index,o=i[U.scaleByDistance];let s=0,c=1,u=1,l=1;const h=n.scaleByDistance;(0,a.Z)(h)&&(s=h.near,c=h.nearValue,u=h.far,l=h.farValue,1===c&&1===l||(e._shaderScaleByDistance=!0)),o(r,s,c,u,l)}function J(e,t,i,n){const r=n._index,o=i[U.distanceDisplayConditionAndDisableDepth];let s=0,c=Number.MAX_VALUE;const u=n.distanceDisplayCondition;(0,a.Z)(u)&&(s=u.near,c=u.far,s*=s,c*=c,e._shaderDistanceDisplayCondition=!0);let l=n.disableDepthTestDistance;l*=l,l>0&&(e._shaderDisableDepthDistance=!0,l===Number.POSITIVE_INFINITY&&(l=-1)),o(r,s,c,l)}function Q(e,t,i,n){q(e,0,i,n),K(0,t,i,n),Y(e,0,i,n),X(e,0,i,n),J(e,0,i,n)}function $(e,t,i,r,o,s){let c;r.mode===S.Z.SCENE3D?(c=e._baseVolume,e._boundingVolumeDirty=!0):c=e._baseVolume2D;const u=[];for(let e=0;e<i;++e){const i=t[e],l=i.position,h=x.Z._computeActualPosition(l,r,o);(0,a.Z)(h)&&(i._setActualPosition(h),s?u.push(h):n.Z.expand(c,h,c))}s&&n.Z.fromPoints(u,c)}const ee=[];V.prototype.update=function(e){if(H(this),!this.show)return;this._maxTotalPointSize=_.Z.maximumAliasedPointSize,function(e,t){const i=t.mode,n=e._pointPrimitives,r=e._pointPrimitivesToUpdate,o=e._modelMatrix;e._createVertexArray||e._mode!==i||i!==S.Z.SCENE3D&&!d.Z.equals(o,e.modelMatrix)?(e._mode=i,d.Z.clone(e.modelMatrix,o),e._createVertexArray=!0,i!==S.Z.SCENE3D&&i!==S.Z.SCENE2D&&i!==S.Z.COLUMBUS_VIEW||$(e,n,n.length,t,o,!0)):i===S.Z.MORPHING?$(e,n,n.length,t,o,!0):i!==S.Z.SCENE2D&&i!==S.Z.COLUMBUS_VIEW||$(e,r,e._pointPrimitivesToUpdateIndex,t,o,!1)}(this,e);const t=this._pointPrimitives.length,i=this._pointPrimitivesToUpdate,r=this._pointPrimitivesToUpdateIndex,s=this._propertiesChanged,c=this._createVertexArray;let u;const l=e.context,h=e.passes,m=h.pick;if(c||!m&&this.computeNewBuffersUsage()){this._createVertexArray=!1;for(let e=0;e<k;++e)s[e]=0;if(this._vaf=this._vaf&&this._vaf.destroy(),t>0){this._vaf=function(e,t,i){return new w.Z(e,[{index:U.positionHighAndSize,componentsPerAttribute:4,componentDatatype:o.Z.FLOAT,usage:i[I]},{index:U.positionLowAndShow,componentsPerAttribute:4,componentDatatype:o.Z.FLOAT,usage:i[I]},{index:U.compressedAttribute0,componentsPerAttribute:4,componentDatatype:o.Z.FLOAT,usage:i[D]},{index:U.compressedAttribute1,componentsPerAttribute:4,componentDatatype:o.Z.FLOAT,usage:i[L]},{index:U.scaleByDistance,componentsPerAttribute:4,componentDatatype:o.Z.FLOAT,usage:i[M]},{index:U.distanceDisplayConditionAndDisableDepth,componentsPerAttribute:3,componentDatatype:o.Z.FLOAT,usage:i[N]}],t)}(l,t,this._buffersUsage),u=this._vaf.writers;for(let e=0;e<t;++e){const t=this._pointPrimitives[e];t._dirty=!1,Q(this,l,u,t)}this._vaf.commit()}this._pointPrimitivesToUpdateIndex=0}else if(r>0){const e=ee;e.length=0,(s[I]||s[R]||s[B])&&e.push(q),(s[D]||s[P])&&e.push(K),(s[O]||s[L])&&e.push(Y),s[M]&&e.push(X),(s[N]||s[F])&&e.push(J);const n=e.length;if(u=this._vaf.writers,r/t>.1){for(let t=0;t<r;++t){const r=i[t];r._dirty=!1;for(let t=0;t<n;++t)e[t](this,l,u,r)}this._vaf.commit()}else{for(let t=0;t<r;++t){const r=i[t];r._dirty=!1;for(let t=0;t<n;++t)e[t](this,l,u,r);this._vaf.subCommit(r._index,1)}this._vaf.endSubCommits()}this._pointPrimitivesToUpdateIndex=0}if(r>1.5*t&&(i.length=t),!(0,a.Z)(this._vaf)||!(0,a.Z)(this._vaf.va))return;let x;this._boundingVolumeDirty&&(this._boundingVolumeDirty=!1,n.Z.transform(this._baseVolume,this.modelMatrix,this._baseVolumeWC));let V=d.Z.IDENTITY;e.mode===S.Z.SCENE3D?(V=this.modelMatrix,x=n.Z.clone(this._baseVolumeWC,this._boundingVolume)):x=n.Z.clone(this._baseVolume2D,this._boundingVolume),function(e,t,i){const n=t.camera.getPixelSize(i,t.context.drawingBufferWidth,t.context.drawingBufferHeight)*e._maxPixelSize;i.radius+=n}(this,e,x);const z=this._blendOption!==this.blendOption;let G,j,W,te,ie,ne;this._blendOption=this.blendOption,z&&(this._blendOption===E.Z.OPAQUE||this._blendOption===E.Z.OPAQUE_AND_TRANSLUCENT?this._rsOpaque=y.Z.fromCache({depthTest:{enabled:!0,func:p.Z.LEQUAL},depthMask:!0}):this._rsOpaque=void 0,this._blendOption===E.Z.TRANSLUCENT||this._blendOption===E.Z.OPAQUE_AND_TRANSLUCENT?this._rsTranslucent=y.Z.fromCache({depthTest:{enabled:!0,func:p.Z.LEQUAL},depthMask:!1,blending:C.Z.ALPHA_BLEND}):this._rsTranslucent=void 0),this._shaderDisableDepthDistance=this._shaderDisableDepthDistance||0!==e.minimumDisableDepthTestDistance,(z||this._shaderScaleByDistance&&!this._compiledShaderScaleByDistance||this._shaderTranslucencyByDistance&&!this._compiledShaderTranslucencyByDistance||this._shaderDistanceDisplayCondition&&!this._compiledShaderDistanceDisplayCondition||this._shaderDisableDepthDistance!==this._compiledShaderDisableDepthDistance)&&(G=new A.Z({sources:[T.Z]}),this._shaderScaleByDistance&&G.defines.push("EYE_DISTANCE_SCALING"),this._shaderTranslucencyByDistance&&G.defines.push("EYE_DISTANCE_TRANSLUCENCY"),this._shaderDistanceDisplayCondition&&G.defines.push("DISTANCE_DISPLAY_CONDITION"),this._shaderDisableDepthDistance&&G.defines.push("DISABLE_DEPTH_DISTANCE"),this._blendOption===E.Z.OPAQUE_AND_TRANSLUCENT&&(j=new A.Z({defines:["OPAQUE"],sources:[v.Z]}),this._sp=b.Z.replaceCache({context:l,shaderProgram:this._sp,vertexShaderSource:G,fragmentShaderSource:j,attributeLocations:U}),j=new A.Z({defines:["TRANSLUCENT"],sources:[v.Z]}),this._spTranslucent=b.Z.replaceCache({context:l,shaderProgram:this._spTranslucent,vertexShaderSource:G,fragmentShaderSource:j,attributeLocations:U})),this._blendOption===E.Z.OPAQUE&&(j=new A.Z({sources:[v.Z]}),this._sp=b.Z.replaceCache({context:l,shaderProgram:this._sp,vertexShaderSource:G,fragmentShaderSource:j,attributeLocations:U})),this._blendOption===E.Z.TRANSLUCENT&&(j=new A.Z({sources:[v.Z]}),this._spTranslucent=b.Z.replaceCache({context:l,shaderProgram:this._spTranslucent,vertexShaderSource:G,fragmentShaderSource:j,attributeLocations:U})),this._compiledShaderScaleByDistance=this._shaderScaleByDistance,this._compiledShaderTranslucencyByDistance=this._shaderTranslucencyByDistance,this._compiledShaderDistanceDisplayCondition=this._shaderDistanceDisplayCondition,this._compiledShaderDisableDepthDistance=this._shaderDisableDepthDistance);const re=e.commandList;if(h.render||m){const e=this._colorCommands,t=this._blendOption===E.Z.OPAQUE,i=this._blendOption===E.Z.OPAQUE_AND_TRANSLUCENT;W=this._vaf.va,te=W.length,e.length=te;const n=i?2*te:te;for(ne=0;ne<n;++ne){const n=t||i&&ne%2==0;ie=e[ne],(0,a.Z)(ie)||(ie=e[ne]=new Z.Z),ie.primitiveType=f.Z.POINTS,ie.pass=n||!i?g.Z.OPAQUE:g.Z.TRANSLUCENT,ie.owner=this;const r=i?Math.floor(ne/2):ne;ie.boundingVolume=x,ie.modelMatrix=V,ie.shaderProgram=n?this._sp:this._spTranslucent,ie.uniformMap=this._uniforms,ie.vertexArray=W[r].va,ie.renderState=n?this._rsOpaque:this._rsTranslucent,ie.debugShowBoundingVolume=this.debugShowBoundingVolume,ie.pickId="v_pickColor",re.push(ie)}}},V.prototype.isDestroyed=function(){return!1},V.prototype.destroy=function(){return this._sp=this._sp&&this._sp.destroy(),this._spTranslucent=this._spTranslucent&&this._spTranslucent.destroy(),this._spPick=this._spPick&&this._spPick.destroy(),this._vaf=this._vaf&&this._vaf.destroy(),z(this._pointPrimitives),(0,c.Z)(this)};const te=V},905057:(e,t,i)=>{"use strict";i.d(t,{Z:()=>v});var n=i(554875),r=i(360791),o=i(919382),s=i(545125),a=i(406144),c=i(426468),u=i(446938),l=i(744497),h=i(583917),d=i(372944),f=i(172795);function p(e,t){e=(0,a.Z)(e,a.Z.EMPTY_OBJECT),this._show=(0,a.Z)(e.show,!0),this._width=(0,a.Z)(e.width,1),this._loop=(0,a.Z)(e.loop,!1),this._distanceDisplayCondition=e.distanceDisplayCondition,this._material=e.material,(0,c.Z)(this._material)||(this._material=f.Z.fromType(f.Z.ColorType,{color:new s.Z(1,1,1,1)}));let i,u=e.positions;(0,c.Z)(u)||(u=[]),this._positions=u,this._actualPositions=(0,n.Z)(u,o.Z.equalsEpsilon),this._loop&&this._actualPositions.length>2&&(this._actualPositions===this._positions&&(this._actualPositions=u.slice()),this._actualPositions.push(o.Z.clone(this._actualPositions[0]))),this._length=this._actualPositions.length,this._id=e.id,(0,c.Z)(t)&&(i=h.Z.clone(t.modelMatrix)),this._modelMatrix=i,this._segments=d.Z.wrapLongitude(this._actualPositions,i),this._actualLength=void 0,this._propertiesChanged=new Uint32Array(A),this._polylineCollection=t,this._dirty=!1,this._pickId=void 0,this._boundingVolume=r.Z.fromPoints(this._actualPositions),this._boundingVolumeWC=r.Z.transform(this._boundingVolume,this._modelMatrix),this._boundingVolume2D=new r.Z}const m=p.POSITION_INDEX=0,_=p.SHOW_INDEX=1,Z=p.WIDTH_INDEX=2,g=p.MATERIAL_INDEX=3,y=p.POSITION_SIZE_INDEX=4,b=p.DISTANCE_DISPLAY_CONDITION=5,A=p.NUMBER_OF_PROPERTIES=6;function w(e,t){++e._propertiesChanged[t];const i=e._polylineCollection;(0,c.Z)(i)&&(i._updatePolyline(e,t),e._dirty=!0)}Object.defineProperties(p.prototype,{show:{get:function(){return this._show},set:function(e){if(!(0,c.Z)(e))throw new u.Z("value is required.");e!==this._show&&(this._show=e,w(this,_))}},positions:{get:function(){return this._positions},set:function(e){if(!(0,c.Z)(e))throw new u.Z("value is required.");let t=(0,n.Z)(e,o.Z.equalsEpsilon);this._loop&&t.length>2&&(t===e&&(t=e.slice()),t.push(o.Z.clone(t[0]))),this._actualPositions.length===t.length&&this._actualPositions.length===this._length||w(this,y),this._positions=e,this._actualPositions=t,this._length=t.length,this._boundingVolume=r.Z.fromPoints(this._actualPositions,this._boundingVolume),this._boundingVolumeWC=r.Z.transform(this._boundingVolume,this._modelMatrix,this._boundingVolumeWC),w(this,m),this.update()}},material:{get:function(){return this._material},set:function(e){if(!(0,c.Z)(e))throw new u.Z("material is required.");this._material!==e&&(this._material=e,w(this,g))}},width:{get:function(){return this._width},set:function(e){if(!(0,c.Z)(e))throw new u.Z("value is required.");e!==this._width&&(this._width=e,w(this,Z))}},loop:{get:function(){return this._loop},set:function(e){if(!(0,c.Z)(e))throw new u.Z("value is required.");if(e!==this._loop){let t=this._actualPositions;e?t.length>2&&!o.Z.equals(t[0],t[t.length-1])&&(t.length===this._positions.length&&(this._actualPositions=t=this._positions.slice()),t.push(o.Z.clone(t[0]))):t.length>2&&o.Z.equals(t[0],t[t.length-1])&&(t.length-1===this._positions.length?this._actualPositions=this._positions:t.pop()),this._loop=e,w(this,y)}}},id:{get:function(){return this._id},set:function(e){this._id=e,(0,c.Z)(this._pickId)&&(this._pickId.object.id=e)}},pickId:{get:function(){return this._pickId}},isDestroyed:{get:function(){return!(0,c.Z)(this._polylineCollection)}},distanceDisplayCondition:{get:function(){return this._distanceDisplayCondition},set:function(e){if((0,c.Z)(e)&&e.far<=e.near)throw new u.Z("far distance must be greater than near distance.");l.Z.equals(e,this._distanceDisplayCondition)||(this._distanceDisplayCondition=l.Z.clone(e,this._distanceDisplayCondition),w(this,b))}}}),p.prototype.update=function(){let e=h.Z.IDENTITY;(0,c.Z)(this._polylineCollection)&&(e=this._polylineCollection.modelMatrix);const t=this._segments.positions.length,i=this._segments.lengths,n=this._propertiesChanged[m]>0||this._propertiesChanged[y]>0;if(h.Z.equals(e,this._modelMatrix)&&!n||(this._segments=d.Z.wrapLongitude(this._actualPositions,e),this._boundingVolumeWC=r.Z.transform(this._boundingVolume,e,this._boundingVolumeWC)),this._modelMatrix=h.Z.clone(e,this._modelMatrix),this._segments.positions.length!==t)w(this,y);else{const e=i.length;for(let t=0;t<e;++t)if(i[t]!==this._segments.lengths[t]){w(this,y);break}}},p.prototype.getPickId=function(e){return(0,c.Z)(this._pickId)||(this._pickId=e.createPickId({primitive:this,collection:this._polylineCollection,id:this._id})),this._pickId},p.prototype._clean=function(){this._dirty=!1;const e=this._propertiesChanged;for(let t=0;t<A-1;++t)e[t]=0},p.prototype._destroy=function(){this._pickId=this._pickId&&this._pickId.destroy(),this._material=this._material&&this._material.destroy(),this._polylineCollection=void 0};const v=p},946096:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Oe});var n=i(360791),r=i(337968),o=i(919382),s=i(114754),a=i(698907),c=i(545125),u=i(307260),l=i(997274),h=i(406144),d=i(426468),f=i(54879),p=i(446938),m=i(275949),_=i(488802),Z=i(546135),g=i(360382),y=i(362017),b=i(583917),A=i(634878),w=i(50128),v=i(636807),T=i(50720),C=i(994589),E=i(247913),x=i(842649),S=i(364232),O=i(928096),I=i(279427),D=i(283044),P=i(676311),R=i(648298),B=i(782223),M=i(564557),L=i(525688),N=i(451356),F=i(172795),k=i(905057),U=i(506678);const V=k.Z.SHOW_INDEX,z=k.Z.WIDTH_INDEX,H=k.Z.POSITION_INDEX,G=k.Z.MATERIAL_INDEX,q=k.Z.POSITION_SIZE_INDEX,j=k.Z.DISTANCE_DISPLAY_CONDITION,W=k.Z.NUMBER_OF_PROPERTIES,K={texCoordExpandAndBatchIndex:0,position3DHigh:1,position3DLow:2,position2DHigh:3,position2DLow:4,prevPosition3DHigh:5,prevPosition3DLow:6,prevPosition2DHigh:7,prevPosition2DLow:8,nextPosition3DHigh:9,nextPosition3DLow:10,nextPosition2DHigh:11,nextPosition2DLow:12};function Y(e){e=(0,h.Z)(e,h.Z.EMPTY_OBJECT),this.show=(0,h.Z)(e.show,!0),this.modelMatrix=b.Z.clone((0,h.Z)(e.modelMatrix,b.Z.IDENTITY)),this._modelMatrix=b.Z.clone(b.Z.IDENTITY),this.debugShowBoundingVolume=(0,h.Z)(e.debugShowBoundingVolume,!1),this._opaqueRS=void 0,this._translucentRS=void 0,this._colorCommands=[],this._polylinesUpdated=!1,this._polylinesRemoved=!1,this._createVertexArray=!1,this._propertiesChanged=new Uint32Array(W),this._polylines=[],this._polylineBuckets={},this._positionBufferUsage={bufferUsage:T.Z.STATIC_DRAW,frameCount:0},this._mode=void 0,this._polylinesToUpdate=[],this._vertexArrays=[],this._positionBuffer=void 0,this._texCoordExpandAndBatchIndexBuffer=void 0,this._batchTable=void 0,this._createBatchTable=!1,this._useHighlightColor=!1,this._highlightColor=c.Z.clone(c.Z.WHITE);const t=this;this._uniformMap={u_highlightColor:function(){return t._highlightColor}}}Object.defineProperties(Y.prototype,{length:{get:function(){return se(this),this._polylines.length}}}),Y.prototype.add=function(e){const t=new k.Z(e,this);return t._index=this._polylines.length,this._polylines.push(t),this._createVertexArray=!0,this._createBatchTable=!0,t},Y.prototype.remove=function(e){if(this.contains(e)){if(this._polylinesRemoved=!0,this._createVertexArray=!0,this._createBatchTable=!0,(0,d.Z)(e._bucket)){const t=e._bucket;t.shaderProgram=t.shaderProgram&&t.shaderProgram.destroy()}return e._destroy(),!0}return!1},Y.prototype.removeAll=function(){ae(this),ue(this),this._polylineBuckets={},this._polylinesRemoved=!1,this._polylines.length=0,this._polylinesToUpdate.length=0,this._createVertexArray=!0},Y.prototype.contains=function(e){return(0,d.Z)(e)&&e._polylineCollection===this},Y.prototype.get=function(e){if(!(0,d.Z)(e))throw new p.Z("index is required.");return se(this),this._polylines[e]};const X=new m.Z,J=new s.Z,Q=new r.Z;Y.prototype.update=function(e){if(se(this),0===this._polylines.length||!this.show)return;!function(e,t){const i=t.mode;e._mode===i&&b.Z.equals(e._modelMatrix,e.modelMatrix)||(e._mode=i,e._modelMatrix=b.Z.clone(e.modelMatrix),e._createVertexArray=!0)}(this,e);const t=e.context,i=e.mapProjection;let o,a=this._propertiesChanged;if(this._createBatchTable){if(0===C.Z.maximumVertexTextureImageUnits)throw new w.Z("Vertex texture fetch support is required to render polylines. The maximum number of vertex texture image units must be greater than zero.");!function(e,t){(0,d.Z)(e._batchTable)&&e._batchTable.destroy();const i=[{functionName:"batchTable_getWidthAndShow",componentDatatype:l.Z.UNSIGNED_BYTE,componentsPerAttribute:2},{functionName:"batchTable_getPickColor",componentDatatype:l.Z.UNSIGNED_BYTE,componentsPerAttribute:4,normalize:!0},{functionName:"batchTable_getCenterHigh",componentDatatype:l.Z.FLOAT,componentsPerAttribute:3},{functionName:"batchTable_getCenterLowAndRadius",componentDatatype:l.Z.FLOAT,componentsPerAttribute:4},{functionName:"batchTable_getDistanceDisplayCondition",componentDatatype:l.Z.FLOAT,componentsPerAttribute:2}];e._batchTable=new L.Z(t,i,e._polylines.length)}(this,t),this._createBatchTable=!1}if(this._createVertexArray||function(e){let t=!1;const i=e._propertiesChanged,n=e._positionBufferUsage;return i[H]?n.bufferUsage!==T.Z.STREAM_DRAW?(t=!0,n.bufferUsage=T.Z.STREAM_DRAW,n.frameCount=100):n.frameCount=100:n.bufferUsage!==T.Z.STATIC_DRAW&&(0===n.frameCount?(t=!0,n.bufferUsage=T.Z.STATIC_DRAW):n.frameCount--),t}(this))ie(this,t,i);else if(this._polylinesUpdated){const n=this._polylinesToUpdate;if(this._mode!==U.Z.SCENE3D){const e=n.length;for(let t=0;t<e;++t)o=n[t],o.update()}if(a[q]||a[G])ie(this,t,i);else{const t=n.length,c=this._polylineBuckets;for(let u=0;u<t;++u){o=n[u],a=o._propertiesChanged;const t=o._bucket;let l=0;for(const e in c)if(c.hasOwnProperty(e)){if(c[e]===t){a[H]&&t.writeUpdate(l,o,this._positionBuffer,i);break}l+=c[e].lengthOfPositions}if((a[V]||a[z])&&this._batchTable.setBatchedAttribute(o._index,0,new r.Z(o._width,o._show)),this._batchTable.attributes.length>2){if(a[H]||a[q]){const t=e.mode===U.Z.SCENE2D?o._boundingVolume2D:o._boundingVolumeWC,i=m.Z.fromCartesian(t.center,X),n=s.Z.fromElements(i.low.x,i.low.y,i.low.z,t.radius,J);this._batchTable.setBatchedAttribute(o._index,2,i.high),this._batchTable.setBatchedAttribute(o._index,3,n)}if(a[j]){const e=Q;e.x=0,e.y=Number.MAX_VALUE;const t=o.distanceDisplayCondition;(0,d.Z)(t)&&(e.x=t.near,e.y=t.far),this._batchTable.setBatchedAttribute(o._index,4,e)}}o._clean()}}n.length=0,this._polylinesUpdated=!1}a=this._propertiesChanged;for(let e=0;e<W;++e)a[e]=0;let c=b.Z.IDENTITY;e.mode===U.Z.SCENE3D&&(c=this.modelMatrix);const h=e.passes,f=0!==e.morphTime;(0,d.Z)(this._opaqueRS)&&this._opaqueRS.depthTest.enabled===f||(this._opaqueRS=S.Z.fromCache({depthMask:f,depthTest:{enabled:f}})),(0,d.Z)(this._translucentRS)&&this._translucentRS.depthTest.enabled===f||(this._translucentRS=S.Z.fromCache({blending:N.Z.ALPHA_BLEND,depthMask:!f,depthTest:{enabled:f}})),this._batchTable.update(e),(h.render||h.pick)&&function(e,t,i,r){const o=t.context,s=t.commandList,a=i.length;let c=0,l=!0;const h=e._vertexArrays,f=e.debugShowBoundingVolume,p=e._batchTable.getUniformMapCallback(),m=h.length;for(let _=0;_<m;++_){const m=h[_],Z=m.buckets,g=Z.length;for(let h=0;h<g;++h){const _=Z[h];let g=_.offset;const y=_.bucket.shaderProgram,b=_.bucket.polylines,A=b.length;let w,v,T,C,S=0;for(let h=0;h<A;++h){const Z=b[h],A=oe(Z._material);if(A!==w){if((0,d.Z)(w)&&S>0){const t=v.isTranslucent();c>=a?(T=new E.Z({owner:e}),i.push(T)):T=i[c],++c,C=(0,u.Z)(p(v._uniforms),e._uniformMap),T.boundingVolume=n.Z.clone($,T.boundingVolume),T.modelMatrix=r,T.shaderProgram=y,T.vertexArray=m.va,T.renderState=t?e._translucentRS:e._opaqueRS,T.pass=t?x.Z.TRANSLUCENT:x.Z.OPAQUE,T.debugShowBoundingVolume=f,T.pickId="v_pickColor",T.uniformMap=C,T.count=S,T.offset=g,g+=S,S=0,l=!0,s.push(T)}v=Z._material,v.update(o),w=A}const O=Z._locatorBuckets,I=O.length;for(let e=0;e<I;++e){const t=O[e];t.locator===_&&(S+=t.count)}let D;t.mode===U.Z.SCENE3D?D=Z._boundingVolumeWC:t.mode===U.Z.COLUMBUS_VIEW?D=Z._boundingVolume2D:t.mode===U.Z.SCENE2D?(0,d.Z)(Z._boundingVolume2D)&&(D=n.Z.clone(Z._boundingVolume2D,ee),D.center.x=0):(0,d.Z)(Z._boundingVolumeWC)&&(0,d.Z)(Z._boundingVolume2D)&&(D=n.Z.union(Z._boundingVolumeWC,Z._boundingVolume2D,ee)),l?(l=!1,n.Z.clone(D,$)):n.Z.union(D,$,$)}(0,d.Z)(w)&&S>0&&(c>=a?(T=new E.Z({owner:e}),i.push(T)):T=i[c],++c,C=(0,u.Z)(p(v._uniforms),e._uniformMap),T.boundingVolume=n.Z.clone($,T.boundingVolume),T.modelMatrix=r,T.shaderProgram=y,T.vertexArray=m.va,T.renderState=v.isTranslucent()?e._translucentRS:e._opaqueRS,T.pass=v.isTranslucent()?x.Z.TRANSLUCENT:x.Z.OPAQUE,T.debugShowBoundingVolume=f,T.pickId="v_pickColor",T.uniformMap=C,T.count=S,T.offset=g,l=!0,s.push(T)),w=void 0}}i.length=c}(this,e,this._colorCommands,c)};const $=new n.Z,ee=new n.Z;Y.prototype.isDestroyed=function(){return!1},Y.prototype.destroy=function(){return ce(this),ae(this),ue(this),this._batchTable=this._batchTable&&this._batchTable.destroy(),(0,f.Z)(this)};const te=[0,0,0];function ie(e,t,i){e._createVertexArray=!1,ae(e),ce(e),function(e){const t=e._mode,i=e._modelMatrix,n=e._polylineBuckets={},r=e._polylines,o=r.length;for(let e=0;e<o;++e){const o=r[e];if(o._actualPositions.length>1){o.update();const e=o.material;let r=n[e.type];(0,d.Z)(r)||(r=n[e.type]=new he(e,t,i)),r.addPolyline(o)}}}(e);const n=[[]];let r=n[0];const o=e._batchTable,s=e._useHighlightColor,a=[0];let c=0;const u=[[]];let h=0;const f=e._polylineBuckets;let p,m;for(p in f)f.hasOwnProperty(p)&&(m=f[p],m.updateShader(t,o,s),h+=m.lengthOfPositions);if(h>0){const s=e._mode,_=new Float32Array(6*h*3),g=new Float32Array(4*h);let b,A=0,w=0,C=0;for(p in f)if(f.hasOwnProperty(p)){m=f[p],m.write(_,g,A,w,C,o,t,i),s===U.Z.MORPHING&&((0,d.Z)(b)||(b=new Float32Array(6*h*3)),m.writeForMorph(b,A));const e=m.lengthOfPositions;A+=6*e*3,w+=4*e,C+=4*e,c=m.updateIndices(n,a,u,c)}const E=e._positionBufferUsage.bufferUsage,x=T.Z.STATIC_DRAW;let S;e._positionBuffer=v.Z.createVertexBuffer({context:t,typedArray:_,usage:E}),(0,d.Z)(b)&&(S=v.Z.createVertexBuffer({context:t,typedArray:b,usage:E})),e._texCoordExpandAndBatchIndexBuffer=v.Z.createVertexBuffer({context:t,typedArray:g,usage:x});const O=3*Float32Array.BYTES_PER_ELEMENT,I=4*Float32Array.BYTES_PER_ELEMENT;let D=0;const R=n.length;for(let i=0;i<R;++i)if(r=n[i],r.length>0){const n=new Uint16Array(r),o=v.Z.createIndexBuffer({context:t,typedArray:n,usage:T.Z.STATIC_DRAW,indexDatatype:Z.Z.UNSIGNED_SHORT});D+=a[i];const c=6*(i*(O*y.Z.SIXTY_FOUR_KILOBYTES)-D*O),h=O+c,d=O+h,f=O+d,p=O+f,m=O+p,_=i*(I*y.Z.SIXTY_FOUR_KILOBYTES)-D*I,g=[{index:K.position3DHigh,componentsPerAttribute:3,componentDatatype:l.Z.FLOAT,offsetInBytes:c,strideInBytes:6*O},{index:K.position3DLow,componentsPerAttribute:3,componentDatatype:l.Z.FLOAT,offsetInBytes:h,strideInBytes:6*O},{index:K.position2DHigh,componentsPerAttribute:3,componentDatatype:l.Z.FLOAT,offsetInBytes:c,strideInBytes:6*O},{index:K.position2DLow,componentsPerAttribute:3,componentDatatype:l.Z.FLOAT,offsetInBytes:h,strideInBytes:6*O},{index:K.prevPosition3DHigh,componentsPerAttribute:3,componentDatatype:l.Z.FLOAT,offsetInBytes:d,strideInBytes:6*O},{index:K.prevPosition3DLow,componentsPerAttribute:3,componentDatatype:l.Z.FLOAT,offsetInBytes:f,strideInBytes:6*O},{index:K.prevPosition2DHigh,componentsPerAttribute:3,componentDatatype:l.Z.FLOAT,offsetInBytes:d,strideInBytes:6*O},{index:K.prevPosition2DLow,componentsPerAttribute:3,componentDatatype:l.Z.FLOAT,offsetInBytes:f,strideInBytes:6*O},{index:K.nextPosition3DHigh,componentsPerAttribute:3,componentDatatype:l.Z.FLOAT,offsetInBytes:p,strideInBytes:6*O},{index:K.nextPosition3DLow,componentsPerAttribute:3,componentDatatype:l.Z.FLOAT,offsetInBytes:m,strideInBytes:6*O},{index:K.nextPosition2DHigh,componentsPerAttribute:3,componentDatatype:l.Z.FLOAT,offsetInBytes:p,strideInBytes:6*O},{index:K.nextPosition2DLow,componentsPerAttribute:3,componentDatatype:l.Z.FLOAT,offsetInBytes:m,strideInBytes:6*O},{index:K.texCoordExpandAndBatchIndex,componentsPerAttribute:4,componentDatatype:l.Z.FLOAT,vertexBuffer:e._texCoordExpandAndBatchIndexBuffer,offsetInBytes:_}];let b,A,w,C;s===U.Z.SCENE3D?(A=e._positionBuffer,b="vertexBuffer",w=te,C="value"):s===U.Z.SCENE2D||s===U.Z.COLUMBUS_VIEW?(A=te,b="value",w=e._positionBuffer,C="vertexBuffer"):(A=S,b="vertexBuffer",w=e._positionBuffer,C="vertexBuffer"),g[0][b]=A,g[1][b]=A,g[2][C]=w,g[3][C]=w,g[4][b]=A,g[5][b]=A,g[6][C]=w,g[7][C]=w,g[8][b]=A,g[9][b]=A,g[10][C]=w,g[11][C]=w;const E=new P.Z({context:t,attributes:g,indexBuffer:o});e._vertexArrays.push({va:E,buckets:u[i]})}}}function ne(e,t){return t instanceof D.Z?t.id:t}const re=[];function oe(e){const t=F.Z._uniformList[e.type],i=t.length;re.length=2*i;let n=0;for(let r=0;r<i;++r){const i=t[r];re[n]=i,re[n+1]=e._uniforms[i](),n+=2}return e.type+":"+JSON.stringify(re,ne)}function se(e){if(e._polylinesRemoved){e._polylinesRemoved=!1;const t=[],i=[];let n,r=0;const o=e._polylines.length;for(let s=0;s<o;++s)n=e._polylines[s],n.isDestroyed||(n._index=r++,i.push(n),t.push(n));e._polylines=t,e._polylinesToUpdate=i}}function ae(e){const t=e._polylines,i=t.length;for(let e=0;e<i;++e)if(!t[e].isDestroyed){const i=t[e]._bucket;(0,d.Z)(i)&&(i.shaderProgram=i.shaderProgram&&i.shaderProgram.destroy())}}function ce(e){const t=e._vertexArrays.length;for(let i=0;i<t;++i)e._vertexArrays[i].va.destroy();e._vertexArrays.length=0}function ue(e){const t=e._polylines,i=t.length;for(let e=0;e<i;++e)t[e].isDestroyed||t[e]._destroy()}function le(e,t,i){this.count=e,this.offset=t,this.bucket=i}function he(e,t,i){this.polylines=[],this.lengthOfPositions=0,this.material=e,this.shaderProgram=void 0,this.mode=t,this.modelMatrix=i}function de(e){return o.Z.dot(o.Z.UNIT_X,e._boundingVolume.center)<0||e._boundingVolume.intersectPlane(A.Z.ORIGIN_ZX_PLANE)===g.Z.INTERSECTING}Y.prototype._updatePolyline=function(e,t){this._polylinesUpdated=!0,e._dirty||this._polylinesToUpdate.push(e),++this._propertiesChanged[t]},he.prototype.addPolyline=function(e){this.polylines.push(e),e._actualLength=this.getPolylinePositionsLength(e),this.lengthOfPositions+=e._actualLength,e._bucket=this},he.prototype.updateShader=function(e,t,i){if((0,d.Z)(this.shaderProgram))return;const n=["DISTANCE_DISPLAY_CONDITION"];i&&n.push("VECTOR_TILE"),-1!==this.material.shaderSource.search(/varying\s+float\s+v_polylineAngle;/g)&&n.push("POLYLINE_DASH"),_.Z.isInternetExplorer()||n.push("CLIP_POLYLINE");const r=new I.Z({defines:n,sources:["varying vec4 v_pickColor;\n",this.material.shaderSource,B.Z]}),o=t.getVertexShaderCallback()(M.Z),s=new I.Z({defines:n,sources:[R.Z,o]});this.shaderProgram=O.Z.fromCache({context:e,vertexShaderSource:s,fragmentShaderSource:r,attributeLocations:K})},he.prototype.getPolylinePositionsLength=function(e){let t;if(this.mode===U.Z.SCENE3D||!de(e))return t=e._actualPositions.length,4*t-4;let i=0;const n=e._segments.lengths;t=n.length;for(let e=0;e<t;++e)i+=4*n[e]-4;return i};const fe=new o.Z,pe=new o.Z,me=new o.Z,_e=new o.Z,Ze=new s.Z,ge=new r.Z;he.prototype.write=function(e,t,i,n,r,a,u,l){const h=this.mode,f=l.ellipsoid.maximumRadius*y.Z.PI,p=this.polylines,_=p.length;for(let n=0;n<_;++n){const _=p[n],Z=_.width,g=_.show&&Z>0,y=_._index,b=this.getSegments(_,l),A=b.positions,w=b.lengths,v=A.length,T=_.getPickId(u).color;let C,E=0,x=0;for(let n=0;n<v;++n){0===n?_._loop?C=A[v-2]:(C=_e,o.Z.subtract(A[0],A[1],C),o.Z.add(A[0],C,C)):C=A[n-1],o.Z.clone(C,pe),o.Z.clone(A[n],fe),n===v-1?_._loop?C=A[1]:(C=_e,o.Z.subtract(A[v-1],A[v-2],C),o.Z.add(A[v-1],C,C)):C=A[n+1],o.Z.clone(C,me);const s=w[E];n===x+s&&(x+=s,++E);const a=n-x==0,c=n===x+w[E]-1;h===U.Z.SCENE2D&&(pe.z=0,fe.z=0,me.z=0),h!==U.Z.SCENE2D&&h!==U.Z.MORPHING||(a||c)&&f-Math.abs(fe.x)<1&&((fe.x<0&&pe.x>0||fe.x>0&&pe.x<0)&&o.Z.clone(fe,pe),(fe.x<0&&me.x>0||fe.x>0&&me.x<0)&&o.Z.clone(fe,me));const u=c?2:4;for(let o=a?2:0;o<u;++o){m.Z.writeElements(fe,e,i),m.Z.writeElements(pe,e,i+6),m.Z.writeElements(me,e,i+12);const s=o-2<0?-1:1;t[r]=n/(v-1),t[r+1]=o%2*2-1,t[r+2]=s,t[r+3]=y,i+=18,r+=4}}const S=Ze;S.x=c.Z.floatToByte(T.red),S.y=c.Z.floatToByte(T.green),S.z=c.Z.floatToByte(T.blue),S.w=c.Z.floatToByte(T.alpha);const O=ge;O.x=Z,O.y=g?1:0;const I=h===U.Z.SCENE2D?_._boundingVolume2D:_._boundingVolumeWC,D=m.Z.fromCartesian(I.center,X),P=D.high,R=s.Z.fromElements(D.low.x,D.low.y,D.low.z,I.radius,J),B=Q;B.x=0,B.y=Number.MAX_VALUE;const M=_.distanceDisplayCondition;(0,d.Z)(M)&&(B.x=M.near,B.y=M.far),a.setBatchedAttribute(y,0,O),a.setBatchedAttribute(y,1,S),a.attributes.length>2&&(a.setBatchedAttribute(y,2,P),a.setBatchedAttribute(y,3,R),a.setBatchedAttribute(y,4,B))}};const ye=new o.Z,be=new o.Z,Ae=new o.Z,we=new o.Z;he.prototype.writeForMorph=function(e,t){const i=this.modelMatrix,n=this.polylines,r=n.length;for(let s=0;s<r;++s){const r=n[s],a=r._segments.positions,c=r._segments.lengths,u=a.length;let l=0,h=0;for(let n=0;n<u;++n){let s;0===n?r._loop?s=a[u-2]:(s=we,o.Z.subtract(a[0],a[1],s),o.Z.add(a[0],s,s)):s=a[n-1],s=b.Z.multiplyByPoint(i,s,be);const d=b.Z.multiplyByPoint(i,a[n],ye);let f;n===u-1?r._loop?f=a[1]:(f=we,o.Z.subtract(a[u-1],a[u-2],f),o.Z.add(a[u-1],f,f)):f=a[n+1],f=b.Z.multiplyByPoint(i,f,Ae);const p=c[l];n===h+p&&(h+=p,++l);const _=n-h==0,Z=n===h+c[l]-1?2:4;for(let i=_?2:0;i<Z;++i)m.Z.writeElements(d,e,t),m.Z.writeElements(s,e,t+6),m.Z.writeElements(f,e,t+12),t+=18}}};const ve=new Array(1);he.prototype.updateIndices=function(e,t,i,n){let r=i.length-1,o=new le(0,n,this);i[r].push(o);let s=0,a=e[e.length-1],c=0;a.length>0&&(c=a[a.length-1]+1);const u=this.polylines,l=u.length;for(let h=0;h<l;++h){const l=u[h];let d;if(l._locatorBuckets=[],this.mode===U.Z.SCENE3D){d=ve;const e=l._actualPositions.length;if(!(e>0))continue;d[0]=e}else d=l._segments.lengths;const f=d.length;if(f>0){let u=0;for(let h=0;h<f;++h){const f=d[h]-1;for(let h=0;h<f;++h)c+4>y.Z.SIXTY_FOUR_KILOBYTES&&(l._locatorBuckets.push({locator:o,count:u}),u=0,t.push(4),a=[],e.push(a),c=0,o.count=s,s=0,n=0,o=new le(0,0,this),i[++r]=[o]),a.push(c,c+2,c+1),a.push(c+1,c+2,c+3),u+=6,s+=6,n+=6,c+=4}l._locatorBuckets.push({locator:o,count:u}),c+4>y.Z.SIXTY_FOUR_KILOBYTES&&(t.push(0),a=[],e.push(a),c=0,o.count=s,n=0,s=0,o=new le(0,0,this),i[++r]=[o])}l._clean()}return o.count=s,n},he.prototype.getPolylineStartIndex=function(e){const t=this.polylines;let i=0;const n=t.length;for(let r=0;r<n;++r){const n=t[r];if(n===e)break;i+=n._actualLength}return i};const Te={positions:void 0,lengths:void 0},Ce=new Array(1),Ee=new o.Z,xe=new a.Z;let Se;he.prototype.getSegments=function(e,t){let i=e._actualPositions;if(this.mode===U.Z.SCENE3D)return Ce[0]=i.length,Te.positions=i,Te.lengths=Ce,Te;de(e)&&(i=e._segments.positions);const r=t.ellipsoid,s=[],a=this.modelMatrix,c=i.length;let u,l=Ee;for(let e=0;e<c;++e)u=i[e],l=b.Z.multiplyByPoint(a,u,l),s.push(t.project(r.cartesianToCartographic(l,xe)));if(s.length>0){e._boundingVolume2D=n.Z.fromPoints(s,e._boundingVolume2D);const t=e._boundingVolume2D.center;e._boundingVolume2D.center=new o.Z(t.z,t.x,t.y)}return Te.positions=s,Te.lengths=e._segments.lengths,Te},he.prototype.writeUpdate=function(e,t,i,n){const r=this.mode,s=n.ellipsoid.maximumRadius*y.Z.PI;let a=t._actualLength;if(a){e+=this.getPolylineStartIndex(t);let c=Se;const u=6*a*3;!(0,d.Z)(c)||c.length<u?c=Se=new Float32Array(u):c.length>u&&(c=new Float32Array(c.buffer,0,u));const l=this.getSegments(t,n),h=l.positions,f=l.lengths;let p,_=0,Z=0,g=0;a=h.length;for(let e=0;e<a;++e){0===e?t._loop?p=h[a-2]:(p=_e,o.Z.subtract(h[0],h[1],p),o.Z.add(h[0],p,p)):p=h[e-1],o.Z.clone(p,pe),o.Z.clone(h[e],fe),e===a-1?t._loop?p=h[1]:(p=_e,o.Z.subtract(h[a-1],h[a-2],p),o.Z.add(h[a-1],p,p)):p=h[e+1],o.Z.clone(p,me);const i=f[Z];e===g+i&&(g+=i,++Z);const n=e-g==0,u=e===g+f[Z]-1;r===U.Z.SCENE2D&&(pe.z=0,fe.z=0,me.z=0),r!==U.Z.SCENE2D&&r!==U.Z.MORPHING||(n||u)&&s-Math.abs(fe.x)<1&&((fe.x<0&&pe.x>0||fe.x>0&&pe.x<0)&&o.Z.clone(fe,pe),(fe.x<0&&me.x>0||fe.x>0&&me.x<0)&&o.Z.clone(fe,me));const l=u?2:4;for(let e=n?2:0;e<l;++e)m.Z.writeElements(fe,c,_),m.Z.writeElements(pe,c,_+6),m.Z.writeElements(me,c,_+12),_+=18}i.copyFromArrayView(c,18*Float32Array.BYTES_PER_ELEMENT*e)}};const Oe=Y},843658:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});var n=i(406144),r=i(488802),o=i(172674),s=i(116119),a=i(36775),c=i(648298),u=i(23851);let l=c.Z+"\n"+a.Z;const h=s.Z;function d(e){e=(0,n.Z)(e,n.Z.EMPTY_OBJECT);const t=(0,n.Z)(e.translucent,!0),i=d.VERTEX_FORMAT;this.material=void 0,this.translucent=t,this._vertexShaderSource=(0,n.Z)(e.vertexShaderSource,l),this._fragmentShaderSource=(0,n.Z)(e.fragmentShaderSource,h),this._renderState=u.Z.getDefaultRenderState(t,!1,e.renderState),this._closed=!1,this._vertexFormat=i}r.Z.isInternetExplorer()||(l="#define CLIP_POLYLINE \n"+l),Object.defineProperties(d.prototype,{vertexShaderSource:{get:function(){return this._vertexShaderSource}},fragmentShaderSource:{get:function(){return this._fragmentShaderSource}},renderState:{get:function(){return this._renderState}},closed:{get:function(){return this._closed}},vertexFormat:{get:function(){return this._vertexFormat}}}),d.VERTEX_FORMAT=o.Z.POSITION_ONLY,d.prototype.getFragmentShaderSource=u.Z.prototype.getFragmentShaderSource,d.prototype.isTranslucent=u.Z.prototype.isTranslucent,d.prototype.getRenderState=u.Z.prototype.getRenderState;const f=d},957049:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});var n=i(406144),r=i(426468),o=i(488802),s=i(172674),a=i(641537),c=i(648298),u=i(782223),l=i(23851),h=i(172795);let d=c.Z+"\n"+a.Z;const f=u.Z;function p(e){e=(0,n.Z)(e,n.Z.EMPTY_OBJECT);const t=(0,n.Z)(e.translucent,!0),i=p.VERTEX_FORMAT;this.material=(0,r.Z)(e.material)?e.material:h.Z.fromType(h.Z.ColorType),this.translucent=t,this._vertexShaderSource=(0,n.Z)(e.vertexShaderSource,d),this._fragmentShaderSource=(0,n.Z)(e.fragmentShaderSource,f),this._renderState=l.Z.getDefaultRenderState(t,!1,e.renderState),this._closed=!1,this._vertexFormat=i}o.Z.isInternetExplorer()||(d="#define CLIP_POLYLINE \n"+d),Object.defineProperties(p.prototype,{vertexShaderSource:{get:function(){let e=this._vertexShaderSource;return-1!==this.material.shaderSource.search(/varying\s+float\s+v_polylineAngle;/g)&&(e="#define POLYLINE_DASH\n"+e),e}},fragmentShaderSource:{get:function(){return this._fragmentShaderSource}},renderState:{get:function(){return this._renderState}},closed:{get:function(){return this._closed}},vertexFormat:{get:function(){return this._vertexFormat}}}),p.VERTEX_FORMAT=s.Z.POSITION_AND_ST,p.prototype.getFragmentShaderSource=l.Z.prototype.getFragmentShaderSource,p.prototype.isTranslucent=l.Z.prototype.isTranslucent,p.prototype.getRenderState=l.Z.prototype.getRenderState;const m=p},868e3:(e,t,i)=>{"use strict";i.d(t,{Z:()=>R});var n=i(152124),r=i(357299),o=i(545125),s=i(307260),a=i(416974),c=i(406144),u=i(426468),l=i(54879),h=i(446938),d=i(100883),f=i(795788),p=i(823989),m=i(687931),_=i(364232),Z=i(270013),g=i(279427),y=i(283044),b=i(59102),A=i(636664),w=i(655499),v=i(527758),T=i(804919);function C(e){const t=(e=(0,c.Z)(e,c.Z.EMPTY_OBJECT)).fragmentShader,i=(0,c.Z)(e.textureScale,1),s=(0,c.Z)(e.pixelFormat,d.Z.RGBA);if(r.Z.typeOf.string("options.fragmentShader",t),r.Z.typeOf.number.greaterThan("options.textureScale",i,0),r.Z.typeOf.number.lessThanOrEquals("options.textureScale",i,1),!d.Z.isColorFormat(s))throw new h.Z("options.pixelFormat must be a color format.");this._fragmentShader=t,this._uniforms=e.uniforms,this._textureScale=i,this._forcePowerOfTwo=(0,c.Z)(e.forcePowerOfTwo,!1),this._sampleMode=(0,c.Z)(e.sampleMode,T.Z.NEAREST),this._pixelFormat=s,this._pixelDatatype=(0,c.Z)(e.pixelDatatype,m.Z.UNSIGNED_BYTE),this._clearColor=(0,c.Z)(e.clearColor,o.Z.BLACK),this._uniformMap=void 0,this._command=void 0,this._colorTexture=void 0,this._depthTexture=void 0,this._idTexture=void 0,this._actualUniforms={},this._dirtyUniforms=[],this._texturesToRelease=[],this._texturesToCreate=[],this._texturePromise=void 0;const l=new p.Z;l.scissorTest={enabled:!0,rectangle:(0,u.Z)(e.scissorRectangle)?n.Z.clone(e.scissorRectangle):new n.Z},this._passState=l,this._ready=!1;let f=e.name;(0,u.Z)(f)||(f=(0,a.Z)()),this._name=f,this._logDepthChanged=void 0,this._useLogDepth=void 0,this._selectedIdTexture=void 0,this._selected=void 0,this._selectedShadow=void 0,this._parentSelected=void 0,this._parentSelectedShadow=void 0,this._combinedSelected=void 0,this._combinedSelectedShadow=void 0,this._selectedLength=0,this._parentSelectedLength=0,this._selectedDirty=!0,this._textureCache=void 0,this._index=void 0,this.enabled=!0,this._enabled=!0}Object.defineProperties(C.prototype,{ready:{get:function(){return this._ready}},name:{get:function(){return this._name}},fragmentShader:{get:function(){return this._fragmentShader}},uniforms:{get:function(){return this._uniforms}},textureScale:{get:function(){return this._textureScale}},forcePowerOfTwo:{get:function(){return this._forcePowerOfTwo}},sampleMode:{get:function(){return this._sampleMode}},pixelFormat:{get:function(){return this._pixelFormat}},pixelDatatype:{get:function(){return this._pixelDatatype}},clearColor:{get:function(){return this._clearColor}},scissorRectangle:{get:function(){return this._passState.scissorTest.rectangle}},outputTexture:{get:function(){if((0,u.Z)(this._textureCache)){const e=this._textureCache.getFramebuffer(this._name);if((0,u.Z)(e))return e.getColorTexture(0)}}},selected:{get:function(){return this._selected},set:function(e){this._selected=e}},parentSelected:{get:function(){return this._parentSelected},set:function(e){this._parentSelected=e}}});const E=/uniform\s+sampler2D\s+depthTexture/g;function x(e,t,i){const n=t[i];return("string"==typeof n||n instanceof HTMLCanvasElement||n instanceof HTMLImageElement||n instanceof HTMLVideoElement||n instanceof ImageData)&&e._dirtyUniforms.push(i),{get:function(){return t[i]},set:function(n){const r=t[i];t[i]=n;const o=e._actualUniforms,s=o[i];(0,u.Z)(s)&&s!==r&&s instanceof y.Z&&!(0,u.Z)(e._textureCache.getStageByName(i))&&(e._texturesToRelease.push(s),delete o[i],delete o[i+"Dimensions"]),r instanceof y.Z&&e._texturesToRelease.push(r),"string"==typeof n||n instanceof HTMLCanvasElement||n instanceof HTMLImageElement||n instanceof HTMLVideoElement||n instanceof ImageData?e._dirtyUniforms.push(i):o[i]=n}}}function S(e,t){return function(){const i=e._actualUniforms[t];return"function"==typeof i?i():i}}function O(e,t){return function(){const i=e[t]();if((0,u.Z)(i))return i.dimensions}}function I(e,t){return function(i){e._texturesToCreate.push({name:t,source:i})}}function D(e,t){return function(){return e._textureCache.getOutputTexture(t)}}function P(e){(0,u.Z)(e._command)&&(e._command.shaderProgram=e._command.shaderProgram&&e._command.shaderProgram.destroy(),e._command=void 0),e._selectedIdTexture=e._selectedIdTexture&&e._selectedIdTexture.destroy();const t=e._textureCache;if(!(0,u.Z)(t))return;const i=e._uniforms,n=e._actualUniforms;for(const r in n)n.hasOwnProperty(r)&&n[r]instanceof y.Z&&((0,u.Z)(t.getStageByName(i[r]))||n[r].destroy(),e._dirtyUniforms.push(r))}C.prototype._isSupported=function(e){return!E.test(this._fragmentShader)||e.depthTexture},C.prototype.update=function(e,t){if(this.enabled===this._enabled||this.enabled||P(this),this._enabled=this.enabled,!this._enabled)return;if(this._logDepthChanged=t!==this._useLogDepth,this._useLogDepth=t,this._selectedDirty=function(e){let t=(0,u.Z)(e._selected)?e._selected.length:0;const i=(0,u.Z)(e._parentSelected)?e._parentSelected:0;let n=e._selected!==e._selectedShadow||t!==e._selectedLength;if(n=n||e._parentSelected!==e._parentSelectedShadow||i!==e._parentSelectedLength,(0,u.Z)(e._selected)&&(0,u.Z)(e._parentSelected)?e._combinedSelected=e._selected.concat(e._parentSelected):(0,u.Z)(e._parentSelected)?e._combinedSelected=e._parentSelected:e._combinedSelected=e._selected,!n&&(0,u.Z)(e._combinedSelected)){if(!(0,u.Z)(e._combinedSelectedShadow))return!0;t=e._combinedSelected.length;for(let i=0;i<t;++i)if(e._combinedSelected[i]!==e._combinedSelectedShadow[i])return!0}return n}(this),this._selectedShadow=this._selected,this._parentSelectedShadow=this._parentSelected,this._combinedSelectedShadow=this._combinedSelected,this._selectedLength=(0,u.Z)(this._selected)?this._selected.length:0,this._parentSelectedLength=(0,u.Z)(this._parentSelected)?this._parentSelected.length:0,function(e,t){if(!e._selectedDirty)return;e._selectedIdTexture=e._selectedIdTexture&&e._selectedIdTexture.destroy(),e._selectedIdTexture=void 0;const i=e._combinedSelected;if(!(0,u.Z)(i))return;let n,r,s=0;const a=i.length;for(n=0;n<a;++n)r=i[n],(0,u.Z)(r.pickIds)?s+=r.pickIds.length:(0,u.Z)(r.pickId)&&++s;if(0===a||0===s){const i=new Uint8Array(4);return i[0]=255,i[1]=255,i[2]=255,i[3]=255,void(e._selectedIdTexture=new y.Z({context:t,pixelFormat:d.Z.RGBA,pixelDatatype:m.Z.UNSIGNED_BYTE,source:{arrayBufferView:i,width:1,height:1},sampler:Z.Z.NEAREST}))}let c,l=0;const h=new Uint8Array(4*s);for(n=0;n<a;++n)if(r=i[n],(0,u.Z)(r.pickIds)){const e=r.pickIds,t=e.length;for(let i=0;i<t;++i)c=e[i].color,h[l]=o.Z.floatToByte(c.red),h[l+1]=o.Z.floatToByte(c.green),h[l+2]=o.Z.floatToByte(c.blue),h[l+3]=o.Z.floatToByte(c.alpha),l+=4}else(0,u.Z)(r.pickId)&&(c=r.pickId.color,h[l]=o.Z.floatToByte(c.red),h[l+1]=o.Z.floatToByte(c.green),h[l+2]=o.Z.floatToByte(c.blue),h[l+3]=o.Z.floatToByte(c.alpha),l+=4);e._selectedIdTexture=new y.Z({context:t,pixelFormat:d.Z.RGBA,pixelDatatype:m.Z.UNSIGNED_BYTE,source:{arrayBufferView:h,width:s,height:1},sampler:Z.Z.NEAREST})}(this,e),function(e){if((0,u.Z)(e._uniformMap))return;const t={},i={},n=e._uniforms,r=e._actualUniforms;for(const o in n)if(n.hasOwnProperty(o)){"function"!=typeof n[o]?(t[o]=S(e,o),i[o]=x(e,n,o)):(t[o]=n[o],i[o]=n[o]),r[o]=n[o];const s=t[o]();("string"==typeof s||s instanceof y.Z||s instanceof HTMLImageElement||s instanceof HTMLCanvasElement||s instanceof HTMLVideoElement)&&(t[o+"Dimensions"]=O(t,o))}e._uniforms={},Object.defineProperties(e._uniforms,i),e._uniformMap=(0,s.Z)(t,{colorTexture:function(){return e._colorTexture},colorTextureDimensions:function(){return e._colorTexture.dimensions},depthTexture:function(){return e._depthTexture},depthTextureDimensions:function(){return e._depthTexture.dimensions},czm_idTexture:function(){return e._idTexture},czm_selectedIdTexture:function(){return e._selectedIdTexture},czm_selectedIdTextureStep:function(){return 1/e._selectedIdTexture.width}})}(this),function(e,t){let i,n,r;const o=e._texturesToRelease;let s=o.length;for(i=0;i<s;++i)n=o[i],n=n&&n.destroy();o.length=0;const a=e._texturesToCreate;for(s=a.length,i=0;i<s;++i){const n=a[i];r=n.name;const o=n.source;e._actualUniforms[r]=new y.Z({context:t,source:o})}a.length=0;const c=e._dirtyUniforms;if(0===c.length&&!(0,u.Z)(e._texturePromise))return void(e._ready=!0);if(0===c.length||(0,u.Z)(e._texturePromise))return;s=c.length;const l=e._uniforms,h=[];for(i=0;i<s;++i){r=c[i];const t=l[r],n=e._textureCache.getStageByName(t);if((0,u.Z)(n))e._actualUniforms[r]=D(e,t);else if("string"==typeof t){const i=new f.Z({url:t});h.push(i.fetchImage().then(I(e,r)))}else e._texturesToCreate.push({name:r,source:t})}c.length=0,h.length>0?(e._ready=!1,e._texturePromise=v.Z.all(h).then((function(){e._ready=!0,e._texturePromise=void 0}))):e._ready=!0}(this,e),function(e,t){if((0,u.Z)(e._command)&&!e._logDepthChanged&&!e._selectedDirty)return;let i=e._fragmentShader;if((0,u.Z)(e._selectedIdTexture)){const t=e._selectedIdTexture.width;i=i.replace(/varying\s+vec2\s+v_textureCoordinates;/g,""),i="#define CZM_SELECTED_FEATURE \nuniform sampler2D czm_idTexture; \nuniform sampler2D czm_selectedIdTexture; \nuniform float czm_selectedIdTextureStep; \nvarying vec2 v_textureCoordinates; \nbool czm_selected(vec2 offset) \n{ \n bool selected = false;\n vec4 id = texture2D(czm_idTexture, v_textureCoordinates + offset); \n for (int i = 0; i < "+t+"; ++i) \n { \n vec4 selectedId = texture2D(czm_selectedIdTexture, vec2((float(i) + 0.5) * czm_selectedIdTextureStep, 0.5)); \n if (all(equal(id, selectedId))) \n { \n return true; \n } \n } \n return false; \n} \n\nbool czm_selected() \n{ \n return czm_selected(vec2(0.0)); \n} \n\n"+i}const n=new g.Z({defines:[e._useLogDepth?"LOG_DEPTH":""],sources:[i]});e._command=t.createViewportQuadCommand(n,{uniformMap:e._uniformMap,owner:e})}(this,e),function(e){let t,i;e._sampleMode===T.Z.LINEAR?(t=A.Z.LINEAR,i=b.Z.LINEAR):(t=A.Z.NEAREST,i=b.Z.NEAREST);const n=e._sampler;(0,u.Z)(n)&&n.minificationFilter===t&&n.magnificationFilter===i||(e._sampler=new Z.Z({wrapS:w.Z.CLAMP_TO_EDGE,wrapT:w.Z.CLAMP_TO_EDGE,minificationFilter:t,magnificationFilter:i}))}(this),this._selectedDirty=!1,!this._ready)return;const i=this._textureCache.getFramebuffer(this._name);if(this._command.framebuffer=i,!(0,u.Z)(i))return;const r=i.getColorTexture(0);let a;r.width===e.drawingBufferWidth&&r.height===e.drawingBufferHeight||(a=this._renderState,(0,u.Z)(a)&&r.width===a.viewport.width&&r.height===a.viewport.height||(this._renderState=_.Z.fromCache({viewport:new n.Z(0,0,r.width,r.height)}))),this._command.renderState=a},C.prototype.execute=function(e,t,i,n){if(!((0,u.Z)(this._command)&&(0,u.Z)(this._command.framebuffer)&&this._ready&&this._enabled))return;this._colorTexture=t,this._depthTexture=i,this._idTexture=n,Z.Z.equals(this._colorTexture.sampler,this._sampler)||(this._colorTexture.sampler=this._sampler);const r=this.scissorRectangle.width>0&&this.scissorRectangle.height>0?this._passState:void 0;(0,u.Z)(r)&&(r.context=e),this._command.execute(e,r)},C.prototype.isDestroyed=function(){return!1},C.prototype.destroy=function(){return P(this),(0,l.Z)(this)};const R=C},172366:(e,t,i)=>{"use strict";i.d(t,{Z:()=>T});var n=i(155597),r=i(357299),o=i(426468),s=i(54879),a=i(446938),c=i(100883),u=i(687931),l=i(270013),h=i(283044),d=i(59102),f=i(636664),p=i(655499),m=i(426301),_=i(209682),Z=i(743131),g=i(257698);const y=[];function b(){const e=_.Z.createFXAAStage(),t=_.Z.createAmbientOcclusionStage(),i=_.Z.createBloomStage();this._autoExposureEnabled=!1,this._autoExposure=_.Z.createAutoExposureStage(),this._tonemapping=void 0,this._tonemapper=void 0,this.tonemapper=g.Z.ACES;const n=this._tonemapping;e.enabled=!1,t.enabled=!1,i.enabled=!1,n.enabled=!1;const r=new Z.Z(this),s={},a=y;for(a.push(e,t,i,n);a.length>0;){const e=a.pop();s[e.name]=e,e._textureCache=r;const t=e.length;if((0,o.Z)(t))for(let i=0;i<t;++i)a.push(e.get(i))}this._stages=[],this._activeStages=[],this._previousActiveStages=[],this._randomTexture=void 0;const c=this;t.uniforms.randomTexture=function(){return c._randomTexture},this._ao=t,this._bloom=i,this._fxaa=e,this._aoEnabled=void 0,this._bloomEnabled=void 0,this._tonemappingEnabled=void 0,this._fxaaEnabled=void 0,this._activeStagesChanged=!1,this._stagesRemoved=!1,this._textureCacheDirty=!1,this._stageNames=s,this._textureCache=r}function A(e){if(!e._stagesRemoved)return;e._stagesRemoved=!1;const t=[],i=e._stages,n=i.length;for(let e=0,r=0;e<n;++e){const n=i[e];n&&(n._index=r++,t.push(n))}e._stages=t}function w(e){for(;(0,o.Z)(e.length);)e=e.get(e.length-1);return e.outputTexture}function v(e,t,i,n,r){if((0,o.Z)(e.execute))return void e.execute(t,i,n,r);const s=e.length;let a;if(e.inputPreviousStageTexture)for(v(e.get(0),t,i,n,r),a=1;a<s;++a)v(e.get(a),t,w(e.get(a-1)),n,r);else for(a=0;a<s;++a)v(e.get(a),t,i,n,r)}Object.defineProperties(b.prototype,{ready:{get:function(){let e=!1;const t=this._stages;for(let i=t.length-1;i>=0;--i){const n=t[i];e=e||n.ready&&n.enabled}const i=this._fxaa,n=this._ao,r=this._bloom,o=this._tonemapping;return e=e||i.ready&&i.enabled,e=e||n.ready&&n.enabled,e=e||r.ready&&r.enabled,e=e||o.ready&&o.enabled,e}},fxaa:{get:function(){return this._fxaa}},ambientOcclusion:{get:function(){return this._ao}},bloom:{get:function(){return this._bloom}},length:{get:function(){return A(this),this._stages.length}},outputTexture:{get:function(){const e=this._fxaa;if(e.enabled&&e.ready)return this.getOutputTexture(e.name);const t=this._stages;for(let e=t.length-1;e>=0;--e){const i=t[e];if((0,o.Z)(i)&&i.ready&&i.enabled)return this.getOutputTexture(i.name)}const i=this._tonemapping;if(i.enabled&&i.ready)return this.getOutputTexture(i.name);const n=this._bloom;if(n.enabled&&n.ready)return this.getOutputTexture(n.name);const r=this._ao;return r.enabled&&r.ready?this.getOutputTexture(r.name):void 0}},hasSelected:{get:function(){const e=(0,n.Z)(this._stages);for(;e.length>0;){const t=e.pop();if(!(0,o.Z)(t))continue;if((0,o.Z)(t.selected))return!0;const i=t.length;if((0,o.Z)(i))for(let n=0;n<i;++n)e.push(t.get(n))}return!1}},tonemapper:{get:function(){return this._tonemapper},set:function(e){if(this._tonemapper===e)return;if(!g.Z.validate(e))throw new a.Z("tonemapper was set to an invalid value.");(0,o.Z)(this._tonemapping)&&(delete this._stageNames[this._tonemapping.name],this._tonemapping.destroy());const t=this._autoExposureEnabled;let i;switch(e){case g.Z.REINHARD:i=_.Z.createReinhardTonemappingStage(t);break;case g.Z.MODIFIED_REINHARD:i=_.Z.createModifiedReinhardTonemappingStage(t);break;case g.Z.FILMIC:i=_.Z.createFilmicTonemappingStage(t);break;default:i=_.Z.createAcesTonemappingStage(t)}if(t){const e=this._autoExposure;i.uniforms.autoExposure=function(){return e.outputTexture}}this._tonemapper=e,this._tonemapping=i,(0,o.Z)(this._stageNames)&&(this._stageNames[i.name]=i,i._textureCache=this._textureCache),this._textureCacheDirty=!0}}}),b.prototype.add=function(e){r.Z.typeOf.object("stage",e);const t=this._stageNames,i=y;for(i.push(e);i.length>0;){const e=i.pop();if((0,o.Z)(t[e.name]))throw new a.Z(e.name+" has already been added to the collection or does not have a unique name.");t[e.name]=e,e._textureCache=this._textureCache;const n=e.length;if((0,o.Z)(n))for(let t=0;t<n;++t)i.push(e.get(t))}const n=this._stages;return e._index=n.length,n.push(e),this._textureCacheDirty=!0,e},b.prototype.remove=function(e){if(!this.contains(e))return!1;const t=this._stageNames,i=y;for(i.push(e);i.length>0;){const e=i.pop();delete t[e.name];const n=e.length;if((0,o.Z)(n))for(let t=0;t<n;++t)i.push(e.get(t))}return this._stages[e._index]=void 0,this._stagesRemoved=!0,this._textureCacheDirty=!0,e._index=void 0,e._textureCache=void 0,e.destroy(),!0},b.prototype.contains=function(e){return(0,o.Z)(e)&&(0,o.Z)(e._index)&&e._textureCache===this._textureCache},b.prototype.get=function(e){A(this);const t=this._stages,i=t.length;return r.Z.typeOf.number.greaterThanOrEquals("stages length",i,0),r.Z.typeOf.number.greaterThanOrEquals("index",e,0),r.Z.typeOf.number.lessThan("index",e,i),t[e]},b.prototype.removeAll=function(){const e=this._stages,t=e.length;for(let i=0;i<t;++i)this.remove(e[i]);e.length=0},b.prototype.getStageByName=function(e){return this._stageNames[e]},b.prototype.update=function(e,t,i){A(this);const n=this._activeStages,r=this._activeStages=this._previousActiveStages;this._previousActiveStages=n;const s=this._stages;let a,m,_=r.length=s.length,Z=0;for(a=0;a<_;++a)m=s[a],m.ready&&m.enabled&&m._isSupported(e)&&(r[Z++]=m);r.length=Z;let g=Z!==n.length;if(!g)for(a=0;a<Z;++a)if(r[a]!==n[a]){g=!0;break}const y=this._ao,b=this._bloom,w=this._autoExposure,v=this._tonemapping,T=this._fxaa;v.enabled=i;const C=y.enabled&&y._isSupported(e),E=b.enabled&&b._isSupported(e),x=v.enabled&&v._isSupported(e),S=T.enabled&&T._isSupported(e);if((g||this._textureCacheDirty||C!==this._aoEnabled||E!==this._bloomEnabled||x!==this._tonemappingEnabled||S!==this._fxaaEnabled)&&(this._textureCache.updateDependencies(),this._aoEnabled=C,this._bloomEnabled=E,this._tonemappingEnabled=x,this._fxaaEnabled=S,this._textureCacheDirty=!1),(0,o.Z)(this._randomTexture)&&!C&&(this._randomTexture.destroy(),this._randomTexture=void 0),!(0,o.Z)(this._randomTexture)&&C){_=196608;const t=new Uint8Array(_);for(a=0;a<_;a+=3)t[a]=Math.floor(255*Math.random());this._randomTexture=new h.Z({context:e,pixelFormat:c.Z.RGB,pixelDatatype:u.Z.UNSIGNED_BYTE,source:{arrayBufferView:t,width:256,height:256},sampler:new l.Z({wrapS:p.Z.REPEAT,wrapT:p.Z.REPEAT,minificationFilter:f.Z.NEAREST,magnificationFilter:d.Z.NEAREST})})}for(this._textureCache.update(e),T.update(e,t),y.update(e,t),b.update(e,t),v.update(e,t),this._autoExposureEnabled&&w.update(e,t),_=s.length,a=0;a<_;++a)s[a].update(e,t);for(Z=0,a=0;a<_;++a)m=s[a],m.ready&&m.enabled&&m._isSupported(e)&&Z++;g=Z!==r.length,g&&this.update(e,t,i)},b.prototype.clear=function(e){this._textureCache.clear(e),this._autoExposureEnabled&&this._autoExposure.clear(e)},b.prototype.getOutputTexture=function(e){const t=this.getStageByName(e);if((0,o.Z)(t))return w(t)},b.prototype.execute=function(e,t,i,n){const r=this._activeStages,o=r.length,s=this._fxaa,a=this._ao,c=this._bloom,u=this._autoExposure,l=this._tonemapping,h=a.enabled&&a._isSupported(e),d=c.enabled&&c._isSupported(e),f=this._autoExposureEnabled,p=l.enabled&&l._isSupported(e),m=s.enabled&&s._isSupported(e);if(!(m||h||d||p||0!==o))return;let _=t;h&&a.ready&&(v(a,e,_,i,n),_=w(a)),d&&c.ready&&(v(c,e,_,i,n),_=w(c)),f&&u.ready&&v(u,e,_,i,n),p&&l.ready&&(v(l,e,_,i,n),_=w(l));let Z=_;if(o>0){v(r[0],e,_,i,n);for(let t=1;t<o;++t)v(r[t],e,w(r[t-1]),i,n);Z=w(r[o-1])}m&&s.ready&&v(s,e,Z,i,n)},b.prototype.copy=function(e,t){if(!(0,o.Z)(this._copyColorCommand)){const t=this;this._copyColorCommand=e.createViewportQuadCommand(m.Z,{uniformMap:{colorTexture:function(){return t.outputTexture}},owner:this})}this._copyColorCommand.framebuffer=t,this._copyColorCommand.execute(e)},b.prototype.isDestroyed=function(){return!1},b.prototype.destroy=function(){return this._fxaa.destroy(),this._ao.destroy(),this._bloom.destroy(),this._autoExposure.destroy(),this._tonemapping.destroy(),this.removeAll(),this._textureCache=this._textureCache&&this._textureCache.destroy(),(0,s.Z)(this)};const T=b},41998:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(357299),r=i(416974),o=i(406144),s=i(426468),a=i(54879);function c(e){e=(0,o.Z)(e,o.Z.EMPTY_OBJECT),n.Z.defined("options.stages",e.stages),n.Z.typeOf.number.greaterThan("options.stages.length",e.stages.length,0),this._stages=e.stages,this._inputPreviousStageTexture=(0,o.Z)(e.inputPreviousStageTexture,!0);let t=e.name;(0,s.Z)(t)||(t=(0,r.Z)()),this._name=t,this._uniforms=e.uniforms,this._textureCache=void 0,this._index=void 0,this._selected=void 0,this._selectedShadow=void 0,this._parentSelected=void 0,this._parentSelectedShadow=void 0,this._combinedSelected=void 0,this._combinedSelectedShadow=void 0,this._selectedLength=0,this._parentSelectedLength=0,this._selectedDirty=!0}Object.defineProperties(c.prototype,{ready:{get:function(){const e=this._stages,t=e.length;for(let i=0;i<t;++i)if(!e[i].ready)return!1;return!0}},name:{get:function(){return this._name}},enabled:{get:function(){return this._stages[0].enabled},set:function(e){const t=this._stages,i=t.length;for(let n=0;n<i;++n)t[n].enabled=e}},uniforms:{get:function(){return this._uniforms}},inputPreviousStageTexture:{get:function(){return this._inputPreviousStageTexture}},length:{get:function(){return this._stages.length}},selected:{get:function(){return this._selected},set:function(e){this._selected=e}},parentSelected:{get:function(){return this._parentSelected},set:function(e){this._parentSelected=e}}}),c.prototype._isSupported=function(e){const t=this._stages,i=t.length;for(let n=0;n<i;++n)if(!t[n]._isSupported(e))return!1;return!0},c.prototype.get=function(e){return n.Z.typeOf.number.greaterThanOrEquals("index",e,0),n.Z.typeOf.number.lessThan("index",e,this.length),this._stages[e]},c.prototype.update=function(e,t){this._selectedDirty=function(e){let t=(0,s.Z)(e._selected)?e._selected.length:0;const i=(0,s.Z)(e._parentSelected)?e._parentSelected:0;let n=e._selected!==e._selectedShadow||t!==e._selectedLength;if(n=n||e._parentSelected!==e._parentSelectedShadow||i!==e._parentSelectedLength,(0,s.Z)(e._selected)&&(0,s.Z)(e._parentSelected)?e._combinedSelected=e._selected.concat(e._parentSelected):(0,s.Z)(e._parentSelected)?e._combinedSelected=e._parentSelected:e._combinedSelected=e._selected,!n&&(0,s.Z)(e._combinedSelected)){if(!(0,s.Z)(e._combinedSelectedShadow))return!0;t=e._combinedSelected.length;for(let i=0;i<t;++i)if(e._combinedSelected[i]!==e._combinedSelectedShadow[i])return!0}return n}(this),this._selectedShadow=this._selected,this._parentSelectedShadow=this._parentSelected,this._combinedSelectedShadow=this._combinedSelected,this._selectedLength=(0,s.Z)(this._selected)?this._selected.length:0,this._parentSelectedLength=(0,s.Z)(this._parentSelected)?this._parentSelected.length:0;const i=this._stages,n=i.length;for(let r=0;r<n;++r){const n=i[r];this._selectedDirty&&(n.parentSelected=this._combinedSelected),n.update(e,t)}},c.prototype.isDestroyed=function(){return!1},c.prototype.destroy=function(){const e=this._stages,t=e.length;for(let i=0;i<t;++i)e[i].destroy();return(0,a.Z)(this)};const u=c},209682:(e,t,i)=>{"use strict";i.d(t,{Z:()=>B});var n=i(913216),r=i(545125),o=i(416974),s=i(426468),a=i(253316),c=i(625377),u=i(337040),l=i(994822),h=i(125119),d=i(95990),f=i(494497),p=i(135234),m=i(975315),_=i(214098),Z=i(140418),g=i(178727),y=i(840616),b=i(263295),A=i(805637),w=i(757817),v=i(466153),T=i(727766),C=i(635217),E=i(742579),x=i(191786),S=i(868e3),O=i(41998),I=i(804919);const D={};function P(e){const t="#define USE_STEP_SIZE\n"+b.Z,i=new S.Z({name:e+"_x_direction",fragmentShader:t,uniforms:{delta:1,sigma:2,stepSize:1,direction:0},sampleMode:I.Z.LINEAR}),n=new S.Z({name:e+"_y_direction",fragmentShader:t,uniforms:{delta:1,sigma:2,stepSize:1,direction:1},sampleMode:I.Z.LINEAR}),r={};return Object.defineProperties(r,{delta:{get:function(){return i.uniforms.delta},set:function(e){const t=i.uniforms,r=n.uniforms;t.delta=r.delta=e}},sigma:{get:function(){return i.uniforms.sigma},set:function(e){const t=i.uniforms,r=n.uniforms;t.sigma=r.sigma=e}},stepSize:{get:function(){return i.uniforms.stepSize},set:function(e){const t=i.uniforms,r=n.uniforms;t.stepSize=r.stepSize=e}}}),new O.Z({name:e,stages:[i,n],uniforms:r})}D.createBlurStage=function(){return P("czm_blur")},D.createDepthOfFieldStage=function(){const e=P("czm_depth_of_field_blur"),t=new S.Z({name:"czm_depth_of_field_composite",fragmentShader:m.Z,uniforms:{focalDistance:5,blurTexture:e.name}}),i={};return Object.defineProperties(i,{focalDistance:{get:function(){return t.uniforms.focalDistance},set:function(e){t.uniforms.focalDistance=e}},delta:{get:function(){return e.uniforms.delta},set:function(t){e.uniforms.delta=t}},sigma:{get:function(){return e.uniforms.sigma},set:function(t){e.uniforms.sigma=t}},stepSize:{get:function(){return e.uniforms.stepSize},set:function(t){e.uniforms.stepSize=t}}}),new O.Z({name:"czm_depth_of_field",stages:[e,t],inputPreviousStageTexture:!1,uniforms:i})},D.isDepthOfFieldSupported=function(e){return e.context.depthTexture},D.createEdgeDetectionStage=function(){const e=(0,o.Z)();return new S.Z({name:"czm_edge_detection_"+e,fragmentShader:Z.Z,uniforms:{length:.25,color:r.Z.clone(r.Z.BLACK)}})},D.isEdgeDetectionSupported=function(e){return e.context.depthTexture},D.createSilhouetteStage=function(e){const t=function(e){if(!(0,s.Z)(e))return D.createEdgeDetectionStage();const t=new O.Z({name:"czm_edge_detection_multiple",stages:e,inputPreviousStageTexture:!1}),i={};let n="",r="";for(let t=0;t<e.length;++t)n+="uniform sampler2D edgeTexture"+t+"; \n",r+=" vec4 edge"+t+" = texture2D(edgeTexture"+t+", v_textureCoordinates); \n if (edge"+t+".a > 0.0) \n { \n color = edge"+t+"; \n break; \n } \n",i["edgeTexture"+t]=e[t].name;const o=n+"varying vec2 v_textureCoordinates; \nvoid main() { \n vec4 color = vec4(0.0); \n for (int i = 0; i < "+e.length+"; i++) \n { \n"+r+" } \n gl_FragColor = color; \n} \n",a=new S.Z({name:"czm_edge_detection_combine",fragmentShader:o,uniforms:i});return new O.Z({name:"czm_edge_detection_composite",stages:[t,a]})}(e),i=new S.Z({name:"czm_silhouette_color_edges",fragmentShader:C.Z,uniforms:{silhouetteTexture:t.name}});return new O.Z({name:"czm_silhouette",stages:[t,i],inputPreviousStageTexture:!1,uniforms:t.uniforms})},D.isSilhouetteSupported=function(e){return e.context.depthTexture},D.createBloomStage=function(){const e=new S.Z({name:"czm_bloom_contrast_bias",fragmentShader:p.Z,uniforms:{contrast:128,brightness:-.3}}),t=P("czm_bloom_blur"),i=new O.Z({name:"czm_bloom_contrast_bias_blur",stages:[e,t]}),n=new S.Z({name:"czm_bloom_generate_composite",fragmentShader:d.Z,uniforms:{glowOnly:!1,bloomTexture:i.name}}),r={};return Object.defineProperties(r,{glowOnly:{get:function(){return n.uniforms.glowOnly},set:function(e){n.uniforms.glowOnly=e}},contrast:{get:function(){return e.uniforms.contrast},set:function(t){e.uniforms.contrast=t}},brightness:{get:function(){return e.uniforms.brightness},set:function(t){e.uniforms.brightness=t}},delta:{get:function(){return t.uniforms.delta},set:function(e){t.uniforms.delta=e}},sigma:{get:function(){return t.uniforms.sigma},set:function(e){t.uniforms.sigma=e}},stepSize:{get:function(){return t.uniforms.stepSize},set:function(e){t.uniforms.stepSize=e}}}),new O.Z({name:"czm_bloom",stages:[i,n],inputPreviousStageTexture:!1,uniforms:r})},D.createAmbientOcclusionStage=function(){const e=new S.Z({name:"czm_ambient_occlusion_generate",fragmentShader:u.Z,uniforms:{intensity:3,bias:.1,lengthCap:.26,stepSize:1.95,frustumLength:1e3,randomTexture:void 0}}),t=P("czm_ambient_occlusion_blur");t.uniforms.stepSize=.86;const i=new O.Z({name:"czm_ambient_occlusion_generate_blur",stages:[e,t]}),n=new S.Z({name:"czm_ambient_occlusion_composite",fragmentShader:l.Z,uniforms:{ambientOcclusionOnly:!1,ambientOcclusionTexture:i.name}}),r={};return Object.defineProperties(r,{intensity:{get:function(){return e.uniforms.intensity},set:function(t){e.uniforms.intensity=t}},bias:{get:function(){return e.uniforms.bias},set:function(t){e.uniforms.bias=t}},lengthCap:{get:function(){return e.uniforms.lengthCap},set:function(t){e.uniforms.lengthCap=t}},stepSize:{get:function(){return e.uniforms.stepSize},set:function(t){e.uniforms.stepSize=t}},frustumLength:{get:function(){return e.uniforms.frustumLength},set:function(t){e.uniforms.frustumLength=t}},randomTexture:{get:function(){return e.uniforms.randomTexture},set:function(t){e.uniforms.randomTexture=t}},delta:{get:function(){return t.uniforms.delta},set:function(e){t.uniforms.delta=e}},sigma:{get:function(){return t.uniforms.sigma},set:function(e){t.uniforms.sigma=e}},blurStepSize:{get:function(){return t.uniforms.stepSize},set:function(e){t.uniforms.stepSize=e}},ambientOcclusionOnly:{get:function(){return n.uniforms.ambientOcclusionOnly},set:function(e){n.uniforms.ambientOcclusionOnly=e}}}),new O.Z({name:"czm_ambient_occlusion",stages:[i,n],inputPreviousStageTexture:!1,uniforms:r})},D.isAmbientOcclusionSupported=function(e){return e.context.depthTexture};const R="#define FXAA_QUALITY_PRESET 39 \n"+E.Z+"\n"+y.Z;D.createFXAAStage=function(){return new S.Z({name:"czm_FXAA",fragmentShader:R,sampleMode:I.Z.LINEAR})},D.createAcesTonemappingStage=function(e){let t=e?"#define AUTO_EXPOSURE\n":"";return t+=c.Z,new S.Z({name:"czm_aces",fragmentShader:t,uniforms:{autoExposure:void 0}})},D.createFilmicTonemappingStage=function(e){let t=e?"#define AUTO_EXPOSURE\n":"";return t+=g.Z,new S.Z({name:"czm_filmic",fragmentShader:t,uniforms:{autoExposure:void 0}})},D.createReinhardTonemappingStage=function(e){let t=e?"#define AUTO_EXPOSURE\n":"";return t+=T.Z,new S.Z({name:"czm_reinhard",fragmentShader:t,uniforms:{autoExposure:void 0}})},D.createModifiedReinhardTonemappingStage=function(e){let t=e?"#define AUTO_EXPOSURE\n":"";return t+=w.Z,new S.Z({name:"czm_modified_reinhard",fragmentShader:t,uniforms:{white:r.Z.WHITE,autoExposure:void 0}})},D.createAutoExposureStage=function(){return new x.Z},D.createBlackAndWhiteStage=function(){return new S.Z({name:"czm_black_and_white",fragmentShader:h.Z,uniforms:{gradations:5}})},D.createBrightnessStage=function(){return new S.Z({name:"czm_brightness",fragmentShader:f.Z,uniforms:{brightness:.5}})},D.createNightVisionStage=function(){return new S.Z({name:"czm_night_vision",fragmentShader:v.Z})},D.createDepthViewStage=function(){return new S.Z({name:"czm_depth_view",fragmentShader:_.Z})},D.createLensFlareStage=function(){return new S.Z({name:"czm_lens_flare",fragmentShader:A.Z,uniforms:{dirtTexture:(0,n.Z)("Assets/Textures/LensFlare/DirtMask.jpg"),starTexture:(0,n.Z)("Assets/Textures/LensFlare/StarBurst.jpg"),intensity:2,distortion:10,ghostDispersal:.4,haloWidth:.4,dirtAmount:.4,earthRadius:a.Z.WGS84.maximumRadius}})};const B=D},804919:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n={NEAREST:0,LINEAR:1}},743131:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});var n=i(545125),r=i(426468),o=i(54879),s=i(362017),a=i(20209),c=i(273642);function u(e){this._collection=e,this._framebuffers=[],this._stageNameToFramebuffer={},this._width=void 0,this._height=void 0,this._updateDependencies=!1}function l(e){for(;(0,r.Z)(e.length);)e=e.get(e.length-1);return e.name}function h(e,t,i,n,o){if(!n.enabled||!n._isSupported(t))return o;const s=i[n.name]={};(0,r.Z)(o)&&(s[l(e.getStageByName(o))]=!0);const a=n.uniforms;if((0,r.Z)(a)){const t=Object.getOwnPropertyNames(a),i=t.length;for(let n=0;n<i;++n){const i=a[t[n]];if("string"==typeof i){const t=e.getStageByName(i);(0,r.Z)(t)&&(s[l(t)]=!0)}}}return n.name}function d(e,t,i,n,o){if((0,r.Z)(n.enabled)&&!n.enabled||(0,r.Z)(n._isSupported)&&!n._isSupported(t))return o;const s=o,a=!(0,r.Z)(n.inputPreviousStageTexture)||n.inputPreviousStageTexture;let c=o;const u=n.length;for(let s=0;s<u;++s){const u=n.get(s);c=(0,r.Z)(u.length)?d(e,t,i,u,o):h(e,t,i,u,o),a&&(o=c)}let f,p;if(a)for(f=1;f<u;++f)p=l(n.get(f)),(0,r.Z)(i[p])||(i[p]={}),i[p][s]=!0;else for(f=1;f<u;++f){p=l(n.get(f));const e=i[p];for(let t=0;t<f;++t)e[l(n.get(t))]=!0}return c}function f(e,t,i){const o=e._collection.getStageByName(t),s=o._textureScale,a=o._forcePowerOfTwo,u=o._pixelFormat,l=o._pixelDatatype,h=o._clearColor;let d,f;const p=e._framebuffers,m=p.length;for(d=0;d<m;++d){if(f=p[d],s!==f.textureScale||a!==f.forcePowerOfTwo||u!==f.pixelFormat||l!==f.pixelDatatype||!n.Z.equals(h,f.clearColor))continue;const e=f.stages,t=e.length;let r=!1;for(let n=0;n<t;++n)if(i[e[n]]){r=!0;break}if(!r)break}return(0,r.Z)(f)&&d<m?(f.stages.push(t),f):(f={textureScale:s,forcePowerOfTwo:a,pixelFormat:u,pixelDatatype:l,clearColor:h,stages:[t],buffer:new c.Z({pixelFormat:u,pixelDatatype:l}),clear:void 0},p.push(f),f)}function p(e){const t=e._framebuffers,i=t.length;for(let e=0;e<i;++e)t[e].buffer.destroy()}u.prototype.updateDependencies=function(){this._updateDependencies=!0},u.prototype.update=function(e){const t=this._collection,i=this._updateDependencies,n=(0,r.Z)(t.ambientOcclusion)&&t.ambientOcclusion.enabled&&t.ambientOcclusion._isSupported(e),o=(0,r.Z)(t.bloom)&&t.bloom.enabled&&t.bloom._isSupported(e),c=(0,r.Z)(t._tonemapping)&&t._tonemapping.enabled&&t._tonemapping._isSupported(e),u=(0,r.Z)(t.fxaa)&&t.fxaa.enabled&&t.fxaa._isSupported(e),l=!(0,r.Z)(t._activeStages)||t._activeStages.length>0||n||o||c||u;if((i||!l&&this._framebuffers.length>0)&&(p(this),this._framebuffers.length=0,this._stageNameToFramebuffer={},this._width=void 0,this._height=void 0),!i&&!l)return;0===this._framebuffers.length&&function(e,t){const i=function(e,t){const i={};if((0,r.Z)(e.ambientOcclusion)){const n=e.ambientOcclusion,r=e.bloom,o=e._tonemapping,s=e.fxaa;let a=d(e,t,i,n,void 0);a=d(e,t,i,r,a),a=h(e,t,i,o,a),a=d(e,t,i,e,a),h(e,t,i,s,a)}else d(e,t,i,e,void 0);return i}(e._collection,t);for(const t in i)i.hasOwnProperty(t)&&(e._stageNameToFramebuffer[t]=f(e,t,i[t]))}(this,e);const m=e.drawingBufferWidth,_=e.drawingBufferHeight,Z=this._width!==m||this._height!==_;(i||Z)&&(this._width=m,this._height=_,this._updateDependencies=!1,p(this),function(e,t){const i=e._width,n=e._height,r=e._framebuffers,o=r.length;for(let e=0;e<o;++e){const o=r[e],c=o.textureScale;let u=Math.ceil(i*c),l=Math.ceil(n*c),h=Math.min(u,l);o.forcePowerOfTwo&&(s.Z.isPowerOfTwo(h)||(h=s.Z.nextPowerOfTwo(h)),u=h,l=h),o.buffer.update(t,u,l),o.clear=new a.Z({color:o.clearColor,framebuffer:o.buffer.framebuffer})}}(this,e))},u.prototype.clear=function(e){const t=this._framebuffers;for(let i=0;i<t.length;++i)t[i].clear.execute(e)},u.prototype.getStageByName=function(e){return this._collection.getStageByName(e)},u.prototype.getOutputTexture=function(e){return this._collection.getOutputTexture(e)},u.prototype.getFramebuffer=function(e){const t=this._stageNameToFramebuffer[e];if((0,r.Z)(t))return t.buffer.framebuffer},u.prototype.isDestroyed=function(){return!1},u.prototype.destroy=function(){return p(this),(0,o.Z)(this)};const m=u},939800:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Se});var n=i(360791),r=i(337968),o=i(919382),s=i(114754),a=i(698907),c=i(556592),u=i(545125),l=i(307260),h=i(997274),d=i(406144),f=i(426468),p=i(54879),m=i(446938),_=i(275949),Z=i(488802),g=i(915067),y=i(611843),b=i(451628),A=i(215925),w=i(360382),v=i(583917),T=i(634878),C=i(50128),E=i(206275),x=i(890357),S=i(50720),O=i(994589),I=i(247913),D=i(842649),P=i(364232),R=i(928096),B=i(279427),M=i(676311),L=i(527758),N=i(525688),F=i(690466),k=i(329286),U=i(138323),V=i(305722),z=i(506678),H=i(556198);function G(e){if(e=(0,d.Z)(e,d.Z.EMPTY_OBJECT),this.geometryInstances=e.geometryInstances,this.appearance=e.appearance,this._appearance=void 0,this._material=void 0,this.depthFailAppearance=e.depthFailAppearance,this._depthFailAppearance=void 0,this._depthFailMaterial=void 0,this.modelMatrix=v.Z.clone((0,d.Z)(e.modelMatrix,v.Z.IDENTITY)),this._modelMatrix=new v.Z,this.show=(0,d.Z)(e.show,!0),this._vertexCacheOptimize=(0,d.Z)(e.vertexCacheOptimize,!1),this._interleave=(0,d.Z)(e.interleave,!1),this._releaseGeometryInstances=(0,d.Z)(e.releaseGeometryInstances,!0),this._allowPicking=(0,d.Z)(e.allowPicking,!0),this._asynchronous=(0,d.Z)(e.asynchronous,!0),this._compressVertices=(0,d.Z)(e.compressVertices,!0),this.cull=(0,d.Z)(e.cull,!0),this.debugShowBoundingVolume=(0,d.Z)(e.debugShowBoundingVolume,!1),this.rtcCenter=e.rtcCenter,(0,f.Z)(this.rtcCenter)&&(!(0,f.Z)(this.geometryInstances)||Array.isArray(this.geometryInstances)&&1!==this.geometryInstances.length))throw new m.Z("Relative-to-center rendering only supports one geometry instance.");this.shadows=(0,d.Z)(e.shadows,H.Z.DISABLED),this._translucent=void 0,this._state=V.Z.READY,this._geometries=[],this._error=void 0,this._numberOfInstances=0,this._boundingSpheres=[],this._boundingSphereWC=[],this._boundingSphereCV=[],this._boundingSphere2D=[],this._boundingSphereMorph=[],this._perInstanceAttributeCache=[],this._instanceIds=[],this._lastPerInstanceAttributeIndex=0,this._va=[],this._attributeLocations=void 0,this._primitiveType=void 0,this._frontFaceRS=void 0,this._backFaceRS=void 0,this._sp=void 0,this._depthFailAppearance=void 0,this._spDepthFail=void 0,this._frontFaceDepthFailRS=void 0,this._backFaceDepthFailRS=void 0,this._pickIds=[],this._colorCommands=[],this._pickCommands=[],this._createBoundingVolumeFunction=e._createBoundingVolumeFunction,this._createRenderStatesFunction=e._createRenderStatesFunction,this._createShaderProgramFunction=e._createShaderProgramFunction,this._createCommandsFunction=e._createCommandsFunction,this._updateAndQueueCommandsFunction=e._updateAndQueueCommandsFunction,this._createPickOffsets=e._createPickOffsets,this._pickOffsets=void 0,this._createGeometryResults=void 0,this._ready=!1,this._readyPromise=L.Z.defer(),this._batchTable=void 0,this._batchTableAttributeIndices=void 0,this._offsetInstanceExtend=void 0,this._batchTableOffsetAttribute2DIndex=void 0,this._batchTableOffsetsUpdated=!1,this._instanceBoundingSpheres=void 0,this._instanceBoundingSpheresCV=void 0,this._tempBoundingSpheres=void 0,this._recomputeBoundingSpheres=!1,this._batchTableBoundingSpheresUpdated=!1,this._batchTableBoundingSphereAttributeIndices=void 0}Object.defineProperties(G.prototype,{vertexCacheOptimize:{get:function(){return this._vertexCacheOptimize}},interleave:{get:function(){return this._interleave}},releaseGeometryInstances:{get:function(){return this._releaseGeometryInstances}},allowPicking:{get:function(){return this._allowPicking}},asynchronous:{get:function(){return this._asynchronous}},compressVertices:{get:function(){return this._compressVertices}},ready:{get:function(){return this._ready}},readyPromise:{get:function(){return this._readyPromise.promise}}});const q=new r.Z,j=new o.Z,W=new s.Z;function K(e){const t=e.length;return 1===t?e[0]:2===t?r.Z.unpack(e,0,q):3===t?o.Z.unpack(e,0,j):4===t?s.Z.unpack(e,0,W):void 0}function Y(e){let t;return t=Array.isArray(e.values)?e.values.slice(0):new e.values.constructor(e.values),new y.Z({componentDatatype:e.componentDatatype,componentsPerAttribute:e.componentsPerAttribute,normalize:e.normalize,values:t})}function X(e){const t=e.attributes,i=new b.Z;for(const e in t)t.hasOwnProperty(e)&&(0,f.Z)(t[e])&&(i[e]=Y(t[e]));let r;if((0,f.Z)(e.indices)){const t=e.indices;r=Array.isArray(t)?t.slice(0):new t.constructor(t)}return new g.Z({attributes:i,indices:r,primitiveType:e.primitiveType,boundingSphere:n.Z.clone(e.boundingSphere)})}function J(e,t){return{geometry:t,attributes:e.attributes,modelMatrix:v.Z.clone(e.modelMatrix),pickPrimitive:e.pickPrimitive,id:e.id}}const Q=/attribute\s+vec(?:3|4)\s+(.*)3DHigh;/g;function $(e){return B.Z.replaceMain(e,"czm_non_pick_main")+"\nvarying vec4 v_pickColor; \nvoid main() \n{ \n czm_non_pick_main(); \n v_pickColor = czm_batchTable_pickColor(batchId); \n}"}function ee(e){return"varying vec4 v_pickColor;\n"+e}function te(e,t){if(!e.compressVertices)return t;const i=-1!==t.search(/attribute\s+vec3\s+normal;/g),n=-1!==t.search(/attribute\s+vec2\s+st;/g);if(!i&&!n)return t;const r=-1!==t.search(/attribute\s+vec3\s+tangent;/g),o=-1!==t.search(/attribute\s+vec3\s+bitangent;/g);let s=n&&i?2:1;s+=r||o?1:0;const a="compressedAttributes",c="attribute "+(s>1?"vec"+s:"float")+" "+a+";";let u="",l="";n&&(u+="vec2 st;\n",l+=" st = czm_decompressTextureCoordinates("+(s>1?a+".x":a)+");\n"),i&&r&&o?(u+="vec3 normal;\nvec3 tangent;\nvec3 bitangent;\n",l+=" czm_octDecode("+a+"."+(n?"yz":"xy")+", normal, tangent, bitangent);\n"):(i&&(u+="vec3 normal;\n",l+=" normal = czm_octDecode("+a+(s>1?"."+(n?"y":"x"):"")+");\n"),r&&(u+="vec3 tangent;\n",l+=" tangent = czm_octDecode("+a+"."+(n&&i?"z":"y")+");\n"),o&&(u+="vec3 bitangent;\n",l+=" bitangent = czm_octDecode("+a+"."+(n&&i?"z":"y")+");\n"));let h=t;return h=h.replace(/attribute\s+vec3\s+normal;/g,""),h=h.replace(/attribute\s+vec2\s+st;/g,""),h=h.replace(/attribute\s+vec3\s+tangent;/g,""),h=h.replace(/attribute\s+vec3\s+bitangent;/g,""),h=B.Z.replaceMain(h,"czm_non_compressed_main"),[c,u,h,"void main() \n{ \n"+l+" czm_non_compressed_main(); \n}"].join("\n")}function ie(e,t){const i=e.vertexAttributes;for(const e in i)if(i.hasOwnProperty(e)&&!(0,f.Z)(t[e]))throw new m.Z("Appearance/Geometry mismatch. The appearance requires vertex shader attribute input '"+e+"', which was not computed as part of the Geometry. Use the appearance's vertexFormat property when constructing the geometry.")}function ne(e,t){return function(){return e[t]}}G._modifyShaderPosition=function(e,t,i){let n,r="",o="",s="";for(;null!==(n=Q.exec(t));){const a=n[1],c="vec4 czm_compute"+a[0].toUpperCase()+a.substr(1)+"()";"vec4 czm_computePosition()"!==c&&(r+=c+";\n"),(0,f.Z)(e.rtcCenter)?(r+="uniform mat4 u_modifiedModelView;\n",o+="attribute vec4 position;\n",s+=c+"\n{\n return u_modifiedModelView * position;\n}\n\n",t=(t=(t=(t=t.replace(/attribute\s+vec(?:3|4)\s+position3DHigh;/g,"")).replace(/attribute\s+vec(?:3|4)\s+position3DLow;/g,"")).replace(/czm_modelViewRelativeToEye\s+\*\s+/g,"")).replace(/czm_modelViewProjectionRelativeToEye/g,"czm_projection")):i?s+=c+"\n{\n return czm_translateRelativeToEye("+a+"3DHigh, "+a+"3DLow);\n}\n\n":(o+="attribute vec3 "+a+"2DHigh;\nattribute vec3 "+a+"2DLow;\n",s+=c+"\n{\n vec4 p;\n if (czm_morphTime == 1.0)\n {\n p = czm_translateRelativeToEye("+a+"3DHigh, "+a+"3DLow);\n }\n else if (czm_morphTime == 0.0)\n {\n p = czm_translateRelativeToEye("+a+"2DHigh.zxy, "+a+"2DLow.zxy);\n }\n else\n {\n p = czm_columbusViewMorph(\n czm_translateRelativeToEye("+a+"2DHigh.zxy, "+a+"2DLow.zxy),\n czm_translateRelativeToEye("+a+"3DHigh, "+a+"3DLow),\n czm_morphTime);\n }\n return p;\n}\n\n")}return[r,o,t,s].join("\n")},G._appendShowToShader=function(e,t){return(0,f.Z)(e._batchTableAttributeIndices.show)?B.Z.replaceMain(t,"czm_non_show_main")+"\nvoid main() \n{ \n czm_non_show_main(); \n gl_Position *= czm_batchTable_show(batchId); \n}":t},G._updateColorAttribute=function(e,t,i){if(!(0,f.Z)(e._batchTableAttributeIndices.color)&&!(0,f.Z)(e._batchTableAttributeIndices.depthFailColor))return t;if(-1===t.search(/attribute\s+vec4\s+color;/g))return t;if(i&&!(0,f.Z)(e._batchTableAttributeIndices.depthFailColor))throw new m.Z("A depthFailColor per-instance attribute is required when using a depth fail appearance that uses a color attribute.");let n=t;return n=n.replace(/attribute\s+vec4\s+color;/g,""),n=i?n.replace(/(\b)color(\b)/g,"$1czm_batchTable_depthFailColor(batchId)$2"):n.replace(/(\b)color(\b)/g,"$1czm_batchTable_color(batchId)$2"),n},G._updatePickColorAttribute=function(e){let t=e.replace(/attribute\s+vec4\s+pickColor;/g,"");return t=t.replace(/(\b)pickColor(\b)/g,"$1czm_batchTable_pickColor(batchId)$2"),t},G._appendOffsetToShader=function(e,t){if(!(0,f.Z)(e._batchTableAttributeIndices.offset))return t;let i="attribute float batchId;\n";i+="attribute float applyOffset;";let n=t.replace(/attribute\s+float\s+batchId;/g,"attribute float batchId;\nattribute float applyOffset;"),r="vec4 $1 = czm_computePosition();\n";return r+=" if (czm_sceneMode == czm_sceneMode3D)\n",r+=" {\n",r+=" $1 = $1 + vec4(czm_batchTable_offset(batchId) * applyOffset, 0.0);",r+=" }\n",r+=" else\n",r+=" {\n",r+=" $1 = $1 + vec4(czm_batchTable_offset2D(batchId) * applyOffset, 0.0);",r+=" }\n",n=n.replace(/vec4\s+([A-Za-z0-9_]+)\s+=\s+czm_computePosition\(\);/g,"vec4 $1 = czm_computePosition();\n if (czm_sceneMode == czm_sceneMode3D)\n {\n $1 = $1 + vec4(czm_batchTable_offset(batchId) * applyOffset, 0.0); }\n else\n {\n $1 = $1 + vec4(czm_batchTable_offset2D(batchId) * applyOffset, 0.0); }\n"),n},G._appendDistanceDisplayConditionToShader=function(e,t,i){if(!(0,f.Z)(e._batchTableAttributeIndices.distanceDisplayCondition))return t;let n="void main() \n{ \n czm_non_distanceDisplayCondition_main(); \n vec2 distanceDisplayCondition = czm_batchTable_distanceDisplayCondition(batchId);\n vec3 boundingSphereCenter3DHigh = czm_batchTable_boundingSphereCenter3DHigh(batchId);\n vec3 boundingSphereCenter3DLow = czm_batchTable_boundingSphereCenter3DLow(batchId);\n float boundingSphereRadius = czm_batchTable_boundingSphereRadius(batchId);\n";return n+=i?" vec4 centerRTE = czm_translateRelativeToEye(boundingSphereCenter3DHigh, boundingSphereCenter3DLow);\n":" vec3 boundingSphereCenter2DHigh = czm_batchTable_boundingSphereCenter2DHigh(batchId);\n vec3 boundingSphereCenter2DLow = czm_batchTable_boundingSphereCenter2DLow(batchId);\n vec4 centerRTE;\n if (czm_morphTime == 1.0)\n {\n centerRTE = czm_translateRelativeToEye(boundingSphereCenter3DHigh, boundingSphereCenter3DLow);\n }\n else if (czm_morphTime == 0.0)\n {\n centerRTE = czm_translateRelativeToEye(boundingSphereCenter2DHigh.zxy, boundingSphereCenter2DLow.zxy);\n }\n else\n {\n centerRTE = czm_columbusViewMorph(\n czm_translateRelativeToEye(boundingSphereCenter2DHigh.zxy, boundingSphereCenter2DLow.zxy),\n czm_translateRelativeToEye(boundingSphereCenter3DHigh, boundingSphereCenter3DLow),\n czm_morphTime);\n }\n",n+=" float radiusSq = boundingSphereRadius * boundingSphereRadius; \n float distanceSq; \n if (czm_sceneMode == czm_sceneMode2D) \n { \n distanceSq = czm_eyeHeight2D.y - radiusSq; \n } \n else \n { \n distanceSq = dot(centerRTE.xyz, centerRTE.xyz) - radiusSq; \n } \n distanceSq = max(distanceSq, 0.0); \n float nearSq = distanceDisplayCondition.x * distanceDisplayCondition.x; \n float farSq = distanceDisplayCondition.y * distanceDisplayCondition.y; \n float show = (distanceSq >= nearSq && distanceSq <= farSq) ? 1.0 : 0.0; \n gl_Position *= show; \n}",B.Z.replaceMain(t,"czm_non_distanceDisplayCondition_main")+"\n"+n};const re=Math.max(Z.Z.hardwareConcurrency-1,1);let oe;const se=new x.Z("combineGeometry"),ae=new _.Z,ce=new a.Z,ue=new o.Z,le=new n.Z,he=new o.Z,de=new o.Z;function fe(e,t){if(!(0,f.Z)(e._batchTableAttributeIndices.offset)||e._batchTableOffsetsUpdated||t.scene3DOnly)return;const i=e._batchTableOffsetAttribute2DIndex,r=t.mapProjection,s=r.ellipsoid,a=e._batchTable,c=e._instanceBoundingSpheres,u=c.length;for(let t=0;t<u;++t){let u=c[t];if(!(0,f.Z)(u))continue;const l=a.getBatchedAttribute(t,e._batchTableAttributeIndices.offset);if(o.Z.equals(l,o.Z.ZERO)){a.setBatchedAttribute(t,i,o.Z.ZERO);continue}const h=e.modelMatrix;(0,f.Z)(h)&&(u=n.Z.transform(u,h,le));let d=u.center;d=s.scaleToGeodeticSurface(d,de);let p=s.cartesianToCartographic(d,ce);const m=r.project(p,ue),_=o.Z.add(l,d,he);p=s.cartesianToCartographic(_,p);const Z=r.project(p,he),g=o.Z.subtract(Z,m,he),y=g.x;g.x=g.z,g.z=g.y,g.y=y,a.setBatchedAttribute(t,i,g)}e._batchTableOffsetsUpdated=!0}function pe(e,t,i,n){let r,o=i.getRenderState();n?(r=(0,c.Z)(o,!1),r.cull={enabled:!0,face:F.Z.BACK},e._frontFaceRS=P.Z.fromCache(r),r.cull.face=F.Z.FRONT,e._backFaceRS=P.Z.fromCache(r)):(e._frontFaceRS=P.Z.fromCache(o),e._backFaceRS=e._frontFaceRS),r=(0,c.Z)(o,!1),(0,f.Z)(e._depthFailAppearance)&&(r.depthTest.enabled=!1),(0,f.Z)(e._depthFailAppearance)&&(o=e._depthFailAppearance.getRenderState(),r=(0,c.Z)(o,!1),r.depthTest.func=k.Z.GREATER,n?(r.cull={enabled:!0,face:F.Z.BACK},e._frontFaceDepthFailRS=P.Z.fromCache(r),r.cull.face=F.Z.FRONT,e._backFaceDepthFailRS=P.Z.fromCache(r)):(e._frontFaceDepthFailRS=P.Z.fromCache(r),e._backFaceDepthFailRS=e._frontFaceRS))}function me(e,t,i){const n=t.context,r=e._attributeLocations;let o=e._batchTable.getVertexShaderCallback()(i.vertexShaderSource);o=G._appendOffsetToShader(e,o),o=G._appendShowToShader(e,o),o=G._appendDistanceDisplayConditionToShader(e,o,t.scene3DOnly),o=$(o),o=G._updateColorAttribute(e,o,!1),o=te(e,o),o=G._modifyShaderPosition(e,o,t.scene3DOnly);let s=i.getFragmentShaderSource();s=ee(s),e._sp=R.Z.replaceCache({context:n,shaderProgram:e._sp,vertexShaderSource:o,fragmentShaderSource:s,attributeLocations:r}),ie(e._sp,r),(0,f.Z)(e._depthFailAppearance)&&(o=e._batchTable.getVertexShaderCallback()(e._depthFailAppearance.vertexShaderSource),o=G._appendShowToShader(e,o),o=G._appendDistanceDisplayConditionToShader(e,o,t.scene3DOnly),o=$(o),o=G._updateColorAttribute(e,o,!0),o=te(e,o),o=G._modifyShaderPosition(e,o,t.scene3DOnly),o=function(e){let t=B.Z.replaceMain(e,"czm_non_depth_clamp_main");return t+="void main() {\n czm_non_depth_clamp_main();\n gl_Position = czm_depthClamp(gl_Position);}\n",t}(o),s=e._depthFailAppearance.getFragmentShaderSource(),s=ee(s),s=function(e){let t=B.Z.replaceMain(e,"czm_non_depth_clamp_main");return t+="void main() {\n czm_non_depth_clamp_main();\n#if defined(GL_EXT_frag_depth)\n #if defined(LOG_DEPTH)\n czm_writeLogDepth();\n #else\n czm_writeDepthClamp();\n #endif\n#endif\n}\n",t="#ifdef GL_EXT_frag_depth\n#extension GL_EXT_frag_depth : enable\n#endif\n"+t,t}(s),e._spDepthFail=R.Z.replaceCache({context:n,shaderProgram:e._spDepthFail,vertexShaderSource:o,fragmentShaderSource:s,attributeLocations:r}),ie(e._spDepthFail,r))}const _e=new v.Z,Ze=new o.Z;function ge(e,t,i,n){const r=(0,f.Z)(i)?i._uniforms:void 0,o={},s=t.uniforms;if((0,f.Z)(s))for(const e in s)if(s.hasOwnProperty(e)){if((0,f.Z)(r)&&(0,f.Z)(r[e]))throw new m.Z("Appearance and material have a uniform with the same name: "+e);o[e]=ne(s,e)}let a=(0,l.Z)(o,r);return a=e._batchTable.getUniformMapCallback()(a),(0,f.Z)(e.rtcCenter)&&(a.u_modifiedModelView=function(){const t=n.context.uniformState.view;return v.Z.multiply(t,e._modelMatrix,_e),v.Z.multiplyByPoint(_e,e.rtcCenter,Ze),v.Z.setTranslation(_e,Ze,_e),_e}),a}function ye(e,t,i,n,r,o,s,a){const c=ge(e,t,i,a);let u;(0,f.Z)(e._depthFailAppearance)&&(u=ge(e,e._depthFailAppearance,e._depthFailAppearance.material,a));const l=n?D.Z.TRANSLUCENT:D.Z.OPAQUE;let h=r?2:1;h*=(0,f.Z)(e._depthFailAppearance)?2:1,o.length=e._va.length*h;const d=o.length;let p=0;for(let t=0;t<d;++t){let i;r&&(i=o[t],(0,f.Z)(i)||(i=o[t]=new I.Z({owner:e,primitiveType:e._primitiveType})),i.vertexArray=e._va[p],i.renderState=e._backFaceRS,i.shaderProgram=e._sp,i.uniformMap=c,i.pass=l,++t),i=o[t],(0,f.Z)(i)||(i=o[t]=new I.Z({owner:e,primitiveType:e._primitiveType})),i.vertexArray=e._va[p],i.renderState=e._frontFaceRS,i.shaderProgram=e._sp,i.uniformMap=c,i.pass=l,(0,f.Z)(e._depthFailAppearance)&&(r&&(++t,i=o[t],(0,f.Z)(i)||(i=o[t]=new I.Z({owner:e,primitiveType:e._primitiveType})),i.vertexArray=e._va[p],i.renderState=e._backFaceDepthFailRS,i.shaderProgram=e._spDepthFail,i.uniformMap=u,i.pass=l),++t,i=o[t],(0,f.Z)(i)||(i=o[t]=new I.Z({owner:e,primitiveType:e._primitiveType})),i.vertexArray=e._va[p],i.renderState=e._frontFaceDepthFailRS,i.shaderProgram=e._spDepthFail,i.uniformMap=u,i.pass=l),++p}}function be(e,t,i,n,r,o,s,a){if(t.mode!==z.Z.SCENE3D&&!v.Z.equals(r,v.Z.IDENTITY))throw new m.Z("Primitive.modelMatrix is only supported in 3D mode.");let c;G._updateBoundingVolumes(e,t,r),t.mode===z.Z.SCENE3D?c=e._boundingSphereWC:t.mode===z.Z.COLUMBUS_VIEW?c=e._boundingSphereCV:t.mode===z.Z.SCENE2D&&(0,f.Z)(e._boundingSphere2D)?c=e._boundingSphere2D:(0,f.Z)(e._boundingSphereMorph)&&(c=e._boundingSphereMorph);const u=t.commandList,l=t.passes;if(l.render||l.pick){const t=e.allowPicking,n=H.Z.castShadows(e.shadows),l=H.Z.receiveShadows(e.shadows),h=i.length;let d=a?2:1;d*=(0,f.Z)(e._depthFailAppearance)?2:1;for(let e=0;e<h;++e){const a=Math.floor(e/d),h=i[e];h.modelMatrix=r,h.boundingVolume=c[a],h.cull=o,h.debugShowBoundingVolume=s,h.castShadows=n,h.receiveShadows=l,h.pickId=t?"v_pickColor":void 0,u.push(h)}}}G._updateBoundingVolumes=function(e,t,i,r){let o,s,a;if(r||!v.Z.equals(i,e._modelMatrix))for(v.Z.clone(i,e._modelMatrix),s=e._boundingSpheres.length,o=0;o<s;++o)a=e._boundingSpheres[o],(0,f.Z)(a)&&(e._boundingSphereWC[o]=n.Z.transform(a,i,e._boundingSphereWC[o]),t.scene3DOnly||(e._boundingSphere2D[o]=n.Z.clone(e._boundingSphereCV[o],e._boundingSphere2D[o]),e._boundingSphere2D[o].center.x=0,e._boundingSphereMorph[o]=n.Z.union(e._boundingSphereWC[o],e._boundingSphereCV[o])));const c=e.appearance.pixelSize;if((0,f.Z)(c))for(s=e._boundingSpheres.length,o=0;o<s;++o){a=e._boundingSpheres[o];const i=e._boundingSphereWC[o],n=t.camera.getPixelSize(a,t.context.drawingBufferWidth,t.context.drawingBufferHeight)*c;i.radius=a.radius+n}},G.prototype.update=function(e){if(!(0,f.Z)(this.geometryInstances)&&0===this._va.length||(0,f.Z)(this.geometryInstances)&&Array.isArray(this.geometryInstances)&&0===this.geometryInstances.length||!(0,f.Z)(this.appearance)||e.mode!==z.Z.SCENE3D&&e.scene3DOnly||!e.passes.render&&!e.passes.pick)return;if((0,f.Z)(this._error))throw this._error;if((0,f.Z)(this.rtcCenter)&&!e.scene3DOnly)throw new m.Z("RTC rendering is only available for 3D only scenes.");if(this._state===V.Z.FAILED)return;const t=e.context;if((0,f.Z)(this._batchTable)||function(e,t){const i=e.geometryInstances,n=Array.isArray(i)?i:[i],r=n.length;if(0===r)return;const o=function(e){const t=e.length,i=[],n=e[0].attributes;let r;for(r in n)if(n.hasOwnProperty(r)&&(0,f.Z)(n[r])){const o=n[r];let s=!0;for(let i=1;i<t;++i){const t=e[i].attributes[r];if(!(0,f.Z)(t)||o.componentDatatype!==t.componentDatatype||o.componentsPerAttribute!==t.componentsPerAttribute||o.normalize!==t.normalize){s=!1;break}}s&&i.push(r)}return i}(n),s=o.length,a=[],c={},l={};let p,m,_,Z,g=n[0].attributes;for(m=0;m<s;++m)_=o[m],Z=g[_],c[_]=m,a.push({functionName:"czm_batchTable_"+_,componentDatatype:Z.componentDatatype,componentsPerAttribute:Z.componentsPerAttribute,normalize:Z.normalize});-1!==o.indexOf("distanceDisplayCondition")&&(a.push({functionName:"czm_batchTable_boundingSphereCenter3DHigh",componentDatatype:h.Z.FLOAT,componentsPerAttribute:3},{functionName:"czm_batchTable_boundingSphereCenter3DLow",componentDatatype:h.Z.FLOAT,componentsPerAttribute:3},{functionName:"czm_batchTable_boundingSphereCenter2DHigh",componentDatatype:h.Z.FLOAT,componentsPerAttribute:3},{functionName:"czm_batchTable_boundingSphereCenter2DLow",componentDatatype:h.Z.FLOAT,componentsPerAttribute:3},{functionName:"czm_batchTable_boundingSphereRadius",componentDatatype:h.Z.FLOAT,componentsPerAttribute:1}),l.center3DHigh=a.length-5,l.center3DLow=a.length-4,l.center2DHigh=a.length-3,l.center2DLow=a.length-2,l.radius=a.length-1),-1!==o.indexOf("offset")&&(a.push({functionName:"czm_batchTable_offset2D",componentDatatype:h.Z.FLOAT,componentsPerAttribute:3}),p=a.length-1),a.push({functionName:"czm_batchTable_pickColor",componentDatatype:h.Z.UNSIGNED_BYTE,componentsPerAttribute:4,normalize:!0});const y=a.length,b=new N.Z(t,a,r);for(m=0;m<r;++m){const i=n[m];g=i.attributes;for(let e=0;e<s;++e){_=o[e],Z=g[_];const t=K(Z.value),i=c[_];b.setBatchedAttribute(m,i,t)}const r={primitive:(0,d.Z)(i.pickPrimitive,e)};(0,f.Z)(i.id)&&(r.id=i.id);const a=t.createPickId(r);e._pickIds.push(a);const l=a.color,h=W;h.x=u.Z.floatToByte(l.red),h.y=u.Z.floatToByte(l.green),h.z=u.Z.floatToByte(l.blue),h.w=u.Z.floatToByte(l.alpha),b.setBatchedAttribute(m,y-1,h)}e._batchTable=b,e._batchTableAttributeIndices=c,e._batchTableBoundingSphereAttributeIndices=l,e._batchTableOffsetAttribute2DIndex=p}(this,t),this._batchTable.attributes.length>0){if(0===O.Z.maximumVertexTextureImageUnits)throw new C.Z("Vertex texture fetch support is required to render primitives with per-instance attributes. The maximum number of vertex texture image units must be greater than zero.");this._batchTable.update(e)}if(this._state!==V.Z.COMPLETE&&this._state!==V.Z.COMBINED&&(this.asynchronous?function(e,t){let i,n,r,o;const s=e._instanceIds;if(e._state===V.Z.READY){i=Array.isArray(e.geometryInstances)?e.geometryInstances:[e.geometryInstances];const a=e._numberOfInstances=i.length,c=[];let u,l=[];for(r=0;r<a;++r){if(n=i[r].geometry,s.push(i[r].id),!(0,f.Z)(n._workerName))throw new m.Z("_workerName must be defined for asynchronous geometry.");l.push({moduleName:n._workerName,geometry:n})}if(!(0,f.Z)(oe))for(oe=new Array(re),r=0;r<re;r++)oe[r]=new x.Z("createGeometry");for(l=(0,E.Z)(l,re),r=0;r<l.length;r++){let e=0;const t=l[r],i=t.length;for(o=0;o<i;++o)u=t[o],n=u.geometry,(0,f.Z)(n.constructor.pack)&&(u.offset=e,e+=(0,d.Z)(n.constructor.packedLength,n.packedLength));let s;if(e>0){const r=new Float64Array(e);for(s=[r.buffer],o=0;o<i;++o)u=t[o],n=u.geometry,(0,f.Z)(n.constructor.pack)&&(n.constructor.pack(n,r,u.offset),u.geometry=r)}c.push(oe[r].scheduleTask({subTasks:l[r]},s))}e._state=V.Z.CREATING,L.Z.all(c,(function(t){e._createGeometryResults=t,e._state=V.Z.CREATED})).otherwise((function(i){xe(e,t,V.Z.FAILED,i)}))}else if(e._state===V.Z.CREATED){const n=[];i=Array.isArray(e.geometryInstances)?e.geometryInstances:[e.geometryInstances];const r=t.scene3DOnly,o=t.mapProjection,s=se.scheduleTask(U.Z.packCombineGeometryParameters({createGeometryResults:e._createGeometryResults,instances:i,ellipsoid:o.ellipsoid,projection:o,elementIndexUintSupported:t.context.elementIndexUint,scene3DOnly:r,vertexCacheOptimize:e.vertexCacheOptimize,compressVertices:e.compressVertices,modelMatrix:e.modelMatrix,createPickOffsets:e._createPickOffsets},n),n);e._createGeometryResults=void 0,e._state=V.Z.COMBINING,(0,L.Z)(s,(function(i){const n=U.Z.unpackCombineGeometryResults(i);e._geometries=n.geometries,e._attributeLocations=n.attributeLocations,e.modelMatrix=v.Z.clone(n.modelMatrix,e.modelMatrix),e._pickOffsets=n.pickOffsets,e._offsetInstanceExtend=n.offsetInstanceExtend,e._instanceBoundingSpheres=n.boundingSpheres,e._instanceBoundingSpheresCV=n.boundingSpheresCV,(0,f.Z)(e._geometries)&&e._geometries.length>0?(e._recomputeBoundingSpheres=!0,e._state=V.Z.COMBINED):xe(e,t,V.Z.FAILED,void 0)})).otherwise((function(i){xe(e,t,V.Z.FAILED,i)}))}}(this,e):function(e,t){const i=Array.isArray(e.geometryInstances)?e.geometryInstances:[e.geometryInstances],n=e._numberOfInstances=i.length,r=new Array(n),o=e._instanceIds;let s,a,c=0;for(a=0;a<n;a++){s=i[a];const e=s.geometry;let t;t=(0,f.Z)(e.attributes)&&(0,f.Z)(e.primitiveType)?X(e):e.constructor.createGeometry(e),r[c++]=J(s,t),o.push(s.id)}r.length=c;const u=t.scene3DOnly,l=t.mapProjection,h=U.Z.combineGeometry({instances:r,ellipsoid:l.ellipsoid,projection:l,elementIndexUintSupported:t.context.elementIndexUint,scene3DOnly:u,vertexCacheOptimize:e.vertexCacheOptimize,compressVertices:e.compressVertices,modelMatrix:e.modelMatrix,createPickOffsets:e._createPickOffsets});e._geometries=h.geometries,e._attributeLocations=h.attributeLocations,e.modelMatrix=v.Z.clone(h.modelMatrix,e.modelMatrix),e._pickOffsets=h.pickOffsets,e._offsetInstanceExtend=h.offsetInstanceExtend,e._instanceBoundingSpheres=h.boundingSpheres,e._instanceBoundingSpheresCV=h.boundingSpheresCV,(0,f.Z)(e._geometries)&&e._geometries.length>0?(e._recomputeBoundingSpheres=!0,e._state=V.Z.COMBINED):xe(e,t,V.Z.FAILED,void 0)}(this,e)),this._state===V.Z.COMBINED&&(function(e,t){if(!(0,f.Z)(e._batchTableAttributeIndices.distanceDisplayCondition)||e._batchTableBoundingSpheresUpdated)return;const i=e._batchTableBoundingSphereAttributeIndices,r=i.center3DHigh,o=i.center3DLow,s=i.center2DHigh,a=i.center2DLow,c=i.radius,u=t.mapProjection,l=u.ellipsoid,h=e._batchTable,d=e._instanceBoundingSpheres,p=d.length;for(let i=0;i<p;++i){let p=d[i];if(!(0,f.Z)(p))continue;const m=e.modelMatrix;(0,f.Z)(m)&&(p=n.Z.transform(p,m,le));const Z=p.center,g=p.radius;let y=_.Z.fromCartesian(Z,ae);if(h.setBatchedAttribute(i,r,y.high),h.setBatchedAttribute(i,o,y.low),!t.scene3DOnly){const e=l.cartesianToCartographic(Z,ce),t=u.project(e,ue);y=_.Z.fromCartesian(t,ae),h.setBatchedAttribute(i,s,y.high),h.setBatchedAttribute(i,a,y.low)}h.setBatchedAttribute(i,c,g)}e._batchTableBoundingSpheresUpdated=!0}(this,e),fe(this,e),function(e,t){const i=e._attributeLocations,r=e._geometries,o=t.scene3DOnly,s=t.context,a=[],c=r.length;for(let u=0;u<c;++u){const c=r[u];if(a.push(M.Z.fromGeometry({context:s,geometry:c,attributeLocations:i,bufferUsage:S.Z.STATIC_DRAW,interleave:e._interleave})),(0,f.Z)(e._createBoundingVolumeFunction))e._createBoundingVolumeFunction(t,c);else if(e._boundingSpheres.push(n.Z.clone(c.boundingSphere)),e._boundingSphereWC.push(new n.Z),!o){const t=c.boundingSphereCV.center,i=t.x,r=t.y,o=t.z;t.x=o,t.y=i,t.z=r,e._boundingSphereCV.push(n.Z.clone(c.boundingSphereCV)),e._boundingSphere2D.push(new n.Z),e._boundingSphereMorph.push(new n.Z)}}e._va=a,e._primitiveType=r[0].primitiveType,e.releaseGeometryInstances&&(e.geometryInstances=void 0),e._geometries=void 0,xe(e,t,V.Z.COMPLETE,void 0)}(this,e)),!this.show||this._state!==V.Z.COMPLETE)return;this._batchTableOffsetsUpdated||fe(this,e),this._recomputeBoundingSpheres&&function(e,t){const i=e._batchTableAttributeIndices.offset;if(!e._recomputeBoundingSpheres||!(0,f.Z)(i))return void(e._recomputeBoundingSpheres=!1);let r;const s=e._offsetInstanceExtend,a=e._instanceBoundingSpheres,c=a.length;let u=e._tempBoundingSpheres;if(!(0,f.Z)(u)){for(u=new Array(c),r=0;r<c;r++)u[r]=new n.Z;e._tempBoundingSpheres=u}for(r=0;r<c;++r){let t=u[r];const n=e._batchTable.getBatchedAttribute(r,i,new o.Z);t=a[r].clone(t),ve(t,n,s[r])}const l=[],h=[],d=[];for(r=0;r<c;++r){const e=u[r];e.center.x-e.radius>0||n.Z.intersectPlane(e,T.Z.ORIGIN_ZX_PLANE)!==w.Z.INTERSECTING?l.push(e):(h.push(e),d.push(e))}let p=l[0],m=d[0],_=h[0];for(r=1;r<l.length;r++)p=n.Z.union(p,l[r]);for(r=1;r<d.length;r++)m=n.Z.union(m,d[r]);for(r=1;r<h.length;r++)_=n.Z.union(_,h[r]);const Z=[];for((0,f.Z)(p)&&Z.push(p),(0,f.Z)(m)&&Z.push(m),(0,f.Z)(_)&&Z.push(_),r=0;r<Z.length;r++){const i=Z[r].clone(e._boundingSpheres[r]);e._boundingSpheres[r]=i,e._boundingSphereCV[r]=n.Z.projectTo2D(i,t.mapProjection,e._boundingSphereCV[r])}G._updateBoundingVolumes(e,t,e.modelMatrix,!0),e._recomputeBoundingSpheres=!1}(this,e);const i=this.appearance,r=i.material;let s=!1,a=!1;this._appearance!==i?(this._appearance=i,this._material=r,s=!0,a=!0):this._material!==r&&(this._material=r,a=!0);const c=this.depthFailAppearance,l=(0,f.Z)(c)?c.material:void 0;this._depthFailAppearance!==c?(this._depthFailAppearance=c,this._depthFailMaterial=l,s=!0,a=!0):this._depthFailMaterial!==l&&(this._depthFailMaterial=l,a=!0);const p=this._appearance.isTranslucent();this._translucent!==p&&(this._translucent=p,s=!0),(0,f.Z)(this._material)&&this._material.update(t);const Z=i.closed&&p;s&&(0,d.Z)(this._createRenderStatesFunction,pe)(this,t,i,Z),a&&(0,d.Z)(this._createShaderProgramFunction,me)(this,e,i),(s||a)&&(0,d.Z)(this._createCommandsFunction,ye)(this,i,r,p,Z,this._colorCommands,this._pickCommands,e),(0,d.Z)(this._updateAndQueueCommandsFunction,be)(this,e,this._colorCommands,this._pickCommands,this.modelMatrix,this.cull,this.debugShowBoundingVolume,Z)};const Ae=new n.Z,we=new n.Z;function ve(e,t,i){if(i===A.Z.TOP){const i=n.Z.clone(e,Ae),r=n.Z.clone(e,we);r.center=o.Z.add(r.center,t,r.center),e=n.Z.union(i,r,e)}else i===A.Z.ALL&&(e.center=o.Z.add(e.center,t,e.center));return e}function Te(e,t,i){return function(){const n=e.getBatchedAttribute(t,i),r=e.attributes[i],o=r.componentsPerAttribute,s=h.Z.createTypedArray(r.componentDatatype,o);return(0,f.Z)(n.constructor.pack)?n.constructor.pack(n,s,0):s[0]=n,s}}function Ce(e,t,i,n,r){return function(o){if(!(0,f.Z)(o)||!(0,f.Z)(o.length)||o.length<1||o.length>4)throw new m.Z("value must be and array with length between 1 and 4.");const s=K(o);e.setBatchedAttribute(t,i,s),"offset"===r&&(n._recomputeBoundingSpheres=!0,n._batchTableOffsetsUpdated=!1)}}const Ee=new o.Z;function xe(e,t,i,n){e._error=n,e._state=i,t.afterRender.push((function(){e._ready=e._state===V.Z.COMPLETE||e._state===V.Z.FAILED,(0,f.Z)(n)?e._readyPromise.reject(n):e._readyPromise.resolve(e)}))}G.prototype.getGeometryInstanceAttributes=function(e){if(!(0,f.Z)(e))throw new m.Z("id is required");if(!(0,f.Z)(this._batchTable))throw new m.Z("must call update before calling getGeometryInstanceAttributes");let t=-1;const i=this._lastPerInstanceAttributeIndex,r=this._instanceIds,s=r.length;for(let n=0;n<s;++n){const o=(i+n)%s;if(e===r[o]){t=o;break}}if(-1===t)return;let a=this._perInstanceAttributeCache[t];if((0,f.Z)(a))return a;const c=this._batchTable,u=this._batchTableAttributeIndices;a={};const l={};for(const e in u)if(u.hasOwnProperty(e)){const i=u[e];l[e]={get:Te(c,t,i),set:Ce(c,t,i,this,e)}}return function(e,t,i){t.boundingSphere={get:function(){let r=e._instanceBoundingSpheres[i];if((0,f.Z)(r)){r=r.clone();const s=e.modelMatrix,a=t.offset;(0,f.Z)(a)&&ve(r,o.Z.fromArray(a.get(),0,Ee),e._offsetInstanceExtend[i]),(0,f.Z)(s)&&(r=n.Z.transform(r,s))}return r}},t.boundingSphereCV={get:function(){return e._instanceBoundingSpheresCV[i]}}}(this,l,t),function(e,t,i){t.pickId={get:function(){return e._pickIds[i]}}}(this,l,t),Object.defineProperties(a,l),this._lastPerInstanceAttributeIndex=t,this._perInstanceAttributeCache[t]=a,a},G.prototype.isDestroyed=function(){return!1},G.prototype.destroy=function(){let e,t;this._sp=this._sp&&this._sp.destroy(),this._spDepthFail=this._spDepthFail&&this._spDepthFail.destroy();const i=this._va;for(e=i.length,t=0;t<e;++t)i[t].destroy();this._va=void 0;const n=this._pickIds;for(e=n.length,t=0;t<e;++t)n[t].destroy();return this._pickIds=void 0,this._batchTable=this._batchTable&&this._batchTable.destroy(),this._instanceIds=void 0,this._perInstanceAttributeCache=void 0,this._attributeLocations=void 0,(0,p.Z)(this)};const Se=G},417067:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(416974),r=i(406144),o=i(426468),s=i(54879),a=i(446938);function c(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),this._primitives=[],this._guid=(0,n.Z)(),this._zIndex=void 0,this.show=(0,r.Z)(e.show,!0),this.destroyPrimitives=(0,r.Z)(e.destroyPrimitives,!0)}function u(e,t){if(!e.contains(t))throw new a.Z("primitive is not in this collection.");return e._primitives.indexOf(t)}Object.defineProperties(c.prototype,{length:{get:function(){return this._primitives.length}}}),c.prototype.add=function(e,t){const i=(0,o.Z)(t);if(!(0,o.Z)(e))throw new a.Z("primitive is required.");if(i){if(t<0)throw new a.Z("index must be greater than or equal to zero.");if(t>this._primitives.length)throw new a.Z("index must be less than or equal to the number of primitives.")}const n=e._external=e._external||{};return(n._composites=n._composites||{})[this._guid]={collection:this},i?this._primitives.splice(t,0,e):this._primitives.push(e),e},c.prototype.remove=function(e){if(this.contains(e)){const t=this._primitives.indexOf(e);if(-1!==t)return this._primitives.splice(t,1),delete e._external._composites[this._guid],this.destroyPrimitives&&e.destroy(),!0}return!1},c.prototype.removeAndDestroy=function(e){const t=this.remove(e);return t&&!this.destroyPrimitives&&e.destroy(),t},c.prototype.removeAll=function(){const e=this._primitives,t=e.length;for(let i=0;i<t;++i)delete e[i]._external._composites[this._guid],this.destroyPrimitives&&e[i].destroy();this._primitives=[]},c.prototype.contains=function(e){return!!((0,o.Z)(e)&&e._external&&e._external._composites&&e._external._composites[this._guid])},c.prototype.raise=function(e){if((0,o.Z)(e)){const t=u(this,e),i=this._primitives;if(t!==i.length-1){const e=i[t];i[t]=i[t+1],i[t+1]=e}}},c.prototype.raiseToTop=function(e){if((0,o.Z)(e)){const t=u(this,e),i=this._primitives;t!==i.length-1&&(i.splice(t,1),i.push(e))}},c.prototype.lower=function(e){if((0,o.Z)(e)){const t=u(this,e),i=this._primitives;if(0!==t){const e=i[t];i[t]=i[t-1],i[t-1]=e}}},c.prototype.lowerToBottom=function(e){if((0,o.Z)(e)){const t=u(this,e),i=this._primitives;0!==t&&(i.splice(t,1),i.unshift(e))}},c.prototype.get=function(e){if(!(0,o.Z)(e))throw new a.Z("index is required.");return this._primitives[e]},c.prototype.update=function(e){if(!this.show)return;const t=this._primitives;for(let i=0;i<t.length;++i)t[i].update(e)},c.prototype.prePassesUpdate=function(e){const t=this._primitives;for(let i=0;i<t.length;++i){const n=t[i];(0,o.Z)(n.prePassesUpdate)&&n.prePassesUpdate(e)}},c.prototype.updateForPass=function(e,t){const i=this._primitives;for(let n=0;n<i.length;++n){const r=i[n];(0,o.Z)(r.updateForPass)&&r.updateForPass(e,t)}},c.prototype.postPassesUpdate=function(e){const t=this._primitives;for(let i=0;i<t.length;++i){const n=t[i];(0,o.Z)(n.postPassesUpdate)&&n.postPassesUpdate(e)}},c.prototype.isDestroyed=function(){return!1},c.prototype.destroy=function(){return this.removeAll(),(0,s.Z)(this)};const l=c},138323:(e,t,i)=>{"use strict";i.d(t,{Z:()=>C});var n=i(360791),r=i(997274),o=i(406144),s=i(426468),a=i(446938),c=i(253316),u=i(921099),l=i(915067),h=i(611843),d=i(451628),f=i(423035),p=i(546135),m=i(583917),_=i(81203),Z=i(786409);function g(e,t){const i=e.attributes,n=i.position,o=n.values.length/n.componentsPerAttribute;i.batchId=new h.Z({componentDatatype:r.Z.FLOAT,componentsPerAttribute:1,values:new Float32Array(o)});const s=i.batchId.values;for(let e=0;e<o;++e)s[e]=t}function y(e,t,i,n){let r,o,a;const c=n.length-1;if(c>=0){const e=n[c];r=e.offset+e.count,a=e.index,o=i[a].indices.length}else r=0,a=0,o=i[a].indices.length;const u=e.length;for(let c=0;c<u;++c){const u=e[c][t];if(!(0,s.Z)(u))continue;const l=u.indices.length;r+l>o&&(r=0,o=i[++a].indices.length),n.push({index:a,offset:r,count:l}),r+=l}}const b={};function A(e,t){const i=e.attributes;for(const e in i)if(i.hasOwnProperty(e)){const n=i[e];(0,s.Z)(n)&&(0,s.Z)(n.values)&&t.push(n.values.buffer)}(0,s.Z)(e.indices)&&t.push(e.indices.buffer)}function w(e,t){const i=e.length,n=new Float64Array(1+19*i);let r=0;n[r++]=i;for(let t=0;t<i;t++){const i=e[t];if(m.Z.pack(i.modelMatrix,n,r),r+=m.Z.packedLength,(0,s.Z)(i.attributes)&&(0,s.Z)(i.attributes.offset)){const e=i.attributes.offset.value;n[r]=e[0],n[r+1]=e[1],n[r+2]=e[2]}r+=3}return t.push(n.buffer),n}function v(e){const t=e.length,i=1+(n.Z.packedLength+1)*t,r=new Float32Array(i);let o=0;r[o++]=t;for(let i=0;i<t;++i){const t=e[i];(0,s.Z)(t)?(r[o++]=1,n.Z.pack(e[i],r,o)):r[o++]=0,o+=n.Z.packedLength}return r}function T(e){const t=new Array(e[0]);let i=0,r=1;for(;r<e.length;)1===e[r++]&&(t[i]=n.Z.unpack(e,r)),++i,r+=n.Z.packedLength;return t}b.combineGeometry=function(e){let t,i;const o=e.instances,c=o.length;let u,l,h=!1;c>0&&(t=function(e){const t=e.instances,i=e.projection,o=e.elementIndexUintSupported,c=e.scene3DOnly,u=e.vertexCacheOptimize,l=e.compressVertices,h=e.modelMatrix;let d,p,_,Z=t.length;for(d=0;d<Z;++d)if((0,s.Z)(t[d].geometry)){_=t[d].geometry.primitiveType;break}for(d=1;d<Z;++d)if((0,s.Z)(t[d].geometry)&&t[d].geometry.primitiveType!==_)throw new a.Z("All instance geometries must have the same primitiveType.");if(function(e,t,i){let n=!i;const r=e.length;let o;if(!n&&r>1){const t=e[0].modelMatrix;for(o=1;o<r;++o)if(!m.Z.equals(t,e[o].modelMatrix)){n=!0;break}}if(n)for(o=0;o<r;++o)(0,s.Z)(e[o].geometry)&&f.Z.transformToWorldCoordinates(e[o]);else m.Z.multiplyTransformation(t,e[0].modelMatrix,t)}(t,h,c),!c)for(d=0;d<Z;++d)(0,s.Z)(t[d].geometry)&&f.Z.splitLongitude(t[d]);if(function(e){const t=e.length;for(let i=0;i<t;++i){const t=e[i];(0,s.Z)(t.geometry)?g(t.geometry,i):(0,s.Z)(t.westHemisphereGeometry)&&(0,s.Z)(t.eastHemisphereGeometry)&&(g(t.westHemisphereGeometry,i),g(t.eastHemisphereGeometry,i))}}(t),u)for(d=0;d<Z;++d){const e=t[d];(0,s.Z)(e.geometry)?(f.Z.reorderForPostVertexCache(e.geometry),f.Z.reorderForPreVertexCache(e.geometry)):(0,s.Z)(e.westHemisphereGeometry)&&(0,s.Z)(e.eastHemisphereGeometry)&&(f.Z.reorderForPostVertexCache(e.westHemisphereGeometry),f.Z.reorderForPreVertexCache(e.westHemisphereGeometry),f.Z.reorderForPostVertexCache(e.eastHemisphereGeometry),f.Z.reorderForPreVertexCache(e.eastHemisphereGeometry))}let y=f.Z.combineInstances(t);for(Z=y.length,d=0;d<Z;++d){p=y[d];const e=p.attributes;if(c)for(const t in e)e.hasOwnProperty(t)&&e[t].componentDatatype===r.Z.DOUBLE&&f.Z.encodeAttribute(p,t,t+"3DHigh",t+"3DLow");else for(const t in e)if(e.hasOwnProperty(t)&&e[t].componentDatatype===r.Z.DOUBLE){const e=t+"3D",r=t+"2D";f.Z.projectTo2D(p,t,e,r,i),(0,s.Z)(p.boundingSphere)&&"position"===t&&(p.boundingSphereCV=n.Z.fromVertices(p.attributes.position2D.values)),f.Z.encodeAttribute(p,e,e+"High",e+"Low"),f.Z.encodeAttribute(p,r,r+"High",r+"Low")}l&&f.Z.compressVertices(p)}if(!o){let e=[];for(Z=y.length,d=0;d<Z;++d)p=y[d],e=e.concat(f.Z.fitToUnsignedShortIndices(p));y=e}return y}(e),t.length>0&&(i=f.Z.createAttributeLocations(t[0]),e.createPickOffsets&&(u=function(e,t){const i=[];return y(e,"geometry",t,i),y(e,"westHemisphereGeometry",t,i),y(e,"eastHemisphereGeometry",t,i),i}(o,t))),(0,s.Z)(o[0].attributes)&&(0,s.Z)(o[0].attributes.offset)&&(l=new Array(c),h=!0));const d=new Array(c),p=new Array(c);for(let e=0;e<c;++e){const t=o[e],i=t.geometry;(0,s.Z)(i)&&(d[e]=i.boundingSphere,p[e]=i.boundingSphereCV,h&&(l[e]=t.geometry.offsetAttribute));const r=t.eastHemisphereGeometry,a=t.westHemisphereGeometry;(0,s.Z)(r)&&(0,s.Z)(a)&&((0,s.Z)(r.boundingSphere)&&(0,s.Z)(a.boundingSphere)&&(d[e]=n.Z.union(r.boundingSphere,a.boundingSphere)),(0,s.Z)(r.boundingSphereCV)&&(0,s.Z)(a.boundingSphereCV)&&(p[e]=n.Z.union(r.boundingSphereCV,a.boundingSphereCV)))}return{geometries:t,modelMatrix:e.modelMatrix,attributeLocations:i,pickOffsets:u,offsetInstanceExtend:l,boundingSpheres:d,boundingSpheresCV:p}},b.packCreateGeometryResults=function(e,t){const i=new Float64Array(function(e){let t=1;const i=e.length;for(let r=0;r<i;r++){const i=e[r];if(++t,!(0,s.Z)(i))continue;const o=i.attributes;t+=7+2*n.Z.packedLength+((0,s.Z)(i.indices)?i.indices.length:0);for(const e in o)o.hasOwnProperty(e)&&(0,s.Z)(o[e])&&(t+=5+o[e].values.length)}return t}(e)),r=[],a={},c=e.length;let u=0;i[u++]=c;for(let t=0;t<c;t++){const c=e[t],l=(0,s.Z)(c);if(i[u++]=l?1:0,!l)continue;i[u++]=c.primitiveType,i[u++]=c.geometryType,i[u++]=(0,o.Z)(c.offsetAttribute,-1);const h=(0,s.Z)(c.boundingSphere)?1:0;i[u++]=h,h&&n.Z.pack(c.boundingSphere,i,u),u+=n.Z.packedLength;const d=(0,s.Z)(c.boundingSphereCV)?1:0;i[u++]=d,d&&n.Z.pack(c.boundingSphereCV,i,u),u+=n.Z.packedLength;const f=c.attributes,p=[];for(const e in f)f.hasOwnProperty(e)&&(0,s.Z)(f[e])&&(p.push(e),(0,s.Z)(a[e])||(a[e]=r.length,r.push(e)));i[u++]=p.length;for(let e=0;e<p.length;e++){const t=p[e],n=f[t];i[u++]=a[t],i[u++]=n.componentDatatype,i[u++]=n.componentsPerAttribute,i[u++]=n.normalize?1:0,i[u++]=n.values.length,i.set(n.values,u),u+=n.values.length}const m=(0,s.Z)(c.indices)?c.indices.length:0;i[u++]=m,m>0&&(i.set(c.indices,u),u+=m)}return t.push(i.buffer),{stringTable:r,packedData:i}},b.unpackCreateGeometryResults=function(e){const t=e.stringTable,i=e.packedData;let o;const s=new Array(i[0]);let a=0,c=1;for(;c<i.length;){if(1!==i[c++]){s[a++]=void 0;continue}const e=i[c++],u=i[c++];let f,m,_,Z,g,y=i[c++];-1===y&&(y=void 0),1===i[c++]&&(f=n.Z.unpack(i,c)),c+=n.Z.packedLength,1===i[c++]&&(m=n.Z.unpack(i,c)),c+=n.Z.packedLength;const b=new d.Z,A=i[c++];for(o=0;o<A;o++){const e=t[i[c++]],n=i[c++];g=i[c++];const o=0!==i[c++];_=i[c++],Z=r.Z.createTypedArray(n,_);for(let e=0;e<_;e++)Z[e]=i[c++];b[e]=new h.Z({componentDatatype:n,componentsPerAttribute:g,normalize:o,values:Z})}let w;if(_=i[c++],_>0){const e=Z.length/g;for(w=p.Z.createTypedArray(e,_),o=0;o<_;o++)w[o]=i[c++]}s[a++]=new l.Z({primitiveType:e,geometryType:u,boundingSphere:f,boundingSphereCV:m,indices:w,attributes:b,offsetAttribute:y})}return s},b.packCombineGeometryParameters=function(e,t){const i=e.createGeometryResults,n=i.length;for(let e=0;e<n;e++)t.push(i[e].packedData.buffer);return{createGeometryResults:e.createGeometryResults,packedInstances:w(e.instances,t),ellipsoid:e.ellipsoid,isGeographic:e.projection instanceof u.Z,elementIndexUintSupported:e.elementIndexUintSupported,scene3DOnly:e.scene3DOnly,vertexCacheOptimize:e.vertexCacheOptimize,compressVertices:e.compressVertices,modelMatrix:e.modelMatrix,createPickOffsets:e.createPickOffsets}},b.unpackCombineGeometryParameters=function(e){const t=function(e){const t=e,i=new Array(t[0]);let n=0,r=1;for(;r<t.length;){const e=m.Z.unpack(t,r);let o;r+=m.Z.packedLength,(0,s.Z)(t[r])&&(o={offset:new _.Z(t[r],t[r+1],t[r+2])}),r+=3,i[n++]={modelMatrix:e,attributes:o}}return i}(e.packedInstances),i=e.createGeometryResults,n=i.length;let r=0;for(let e=0;e<n;e++){const n=b.unpackCreateGeometryResults(i[e]),o=n.length;for(let e=0;e<o;e++){const i=n[e];t[r].geometry=i,++r}}const o=c.Z.clone(e.ellipsoid);return{instances:t,ellipsoid:o,projection:e.isGeographic?new u.Z(o):new Z.Z(o),elementIndexUintSupported:e.elementIndexUintSupported,scene3DOnly:e.scene3DOnly,vertexCacheOptimize:e.vertexCacheOptimize,compressVertices:e.compressVertices,modelMatrix:m.Z.clone(e.modelMatrix),createPickOffsets:e.createPickOffsets}},b.packCombineGeometryResults=function(e,t){(0,s.Z)(e.geometries)&&function(e,t){const i=e.length;for(let n=0;n<i;++n)A(e[n],t)}(e.geometries,t);const i=v(e.boundingSpheres),n=v(e.boundingSpheresCV);return t.push(i.buffer,n.buffer),{geometries:e.geometries,attributeLocations:e.attributeLocations,modelMatrix:e.modelMatrix,pickOffsets:e.pickOffsets,offsetInstanceExtend:e.offsetInstanceExtend,boundingSpheres:i,boundingSpheresCV:n}},b.unpackCombineGeometryResults=function(e){return{geometries:e.geometries,attributeLocations:e.attributeLocations,modelMatrix:e.modelMatrix,pickOffsets:e.pickOffsets,offsetInstanceExtend:e.offsetInstanceExtend,boundingSpheres:T(e.boundingSpheres),boundingSpheresCV:T(e.boundingSpheresCV)}};const C=b},305722:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({READY:0,CREATING:1,CREATED:2,COMBINING:3,COMBINED:4,COMPLETE:5,FAILED:6})},785049:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(357299),r=i(406144),o=i(426468);function s(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),n.Z.typeOf.number("options.count",e.count),this._name=e.name,this._id=e.id,this._count=e.count,this._extras=e.extras,this._extensions=e.extensions,this._metadataTable=e.metadataTable,this._jsonMetadataTable=e.jsonMetadataTable,this._batchTableHierarchy=e.batchTableHierarchy}Object.defineProperties(s.prototype,{name:{get:function(){return this._name}},id:{get:function(){return this._id}},count:{get:function(){return this._count}},class:{get:function(){if((0,o.Z)(this._metadataTable))return this._metadataTable.class}},extras:{get:function(){return this._extras}},extensions:{get:function(){return this._extensions}}}),s.prototype.hasProperty=function(e,t){return n.Z.typeOf.number("index",e),n.Z.typeOf.string("propertyId",t),!(!(0,o.Z)(this._metadataTable)||!this._metadataTable.hasProperty(t))||!(!(0,o.Z)(this._jsonMetadataTable)||!this._jsonMetadataTable.hasProperty(t))||!(!(0,o.Z)(this._batchTableHierarchy)||!this._batchTableHierarchy.hasProperty(e,t))},s.prototype.hasPropertyBySemantic=function(e,t){return n.Z.typeOf.number("index",e),n.Z.typeOf.string("semantic",t),!!(0,o.Z)(this._metadataTable)&&this._metadataTable.hasPropertyBySemantic(t)},s.prototype.propertyExists=function(e){return n.Z.typeOf.string("propertyId",e),!(!(0,o.Z)(this._metadataTable)||!this._metadataTable.hasProperty(e))||!(!(0,o.Z)(this._jsonMetadataTable)||!this._jsonMetadataTable.hasProperty(e))||!(!(0,o.Z)(this._batchTableHierarchy)||!this._batchTableHierarchy.propertyExists(e))},s.prototype.propertyExistsBySemantic=function(e){return n.Z.typeOf.string("semantic",e),!!(0,o.Z)(this._metadataTable)&&this._metadataTable.hasPropertyBySemantic(e)};const a=[];s.prototype.getPropertyIds=function(e,t){return(t=(0,o.Z)(t)?t:[]).length=0,(0,o.Z)(this._metadataTable)&&t.push.apply(t,this._metadataTable.getPropertyIds(a)),(0,o.Z)(this._jsonMetadataTable)&&t.push.apply(t,this._jsonMetadataTable.getPropertyIds(a)),(0,o.Z)(this._batchTableHierarchy)&&t.push.apply(t,this._batchTableHierarchy.getPropertyIds(e,a)),t},s.prototype.getProperty=function(e,t){let i;return(0,o.Z)(this._metadataTable)&&(i=this._metadataTable.getProperty(e,t),(0,o.Z)(i))||(0,o.Z)(this._jsonMetadataTable)&&(i=this._jsonMetadataTable.getProperty(e,t),(0,o.Z)(i))||(0,o.Z)(this._batchTableHierarchy)&&(i=this._batchTableHierarchy.getProperty(e,t),(0,o.Z)(i))?i:void 0},s.prototype.setProperty=function(e,t,i){return!(!(0,o.Z)(this._metadataTable)||!this._metadataTable.setProperty(e,t,i))||!(!(0,o.Z)(this._jsonMetadataTable)||!this._jsonMetadataTable.setProperty(e,t,i))||(0,o.Z)(this._batchTableHierarchy)&&this._batchTableHierarchy.setProperty(e,t,i)},s.prototype.getPropertyBySemantic=function(e,t){if((0,o.Z)(this._metadataTable))return this._metadataTable.getPropertyBySemantic(e,t)},s.prototype.setPropertyBySemantic=function(e,t,i){return!!(0,o.Z)(this._metadataTable)&&this._metadataTable.setPropertyBySemantic(e,t,i)},s.prototype.getPropertyTypedArray=function(e){if(n.Z.typeOf.string("propertyId",e),(0,o.Z)(this._metadataTable))return this._metadataTable.getPropertyTypedArray(e)},s.prototype.getPropertyTypedArrayBySemantic=function(e){if(n.Z.typeOf.string("semantic",e),(0,o.Z)(this._metadataTable))return this._metadataTable.getPropertyTypedArrayBySemantic(e)};const c=s},752593:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(357299),r=i(406144),o=i(426468),s=i(951346);function a(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).featureTexture,i=e.class,a=e.textures;n.Z.typeOf.object("options.featureTexture",t),n.Z.typeOf.object("options.class",i),n.Z.typeOf.object("options.textures",a);const c=t.extensions,u=t.extras,l={};if((0,o.Z)(t.properties))for(const e in t.properties)t.properties.hasOwnProperty(e)&&(l[e]=new s.Z({property:t.properties[e],classProperty:i.properties[e],textures:a}));this._name=e.name,this._id=e.id,this._class=i,this._properties=l,this._extras=u,this._extensions=c}Object.defineProperties(a.prototype,{name:{get:function(){return this._name}},id:{get:function(){return this._id}},class:{get:function(){return this._class}},extras:{get:function(){return this._extras}},extensions:{get:function(){return this._extensions}}}),a.prototype.getProperty=function(e){return n.Z.typeOf.string("propertyId",e),this._properties[e]};const c=a},951346:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(357299),r=i(406144),o=i(169474);function s(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).property,i=e.classProperty,s=e.textures;n.Z.typeOf.object("options.property",t),n.Z.typeOf.object("options.classProperty",i),n.Z.typeOf.object("options.textures",s);const a=t.texture,c=o.Z.createModelTextureReader({textureInfo:a,channels:t.channels,texture:s[a.index]});this._textureReader=c,this._classProperty=i,this._extras=t.extras,this._extensions=t.extensions}Object.defineProperties(s.prototype,{textureReader:{get:function(){return this._textureReader}},extras:{get:function(){return this._extras}},extensions:{get:function(){return this._extensions}}});const a=s},900199:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(919382),r=i(532901);function o(e){this._ellipsoid=new r.Z(e.ellipsoid,n.Z.ZERO)}Object.defineProperties(o.prototype,{ellipsoid:{get:function(){return this._ellipsoid}}});const s=o},88029:(e,t,i)=>{"use strict";i.d(t,{Z:()=>z});var n=i(919382),r=i(698907),o=i(406144),s=i(426468),a=i(446938),c=i(197685),u=i(485083),l=i(362017),h=i(583917),d=i(610490),f=i(736404),p=i(24401),m=i(523501),_=i(137134),Z=i(900199),g=i(505697),y=i(437358),b=i(506678),A=i(554642),w=i(970941);function v(e){if(!(0,s.Z)(e)||!(0,s.Z)(e.tileProvider))throw new a.Z("options.tileProvider is required.");if((0,s.Z)(e.tileProvider.quadtree))throw new a.Z("A QuadtreeTileProvider can only be used with a single QuadtreePrimitive");this._tileProvider=e.tileProvider,this._tileProvider.quadtree=this,this._debug={enableDebugOutput:!1,maxDepth:0,maxDepthVisited:0,tilesVisited:0,tilesCulled:0,tilesRendered:0,tilesWaitingForChildren:0,lastMaxDepth:-1,lastMaxDepthVisited:-1,lastTilesVisited:-1,lastTilesCulled:-1,lastTilesRendered:-1,lastTilesWaitingForChildren:-1,suspendLodUpdate:!1};const t=this._tileProvider.tilingScheme.ellipsoid;this._tilesToRender=[],this._tileLoadQueueHigh=[],this._tileLoadQueueMedium=[],this._tileLoadQueueLow=[],this._tileReplacementQueue=new A.Z,this._levelZeroTiles=void 0,this._loadQueueTimeSlice=5,this._tilesInvalidated=!1,this._addHeightCallbacks=[],this._removeHeightCallbacks=[],this._tileToUpdateHeights=[],this._lastTileIndex=0,this._updateHeightsTimeSlice=2,this._cameraPositionCartographic=void 0,this._cameraReferenceFrameOriginCartographic=void 0,this.maximumScreenSpaceError=(0,o.Z)(e.maximumScreenSpaceError,2),this.tileCacheSize=(0,o.Z)(e.tileCacheSize,100),this.loadingDescendantLimit=20,this.preloadAncestors=!0,this.preloadSiblings=!1,this._occluders=new Z.Z({ellipsoid:t}),this._tileLoadProgressEvent=new c.Z,this._lastTileLoadQueueLength=0,this._lastSelectionFrameNumber=void 0}function T(e){const t=e._debug;t.maxDepth=0,t.maxDepthVisited=0,t.tilesVisited=0,t.tilesCulled=0,t.tilesRendered=0,t.tilesWaitingForChildren=0,e._tileLoadQueueHigh.length=0,e._tileLoadQueueMedium.length=0,e._tileLoadQueueLow.length=0}let C;Object.defineProperties(v.prototype,{tileProvider:{get:function(){return this._tileProvider}},tileLoadProgressEvent:{get:function(){return this._tileLoadProgressEvent}},occluders:{get:function(){return this._occluders}}}),v.prototype.invalidateAllTiles=function(){this._tilesInvalidated=!0},v.prototype.forEachLoadedTile=function(e){let t=this._tileReplacementQueue.head;for(;(0,s.Z)(t);)t.state!==y.Z.START&&e(t),t=t.replacementNext},v.prototype.forEachRenderedTile=function(e){const t=this._tilesToRender;for(let i=0,n=t.length;i<n;++i)e(t[i])},v.prototype.updateHeight=function(e,t){const i=this,n={positionOnEllipsoidSurface:void 0,positionCartographic:e,level:-1,callback:t,removeFunc:function(){const e=i._addHeightCallbacks,t=e.length;for(let i=0;i<t;++i)if(e[i]===n){e.splice(i,1);break}i._removeHeightCallbacks.push(n)}};return i._addHeightCallbacks.push(n),n.removeFunc},v.prototype.update=function(e){(0,s.Z)(this._tileProvider.update)&&this._tileProvider.update(e)},v.prototype.beginFrame=function(e){e.passes.render&&(this._tilesInvalidated&&(function(e){const t=e._tileReplacementQueue;t.head=void 0,t.tail=void 0,t.count=0,T(e);const i=e._levelZeroTiles;if((0,s.Z)(i))for(let t=0;t<i.length;++t){const n=i[t].customData,r=n.length;for(let t=0;t<r;++t){const i=n[t];i.level=0,e._addHeightCallbacks.push(i)}i[t].freeResources()}e._levelZeroTiles=void 0,e._tileProvider.cancelReprojections()}(this),this._tilesInvalidated=!1),this._tileProvider.initialize(e),T(this),this._debug.suspendLodUpdate||this._tileReplacementQueue.markStartOfRenderFrame())},v.prototype.render=function(e){const t=e.passes,i=this._tileProvider;t.render&&(i.beginUpdate(e),function(e,t){const i=e._debug;if(i.suspendLodUpdate)return;let n;e._tilesToRender.length=0;const r=e._tileProvider;if(!(0,s.Z)(e._levelZeroTiles)){if(!r.ready)return;{const t=r.tilingScheme;e._levelZeroTiles=g.Z.createLevelZeroTiles(t);const i=e._levelZeroTiles.length;if(O.length<i)for(O=new Array(i),n=0;n<i;++n)void 0===O[n]&&(O[n]=new D)}}let o;e._occluders.ellipsoid.cameraPosition=t.camera.positionWC;const a=e._levelZeroTiles,c=a.length>1?e._occluders:void 0;C=t.camera.positionCartographic,a.sort(x);const u=e._addHeightCallbacks,l=e._removeHeightCallbacks,d=t.frameNumber;let f;if(u.length>0||l.length>0){for(n=0,f=a.length;n<f;++n)o=a[n],o._updateCustomData(d,u,l);u.length=0,l.length=0}const p=t.camera;e._cameraPositionCartographic=p.positionCartographic;const m=h.Z.getTranslation(p.transform,S);for(e._cameraReferenceFrameOriginCartographic=e.tileProvider.tilingScheme.ellipsoid.cartesianToCartographic(m,e._cameraReferenceFrameOriginCartographic),n=0,f=a.length;n<f;++n)o=a[n],e._tileReplacementQueue.markTileRendered(o),o.renderable?B(e,o,r,t,c,!1,O[n]):(I(e,e._tileLoadQueueHigh,o,t),++i.tilesWaitingForChildren);e._lastSelectionFrameNumber=d}(this,e),function(e,t){const i=e._tileProvider,n=e._tilesToRender;for(let e=0,r=n.length;e<r;++e){const r=n[e];i.showTileThisFrame(r,t)}}(this,e),i.endUpdate(e)),t.pick&&this._tilesToRender.length>0&&i.updateForPick(e)},v.prototype.endFrame=function(e){e.passes.render&&e.mode!==b.Z.MORPHING&&(function(e,t){const i=e._tileLoadQueueHigh,n=e._tileLoadQueueMedium,r=e._tileLoadQueueLow;if(0===i.length&&0===n.length&&0===r.length)return;e._tileReplacementQueue.trimTiles(e.tileCacheSize);const o=(0,u.Z)()+e._loadQueueTimeSlice,s=e._tileProvider;let a=N(e,t,s,o,i,!1);a=N(e,t,s,o,n,a),N(e,t,s,o,r,a)}(this,e),function(e,t){if(!e.tileProvider.ready)return;const i=V;i.length=0;const o=e._tileToUpdateHeights,a=(0,u.Z)()+e._updateHeightsTimeSlice,c=t.mode,l=t.mapProjection,h=e.tileProvider.tilingScheme.ellipsoid;let d;for(;o.length>0;){const t=o[0];if(!(0,s.Z)(t.data)||!(0,s.Z)(t.data.mesh)){const n=t._lastSelectionResultFrame===e._lastSelectionFrameNumber?t._lastSelectionResult:w.Z.NONE;n!==w.Z.RENDERED&&n!==w.Z.CULLED_BUT_NEEDED||i.push(t),o.shift(),e._lastTileIndex=0;continue}const f=t.customData,p=f.length;let m=!1;for(d=e._lastTileIndex;d<p;++d){const e=f[d],i=t.data.terrainData,o=(0,s.Z)(i)&&i.wasCreatedByUpsampling();if(t.level>e.level&&!o){if((0,s.Z)(e.positionOnEllipsoidSurface)||(e.positionOnEllipsoidSurface=n.Z.fromRadians(e.positionCartographic.longitude,e.positionCartographic.latitude,0,h)),c===b.Z.SCENE3D){const i=h.geodeticSurfaceNormal(e.positionOnEllipsoidSurface,F.direction),r=h.getSurfaceNormalIntersectionWithZAxis(e.positionOnEllipsoidSurface,11500,F.origin);if(!(0,s.Z)(r)){let r=0;(0,s.Z)(t.data.tileBoundingRegion)&&(r=t.data.tileBoundingRegion.minimumHeight);const o=Math.min(r,-11500),a=n.Z.multiplyByScalar(i,Math.abs(o)+1,U);n.Z.subtract(e.positionOnEllipsoidSurface,a,F.origin)}}else r.Z.clone(e.positionCartographic,k),k.height=-11500,l.project(k,U),n.Z.fromElements(U.z,U.x,U.y,U),n.Z.clone(U,F.origin),n.Z.clone(n.Z.UNIT_X,F.direction);const i=t.data.pick(F,c,l,!1,U);(0,s.Z)(i)&&(e.callback(i),e.level=t.level)}if((0,u.Z)()>=a){m=!0;break}}if(m){e._lastTileIndex=d;break}e._lastTileIndex=0,o.shift()}for(d=0;d<i.length;d++)o.push(i[d])}(this,e),function(e,t){const i=e._tileLoadQueueHigh.length+e._tileLoadQueueMedium.length+e._tileLoadQueueLow.length;(i!==e._lastTileLoadQueueLength||e._tilesInvalidated)&&(t.afterRender.push(c.Z.prototype.raiseEvent.bind(e._tileLoadProgressEvent,i)),e._lastTileLoadQueueLength=i);const n=e._debug;n.enableDebugOutput&&!n.suspendLodUpdate&&(n.maxDepth=e._tilesToRender.reduce((function(e,t){return Math.max(e,t.level)}),-1),n.tilesRendered=e._tilesToRender.length,n.tilesVisited===n.lastTilesVisited&&n.tilesRendered===n.lastTilesRendered&&n.tilesCulled===n.lastTilesCulled&&n.maxDepth===n.lastMaxDepth&&n.tilesWaitingForChildren===n.lastTilesWaitingForChildren&&n.maxDepthVisited===n.lastMaxDepthVisited||(console.log("Visited "+n.tilesVisited+", Rendered: "+n.tilesRendered+", Culled: "+n.tilesCulled+", Max Depth Rendered: "+n.maxDepth+", Max Depth Visited: "+n.maxDepthVisited+", Waiting for children: "+n.tilesWaitingForChildren),n.lastTilesVisited=n.tilesVisited,n.lastTilesRendered=n.tilesRendered,n.lastTilesCulled=n.tilesCulled,n.lastMaxDepth=n.maxDepth,n.lastTilesWaitingForChildren=n.tilesWaitingForChildren,n.lastMaxDepthVisited=n.maxDepthVisited))}(this,e))},v.prototype.isDestroyed=function(){return!1},v.prototype.destroy=function(){this._tileProvider=this._tileProvider&&this._tileProvider.destroy()};const E=new r.Z;function x(e,t){let i=m.Z.center(e.rectangle,E);const n=i.longitude-C.longitude,r=i.latitude-C.latitude;i=m.Z.center(t.rectangle,E);const o=i.longitude-C.longitude,s=i.latitude-C.latitude;return n*n+r*r-(o*o+s*s)}const S=new n.Z;let O=[];function I(e,t,i,n){i.needsLoading&&(void 0!==e.tileProvider.computeTileLoadPriority&&(i._loadPriority=e.tileProvider.computeTileLoadPriority(i,n)),t.push(i))}function D(){this.allAreRenderable=!0,this.anyWereRenderedLastFrame=!1,this.notYetRenderableCount=0}function P(){this.southwest=new D,this.southeast=new D,this.northwest=new D,this.northeast=new D}P.prototype.combine=function(e){const t=this.southwest,i=this.southeast,n=this.northwest,r=this.northeast;e.allAreRenderable=t.allAreRenderable&&i.allAreRenderable&&n.allAreRenderable&&r.allAreRenderable,e.anyWereRenderedLastFrame=t.anyWereRenderedLastFrame||i.anyWereRenderedLastFrame||n.anyWereRenderedLastFrame||r.anyWereRenderedLastFrame,e.notYetRenderableCount=t.notYetRenderableCount+i.notYetRenderableCount+n.notYetRenderableCount+r.notYetRenderableCount};const R=new Array(31);for(let e=0;e<R.length;++e)R[e]=new P;function B(e,t,i,n,r,o,a){if(i.computeTileVisibility(t,n,r)!==_.Z.NONE)return function(e,t,i,n,r){const o=e._debug;++o.tilesVisited,e._tileReplacementQueue.markTileRendered(i),i._updateCustomData(t.frameNumber),i.level>o.maxDepthVisited&&(o.maxDepthVisited=i.level);const a=function(e,t,i){if(t.mode===b.Z.SCENE2D||t.camera.frustum instanceof d.Z||t.camera.frustum instanceof f.Z)return function(e,t,i){let n=t.camera.frustum;(0,s.Z)(n._offCenterFrustum)&&(n=n._offCenterFrustum);const r=t.context,o=r.drawingBufferWidth,a=r.drawingBufferHeight;let c=e._tileProvider.getLevelMaximumGeometricError(i.level)/(Math.max(n.top-n.bottom,n.right-n.left)/Math.max(o,a));return t.fog.enabled&&t.mode!==b.Z.SCENE2D&&(c-=l.Z.fog(i._distance,t.fog.density)*t.fog.sse),c/=t.pixelRatio,c}(e,t,i);const n=e._tileProvider.getLevelMaximumGeometricError(i.level),r=i._distance;let o=n*t.context.drawingBufferHeight/(r*t.camera.frustum.sseDenominator);return t.fog.enabled&&(o-=l.Z.fog(r,t.fog.density)*t.fog.sse),o/=t.pixelRatio,o}(e,t,i)<e.maximumScreenSpaceError,c=i.southwestChild,u=i.southeastChild,h=i.northwestChild,p=i.northeastChild,m=e._lastSelectionFrameNumber,_=i._lastSelectionResultFrame===m?i._lastSelectionResult:w.Z.NONE,Z=e.tileProvider;if(a||n){const o=w.Z.originalResult(_)===w.Z.RENDERED,c=w.Z.originalResult(_)===w.Z.CULLED||_===w.Z.NONE,u=i.state===y.Z.DONE;let l=o||c||u;if(l||(0,s.Z)(Z.canRenderWithoutLosingDetail)&&(l=Z.canRenderWithoutLosingDetail(i)),l)return a&&I(e,e._tileLoadQueueMedium,i,t),M(e,i),r.allAreRenderable=i.renderable,r.anyWereRenderedLastFrame=_===w.Z.RENDERED,r.notYetRenderableCount=i.renderable?0:1,i._lastSelectionResultFrame=t.frameNumber,i._lastSelectionResult=w.Z.RENDERED,void(r.anyWereRenderedLastFrame||e._tileToUpdateHeights.push(i));n=!0,a&&I(e,e._tileLoadQueueHigh,i,t)}if(Z.canRefine(i)){if(c.upsampledFromParent&&u.upsampledFromParent&&h.upsampledFromParent&&p.upsampledFromParent)return M(e,i),I(e,e._tileLoadQueueMedium,i,t),e._tileReplacementQueue.markTileRendered(c),e._tileReplacementQueue.markTileRendered(u),e._tileReplacementQueue.markTileRendered(h),e._tileReplacementQueue.markTileRendered(p),r.allAreRenderable=i.renderable,r.anyWereRenderedLastFrame=_===w.Z.RENDERED,r.notYetRenderableCount=i.renderable?0:1,i._lastSelectionResultFrame=t.frameNumber,i._lastSelectionResult=w.Z.RENDERED,void(r.anyWereRenderedLastFrame||e._tileToUpdateHeights.push(i));i._lastSelectionResultFrame=t.frameNumber,i._lastSelectionResult=w.Z.REFINED;const s=e._tilesToRender.length,a=e._tileLoadQueueLow.length,l=e._tileLoadQueueMedium.length,d=e._tileLoadQueueHigh.length,f=e._tileToUpdateHeights.length;if(function(e,t,i,n,r,o,s,a){const c=o.camera.positionCartographic,u=e._tileProvider,l=e._occluders,h=R[t.level],d=h.southwest,f=h.southeast,p=h.northwest,m=h.northeast;c.longitude<t.rectangle.east?c.latitude<t.rectangle.north?(B(e,t,u,o,l,s,d),B(e,i,u,o,l,s,f),B(e,n,u,o,l,s,p),B(e,r,u,o,l,s,m)):(B(e,n,u,o,l,s,p),B(e,t,u,o,l,s,d),B(e,r,u,o,l,s,m),B(e,i,u,o,l,s,f)):c.latitude<t.rectangle.north?(B(e,i,u,o,l,s,f),B(e,t,u,o,l,s,d),B(e,r,u,o,l,s,m),B(e,n,u,o,l,s,p)):(B(e,r,u,o,l,s,m),B(e,n,u,o,l,s,p),B(e,i,u,o,l,s,f),B(e,t,u,o,l,s,d)),h.combine(a)}(e,c,u,h,p,t,n,r),s!==e._tilesToRender.length){const n=r.allAreRenderable,c=r.anyWereRenderedLastFrame,u=r.notYetRenderableCount;let h=!1;if(!n&&!c){const n=e._tilesToRender;for(let e=s;e<n.length;++e){let t=n[e];for(;void 0!==t&&t._lastSelectionResult!==w.Z.KICKED&&t!==i;)t._lastSelectionResult=w.Z.kick(t._lastSelectionResult),t=t.parent}e._tilesToRender.length=s,e._tileToUpdateHeights.length=f,M(e,i),i._lastSelectionResult=w.Z.RENDERED;const c=_===w.Z.RENDERED;!c&&u>e.loadingDescendantLimit&&(e._tileLoadQueueLow.length=a,e._tileLoadQueueMedium.length=l,e._tileLoadQueueHigh.length=d,I(e,e._tileLoadQueueMedium,i,t),r.notYetRenderableCount=i.renderable?0:1,h=!0),r.allAreRenderable=i.renderable,r.anyWereRenderedLastFrame=c,c||e._tileToUpdateHeights.push(i),++o.tilesWaitingForChildren}e.preloadAncestors&&!h&&I(e,e._tileLoadQueueLow,i,t)}}else i._lastSelectionResultFrame=t.frameNumber,i._lastSelectionResult=w.Z.RENDERED,M(e,i),I(e,e._tileLoadQueueHigh,i,t),r.allAreRenderable=i.renderable,r.anyWereRenderedLastFrame=_===w.Z.RENDERED,r.notYetRenderableCount=i.renderable?0:1}(e,n,t,o,a);if(++e._debug.tilesCulled,e._tileReplacementQueue.markTileRendered(t),a.allAreRenderable=!0,a.anyWereRenderedLastFrame=!1,a.notYetRenderableCount=0,function(e,t){const i=t.rectangle;return(0,s.Z)(e._cameraPositionCartographic)&&m.Z.contains(i,e._cameraPositionCartographic)||(0,s.Z)(e._cameraReferenceFrameOriginCartographic)&&m.Z.contains(i,e._cameraReferenceFrameOriginCartographic)}(e,t)){(0,s.Z)(t.data)&&(0,s.Z)(t.data.vertexArray)||I(e,e._tileLoadQueueMedium,t,n);const i=e._lastSelectionFrameNumber,r=t._lastSelectionResultFrame===i?t._lastSelectionResult:w.Z.NONE;r!==w.Z.CULLED_BUT_NEEDED&&r!==w.Z.RENDERED&&e._tileToUpdateHeights.push(t),t._lastSelectionResult=w.Z.CULLED_BUT_NEEDED}else e.preloadSiblings||0===t.level?(I(e,e._tileLoadQueueLow,t,n),t._lastSelectionResult=w.Z.CULLED):t._lastSelectionResult=w.Z.CULLED;t._lastSelectionResultFrame=n.frameNumber}function M(e,t){e._tilesToRender.push(t)}function L(e,t){return e._loadPriority-t._loadPriority}function N(e,t,i,n,r,o){void 0!==i.computeTileLoadPriority&&r.sort(L);for(let s=0,a=r.length;s<a&&((0,u.Z)()<n||!o);++s){const n=r[s];e._tileReplacementQueue.markTileRendered(n),i.loadTile(t,n),o=!0}return o}const F=new p.Z,k=new r.Z,U=new n.Z,V=[],z=v},505697:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(426468),r=i(446938),o=i(523501),s=i(437358),a=i(970941);function c(e){if(!(0,n.Z)(e))throw new r.Z("options is required.");if(!(0,n.Z)(e.x))throw new r.Z("options.x is required.");if(!(0,n.Z)(e.y))throw new r.Z("options.y is required.");if(e.x<0||e.y<0)throw new r.Z("options.x and options.y must be greater than or equal to zero.");if(!(0,n.Z)(e.level))throw new r.Z("options.level is required and must be greater than or equal to zero.");if(!(0,n.Z)(e.tilingScheme))throw new r.Z("options.tilingScheme is required.");this._tilingScheme=e.tilingScheme,this._x=e.x,this._y=e.y,this._level=e.level,this._parent=e.parent,this._rectangle=this._tilingScheme.tileXYToRectangle(this._x,this._y,this._level),this._southwestChild=void 0,this._southeastChild=void 0,this._northwestChild=void 0,this._northeastChild=void 0,this.replacementPrevious=void 0,this.replacementNext=void 0,this._distance=0,this._loadPriority=0,this._customData=[],this._frameUpdated=void 0,this._lastSelectionResult=a.Z.NONE,this._lastSelectionResultFrame=void 0,this._loadedCallbacks={},this.state=s.Z.START,this.renderable=!1,this.upsampledFromParent=!1,this.data=void 0}function u(e){(0,n.Z)(e)&&e.freeResources()}c.createLevelZeroTiles=function(e){if(!(0,n.Z)(e))throw new r.Z("tilingScheme is required.");const t=e.getNumberOfXTilesAtLevel(0),i=e.getNumberOfYTilesAtLevel(0),o=new Array(t*i);let s=0;for(let n=0;n<i;++n)for(let i=0;i<t;++i)o[s++]=new c({tilingScheme:e,x:i,y:n,level:0});return o},c.prototype._updateCustomData=function(e,t,i){let r,s,a,c=this.customData;if((0,n.Z)(t)&&(0,n.Z)(i)){for(c=c.filter((function(e){return-1===i.indexOf(e)})),this._customData=c,a=this._rectangle,r=0;r<t.length;++r)s=t[r],o.Z.contains(a,s.positionCartographic)&&c.push(s);this._frameUpdated=e}else{const e=this._parent;if((0,n.Z)(e)&&this._frameUpdated!==e._frameUpdated){c.length=0,a=this._rectangle;const t=e.customData;for(r=0;r<t.length;++r)s=t[r],o.Z.contains(a,s.positionCartographic)&&c.push(s);this._frameUpdated=e._frameUpdated}}},Object.defineProperties(c.prototype,{tilingScheme:{get:function(){return this._tilingScheme}},x:{get:function(){return this._x}},y:{get:function(){return this._y}},level:{get:function(){return this._level}},parent:{get:function(){return this._parent}},rectangle:{get:function(){return this._rectangle}},children:{get:function(){return[this.northwestChild,this.northeastChild,this.southwestChild,this.southeastChild]}},southwestChild:{get:function(){return(0,n.Z)(this._southwestChild)||(this._southwestChild=new c({tilingScheme:this.tilingScheme,x:2*this.x,y:2*this.y+1,level:this.level+1,parent:this})),this._southwestChild}},southeastChild:{get:function(){return(0,n.Z)(this._southeastChild)||(this._southeastChild=new c({tilingScheme:this.tilingScheme,x:2*this.x+1,y:2*this.y+1,level:this.level+1,parent:this})),this._southeastChild}},northwestChild:{get:function(){return(0,n.Z)(this._northwestChild)||(this._northwestChild=new c({tilingScheme:this.tilingScheme,x:2*this.x,y:2*this.y,level:this.level+1,parent:this})),this._northwestChild}},northeastChild:{get:function(){return(0,n.Z)(this._northeastChild)||(this._northeastChild=new c({tilingScheme:this.tilingScheme,x:2*this.x+1,y:2*this.y,level:this.level+1,parent:this})),this._northeastChild}},customData:{get:function(){return this._customData}},needsLoading:{get:function(){return this.state<s.Z.DONE}},eligibleForUnloading:{get:function(){let e=!0;return(0,n.Z)(this.data)&&(e=this.data.eligibleForUnloading,(0,n.Z)(e)||(e=!0)),e}}}),c.prototype.findLevelZeroTile=function(e,t,i){const n=this.tilingScheme.getNumberOfXTilesAtLevel(0);if(t<0?t+=n:t>=n&&(t-=n),!(i<0||i>=this.tilingScheme.getNumberOfYTilesAtLevel(0)))return e.filter((function(e){return e.x===t&&e.y===i}))[0]},c.prototype.findTileToWest=function(e){const t=this.parent;if(void 0===t)return this.findLevelZeroTile(e,this.x-1,this.y);if(t.southeastChild===this)return t.southwestChild;if(t.northeastChild===this)return t.northwestChild;const i=t.findTileToWest(e);return void 0!==i?t.southwestChild===this?i.southeastChild:i.northeastChild:void 0},c.prototype.findTileToEast=function(e){const t=this.parent;if(void 0===t)return this.findLevelZeroTile(e,this.x+1,this.y);if(t.southwestChild===this)return t.southeastChild;if(t.northwestChild===this)return t.northeastChild;const i=t.findTileToEast(e);return void 0!==i?t.southeastChild===this?i.southwestChild:i.northwestChild:void 0},c.prototype.findTileToSouth=function(e){const t=this.parent;if(void 0===t)return this.findLevelZeroTile(e,this.x,this.y+1);if(t.northwestChild===this)return t.southwestChild;if(t.northeastChild===this)return t.southeastChild;const i=t.findTileToSouth(e);return void 0!==i?t.southwestChild===this?i.northwestChild:i.northeastChild:void 0},c.prototype.findTileToNorth=function(e){const t=this.parent;if(void 0===t)return this.findLevelZeroTile(e,this.x,this.y-1);if(t.southwestChild===this)return t.northwestChild;if(t.southeastChild===this)return t.northeastChild;const i=t.findTileToNorth(e);return void 0!==i?t.northwestChild===this?i.southwestChild:i.southeastChild:void 0},c.prototype.freeResources=function(){this.state=s.Z.START,this.renderable=!1,this.upsampledFromParent=!1,(0,n.Z)(this.data)&&(0,n.Z)(this.data.freeResources)&&this.data.freeResources(),u(this._southwestChild),this._southwestChild=void 0,u(this._southeastChild),this._southeastChild=void 0,u(this._northwestChild),this._northwestChild=void 0,u(this._northeastChild),this._northeastChild=void 0};const l=c},437358:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({START:0,LOADING:1,DONE:2,FAILED:3})},938930:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(446938);function r(){n.Z.throwInstantiationError()}r.computeDefaultLevelZeroMaximumGeometricError=function(e){return 2*e.ellipsoid.maximumRadius*Math.PI*.25/(65*e.getNumberOfXTilesAtLevel(0))},Object.defineProperties(r.prototype,{quadtree:{get:n.Z.throwInstantiationError,set:n.Z.throwInstantiationError},ready:{get:n.Z.throwInstantiationError},tilingScheme:{get:n.Z.throwInstantiationError},errorEvent:{get:n.Z.throwInstantiationError}}),r.prototype.update=n.Z.throwInstantiationError,r.prototype.beginUpdate=n.Z.throwInstantiationError,r.prototype.endUpdate=n.Z.throwInstantiationError,r.prototype.getLevelMaximumGeometricError=n.Z.throwInstantiationError,r.prototype.loadTile=n.Z.throwInstantiationError,r.prototype.computeTileVisibility=n.Z.throwInstantiationError,r.prototype.showTileThisFrame=n.Z.throwInstantiationError,r.prototype.computeDistanceToTile=n.Z.throwInstantiationError,r.prototype.isDestroyed=n.Z.throwInstantiationError,r.prototype.destroy=n.Z.throwInstantiationError;const o=r},182370:(e,t,i)=>{"use strict";i.d(t,{Z:()=>y});var n=i(357299),r=i(406144),o=i(426468),s=i(446938),a=i(357526),c=i(698335),u=i(322932),l=i(39919),h=i(139776),d=i(657104),f=i(162810),p=i(743391),m=i(789340),_=i(967697);function Z(){}function g(e){this.referenceCount=1,this.resourceLoader=e}Z.cacheEntries={},Z.get=function(e){n.Z.typeOf.string("cacheKey",e);const t=Z.cacheEntries[e];if((0,o.Z)(t))return++t.referenceCount,t.resourceLoader},Z.load=function(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).resourceLoader;n.Z.typeOf.object("options.resourceLoader",t);const i=t.cacheKey;if(n.Z.typeOf.string("options.resourceLoader.cacheKey",i),(0,o.Z)(Z.cacheEntries[i]))throw new s.Z("Resource with this cacheKey is already in the cache: "+i);Z.cacheEntries[i]=new g(t),t.load()},Z.unload=function(e){n.Z.typeOf.object("resourceLoader",e);const t=e.cacheKey,i=Z.cacheEntries[t];if(!(0,o.Z)(i))throw new s.Z("Resource is not in the cache: "+t);--i.referenceCount,0===i.referenceCount&&(e.destroy(),delete Z.cacheEntries[t])},Z.loadSchema=function(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).schema,i=e.resource;if((0,o.Z)(t)===(0,o.Z)(i))throw new s.Z("One of options.schema and options.resource must be defined.");const n=_.Z.getSchemaCacheKey({schema:t,resource:i});let a=Z.get(n);return(0,o.Z)(a)||(a=new m.Z({schema:t,resource:i,cacheKey:n}),Z.load({resourceLoader:a})),a},Z.loadEmbeddedBuffer=function(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).parentResource,i=e.bufferId,s=e.typedArray;n.Z.typeOf.object("options.parentResource",t),n.Z.typeOf.number("options.bufferId",i);const c=_.Z.getEmbeddedBufferCacheKey({parentResource:t,bufferId:i});let u=Z.get(c);return(0,o.Z)(u)||(n.Z.typeOf.object("options.typedArray",s),u=new a.Z({typedArray:s,cacheKey:c}),Z.load({resourceLoader:u})),u},Z.loadExternalBuffer=function(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).resource;n.Z.typeOf.object("options.resource",t);const i=_.Z.getExternalBufferCacheKey({resource:t});let s=Z.get(i);return(0,o.Z)(s)||(s=new a.Z({resource:t,cacheKey:i}),Z.load({resourceLoader:s})),s},Z.loadGltfJson=function(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).gltfResource,i=e.baseResource,s=e.typedArray,a=e.gltfJson;n.Z.typeOf.object("options.gltfResource",t),n.Z.typeOf.object("options.baseResource",i);const c=_.Z.getGltfCacheKey({gltfResource:t});let u=Z.get(c);return(0,o.Z)(u)||(u=new d.Z({resourceCache:Z,gltfResource:t,baseResource:i,typedArray:s,gltfJson:a,cacheKey:c}),Z.load({resourceLoader:u})),u},Z.loadBufferView=function(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).gltf,i=e.bufferViewId,s=e.gltfResource,a=e.baseResource;n.Z.typeOf.object("options.gltf",t),n.Z.typeOf.number("options.bufferViewId",i),n.Z.typeOf.object("options.gltfResource",s),n.Z.typeOf.object("options.baseResource",a);const u=_.Z.getBufferViewCacheKey({gltf:t,bufferViewId:i,gltfResource:s,baseResource:a});let l=Z.get(u);return(0,o.Z)(l)||(l=new c.Z({resourceCache:Z,gltf:t,bufferViewId:i,gltfResource:s,baseResource:a,cacheKey:u}),Z.load({resourceLoader:l})),l},Z.loadDraco=function(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).gltf,i=e.draco,s=e.gltfResource,a=e.baseResource;n.Z.typeOf.object("options.gltf",t),n.Z.typeOf.object("options.draco",i),n.Z.typeOf.object("options.gltfResource",s),n.Z.typeOf.object("options.baseResource",a);const c=_.Z.getDracoCacheKey({gltf:t,draco:i,gltfResource:s,baseResource:a});let l=Z.get(c);return(0,o.Z)(l)||(l=new u.Z({resourceCache:Z,gltf:t,draco:i,gltfResource:s,baseResource:a,cacheKey:c}),Z.load({resourceLoader:l})),l},Z.loadVertexBuffer=function(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).gltf,i=e.gltfResource,a=e.baseResource,c=e.bufferViewId,u=e.draco,l=e.attributeSemantic,h=e.accessorId,d=(0,r.Z)(e.asynchronous,!0),f=(0,r.Z)(e.dequantize,!1),m=(0,r.Z)(e.loadAsTypedArray,!1);n.Z.typeOf.object("options.gltf",t),n.Z.typeOf.object("options.gltfResource",i),n.Z.typeOf.object("options.baseResource",a);const g=(0,o.Z)(c),y=(0,o.Z)(u),b=(0,o.Z)(l),A=(0,o.Z)(h);if(g===y)throw new s.Z("One of options.bufferViewId and options.draco must be defined.");if(y&&!b)throw new s.Z("When options.draco is defined options.attributeSemantic must also be defined.");if(y&&!A)throw new s.Z("When options.draco is defined options.haAccessorId must also be defined.");y&&(n.Z.typeOf.object("options.draco",u),n.Z.typeOf.string("options.attributeSemantic",l),n.Z.typeOf.number("options.accessorId",h));const w=_.Z.getVertexBufferCacheKey({gltf:t,gltfResource:i,baseResource:a,bufferViewId:c,draco:u,attributeSemantic:l,dequantize:f,loadAsTypedArray:m});let v=Z.get(w);return(0,o.Z)(v)||(v=new p.Z({resourceCache:Z,gltf:t,gltfResource:i,baseResource:a,bufferViewId:c,draco:u,attributeSemantic:l,accessorId:h,cacheKey:w,asynchronous:d,dequantize:f,loadAsTypedArray:m}),Z.load({resourceLoader:v})),v},Z.loadIndexBuffer=function(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).gltf,i=e.accessorId,s=e.gltfResource,a=e.baseResource,c=e.draco,u=(0,r.Z)(e.asynchronous,!0),l=(0,r.Z)(e.loadAsTypedArray,!1);n.Z.typeOf.object("options.gltf",t),n.Z.typeOf.number("options.accessorId",i),n.Z.typeOf.object("options.gltfResource",s),n.Z.typeOf.object("options.baseResource",a);const d=_.Z.getIndexBufferCacheKey({gltf:t,accessorId:i,gltfResource:s,baseResource:a,draco:c,loadAsTypedArray:l});let f=Z.get(d);return(0,o.Z)(f)||(f=new h.Z({resourceCache:Z,gltf:t,accessorId:i,gltfResource:s,baseResource:a,draco:c,cacheKey:d,asynchronous:u,loadAsTypedArray:l}),Z.load({resourceLoader:f})),f},Z.loadImage=function(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).gltf,i=e.imageId,s=e.gltfResource,a=e.baseResource;n.Z.typeOf.object("options.gltf",t),n.Z.typeOf.number("options.imageId",i),n.Z.typeOf.object("options.gltfResource",s),n.Z.typeOf.object("options.baseResource",a);const c=_.Z.getImageCacheKey({gltf:t,imageId:i,gltfResource:s,baseResource:a});let u=Z.get(c);return(0,o.Z)(u)||(u=new l.Z({resourceCache:Z,gltf:t,imageId:i,gltfResource:s,baseResource:a,cacheKey:c}),Z.load({resourceLoader:u})),u},Z.loadTexture=function(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).gltf,i=e.textureInfo,s=e.gltfResource,a=e.baseResource,c=e.supportedImageFormats,u=(0,r.Z)(e.asynchronous,!0);n.Z.typeOf.object("options.gltf",t),n.Z.typeOf.object("options.textureInfo",i),n.Z.typeOf.object("options.gltfResource",s),n.Z.typeOf.object("options.baseResource",a);const l=_.Z.getTextureCacheKey({gltf:t,textureInfo:i,gltfResource:s,baseResource:a,supportedImageFormats:c});let h=Z.get(l);return(0,o.Z)(h)||(h=new f.Z({resourceCache:Z,gltf:t,textureInfo:i,gltfResource:s,baseResource:a,supportedImageFormats:c,cacheKey:l,asynchronous:u}),Z.load({resourceLoader:h})),h},Z.clearForSpecs=function(){const e=[p.Z,h.Z,u.Z,f.Z,l.Z,c.Z,a.Z,m.Z,d.Z];let t;const i=Z.cacheEntries,n=[];for(t in i)i.hasOwnProperty(t)&&n.push(i[t]);n.sort((function(t,i){return e.indexOf(t.resourceLoader.constructor)-e.indexOf(i.resourceLoader.constructor)}));const r=n.length;for(let e=0;e<r;++e){const r=n[e];t=r.resourceLoader.cacheKey,(0,o.Z)(i[t])&&(r.resourceLoader.destroy(),delete i[t])}};const y=Z},967697:(e,t,i)=>{"use strict";i.d(t,{Z:()=>g});var n=i(357299),r=i(406144),o=i(426468),s=i(446938),a=i(47628),c=i(169474),u=i(105385);const l={};function h(e){return(0,a.Z)(e.url)}function d(e){let t=e.byteOffset,i=e.byteLength;if((0,u.Z)(e,"EXT_meshopt_compression")){const n=e.extensions.EXT_meshopt_compression;t=(0,r.Z)(n.byteOffset,0),i=n.byteLength}return t+"-"+(t+i)}function f(e){return h(e)}function p(e,t){return h(e)+"-buffer-id-"+t}function m(e,t,i,n){return(0,o.Z)(e.uri)?f(n.getDerivedResource({url:e.uri})):p(i,t)}function _(e,t,i,n){const r=t.bufferView,o=e.bufferViews[r],s=o.buffer;return m(e.buffers[s],s,i,n)+"-range-"+d(o)}function Z(e,t,i,n){const r=e.images[t],s=r.bufferView,a=r.uri;if((0,o.Z)(a))return h(n.getDerivedResource({url:a}));const c=e.bufferViews[s],u=c.buffer;return m(e.buffers[u],u,i,n)+"-range-"+d(c)}l.getSchemaCacheKey=function(e){const t=e.schema,i=e.resource;if((0,o.Z)(t)===(0,o.Z)(i))throw new s.Z("One of options.schema and options.resource must be defined.");return(0,o.Z)(t)?"embedded-schema:"+JSON.stringify(t):"external-schema:"+h(i)},l.getExternalBufferCacheKey=function(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).resource;return n.Z.typeOf.object("options.resource",t),"external-buffer:"+f(t)},l.getEmbeddedBufferCacheKey=function(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).parentResource,i=e.bufferId;return n.Z.typeOf.object("options.parentResource",t),n.Z.typeOf.number("options.bufferId",i),"embedded-buffer:"+p(t,i)},l.getGltfCacheKey=function(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).gltfResource;return n.Z.typeOf.object("options.gltfResource",t),"gltf:"+h(t)},l.getBufferViewCacheKey=function(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).gltf,i=e.bufferViewId,o=e.gltfResource,s=e.baseResource;n.Z.typeOf.object("options.gltf",t),n.Z.typeOf.number("options.bufferViewId",i),n.Z.typeOf.object("options.gltfResource",o),n.Z.typeOf.object("options.baseResource",s);const a=t.bufferViews[i];let c=a.buffer;const l=t.buffers[c];return(0,u.Z)(a,"EXT_meshopt_compression")&&(c=a.extensions.EXT_meshopt_compression.buffer),"buffer-view:"+m(l,c,o,s)+"-range-"+d(a)},l.getDracoCacheKey=function(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).gltf,i=e.draco,o=e.gltfResource,s=e.baseResource;return n.Z.typeOf.object("options.gltf",t),n.Z.typeOf.object("options.draco",i),n.Z.typeOf.object("options.gltfResource",o),n.Z.typeOf.object("options.baseResource",s),"draco:"+_(t,i,o,s)},l.getVertexBufferCacheKey=function(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).gltf,i=e.gltfResource,a=e.baseResource,c=e.bufferViewId,u=e.draco,l=e.attributeSemantic,h=(0,r.Z)(e.dequantize,!1),f=(0,r.Z)(e.loadAsTypedArray,!1);n.Z.typeOf.object("options.gltf",t),n.Z.typeOf.object("options.gltfResource",i),n.Z.typeOf.object("options.baseResource",a);const p=(0,o.Z)(c),Z=(0,o.Z)(u),g=(0,o.Z)(l);if(p===Z)throw new s.Z("One of options.bufferViewId and options.draco must be defined.");if(Z&&!g)throw new s.Z("When options.draco is defined options.attributeSemantic must also be defined.");Z&&(n.Z.typeOf.object("options.draco",u),n.Z.typeOf.string("options.attributeSemantic",l));let y="";if(h&&(y+="-dequantize"),f&&(y+="-typed-array"),(0,o.Z)(u))return"vertex-buffer:"+_(t,u,i,a)+"-draco-"+l+y;const b=t.bufferViews[c],A=b.buffer;return"vertex-buffer:"+m(t.buffers[A],A,i,a)+"-range-"+d(b)+y},l.getIndexBufferCacheKey=function(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).gltf,i=e.accessorId,s=e.gltfResource,a=e.baseResource,c=e.draco,u=(0,r.Z)(e.loadAsTypedArray,!1);n.Z.typeOf.object("options.gltf",t),n.Z.typeOf.number("options.accessorId",i),n.Z.typeOf.object("options.gltfResource",s),n.Z.typeOf.object("options.baseResource",a);let l="";if(u&&(l+="-typed-array"),(0,o.Z)(c))return"index-buffer:"+_(t,c,s,a)+"-draco"+l;const h=t.accessors[i],d=h.bufferView,f=t.bufferViews[d],p=f.buffer,Z=m(t.buffers[p],p,s,a),g=function(e,t){return t.byteOffset+e.byteOffset+"-"+e.componentType+"-"+e.type+"-"+e.count}(h,f);return"index-buffer:"+Z+"-accessor-"+g+l},l.getImageCacheKey=function(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).gltf,i=e.imageId,o=e.gltfResource,s=e.baseResource;return n.Z.typeOf.object("options.gltf",t),n.Z.typeOf.number("options.imageId",i),n.Z.typeOf.object("options.gltfResource",o),n.Z.typeOf.object("options.baseResource",s),"image:"+Z(t,i,o,s)},l.getTextureCacheKey=function(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).gltf,i=e.textureInfo,o=e.gltfResource,s=e.baseResource,a=e.supportedImageFormats;n.Z.typeOf.object("options.gltf",t),n.Z.typeOf.object("options.textureInfo",i),n.Z.typeOf.object("options.gltfResource",o),n.Z.typeOf.object("options.baseResource",s),n.Z.typeOf.object("options.supportedImageFormats",a);const u=i.index,l=Z(t,c.Z.getImageIdFromTexture({gltf:t,textureId:u,supportedImageFormats:a}),o,s),h=function(e,t){const i=c.Z.createSampler({gltf:e,textureInfo:t});return i.wrapS+"-"+i.wrapT+"-"+i.minificationFilter+"-"+i.magnificationFilter}(t,i);return"texture:"+l+"-sampler-"+h};const g=l},81967:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(357299),r=i(426468),o=i(54879),s=i(446938),a=i(50128);function c(){}Object.defineProperties(c.prototype,{promise:{get:function(){s.Z.throwInstantiationError()}},cacheKey:{get:function(){s.Z.throwInstantiationError()}}}),c.prototype.load=function(){s.Z.throwInstantiationError()},c.prototype.unload=function(){},c.prototype.process=function(e){},c.prototype.getError=function(e,t){return n.Z.typeOf.string("errorMessage",e),(0,r.Z)(t)&&(e+="\n"+t.message),new a.Z(e)},c.prototype.isDestroyed=function(){return!1},c.prototype.destroy=function(){return this.unload(),(0,o.Z)(this)}},646754:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({UNLOADED:0,LOADING:1,PROCESSING:2,READY:3,FAILED:4})},882852:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({FONT_SIZE:48,PADDING:10,RADIUS:8,CUTOFF:.25})},384744:(e,t,i)=>{"use strict";i.d(t,{Z:()=>ft});var n=i(152124),r=i(360791),o=i(96823),s=i(919382),a=i(698907),c=i(556592),u=i(545125),l=i(182934),h=i(416974),d=i(700725),f=i(406144),p=i(426468),m=i(54879),_=i(446938),Z=i(675758),g=i(197685),y=i(921099),b=i(952254),A=i(423035),w=i(360382),v=i(40080),T=i(362017),C=i(583917),E=i(457345),x=i(817200),S=i(610490),O=i(736404),I=i(118121),D=i(348808),P=i(336217),R=i(890357),B=i(358198),M=i(20209),L=i(331154),N=i(128745),F=i(994589),k=i(842649),U=i(364232),V=i(867505),z=i(333473),H=i(992722),G=i(78355),q=i(521941),j=i(492183),W=i(380539),K=i(169705),Y=i(654270),X=i(234523),J=i(410137),Q=i(995755),$=i(22995),ee=i(683919),te=i(456157),ie=i(520459),ne=i(12965),re=i(578721),oe=i(959889),se=i(172366),ae=i(939800),ce=i(417067),ue=i(506678),le=i(867536),he=i(285483),de=i(377109),fe=i(971480),pe=i(42973),me=i(826020),_e=i(760868),Ze=i(399364),ge=i(786453),ye=i(890600);const be=function(e){return function(){e.frameState.afterRender.push((function(){e.requestRender()}))}};function Ae(e){const t=(e=(0,f.Z)(e,f.Z.EMPTY_OBJECT)).canvas;let i=e.creditContainer,r=e.creditViewport,o=(0,c.Z)(e.contextOptions);if((0,p.Z)(o)||(o={}),(0,p.Z)(o.webgl)||(o.webgl={}),o.webgl.powerPreference=(0,f.Z)(o.webgl.powerPreference,"high-performance"),!(0,p.Z)(t))throw new _.Z("options and options.canvas are required.");const s=(0,p.Z)(i),a=new N.Z(t,o);s||(i=document.createElement("div"),i.style.position="absolute",i.style.bottom="0",i.style["text-shadow"]="0 0 2px #000000",i.style.color="#ffffff",i.style["font-size"]="10px",i.style["padding-right"]="5px",t.parentNode.appendChild(i)),(0,p.Z)(r)||(r=t.parentNode),this._id=(0,h.Z)(),this._jobScheduler=new ee.Z,this._frameState=new J.Z(a,new q.Z(i," • ",r),this._jobScheduler),this._frameState.scene3DOnly=(0,f.Z)(e.scene3DOnly,!1),this._removeCreditContainer=!s,this._creditContainer=i,this._canvas=t,this._context=a,this._computeEngine=new L.Z(a),this._globe=void 0,this._globeTranslucencyState=new Q.Z,this._primitives=new ce.Z,this._groundPrimitives=new ce.Z,this._globeHeight=void 0,this._cameraUnderground=!1,this._logDepthBuffer=a.fragmentDepth,this._logDepthBufferDirty=!0,this._tweens=new Ze.Z,this._shaderFrameCount=0,this._sunPostProcess=void 0,this._computeCommandList=[],this._overlayCommandList=[],this._useOIT=(0,f.Z)(e.orderIndependentTranslucency,!0),this._executeOITFunction=void 0,this._depthPlane=new W.Z,this._clearColorCommand=new M.Z({color:new u.Z,stencil:0,owner:this}),this._depthClearCommand=new M.Z({depth:1,owner:this}),this._stencilClearCommand=new M.Z({stencil:0}),this._classificationStencilClearCommand=new M.Z({stencil:0,renderState:U.Z.fromCache({stencilMask:pe.Z.CLASSIFICATION_MASK})}),this._depthOnlyRenderStateCache={},this._transitioner=new he.Z(this),this._preUpdate=new g.Z,this._postUpdate=new g.Z,this._renderError=new g.Z,this._preRender=new g.Z,this._postRender=new g.Z,this._minimumDisableDepthTestDistance=0,this._debugInspector=new ye.Z,this.rethrowRenderErrors=!1,this.completeMorphOnUserInput=!0,this.morphStart=new g.Z,this.morphComplete=new g.Z,this.skyBox=void 0,this.skyAtmosphere=void 0,this.sun=void 0,this.sunBloom=!0,this._sunBloom=void 0,this.moon=void 0,this.backgroundColor=u.Z.clone(u.Z.BLACK),this._mode=ue.Z.SCENE3D,this._mapProjection=(0,p.Z)(e.mapProjection)?e.mapProjection:new y.Z,this.morphTime=1,this.farToNearRatio=1e3,this.logarithmicDepthFarToNearRatio=1e9,this.nearToFarDistance2D=175e4,this.debugCommandFilter=void 0,this.debugShowCommands=!1,this.debugShowFrustums=!1,this.debugShowFramesPerSecond=!1,this.debugShowDepthFrustum=1,this.debugShowFrustumPlanes=!1,this._debugShowFrustumPlanes=!1,this._debugFrustumPlanes=void 0,this.useDepthPicking=!0,this.pickTranslucentDepth=!1,this.cameraEventWaitTime=500,this.fog=new X.Z,this._shadowMapCamera=new z.Z(this),this.shadowMap=new fe.Z({context:a,lightCamera:this._shadowMapCamera,enabled:(0,f.Z)(e.shadows,!1)}),this.invertClassification=!1,this.invertClassificationColor=u.Z.clone(u.Z.WHITE),this._actualInvertClassificationColor=u.Z.clone(this._invertClassificationColor),this._invertClassification=new $.Z,this.focalLength=void 0,this.eyeSeparation=void 0,this.postProcessStages=new se.Z,this._brdfLutGenerator=new V.Z,this._performanceDisplay=void 0,this._debugVolume=void 0,this._screenSpaceCameraController=new de.Z(this),this._cameraUnderground=!1,this._mapMode2D=(0,f.Z)(e.mapMode2D,te.Z.INFINITE_SCROLL),this._environmentState={skyBoxCommand:void 0,skyAtmosphereCommand:void 0,sunDrawCommand:void 0,sunComputeCommand:void 0,moonCommand:void 0,isSunVisible:!1,isMoonVisible:!1,isReadyForAtmosphere:!1,isSkyAtmosphereVisible:!1,clearGlobeDepth:!1,useDepthPlane:!1,renderTranslucentDepthForPick:!1,originalFramebuffer:void 0,useGlobeDepthFramebuffer:!1,useOIT:!1,useInvertClassification:!1,usePostProcess:!1,usePostProcessSelected:!1,useWebVR:!1},this._useWebVR=!1,this._cameraVR=void 0,this._aspectRatioVR=void 0,this.requestRenderMode=(0,f.Z)(e.requestRenderMode,!1),this._renderRequested=!0,this.maximumRenderTimeChange=(0,f.Z)(e.maximumRenderTimeChange,0),this._lastRenderTime=void 0,this._frameRateMonitor=void 0,this._removeRequestListenerCallback=P.Z.requestCompletedEvent.addEventListener(be(this)),this._removeTaskProcessorListenerCallback=R.Z.taskCompletedEvent.addEventListener(be(this)),this._removeGlobeCallbacks=[];const l=new n.Z(0,0,a.drawingBufferWidth,a.drawingBufferHeight),d=new z.Z(this);this._logDepthBuffer&&(d.frustum.near=.1,d.frustum.far=1e10),this.preloadFlightCamera=new z.Z(this),this.preloadFlightCullingVolume=void 0,this._picking=new oe.Z(this),this._defaultView=new ge.Z(this,d,l),this._view=this._defaultView,this._hdr=void 0,this._hdrDirty=void 0,this.highDynamicRange=!1,this.gamma=2.2,this.sphericalHarmonicCoefficients=void 0,this.specularEnvironmentMaps=void 0,this._specularEnvironmentMapAtlas=void 0,this.light=new me.Z,Oe(this,0,v.Z.now()),this.updateFrameState(),this.initializeFrame()}function we(e,t,i){const n=e._frameState,r=e._context,o=e._view.oit,s=n.shadowState.lightShadowMaps,a=n.shadowState.lightShadowsEnabled;let c=t.derivedCommands;(0,p.Z)(t.pickId)&&(c.picking=K.Z.createPickDerivedCommand(e,t,r,c.picking)),t.pickOnly||(c.depth=K.Z.createDepthOnlyDerivedCommand(e,t,r,c.depth)),c.originalCommand=t,e._hdr&&(c.hdr=K.Z.createHdrCommand(t,r,c.hdr),c=(t=c.hdr.command).derivedCommands),a&&t.receiveShadows&&(c.shadows=fe.Z.createReceiveDerivedCommand(s,t,i,r,c.shadows)),t.pass===k.Z.TRANSLUCENT&&(0,p.Z)(o)&&o.isSupported()&&(a&&t.receiveShadows?(c.oit=(0,p.Z)(c.oit)?c.oit:{},c.oit.shadows=o.createDerivedCommands(c.shadows.receiveCommand,r,c.oit.shadows)):c.oit=o.createDerivedCommands(t,r,c.oit))}Object.defineProperties(Ae.prototype,{canvas:{get:function(){return this._canvas}},drawingBufferHeight:{get:function(){return this._context.drawingBufferHeight}},drawingBufferWidth:{get:function(){return this._context.drawingBufferWidth}},maximumAliasedLineWidth:{get:function(){return F.Z.maximumAliasedLineWidth}},maximumCubeMapSize:{get:function(){return F.Z.maximumCubeMapSize}},pickPositionSupported:{get:function(){return this._context.depthTexture}},sampleHeightSupported:{get:function(){return this._context.depthTexture}},clampToHeightSupported:{get:function(){return this._context.depthTexture}},invertClassificationSupported:{get:function(){return this._context.depthTexture}},specularEnvironmentMapsSupported:{get:function(){return ie.Z.isSupported(this._context)}},globe:{get:function(){return this._globe},set:function(e){this._globe=this._globe&&this._globe.destroy(),this._globe=e,function(e,t){for(let t=0;t<e._removeGlobeCallbacks.length;++t)e._removeGlobeCallbacks[t]();e._removeGlobeCallbacks.length=0;const i=[];(0,p.Z)(t)&&(i.push(t.imageryLayersUpdatedEvent.addEventListener(be(e))),i.push(t.terrainProviderChanged.addEventListener(be(e)))),e._removeGlobeCallbacks=i}(this,e)}},primitives:{get:function(){return this._primitives}},groundPrimitives:{get:function(){return this._groundPrimitives}},camera:{get:function(){return this._view.camera},set:function(e){this._view.camera=e}},view:{get:function(){return this._view},set:function(e){this._view=e}},defaultView:{get:function(){return this._defaultView}},picking:{get:function(){return this._picking}},screenSpaceCameraController:{get:function(){return this._screenSpaceCameraController}},mapProjection:{get:function(){return this._mapProjection}},jobScheduler:{get:function(){return this._jobScheduler}},frameState:{get:function(){return this._frameState}},environmentState:{get:function(){return this._environmentState}},tweens:{get:function(){return this._tweens}},imageryLayers:{get:function(){if((0,p.Z)(this.globe))return this.globe.imageryLayers}},terrainProvider:{get:function(){if((0,p.Z)(this.globe))return this.globe.terrainProvider},set:function(e){(0,p.Z)(this.globe)&&(this.globe.terrainProvider=e)}},terrainProviderChanged:{get:function(){if((0,p.Z)(this.globe))return this.globe.terrainProviderChanged}},preUpdate:{get:function(){return this._preUpdate}},postUpdate:{get:function(){return this._postUpdate}},renderError:{get:function(){return this._renderError}},preRender:{get:function(){return this._preRender}},postRender:{get:function(){return this._postRender}},lastRenderTime:{get:function(){return this._lastRenderTime}},context:{get:function(){return this._context}},debugFrustumStatistics:{get:function(){return this._view.debugFrustumStatistics}},scene3DOnly:{get:function(){return this._frameState.scene3DOnly}},orderIndependentTranslucency:{get:function(){return this._useOIT}},id:{get:function(){return this._id}},mode:{get:function(){return this._mode},set:function(e){if(this.scene3DOnly&&e!==ue.Z.SCENE3D)throw new _.Z("Only SceneMode.SCENE3D is valid when scene3DOnly is true.");if(e===ue.Z.SCENE2D)this.morphTo2D(0);else if(e===ue.Z.SCENE3D)this.morphTo3D(0);else{if(e!==ue.Z.COLUMBUS_VIEW)throw new _.Z("value must be a valid SceneMode enumeration.");this.morphToColumbusView(0)}this._mode=e}},frustumCommandsList:{get:function(){return this._view.frustumCommandsList}},numberOfFrustums:{get:function(){return this._view.frustumCommandsList.length}},useWebVR:{get:function(){return this._useWebVR},set:function(e){if(this.camera.frustum instanceof S.Z)throw new _.Z("VR is unsupported with an orthographic projection.");this._useWebVR=e,this._useWebVR?(this._frameState.creditDisplay.container.style.visibility="hidden",this._cameraVR=new z.Z(this),(0,p.Z)(this._deviceOrientationCameraController)||(this._deviceOrientationCameraController=new Y.Z(this)),this._aspectRatioVR=this.camera.frustum.aspectRatio):(this._frameState.creditDisplay.container.style.visibility="visible",this._cameraVR=void 0,this._deviceOrientationCameraController=this._deviceOrientationCameraController&&!this._deviceOrientationCameraController.isDestroyed()&&this._deviceOrientationCameraController.destroy(),this.camera.frustum.aspectRatio=this._aspectRatioVR,this.camera.frustum.xOffset=0)}},mapMode2D:{get:function(){return this._mapMode2D}},imagerySplitPosition:{get:function(){return this._frameState.imagerySplitPosition},set:function(e){this._frameState.imagerySplitPosition=e}},minimumDisableDepthTestDistance:{get:function(){return this._minimumDisableDepthTestDistance},set:function(e){if(!(0,p.Z)(e)||e<0)throw new _.Z("minimumDisableDepthTestDistance must be greater than or equal to 0.0.");this._minimumDisableDepthTestDistance=e}},logarithmicDepthBuffer:{get:function(){return this._logDepthBuffer},set:function(e){e=this._context.fragmentDepth&&e,this._logDepthBuffer!==e&&(this._logDepthBuffer=e,this._logDepthBufferDirty=!0)}},gamma:{get:function(){return this._context.uniformState.gamma},set:function(e){this._context.uniformState.gamma=e}},highDynamicRange:{get:function(){return this._hdr},set:function(e){const t=this._context,i=e&&t.depthTexture&&(t.colorBufferFloat||t.colorBufferHalfFloat);this._hdrDirty=i!==this._hdr,this._hdr=i}},highDynamicRangeSupported:{get:function(){const e=this._context;return e.depthTexture&&(e.colorBufferFloat||e.colorBufferHalfFloat)}},cameraUnderground:{get:function(){return this._cameraUnderground}},pixelRatio:{get:function(){return this._frameState.pixelRatio},set:function(e){this._frameState.pixelRatio=e}},opaqueFrustumNearOffset:{get:function(){return.9999}},globeHeight:{get:function(){return this._globeHeight}}}),Ae.prototype.getCompressedTextureFormatSupported=function(e){const t=this.context;return("WEBGL_compressed_texture_s3tc"===e||"s3tc"===e)&&t.s3tc||("WEBGL_compressed_texture_pvrtc"===e||"pvrtc"===e)&&t.pvrtc||("WEBGL_compressed_texture_etc"===e||"etc"===e)&&t.etc||("WEBGL_compressed_texture_etc1"===e||"etc1"===e)&&t.etc1||("WEBGL_compressed_texture_astc"===e||"astc"===e)&&t.astc||("EXT_texture_compression_bptc"===e||"bc7"===e)&&t.bc7},Ae.prototype.updateDerivedCommands=function(e){if(!(0,p.Z)(e.derivedCommands))return;const t=this._frameState,i=this._context;let n=!1;const r=t.shadowState.lastDirtyTime;e.lastDirtyTime!==r&&(e.lastDirtyTime=r,e.dirty=!0,n=!0);const o=t.useLogDepth,s=this._hdr,a=e.derivedCommands,c=(0,p.Z)(a.logDepth),u=(0,p.Z)(a.hdr),l=(0,p.Z)(a.originalCommand),h=o&&!c,d=s&&!u,f=!(o&&s||l);if(e.dirty=e.dirty||h||d||f,e.dirty){e.dirty=!1;const r=t.shadowState.shadowMaps;t.shadowState.shadowsEnabled&&e.castShadows&&(a.shadows=fe.Z.createCastDerivedCommand(r,e,n,i,a.shadows)),(c||h)&&(a.logDepth=K.Z.createLogDepthCommand(e,i,a.logDepth),we(this,a.logDepth.command,n)),(l||f)&&we(this,e,n)}};const ve=new G.Z({pass:H.Z.RENDER}),Te=new G.Z({pass:H.Z.PRELOAD}),Ce=new G.Z({pass:H.Z.PRELOAD_FLIGHT}),Ee=new G.Z({pass:H.Z.REQUEST_RENDER_MODE_DEFER_CHECK}),xe=new r.Z;let Se;function Oe(e,t,i){const n=e._frameState;n.frameNumber=t,n.time=v.Z.clone(i,n.time)}Ae.prototype.clearPasses=function(e){e.render=!1,e.pick=!1,e.depth=!1,e.postProcess=!1,e.offscreen=!1},Ae.prototype.updateFrameState=function(){const e=this.camera,t=this._frameState;t.commandList.length=0,t.shadowMaps.length=0,t.brdfLutGenerator=this._brdfLutGenerator,t.environmentMap=this.skyBox&&this.skyBox._cubeMap,t.mode=this._mode,t.morphTime=this.morphTime,t.mapProjection=this.mapProjection,t.camera=e,t.cullingVolume=e.frustum.computeCullingVolume(e.positionWC,e.directionWC,e.upWC),t.occluder=function(e){const t=e.globe;if(e._mode===ue.Z.SCENE3D&&(0,p.Z)(t)&&t.show&&!e._cameraUnderground&&!e._globeTranslucencyState.translucent){const i=t.ellipsoid,n=e.frameState.minimumTerrainHeight;return xe.radius=i.minimumRadius+n,Se=x.Z.fromBoundingSphere(xe,e.camera.positionWC,Se),Se}}(this),t.minimumTerrainHeight=0,t.minimumDisableDepthTestDistance=this._minimumDisableDepthTestDistance,t.invertClassification=this.invertClassification,t.useLogDepth=this._logDepthBuffer&&!(this.camera.frustum instanceof S.Z||this.camera.frustum instanceof O.Z),t.light=this.light,t.cameraUnderground=this._cameraUnderground,t.globeTranslucencyState=this._globeTranslucencyState,(0,p.Z)(this.globe)&&(t.terrainExaggeration=this.globe.terrainExaggeration,t.terrainExaggerationRelativeHeight=this.globe.terrainExaggerationRelativeHeight),(0,p.Z)(this._specularEnvironmentMapAtlas)&&this._specularEnvironmentMapAtlas.ready?(t.specularEnvironmentMaps=this._specularEnvironmentMapAtlas.texture,t.specularEnvironmentMapsMaximumLOD=this._specularEnvironmentMapAtlas.maximumMipmapLevel):(t.specularEnvironmentMaps=void 0,t.specularEnvironmentMapsMaximumLOD=void 0),t.sphericalHarmonicCoefficients=this.sphericalHarmonicCoefficients,this._actualInvertClassificationColor=u.Z.clone(this.invertClassificationColor,this._actualInvertClassificationColor),$.Z.isTranslucencySupported(this._context)||(this._actualInvertClassificationColor.alpha=1),t.invertClassificationColor=this._actualInvertClassificationColor,(0,p.Z)(this.globe)?t.maximumScreenSpaceError=this.globe.maximumScreenSpaceError:t.maximumScreenSpaceError=2,this.clearPasses(t.passes),t.tilesetPassState=void 0},Ae.prototype.isVisible=function(e,t,i){return(0,p.Z)(e)&&(!(0,p.Z)(e.boundingVolume)||!e.cull||t.computeVisibility(e.boundingVolume)!==w.Z.OUTSIDE&&(!(0,p.Z)(i)||!e.occlude||!e.boundingVolume.isOccluded(i)))};let Ie=new C.Z(0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,1);function De(e,t,i,n,r){const a=t._frameState;if((0,p.Z)(t.debugCommandFilter)&&!t.debugCommandFilter(e))return;if(e instanceof M.Z)return void e.execute(i,n);e.debugShowBoundingVolume&&(0,p.Z)(e.boundingVolume)&&function(e,t,i,n){const r=t._frameState,a=r.context,c=e.boundingVolume;let u;(0,p.Z)(t._debugVolume)&&t._debugVolume.destroy();let h=s.Z.clone(c.center);if(r.mode!==ue.Z.SCENE3D){h=C.Z.multiplyByPoint(Ie,h,h);const e=r.mapProjection,t=e.unproject(h);h=e.ellipsoid.cartographicToCartesian(t)}if((0,p.Z)(c.radius)){const e=c.radius;u=A.Z.toWireframe(Z.Z.createGeometry(new Z.Z({radii:new s.Z(e,e,e),vertexFormat:re.Z.FLAT_VERTEX_FORMAT}))),t._debugVolume=new ae.Z({geometryInstances:new b.Z({geometry:u,modelMatrix:C.Z.fromTranslation(h),attributes:{color:new l.Z(1,0,0,1)}}),appearance:new re.Z({flat:!0,translucent:!1}),asynchronous:!1})}else{const e=c.halfAxes;u=A.Z.toWireframe(o.Z.createGeometry(o.Z.fromDimensions({dimensions:new s.Z(2,2,2),vertexFormat:re.Z.FLAT_VERTEX_FORMAT}))),t._debugVolume=new ae.Z({geometryInstances:new b.Z({geometry:u,modelMatrix:C.Z.fromRotationTranslation(e,h,new C.Z),attributes:{color:new l.Z(1,0,0,1)}}),appearance:new re.Z({flat:!0,translucent:!1}),asynchronous:!1})}const d=r.commandList,f=r.commandList=[];let m;t._debugVolume.update(r),e=f[0],r.useLogDepth&&(e=K.Z.createLogDepthCommand(e,a).command),(0,p.Z)(n)&&(m=i.framebuffer,i.framebuffer=n),e.execute(a,i),(0,p.Z)(m)&&(i.framebuffer=m),r.commandList=d}(e,t,n,r),a.useLogDepth&&(0,p.Z)(e.derivedCommands.logDepth)&&(e=e.derivedCommands.logDepth.command);const c=a.passes;if(!c.pick&&!c.depth&&t._hdr&&(0,p.Z)(e.derivedCommands)&&(0,p.Z)(e.derivedCommands.hdr)&&(e=e.derivedCommands.hdr.command),c.pick||c.depth){if(c.pick&&!c.depth&&(0,p.Z)(e.derivedCommands.picking))return void(e=e.derivedCommands.picking.pickCommand).execute(i,n);if((0,p.Z)(e.derivedCommands.depth))return void(e=e.derivedCommands.depth.depthOnlyCommand).execute(i,n)}t.debugShowCommands||t.debugShowFrustums?t._debugInspector.executeDebugShowFrustumsCommand(t,e,n):a.shadowState.lightShadowsEnabled&&e.receiveShadows&&(0,p.Z)(e.derivedCommands.shadows)?e.derivedCommands.shadows.receiveCommand.execute(i,n):e.execute(i,n)}function Pe(e,t,i,n){const r=t._frameState;let o=e.derivedCommands;(0,p.Z)(o)&&(r.useLogDepth&&(0,p.Z)(o.logDepth)&&(e=o.logDepth.command),o=e.derivedCommands,(0,p.Z)(o.picking)?(e=o.picking.pickCommand).execute(i,n):(0,p.Z)(o.depth)&&(e=o.depth.depthOnlyCommand).execute(i,n))}function Re(e,t,i){return t.boundingVolume.distanceSquaredTo(i)-e.boundingVolume.distanceSquaredTo(i)}function Be(e,t,i){return e.boundingVolume.distanceSquaredTo(i)-t.boundingVolume.distanceSquaredTo(i)+T.Z.EPSILON12}function Me(e,t,i,n,r){const o=e.context;(0,E.Z)(n,Re,e.camera.positionWC),(0,p.Z)(r)&&t(r.unclassifiedCommand,e,o,i);const s=n.length;for(let r=0;r<s;++r)t(n[r],e,o,i)}function Le(e,t,i,n,r){const o=e.context;(0,E.Z)(n,Be,e.camera.positionWC),(0,p.Z)(r)&&t(r.unclassifiedCommand,e,o,i);const s=n.length;for(let r=0;r<s;++r)t(n[r],e,o,i)}Ie=C.Z.inverseTransformation(Ie,Ie);const Ne=new I.Z,Fe=new D.Z,ke=new S.Z,Ue=new O.Z;function Ve(e,t){const i=e.camera,n=e.context,r=e.frameState,o=n.uniformState;let s;o.updateCamera(i),s=(0,p.Z)(i.frustum.fov)?i.frustum.clone(Ne):(0,p.Z)(i.frustum.infiniteProjectionMatrix)?i.frustum.clone(Fe):(0,p.Z)(i.frustum.width)?i.frustum.clone(ke):i.frustum.clone(Ue),s.near=i.frustum.near,s.far=i.frustum.far,o.updateFrustum(s),o.updatePass(k.Z.ENVIRONMENT);const a=r.passes,c=a.pick,u=e._environmentState,l=e._view,h=u.renderTranslucentDepthForPick,d=u.useWebVR;if(!c){const i=u.skyBoxCommand;if((0,p.Z)(i)&&De(i,e,n,t),u.isSkyAtmosphereVisible&&De(u.skyAtmosphereCommand,e,n,t),u.isSunVisible&&(u.sunDrawCommand.execute(n,t),e.sunBloom&&!d)){let i;i=u.useGlobeDepthFramebuffer?l.globeDepth.framebuffer:u.usePostProcess?l.sceneFramebuffer.framebuffer:u.originalFramebuffer,e._sunPostProcess.execute(n),e._sunPostProcess.copy(n,i),t.framebuffer=i}u.isMoonVisible&&u.moonCommand.execute(n,t)}let f;u.useOIT?((0,p.Z)(e._executeOITFunction)||(e._executeOITFunction=function(e,t,i,n,r){l.oit.executeCommands(e,t,i,n,r)}),f=e._executeOITFunction):f=a.render?Me:Le;const m=l.frustumCommandsList,_=m.length,Z=u.clearGlobeDepth,g=u.useDepthPlane,y=e._globeTranslucencyState,b=y.translucent,A=e._view.globeTranslucencyFramebuffer,w=e._depthClearCommand,v=e._stencilClearCommand,T=e._classificationStencilClearCommand,C=e._depthPlane,E=u.usePostProcessSelected,x=i.position.z;let S;for(let a=0;a<_;++a){const d=_-a-1,O=m[d];e.mode===ue.Z.SCENE2D?(i.position.z=x-O.near+1,s.far=Math.max(1,O.far-O.near),s.near=1,o.update(r),o.updateFrustum(s)):(s.near=0!==d?O.near*e.opaqueFrustumNearOffset:O.near,s.far=O.far,o.updateFrustum(s)),w.execute(n,t),n.stencilBuffer&&v.execute(n,t),o.updatePass(k.Z.GLOBE);let I=O.commands[k.Z.GLOBE],D=O.indices[k.Z.GLOBE];if(b)y.executeGlobeCommands(O,De,A,e,t);else for(S=0;S<D;++S)De(I[S],e,n,t);const P=l.globeDepth;if((0,p.Z)(P)&&u.useGlobeDepthFramebuffer&&P.executeCopyDepth(n,t),!u.renderTranslucentDepthForPick)if(o.updatePass(k.Z.TERRAIN_CLASSIFICATION),I=O.commands[k.Z.TERRAIN_CLASSIFICATION],D=O.indices[k.Z.TERRAIN_CLASSIFICATION],b)y.executeGlobeClassificationCommands(O,De,A,e,t);else for(S=0;S<D;++S)De(I[S],e,n,t);if(Z&&(w.execute(n,t),g&&C.execute(n,t)),!u.useInvertClassification||c||u.renderTranslucentDepthForPick){for(o.updatePass(k.Z.CESIUM_3D_TILE),I=O.commands[k.Z.CESIUM_3D_TILE],D=O.indices[k.Z.CESIUM_3D_TILE],S=0;S<D;++S)De(I[S],e,n,t);if(D>0&&((0,p.Z)(P)&&u.useGlobeDepthFramebuffer&&P.executeUpdateDepth(n,t,Z),!u.renderTranslucentDepthForPick))for(o.updatePass(k.Z.CESIUM_3D_TILE_CLASSIFICATION),I=O.commands[k.Z.CESIUM_3D_TILE_CLASSIFICATION],D=O.indices[k.Z.CESIUM_3D_TILE_CLASSIFICATION],S=0;S<D;++S)De(I[S],e,n,t)}else{e._invertClassification.clear(n,t);const i=t.framebuffer;for(t.framebuffer=e._invertClassification._fbo.framebuffer,o.updatePass(k.Z.CESIUM_3D_TILE),I=O.commands[k.Z.CESIUM_3D_TILE],D=O.indices[k.Z.CESIUM_3D_TILE],S=0;S<D;++S)De(I[S],e,n,t);for((0,p.Z)(P)&&u.useGlobeDepthFramebuffer&&P.executeUpdateDepth(n,t,Z),o.updatePass(k.Z.CESIUM_3D_TILE_CLASSIFICATION_IGNORE_SHOW),I=O.commands[k.Z.CESIUM_3D_TILE_CLASSIFICATION_IGNORE_SHOW],D=O.indices[k.Z.CESIUM_3D_TILE_CLASSIFICATION_IGNORE_SHOW],S=0;S<D;++S)De(I[S],e,n,t);for(t.framebuffer=i,e._invertClassification.executeClassified(n,t),1===r.invertClassificationColor.alpha&&e._invertClassification.executeUnclassified(n,t),D>0&&n.stencilBuffer&&T.execute(n,t),o.updatePass(k.Z.CESIUM_3D_TILE_CLASSIFICATION),I=O.commands[k.Z.CESIUM_3D_TILE_CLASSIFICATION],D=O.indices[k.Z.CESIUM_3D_TILE_CLASSIFICATION],S=0;S<D;++S)De(I[S],e,n,t)}for(D>0&&n.stencilBuffer&&v.execute(n,t),o.updatePass(k.Z.OPAQUE),I=O.commands[k.Z.OPAQUE],D=O.indices[k.Z.OPAQUE],S=0;S<D;++S)De(I[S],e,n,t);let R;if(0!==d&&e.mode!==ue.Z.SCENE2D&&(s.near=O.near,o.updateFrustum(s)),!c&&u.useInvertClassification&&r.invertClassificationColor.alpha<1&&(R=e._invertClassification),o.updatePass(k.Z.TRANSLUCENT),I=O.commands[k.Z.TRANSLUCENT],I.length=O.indices[k.Z.TRANSLUCENT],f(e,De,t,I,R),O.indices[k.Z.CESIUM_3D_TILE_CLASSIFICATION]>0&&l.translucentTileClassification.isSupported()&&(l.translucentTileClassification.executeTranslucentCommands(e,De,t,I,P.framebuffer),l.translucentTileClassification.executeClassificationCommands(e,De,t,O)),n.depthTexture&&e.useDepthPicking&&(u.useGlobeDepthFramebuffer||h)){const i=h?t.framebuffer.depthStencilTexture:P.framebuffer.depthStencilTexture,r=e._picking.getPickDepth(e,d);r.update(n,i),r.executeCopyDepth(n,t)}if(c||!E)continue;const B=t.framebuffer;if(t.framebuffer=l.sceneFramebuffer.getIdFramebuffer(),s.near=0!==d?O.near*e.opaqueFrustumNearOffset:O.near,s.far=O.far,o.updateFrustum(s),o.updatePass(k.Z.GLOBE),I=O.commands[k.Z.GLOBE],D=O.indices[k.Z.GLOBE],b)y.executeGlobeCommands(O,Pe,A,e,t);else for(S=0;S<D;++S)Pe(I[S],e,n,t);for(Z&&(w.framebuffer=t.framebuffer,w.execute(n,t),w.framebuffer=void 0),Z&&g&&C.execute(n,t),o.updatePass(k.Z.CESIUM_3D_TILE),I=O.commands[k.Z.CESIUM_3D_TILE],D=O.indices[k.Z.CESIUM_3D_TILE],S=0;S<D;++S)Pe(I[S],e,n,t);for(o.updatePass(k.Z.OPAQUE),I=O.commands[k.Z.OPAQUE],D=O.indices[k.Z.OPAQUE],S=0;S<D;++S)Pe(I[S],e,n,t);for(o.updatePass(k.Z.TRANSLUCENT),I=O.commands[k.Z.TRANSLUCENT],D=O.indices[k.Z.TRANSLUCENT],S=0;S<D;++S)Pe(I[S],e,n,t);t.framebuffer=B}}function ze(e){e.context.uniformState.updatePass(k.Z.COMPUTE);const t=e._environmentState.sunComputeCommand;(0,p.Z)(t)&&t.execute(e._computeEngine);const i=e._computeCommandList,n=i.length;for(let t=0;t<n;++t)i[t].execute(e._computeEngine)}function He(e,t,i){const n=i.shadowMapCullingVolume,r=i.isPointLight,o=i.passes,s=o.length,a=t.length;for(let i=0;i<a;++i){const a=t[i];if(e.updateDerivedCommands(a),a.castShadows&&(a.pass===k.Z.GLOBE||a.pass===k.Z.CESIUM_3D_TILE||a.pass===k.Z.OPAQUE||a.pass===k.Z.TRANSLUCENT)&&e.isVisible(a,n))if(r)for(let e=0;e<s;++e)o[e].commandList.push(a);else if(1===s)o[0].commandList.push(a);else{let t=!1;for(let i=s-1;i>=0;--i){const n=o[i].cullingVolume;if(e.isVisible(a,n))o[i].commandList.push(a),t=!0;else if(t)break}}}}function Ge(e){const t=e.frameState,i=t.shadowState.shadowMaps,n=i.length;if(!t.shadowState.shadowsEnabled)return;const r=e.context,o=r.uniformState;for(let t=0;t<n;++t){const n=i[t];if(n.outOfView)continue;const s=n.passes,a=s.length;for(let e=0;e<a;++e)s[e].commandList.length=0;He(e,e.frameState.commandList,n);for(let i=0;i<a;++i){const s=n.passes[i];o.updateCamera(s.camera),n.updatePass(r,i);const a=s.commandList.length;for(let i=0;i<a;++i){const n=s.commandList[i];o.updatePass(n.pass),De(n.derivedCommands.shadows.castCommands[t],e,r,s.passState)}}}}const qe=new s.Z;Ae.prototype.updateAndExecuteCommands=function(e,t){const i=this._frameState.mode;this._environmentState.useWebVR?function(e,t,i){const n=e._view,r=n.camera,o=e._environmentState.renderTranslucentDepthForPick;nt(e,t,i),it(e),n.createPotentiallyVisibleSet(e),ze(e),o||Ge(e);const a=t.viewport;a.x=0,a.y=0,a.width=.5*a.width;const c=z.Z.clone(r,e._cameraVR);c.frustum=r.frustum;const u=r.frustum.near,l=u*(0,f.Z)(e.focalLength,5),h=(0,f.Z)(e.eyeSeparation,l/30),d=s.Z.multiplyByScalar(c.right,.5*h,qe);r.frustum.aspectRatio=a.width/a.height;const p=.5*h*u/l;s.Z.add(c.position,d,r.position),r.frustum.xOffset=p,Ve(e,t),a.x=a.width,s.Z.subtract(c.position,d,r.position),r.frustum.xOffset=-p,Ve(e,t),z.Z.clone(c,r)}(this,e,t):i!==ue.Z.SCENE2D||this._mapMode2D===te.Z.ROTATE?et(!0,this,e,t):(nt(this,e,t),function(e,t){const i=e.context,r=e.frameState,o=e.camera,a=t.viewport,c=n.Z.clone(a,$e);t.viewport=c;const u=je,l=We;e.mapProjection.project(u,l);const h=s.Z.clone(o.position,Ke),d=C.Z.clone(o.transform,Xe),f=o.frustum.clone();o._setTransform(C.Z.IDENTITY);const p=C.Z.computeViewportTransformation(c,0,1,Ye),m=o.frustum.projectionMatrix,_=o.positionWC.y,Z=s.Z.fromElements(T.Z.sign(_)*l.x-_,0,-o.positionWC.x,Je),g=B.Z.pointToGLWindowCoordinates(m,p,Z,Qe);g.x=Math.floor(g.x);const y=c.x,b=c.width;if(0===_||g.x<=y||g.x>=y+b)et(!0,e,t);else if(Math.abs(y+.5*b-g.x)<1)c.width=g.x-c.x,o.position.x*=T.Z.sign(o.position.x),o.frustum.right=0,r.cullingVolume=o.frustum.computeCullingVolume(o.positionWC,o.directionWC,o.upWC),i.uniformState.update(r),et(!0,e,t),c.x=g.x,o.position.x=-o.position.x,o.frustum.right=-o.frustum.left,o.frustum.left=0,r.cullingVolume=o.frustum.computeCullingVolume(o.positionWC,o.directionWC,o.upWC),i.uniformState.update(r),et(!1,e,t);else if(g.x>y+.5*b){c.width=g.x-y;const n=o.frustum.right;o.frustum.right=l.x-_,r.cullingVolume=o.frustum.computeCullingVolume(o.positionWC,o.directionWC,o.upWC),i.uniformState.update(r),et(!0,e,t),c.x=g.x,c.width=y+b-g.x,o.position.x=-o.position.x,o.frustum.left=-o.frustum.right,o.frustum.right=n-2*o.frustum.right,r.cullingVolume=o.frustum.computeCullingVolume(o.positionWC,o.directionWC,o.upWC),i.uniformState.update(r),et(!1,e,t)}else{c.x=g.x,c.width=y+b-g.x;const n=o.frustum.left;o.frustum.left=-l.x-_,r.cullingVolume=o.frustum.computeCullingVolume(o.positionWC,o.directionWC,o.upWC),i.uniformState.update(r),et(!0,e,t),c.x=y,c.width=g.x-y,o.position.x=-o.position.x,o.frustum.right=-o.frustum.left,o.frustum.left=n-2*o.frustum.left,r.cullingVolume=o.frustum.computeCullingVolume(o.positionWC,o.directionWC,o.upWC),i.uniformState.update(r),et(!1,e,t)}o._setTransform(d),s.Z.clone(h,o.position),o.frustum=f.clone(),t.viewport=a}(this,e))};const je=new a.Z(Math.PI,T.Z.PI_OVER_TWO),We=new s.Z,Ke=new s.Z,Ye=new C.Z,Xe=new C.Z,Je=new s.Z,Qe=new s.Z,$e=new n.Z;function et(e,t,i,n){const r=t._environmentState,o=t._view,s=r.renderTranslucentDepthForPick;e||(t.frameState.commandList.length=0),it(t),o.createPotentiallyVisibleSet(t),e&&((0,p.Z)(n)&&nt(t,i,n),ze(t),s||Ge(t)),Ve(t,i)}const tt=new d.Z;function it(e){const t=e._frameState;e._groundPrimitives.update(t),e._primitives.update(t),function(e){const t=e._frameState;e.debugShowFrustumPlanes!==e._debugShowFrustumPlanes&&(e.debugShowFrustumPlanes?e._debugFrustumPlanes=new j.Z({camera:e.camera,updateOnChange:!1,frustumSplits:t.frustumSplits}):e._debugFrustumPlanes=e._debugFrustumPlanes&&e._debugFrustumPlanes.destroy(),e._debugShowFrustumPlanes=e.debugShowFrustumPlanes),(0,p.Z)(e._debugFrustumPlanes)&&e._debugFrustumPlanes.update(t)}(e),function(e){const t=e._frameState,i=t.shadowMaps,n=i.length,r=n>0&&!t.passes.pick&&e.mode===ue.Z.SCENE3D;if(r!==t.shadowState.shadowsEnabled&&(++t.shadowState.lastDirtyTime,t.shadowState.shadowsEnabled=r),t.shadowState.lightShadowsEnabled=!1,r){for(let e=0;e<n;++e)if(i[e]!==t.shadowState.shadowMaps[e]){++t.shadowState.lastDirtyTime;break}t.shadowState.shadowMaps.length=0,t.shadowState.lightShadowMaps.length=0;for(let e=0;e<n;++e){const n=i[e];n.update(t),t.shadowState.shadowMaps.push(n),n.fromLightSource&&(t.shadowState.lightShadowMaps.push(n),t.shadowState.lightShadowsEnabled=!0),n.dirty&&(++t.shadowState.lastDirtyTime,n.dirty=!1)}}}(e),e._globe&&e._globe.render(t)}function nt(e,t,i){const n=e._context,r=e._frameState,o=e._environmentState,s=e._view,a=e._frameState.passes.pick,c=o.useWebVR;o.originalFramebuffer=t.framebuffer,(0,p.Z)(e.sun)&&e.sunBloom!==e._sunBloom?(e.sunBloom&&!c?e._sunPostProcess=new _e.Z:(0,p.Z)(e._sunPostProcess)&&(e._sunPostProcess=e._sunPostProcess.destroy()),e._sunBloom=e.sunBloom):!(0,p.Z)(e.sun)&&(0,p.Z)(e._sunPostProcess)&&(e._sunPostProcess=e._sunPostProcess.destroy(),e._sunBloom=!1);const l=e._clearColorCommand;u.Z.clone(i,l.color),l.execute(n,t);const h=o.useGlobeDepthFramebuffer=(0,p.Z)(s.globeDepth);h&&(s.globeDepth.update(n,t,s.viewport,e._hdr,o.clearGlobeDepth),s.globeDepth.clear(n,t,i));const d=s.oit,f=o.useOIT=!a&&(0,p.Z)(d)&&d.isSupported();f&&(d.update(n,t,s.globeDepth.framebuffer,e._hdr),d.clear(n,t,i),o.useOIT=d.isSupported());const m=e.postProcessStages;let _=o.usePostProcess=!a&&(e._hdr||m.length>0||m.ambientOcclusion.enabled||m.fxaa.enabled||m.bloom.enabled);if(o.usePostProcessSelected=!1,_&&(s.sceneFramebuffer.update(n,s.viewport,e._hdr),s.sceneFramebuffer.clear(n,t,i),m.update(n,r.useLogDepth,e._hdr),m.clear(n),_=o.usePostProcess=m.ready,o.usePostProcessSelected=_&&m.hasSelected),o.isSunVisible&&e.sunBloom&&!c?(t.framebuffer=e._sunPostProcess.update(t),e._sunPostProcess.clear(n,t,i)):h?t.framebuffer=s.globeDepth.framebuffer:_&&(t.framebuffer=s.sceneFramebuffer.framebuffer),(0,p.Z)(t.framebuffer)&&l.execute(n,t),o.useInvertClassification=!a&&(0,p.Z)(t.framebuffer)&&e.invertClassification){let i;if(1===e.frameState.invertClassificationColor.alpha&&o.useGlobeDepthFramebuffer&&(i=s.globeDepth.framebuffer),(0,p.Z)(i)||n.depthTexture){if(e._invertClassification.previousFramebuffer=i,e._invertClassification.update(n),e._invertClassification.clear(n,t),e.frameState.invertClassificationColor.alpha<1&&f){const t=e._invertClassification.unclassifiedCommand,i=t.derivedCommands;i.oit=d.createDerivedCommands(t,n,i.oit)}}else o.useInvertClassification=!1}e._globeTranslucencyState.translucent&&s.globeTranslucencyFramebuffer.updateAndClear(e._hdr,s.viewport,n,t)}function rt(e){e._jobScheduler.resetBudgets();const t=e._frameState;e.primitives.prePassesUpdate(t),(0,p.Z)(e.globe)&&e.globe.update(t),e._picking.update(),t.creditDisplay.update()}function ot(e){const t=e._frameState;e.primitives.postPassesUpdate(t),P.Z.update()}Ae.prototype.updateEnvironment=function(){const e=this._frameState,t=this._view,i=this._environmentState,n=e.passes.render,r=e.passes.offscreen,o=this.skyAtmosphere,s=this.globe,a=this._globeTranslucencyState;if(!n||this._mode!==ue.Z.SCENE2D&&t.camera.frustum instanceof S.Z||!a.environmentVisible)i.skyAtmosphereCommand=void 0,i.skyBoxCommand=void 0,i.sunDrawCommand=void 0,i.sunComputeCommand=void 0,i.moonCommand=void 0;else{(0,p.Z)(o)?((0,p.Z)(s)&&(o.setDynamicAtmosphereColor(s.enableLighting&&s.dynamicAtmosphereLighting,s.dynamicAtmosphereLightingFromSun),i.isReadyForAtmosphere=i.isReadyForAtmosphere||s._surface._tilesToRender.length>0),i.skyAtmosphereCommand=o.update(e,s),(0,p.Z)(i.skyAtmosphereCommand)&&this.updateDerivedCommands(i.skyAtmosphereCommand)):i.skyAtmosphereCommand=void 0,i.skyBoxCommand=(0,p.Z)(this.skyBox)?this.skyBox.update(e,this._hdr):void 0;const n=(0,p.Z)(this.sun)?this.sun.update(e,t.passState,this._hdr):void 0;i.sunDrawCommand=(0,p.Z)(n)?n.drawCommand:void 0,i.sunComputeCommand=(0,p.Z)(n)?n.computeCommand:void 0,i.moonCommand=(0,p.Z)(this.moon)?this.moon.update(e):void 0}const c=i.clearGlobeDepth=(0,p.Z)(s)&&s.show&&(!s.depthTestAgainstTerrain||this.mode===ue.Z.SCENE2D);(i.useDepthPlane=c&&this.mode===ue.Z.SCENE3D&&a.useDepthPlane)&&this._depthPlane.update(e),i.renderTranslucentDepthForPick=!1,i.useWebVR=this._useWebVR&&this.mode!==ue.Z.SCENE2D&&!r;const u=e.mode!==ue.Z.SCENE3D||a.sunVisibleThroughGlobe?void 0:e.occluder;let l=e.cullingVolume;const h=tt.planes;for(let e=0;e<5;++e)h[e]=l.planes[e];l=tt,i.isSkyAtmosphereVisible=(0,p.Z)(i.skyAtmosphereCommand)&&i.isReadyForAtmosphere,i.isSunVisible=this.isVisible(i.sunDrawCommand,l,u),i.isMoonVisible=this.isVisible(i.moonCommand,l,u);const d=this.specularEnvironmentMaps;let f=this._specularEnvironmentMapAtlas;!(0,p.Z)(d)||(0,p.Z)(f)&&f.url===d?!(0,p.Z)(d)&&(0,p.Z)(f)&&(f.destroy(),this._specularEnvironmentMapAtlas=void 0):(f=f&&f.destroy(),this._specularEnvironmentMapAtlas=new ie.Z(d)),(0,p.Z)(this._specularEnvironmentMapAtlas)&&this._specularEnvironmentMapAtlas.update(e)},Ae.prototype.resolveFramebuffers=function(e){const t=this._context,i=this._environmentState,n=this._view,r=n.globeDepth,o=i.useOIT,s=i.useGlobeDepthFramebuffer,a=i.usePostProcess,c=i.originalFramebuffer,u=s?r.framebuffer:void 0,l=n.sceneFramebuffer.framebuffer,h=n.sceneFramebuffer.idFramebuffer;o&&(e.framebuffer=a?l:c,n.oit.execute(t,e));const d=n.translucentTileClassification;if(d.hasTranslucentDepth&&d.isSupported()&&d.execute(this,e),a){let e=l;s&&!o&&(e=u);const i=this.postProcessStages,n=e.getColorTexture(0),r=h.getColorTexture(0),a=(0,f.Z)(u,l).depthStencilTexture;i.execute(t,n,a,r),i.copy(t,c)}o||a||!s||(e.framebuffer=c,r.executeCopyColor(t,e))},Ae.prototype.initializeFrame=function(){120==this._shaderFrameCount++&&(this._shaderFrameCount=0,this._context.shaderCache.destroyReleasedShaderPrograms(),this._context.textureCache.destroyReleasedTextures()),this._tweens.update(),this._globeHeight=function(e){const t=e._globe,i=e.camera.positionCartographic;if((0,p.Z)(t)&&t.show&&(0,p.Z)(i))return t.getHeight(i)}(this),this._cameraUnderground=function(e){const t=e.camera,i=e._mode,n=e.globe,r=e._screenSpaceCameraController,o=t.positionCartographic;if(!(0,p.Z)(o))return!1;if(!r.onMap()&&o.height<0)return!0;if(!(0,p.Z)(n)||!n.show||i===ue.Z.SCENE2D||i===ue.Z.MORPHING)return!1;const s=e._globeHeight;return(0,p.Z)(s)&&o.height<s}(this),this._globeTranslucencyState.update(this),this._screenSpaceCameraController.update(),(0,p.Z)(this._deviceOrientationCameraController)&&this._deviceOrientationCameraController.update(),this.camera.update(this._mode),this.camera._updateCameraChanged()};const st=new u.Z;function at(e){const t=e._frameState,i=e.context,r=i.uniformState,o=e._defaultView;e._view=o,e.updateFrameState(),t.passes.render=!0,t.passes.postProcess=e.postProcessStages.hasSelected,t.tilesetPassState=ve;let a=(0,f.Z)(e.backgroundColor,u.Z.BLACK);e._hdr&&(a=u.Z.clone(a,st),a.red=Math.pow(a.red,e.gamma),a.green=Math.pow(a.green,e.gamma),a.blue=Math.pow(a.blue,e.gamma)),t.backgroundColor=a,e.fog.update(t),r.update(t);const c=e.shadowMap;(0,p.Z)(c)&&c.enabled&&(!(0,p.Z)(e.light)||e.light instanceof me.Z?s.Z.negate(r.sunDirectionWC,e._shadowMapCamera.direction):s.Z.clone(e.light.direction,e._shadowMapCamera.direction),t.shadowMaps.push(c)),e._computeCommandList.length=0,e._overlayCommandList.length=0;const l=o.viewport;l.x=0,l.y=0,l.width=i.drawingBufferWidth,l.height=i.drawingBufferHeight;const h=o.passState;h.framebuffer=void 0,h.blendingEnabled=void 0,h.scissorTest=void 0,h.viewport=n.Z.clone(l,h.viewport),(0,p.Z)(e.globe)&&e.globe.beginFrame(t),e.updateEnvironment(),e.updateAndExecuteCommands(h,a),e.resolveFramebuffers(h),h.framebuffer=void 0,function(e,t){e.context.uniformState.updatePass(k.Z.OVERLAY);const i=e.context,n=e._overlayCommandList,r=n.length;for(let e=0;e<r;++e)n[e].execute(i,t)}(e,h),(0,p.Z)(e.globe)&&(e.globe.endFrame(t),e.globe.tilesLoaded||(e._renderRequested=!0)),i.endFrame()}function ct(e,t){try{t(e)}catch(t){if(e._renderError.raiseEvent(e,t),e.rethrowRenderErrors)throw t}}function ut(e){return e._picking.updateMostDetailedRayPicks(e)}function lt(e){const t=e._frameState;Te.camera=t.camera,Te.cullingVolume=t.cullingVolume,e.primitives.updateForPass(t,Te)}function ht(e){const t=e._frameState;t.camera.canPreloadFlight()&&(Ce.camera=e.preloadFlightCamera,Ce.cullingVolume=e.preloadFlightCullingVolume,e.primitives.updateForPass(t,Ce))}function dt(e){e.primitives.updateForPass(e._frameState,Ee)}Ae.prototype.render=function(e){this._preUpdate.raiseEvent(this,e);const t=this._frameState;t.newFrame=!1,(0,p.Z)(e)||(e=v.Z.now());const i=this._view.checkForCameraUpdates(this);let n=!this.requestRenderMode||this._renderRequested||i||this._logDepthBufferDirty||this._hdrDirty||this.mode===ue.Z.MORPHING;if(!n&&(0,p.Z)(this.maximumRenderTimeChange)&&(0,p.Z)(this._lastRenderTime)){const t=Math.abs(v.Z.secondsDifference(this._lastRenderTime,e));n=n||t>this.maximumRenderTimeChange}n&&(this._lastRenderTime=v.Z.clone(e,this._lastRenderTime),this._renderRequested=!1,this._logDepthBufferDirty=!1,this._hdrDirty=!1,Oe(this,T.Z.incrementWrap(t.frameNumber,15e6,1),e),t.newFrame=!0),ct(this,rt),this.primitives.show&&(ct(this,ut),ct(this,lt),ct(this,ht),n||ct(this,dt)),this._postUpdate.raiseEvent(this,e),n&&(this._preRender.raiseEvent(this,e),t.creditDisplay.beginFrame(),ct(this,at)),function(e,t){if(e.debugShowFramesPerSecond){if(!(0,p.Z)(e._performanceDisplay)){const t=document.createElement("div");t.className="cesium-performanceDisplay-defaultContainer",e._canvas.parentNode.appendChild(t);const i=new ne.Z({container:t});e._performanceDisplay=i,e._performanceContainer=t}e._performanceDisplay.throttled=e.requestRenderMode,e._performanceDisplay.update(t)}else(0,p.Z)(e._performanceDisplay)&&(e._performanceDisplay=e._performanceDisplay&&e._performanceDisplay.destroy(),e._performanceContainer.parentNode.removeChild(e._performanceContainer))}(this,n),ct(this,ot),function(e){const t=e._frameState.afterRender;for(let i=0,n=t.length;i<n;++i)t[i](),e.requestRender();t.length=0}(this),n&&(this._postRender.raiseEvent(this,e),t.creditDisplay.endFrame())},Ae.prototype.forceRender=function(e){this._renderRequested=!0,this.render(e)},Ae.prototype.requestRender=function(){this._renderRequested=!0},Ae.prototype.clampLineWidth=function(e){return Math.max(F.Z.minimumAliasedLineWidth,Math.min(e,F.Z.maximumAliasedLineWidth))},Ae.prototype.pick=function(e,t,i){return this._picking.pick(this,e,t,i)},Ae.prototype.pickPositionWorldCoordinates=function(e,t){return this._picking.pickPositionWorldCoordinates(this,e,t)},Ae.prototype.pickPosition=function(e,t){return this._picking.pickPosition(this,e,t)},Ae.prototype.drillPick=function(e,t,i,n){return this._picking.drillPick(this,e,t,i,n)},Ae.prototype.pickFromRay=function(e,t,i){return this._picking.pickFromRay(this,e,t,i)},Ae.prototype.drillPickFromRay=function(e,t,i,n){return this._picking.drillPickFromRay(this,e,t,i,n)},Ae.prototype.pickFromRayMostDetailed=function(e,t,i){return this._picking.pickFromRayMostDetailed(this,e,t,i)},Ae.prototype.drillPickFromRayMostDetailed=function(e,t,i,n){return this._picking.drillPickFromRayMostDetailed(this,e,t,i,n)},Ae.prototype.sampleHeight=function(e,t,i){return this._picking.sampleHeight(this,e,t,i)},Ae.prototype.clampToHeight=function(e,t,i,n){return this._picking.clampToHeight(this,e,t,i,n)},Ae.prototype.sampleHeightMostDetailed=function(e,t,i){return this._picking.sampleHeightMostDetailed(this,e,t,i)},Ae.prototype.clampToHeightMostDetailed=function(e,t,i){return this._picking.clampToHeightMostDetailed(this,e,t,i)},Ae.prototype.cartesianToCanvasCoordinates=function(e,t){return le.Z.wgs84ToWindowCoordinates(this,e,t)},Ae.prototype.completeMorph=function(){this._transitioner.completeMorph()},Ae.prototype.morphTo2D=function(e){let t;const i=this.globe;t=(0,p.Z)(i)?i.ellipsoid:this.mapProjection.ellipsoid,e=(0,f.Z)(e,2),this._transitioner.morphTo2D(e,t)},Ae.prototype.morphToColumbusView=function(e){let t;const i=this.globe;t=(0,p.Z)(i)?i.ellipsoid:this.mapProjection.ellipsoid,e=(0,f.Z)(e,2),this._transitioner.morphToColumbusView(e,t)},Ae.prototype.morphTo3D=function(e){let t;const i=this.globe;t=(0,p.Z)(i)?i.ellipsoid:this.mapProjection.ellipsoid,e=(0,f.Z)(e,2),this._transitioner.morphTo3D(e,t)},Ae.prototype.isDestroyed=function(){return!1},Ae.prototype.destroy=function(){this._tweens.removeAll(),this._computeEngine=this._computeEngine&&this._computeEngine.destroy(),this._screenSpaceCameraController=this._screenSpaceCameraController&&this._screenSpaceCameraController.destroy(),this._deviceOrientationCameraController=this._deviceOrientationCameraController&&!this._deviceOrientationCameraController.isDestroyed()&&this._deviceOrientationCameraController.destroy(),this._primitives=this._primitives&&this._primitives.destroy(),this._groundPrimitives=this._groundPrimitives&&this._groundPrimitives.destroy(),this._globe=this._globe&&this._globe.destroy(),this.skyBox=this.skyBox&&this.skyBox.destroy(),this.skyAtmosphere=this.skyAtmosphere&&this.skyAtmosphere.destroy(),this._debugSphere=this._debugSphere&&this._debugSphere.destroy(),this.sun=this.sun&&this.sun.destroy(),this._sunPostProcess=this._sunPostProcess&&this._sunPostProcess.destroy(),this._depthPlane=this._depthPlane&&this._depthPlane.destroy(),this._transitioner=this._transitioner&&this._transitioner.destroy(),this._debugFrustumPlanes=this._debugFrustumPlanes&&this._debugFrustumPlanes.destroy(),this._brdfLutGenerator=this._brdfLutGenerator&&this._brdfLutGenerator.destroy(),this._picking=this._picking&&this._picking.destroy(),this._defaultView=this._defaultView&&this._defaultView.destroy(),this._view=void 0,this._removeCreditContainer&&this._canvas.parentNode.removeChild(this._creditContainer),this.postProcessStages=this.postProcessStages&&this.postProcessStages.destroy(),this._context=this._context&&this._context.destroy(),this._frameState.creditDisplay=this._frameState.creditDisplay&&this._frameState.creditDisplay.destroy(),(0,p.Z)(this._performanceDisplay)&&(this._performanceDisplay=this._performanceDisplay&&this._performanceDisplay.destroy(),this._performanceContainer.parentNode.removeChild(this._performanceContainer)),this._removeRequestListenerCallback(),this._removeTaskProcessorListenerCallback();for(let e=0;e<this._removeGlobeCallbacks.length;++e)this._removeGlobeCallbacks[e]();return this._removeGlobeCallbacks.length=0,(0,m.Z)(this)};const ft=Ae},140931:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(545125),r=i(54879),o=i(20209),s=i(273642),a=i(687931);function c(){this._colorFramebuffer=new s.Z({depthStencil:!0,supportsDepthTexture:!0}),this._idFramebuffer=new s.Z({depthStencil:!0,supportsDepthTexture:!0}),this._idClearColor=new n.Z(0,0,0,0),this._clearCommand=new o.Z({color:new n.Z(0,0,0,0),depth:1,owner:this})}Object.defineProperties(c.prototype,{framebuffer:{get:function(){return this._colorFramebuffer.framebuffer}},idFramebuffer:{get:function(){return this._idFramebuffer.framebuffer}}}),c.prototype.update=function(e,t,i){const n=t.width,r=t.height,o=i?e.halfFloatingPointTexture?a.Z.HALF_FLOAT:a.Z.FLOAT:a.Z.UNSIGNED_BYTE;this._colorFramebuffer.update(e,n,r,o),this._idFramebuffer.update(e,n,r)},c.prototype.clear=function(e,t,i){n.Z.clone(i,this._clearCommand.color),n.Z.clone(this._idClearColor,this._clearCommand.color),this._colorFramebuffer.clear(e,this._clearCommand,t),this._idFramebuffer.clear(e,this._clearCommand,t)},c.prototype.getFramebuffer=function(){return this._colorFramebuffer.framebuffer},c.prototype.getIdFramebuffer=function(){return this._idFramebuffer.framebuffer},c.prototype.isDestroyed=function(){return!1},c.prototype.destroy=function(){var e;return(e=this)._colorFramebuffer.destroy(),e._idFramebuffer.destroy(),(0,r.Z)(this)};const u=c},506678:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});const n={MORPHING:0,COLUMBUS_VIEW:1,SCENE2D:2,SCENE3D:3,getMorphTime:function(e){return e===n.SCENE3D?1:e!==n.MORPHING?0:void 0}},r=Object.freeze(n)},867536:(e,t,i)=>{"use strict";i.d(t,{Z:()=>M});var n=i(152124),r=i(337968),o=i(919382),s=i(114754),a=i(698907),c=i(426468),u=i(446938),l=i(362017),h=i(583917),d=i(610490),f=i(736404),p=i(358198),m=i(506678);const _={},Z=new s.Z(0,0,0,1);let g=new s.Z;const y=new n.Z,b=new r.Z,A=new r.Z;_.wgs84ToWindowCoordinates=function(e,t,i){return _.wgs84WithEyeOffsetToWindowCoordinates(e,t,o.Z.ZERO,i)};const w=new s.Z,v=new o.Z;function T(e,t,i,n){const r=i.viewMatrix,a=h.Z.multiplyByVector(r,s.Z.fromElements(e.x,e.y,e.z,1,w),w),c=o.Z.multiplyComponents(t,o.Z.normalize(a,v),v);return a.x+=t.x+c.x,a.y+=t.y+c.y,a.z+=c.z,h.Z.multiplyByVector(i.frustum.projectionMatrix,a,n)}const C=new a.Z(Math.PI,l.Z.PI_OVER_TWO),E=new o.Z,x=new o.Z;_.wgs84WithEyeOffsetToWindowCoordinates=function(e,t,i,n){if(!(0,c.Z)(e))throw new u.Z("scene is required.");if(!(0,c.Z)(t))throw new u.Z("position is required.");const s=e.frameState,a=_.computeActualWgs84Position(s,t,Z);if(!(0,c.Z)(a))return;const w=e.canvas,v=y;v.x=0,v.y=0,v.width=w.clientWidth,v.height=w.clientHeight;const S=e.camera;let O=!1;if(s.mode===m.Z.SCENE2D){const t=e.mapProjection,s=C,c=t.project(s,E),u=o.Z.clone(S.position,x),d=S.frustum.clone(),f=h.Z.computeViewportTransformation(v,0,1,new h.Z),m=S.frustum.projectionMatrix,Z=S.positionWC.y,y=o.Z.fromElements(l.Z.sign(Z)*c.x-Z,0,-S.positionWC.x),I=p.Z.pointToGLWindowCoordinates(m,f,y);if(0===Z||I.x<=0||I.x>=w.clientWidth)O=!0;else{if(I.x>.5*w.clientWidth){v.width=I.x,S.frustum.right=c.x-Z,g=T(a,i,S,g),_.clipToGLWindowCoordinates(v,g,b),v.x+=I.x,S.position.x=-S.position.x;const e=S.frustum.right;S.frustum.right=-S.frustum.left,S.frustum.left=-e,g=T(a,i,S,g),_.clipToGLWindowCoordinates(v,g,A)}else{v.x+=I.x,v.width-=I.x,S.frustum.left=-c.x-Z,g=T(a,i,S,g),_.clipToGLWindowCoordinates(v,g,b),v.x=v.x-v.width,S.position.x=-S.position.x;const e=S.frustum.left;S.frustum.left=-S.frustum.right,S.frustum.right=-e,g=T(a,i,S,g),_.clipToGLWindowCoordinates(v,g,A)}o.Z.clone(u,S.position),S.frustum=d.clone(),((n=r.Z.clone(b,n)).x<0||n.x>w.clientWidth)&&(n.x=A.x)}}if(s.mode!==m.Z.SCENE2D||O){if(g=T(a,i,S,g),g.z<0&&!(S.frustum instanceof d.Z)&&!(S.frustum instanceof f.Z))return;n=_.clipToGLWindowCoordinates(v,g,n)}return n.y=w.clientHeight-n.y,n},_.wgs84ToDrawingBufferCoordinates=function(e,t,i){if(i=_.wgs84ToWindowCoordinates(e,t,i),(0,c.Z)(i))return _.transformWindowToDrawingBuffer(e,i,i)};const S=new o.Z,O=new a.Z;_.computeActualWgs84Position=function(e,t,i){const n=e.mode;if(n===m.Z.SCENE3D)return o.Z.clone(t,i);const r=e.mapProjection,s=r.ellipsoid.cartesianToCartographic(t,O);if(!(0,c.Z)(s))return;if(r.project(s,S),n===m.Z.COLUMBUS_VIEW)return o.Z.fromElements(S.z,S.x,S.y,i);if(n===m.Z.SCENE2D)return o.Z.fromElements(0,S.x,S.y,i);const a=e.morphTime;return o.Z.fromElements(l.Z.lerp(S.z,t.x,a),l.Z.lerp(S.x,t.y,a),l.Z.lerp(S.y,t.z,a),i)};const I=new o.Z,D=new o.Z,P=new h.Z;_.clipToGLWindowCoordinates=function(e,t,i){return o.Z.divideByScalar(t,t.w,I),h.Z.computeViewportTransformation(e,0,1,P),h.Z.multiplyByPoint(P,I,D),r.Z.fromCartesian3(D,i)},_.transformWindowToDrawingBuffer=function(e,t,i){const n=e.canvas,o=e.drawingBufferWidth/n.clientWidth,s=e.drawingBufferHeight/n.clientHeight;return r.Z.fromElements(t.x*o,t.y*s,i)};const R=new s.Z,B=new s.Z;_.drawingBufferToWgs84Coordinates=function(e,t,i,n){const r=e.context.uniformState,a=r.currentFrustum,u=a.x,l=a.y;if(e.frameState.useLogDepth){const e=i*r.log2FarDepthFromNearPlusOne;i=l*(1-u/(Math.pow(2,e)-1+u))/(l-u)}const d=e.view.passState.viewport,f=s.Z.clone(s.Z.UNIT_W,R);let p;f.x=(t.x-d.x)/d.width*2-1,f.y=(t.y-d.y)/d.height*2-1,f.z=2*i-1,f.w=1;let m=e.camera.frustum;if((0,c.Z)(m.fovy)){p=h.Z.multiplyByVector(r.inverseViewProjection,f,B);const e=1/p.w;o.Z.multiplyByScalar(p,e,p)}else(0,c.Z)(m._offCenterFrustum)&&(m=m._offCenterFrustum),p=B,p.x=.5*(f.x*(m.right-m.left)+m.left+m.right),p.y=.5*(f.y*(m.top-m.bottom)+m.bottom+m.top),p.z=.5*(f.z*(u-l)-u-l),p.w=1,p=h.Z.multiplyByVector(r.inverseView,p,p);return o.Z.fromCartesian4(p,n)};const M=_},285483:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Ce});var n=i(919382),r=i(698907),o=i(357299),s=i(426468),a=i(54879),c=i(696047),u=i(362017),l=i(583917),h=i(610490),d=i(736404),f=i(118121),p=i(24401),m=i(940263),_=i(122818),Z=i(358198),g=i(333473),y=i(506678);function b(e){o.Z.typeOf.object("scene",e),this._scene=e,this._currentTweens=[],this._morphHandler=void 0,this._morphCancelled=!1,this._completeMorph=void 0,this._morphToOrthographic=!1}b.prototype.completeMorph=function(){(0,s.Z)(this._completeMorph)&&this._completeMorph()},b.prototype.morphTo2D=function(e,t){(0,s.Z)(this._completeMorph)&&this._completeMorph();const i=this._scene;this._previousMode=i.mode,this._morphToOrthographic=i.camera.frustum instanceof h.Z,this._previousMode!==y.Z.SCENE2D&&this._previousMode!==y.Z.MORPHING&&(this._scene.morphStart.raiseEvent(this,this._previousMode,y.Z.SCENE2D,!0),i._mode=y.Z.MORPHING,i.camera._setTransform(l.Z.IDENTITY),this._previousMode===y.Z.COLUMBUS_VIEW?function(e,t){t*=.5;const i=e._scene,r=i.camera,o=n.Z.clone(r.position,ne),a=n.Z.clone(r.direction,re),u=n.Z.clone(r.up,oe),h=n.Z.negate(n.Z.UNIT_Z,ae),d=n.Z.clone(n.Z.UNIT_Y,ce),f=se;if(t>0)n.Z.clone(n.Z.ZERO,se),f.z=5*i.mapProjection.ellipsoid.maximumRadius;else{n.Z.clone(o,se);const e=le;l.Z.multiplyByPoint(g.Z.TRANSFORM_2D,o,e.origin),l.Z.multiplyByPointAsVector(g.Z.TRANSFORM_2D,a,e.direction);const t=i.globe;if((0,s.Z)(t)){const r=t.pickWorldCoordinates(e,i,!0,he);(0,s.Z)(r)&&(l.Z.multiplyByPoint(g.Z.TRANSFORM_2D_INVERSE,r,f),f.z+=n.Z.distance(o,f))}}const p=ue;p.right=.5*f.z,p.left=-p.right,p.top=p.right*(i.drawingBufferHeight/i.drawingBufferWidth),p.bottom=-p.top;const m=de;m.position=f,m.direction=h,m.up=d,m.frustum=p;const _=Te(m);function Z(e,t){e.position.z=t}M(e,_);const y=i.tweens.add({duration:t,easingFunction:c.Z.QUARTIC_OUT,startObject:{time:0},stopObject:{time:1},update:function(e){te(o,f,e.time,r.position),te(a,h,e.time,r.direction),te(u,d,e.time,r.up),n.Z.cross(r.direction,r.up,r.right),n.Z.normalize(r.right,r.right),r._adjustOrthographicFrustum(!0)},complete:function(){ie(e,t,m,Z,_)}});e._currentTweens.push(y)}(this,e):function(e,t,i){t*=.5;const r=e._scene,o=r.camera,a=pe;if(t>0)n.Z.clone(n.Z.ZERO,a.position),a.position.z=5*i.maximumRadius,n.Z.negate(n.Z.UNIT_Z,a.direction),n.Z.clone(n.Z.UNIT_Y,a.up);else{i.cartesianToCartographic(o.positionWC,fe),r.mapProjection.project(fe,a.position),n.Z.negate(n.Z.UNIT_Z,a.direction),n.Z.clone(n.Z.UNIT_Y,a.up);const e=Ze;n.Z.clone(a.position2D,e.origin);const t=n.Z.clone(o.directionWC,e.direction),c=i.scaleToGeodeticSurface(o.positionWC,ye),u=Z.Z.eastNorthUpToFixedFrame(c,i,ge);l.Z.inverseTransformation(u,u),l.Z.multiplyByPointAsVector(u,t,t),l.Z.multiplyByPointAsVector(g.Z.TRANSFORM_2D,t,t);const h=r.globe;if((0,s.Z)(h)){const t=h.pickWorldCoordinates(e,r,!0,_e);if((0,s.Z)(t)){const e=n.Z.distance(a.position2D,t);t.x+=e,n.Z.clone(t,a.position2D)}}}function c(e,t){e.position.x=t}l.Z.multiplyByPoint(g.Z.TRANSFORM_2D,a.position,a.position2D),l.Z.multiplyByPointAsVector(g.Z.TRANSFORM_2D,a.direction,a.direction2D),l.Z.multiplyByPointAsVector(g.Z.TRANSFORM_2D,a.up,a.up2D);const u=a.frustum;u.right=.5*a.position.z,u.left=-u.right,u.top=u.right*(r.drawingBufferHeight/r.drawingBufferWidth),u.bottom=-u.top;const h=me;l.Z.multiplyByPoint(g.Z.TRANSFORM_2D_INVERSE,a.position2D,h.position),n.Z.clone(a.direction,h.direction),n.Z.clone(a.up,h.up),h.frustum=u;const d=Te(h);M(e,d),Ae(e,t,a,(function(){ie(e,t,a,c,d)}))}(this,e,t),0===e&&(0,s.Z)(this._completeMorph)&&this._completeMorph())};const A=new n.Z,w=new n.Z,v=new n.Z,T=new n.Z,C=new n.Z,E=new n.Z,x=new n.Z,S=new r.Z,O=new l.Z,I=new f.Z,D=new h.Z,P={position:void 0,direction:void 0,up:void 0,position2D:void 0,direction2D:void 0,up2D:void 0,frustum:void 0};b.prototype.morphToColumbusView=function(e,t){(0,s.Z)(this._completeMorph)&&this._completeMorph();const i=this._scene;if(this._previousMode=i.mode,this._previousMode===y.Z.COLUMBUS_VIEW||this._previousMode===y.Z.MORPHING)return;this._scene.morphStart.raiseEvent(this,this._previousMode,y.Z.COLUMBUS_VIEW,!0),i.camera._setTransform(l.Z.IDENTITY);let r=A;const o=w,a=v;if(e>0)r.x=0,r.y=-1,r.z=1,r=n.Z.multiplyByScalar(n.Z.normalize(r,r),5*t.maximumRadius,r),n.Z.negate(n.Z.normalize(r,o),o),n.Z.cross(n.Z.UNIT_X,o,a);else{const e=i.camera;if(this._previousMode===y.Z.SCENE2D)n.Z.clone(e.position,r),r.z=e.frustum.right-e.frustum.left,n.Z.negate(n.Z.UNIT_Z,o),n.Z.clone(n.Z.UNIT_Y,a);else{n.Z.clone(e.positionWC,r),n.Z.clone(e.directionWC,o),n.Z.clone(e.upWC,a);const s=t.scaleToGeodeticSurface(r,x),c=Z.Z.eastNorthUpToFixedFrame(s,t,O);l.Z.inverseTransformation(c,c),i.mapProjection.project(t.cartesianToCartographic(r,S),r),l.Z.multiplyByPointAsVector(c,o,o),l.Z.multiplyByPointAsVector(c,a,a)}}let h;this._morphToOrthographic?(h=D,h.width=i.camera.frustum.right-i.camera.frustum.left,h.aspectRatio=i.drawingBufferWidth/i.drawingBufferHeight):(h=I,h.aspectRatio=i.drawingBufferWidth/i.drawingBufferHeight,h.fov=u.Z.toRadians(60));const d=P;d.position=r,d.direction=o,d.up=a,d.frustum=h;const f=function(e){return function(t){const i=t._scene;i._mode=y.Z.COLUMBUS_VIEW,i.morphTime=y.Z.getMorphTime(y.Z.COLUMBUS_VIEW),L(t);const r=i.camera;(t._previousModeMode!==y.Z.MORPHING||t._morphCancelled)&&(t._morphCancelled=!1,n.Z.clone(e.position,r.position),n.Z.clone(e.direction,r.direction),n.Z.clone(e.up,r.up),n.Z.cross(r.direction,r.up,r.right),n.Z.normalize(r.right,r.right));const o=r.frustum;i.frameState.useLogDepth&&(o.near=.1,o.far=1e10);const a=(0,s.Z)(t._completeMorph);t._completeMorph=void 0,i.camera.update(i.mode),t._scene.morphComplete.raiseEvent(t,t._previousMode,y.Z.COLUMBUS_VIEW,a)}}(d);M(this,f),this._previousMode===y.Z.SCENE2D?function(e,t,i,r){t*=.5;const o=e._scene,s=o.camera,a=n.Z.clone(i.position,Q),u=n.Z.clone(i.direction,$),l=n.Z.clone(i.up,ee);function h(){s.frustum=i.frustum.clone();const h=n.Z.clone(s.position,Y),d=n.Z.clone(s.direction,X),f=n.Z.clone(s.up,J);h.z=a.z;const p=o.tweens.add({duration:t,easingFunction:c.Z.QUARTIC_OUT,startObject:{time:0},stopObject:{time:1},update:function(e){te(h,a,e.time,s.position),te(d,u,e.time,s.direction),te(f,l,e.time,s.up),n.Z.cross(s.direction,s.up,s.right),n.Z.normalize(s.right,s.right)},complete:function(){r(e)}});e._currentTweens.push(p)}o._mode=y.Z.MORPHING,e._morphToOrthographic?h():be(e,0,i,h)}(this,e,d,f):(d.position2D=l.Z.multiplyByPoint(g.Z.TRANSFORM_2D,r,T),d.direction2D=l.Z.multiplyByPointAsVector(g.Z.TRANSFORM_2D,o,C),d.up2D=l.Z.multiplyByPointAsVector(g.Z.TRANSFORM_2D,a,E),i._mode=y.Z.MORPHING,Ae(this,e,d,f)),0===e&&(0,s.Z)(this._completeMorph)&&this._completeMorph()};const R={position:new n.Z,direction:new n.Z,up:new n.Z,frustum:void 0},B=new f.Z;function M(e,t){if(e._scene.completeMorphOnUserInput){e._morphHandler=new m.Z(e._scene.canvas);const i=function(){e._morphCancelled=!0,e._scene.camera.cancelFlight(),t(e)};e._completeMorph=i,e._morphHandler.setInputAction(i,_.Z.LEFT_DOWN),e._morphHandler.setInputAction(i,_.Z.MIDDLE_DOWN),e._morphHandler.setInputAction(i,_.Z.RIGHT_DOWN),e._morphHandler.setInputAction(i,_.Z.WHEEL)}}function L(e){const t=e._currentTweens;for(let e=0;e<t.length;++e)t[e].cancelTween();e._currentTweens.length=0,e._morphHandler=e._morphHandler&&e._morphHandler.destroy()}b.prototype.morphTo3D=function(e,t){(0,s.Z)(this._completeMorph)&&this._completeMorph();const i=this._scene;if(this._previousMode=i.mode,this._previousMode!==y.Z.SCENE3D&&this._previousMode!==y.Z.MORPHING){if(this._scene.morphStart.raiseEvent(this,this._previousMode,y.Z.SCENE3D,!0),i._mode=y.Z.MORPHING,i.camera._setTransform(l.Z.IDENTITY),this._previousMode===y.Z.SCENE2D)!function(e,t,i){t/=3;const r=e._scene,o=r.camera;let s,a;t>0?(s=R,n.Z.fromDegrees(0,0,5*i.maximumRadius,i,s.position),n.Z.negate(s.position,s.direction),n.Z.normalize(s.direction,s.direction),n.Z.clone(n.Z.UNIT_Z,s.up)):(o.position.z=o.frustum.right-o.frustum.left,s=U(e,i)),e._morphToOrthographic?(a=K,a.aspectRatio=r.drawingBufferWidth/r.drawingBufferHeight,a.width=o.frustum.right-o.frustum.left):(a=B,a.aspectRatio=r.drawingBufferWidth/r.drawingBufferHeight,a.fov=u.Z.toRadians(60)),s.frustum=a;const c=ve(s);let l;M(e,c),l=e._morphToOrthographic?function(){W(e,t,s,c)}:function(){be(e,t,s,(function(){W(e,t,s,c)}))},t>0?(r._mode=y.Z.SCENE2D,o.flyTo({duration:t,destination:n.Z.fromDegrees(0,0,5*i.maximumRadius,i,Q),complete:function(){r._mode=y.Z.MORPHING,l()}})):l()}(this,e,t);else{let r,o;e>0?(r=R,n.Z.fromDegrees(0,0,5*t.maximumRadius,t,r.position),n.Z.negate(r.position,r.direction),n.Z.normalize(r.direction,r.direction),n.Z.clone(n.Z.UNIT_Z,r.up)):r=U(this,t);const s=i.camera;s.frustum instanceof h.Z?o=s.frustum.clone():(o=B,o.aspectRatio=i.drawingBufferWidth/i.drawingBufferHeight,o.fov=u.Z.toRadians(60)),r.frustum=o;const a=ve(r);M(this,a),W(this,e,r,a)}0===e&&(0,s.Z)(this._completeMorph)&&this._completeMorph()}},b.prototype.isDestroyed=function(){return!1},b.prototype.destroy=function(){return L(this),(0,a.Z)(this)};const N=new r.Z,F=new n.Z,k=new l.Z;function U(e,t){const i=e._scene,n=i.camera,r=R,o=r.position,s=r.direction,a=r.up,c=i.mapProjection.unproject(n.position,N);t.cartographicToCartesian(c,o);const u=t.scaleToGeodeticSurface(o,F),h=Z.Z.eastNorthUpToFixedFrame(u,t,k);return l.Z.multiplyByPointAsVector(h,n.direction,s),l.Z.multiplyByPointAsVector(h,n.up,a),r}const V=new n.Z,z=new n.Z,H=new n.Z,G=new n.Z,q=new n.Z,j=new n.Z;function W(e,t,i,r){t*=.5;const o=e._scene,s=o.camera,a=n.Z.clone(s.position,V),u=n.Z.clone(s.direction,z),h=n.Z.clone(s.up,H),d=l.Z.multiplyByPoint(g.Z.TRANSFORM_2D_INVERSE,i.position,G),f=l.Z.multiplyByPointAsVector(g.Z.TRANSFORM_2D_INVERSE,i.direction,q),p=l.Z.multiplyByPointAsVector(g.Z.TRANSFORM_2D_INVERSE,i.up,j),m=o.tweens.add({duration:t,easingFunction:c.Z.QUARTIC_OUT,startObject:{time:0},stopObject:{time:1},update:function(e){te(a,d,e.time,s.position),te(u,f,e.time,s.direction),te(h,p,e.time,s.up),n.Z.cross(s.direction,s.up,s.right),n.Z.normalize(s.right,s.right)},complete:function(){we(e,o,0,1,t,r)}});e._currentTweens.push(m)}const K=new h.Z,Y=new n.Z,X=new n.Z,J=new n.Z,Q=new n.Z,$=new n.Z,ee=new n.Z;function te(e,t,i,r){return n.Z.lerp(e,t,i,r)}function ie(e,t,i,n,r){const o=e._scene,s=o.camera;if(s.frustum instanceof h.Z)return;const a=s.frustum.fov,l=.5*u.Z.RADIANS_PER_DEGREE,d=i.position.z*Math.tan(.5*a);s.frustum.far=d/Math.tan(.5*l)+1e7;const f=o.tweens.add({duration:t,easingFunction:c.Z.QUARTIC_OUT,startObject:{time:0},stopObject:{time:1},update:function(e){s.frustum.fov=u.Z.lerp(a,l,e.time);const t=d/Math.tan(.5*s.frustum.fov);n(s,t)},complete:function(){s.frustum=i.frustum.clone(),r(e)}});e._currentTweens.push(f)}const ne=new n.Z,re=new n.Z,oe=new n.Z,se=new n.Z,ae=new n.Z,ce=new n.Z,ue=new d.Z,le=new p.Z,he=new n.Z,de={position:void 0,direction:void 0,up:void 0,frustum:void 0},fe=new r.Z,pe={position:new n.Z,direction:new n.Z,up:new n.Z,position2D:new n.Z,direction2D:new n.Z,up2D:new n.Z,frustum:new d.Z},me={position:new n.Z,direction:new n.Z,up:new n.Z,frustum:void 0},_e=new n.Z,Ze=new p.Z,ge=new l.Z,ye=new n.Z;function be(e,t,i,n){const r=e._scene,o=r.camera,s=o.frustum.right-o.frustum.left;o.frustum=i.frustum.clone();const a=o.frustum.fov,l=.5*u.Z.RADIANS_PER_DEGREE,h=s*Math.tan(.5*a);o.frustum.far=h/Math.tan(.5*l)+1e7,o.frustum.fov=l;const d=r.tweens.add({duration:t,easingFunction:c.Z.QUARTIC_OUT,startObject:{time:0},stopObject:{time:1},update:function(e){o.frustum.fov=u.Z.lerp(l,a,e.time),o.position.z=h/Math.tan(.5*o.frustum.fov)},complete:function(){n(e)}});e._currentTweens.push(d)}function Ae(e,t,i,r){const o=e._scene,s=o.camera,a=n.Z.clone(s.position,Y),u=n.Z.clone(s.direction,X),l=n.Z.clone(s.up,J),h=n.Z.clone(i.position2D,Q),d=n.Z.clone(i.direction2D,$),f=n.Z.clone(i.up2D,ee),p=o.tweens.add({duration:t,easingFunction:c.Z.QUARTIC_OUT,startObject:{time:0},stopObject:{time:1},update:function(e){te(a,h,e.time,s.position),te(u,d,e.time,s.direction),te(l,f,e.time,s.up),n.Z.cross(s.direction,s.up,s.right),n.Z.normalize(s.right,s.right),s._adjustOrthographicFrustum(!0)},complete:function(){we(e,o,1,0,t,r)}});e._currentTweens.push(p)}function we(e,t,i,n,r,o){const a={object:t,property:"morphTime",startValue:i,stopValue:n,duration:r,easingFunction:c.Z.QUARTIC_OUT};(0,s.Z)(o)&&(a.complete=function(){o(e)});const u=t.tweens.addProperty(a);e._currentTweens.push(u)}function ve(e){return function(t){const i=t._scene;i._mode=y.Z.SCENE3D,i.morphTime=y.Z.getMorphTime(y.Z.SCENE3D),L(t);const r=i.camera;(t._previousMode!==y.Z.MORPHING||t._morphCancelled)&&(t._morphCancelled=!1,n.Z.clone(e.position,r.position),n.Z.clone(e.direction,r.direction),n.Z.clone(e.up,r.up),n.Z.cross(r.direction,r.up,r.right),n.Z.normalize(r.right,r.right),r.frustum=e.frustum.clone());const o=r.frustum;i.frameState.useLogDepth&&(o.near=.1,o.far=1e10);const a=(0,s.Z)(t._completeMorph);t._completeMorph=void 0,i.camera.update(i.mode),t._scene.morphComplete.raiseEvent(t,t._previousMode,y.Z.SCENE3D,a)}}function Te(e){return function(t){const i=t._scene;i._mode=y.Z.SCENE2D,i.morphTime=y.Z.getMorphTime(y.Z.SCENE2D),L(t);const r=i.camera;n.Z.clone(e.position,r.position),r.position.z=2*i.mapProjection.ellipsoid.maximumRadius,n.Z.clone(e.direction,r.direction),n.Z.clone(e.up,r.up),n.Z.cross(r.direction,r.up,r.right),n.Z.normalize(r.right,r.right),r.frustum=e.frustum.clone();const o=(0,s.Z)(t._completeMorph);t._completeMorph=void 0,i.camera.update(i.mode),t._scene.morphComplete.raiseEvent(t,t._previousMode,y.Z.SCENE2D,o)}}const Ce=b},377109:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Qt});var n=i(337968),r=i(919382),o=i(114754),s=i(698907),a=i(406144),c=i(426468),u=i(54879),l=i(446938),h=i(253316),d=i(80388),f=i(66172),p=i(734676),m=i(362017),_=i(165373),Z=i(583917),g=i(610490),y=i(634878),b=i(129782),A=i(24401),w=i(957443),v=i(358198),T=i(121033),C=i(919963),E=i(456157),x=i(506678),S=i(867536),O=i(399364);function I(e){if(!(0,c.Z)(e))throw new l.Z("scene is required.");this.enableInputs=!0,this.enableTranslate=!0,this.enableZoom=!0,this.enableRotate=!0,this.enableTilt=!0,this.enableLook=!0,this.inertiaSpin=.9,this.inertiaTranslate=.9,this.inertiaZoom=.8,this.maximumMovementRatio=.1,this.bounceAnimationTime=3,this.minimumZoomDistance=1,this.maximumZoomDistance=Number.POSITIVE_INFINITY,this.translateEventTypes=C.Z.LEFT_DRAG,this.zoomEventTypes=[C.Z.RIGHT_DRAG,C.Z.WHEEL,C.Z.PINCH],this.rotateEventTypes=C.Z.LEFT_DRAG,this.tiltEventTypes=[C.Z.MIDDLE_DRAG,C.Z.PINCH,{eventType:C.Z.LEFT_DRAG,modifier:p.Z.CTRL},{eventType:C.Z.RIGHT_DRAG,modifier:p.Z.CTRL}],this.lookEventTypes={eventType:C.Z.LEFT_DRAG,modifier:p.Z.SHIFT},this.minimumPickingTerrainHeight=15e4,this._minimumPickingTerrainHeight=this.minimumPickingTerrainHeight,this.minimumCollisionTerrainHeight=15e3,this._minimumCollisionTerrainHeight=this.minimumCollisionTerrainHeight,this.minimumTrackBallHeight=75e5,this._minimumTrackBallHeight=this.minimumTrackBallHeight,this.enableCollisionDetection=!0,this._scene=e,this._globe=void 0,this._ellipsoid=void 0,this._aggregator=new T.Z(e.canvas),this._lastInertiaSpinMovement=void 0,this._lastInertiaZoomMovement=void 0,this._lastInertiaTranslateMovement=void 0,this._lastInertiaTiltMovement=void 0,this._inertiaDisablers={_lastInertiaZoomMovement:["_lastInertiaSpinMovement","_lastInertiaTranslateMovement","_lastInertiaTiltMovement"],_lastInertiaTiltMovement:["_lastInertiaSpinMovement","_lastInertiaTranslateMovement"]},this._tweens=new O.Z,this._tween=void 0,this._horizontalRotationAxis=void 0,this._tiltCenterMousePosition=new n.Z(-1,-1),this._tiltCenter=new r.Z,this._rotateMousePosition=new n.Z(-1,-1),this._rotateStartPosition=new r.Z,this._strafeStartPosition=new r.Z,this._strafeMousePosition=new n.Z,this._strafeEndMousePosition=new n.Z,this._zoomMouseStart=new n.Z(-1,-1),this._zoomWorldPosition=new r.Z,this._useZoomWorldPosition=!1,this._tiltCVOffMap=!1,this._looking=!1,this._rotating=!1,this._strafing=!1,this._zoomingOnVector=!1,this._zoomingUnderground=!1,this._rotatingZoom=!1,this._adjustedHeightForTerrain=!1,this._cameraUnderground=!1;const t=e.mapProjection;this._maxCoord=t.project(new s.Z(Math.PI,m.Z.PI_OVER_TWO)),this._zoomFactor=5,this._rotateFactor=void 0,this._rotateRateRangeAdjustment=void 0,this._maximumRotateRate=1.77,this._minimumRotateRate=2e-4,this._minimumZoomRate=20,this._maximumZoomRate=5906376272e3,this._minimumUndergroundPickDistance=2e3,this._maximumUndergroundPickDistance=1e4}function D(e,t,i,r,o,s,a){let u=s[a];(0,c.Z)(u)||(u=s[a]={startPosition:new n.Z,endPosition:new n.Z,motion:new n.Z,inertiaEnabled:!0});const l=e.getButtonPressTime(t,i),h=e.getButtonReleaseTime(t,i),d=l&&h&&(h.getTime()-l.getTime())/1e3,f=new Date,p=h&&(f.getTime()-h.getTime())/1e3;if(l&&h&&d<.4){const a=function(e,t){if(e<0)return 0;const i=25*(1-t);return Math.exp(-i*e)}(p,r),l=e.getLastMovement(t,i);if(!(0,c.Z)(l)||(_=l,n.Z.equalsEpsilon(_.startPosition,_.endPosition,m.Z.EPSILON14))||!u.inertiaEnabled)return;if(u.motion.x=.5*(l.endPosition.x-l.startPosition.x),u.motion.y=.5*(l.endPosition.y-l.startPosition.y),u.startPosition=n.Z.clone(l.startPosition,u.startPosition),u.endPosition=n.Z.multiplyByScalar(u.motion,a,u.endPosition),u.endPosition=n.Z.add(u.startPosition,u.endPosition,u.endPosition),isNaN(u.endPosition.x)||isNaN(u.endPosition.y)||n.Z.distance(u.startPosition,u.endPosition)<.5)return;e.isButtonDown(t,i)||o(s,e.getStartMousePosition(t,i),u)}var _}function P(e,t){if((0,c.Z)(t)){let i=e[t];(0,c.Z)(i)&&(i.inertiaEnabled=!0);const n=e._inertiaDisablers[t];if((0,c.Z)(n)){const t=n.length;for(let r=0;r<t;++r)i=e[n[r]],(0,c.Z)(i)&&(i.inertiaEnabled=!1)}}}const R=[];function B(e,t,i,n,r,o){if(!(0,c.Z)(i))return;const s=e._aggregator;Array.isArray(i)||(R[0]=i,i=R);const a=i.length;for(let u=0;u<a;++u){const a=i[u],l=(0,c.Z)(a.eventType)?a.eventType:a,h=a.modifier,d=s.isMoving(l,h)&&s.getMovement(l,h),f=s.getStartMousePosition(l,h);e.enableInputs&&t&&(d?(n(e,f,d),P(e,o)):r<1&&D(s,l,h,r,n,e,o))}}const M=new A.Z,L=new r.Z,N=new n.Z,F=new r.Z,k=new n.Z,U=new r.Z,V=new r.Z,z=new r.Z,H=new r.Z,G=new r.Z,q=new r.Z,j=new r.Z,W=new r.Z,K=new r.Z,Y=new r.Z,X=new r.Z,J=new r.Z,Q=new r.Z,$=new r.Z,ee=new r.Z,te=new r.Z,ie=new r.Z,ne=new r.Z,re={orientation:new d.Z};function oe(e,t,i,o,s,a){let u=1;(0,c.Z)(a)&&(u=m.Z.clamp(Math.abs(a),.25,1));const l=i.endPosition.y-i.startPosition.y,h=l>0?e.minimumZoomDistance*u:0,d=e.maximumZoomDistance;let f=o*(s-h);f=m.Z.clamp(f,e._minimumZoomRate,e._maximumZoomRate);let p=l/e._scene.canvas.clientHeight;p=Math.min(p,e.maximumMovementRatio);let _=f*p;if(e.enableCollisionDetection||0===e.minimumZoomDistance||!(0,c.Z)(e._globe)){if(_>0&&Math.abs(s-h)<1)return;if(_<0&&Math.abs(s-d)<1)return;s-_<h?_=s-h-1:s-_>d&&(_=s-d)}const Z=e._scene,y=Z.camera,b=Z.mode,A=re.orientation;if(A.heading=y.heading,A.pitch=y.pitch,A.roll=y.roll,y.frustum instanceof g.Z)return void(Math.abs(_)>0&&(y.zoomIn(_),y._adjustOrthographicFrustum()));const w=n.Z.equals(t,e._zoomMouseStart);let v,T=e._zoomingOnVector,C=e._rotatingZoom;if(w||(e._zoomMouseStart=n.Z.clone(t,e._zoomMouseStart),(0,c.Z)(e._globe)&&(b===x.Z.SCENE2D?(v=y.getPickRay(t,M).origin,v=r.Z.fromElements(v.y,v.z,v.x)):v=Ze(e,t,L)),(0,c.Z)(v)?(e._useZoomWorldPosition=!0,e._zoomWorldPosition=r.Z.clone(v,e._zoomWorldPosition)):e._useZoomWorldPosition=!1,T=e._zoomingOnVector=!1,C=e._rotatingZoom=!1,e._zoomingUnderground=e._cameraUnderground),!e._useZoomWorldPosition)return void y.zoomIn(_);let E=b===x.Z.COLUMBUS_VIEW;if(y.positionCartographic.height<2e6&&(C=!0),!w||C){if(b===x.Z.SCENE2D){const i=e._zoomWorldPosition,n=y.position;if(!r.Z.equals(i,n)&&y.positionCartographic.height<2*e._maxCoord.x){const o=y.position.x,s=r.Z.subtract(i,n,F);r.Z.normalize(s,s);const a=r.Z.distance(i,n)*_/(.5*y.getMagnitude());y.move(s,.5*a),(y.position.x<0&&o>0||y.position.x>0&&o<0)&&(v=y.getPickRay(t,M).origin,v=r.Z.fromElements(v.y,v.z,v.x),e._zoomWorldPosition=r.Z.clone(v,e._zoomWorldPosition))}}else if(b===x.Z.SCENE3D){const t=r.Z.normalize(y.position,G);if(e._cameraUnderground||e._zoomingUnderground||y.positionCartographic.height<3e3&&Math.abs(r.Z.dot(y.direction,t))<.6)E=!0;else{const i=Z.canvas,n=k;n.x=i.clientWidth/2,n.y=i.clientHeight/2;const o=Ze(e,n,U);if((0,c.Z)(o))if(y.positionCartographic.height<1e6){if(!(r.Z.dot(y.direction,t)>=-.5)){const i=j;r.Z.clone(y.position,i);const n=e._zoomWorldPosition;let o=q;if(o=r.Z.normalize(n,o),r.Z.dot(o,t)<0)return;const s=ee,a=Y;r.Z.clone(y.direction,a),r.Z.add(i,r.Z.multiplyByScalar(a,1e3,te),s);const c=X,u=J;r.Z.subtract(n,i,c),r.Z.normalize(c,u);const l=r.Z.dot(t,u);if(l>=0)return void(e._zoomMouseStart.x=-1);const h=Math.acos(-l),d=r.Z.magnitude(i),f=r.Z.magnitude(n),p=d-_,Z=r.Z.magnitude(c),g=Math.asin(m.Z.clamp(Z/f*Math.sin(h),-1,1))-Math.asin(m.Z.clamp(p/f*Math.sin(h),-1,1))+h,b=W;r.Z.normalize(i,b);let A=K;A=r.Z.cross(u,b,A),A=r.Z.normalize(A,A),r.Z.normalize(r.Z.cross(b,A,te),a),r.Z.multiplyByScalar(r.Z.normalize(s,te),r.Z.magnitude(s)-_,s),r.Z.normalize(i,i),r.Z.multiplyByScalar(i,p,i);const w=Q;r.Z.multiplyByScalar(r.Z.add(r.Z.multiplyByScalar(b,Math.cos(g)-1,ie),r.Z.multiplyByScalar(a,Math.sin(g),ne),te),p,w),r.Z.add(i,w,i),r.Z.normalize(s,b),r.Z.normalize(r.Z.cross(b,A,te),a);const v=$;return r.Z.multiplyByScalar(r.Z.add(r.Z.multiplyByScalar(b,Math.cos(g)-1,ie),r.Z.multiplyByScalar(a,Math.sin(g),ne),te),r.Z.magnitude(s),v),r.Z.add(s,v,s),r.Z.clone(i,y.position),r.Z.normalize(r.Z.subtract(s,i,te),y.direction),r.Z.clone(y.direction,y.direction),r.Z.cross(y.direction,y.up,y.right),r.Z.cross(y.right,y.direction,y.up),void y.setView(re)}E=!0}else{const t=r.Z.normalize(o,V),i=r.Z.normalize(e._zoomWorldPosition,z),n=r.Z.dot(i,t);if(n>0&&n<1){const e=m.Z.acosClamped(n),o=r.Z.cross(i,t,H),s=_/(Math.abs(e)>m.Z.toRadians(20)?.75*y.positionCartographic.height:y.positionCartographic.height-_);y.rotate(o,e*s)}}else E=!0}}e._rotatingZoom=!E}if(!w&&E||T){let i;const o=S.Z.wgs84ToWindowCoordinates(Z,e._zoomWorldPosition,N);i=b!==x.Z.COLUMBUS_VIEW&&n.Z.equals(t,e._zoomMouseStart)&&(0,c.Z)(o)?y.getPickRay(o,M):y.getPickRay(t,M);const s=i.direction;b!==x.Z.COLUMBUS_VIEW&&b!==x.Z.SCENE2D||r.Z.fromElements(s.y,s.z,s.x,s),y.move(s,_),e._zoomingOnVector=!0}else y.zoomIn(_);e._cameraUnderground||y.setView(re)}const se=new A.Z,ae=new A.Z,ce=new r.Z;function ue(e,t,i){const n=e._scene.camera;let o=n.getPickRay(i.startPosition,se).origin,s=n.getPickRay(i.endPosition,ae).origin;o=r.Z.fromElements(o.y,o.z,o.x,o),s=r.Z.fromElements(s.y,s.z,s.x,s);const a=r.Z.subtract(o,s,ce),c=r.Z.magnitude(a);c>0&&(r.Z.normalize(a,a),n.move(a,c))}function le(e,t,i){(0,c.Z)(i.distance)&&(i=i.distance);const n=e._scene.camera;oe(e,t,i,e._zoomFactor,n.getMagnitude())}const he=new n.Z,de=new n.Z;function fe(e,t,i){if((0,c.Z)(i.angleAndHeight))return void function(e,t,i){let n=e._rotateFactor*e._rotateRateRangeAdjustment;n>e._maximumRotateRate&&(n=e._maximumRotateRate),n<e._minimumRotateRate&&(n=e._minimumRotateRate);const r=e._scene,o=r.camera,s=r.canvas;let a=(i.endPosition.x-i.startPosition.x)/s.clientWidth;a=Math.min(a,e.maximumMovementRatio);const c=n*a*Math.PI*4;o.twistRight(c)}(e,0,i.angleAndHeight);const r=e._scene,o=r.camera,s=r.canvas,a=s.clientWidth,u=s.clientHeight;let l=he;l.x=2/a*i.startPosition.x-1,l.y=2/u*(u-i.startPosition.y)-1,l=n.Z.normalize(l,l);let h=de;h.x=2/a*i.endPosition.x-1,h.y=2/u*(u-i.endPosition.y)-1,h=n.Z.normalize(h,h);let d=m.Z.acosClamped(l.x);l.y<0&&(d=m.Z.TWO_PI-d);let f=m.Z.acosClamped(h.x);h.y<0&&(f=m.Z.TWO_PI-f);const p=f-d;o.twistRight(p)}const pe=new A.Z,me=new r.Z,_e=new r.Z;function Ze(e,t,i){const n=e._scene,o=e._globe,s=n.camera;if(!(0,c.Z)(o))return;const a=!e._cameraUnderground;let u;n.pickPositionSupported&&(u=n.pickPositionWorldCoordinates(t,me));const l=s.getPickRay(t,pe),h=o.pickWorldCoordinates(l,n,a,_e);return((0,c.Z)(u)?r.Z.distance(u,s.positionWC):Number.POSITIVE_INFINITY)<((0,c.Z)(h)?r.Z.distance(h,s.positionWC):Number.POSITIVE_INFINITY)?r.Z.clone(u,i):r.Z.clone(h,i)}const ge=new s.Z;function ye(e){const t=e._ellipsoid,i=e._scene,n=i.camera;let r=0;if(i.mode===x.Z.SCENE3D){const e=t.cartesianToCartographic(n.position,ge);(0,c.Z)(e)&&(r=e.height)}else r=n.position.z;const o=(0,a.Z)(e._scene.globeHeight,0);return Math.abs(o-r)}const be=new r.Z;function Ae(e,t){const i=t.origin,n=t.direction,o=ye(e),s=r.Z.normalize(i,be);let a=Math.abs(r.Z.dot(s,n));return a=2*Math.max(a,.5),o*a}function we(e,t,i,n){let o=r.Z.distance(t.origin,i);const s=ye(e);return o>m.Z.clamp(5*s,e._minimumUndergroundPickDistance,e._maximumUndergroundPickDistance)&&(o=Math.min(o,s/5),o=Math.max(o,100)),A.Z.getPoint(t,o,n)}function ve(e,t,i,n){let o;return(0,c.Z)(i)?(o=r.Z.distance(t.origin,i),o>e._maximumUndergroundPickDistance&&(o=ye(e))):o=ye(e),A.Z.getPoint(t,o,n)}const Te=new n.Z;function Ce(e,t){const i=t.endPosition,r=n.Z.subtract(t.endPosition,t.startPosition,Te),o=e._strafeEndMousePosition;n.Z.add(o,r,o),t.endPosition=o,st(e,t,e._strafeStartPosition),t.endPosition=i}const Ee=new A.Z,xe=new A.Z,Se=new r.Z,Oe=new r.Z,Ie=new r.Z,De=new r.Z,Pe=new y.Z(r.Z.UNIT_X,0),Re=new n.Z,Be=new n.Z;function Me(e,t,i){if(r.Z.equals(t,e._translateMousePosition)||(e._looking=!1),r.Z.equals(t,e._strafeMousePosition)||(e._strafing=!1),e._looking)return void jt(e,0,i);if(e._strafing)return void Ce(e,i);const o=e._scene.camera,s=e._cameraUnderground,a=n.Z.clone(i.startPosition,Re),u=n.Z.clone(i.endPosition,Be);let l=o.getPickRay(a,Ee);const h=r.Z.clone(r.Z.ZERO,De),d=r.Z.UNIT_X;let p;if(o.position.z<e._minimumPickingTerrainHeight&&(p=Ze(e,a,Se),(0,c.Z)(p)&&(h.x=p.x)),s||h.x>o.position.z&&(0,c.Z)(p)){let o=p;return s&&(o=ve(e,l,p,Se)),n.Z.clone(t,e._strafeMousePosition),n.Z.clone(t,e._strafeEndMousePosition),r.Z.clone(o,e._strafeStartPosition),e._strafing=!0,void st(e,i,e._strafeStartPosition)}const _=y.Z.fromPointNormal(h,d,Pe);l=o.getPickRay(a,Ee);const Z=f.Z.rayPlane(l,_,Se),g=o.getPickRay(u,xe),b=f.Z.rayPlane(g,_,Oe);if(!(0,c.Z)(Z)||!(0,c.Z)(b))return e._looking=!0,jt(e,0,i),void n.Z.clone(t,e._translateMousePosition);const A=r.Z.subtract(Z,b,Ie),w=A.x;A.x=A.y,A.y=A.z,A.z=w;const v=r.Z.magnitude(A);v>m.Z.EPSILON6&&(r.Z.normalize(A,A),o.move(A,v))}const Le=new n.Z,Ne=new A.Z,Fe=new r.Z,ke=new r.Z,Ue=new Z.Z,Ve=new Z.Z,ze=new r.Z,He=new y.Z(r.Z.UNIT_X,0),Ge=new r.Z,qe=new s.Z,je=new Z.Z,We=new b.Z,Ke=new _.Z,Ye=new r.Z;function Xe(e,t,i){if((0,c.Z)(i.angleAndHeight)&&(i=i.angleAndHeight),n.Z.equals(t,e._tiltCenterMousePosition)||(e._tiltCVOffMap=!1,e._looking=!1),e._looking)return void jt(e,0,i);const o=e._scene.camera;e._tiltCVOffMap||!e.onMap()||Math.abs(o.position.z)>e._minimumPickingTerrainHeight?(e._tiltCVOffMap=!0,function(e,t,i){const o=e._scene,s=o.camera,a=o.canvas,u=Le;u.x=a.clientWidth/2,u.y=a.clientHeight/2;const l=s.getPickRay(u,Ne),d=r.Z.UNIT_X,f=l.origin,p=l.direction;let _;const g=r.Z.dot(d,p);if(Math.abs(g)>m.Z.EPSILON6&&(_=-r.Z.dot(d,f)/g),!(0,c.Z)(_)||_<=0)return e._looking=!0,jt(e,0,i),void n.Z.clone(t,e._tiltCenterMousePosition);const y=r.Z.multiplyByScalar(p,_,Fe);r.Z.add(f,y,y);const b=o.mapProjection,A=b.ellipsoid;r.Z.fromElements(y.y,y.z,y.x,y);const w=b.unproject(y,qe);A.cartographicToCartesian(w,y);const T=v.Z.eastNorthUpToFixedFrame(y,A,Ue),C=e._globe,E=e._ellipsoid;e._globe=void 0,e._ellipsoid=h.Z.UNIT_SPHERE,e._rotateFactor=1,e._rotateRateRangeAdjustment=1;const x=Z.Z.clone(s.transform,je);s._setTransform(T),pt(e,0,i,r.Z.UNIT_Z),s._setTransform(x),e._globe=C,e._ellipsoid=E;const S=E.maximumRadius;e._rotateFactor=1/S,e._rotateRateRangeAdjustment=S}(e,t,i)):function(e,t,i){const o=e._scene,s=o.camera,a=e._cameraUnderground;let u,l;const d=r.Z.UNIT_X;if(n.Z.equals(t,e._tiltCenterMousePosition))u=r.Z.clone(e._tiltCenter,Fe);else{if(s.position.z<e._minimumPickingTerrainHeight&&(u=Ze(e,t,Fe)),!(0,c.Z)(u)){l=s.getPickRay(t,Ne);const o=l.origin,a=l.direction;let h;const f=r.Z.dot(d,a);if(Math.abs(f)>m.Z.EPSILON6&&(h=-r.Z.dot(d,o)/f),!(0,c.Z)(h)||h<=0)return e._looking=!0,jt(e,0,i),void n.Z.clone(t,e._tiltCenterMousePosition);u=r.Z.multiplyByScalar(a,h,Fe),r.Z.add(o,u,u)}a&&((0,c.Z)(l)||(l=s.getPickRay(t,Ne)),we(e,l,u,u)),n.Z.clone(t,e._tiltCenterMousePosition),r.Z.clone(u,e._tiltCenter)}const p=o.canvas,g=Le;g.x=p.clientWidth/2,g.y=e._tiltCenterMousePosition.y,l=s.getPickRay(g,Ne);const A=r.Z.clone(r.Z.ZERO,ze);A.x=u.x;const w=y.Z.fromPointNormal(A,d,He),T=f.Z.rayPlane(l,w,ke),C=s._projection,E=C.ellipsoid;r.Z.fromElements(u.y,u.z,u.x,u);let x=C.unproject(u,qe);E.cartographicToCartesian(x,u);const S=v.Z.eastNorthUpToFixedFrame(u,E,Ue);let O;(0,c.Z)(T)?(r.Z.fromElements(T.y,T.z,T.x,T),x=C.unproject(T,qe),E.cartographicToCartesian(x,T),O=v.Z.eastNorthUpToFixedFrame(T,E,Ve)):O=S;const I=e._globe,D=e._ellipsoid;e._globe=void 0,e._ellipsoid=h.Z.UNIT_SPHERE,e._rotateFactor=1,e._rotateRateRangeAdjustment=1;let P=r.Z.UNIT_Z;const R=Z.Z.clone(s.transform,je);s._setTransform(S);const B=r.Z.cross(r.Z.UNIT_Z,r.Z.normalize(s.position,Ge),Ge),M=r.Z.dot(s.right,B);if(pt(e,0,i,P,!1,!0),s._setTransform(O),M<0){const t=i.startPosition.y-i.endPosition.y;(a&&t<0||!a&&t>0)&&(P=void 0);const n=s.constrainedAxis;s.constrainedAxis=void 0,pt(e,0,i,P,!0,!1),s.constrainedAxis=n}else pt(e,0,i,P,!0,!1);if((0,c.Z)(s.constrainedAxis)){const e=r.Z.cross(s.direction,s.constrainedAxis,Ye);r.Z.equalsEpsilon(e,r.Z.ZERO,m.Z.EPSILON6)||(r.Z.dot(e,s.right)<0&&r.Z.negate(e,e),r.Z.cross(e,s.direction,s.up),r.Z.cross(s.direction,s.up,s.right),r.Z.normalize(s.up,s.up),r.Z.normalize(s.right,s.right))}s._setTransform(R),e._globe=I,e._ellipsoid=D;const L=D.maximumRadius;e._rotateFactor=1/L,e._rotateRateRangeAdjustment=L;const N=r.Z.clone(s.positionWC,Ge);if(e.enableCollisionDetection&&Yt(e),!r.Z.equals(s.positionWC,N)){s._setTransform(O),s.worldToCameraCoordinatesPoint(N,N);const e=r.Z.magnitudeSquared(N);r.Z.magnitudeSquared(s.position)>e&&(r.Z.normalize(s.position,s.position),r.Z.multiplyByScalar(s.position,Math.sqrt(e),s.position));const t=r.Z.angleBetween(N,s.position),i=r.Z.cross(N,s.position,N);r.Z.normalize(i,i);const n=b.Z.fromAxisAngle(i,t,We),o=_.Z.fromQuaternion(n,Ke);_.Z.multiplyByVector(o,s.direction,s.direction),_.Z.multiplyByVector(o,s.up,s.up),r.Z.cross(s.direction,s.up,s.right),r.Z.cross(s.right,s.direction,s.up),s._setTransform(R)}}(e,t,i)}const Je=new n.Z,Qe=new A.Z,$e=new r.Z;function et(e,t,i){(0,c.Z)(i.distance)&&(i=i.distance);const n=e._scene,o=n.camera,s=n.canvas,a=e._cameraUnderground;let u;a?u=t:(u=Je,u.x=s.clientWidth/2,u.y=s.clientHeight/2);const l=o.getPickRay(u,Qe),h=l.origin,d=l.direction;let f,p;if(o.position.z<e._minimumPickingTerrainHeight&&(f=Ze(e,u,$e)),(0,c.Z)(f)&&(p=r.Z.distance(h,f)),a){const t=Ae(e,l);p=(0,c.Z)(p)?Math.min(p,t):t}if(!(0,c.Z)(p)){const e=r.Z.UNIT_X;p=-r.Z.dot(e,h)/r.Z.dot(e,d)}oe(e,t,i,e._zoomFactor,p)}const tt=new A.Z,it=new y.Z(r.Z.UNIT_X,0),nt=new r.Z,rt=new r.Z,ot=new r.Z;function st(e,t,i){const n=e._scene,o=n.camera,s=o.getPickRay(t.endPosition,tt);let a=r.Z.clone(o.direction,rt);n.mode===x.Z.COLUMBUS_VIEW&&r.Z.fromElements(a.z,a.x,a.y,a);const u=y.Z.fromPointNormal(i,a,it),l=f.Z.rayPlane(s,u,nt);(0,c.Z)(l)&&(a=r.Z.subtract(i,l,a),n.mode===x.Z.COLUMBUS_VIEW&&r.Z.fromElements(a.y,a.z,a.x,a),r.Z.add(o.position,a,o.position))}const at=new r.Z,ct=new s.Z,ut=new r.Z,lt=new h.Z,ht=new r.Z,dt=new r.Z;function ft(e,t,i){const o=e._scene.camera,s=e._cameraUnderground;let a,u,l=e._ellipsoid;if(!Z.Z.equals(o.transform,Z.Z.IDENTITY))return void pt(e,0,i);const d=l.geodeticSurfaceNormal(o.position,ht);if(n.Z.equals(t,e._rotateMousePosition)){if(e._looking)jt(e,0,i,d);else if(e._rotating)pt(e,0,i);else if(e._strafing)Ce(e,i);else{if(r.Z.magnitude(o.position)<r.Z.magnitude(e._rotateStartPosition))return;a=r.Z.magnitude(e._rotateStartPosition),u=ut,u.x=u.y=u.z=a,l=h.Z.fromCartesian3(u,lt),vt(e,0,i,l)}return}e._looking=!1,e._rotating=!1,e._strafing=!1;const f=l.cartesianToCartographic(o.positionWC,ct).height,p=e._globe;if((0,c.Z)(p)&&f<e._minimumPickingTerrainHeight){const f=Ze(e,i.startPosition,ot);if((0,c.Z)(f)){let c=!1;const d=o.getPickRay(i.startPosition,pe);if(s)c=!0,ve(e,d,f,f);else{const e=l.geodeticSurfaceNormal(f,dt);c=!!(Math.abs(r.Z.dot(d.direction,e))<.05)||r.Z.magnitude(o.position)<r.Z.magnitude(f)}c?(n.Z.clone(t,e._strafeEndMousePosition),r.Z.clone(f,e._strafeStartPosition),e._strafing=!0,st(e,i,e._strafeStartPosition)):(a=r.Z.magnitude(f),u=ut,u.x=u.y=u.z=a,l=h.Z.fromCartesian3(u,lt),vt(e,0,i,l),r.Z.clone(f,e._rotateStartPosition))}else e._looking=!0,jt(e,0,i,d)}else(0,c.Z)(o.pickEllipsoid(i.startPosition,e._ellipsoid,at))?(vt(e,0,i,e._ellipsoid),r.Z.clone(at,e._rotateStartPosition)):f>e._minimumTrackBallHeight?(e._rotating=!0,pt(e,0,i)):(e._looking=!0,jt(e,0,i,d));n.Z.clone(t,e._rotateMousePosition)}function pt(e,t,i,n,o,s){o=(0,a.Z)(o,!1),s=(0,a.Z)(s,!1);const u=e._scene,l=u.camera,h=u.canvas,d=l.constrainedAxis;(0,c.Z)(n)&&(l.constrainedAxis=n);const f=r.Z.magnitude(l.position);let p=e._rotateFactor*(f-e._rotateRateRangeAdjustment);p>e._maximumRotateRate&&(p=e._maximumRotateRate),p<e._minimumRotateRate&&(p=e._minimumRotateRate);let m=(i.startPosition.x-i.endPosition.x)/h.clientWidth,_=(i.startPosition.y-i.endPosition.y)/h.clientHeight;m=Math.min(m,e.maximumMovementRatio),_=Math.min(_,e.maximumMovementRatio);const Z=p*m*Math.PI*2,g=p*_*Math.PI;o||l.rotateRight(Z),s||l.rotateUp(g),l.constrainedAxis=d}const mt=o.Z.clone(o.Z.UNIT_W),_t=o.Z.clone(o.Z.UNIT_W),Zt=new r.Z,gt=new r.Z,yt=new r.Z,bt=new r.Z,At=new n.Z,wt=new n.Z;function vt(e,t,i,o){const s=e._scene.camera,a=n.Z.clone(i.startPosition,At),u=n.Z.clone(i.endPosition,wt);let l=s.pickEllipsoid(a,o,mt),h=s.pickEllipsoid(u,o,_t);if(!(0,c.Z)(l)||!(0,c.Z)(h))return e._rotating=!0,void pt(e,0,i);if(l=s.worldToCameraCoordinates(l,l),h=s.worldToCameraCoordinates(h,h),(0,c.Z)(s.constrainedAxis)){const e=s.constrainedAxis,t=r.Z.mostOrthogonalAxis(e,Zt);r.Z.cross(t,e,t),r.Z.normalize(t,t);const i=r.Z.cross(e,t,gt),n=r.Z.magnitude(l),o=r.Z.dot(e,l),a=Math.acos(o/n),c=r.Z.multiplyByScalar(e,o,yt);r.Z.subtract(l,c,c),r.Z.normalize(c,c);const u=r.Z.magnitude(h),d=r.Z.dot(e,h),f=Math.acos(d/u),p=r.Z.multiplyByScalar(e,d,bt);r.Z.subtract(h,p,p),r.Z.normalize(p,p);let _=Math.acos(r.Z.dot(c,t));r.Z.dot(c,i)<0&&(_=m.Z.TWO_PI-_);let Z=Math.acos(r.Z.dot(p,t));r.Z.dot(p,i)<0&&(Z=m.Z.TWO_PI-Z);const g=_-Z;let y;y=r.Z.equalsEpsilon(e,s.position,m.Z.EPSILON2)?s.right:r.Z.cross(e,s.position,Zt);const b=r.Z.cross(e,y,Zt),A=r.Z.dot(b,r.Z.subtract(l,e,gt)),w=r.Z.dot(b,r.Z.subtract(h,e,gt));let v;v=A>0&&w>0?f-a:A>0&&w<=0?r.Z.dot(s.position,e)>0?-a-f:a+f:a-f,s.rotateRight(g),s.rotateUp(v)}else{r.Z.normalize(l,l),r.Z.normalize(h,h);const e=r.Z.dot(l,h),t=r.Z.cross(l,h,Zt);if(e<1&&!r.Z.equalsEpsilon(t,r.Z.ZERO,m.Z.EPSILON14)){const i=Math.acos(e);s.rotate(t,i)}}}const Tt=new r.Z,Ct=new s.Z;function Et(e,t,i){(0,c.Z)(i.distance)&&(i=i.distance);const n=e._ellipsoid,o=e._scene,s=o.camera,a=o.canvas,u=e._cameraUnderground;let l;u?l=t:(l=Je,l.x=a.clientWidth/2,l.y=a.clientHeight/2);const h=s.getPickRay(l,Qe);let d;const f=n.cartesianToCartographic(s.position,Ct).height;let p;if(f<e._minimumPickingTerrainHeight&&(d=Ze(e,l,$e)),(0,c.Z)(d)&&(p=r.Z.distance(h.origin,d)),u){const t=Ae(e,h);p=(0,c.Z)(p)?Math.min(p,t):t}(0,c.Z)(p)||(p=f);const m=r.Z.normalize(s.position,Tt);oe(e,t,i,e._zoomFactor,p,r.Z.dot(m,s.direction))}const xt=new n.Z,St=new A.Z,Ot=new r.Z,It=new r.Z,Dt=new Z.Z,Pt=new Z.Z,Rt=new Z.Z,Bt=new b.Z,Mt=new _.Z,Lt=new s.Z,Nt=new r.Z;function Ft(e,t,i){const o=e._scene.camera;if(!Z.Z.equals(o.transform,Z.Z.IDENTITY))return;if((0,c.Z)(i.angleAndHeight)&&(i=i.angleAndHeight),n.Z.equals(t,e._tiltCenterMousePosition)||(e._tiltOnEllipsoid=!1,e._looking=!1),e._looking){const t=e._ellipsoid.geodeticSurfaceNormal(o.position,Nt);return void jt(e,0,i,t)}const s=e._ellipsoid.cartesianToCartographic(o.position,Lt);e._tiltOnEllipsoid||s.height>e._minimumCollisionTerrainHeight?(e._tiltOnEllipsoid=!0,function(e,t,i){const o=e._ellipsoid,s=e._scene,a=s.camera,u=.25*e.minimumZoomDistance,l=o.cartesianToCartographic(a.positionWC,kt).height;if(l-u-1<m.Z.EPSILON3&&i.endPosition.y-i.startPosition.y<0)return;const d=s.canvas,p=xt;p.x=d.clientWidth/2,p.y=d.clientHeight/2;const _=a.getPickRay(p,St);let g;const y=f.Z.rayEllipsoid(_,o);if((0,c.Z)(y))g=A.Z.getPoint(_,y.start,Ot);else{if(!(l>e._minimumTrackBallHeight)){e._looking=!0;const r=e._ellipsoid.geodeticSurfaceNormal(a.position,Nt);return jt(e,0,i,r),void n.Z.clone(t,e._tiltCenterMousePosition)}{const e=f.Z.grazingAltitudeLocation(_,o);if(!(0,c.Z)(e))return;const t=o.cartesianToCartographic(e,Lt);t.height=0,g=o.cartographicToCartesian(t,Ot)}}const b=v.Z.eastNorthUpToFixedFrame(g,o,Dt),w=e._globe,T=e._ellipsoid;e._globe=void 0,e._ellipsoid=h.Z.UNIT_SPHERE,e._rotateFactor=1,e._rotateRateRangeAdjustment=1;const C=Z.Z.clone(a.transform,Rt);a._setTransform(b),pt(e,0,i,r.Z.UNIT_Z),a._setTransform(C),e._globe=w,e._ellipsoid=T;const E=T.maximumRadius;e._rotateFactor=1/E,e._rotateRateRangeAdjustment=E}(e,t,i)):function(e,t,i){const o=e._ellipsoid,s=e._scene,a=s.camera,u=e._cameraUnderground;let l,d,p;if(n.Z.equals(t,e._tiltCenterMousePosition))l=r.Z.clone(e._tiltCenter,Ot);else{if(l=Ze(e,t,Ot),!(0,c.Z)(l)){if(d=a.getPickRay(t,St),p=f.Z.rayEllipsoid(d,o),!(0,c.Z)(p)){if(o.cartesianToCartographic(a.position,Lt).height<=e._minimumTrackBallHeight){e._looking=!0;const r=e._ellipsoid.geodeticSurfaceNormal(a.position,Nt);jt(e,0,i,r),n.Z.clone(t,e._tiltCenterMousePosition)}return}l=A.Z.getPoint(d,p.start,Ot)}u&&((0,c.Z)(d)||(d=a.getPickRay(t,St)),we(e,d,l,l)),n.Z.clone(t,e._tiltCenterMousePosition),r.Z.clone(l,e._tiltCenter)}const g=s.canvas,y=xt;y.x=g.clientWidth/2,y.y=e._tiltCenterMousePosition.y,d=a.getPickRay(y,St);const w=r.Z.magnitude(l),T=r.Z.fromElements(w,w,w,ut),C=h.Z.fromCartesian3(T,lt);if(p=f.Z.rayEllipsoid(d,C),!(0,c.Z)(p))return;const E=r.Z.magnitude(d.origin)>w?p.start:p.stop,x=A.Z.getPoint(d,E,It),S=v.Z.eastNorthUpToFixedFrame(l,o,Dt),O=v.Z.eastNorthUpToFixedFrame(x,C,Pt),I=e._globe,D=e._ellipsoid;e._globe=void 0,e._ellipsoid=h.Z.UNIT_SPHERE,e._rotateFactor=1,e._rotateRateRangeAdjustment=1;let P=r.Z.UNIT_Z;const R=Z.Z.clone(a.transform,Rt);a._setTransform(O);const B=r.Z.cross(x,a.positionWC,Ye);if(r.Z.dot(a.rightWC,B)<0){const t=i.startPosition.y-i.endPosition.y;(u&&t<0||!u&&t>0)&&(P=void 0);const n=a.constrainedAxis;a.constrainedAxis=void 0,pt(e,0,i,P,!0,!1),a.constrainedAxis=n}else pt(e,0,i,P,!0,!1);if(a._setTransform(S),pt(e,0,i,P,!1,!0),(0,c.Z)(a.constrainedAxis)){const e=r.Z.cross(a.direction,a.constrainedAxis,Ye);r.Z.equalsEpsilon(e,r.Z.ZERO,m.Z.EPSILON6)||(r.Z.dot(e,a.right)<0&&r.Z.negate(e,e),r.Z.cross(e,a.direction,a.up),r.Z.cross(a.direction,a.up,a.right),r.Z.normalize(a.up,a.up),r.Z.normalize(a.right,a.right))}a._setTransform(R),e._globe=I,e._ellipsoid=D;const M=D.maximumRadius;e._rotateFactor=1/M,e._rotateRateRangeAdjustment=M;const L=r.Z.clone(a.positionWC,Ye);if(e.enableCollisionDetection&&Yt(e),!r.Z.equals(a.positionWC,L)){a._setTransform(O),a.worldToCameraCoordinatesPoint(L,L);const e=r.Z.magnitudeSquared(L);r.Z.magnitudeSquared(a.position)>e&&(r.Z.normalize(a.position,a.position),r.Z.multiplyByScalar(a.position,Math.sqrt(e),a.position));const t=r.Z.angleBetween(L,a.position),i=r.Z.cross(L,a.position,L);r.Z.normalize(i,i);const n=b.Z.fromAxisAngle(i,t,Bt),o=_.Z.fromQuaternion(n,Mt);_.Z.multiplyByVector(o,a.direction,a.direction),_.Z.multiplyByVector(o,a.up,a.up),r.Z.cross(a.direction,a.up,a.right),r.Z.cross(a.right,a.direction,a.up),a._setTransform(R)}}(e,t,i)}const kt=new s.Z,Ut=new n.Z,Vt=new n.Z,zt=new A.Z,Ht=new A.Z,Gt=new r.Z,qt=new r.Z;function jt(e,t,i,n){const o=e._scene.camera,s=Ut;s.x=i.startPosition.x,s.y=0;const u=Vt;u.x=i.endPosition.x,u.y=0;let l,h,d=o.getPickRay(s,zt),f=o.getPickRay(u,Ht),p=0;o.frustum instanceof g.Z?(l=d.origin,h=f.origin,r.Z.add(o.direction,l,l),r.Z.add(o.direction,h,h),r.Z.subtract(l,o.position,l),r.Z.subtract(h,o.position,h),r.Z.normalize(l,l),r.Z.normalize(h,h)):(l=d.direction,h=f.direction);let _=r.Z.dot(l,h);_<1&&(p=Math.acos(_)),p=i.startPosition.x>i.endPosition.x?-p:p;const Z=e._horizontalRotationAxis;if((0,c.Z)(n)?o.look(n,-p):(0,c.Z)(Z)?o.look(Z,-p):o.lookLeft(p),s.x=0,s.y=i.startPosition.y,u.x=0,u.y=i.endPosition.y,d=o.getPickRay(s,zt),f=o.getPickRay(u,Ht),p=0,o.frustum instanceof g.Z?(l=d.origin,h=f.origin,r.Z.add(o.direction,l,l),r.Z.add(o.direction,h,h),r.Z.subtract(l,o.position,l),r.Z.subtract(h,o.position,h),r.Z.normalize(l,l),r.Z.normalize(h,h)):(l=d.direction,h=f.direction),_=r.Z.dot(l,h),_<1&&(p=Math.acos(_)),p=i.startPosition.y>i.endPosition.y?-p:p,n=(0,a.Z)(n,Z),(0,c.Z)(n)){const e=o.direction,t=r.Z.negate(n,Gt),i=r.Z.equalsEpsilon(e,n,m.Z.EPSILON2),s=r.Z.equalsEpsilon(e,t,m.Z.EPSILON2);if(i||s)(i&&p<0||s&&p>0)&&o.look(o.right,-p);else{_=r.Z.dot(e,n);let i=m.Z.acosClamped(_);p>0&&p>i&&(p=i-m.Z.EPSILON4),_=r.Z.dot(e,t),i=m.Z.acosClamped(_),p<0&&-p>i&&(p=-i+m.Z.EPSILON4);const s=r.Z.cross(n,e,qt);o.look(s,p)}}else o.lookUp(p)}const Wt=new Z.Z,Kt=new s.Z;function Yt(e){e._adjustedHeightForTerrain=!0;const t=e._scene,i=t.mode,n=t.globe;if(!(0,c.Z)(n)||i===x.Z.SCENE2D||i===x.Z.MORPHING)return;const o=t.camera,s=n.ellipsoid,a=t.mapProjection;let u,l;Z.Z.equals(o.transform,Z.Z.IDENTITY)||(u=Z.Z.clone(o.transform,Wt),l=r.Z.magnitude(o.position),o._setTransform(Z.Z.IDENTITY));const h=Kt;i===x.Z.SCENE3D?s.cartesianToCartographic(o.position,h):a.unproject(o.position,h);let d=!1;if(h.height<e._minimumCollisionTerrainHeight){const t=e._scene.globeHeight;if((0,c.Z)(t)){const n=t+e.minimumZoomDistance;h.height<n&&(h.height=n,i===x.Z.SCENE3D?s.cartographicToCartesian(h,o.position):a.project(h,o.position),d=!0)}}(0,c.Z)(u)&&(o._setTransform(u),d&&(r.Z.normalize(o.position,o.position),r.Z.negate(o.position,o.direction),r.Z.multiplyByScalar(o.position,Math.max(l,e.minimumZoomDistance),o.position),r.Z.normalize(o.direction,o.direction),r.Z.cross(o.direction,o.up,o.right),r.Z.cross(o.right,o.direction,o.up)))}I.prototype.onMap=function(){const e=this._scene,t=e.mode,i=e.camera;return t!==x.Z.COLUMBUS_VIEW||Math.abs(i.position.x)-this._maxCoord.x<0&&Math.abs(i.position.y)-this._maxCoord.y<0};const Xt=new r.Z,Jt=new r.Z;I.prototype.update=function(){const e=this._scene,t=e.camera,i=e.globe,n=e.mode;Z.Z.equals(t.transform,Z.Z.IDENTITY)?(this._globe=i,this._ellipsoid=(0,c.Z)(this._globe)?this._globe.ellipsoid:e.mapProjection.ellipsoid):(this._globe=void 0,this._ellipsoid=h.Z.UNIT_SPHERE);const o=(0,c.Z)(this._globe)?this._globe.terrainExaggeration:1,s=(0,c.Z)(this._globe)?this._globe.terrainExaggerationRelativeHeight:0;this._minimumCollisionTerrainHeight=w.Z.getHeight(this.minimumCollisionTerrainHeight,o,s),this._minimumPickingTerrainHeight=w.Z.getHeight(this.minimumPickingTerrainHeight,o,s),this._minimumTrackBallHeight=w.Z.getHeight(this.minimumTrackBallHeight,o,s),this._cameraUnderground=e.cameraUnderground&&(0,c.Z)(this._globe);const a=this._ellipsoid.maximumRadius;this._rotateFactor=1/a,this._rotateRateRangeAdjustment=a,this._adjustedHeightForTerrain=!1;const u=r.Z.clone(t.positionWC,Xt),l=r.Z.clone(t.directionWC,Jt);var d;n===x.Z.SCENE2D?function(e){const t=e._scene.mapMode2D===E.Z.ROTATE;Z.Z.equals(Z.Z.IDENTITY,e._scene.camera.transform)?(B(e,e.enableTranslate,e.translateEventTypes,ue,e.inertiaTranslate,"_lastInertiaTranslateMovement"),B(e,e.enableZoom,e.zoomEventTypes,le,e.inertiaZoom,"_lastInertiaZoomMovement"),t&&B(e,e.enableRotate,e.tiltEventTypes,fe,e.inertiaSpin,"_lastInertiaTiltMovement")):(B(e,e.enableZoom,e.zoomEventTypes,le,e.inertiaZoom,"_lastInertiaZoomMovement"),t&&B(e,e.enableRotate,e.translateEventTypes,fe,e.inertiaSpin,"_lastInertiaSpinMovement"))}(this):n===x.Z.COLUMBUS_VIEW?(this._horizontalRotationAxis=r.Z.UNIT_Z,function(e){const t=e._scene.camera;if(Z.Z.equals(Z.Z.IDENTITY,t.transform)){const i=e._tweens;if(e._aggregator.anyButtonDown&&i.removeAll(),B(e,e.enableTilt,e.tiltEventTypes,Xe,e.inertiaSpin,"_lastInertiaTiltMovement"),B(e,e.enableTranslate,e.translateEventTypes,Me,e.inertiaTranslate,"_lastInertiaTranslateMovement"),B(e,e.enableZoom,e.zoomEventTypes,et,e.inertiaZoom,"_lastInertiaZoomMovement"),B(e,e.enableLook,e.lookEventTypes,jt),!e._aggregator.anyButtonDown&&!i.contains(e._tween)){const n=t.createCorrectPositionTween(e.bounceAnimationTime);(0,c.Z)(n)&&(e._tween=i.add(n))}i.update()}else B(e,e.enableRotate,e.rotateEventTypes,pt,e.inertiaSpin,"_lastInertiaSpinMovement"),B(e,e.enableZoom,e.zoomEventTypes,Et,e.inertiaZoom,"_lastInertiaZoomMovement")}(this)):n===x.Z.SCENE3D&&(this._horizontalRotationAxis=void 0,B(d=this,d.enableRotate,d.rotateEventTypes,ft,d.inertiaSpin,"_lastInertiaSpinMovement"),B(d,d.enableZoom,d.zoomEventTypes,Et,d.inertiaZoom,"_lastInertiaZoomMovement"),B(d,d.enableTilt,d.tiltEventTypes,Ft,d.inertiaSpin,"_lastInertiaTiltMovement"),B(d,d.enableLook,d.lookEventTypes,jt)),this.enableCollisionDetection&&!this._adjustedHeightForTerrain&&(!r.Z.equals(u,t.positionWC)||!r.Z.equals(l,t.directionWC))&&Yt(this),this._aggregator.reset()},I.prototype.isDestroyed=function(){return!1},I.prototype.destroy=function(){return this._tweens.removeAll(),this._aggregator=this._aggregator&&this._aggregator.destroy(),(0,u.Z)(this)};const Qt=I},971480:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Ie});var n=i(152124),r=i(360791),o=i(101985),s=i(337968),a=i(919382),c=i(114754),u=i(698907),l=i(556592),h=i(545125),d=i(182934),f=i(307260),p=i(700725),m=i(406144),_=i(426468),Z=i(54879),g=i(446938),y=i(488802),b=i(952254),A=i(360382),w=i(362017),v=i(583917),T=i(736404),C=i(118121),E=i(100883),x=i(129782),S=i(974403),O=i(619287),I=i(20209),D=i(994589),P=i(161842),R=i(247913),B=i(884980),M=i(842649),L=i(823989),N=i(687931),F=i(501327),k=i(840925),U=i(364232),V=i(270013),z=i(283044),H=i(333473),G=i(690466),q=i(492183),j=i(578721),W=i(939800),K=i(982550);function Y(e){const t=(e=(0,m.Z)(e,m.Z.EMPTY_OBJECT)).context;if(!(0,_.Z)(t))throw new g.Z("context is required.");if(!(0,_.Z)(e.lightCamera))throw new g.Z("lightCamera is required.");if((0,_.Z)(e.numberOfCascades)&&1!==e.numberOfCascades&&4!==e.numberOfCascades)throw new g.Z("Only one or four cascades are supported.");this._enabled=(0,m.Z)(e.enabled,!0),this._softShadows=(0,m.Z)(e.softShadows,!1),this._normalOffset=(0,m.Z)(e.normalOffset,!0),this.dirty=!0,this.fromLightSource=(0,m.Z)(e.fromLightSource,!0),this.darkness=(0,m.Z)(e.darkness,.3),this._darkness=this.darkness,this.fadingEnabled=(0,m.Z)(e.fadingEnabled,!0),this.maximumDistance=(0,m.Z)(e.maximumDistance,5e3),this._outOfView=!1,this._outOfViewPrevious=!1,this._needsUpdate=!0;let i,n=!0;(y.Z.isInternetExplorer()||y.Z.isEdge()||(y.Z.isChrome()||y.Z.isFirefox())&&y.Z.isWindows()&&!t.depthTexture)&&(n=!1),this._polygonOffsetSupported=n,this._terrainBias={polygonOffset:n,polygonOffsetFactor:1.1,polygonOffsetUnits:4,normalOffset:this._normalOffset,normalOffsetScale:.5,normalShading:!0,normalShadingSmooth:.3,depthBias:1e-4},this._primitiveBias={polygonOffset:n,polygonOffsetFactor:1.1,polygonOffsetUnits:4,normalOffset:this._normalOffset,normalOffsetScale:.1,normalShading:!0,normalShadingSmooth:.05,depthBias:2e-5},this._pointBias={polygonOffset:!1,polygonOffsetFactor:1.1,polygonOffsetUnits:4,normalOffset:this._normalOffset,normalOffsetScale:0,normalShading:!0,normalShadingSmooth:.1,depthBias:5e-4},this._depthAttachment=void 0,this._colorAttachment=void 0,this._shadowMapMatrix=new v.Z,this._shadowMapTexture=void 0,this._lightDirectionEC=new a.Z,this._lightPositionEC=new c.Z,this._distance=0,this._lightCamera=e.lightCamera,this._shadowMapCamera=new ue,this._shadowMapCullingVolume=void 0,this._sceneCamera=void 0,this._boundingSphere=new r.Z,this._isPointLight=(0,m.Z)(e.isPointLight,!1),this._pointLightRadius=(0,m.Z)(e.pointLightRadius,100),this._cascadesEnabled=!this._isPointLight&&(0,m.Z)(e.cascadesEnabled,!0),this._numberOfCascades=this._cascadesEnabled?(0,m.Z)(e.numberOfCascades,4):0,this._fitNearFar=!0,this._maximumCascadeDistances=[25,150,700,Number.MAX_VALUE],this._textureSize=new s.Z,this._isSpotLight=!1,this._cascadesEnabled?this._shadowMapCamera.frustum=new T.Z:(0,_.Z)(this._lightCamera.frustum.fov)&&(this._isSpotLight=!0),this._cascadeSplits=[new c.Z,new c.Z],this._cascadeMatrices=[new v.Z,new v.Z,new v.Z,new v.Z],this._cascadeDistances=new c.Z,i=this._isPointLight?6:this._cascadesEnabled?this._numberOfCascades:1,this._passes=new Array(i);for(let e=0;e<i;++e)this._passes[e]=new X(t);this.debugShow=!1,this.debugFreezeFrame=!1,this._debugFreezeFrame=!1,this._debugCascadeColors=!1,this._debugLightFrustum=void 0,this._debugCameraFrustum=void 0,this._debugCascadeFrustums=new Array(this._numberOfCascades),this._debugShadowViewCommand=void 0,this._usesDepthTexture=t.depthTexture,this._isPointLight&&(this._usesDepthTexture=!1),this._primitiveRenderState=void 0,this._terrainRenderState=void 0,this._pointRenderState=void 0,Q(this),this._clearCommand=new I.Z({depth:1,color:new h.Z}),this._clearPassState=new L.Z(t),this._size=(0,m.Z)(e.size,2048),this.size=this._size}function X(e){this.camera=new ue,this.passState=new L.Z(e),this.framebuffer=void 0,this.textureOffsets=void 0,this.commandList=[],this.cullingVolume=void 0}function J(e,t){return U.Z.fromCache({cull:{enabled:!0,face:G.Z.BACK},depthTest:{enabled:!0},colorMask:{red:e,green:e,blue:e,alpha:e},depthMask:!0,polygonOffset:{enabled:t.polygonOffset,factor:t.polygonOffsetFactor,units:t.polygonOffsetUnits}})}function Q(e){const t=!e._usesDepthTexture;e._primitiveRenderState=J(t,e._primitiveBias),e._terrainRenderState=J(t,e._terrainBias),e._pointRenderState=J(t,e._pointBias)}function $(e){const t=e._passes.length;for(let i=0;i<t;++i){const t=e._passes[i],n=t.framebuffer;(0,_.Z)(n)&&!n.isDestroyed()&&n.destroy(),t.framebuffer=void 0}e._depthAttachment=e._depthAttachment&&e._depthAttachment.destroy(),e._colorAttachment=e._colorAttachment&&e._colorAttachment.destroy()}function ee(e,t){e._isPointLight?function(e,t){const i=new F.Z({context:t,width:e._textureSize.x,height:e._textureSize.y,format:k.Z.DEPTH_COMPONENT16}),n=new P.Z({context:t,width:e._textureSize.x,height:e._textureSize.y,pixelFormat:E.Z.RGBA,pixelDatatype:N.Z.UNSIGNED_BYTE,sampler:V.Z.NEAREST}),r=[n.negativeX,n.negativeY,n.negativeZ,n.positiveX,n.positiveY,n.positiveZ];for(let n=0;n<6;++n){const o=new B.Z({context:t,depthRenderbuffer:i,colorTextures:[r[n]],destroyAttachments:!1}),s=e._passes[n];s.framebuffer=o,s.passState.framebuffer=o}e._shadowMapTexture=n,e._depthAttachment=i,e._colorAttachment=n}(e,t):e._usesDepthTexture?function(e,t){const i=new z.Z({context:t,width:e._textureSize.x,height:e._textureSize.y,pixelFormat:E.Z.DEPTH_STENCIL,pixelDatatype:N.Z.UNSIGNED_INT_24_8,sampler:V.Z.NEAREST}),n=new B.Z({context:t,depthStencilTexture:i,destroyAttachments:!1}),r=e._passes.length;for(let t=0;t<r;++t){const i=e._passes[t];i.framebuffer=n,i.passState.framebuffer=n}e._shadowMapTexture=i,e._depthAttachment=i}(e,t):function(e,t){const i=new F.Z({context:t,width:e._textureSize.x,height:e._textureSize.y,format:k.Z.DEPTH_COMPONENT16}),n=new z.Z({context:t,width:e._textureSize.x,height:e._textureSize.y,pixelFormat:E.Z.RGBA,pixelDatatype:N.Z.UNSIGNED_BYTE,sampler:V.Z.NEAREST}),r=new B.Z({context:t,depthRenderbuffer:i,colorTextures:[n],destroyAttachments:!1}),o=e._passes.length;for(let t=0;t<o;++t){const i=e._passes[t];i.framebuffer=r,i.passState.framebuffer=r}e._shadowMapTexture=n,e._depthAttachment=i,e._colorAttachment=n}(e,t)}function te(e,t,i){i=(0,m.Z)(i,0),(e._isPointLight||0===i)&&(e._clearCommand.framebuffer=e._passes[i].framebuffer,e._clearCommand.execute(t,e._clearPassState))}Y.MAXIMUM_DISTANCE=2e4,Y.prototype.debugCreateRenderStates=function(){Q(this)},Object.defineProperties(Y.prototype,{enabled:{get:function(){return this._enabled},set:function(e){this.dirty=this._enabled!==e,this._enabled=e}},normalOffset:{get:function(){return this._normalOffset},set:function(e){this.dirty=this._normalOffset!==e,this._normalOffset=e,this._terrainBias.normalOffset=e,this._primitiveBias.normalOffset=e,this._pointBias.normalOffset=e}},softShadows:{get:function(){return this._softShadows},set:function(e){this.dirty=this._softShadows!==e,this._softShadows=e}},size:{get:function(){return this._size},set:function(e){!function(e,t){e._size=t;const i=e._passes,r=i.length,o=e._textureSize;if(e._isPointLight){t=D.Z.maximumCubeMapSize>=t?t:D.Z.maximumCubeMapSize,o.x=t,o.y=t;const e=new n.Z(0,0,t,t);i[0].passState.viewport=e,i[1].passState.viewport=e,i[2].passState.viewport=e,i[3].passState.viewport=e,i[4].passState.viewport=e,i[5].passState.viewport=e}else 1===r?(t=D.Z.maximumTextureSize>=t?t:D.Z.maximumTextureSize,o.x=t,o.y=t,i[0].passState.viewport=new n.Z(0,0,t,t)):4===r&&(t=D.Z.maximumTextureSize>=2*t?t:D.Z.maximumTextureSize/2,o.x=2*t,o.y=2*t,i[0].passState.viewport=new n.Z(0,0,t,t),i[1].passState.viewport=new n.Z(t,0,t,t),i[2].passState.viewport=new n.Z(0,t,t,t),i[3].passState.viewport=new n.Z(t,t,t,t));e._clearPassState.viewport=new n.Z(0,0,o.x,o.y);for(let e=0;e<r;++e){const t=i[e],n=t.passState.viewport,r=n.x/o.x,s=n.y/o.y,a=n.width/o.x,c=n.height/o.y;t.textureOffsets=new v.Z(a,0,0,r,0,c,0,s,0,0,1,0,0,0,0,1)}}(this,e)}},outOfView:{get:function(){return this._outOfView}},shadowMapCullingVolume:{get:function(){return this._shadowMapCullingVolume}},passes:{get:function(){return this._passes}},isPointLight:{get:function(){return this._isPointLight}},debugCascadeColors:{get:function(){return this._debugCascadeColors},set:function(e){this.dirty=this._debugCascadeColors!==e,this._debugCascadeColors=e}}});const ie=new n.Z;const ne=new Array(8);ne[0]=new c.Z(-1,-1,-1,1),ne[1]=new c.Z(1,-1,-1,1),ne[2]=new c.Z(1,1,-1,1),ne[3]=new c.Z(-1,1,-1,1),ne[4]=new c.Z(-1,-1,1,1),ne[5]=new c.Z(1,-1,1,1),ne[6]=new c.Z(1,1,1,1),ne[7]=new c.Z(-1,1,1,1);const re=new v.Z,oe=new Array(8);for(let e=0;e<8;++e)oe[e]=new c.Z;const se=[h.Z.RED,h.Z.GREEN,h.Z.BLUE,h.Z.MAGENTA],ae=new a.Z;function ce(e,t){!function(e,t){const i=t.context,r=t.context.drawingBufferWidth,o=t.context.drawingBufferHeight,s=.3*Math.min(r,o),a=ie;a.x=r-s,a.y=0,a.width=s,a.height=s;let c=e._debugShadowViewCommand;(0,_.Z)(c)||(c=function(e,t){let i;i=e._isPointLight?"uniform samplerCube shadowMap_textureCube; \nvarying vec2 v_textureCoordinates; \nvoid main() \n{ \n vec2 uv = v_textureCoordinates; \n vec3 dir; \n \n if (uv.y < 0.5) \n { \n if (uv.x < 0.333) \n { \n dir.x = -1.0; \n dir.y = uv.x * 6.0 - 1.0; \n dir.z = uv.y * 4.0 - 1.0; \n } \n else if (uv.x < 0.666) \n { \n dir.y = -1.0; \n dir.x = uv.x * 6.0 - 3.0; \n dir.z = uv.y * 4.0 - 1.0; \n } \n else \n { \n dir.z = -1.0; \n dir.x = uv.x * 6.0 - 5.0; \n dir.y = uv.y * 4.0 - 1.0; \n } \n } \n else \n { \n if (uv.x < 0.333) \n { \n dir.x = 1.0; \n dir.y = uv.x * 6.0 - 1.0; \n dir.z = uv.y * 4.0 - 3.0; \n } \n else if (uv.x < 0.666) \n { \n dir.y = 1.0; \n dir.x = uv.x * 6.0 - 3.0; \n dir.z = uv.y * 4.0 - 3.0; \n } \n else \n { \n dir.z = 1.0; \n dir.x = uv.x * 6.0 - 5.0; \n dir.y = uv.y * 4.0 - 3.0; \n } \n } \n \n float shadow = czm_unpackDepth(textureCube(shadowMap_textureCube, dir)); \n gl_FragColor = vec4(vec3(shadow), 1.0); \n} \n":"uniform sampler2D shadowMap_texture; \nvarying vec2 v_textureCoordinates; \nvoid main() \n{ \n"+(e._usesDepthTexture?" float shadow = texture2D(shadowMap_texture, v_textureCoordinates).r; \n":" float shadow = czm_unpackDepth(texture2D(shadowMap_texture, v_textureCoordinates)); \n")+" gl_FragColor = vec4(vec3(shadow), 1.0); \n} \n";const n=t.createViewportQuadCommand(i,{uniformMap:{shadowMap_texture:function(){return e._shadowMapTexture},shadowMap_textureCube:function(){return e._shadowMapTexture}}});return n.pass=M.Z.OVERLAY,n}(e,i),e._debugShadowViewCommand=c),(0,_.Z)(c.renderState)&&n.Z.equals(c.renderState.viewport,a)||(c.renderState=U.Z.fromCache({viewport:n.Z.clone(a)})),t.commandList.push(e._debugShadowViewCommand)}(e,t);const i=e.debugFreezeFrame&&!e._debugFreezeFrame;if(e._debugFreezeFrame=e.debugFreezeFrame,e.debugFreezeFrame&&(i&&(e._debugCameraFrustum=e._debugCameraFrustum&&e._debugCameraFrustum.destroy(),e._debugCameraFrustum=new q.Z({camera:e._sceneCamera,color:h.Z.CYAN,updateOnChange:!1})),e._debugCameraFrustum.update(t)),e._cascadesEnabled){if(e.debugFreezeFrame){i&&(e._debugLightFrustum=e._debugLightFrustum&&e._debugLightFrustum.destroy(),e._debugLightFrustum=new q.Z({camera:e._shadowMapCamera,color:h.Z.YELLOW,updateOnChange:!1})),e._debugLightFrustum.update(t);for(let n=0;n<e._numberOfCascades;++n)i&&(e._debugCascadeFrustums[n]=e._debugCascadeFrustums[n]&&e._debugCascadeFrustums[n].destroy(),e._debugCascadeFrustums[n]=new q.Z({camera:e._passes[n].camera,color:se[n],updateOnChange:!1})),e._debugCascadeFrustums[n].update(t)}}else if(e._isPointLight){if(!(0,_.Z)(e._debugLightFrustum)||e._needsUpdate){const t=e._shadowMapCamera.positionWC,i=x.Z.IDENTITY,n=2*e._pointLightRadius,r=a.Z.fromElements(n,n,n,ae),s=v.Z.fromTranslationQuaternionRotationScale(t,i,r,re);e._debugLightFrustum=e._debugLightFrustum&&e._debugLightFrustum.destroy(),e._debugLightFrustum=function(e,t){const i=new b.Z({geometry:new o.Z({minimum:new a.Z(-.5,-.5,-.5),maximum:new a.Z(.5,.5,.5)}),attributes:{color:d.Z.fromColor(t)}}),n=new b.Z({geometry:new S.Z({radius:.5}),attributes:{color:d.Z.fromColor(t)}});return new W.Z({geometryInstances:[i,n],appearance:new j.Z({translucent:!1,flat:!0}),asynchronous:!1,modelMatrix:e})}(s,h.Z.YELLOW)}e._debugLightFrustum.update(t)}else(0,_.Z)(e._debugLightFrustum)&&!e._needsUpdate||(e._debugLightFrustum=new q.Z({camera:e._shadowMapCamera,color:h.Z.YELLOW,updateOnChange:!1})),e._debugLightFrustum.update(t)}function ue(){this.viewMatrix=new v.Z,this.inverseViewMatrix=new v.Z,this.frustum=void 0,this.positionCartographic=new u.Z,this.positionWC=new a.Z,this.directionWC=a.Z.clone(a.Z.UNIT_Z),this.upWC=a.Z.clone(a.Z.UNIT_Y),this.rightWC=a.Z.clone(a.Z.UNIT_X),this.viewProjectionMatrix=new v.Z}ue.prototype.clone=function(e){v.Z.clone(e.viewMatrix,this.viewMatrix),v.Z.clone(e.inverseViewMatrix,this.inverseViewMatrix),this.frustum=e.frustum.clone(this.frustum),u.Z.clone(e.positionCartographic,this.positionCartographic),a.Z.clone(e.positionWC,this.positionWC),a.Z.clone(e.directionWC,this.directionWC),a.Z.clone(e.upWC,this.upWC),a.Z.clone(e.rightWC,this.rightWC)};const le=new v.Z(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1);ue.prototype.getViewProjection=function(){const e=this.viewMatrix,t=this.frustum.projectionMatrix;return v.Z.multiply(t,e,this.viewProjectionMatrix),v.Z.multiply(le,this.viewProjectionMatrix,this.viewProjectionMatrix),this.viewProjectionMatrix};const he=new Array(5),de=new C.Z,fe=new Array(4),pe=new a.Z,me=new a.Z,_e=new v.Z,Ze=new a.Z,ge=new a.Z,ye=new a.Z,be=[new a.Z(-1,0,0),new a.Z(0,-1,0),new a.Z(0,0,-1),new a.Z(1,0,0),new a.Z(0,1,0),new a.Z(0,0,1)],Ae=[new a.Z(0,-1,0),new a.Z(0,0,-1),new a.Z(0,-1,0),new a.Z(0,-1,0),new a.Z(0,0,1),new a.Z(0,-1,0)],we=[new a.Z(0,0,1),new a.Z(1,0,0),new a.Z(-1,0,0),new a.Z(0,0,-1),new a.Z(1,0,0),new a.Z(1,0,0)],ve=new a.Z,Te=new a.Z,Ce=new r.Z,Ee=Ce.center;Y.prototype.update=function(e){if(function(e,t){const i=t.camera,n=e._lightCamera,o=e._sceneCamera,s=e._shadowMapCamera;e._cascadesEnabled?a.Z.clone(n.directionWC,s.directionWC):e._isPointLight?a.Z.clone(n.positionWC,s.positionWC):s.clone(n);const c=e._lightDirectionEC;let u,l;v.Z.multiplyByPointAsVector(i.viewMatrix,s.directionWC,c),a.Z.normalize(c,c),a.Z.negate(c,c),v.Z.multiplyByPoint(i.viewMatrix,s.positionWC,e._lightPositionEC),e._lightPositionEC.w=e._pointLightRadius,e._fitNearFar?(u=Math.min(t.shadowState.nearPlane,e.maximumDistance),l=Math.min(t.shadowState.farPlane,e.maximumDistance),l=Math.max(l,u+1)):(u=i.frustum.near,l=e.maximumDistance),e._sceneCamera=H.Z.clone(i,o),i.frustum.clone(e._sceneCamera.frustum),e._sceneCamera.frustum.near=u,e._sceneCamera.frustum.far=l,e._distance=l-u,function(e,t){const i=e._sceneCamera,n=e._shadowMapCamera,o=Ce;if(e._cascadesEnabled){if(i.frustum.near>=e.maximumDistance)return e._outOfView=!0,void(e._needsUpdate=!1);const r=t.mapProjection.ellipsoid.geodeticSurfaceNormal(i.positionWC,ve),o=a.Z.negate(n.directionWC,Te),s=a.Z.dot(r,o);if(e.fadingEnabled){const t=w.Z.clamp(s/.1,0,1);e._darkness=w.Z.lerp(1,e.darkness,t)}else e._darkness=e.darkness;if(s<0)return e._outOfView=!0,void(e._needsUpdate=!1);e._needsUpdate=!0,e._outOfView=!1}else if(e._isPointLight)o.center=n.positionWC,o.radius=e._pointLightRadius,e._outOfView=t.cullingVolume.computeVisibility(o)===A.Z.OUTSIDE,e._needsUpdate=!e._outOfView&&!e._boundingSphere.equals(o),r.Z.clone(o,e._boundingSphere);else{const i=n.frustum.far/2,s=a.Z.add(n.positionWC,a.Z.multiplyByScalar(n.directionWC,i,Ee),Ee);o.center=s,o.radius=i,e._outOfView=t.cullingVolume.computeVisibility(o)===A.Z.OUTSIDE,e._needsUpdate=!e._outOfView&&!e._boundingSphere.equals(o),r.Z.clone(o,e._boundingSphere)}}(e,t),!e._outOfViewPrevious&&e._outOfView&&(e._needsUpdate=!0),e._outOfViewPrevious=e._outOfView}(this,e),this._needsUpdate)if(t=this,i=e.context,(0,_.Z)(t._passes[0].framebuffer)&&t._shadowMapTexture.width===t._textureSize.x||($(t),ee(t,i),function(e,t){e._usesDepthTexture&&e._passes[0].framebuffer.status!==O.Z.FRAMEBUFFER_COMPLETE&&(e._usesDepthTexture=!1,Q(e),$(e),ee(e,t))}(t,i),te(t,i)),this._isPointLight&&function(e,t){const i=new C.Z;i.fov=w.Z.PI_OVER_TWO,i.near=1,i.far=e._pointLightRadius,i.aspectRatio=1;for(let n=0;n<6;++n){const r=e._passes[n].camera;r.positionWC=e._shadowMapCamera.positionWC,r.positionCartographic=t.mapProjection.ellipsoid.cartesianToCartographic(r.positionWC,r.positionCartographic),r.directionWC=be[n],r.upWC=Ae[n],r.rightWC=we[n],v.Z.computeView(r.positionWC,r.directionWC,r.upWC,r.rightWC,r.viewMatrix),v.Z.inverse(r.viewMatrix,r.inverseViewMatrix),r.frustum=i}}(this,e),this._cascadesEnabled&&(function(e,t){const i=e._shadowMapCamera,n=e._sceneCamera,r=v.Z.multiply(n.frustum.projectionMatrix,n.viewMatrix,re),o=v.Z.inverse(r,re),s=i.directionWC;let u=n.directionWC;a.Z.equalsEpsilon(s,u,w.Z.EPSILON10)&&(u=n.upWC);const l=a.Z.cross(s,u,Ze);u=a.Z.cross(l,s,ge),a.Z.normalize(u,u),a.Z.normalize(l,l);const h=a.Z.fromElements(0,0,0,ye);let d=v.Z.computeView(h,s,u,l,_e);const f=v.Z.multiply(d,o,re),p=a.Z.fromElements(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE,pe),m=a.Z.fromElements(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE,me);for(let e=0;e<8;++e){const t=c.Z.clone(ne[e],oe[e]);v.Z.multiplyByVector(f,t,t),a.Z.divideByScalar(t,t.w,t),a.Z.minimumByComponent(t,p,p),a.Z.maximumByComponent(t,m,m)}m.z+=1e3,p.z-=10;const _=ye;_.x=-.5*(p.x+m.x),_.y=-.5*(p.y+m.y),_.z=-m.z;const Z=v.Z.fromTranslation(_,re);d=v.Z.multiply(Z,d,d);const g=.5*(m.x-p.x),y=.5*(m.y-p.y),b=m.z-p.z,A=i.frustum;A.left=-g,A.right=g,A.bottom=-y,A.top=y,A.near=.01,A.far=b,v.Z.clone(d,i.viewMatrix),v.Z.inverse(d,i.inverseViewMatrix),v.Z.getTranslation(i.inverseViewMatrix,i.positionWC),t.mapProjection.ellipsoid.cartesianToCartographic(i.positionWC,i.positionCartographic),a.Z.clone(s,i.directionWC),a.Z.clone(u,i.upWC),a.Z.clone(l,i.rightWC)}(this,e),this._numberOfCascades>1&&function(e,t){const i=e._shadowMapCamera,n=e._sceneCamera,r=n.frustum.near,o=n.frustum.far,s=e._numberOfCascades;let u;const l=o-r,h=o/r;let d=.9,f=!1;t.shadowState.closestObjectSize<200&&(f=!0,d=.9);const p=fe,m=he;for(m[0]=r,m[s]=o,u=0;u<s;++u){const e=(u+1)/s,t=r*Math.pow(h,e),i=r+l*e,n=w.Z.lerp(i,t,d);m[u+1]=n,p[u]=n-m[u]}if(f){for(u=0;u<s;++u)p[u]=Math.min(p[u],e._maximumCascadeDistances[u]);let t=m[0];for(u=0;u<s-1;++u)t+=p[u],m[u+1]=t}c.Z.unpack(m,0,e._cascadeSplits[0]),c.Z.unpack(m,1,e._cascadeSplits[1]),c.Z.unpack(p,0,e._cascadeDistances);const _=i.frustum,Z=_.left,g=_.right,y=_.bottom,b=_.top,A=_.near,T=_.far,C=i.positionWC,E=i.directionWC,x=i.upWC,S=n.frustum.clone(de),O=i.getViewProjection();for(u=0;u<s;++u){S.near=m[u],S.far=m[u+1];const t=v.Z.multiply(S.projectionMatrix,n.viewMatrix,re),r=v.Z.inverse(t,re),o=v.Z.multiply(O,r,re),s=a.Z.fromElements(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE,pe),l=a.Z.fromElements(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE,me);for(let e=0;e<8;++e){const t=c.Z.clone(ne[e],oe[e]);v.Z.multiplyByVector(o,t,t),a.Z.divideByScalar(t,t.w,t),a.Z.minimumByComponent(t,s,s),a.Z.maximumByComponent(t,l,l)}s.x=Math.max(s.x,0),s.y=Math.max(s.y,0),s.z=0,l.x=Math.min(l.x,1),l.y=Math.min(l.y,1),l.z=Math.min(l.z,1);const h=e._passes[u],d=h.camera;d.clone(i);const f=d.frustum;f.left=Z+s.x*(g-Z),f.right=Z+l.x*(g-Z),f.bottom=y+s.y*(b-y),f.top=y+l.y*(b-y),f.near=A+s.z*(T-A),f.far=A+l.z*(T-A),h.cullingVolume=d.frustum.computeCullingVolume(C,E,x);const p=e._cascadeMatrices[u];v.Z.multiply(d.getViewProjection(),n.inverseViewMatrix,p),v.Z.multiply(h.textureOffsets,p,p)}}(this,e)),this._isPointLight)this._shadowMapCullingVolume=p.Z.fromBoundingSphere(this._boundingSphere);else{const e=this._shadowMapCamera,t=e.positionWC,i=e.directionWC,n=e.upWC;this._shadowMapCullingVolume=e.frustum.computeCullingVolume(t,i,n),1===this._passes.length&&this._passes[0].camera.clone(e)}var t,i;if(1===this._passes.length){const e=this._sceneCamera.inverseViewMatrix;v.Z.multiply(this._shadowMapCamera.getViewProjection(),e,this._shadowMapMatrix)}this.debugShow&&ce(this,e)},Y.prototype.updatePass=function(e,t){te(this,e,t)};const xe=new s.Z;function Se(e,t,i){const n=e._isPointLight?e._pointBias:i?e._terrainBias:e._primitiveBias,r={shadowMap_texture:function(){return e._shadowMapTexture},shadowMap_textureCube:function(){return e._shadowMapTexture},shadowMap_matrix:function(){return e._shadowMapMatrix},shadowMap_cascadeSplits:function(){return e._cascadeSplits},shadowMap_cascadeMatrices:function(){return e._cascadeMatrices},shadowMap_lightDirectionEC:function(){return e._lightDirectionEC},shadowMap_lightPositionEC:function(){return e._lightPositionEC},shadowMap_cascadeDistances:function(){return e._cascadeDistances},shadowMap_texelSizeDepthBiasAndNormalShadingSmooth:function(){const t=xe;return t.x=1/e._textureSize.x,t.y=1/e._textureSize.y,c.Z.fromElements(t.x,t.y,n.depthBias,n.normalShadingSmooth,this.combinedUniforms1)},shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness:function(){return c.Z.fromElements(n.normalOffsetScale,e._distance,e.maximumDistance,e._darkness,this.combinedUniforms2)},combinedUniforms1:new c.Z,combinedUniforms2:new c.Z};return(0,f.Z)(t,r,!1)}function Oe(e,t,i,n,r,o){let s,a,c;if((0,_.Z)(o)&&(s=o.shaderProgram,a=o.renderState,c=o.uniformMap),(o=R.Z.shallowClone(i,o)).castShadows=!0,o.receiveShadows=!1,!(0,_.Z)(s)||r!==i.shaderProgram.id||t){const t=i.shaderProgram,r=i.pass===M.Z.GLOBE,o=i.pass!==M.Z.TRANSLUCENT,u=e._isPointLight,h=e._usesDepthTexture,d=K.Z.getShadowCastShaderKeyword(u,r,h,o);if(s=n.shaderCache.getDerivedShaderProgram(t,d),!(0,_.Z)(s)){const e=t.vertexShaderSource,i=t.fragmentShaderSource,a=K.Z.createShadowCastVertexShader(e,u,r),c=K.Z.createShadowCastFragmentShader(i,u,h,o);s=n.shaderCache.createDerivedShaderProgram(t,d,{vertexShaderSource:a,fragmentShaderSource:c,attributeLocations:t._attributeLocations})}a=e._primitiveRenderState,u?a=e._pointRenderState:r&&(a=e._terrainRenderState),i.renderState.cull.enabled||(a=(0,l.Z)(a,!1),a.cull=(0,l.Z)(a.cull,!1),a.cull.enabled=!1,a=U.Z.fromCache(a)),c=Se(e,i.uniformMap,r)}return o.shaderProgram=s,o.renderState=a,o.uniformMap=c,o}Y.createReceiveDerivedCommand=function(e,t,i,n,r){(0,_.Z)(r)||(r={});const o=e.length>0,s=t.shaderProgram,a=s.vertexShaderSource,c=s.fragmentShaderSource,u=t.pass===M.Z.GLOBE;let l=!1;if(u&&(l=t.owner.data.renderedMesh.encoding.hasVertexNormals),t.receiveShadows&&o){let o,h;(0,_.Z)(r.receiveCommand)&&(o=r.receiveCommand.shaderProgram,h=r.receiveCommand.uniformMap),r.receiveCommand=R.Z.shallowClone(t,r.receiveCommand),r.castShadows=!1,r.receiveShadows=!0;const d=r.receiveShaderCastShadows!==t.castShadows,f=r.receiveShaderProgramId!==t.shaderProgram.id;if(!(0,_.Z)(o)||f||i||d){const i=K.Z.getShadowReceiveShaderKeyword(e[0],t.castShadows,u,l);if(o=n.shaderCache.getDerivedShaderProgram(s,i),!(0,_.Z)(o)){const r=K.Z.createShadowReceiveVertexShader(a,u,l),h=K.Z.createShadowReceiveFragmentShader(c,e[0],t.castShadows,u,l);o=n.shaderCache.createDerivedShaderProgram(s,i,{vertexShaderSource:r,fragmentShaderSource:h,attributeLocations:s._attributeLocations})}h=Se(e[0],t.uniformMap,u)}r.receiveCommand.shaderProgram=o,r.receiveCommand.uniformMap=h,r.receiveShaderProgramId=t.shaderProgram.id,r.receiveShaderCastShadows=t.castShadows}return r},Y.createCastDerivedCommand=function(e,t,i,n,r){if((0,_.Z)(r)||(r={}),t.castShadows){let o=r.castCommands;(0,_.Z)(o)||(o=r.castCommands=[]);const s=r.castShaderProgramId,a=e.length;o.length=a;for(let r=0;r<a;++r)o[r]=Oe(e[r],i,t,n,s,o[r]);r.castShaderProgramId=t.shaderProgram.id}return r},Y.prototype.isDestroyed=function(){return!1},Y.prototype.destroy=function(){$(this),this._debugLightFrustum=this._debugLightFrustum&&this._debugLightFrustum.destroy(),this._debugCameraFrustum=this._debugCameraFrustum&&this._debugCameraFrustum.destroy(),this._debugShadowViewCommand=this._debugShadowViewCommand&&this._debugShadowViewCommand.shaderProgram&&this._debugShadowViewCommand.shaderProgram.destroy();for(let e=0;e<this._numberOfCascades;++e)this._debugCascadeFrustums[e]=this._debugCascadeFrustums[e]&&this._debugCascadeFrustums[e].destroy();return(0,Z.Z)(this)};const Ie=Y},982550:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(426468),r=i(279427);function o(){}o.getShadowCastShaderKeyword=function(e,t,i,n){return"castShadow "+e+" "+t+" "+i+" "+n},o.createShadowCastVertexShader=function(e,t,i){const o=e.defines.slice(0),s=e.sources.slice(0);o.push("SHADOW_MAP"),i&&o.push("GENERATE_POSITION");const a=r.Z.findPositionVarying(e),c=(0,n.Z)(a);if(t&&!c){const e=s.length;for(let t=0;t<e;++t)s[t]=r.Z.replaceMain(s[t],"czm_shadow_cast_main");const t="varying vec3 v_positionEC; \nvoid main() \n{ \n czm_shadow_cast_main(); \n v_positionEC = (czm_inverseProjection * gl_Position).xyz; \n}";s.push(t)}return new r.Z({defines:o,sources:s})},o.createShadowCastFragmentShader=function(e,t,i,o){const s=e.defines.slice(0),a=e.sources.slice(0);let c=r.Z.findPositionVarying(e);const u=(0,n.Z)(c);u||(c="v_positionEC");const l=a.length;for(let e=0;e<l;++e)a[e]=r.Z.replaceMain(a[e],"czm_shadow_cast_main");let h="";return t&&(u||(h+="varying vec3 v_positionEC; \n"),h+="uniform vec4 shadowMap_lightPositionEC; \n"),h+=o?"void main() \n{ \n":"void main() \n{ \n czm_shadow_cast_main(); \n if (gl_FragColor.a == 0.0) \n { \n discard; \n } \n",h+=t?" float distance = length("+c+"); \n if (distance >= shadowMap_lightPositionEC.w) \n { \n discard; \n } \n distance /= shadowMap_lightPositionEC.w; // radius \n gl_FragColor = czm_packDepth(distance); \n":i?" gl_FragColor = vec4(1.0); \n":" gl_FragColor = czm_packDepth(gl_FragCoord.z); \n",h+="} \n",a.push(h),new r.Z({defines:s,sources:a})},o.getShadowReceiveShaderKeyword=function(e,t,i,n){return"receiveShadow "+e._usesDepthTexture+e._polygonOffsetSupported+e._isPointLight+e._isSpotLight+(e._numberOfCascades>1)+e.debugCascadeColors+e.softShadows+t+i+n},o.createShadowReceiveVertexShader=function(e,t,i){const n=e.defines.slice(0),o=e.sources.slice(0);return n.push("SHADOW_MAP"),t&&(i?n.push("GENERATE_POSITION_AND_NORMAL"):n.push("GENERATE_POSITION")),new r.Z({defines:n,sources:o})},o.createShadowReceiveFragmentShader=function(e,t,i,o,s){const a=r.Z.findNormalVarying(e),c=!o&&(0,n.Z)(a)||o&&s,u=r.Z.findPositionVarying(e),l=(0,n.Z)(u),h=t._usesDepthTexture,d=t._polygonOffsetSupported,f=t._isPointLight,p=t._isSpotLight,m=t._numberOfCascades>1,_=t.debugCascadeColors,Z=t.softShadows,g=f?t._pointBias:o?t._terrainBias:t._primitiveBias,y=e.defines.slice(0),b=e.sources.slice(0),A=b.length;for(let e=0;e<A;++e)b[e]=r.Z.replaceMain(b[e],"czm_shadow_receive_main");f?y.push("USE_CUBE_MAP_SHADOW"):h&&y.push("USE_SHADOW_DEPTH_TEXTURE"),Z&&!f&&y.push("USE_SOFT_SHADOWS"),m&&i&&o&&(c?y.push("ENABLE_VERTEX_LIGHTING"):y.push("ENABLE_DAYNIGHT_SHADING")),i&&g.normalShading&&c&&(y.push("USE_NORMAL_SHADING"),g.normalShadingSmooth>0&&y.push("USE_NORMAL_SHADING_SMOOTH"));let w,v="";return v+=f?"uniform samplerCube shadowMap_textureCube; \n":"uniform sampler2D shadowMap_texture; \n",w=l?" return vec4("+u+", 1.0); \n":"#ifndef LOG_DEPTH \n return czm_windowToEyeCoordinates(gl_FragCoord); \n#else \n return vec4(v_logPositionEC, 1.0); \n#endif \n",v+="uniform mat4 shadowMap_matrix; \nuniform vec3 shadowMap_lightDirectionEC; \nuniform vec4 shadowMap_lightPositionEC; \nuniform vec4 shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness; \nuniform vec4 shadowMap_texelSizeDepthBiasAndNormalShadingSmooth; \n#ifdef LOG_DEPTH \nvarying vec3 v_logPositionEC; \n#endif \nvec4 getPositionEC() \n{ \n"+w+"} \nvec3 getNormalEC() \n{ \n"+(c?" return normalize("+a+"); \n":" return vec3(1.0); \n")+"} \nvoid applyNormalOffset(inout vec4 positionEC, vec3 normalEC, float nDotL) \n{ \n"+(g.normalOffset&&c?" float normalOffset = shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness.x; \n float normalOffsetScale = 1.0 - nDotL; \n vec3 offset = normalOffset * normalOffsetScale * normalEC; \n positionEC.xyz += offset; \n":"")+"} \n",v+="void main() \n{ \n czm_shadow_receive_main(); \n vec4 positionEC = getPositionEC(); \n vec3 normalEC = getNormalEC(); \n float depth = -positionEC.z; \n",v+=" czm_shadowParameters shadowParameters; \n shadowParameters.texelStepSize = shadowMap_texelSizeDepthBiasAndNormalShadingSmooth.xy; \n shadowParameters.depthBias = shadowMap_texelSizeDepthBiasAndNormalShadingSmooth.z; \n shadowParameters.normalShadingSmooth = shadowMap_texelSizeDepthBiasAndNormalShadingSmooth.w; \n shadowParameters.darkness = shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness.w; \n",o?v+=" shadowParameters.depthBias *= max(depth * 0.01, 1.0); \n":d||(v+=" shadowParameters.depthBias *= mix(1.0, 100.0, depth * 0.0015); \n"),v+=f?" vec3 directionEC = positionEC.xyz - shadowMap_lightPositionEC.xyz; \n float distance = length(directionEC); \n directionEC = normalize(directionEC); \n float radius = shadowMap_lightPositionEC.w; \n // Stop early if the fragment is beyond the point light radius \n if (distance > radius) \n { \n return; \n } \n vec3 directionWC = czm_inverseViewRotation * directionEC; \n shadowParameters.depth = distance / radius; \n shadowParameters.nDotL = clamp(dot(normalEC, -directionEC), 0.0, 1.0); \n shadowParameters.texCoords = directionWC; \n float visibility = czm_shadowVisibility(shadowMap_textureCube, shadowParameters); \n":p?" vec3 directionEC = normalize(positionEC.xyz - shadowMap_lightPositionEC.xyz); \n float nDotL = clamp(dot(normalEC, -directionEC), 0.0, 1.0); \n applyNormalOffset(positionEC, normalEC, nDotL); \n vec4 shadowPosition = shadowMap_matrix * positionEC; \n // Spot light uses a perspective projection, so perform the perspective divide \n shadowPosition /= shadowPosition.w; \n // Stop early if the fragment is not in the shadow bounds \n if (any(lessThan(shadowPosition.xyz, vec3(0.0))) || any(greaterThan(shadowPosition.xyz, vec3(1.0)))) \n { \n return; \n } \n shadowParameters.texCoords = shadowPosition.xy; \n shadowParameters.depth = shadowPosition.z; \n shadowParameters.nDotL = nDotL; \n float visibility = czm_shadowVisibility(shadowMap_texture, shadowParameters); \n":m?" float maxDepth = shadowMap_cascadeSplits[1].w; \n // Stop early if the eye depth exceeds the last cascade \n if (depth > maxDepth) \n { \n return; \n } \n // Get the cascade based on the eye-space depth \n vec4 weights = czm_cascadeWeights(depth); \n // Apply normal offset \n float nDotL = clamp(dot(normalEC, shadowMap_lightDirectionEC), 0.0, 1.0); \n applyNormalOffset(positionEC, normalEC, nDotL); \n // Transform position into the cascade \n vec4 shadowPosition = czm_cascadeMatrix(weights) * positionEC; \n // Get visibility \n shadowParameters.texCoords = shadowPosition.xy; \n shadowParameters.depth = shadowPosition.z; \n shadowParameters.nDotL = nDotL; \n float visibility = czm_shadowVisibility(shadowMap_texture, shadowParameters); \n // Fade out shadows that are far away \n float shadowMapMaximumDistance = shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness.z; \n float fade = max((depth - shadowMapMaximumDistance * 0.8) / (shadowMapMaximumDistance * 0.2), 0.0); \n visibility = mix(visibility, 1.0, fade); \n"+(_?" // Draw cascade colors for debugging \n gl_FragColor *= czm_cascadeColor(weights); \n":""):" float nDotL = clamp(dot(normalEC, shadowMap_lightDirectionEC), 0.0, 1.0); \n applyNormalOffset(positionEC, normalEC, nDotL); \n vec4 shadowPosition = shadowMap_matrix * positionEC; \n // Stop early if the fragment is not in the shadow bounds \n if (any(lessThan(shadowPosition.xyz, vec3(0.0))) || any(greaterThan(shadowPosition.xyz, vec3(1.0)))) \n { \n return; \n } \n shadowParameters.texCoords = shadowPosition.xy; \n shadowParameters.depth = shadowPosition.z; \n shadowParameters.nDotL = nDotL; \n float visibility = czm_shadowVisibility(shadowMap_texture, shadowParameters); \n",v+=" gl_FragColor.rgb *= visibility; \n} \n",b.push(v),new r.Z({defines:y,sources:b})};const s=o},556198:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});const n={DISABLED:0,ENABLED:1,CAST_ONLY:2,RECEIVE_ONLY:3,NUMBER_OF_SHADOW_MODES:4,castShadows:function(e){return e===n.ENABLED||e===n.CAST_ONLY},receiveShadows:function(e){return e===n.ENABLED||e===n.RECEIVE_ONLY},fromCastReceive:function(e,t){return e&&t?n.ENABLED:e?n.CAST_ONLY:t?n.RECEIVE_ONLY:n.DISABLED}},r=Object.freeze(n)},816723:(e,t,i)=>{"use strict";i.d(t,{Z:()=>q});var n=i(337968),r=i(919382),o=i(698907),s=i(357299),a=i(997274),c=i(406144),u=i(426468),l=i(275949),h=i(194218),d=i(362017),f=i(583917),p=i(523501),m=i(358198),_=i(279427),Z=i(578721),g=i(995838);function y(e,t,i){s.Z.typeOf.bool("extentsCulling",e),s.Z.typeOf.bool("planarExtents",t),s.Z.typeOf.object("appearance",i),this._projectionExtentDefines={eastMostYhighDefine:"",eastMostYlowDefine:"",westMostYhighDefine:"",westMostYlowDefine:""};const n=new T;n.requiresTextureCoordinates=e,n.requiresEC=!i.flat;const r=new T;if(r.requiresTextureCoordinates=e,i instanceof Z.Z)n.requiresNormalEC=!i.flat;else{const e=i.material.shaderSource+"\n"+i.fragmentShaderSource;n.normalEC=-1!==e.indexOf("materialInput.normalEC")||-1!==e.indexOf("czm_getDefaultMaterial"),n.positionToEyeEC=-1!==e.indexOf("materialInput.positionToEyeEC"),n.tangentToEyeMatrix=-1!==e.indexOf("materialInput.tangentToEyeMatrix"),n.st=-1!==e.indexOf("materialInput.st")}this._colorShaderDependencies=n,this._pickShaderDependencies=r,this._appearance=i,this._extentsCulling=e,this._planarExtents=t}y.prototype.createFragmentShader=function(e){s.Z.typeOf.bool("columbusView2D",e);const t=this._appearance,i=this._colorShaderDependencies,n=[];e||this._planarExtents||n.push("SPHERICAL"),i.requiresEC&&n.push("REQUIRES_EC"),i.requiresWC&&n.push("REQUIRES_WC"),i.requiresTextureCoordinates&&n.push("TEXTURE_COORDINATES"),this._extentsCulling&&n.push("CULL_FRAGMENTS"),i.requiresNormalEC&&n.push("NORMAL_EC"),t instanceof Z.Z&&n.push("PER_INSTANCE_COLOR"),i.normalEC&&n.push("USES_NORMAL_EC"),i.positionToEyeEC&&n.push("USES_POSITION_TO_EYE_EC"),i.tangentToEyeMatrix&&n.push("USES_TANGENT_TO_EYE"),i.st&&n.push("USES_ST"),t.flat&&n.push("FLAT");let r="";return t instanceof Z.Z||(r=t.material.shaderSource),new _.Z({defines:n,sources:[r,g.Z]})},y.prototype.createPickFragmentShader=function(e){s.Z.typeOf.bool("columbusView2D",e);const t=this._pickShaderDependencies,i=["PICK"];return e||this._planarExtents||i.push("SPHERICAL"),t.requiresEC&&i.push("REQUIRES_EC"),t.requiresWC&&i.push("REQUIRES_WC"),t.requiresTextureCoordinates&&i.push("TEXTURE_COORDINATES"),this._extentsCulling&&i.push("CULL_FRAGMENTS"),new _.Z({defines:i,sources:[g.Z],pickColorQualifier:"varying"})},y.prototype.createVertexShader=function(e,t,i,n){return s.Z.defined("defines",e),s.Z.typeOf.string("vertexShaderSource",t),s.Z.typeOf.bool("columbusView2D",i),s.Z.defined("mapProjection",n),v(this._colorShaderDependencies,this._planarExtents,i,e,t,this._appearance,n,this._projectionExtentDefines)},y.prototype.createPickVertexShader=function(e,t,i,n){return s.Z.defined("defines",e),s.Z.typeOf.string("vertexShaderSource",t),s.Z.typeOf.bool("columbusView2D",i),s.Z.defined("mapProjection",n),v(this._pickShaderDependencies,this._planarExtents,i,e,t,void 0,n,this._projectionExtentDefines)};const b=new r.Z,A=new o.Z,w={high:0,low:0};function v(e,t,i,n,r,o,s,a){const c=n.slice();if(""===a.eastMostYhighDefine){const e=A;e.longitude=d.Z.PI,e.latitude=0,e.height=0;const t=s.project(e,b);let i=l.Z.encode(t.x,w);a.eastMostYhighDefine="EAST_MOST_X_HIGH "+i.high.toFixed((i.high+"").length+1),a.eastMostYlowDefine="EAST_MOST_X_LOW "+i.low.toFixed((i.low+"").length+1);const n=A;n.longitude=-d.Z.PI,n.latitude=0,n.height=0;const r=s.project(n,b);i=l.Z.encode(r.x,w),a.westMostYhighDefine="WEST_MOST_X_HIGH "+i.high.toFixed((i.high+"").length+1),a.westMostYlowDefine="WEST_MOST_X_LOW "+i.low.toFixed((i.low+"").length+1)}return i&&(c.push(a.eastMostYhighDefine),c.push(a.eastMostYlowDefine),c.push(a.westMostYhighDefine),c.push(a.westMostYlowDefine)),(0,u.Z)(o)&&o instanceof Z.Z&&c.push("PER_INSTANCE_COLOR"),e.requiresTextureCoordinates&&(c.push("TEXTURE_COORDINATES"),t||i||c.push("SPHERICAL"),i&&c.push("COLUMBUS_VIEW_2D")),new _.Z({defines:c,sources:[r]})}function T(){this._requiresEC=!1,this._requiresWC=!1,this._requiresNormalEC=!1,this._requiresTextureCoordinates=!1,this._usesNormalEC=!1,this._usesPositionToEyeEC=!1,this._usesTangentToEyeMat=!1,this._usesSt=!1}function C(e,t,i){return Math.abs((t.y-e.y)*i.x-(t.x-e.x)*i.y+t.x*e.y-t.y*e.x)/n.Z.distance(t,e)}Object.defineProperties(T.prototype,{requiresEC:{get:function(){return this._requiresEC},set:function(e){this._requiresEC=e||this._requiresEC}},requiresWC:{get:function(){return this._requiresWC},set:function(e){this._requiresWC=e||this._requiresWC,this.requiresEC=this._requiresWC}},requiresNormalEC:{get:function(){return this._requiresNormalEC},set:function(e){this._requiresNormalEC=e||this._requiresNormalEC,this.requiresEC=this._requiresNormalEC}},requiresTextureCoordinates:{get:function(){return this._requiresTextureCoordinates},set:function(e){this._requiresTextureCoordinates=e||this._requiresTextureCoordinates,this.requiresWC=this._requiresTextureCoordinates}},normalEC:{set:function(e){this.requiresNormalEC=e,this._usesNormalEC=e},get:function(){return this._usesNormalEC}},tangentToEyeMatrix:{set:function(e){this.requiresWC=e,this.requiresNormalEC=e,this._usesTangentToEyeMat=e},get:function(){return this._usesTangentToEyeMat}},positionToEyeEC:{set:function(e){this.requiresEC=e,this._usesPositionToEyeEC=e},get:function(){return this._usesPositionToEyeEC}},st:{set:function(e){this.requiresTextureCoordinates=e,this._usesSt=e},get:function(){return this._usesSt}}});const E=[new n.Z,new n.Z,new n.Z,new n.Z];function x(e,t){const i=E,r=n.Z.unpack(t,0,i[0]),o=n.Z.unpack(t,2,i[1]),s=n.Z.unpack(t,4,i[2]);e.uMaxVmax=new h.Z({componentDatatype:a.Z.FLOAT,componentsPerAttribute:4,normalize:!1,value:[o.x,o.y,s.x,s.y]});const c=1/C(r,o,s),u=1/C(r,s,o);e.uvMinAndExtents=new h.Z({componentDatatype:a.Z.FLOAT,componentsPerAttribute:4,normalize:!1,value:[r.x,r.y,c,u]})}const S=new o.Z,O=new r.Z,I=new r.Z,D=new r.Z,P={high:0,low:0};function R(e,t,i){const n=S;n.height=0,n.longitude=e.west,n.latitude=e.south;const r=t.project(n,O);n.latitude=e.north;const o=t.project(n,I);n.longitude=e.east,n.latitude=e.south;const s=t.project(n,D),c=[0,0,0,0],u=[0,0,0,0];let d=l.Z.encode(r.x,P);c[0]=d.high,u[0]=d.low,d=l.Z.encode(r.y,P),c[1]=d.high,u[1]=d.low,d=l.Z.encode(o.y,P),c[2]=d.high,u[2]=d.low,d=l.Z.encode(s.x,P),c[3]=d.high,u[3]=d.low,i.planes2D_HIGH=new h.Z({componentDatatype:a.Z.FLOAT,componentsPerAttribute:4,normalize:!1,value:c}),i.planes2D_LOW=new h.Z({componentDatatype:a.Z.FLOAT,componentsPerAttribute:4,normalize:!1,value:u})}const B=new f.Z,M=new f.Z,L=new r.Z,N=new o.Z,F=[new o.Z,new o.Z,new o.Z,new o.Z,new o.Z,new o.Z,new o.Z,new o.Z],k=new r.Z,U=new r.Z,V=new l.Z;y.getPlanarTextureCoordinateAttributes=function(e,t,i,n,u){s.Z.typeOf.object("boundingRectangle",e),s.Z.defined("textureCoordinateRotationPoints",t),s.Z.typeOf.object("ellipsoid",i),s.Z.typeOf.object("projection",n);const d=O,_=k,Z=U;!function(e,t,i,n,s,a){const c=p.Z.center(e,N);c.height=i;const u=o.Z.toCartesian(c,t,L),l=m.Z.eastNorthUpToFixedFrame(u,t,B),h=f.Z.inverse(l,M),d=e.west,_=e.east,Z=e.north,g=e.south,y=F;y[0].latitude=g,y[0].longitude=d,y[1].latitude=Z,y[1].longitude=d,y[2].latitude=Z,y[2].longitude=_,y[3].latitude=g,y[3].longitude=_;const b=.5*(d+_),A=.5*(Z+g);y[4].latitude=g,y[4].longitude=b,y[5].latitude=Z,y[5].longitude=b,y[6].latitude=A,y[6].longitude=d,y[7].latitude=A,y[7].longitude=_;let w=Number.POSITIVE_INFINITY,v=Number.NEGATIVE_INFINITY,T=Number.POSITIVE_INFINITY,C=Number.NEGATIVE_INFINITY;for(let e=0;e<8;e++){y[e].height=i;const n=o.Z.toCartesian(y[e],t,L);f.Z.multiplyByPoint(h,n,n),n.z=0,w=Math.min(w,n.x),v=Math.max(v,n.x),T=Math.min(T,n.y),C=Math.max(C,n.y)}const E=n;E.x=w,E.y=T,E.z=0,f.Z.multiplyByPoint(l,E,E);const x=s;x.x=v,x.y=T,x.z=0,f.Z.multiplyByPoint(l,x,x),r.Z.subtract(x,E,s);const S=a;S.x=w,S.y=C,S.z=0,f.Z.multiplyByPoint(l,S,S),r.Z.subtract(S,E,a)}(e,i,(0,c.Z)(u,0),d,_,Z);const g={};x(g,t);const y=l.Z.fromCartesian(d,V);return g.southWest_HIGH=new h.Z({componentDatatype:a.Z.FLOAT,componentsPerAttribute:3,normalize:!1,value:r.Z.pack(y.high,[0,0,0])}),g.southWest_LOW=new h.Z({componentDatatype:a.Z.FLOAT,componentsPerAttribute:3,normalize:!1,value:r.Z.pack(y.low,[0,0,0])}),g.eastward=new h.Z({componentDatatype:a.Z.FLOAT,componentsPerAttribute:3,normalize:!1,value:r.Z.pack(_,[0,0,0])}),g.northward=new h.Z({componentDatatype:a.Z.FLOAT,componentsPerAttribute:3,normalize:!1,value:r.Z.pack(Z,[0,0,0])}),R(e,n,g),g};const z=new r.Z;function H(e,t,i,n){const r=S;r.latitude=e,r.longitude=t,r.height=0;const s=o.Z.toCartesian(r,i,z),a=Math.sqrt(s.x*s.x+s.y*s.y),c=d.Z.fastApproximateAtan2(a,s.z),u=d.Z.fastApproximateAtan2(s.x,s.y);return n.x=c,n.y=u,n}const G=new n.Z;y.getSphericalExtentGeometryInstanceAttributes=function(e,t,i,n){s.Z.typeOf.object("boundingRectangle",e),s.Z.defined("textureCoordinateRotationPoints",t),s.Z.typeOf.object("ellipsoid",i),s.Z.typeOf.object("projection",n);const r=H(e.south,e.west,i,G);let o=r.x,c=r.y;const u=H(e.north,e.east,i,G);let l=u.x,f=u.y,p=0;c>f&&(p=d.Z.PI-c,c=-d.Z.PI,f+=p),o-=d.Z.EPSILON5,c-=d.Z.EPSILON5,l+=d.Z.EPSILON5,f+=d.Z.EPSILON5;const m=1/(f-c),_=1/(l-o),Z={sphericalExtents:new h.Z({componentDatatype:a.Z.FLOAT,componentsPerAttribute:4,normalize:!1,value:[o,c,_,m]}),longitudeRotation:new h.Z({componentDatatype:a.Z.FLOAT,componentsPerAttribute:1,normalize:!1,value:[p]})};return x(Z,t),R(e,n,Z),Z},y.hasAttributesForTextureCoordinatePlanes=function(e){return(0,u.Z)(e.southWest_HIGH)&&(0,u.Z)(e.southWest_LOW)&&(0,u.Z)(e.northward)&&(0,u.Z)(e.eastward)&&(0,u.Z)(e.planes2D_HIGH)&&(0,u.Z)(e.planes2D_LOW)&&(0,u.Z)(e.uMaxVmax)&&(0,u.Z)(e.uvMinAndExtents)},y.hasAttributesForSphericalExtents=function(e){return(0,u.Z)(e.sphericalExtents)&&(0,u.Z)(e.longitudeRotation)&&(0,u.Z)(e.planes2D_HIGH)&&(0,u.Z)(e.planes2D_LOW)&&(0,u.Z)(e.uMaxVmax)&&(0,u.Z)(e.uvMinAndExtents)},y.shouldUseSphericalCoordinates=function(e){return s.Z.typeOf.object("rectangle",e),function(e){return Math.max(e.width,e.height)>y.MAX_WIDTH_FOR_PLANAR_EXTENTS}(e)},y.MAX_WIDTH_FOR_PLANAR_EXTENTS=d.Z.toRadians(1);const q=y},131303:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_});var n=i(846748),r=i(406144),o=i(426468),s=i(446938),a=i(197685),c=i(910946),u=i(523501),l=i(795788),h=i(50128),d=i(723822),f=i(527758),p=i(616007);function m(e){if(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),!(0,o.Z)(e.url))throw new s.Z("options.url is required.");this.defaultAlpha=void 0,this.defaultNightAlpha=void 0,this.defaultDayAlpha=void 0,this.defaultBrightness=void 0,this.defaultContrast=void 0,this.defaultHue=void 0,this.defaultSaturation=void 0,this.defaultGamma=void 0,this.defaultMinificationFilter=void 0,this.defaultMagnificationFilter=void 0;const t=l.Z.createIfNeeded(e.url),i=(0,r.Z)(e.rectangle,u.Z.MAX_VALUE),m=new c.Z({rectangle:i,numberOfLevelZeroTilesX:1,numberOfLevelZeroTilesY:1,ellipsoid:e.ellipsoid});this._tilingScheme=m,this._resource=t,this._image=void 0,this._texture=void 0,this._tileWidth=0,this._tileHeight=0,this._errorEvent=new a.Z,this._ready=!1,this._readyPromise=f.Z.defer();let _=e.credit;"string"==typeof _&&(_=new n.Z(_)),this._credit=_;const Z=this;let g;function y(e){Z._image=e,Z._tileWidth=e.width,Z._tileHeight=e.height,Z._ready=!0,Z._readyPromise.resolve(!0),d.Z.handleSuccess(Z._errorEvent)}function b(e){const i="Failed to load image "+t.url+".";g=d.Z.handleError(g,Z,Z._errorEvent,i,0,0,0,A,e),Z._readyPromise.reject(new h.Z(i))}function A(){p.Z.loadImage(null,t).then(y).otherwise(b)}A()}Object.defineProperties(m.prototype,{url:{get:function(){return this._resource.url}},proxy:{get:function(){return this._resource.proxy}},tileWidth:{get:function(){if(!this._ready)throw new s.Z("tileWidth must not be called before the imagery provider is ready.");return this._tileWidth}},tileHeight:{get:function(){if(!this._ready)throw new s.Z("tileHeight must not be called before the imagery provider is ready.");return this._tileHeight}},maximumLevel:{get:function(){if(!this._ready)throw new s.Z("maximumLevel must not be called before the imagery provider is ready.");return 0}},minimumLevel:{get:function(){if(!this._ready)throw new s.Z("minimumLevel must not be called before the imagery provider is ready.");return 0}},tilingScheme:{get:function(){if(!this._ready)throw new s.Z("tilingScheme must not be called before the imagery provider is ready.");return this._tilingScheme}},rectangle:{get:function(){return this._tilingScheme.rectangle}},tileDiscardPolicy:{get:function(){if(!this._ready)throw new s.Z("tileDiscardPolicy must not be called before the imagery provider is ready.")}},errorEvent:{get:function(){return this._errorEvent}},ready:{get:function(){return this._ready}},readyPromise:{get:function(){return this._readyPromise.promise}},credit:{get:function(){return this._credit}},hasAlphaChannel:{get:function(){return!0}}}),m.prototype.getTileCredits=function(e,t,i){},m.prototype.requestImage=function(e,t,i,n){if(!this._ready)throw new s.Z("requestImage must not be called before the imagery provider is ready.");return this._image},m.prototype.pickFeatures=function(e,t,i,n,r){};const _=m},310665:(e,t,i)=>{"use strict";i.d(t,{Z:()=>S});var n=i(919382),r=i(406144),o=i(426468),s=i(54879),a=i(253316),c=i(675758),u=i(423035),l=i(362017),h=i(583917),d=i(172674),f=i(50720),p=i(247913),m=i(364232),_=i(928096),Z=i(279427),g=i(676311),y=i(810286),b=i(35532),A=i(479009),w=i(39213),v=i(451356),T=i(690466),C=i(506678);function E(e){e=(0,r.Z)(e,a.Z.WGS84),this.show=!0,this.perFragmentAtmosphere=!1,this._ellipsoid=e;const t=n.Z.multiplyByScalar(e.radii,1.025,new n.Z);this._scaleMatrix=h.Z.fromScale(t),this._modelMatrix=new h.Z,this._command=new p.Z({owner:this,modelMatrix:this._modelMatrix}),this._spSkyFromSpace=void 0,this._spSkyFromAtmosphere=void 0,this._flags=void 0,this.hueShift=0,this.saturationShift=0,this.brightnessShift=0,this._hueSaturationBrightness=new n.Z;const i=new n.Z;i.x=1.025*e.maximumRadius,i.y=e.maximumRadius,i.z=0,this._radiiAndDynamicAtmosphereColor=i;const o=this;this._command.uniformMap={u_radiiAndDynamicAtmosphereColor:function(){return o._radiiAndDynamicAtmosphereColor},u_hsbShift:function(){return o._hueSaturationBrightness.x=o.hueShift,o._hueSaturationBrightness.y=o.saturationShift,o._hueSaturationBrightness.z=o.brightnessShift,o._hueSaturationBrightness}}}Object.defineProperties(E.prototype,{ellipsoid:{get:function(){return this._ellipsoid}}}),E.prototype.setDynamicAtmosphereColor=function(e,t){const i=e?t?2:1:0;this._radiiAndDynamicAtmosphereColor.z=i};const x=new h.Z;E.prototype.update=function(e,t){if(!this.show)return;const i=e.mode;if(i!==C.Z.SCENE3D&&i!==C.Z.MORPHING)return;if(!e.passes.render)return;const r=h.Z.fromRotationTranslation(e.context.uniformState.inverseViewRotation,n.Z.ZERO,x),s=h.Z.multiplyTransformation(r,w.Z.Y_UP_TO_Z_UP,x),a=h.Z.multiply(this._scaleMatrix,s,x);h.Z.clone(a,this._modelMatrix);const p=e.context,E=(S=this,!(l.Z.equalsEpsilon(S.hueShift,0,l.Z.EPSILON7)&&l.Z.equalsEpsilon(S.saturationShift,0,l.Z.EPSILON7)&&l.Z.equalsEpsilon(S.brightnessShift,0,l.Z.EPSILON7)));var S;const O=e.globeTranslucencyState.translucent,I=this.perFragmentAtmosphere||O||!(0,o.Z)(t)||!t.show,D=this._command;if(!(0,o.Z)(D.vertexArray)){const e=c.Z.createGeometry(new c.Z({radii:new n.Z(1,1,1),slicePartitions:256,stackPartitions:256,vertexFormat:d.Z.POSITION_ONLY}));D.vertexArray=g.Z.fromGeometry({context:p,geometry:e,attributeLocations:u.Z.createAttributeLocations(e),bufferUsage:f.Z.STATIC_DRAW}),D.renderState=m.Z.fromCache({cull:{enabled:!0,face:T.Z.FRONT},blending:v.Z.ALPHA_BLEND,depthMask:!1})}const P=E|I<<2|O<<3;if(P!==this._flags){this._flags=P;const e=[];E&&e.push("COLOR_CORRECT"),I&&e.push("PER_FRAGMENT_ATMOSPHERE"),O&&e.push("GLOBE_TRANSLUCENT");let t=new Z.Z({defines:e.concat("SKY_FROM_SPACE"),sources:[y.Z,A.Z]}),i=new Z.Z({defines:e.concat("SKY_FROM_SPACE"),sources:[y.Z,b.Z]});this._spSkyFromSpace=_.Z.fromCache({context:p,vertexShaderSource:t,fragmentShaderSource:i}),t=new Z.Z({defines:e.concat("SKY_FROM_ATMOSPHERE"),sources:[y.Z,A.Z]}),i=new Z.Z({defines:e.concat("SKY_FROM_ATMOSPHERE"),sources:[y.Z,b.Z]}),this._spSkyFromAtmosphere=_.Z.fromCache({context:p,vertexShaderSource:t,fragmentShaderSource:i})}const R=e.camera.positionWC;return n.Z.magnitude(R)>this._radiiAndDynamicAtmosphereColor.x?D.shaderProgram=this._spSkyFromSpace:D.shaderProgram=this._spSkyFromAtmosphere,D},E.prototype.isDestroyed=function(){return!1},E.prototype.destroy=function(){const e=this._command;return e.vertexArray=e.vertexArray&&e.vertexArray.destroy(),this._spSkyFromSpace=this._spSkyFromSpace&&this._spSkyFromSpace.destroy(),this._spSkyFromAtmosphere=this._spSkyFromAtmosphere&&this._spSkyFromAtmosphere.destroy(),(0,s.Z)(this)};const S=E},490601:(e,t,i)=>{"use strict";i.d(t,{Z:()=>C});var n=i(96823),r=i(919382),o=i(406144),s=i(426468),a=i(54879),c=i(446938),u=i(423035),l=i(583917),h=i(172674),d=i(50720),f=i(161842),p=i(247913),m=i(456824),_=i(364232),Z=i(928096),g=i(279427),y=i(676311),b=i(808840),A=i(717574),w=i(451356),v=i(506678);function T(e){this.sources=e.sources,this._sources=void 0,this.show=(0,o.Z)(e.show,!0),this._command=new p.Z({modelMatrix:l.Z.clone(l.Z.IDENTITY),owner:this}),this._cubeMap=void 0,this._attributeLocations=void 0,this._useHdr=void 0}T.prototype.update=function(e,t){const i=this;if(!this.show)return;if(e.mode!==v.Z.SCENE3D&&e.mode!==v.Z.MORPHING)return;if(!e.passes.render)return;const o=e.context;if(this._sources!==this.sources){this._sources=this.sources;const e=this.sources;if(!((0,s.Z)(e.positiveX)&&(0,s.Z)(e.negativeX)&&(0,s.Z)(e.positiveY)&&(0,s.Z)(e.negativeY)&&(0,s.Z)(e.positiveZ)&&(0,s.Z)(e.negativeZ)))throw new c.Z("this.sources is required and must have positiveX, negativeX, positiveY, negativeY, positiveZ, and negativeZ properties.");if(typeof e.positiveX!=typeof e.negativeX||typeof e.positiveX!=typeof e.positiveY||typeof e.positiveX!=typeof e.negativeY||typeof e.positiveX!=typeof e.positiveZ||typeof e.positiveX!=typeof e.negativeZ)throw new c.Z("this.sources properties must all be the same type.");"string"==typeof e.positiveX?(0,m.Z)(o,this._sources).then((function(e){i._cubeMap=i._cubeMap&&i._cubeMap.destroy(),i._cubeMap=e})):(this._cubeMap=this._cubeMap&&this._cubeMap.destroy(),this._cubeMap=new f.Z({context:o,source:e}))}const a=this._command;if(!(0,s.Z)(a.vertexArray)){a.uniformMap={u_cubeMap:function(){return i._cubeMap}};const e=n.Z.createGeometry(n.Z.fromDimensions({dimensions:new r.Z(2,2,2),vertexFormat:h.Z.POSITION_ONLY})),t=this._attributeLocations=u.Z.createAttributeLocations(e);a.vertexArray=y.Z.fromGeometry({context:o,geometry:e,attributeLocations:t,bufferUsage:d.Z.STATIC_DRAW}),a.renderState=_.Z.fromCache({blending:w.Z.ALPHA_BLEND})}if(!(0,s.Z)(a.shaderProgram)||this._useHdr!==t){const e=new g.Z({defines:[t?"HDR":""],sources:[b.Z]});a.shaderProgram=Z.Z.fromCache({context:o,vertexShaderSource:A.Z,fragmentShaderSource:e,attributeLocations:this._attributeLocations}),this._useHdr=t}return(0,s.Z)(this._cubeMap)?a:void 0},T.prototype.isDestroyed=function(){return!1},T.prototype.destroy=function(){const e=this._command;return e.vertexArray=e.vertexArray&&e.vertexArray.destroy(),e.shaderProgram=e.shaderProgram&&e.shaderProgram.destroy(),this._cubeMap=this._cubeMap&&this._cubeMap.destroy(),(0,a.Z)(this)};const C=T},298774:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(919382),r=i(357299),o=i(406144),s=i(362017);function a(e){e=(0,o.Z)(e,1),r.Z.typeOf.number.greaterThan("radius",e,0),this._radius=(0,o.Z)(e,1)}Object.defineProperties(a.prototype,{radius:{get:function(){return this._radius},set:function(e){r.Z.typeOf.number.greaterThan("value",e,0),this._radius=e}}}),a.prototype.emit=function(e){const t=s.Z.randomBetween(0,s.Z.TWO_PI),i=s.Z.randomBetween(0,s.Z.PI),r=s.Z.randomBetween(0,this._radius),o=r*Math.cos(t)*Math.sin(i),a=r*Math.sin(t)*Math.sin(i),c=r*Math.cos(i);e.position=n.Z.fromElements(o,a,c,e.position),e.velocity=n.Z.normalize(e.position,e.velocity)};const c=a},42973:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(786861),r=i(301859);const o={CESIUM_3D_TILE_MASK:128,SKIP_LOD_MASK:112,SKIP_LOD_BIT_SHIFT:4,CLASSIFICATION_MASK:15,setCesium3DTileBit:function(){return{enabled:!0,frontFunction:n.Z.ALWAYS,frontOperation:{fail:r.Z.KEEP,zFail:r.Z.KEEP,zPass:r.Z.REPLACE},backFunction:n.Z.ALWAYS,backOperation:{fail:r.Z.KEEP,zFail:r.Z.KEEP,zPass:r.Z.REPLACE},reference:o.CESIUM_3D_TILE_MASK,mask:o.CESIUM_3D_TILE_MASK}}},s=Object.freeze(o)},786861:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(619287);const r={NEVER:n.Z.NEVER,LESS:n.Z.LESS,EQUAL:n.Z.EQUAL,LESS_OR_EQUAL:n.Z.LEQUAL,GREATER:n.Z.GREATER,NOT_EQUAL:n.Z.NOTEQUAL,GREATER_OR_EQUAL:n.Z.GEQUAL,ALWAYS:n.Z.ALWAYS},o=Object.freeze(r)},301859:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(619287);const r={ZERO:n.Z.ZERO,KEEP:n.Z.KEEP,REPLACE:n.Z.REPLACE,INCREMENT:n.Z.INCR,DECREMENT:n.Z.DECR,INVERT:n.Z.INVERT,INCREMENT_WRAP:n.Z.INCR_WRAP,DECREMENT_WRAP:n.Z.DECR_WRAP},o=Object.freeze(r)},94257:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(446938);function r(){}r.prototype.evaluate=function(e,t){n.Z.throwInstantiationError()},r.prototype.evaluateColor=function(e,t){n.Z.throwInstantiationError()},r.prototype.getShaderFunction=function(e,t,i,r){n.Z.throwInstantiationError()},r.prototype.getVariables=function(){n.Z.throwInstantiationError()};const o=r},657324:(e,t,i)=>{"use strict";i.d(t,{Z:()=>M});var n=i(360791),r=i(337968),o=i(919382),s=i(114754),a=i(997274),c=i(426468),u=i(54879),l=i(546135),h=i(362017),d=i(583917),f=i(100883),p=i(195809),m=i(636807),_=i(50720),Z=i(138012),g=i(247913),y=i(687931),b=i(364232),A=i(928096),w=i(283044),v=i(676311),T=i(426231),C=i(48590),E=i(180120),x=i(451356),S=i(506678),O=i(867536);function I(){this.show=!0,this._drawCommand=new g.Z({primitiveType:p.Z.TRIANGLES,boundingVolume:new n.Z,owner:this}),this._commands={drawCommand:this._drawCommand,computeCommand:void 0},this._boundingVolume=new n.Z,this._boundingVolume2D=new n.Z,this._texture=void 0,this._drawingBufferWidth=void 0,this._drawingBufferHeight=void 0,this._radiusTS=void 0,this._size=void 0,this.glowFactor=1,this._glowFactorDirty=!1,this._useHdr=void 0;const e=this;this._uniformMap={u_texture:function(){return e._texture},u_size:function(){return e._size}}}Object.defineProperties(I.prototype,{glowFactor:{get:function(){return this._glowFactor},set:function(e){e=Math.max(e,0),this._glowFactor=e,this._glowFactorDirty=!0}}});const D=new r.Z,P=new r.Z,R=new s.Z,B=new s.Z;I.prototype.update=function(e,t,i){if(!this.show)return;const s=e.mode;if(s===S.Z.SCENE2D||s===S.Z.MORPHING)return;if(!e.passes.render)return;const u=e.context,p=t.viewport.width,g=t.viewport.height;if(!(0,c.Z)(this._texture)||p!==this._drawingBufferWidth||g!==this._drawingBufferHeight||this._glowFactorDirty||i!==this._useHdr){this._texture=this._texture&&this._texture.destroy(),this._drawingBufferWidth=p,this._drawingBufferHeight=g,this._glowFactorDirty=!1,this._useHdr=i;let e=Math.max(p,g);e=Math.pow(2,Math.ceil(Math.log(e)/Math.log(2))-2),e=Math.max(1,e);const t=i?u.halfFloatingPointTexture?y.Z.HALF_FLOAT:y.Z.FLOAT:y.Z.UNSIGNED_BYTE;this._texture=new w.Z({context:u,width:e,height:e,pixelFormat:f.Z.RGBA,pixelDatatype:t}),this._glowLengthTS=5*this._glowFactor,this._radiusTS=1/(1+2*this._glowLengthTS)*.5;const n=this,r={u_radiusTS:function(){return n._radiusTS}};this._commands.computeCommand=new Z.Z({fragmentShaderSource:C.Z,outputTexture:this._texture,uniformMap:r,persists:!1,owner:this,postExecute:function(){n._commands.computeCommand=void 0}})}const I=this._drawCommand;if(!(0,c.Z)(I.vertexArray)){const e={direction:0},t=new Uint8Array(8);t[0]=0,t[1]=0,t[2]=255,t[3]=0,t[4]=255,t[5]=255,t[6]=0,t[7]=255;const i=m.Z.createVertexBuffer({context:u,typedArray:t,usage:_.Z.STATIC_DRAW}),n=[{index:e.direction,vertexBuffer:i,componentsPerAttribute:2,normalize:!0,componentDatatype:a.Z.UNSIGNED_BYTE}],r=m.Z.createIndexBuffer({context:u,typedArray:new Uint16Array([0,1,2,0,2,3]),usage:_.Z.STATIC_DRAW,indexDatatype:l.Z.UNSIGNED_SHORT});I.vertexArray=new v.Z({context:u,attributes:n,indexBuffer:r}),I.shaderProgram=A.Z.fromCache({context:u,vertexShaderSource:E.Z,fragmentShaderSource:T.Z,attributeLocations:e}),I.renderState=b.Z.fromCache({blending:x.Z.ALPHA_BLEND}),I.uniformMap=this._uniformMap}const M=u.uniformState.sunPositionWC,L=u.uniformState.sunPositionColumbusView,N=this._boundingVolume,F=this._boundingVolume2D;o.Z.clone(M,N.center),F.center.x=L.z,F.center.y=L.x,F.center.z=L.y,N.radius=h.Z.SOLAR_RADIUS+h.Z.SOLAR_RADIUS*this._glowLengthTS,F.radius=N.radius,s===S.Z.SCENE3D?n.Z.clone(N,I.boundingVolume):s===S.Z.COLUMBUS_VIEW&&n.Z.clone(F,I.boundingVolume);const k=O.Z.computeActualWgs84Position(e,M,B),U=o.Z.magnitude(o.Z.subtract(k,e.camera.position,B)),V=u.uniformState.projection,z=R;z.x=0,z.y=0,z.z=-U,z.w=1;const H=d.Z.multiplyByVector(V,z,B),G=O.Z.clipToGLWindowCoordinates(t.viewport,H,D);z.x=h.Z.SOLAR_RADIUS;const q=d.Z.multiplyByVector(V,z,B),j=O.Z.clipToGLWindowCoordinates(t.viewport,q,P);return this._size=r.Z.magnitude(r.Z.subtract(j,G,B)),this._size=2*this._size*(1+2*this._glowLengthTS),this._size=Math.ceil(this._size),this._commands},I.prototype.isDestroyed=function(){return!1},I.prototype.destroy=function(){const e=this._drawCommand;return e.vertexArray=e.vertexArray&&e.vertexArray.destroy(),e.shaderProgram=e.shaderProgram&&e.shaderProgram.destroy(),this._texture=this._texture&&this._texture.destroy(),(0,u.Z)(this)};const M=I},826020:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(545125),r=i(406144);const o=function(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),this.color=n.Z.clone((0,r.Z)(e.color,n.Z.WHITE)),this.intensity=(0,r.Z)(e.intensity,2)}},760868:(e,t,i)=>{"use strict";i.d(t,{Z:()=>C});var n=i(152124),r=i(337968),o=i(114754),s=i(426468),a=i(54879),c=i(362017),u=i(583917),l=i(358198),h=i(453492),d=i(756873),f=i(263295),p=i(426301),m=i(868e3),_=i(41998),Z=i(804919),g=i(743131),y=i(140931);function b(){this._sceneFramebuffer=new y.Z;const e=.125,t=new Array(6);t[0]=new m.Z({fragmentShader:p.Z,textureScale:e,forcePowerOfTwo:!0,sampleMode:Z.Z.LINEAR});const i=t[1]=new m.Z({fragmentShader:d.Z,uniforms:{avgLuminance:.5,threshold:.25,offset:.1},textureScale:e,forcePowerOfTwo:!0}),n=this;this._delta=1,this._sigma=2,this._blurStep=new r.Z,t[2]=new m.Z({fragmentShader:f.Z,uniforms:{step:function(){return n._blurStep.x=n._blurStep.y=1/i.outputTexture.width,n._blurStep},delta:function(){return n._delta},sigma:function(){return n._sigma},direction:0},textureScale:e,forcePowerOfTwo:!0}),t[3]=new m.Z({fragmentShader:f.Z,uniforms:{step:function(){return n._blurStep.x=n._blurStep.y=1/i.outputTexture.width,n._blurStep},delta:function(){return n._delta},sigma:function(){return n._sigma},direction:1},textureScale:e,forcePowerOfTwo:!0}),t[4]=new m.Z({fragmentShader:p.Z,sampleMode:Z.Z.LINEAR}),this._uCenter=new r.Z,this._uRadius=void 0,t[5]=new m.Z({fragmentShader:h.Z,uniforms:{center:function(){return n._uCenter},radius:function(){return n._uRadius},colorTexture2:function(){return n._sceneFramebuffer.framebuffer.getColorTexture(0)}}}),this._stages=new _.Z({stages:t});const o=new g.Z(this),s=t.length;for(let e=0;e<s;++e)t[e]._textureCache=o;this._textureCache=o,this.length=t.length}b.prototype.get=function(e){return this._stages.get(e)},b.prototype.getStageByName=function(e){const t=this._stages.length;for(let i=0;i<t;++i){const t=this._stages.get(i);if(t.name===e)return t}};const A=new o.Z,w=new r.Z,v=new r.Z,T=new u.Z;b.prototype.clear=function(e,t,i){this._sceneFramebuffer.clear(e,t,i),this._textureCache.clear(e)},b.prototype.update=function(e){const t=e.context,i=e.viewport,o=this._sceneFramebuffer;o.update(t,i);const s=o.framebuffer;return this._textureCache.update(t),this._stages.update(t,!1),function(e,t,i){const o=t.uniformState,s=o.sunPositionWC,a=o.view,h=o.viewProjection,d=o.projection;let f=u.Z.computeViewportTransformation(i,0,1,T);const p=u.Z.multiplyByPoint(a,s,A);let m=l.Z.pointToGLWindowCoordinates(h,f,s,w);p.x+=c.Z.SOLAR_RADIUS;const _=l.Z.pointToGLWindowCoordinates(d,f,p,p),Z=30*r.Z.magnitude(r.Z.subtract(_,m,_))*2,g=v;g.x=Z,g.y=Z,e._uCenter=r.Z.clone(m,e._uCenter),e._uRadius=.15*Math.max(g.x,g.y);const y=t.drawingBufferWidth,b=t.drawingBufferHeight,C=e._stages,E=C.get(0),x=E.outputTexture.width,S=E.outputTexture.height,O=new n.Z;O.width=x,O.height=S,f=u.Z.computeViewportTransformation(O,0,1,T),m=l.Z.pointToGLWindowCoordinates(h,f,s,w),g.x*=x/y,g.y*=S/b;const I=E.scissorRectangle;I.x=Math.max(m.x-.5*g.x,0),I.y=Math.max(m.y-.5*g.y,0),I.width=Math.min(g.x,y),I.height=Math.min(g.y,b);for(let e=1;e<4;++e)n.Z.clone(I,C.get(e).scissorRectangle)}(this,t,i),s},b.prototype.execute=function(e){const t=this._sceneFramebuffer.framebuffer.getColorTexture(0),i=this._stages,n=i.length;i.get(0).execute(e,t);for(let t=1;t<n;++t)i.get(t).execute(e,i.get(t-1).outputTexture)},b.prototype.copy=function(e,t){if(!(0,s.Z)(this._copyColorCommand)){const t=this;this._copyColorCommand=e.createViewportQuadCommand(p.Z,{uniformMap:{colorTexture:function(){return t._stages.get(t._stages.length-1).outputTexture}},owner:this})}this._copyColorCommand.framebuffer=t,this._copyColorCommand.execute(e)},b.prototype.isDestroyed=function(){return!1},b.prototype.destroy=function(){return this._textureCache.destroy(),this._stages.destroy(),(0,a.Z)(this)};const C=b},819796:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(406144);function r(e){e=(0,n.Z)(e,n.Z.EMPTY_OBJECT),this.webp=(0,n.Z)(e.webp,!1),this.basis=(0,n.Z)(e.basis,!1)}},245789:(e,t,i)=>{"use strict";i.d(t,{Z:()=>se});var n=i(247976),r=i(693465),o=i(360791),s=i(337968),a=i(919382),c=i(114754),u=i(698907),l=i(426468),h=i(446938),d=i(520715),f=i(362017),p=i(126874),m=i(188684),_=i(523501),Z=i(569269),g=i(931079),y=i(856776),b=i(786409),A=i(93413),w=i(970941);function v(e){this.tile=e,this.frameLastUpdated=void 0,this.westMeshes=[],this.westTiles=[],this.southMeshes=[],this.southTiles=[],this.eastMeshes=[],this.eastTiles=[],this.northMeshes=[],this.northTiles=[],this.southwestMesh=void 0,this.southwestTile=void 0,this.southeastMesh=void 0,this.southeastTile=void 0,this.northwestMesh=void 0,this.northwestTile=void 0,this.northeastMesh=void 0,this.northeastTile=void 0,this.changedThisFrame=!0,this.visitedFrame=void 0,this.enqueuedFrame=void 0,this.mesh=void 0,this.vertexArray=void 0,this.waterMaskTexture=void 0,this.waterMaskTranslationAndScale=new c.Z}v.prototype.update=function(e,t,i){this.changedThisFrame&&(H(e,t,this.tile,i),this.changedThisFrame=!1)},v.prototype.destroy=function(e){this._destroyVertexArray(e),(0,l.Z)(this.waterMaskTexture)&&(--this.waterMaskTexture.referenceCount,0===this.waterMaskTexture.referenceCount&&this.waterMaskTexture.destroy(),this.waterMaskTexture=void 0)},v.prototype._destroyVertexArray=function(e){(0,l.Z)(this.vertexArray)&&((0,l.Z)(e)?e.push(this.vertexArray):A.Z._freeVertexArray(this.vertexArray),this.vertexArray=void 0)};const T=new m.Z;function C(e,t,i,n,r,o,s,a,c){if(void 0===n)return;let u=n;for(;u&&(u._lastSelectionResultFrame!==r||w.Z.wasKicked(u._lastSelectionResult)||w.Z.originalResult(u._lastSelectionResult)===w.Z.CULLED);){if(s)return;const e=u.parent;if(o>=y.Z.NORTHWEST&&void 0!==e)switch(o){case y.Z.NORTHWEST:u=u===e.northwestChild?e:void 0;break;case y.Z.NORTHEAST:u=u===e.northeastChild?e:void 0;break;case y.Z.SOUTHWEST:u=u===e.southwestChild?e:void 0;break;case y.Z.SOUTHEAST:u=u===e.southeastChild?e:void 0}else u=e}if(void 0!==u)if(u._lastSelectionResult!==w.Z.RENDERED){if(w.Z.originalResult(n._lastSelectionResult)!==w.Z.CULLED)switch(o){case y.Z.WEST:C(e,t,i,n.northwestChild,r,o,!0,a,c),C(e,t,i,n.southwestChild,r,o,!0,a,c);break;case y.Z.EAST:C(e,t,i,n.southeastChild,r,o,!0,a,c),C(e,t,i,n.northeastChild,r,o,!0,a,c);break;case y.Z.SOUTH:C(e,t,i,n.southwestChild,r,o,!0,a,c),C(e,t,i,n.southeastChild,r,o,!0,a,c);break;case y.Z.NORTH:C(e,t,i,n.northeastChild,r,o,!0,a,c),C(e,t,i,n.northwestChild,r,o,!0,a,c);break;case y.Z.NORTHWEST:C(e,t,i,n.northwestChild,r,o,!0,a,c);break;case y.Z.NORTHEAST:C(e,t,i,n.northeastChild,r,o,!0,a,c);break;case y.Z.SOUTHWEST:C(e,t,i,n.southwestChild,r,o,!0,a,c);break;case y.Z.SOUTHEAST:C(e,t,i,n.southeastChild,r,o,!0,a,c);break;default:throw new h.Z("Invalid edge")}}else{if((0,l.Z)(u.data.vertexArray))return;!function(e,t,i,n,r,o,s,a){const c=n.data;if(void 0===c.fill)c.fill=new v(n);else if(c.fill.visitedFrame===o)return;c.fill.enqueuedFrame!==o&&(c.fill.enqueuedFrame=o,c.fill.changedThisFrame=!1,s.enqueue(n)),function(e,t,i,n,r,o){const s=n.data.fill;let a;const c=i.data.fill;let u,h,d,p,m,_;switch((0,l.Z)(c)?(c.visitedFrame=t.frameNumber,c.changedThisFrame&&(H(e,t,i,o),c.changedThisFrame=!1),a=i.data.fill.mesh):a=i.data.mesh,r){case y.Z.WEST:u=s.westMeshes,h=s.westTiles;break;case y.Z.SOUTH:u=s.southMeshes,h=s.southTiles;break;case y.Z.EAST:u=s.eastMeshes,h=s.eastTiles;break;case y.Z.NORTH:u=s.northMeshes,h=s.northTiles;break;case y.Z.NORTHWEST:return s.changedThisFrame=s.changedThisFrame||s.northwestMesh!==a,s.northwestMesh=a,void(s.northwestTile=i);case y.Z.NORTHEAST:return s.changedThisFrame=s.changedThisFrame||s.northeastMesh!==a,s.northeastMesh=a,void(s.northeastTile=i);case y.Z.SOUTHWEST:return s.changedThisFrame=s.changedThisFrame||s.southwestMesh!==a,s.southwestMesh=a,void(s.southwestTile=i);case y.Z.SOUTHEAST:return s.changedThisFrame=s.changedThisFrame||s.southeastMesh!==a,s.southeastMesh=a,void(s.southeastTile=i)}if(i.level<=n.level)return s.changedThisFrame=s.changedThisFrame||u[0]!==a||1!==u.length,u[0]=a,h[0]=i,u.length=1,void(h.length=1);const Z=i.rectangle;let g;const b=n.rectangle;switch(r){case y.Z.WEST:for(g=(b.north-b.south)*f.Z.EPSILON5,d=0;d<h.length&&(m=h[d],_=m.rectangle,!f.Z.greaterThan(Z.north,_.south,g));++d);for(p=d;p<h.length&&(m=h[p],_=m.rectangle,!f.Z.greaterThanOrEquals(Z.south,_.north,g));++p);break;case y.Z.SOUTH:for(g=(b.east-b.west)*f.Z.EPSILON5,d=0;d<h.length&&(m=h[d],_=m.rectangle,!f.Z.lessThan(Z.west,_.east,g));++d);for(p=d;p<h.length&&(m=h[p],_=m.rectangle,!f.Z.lessThanOrEquals(Z.east,_.west,g));++p);break;case y.Z.EAST:for(g=(b.north-b.south)*f.Z.EPSILON5,d=0;d<h.length&&(m=h[d],_=m.rectangle,!f.Z.lessThan(Z.south,_.north,g));++d);for(p=d;p<h.length&&(m=h[p],_=m.rectangle,!f.Z.lessThanOrEquals(Z.north,_.south,g));++p);break;case y.Z.NORTH:for(g=(b.east-b.west)*f.Z.EPSILON5,d=0;d<h.length&&(m=h[d],_=m.rectangle,!f.Z.greaterThan(Z.east,_.west,g));++d);for(p=d;p<h.length&&(m=h[p],_=m.rectangle,!f.Z.greaterThanOrEquals(Z.west,_.east,g));++p);}p-d==1?(s.changedThisFrame=s.changedThisFrame||u[d]!==a,u[d]=a,h[d]=i):(s.changedThisFrame=!0,u.splice(d,p-d,a),h.splice(d,p-d,i))}(e,t,i,n,r,a)}(e,t,i,u,o,r,a,c)}}v.updateFillTiles=function(e,t,i,n){const r=e._quadtree,o=r._levelZeroTiles,s=r._lastSelectionFrameNumber,a=T;a.clear();for(let e=0;e<t.length;++e){const i=t[e];(0,l.Z)(i.data.vertexArray)&&a.enqueue(t[e])}let c=a.dequeue();for(;void 0!==c;){const t=c.findTileToWest(o),r=c.findTileToSouth(o),u=c.findTileToEast(o),l=c.findTileToNorth(o);C(e,i,c,t,s,y.Z.EAST,!1,a,n),C(e,i,c,r,s,y.Z.NORTH,!1,a,n),C(e,i,c,u,s,y.Z.WEST,!1,a,n),C(e,i,c,l,s,y.Z.SOUTH,!1,a,n);const h=t.findTileToNorth(o),d=t.findTileToSouth(o),f=u.findTileToNorth(o),p=u.findTileToSouth(o);C(e,i,c,h,s,y.Z.SOUTHEAST,!1,a,n),C(e,i,c,f,s,y.Z.SOUTHWEST,!1,a,n),C(e,i,c,d,s,y.Z.NORTHEAST,!1,a,n),C(e,i,c,p,s,y.Z.NORTHWEST,!1,a,n),c=a.dequeue()}};const E=new u.Z,x=new u.Z,S=new a.Z,O=new a.Z,I=new s.Z,D=new s.Z,P=new s.Z;function R(){this.height=0,this.encodedNormal=new s.Z}function B(e,t,i,n,r,o,s,a,c){if((0,l.Z)(r))return r;let u;if((0,l.Z)(o)&&(0,l.Z)(s))u=.5*(o.height+s.height);else if((0,l.Z)(o))u=o.height;else if((0,l.Z)(s))u=s.height;else if((0,l.Z)(a))u=a.height;else{const t=e.tile.data.tileBoundingRegion;let i=0,n=0;(0,l.Z)(t)&&(i=t.minimumHeight,n=t.maximumHeight),u=.5*(i+n)}return J(0,t,0,0,u,c),c}const M={minimumHeight:0,maximumHeight:0},L=new a.Z,N=new R,F=new R,k=new R,U=new R,V="undefined"!=typeof Uint8Array?new Uint8Array(81):void 0,z={tilingScheme:void 0,x:0,y:0,level:0,exaggeration:1,exaggerationRelativeHeight:0};function H(e,t,i,r){A.Z.initialize(i,e.terrainProvider,e._imageryLayers);const c=i.data,u=c.fill,h=i.rectangle,f=t.terrainExaggeration,m=t.terrainExaggerationRelativeHeight,w=1!==f,v=i.tilingScheme.ellipsoid;let T=Q(u,v,0,1,u.northwestTile,u.northwestMesh,u.northTiles,u.northMeshes,u.westTiles,u.westMeshes,k),C=Q(u,v,0,0,u.southwestTile,u.southwestMesh,u.westTiles,u.westMeshes,u.southTiles,u.southMeshes,N),S=Q(u,v,1,0,u.southeastTile,u.southeastMesh,u.southTiles,u.southMeshes,u.eastTiles,u.eastMeshes,F),D=Q(u,v,1,1,u.northeastTile,u.northeastMesh,u.eastTiles,u.eastMeshes,u.northTiles,u.northMeshes,U);T=B(u,v,0,0,T,C,D,S,k),C=B(u,v,0,0,C,T,S,D,N),S=B(u,v,0,0,S,C,D,T,F),D=B(u,v,0,0,D,S,T,C,U);const R=C.height,H=S.height,q=T.height,j=D.height;let W=Math.min(R,H,q,j),K=Math.max(R,H,q,j);const Y=.5*(W+K);let X,J;const $=e.getLevelMaximumGeometricError(i.level),te=v.maximumRadius-$;let ie=4*Math.acos(te/v.maximumRadius);if(ie*=1.5,h.width>ie&&K-W<=$){const e=new d.Z({width:9,height:9,buffer:V,structure:{heightOffset:K}}),t=z;t.tilingScheme=i.tilingScheme,t.x=i.x,t.y=i.y,t.level=i.level,t.exaggeration=f,t.exaggerationRelativeHeight=m,u.mesh=e._createMeshSync(t)}else{const t=w,r=_.Z.center(h,x);r.height=Y;const c=v.cartographicToCartesian(r,L),l=new Z.Z(c,void 0,void 0,void 0,void 0,!0,!0,t,f,m);let d,A=5;for(d=u.westMeshes,X=0,J=d.length;X<J;++X)A+=d[X].eastIndicesNorthToSouth.length;for(d=u.southMeshes,X=0,J=d.length;X<J;++X)A+=d[X].northIndicesWestToEast.length;for(d=u.eastMeshes,X=0,J=d.length;X<J;++X)A+=d[X].westIndicesSouthToNorth.length;for(d=u.northMeshes,X=0,J=d.length;X<J;++X)A+=d[X].southIndicesEastToWest.length;const R=M;R.minimumHeight=W,R.maximumHeight=K;const B=l.stride;let N=new Float32Array(A*B),F=0;const k=F;F=G(v,h,l,N,F,0,1,T.height,T.encodedNormal,1,R),F=ee(u,v,l,N,F,u.westTiles,u.westMeshes,y.Z.EAST,R);const U=F;F=G(v,h,l,N,F,0,0,C.height,C.encodedNormal,0,R),F=ee(u,v,l,N,F,u.southTiles,u.southMeshes,y.Z.NORTH,R);const V=F;F=G(v,h,l,N,F,1,0,S.height,S.encodedNormal,0,R),F=ee(u,v,l,N,F,u.eastTiles,u.eastMeshes,y.Z.WEST,R);const z=F;F=G(v,h,l,N,F,1,1,D.height,D.encodedNormal,1,R),F=ee(u,v,l,N,F,u.northTiles,u.northMeshes,y.Z.SOUTH,R),W=R.minimumHeight,K=R.maximumHeight;const H=p.Z.fromRectangle(h,W,K,i.tilingScheme.ellipsoid),q=b.Z.geodeticLatitudeToMercatorAngle(h.south),j=1/(b.Z.geodeticLatitudeToMercatorAngle(h.north)-q),Q=(b.Z.geodeticLatitudeToMercatorAngle(r.latitude)-q)*j,$=v.geodeticSurfaceNormalCartographic(E,O),te=n.Z.octEncode($,I),ie=F;l.encode(N,F*B,H.center,s.Z.fromElements(.5,.5,P),Y,te,Q,$),++F;const ne=F,re=3*(ne-1),se=re*(ne<256?1:2);let ae;if((N.length-ne*B)*Float32Array.BYTES_PER_ELEMENT>=se){const e=ne*B*Float32Array.BYTES_PER_ELEMENT;ae=ne<256?new Uint8Array(N.buffer,e,re):new Uint16Array(N.buffer,e,re)}else ae=ne<256?new Uint8Array(re):new Uint16Array(re);N=new Float32Array(N.buffer,0,ne*B);let ce=0;for(X=0;X<ne-2;++X)ae[ce++]=ie,ae[ce++]=X,ae[ce++]=X+1;ae[ce++]=ie,ae[ce++]=X,ae[ce++]=0;const ue=[];for(X=U;X>=k;--X)ue.push(X);const le=[];for(X=V;X>=U;--X)le.push(X);const he=[];for(X=z;X>=V;--X)he.push(X);const de=[];for(de.push(0),X=ie-1;X>=z;--X)de.push(X);u.mesh=new g.Z(l.center,N,ae,re,ne,W,K,o.Z.fromOrientedBoundingBox(H),function(e,t,i,n,r,o){const s=e.quadtree._occluders.ellipsoid,c=s.ellipsoid,u=oe;return a.Z.fromRadians(i.west,i.south,r,c,u[0]),a.Z.fromRadians(i.east,i.south,r,c,u[1]),a.Z.fromRadians(i.west,i.north,r,c,u[2]),a.Z.fromRadians(i.east,i.north,r,c,u[3]),s.computeHorizonCullingPointPossiblyUnderEllipsoid(t,u,n,void 0)}(e,H.center,h,W,K),l.stride,H,l,ue,le,he,de)}const ne=t.context;u._destroyVertexArray(r),u.vertexArray=A.Z._createVertexArrayForMesh(ne,u.mesh),c.processImagery(i,e.terrainProvider,t,!0);const re=u.waterMaskTexture;if(u.waterMaskTexture=void 0,e.terrainProvider.hasWaterMask){const e=c._findAncestorTileWithTerrainData(i);(0,l.Z)(e)&&(0,l.Z)(e.data.waterMaskTexture)&&(u.waterMaskTexture=e.data.waterMaskTexture,++u.waterMaskTexture.referenceCount,c._computeWaterMaskTranslationAndScale(i,e,u.waterMaskTranslationAndScale))}(0,l.Z)(re)&&(--re.referenceCount,0===re.referenceCount&&re.destroy())}function G(e,t,i,n,r,o,s,a,c,u,l){const h=E;h.longitude=f.Z.lerp(t.west,t.east,o),h.latitude=f.Z.lerp(t.south,t.north,s),h.height=a;const d=e.cartographicToCartesian(h,S);let p;i.hasGeodeticSurfaceNormals&&(p=e.geodeticSurfaceNormal(d,O));const m=D;return m.x=o,m.y=s,i.encode(n,r*i.stride,d,m,a,c,u,p),l.minimumHeight=Math.min(l.minimumHeight,a),l.maximumHeight=Math.max(l.maximumHeight,a),r+1}const q=new _.Z;function j(e,t,i,n){let r=e.rectangle;const o=t.rectangle;0===t.x&&1===i.x&&e.x===e.tilingScheme.getNumberOfXTilesAtLevel(e.level)-1?(r=_.Z.clone(e.rectangle,q),r.west-=f.Z.TWO_PI,r.east-=f.Z.TWO_PI):0===e.x&&0===i.x&&t.x===t.tilingScheme.getNumberOfXTilesAtLevel(t.level)-1&&(r=_.Z.clone(e.rectangle,q),r.west+=f.Z.TWO_PI,r.east+=f.Z.TWO_PI);const s=r.east-r.west,a=(o.west-r.west)/s,c=(o.east-r.west)/s,u=r.north-r.south,l=(o.south-r.south)/u,h=(o.north-r.south)/u;let d=(i.x-a)/(c-a),p=(i.y-l)/(h-l);return Math.abs(d)<Math.EPSILON5?d=0:Math.abs(d-1)<Math.EPSILON5&&(d=1),Math.abs(p)<Math.EPSILON5?p=0:Math.abs(p-1)<Math.EPSILON5&&(p=1),n.x=d,n.y=p,n}const W=new s.Z;function K(e,t,i,n,r){const o=e.encoding,s=e.vertices;if(r.height=o.decodeHeight(s,t),o.hasVertexNormals)o.getOctEncodedNormal(s,t,r.encodedNormal);else{const e=r.encodedNormal;e.x=0,e.y=0}}const Y=new s.Z,X=new a.Z;function J(e,t,i,r,o,s){s.height=o;const a=t.geodeticSurfaceNormalCartographic(E,S);n.Z.octEncode(a,s.encodedNormal)}function Q(e,t,i,n,r,o,s,a,c,u,h){if(re(e,t,a,s,!1,i,n,h)||re(e,t,u,c,!0,i,n,h))return h;let d,f;return ne(r,o)?(d=0===i?0===n?o.eastIndicesNorthToSouth[0]:o.southIndicesEastToWest[0]:0===n?o.northIndicesWestToEast[0]:o.westIndicesSouthToNorth[0],K(o,d,0,0,h),h):(f=0===i?0===n?$(e.westMeshes,e.westTiles,y.Z.EAST,e.southMeshes,e.southTiles,y.Z.NORTH,i,n):$(e.northMeshes,e.northTiles,y.Z.SOUTH,e.westMeshes,e.westTiles,y.Z.EAST,i,n):0===n?$(e.southMeshes,e.southTiles,y.Z.NORTH,e.eastMeshes,e.eastTiles,y.Z.WEST,i,n):$(e.eastMeshes,e.eastTiles,y.Z.WEST,e.northMeshes,e.northTiles,y.Z.SOUTH,i,n),(0,l.Z)(f)?(J(0,t,0,0,f,h),h):void 0)}function $(e,t,i,n,r,o,s,a){const c=ie(e,t,!1,i),u=ie(n,r,!0,o);return(0,l.Z)(c)&&(0,l.Z)(u)?.5*(c+u):(0,l.Z)(c)?c:u}function ee(e,t,i,n,r,o,s,a,c){for(let u=0;u<o.length;++u)r=te(e,t,i,n,r,o[u],s[u],a,c);return r}function te(e,t,i,n,r,o,s,a,c){let u=o.rectangle;a===y.Z.EAST&&0===e.tile.x?(u=_.Z.clone(o.rectangle,q),u.west-=f.Z.TWO_PI,u.east-=f.Z.TWO_PI):a===y.Z.WEST&&0===o.x&&(u=_.Z.clone(o.rectangle,q),u.west+=f.Z.TWO_PI,u.east+=f.Z.TWO_PI);const l=e.tile.rectangle;let h,d,p,m;switch(r>0&&(i.decodeTextureCoordinates(n,r-1,P),h=P.x,d=P.y),a){case y.Z.WEST:p=s.westIndicesSouthToNorth,m=!1;break;case y.Z.NORTH:p=s.northIndicesWestToEast,m=!0;break;case y.Z.EAST:p=s.eastIndicesNorthToSouth,m=!1;break;case y.Z.SOUTH:p=s.southIndicesEastToWest,m=!0}const Z=o,g=e.tile,A=s.encoding,w=s.vertices,v=i.stride;let T,C;A.hasWebMercatorT&&(T=b.Z.geodeticLatitudeToMercatorAngle(l.south),C=1/(b.Z.geodeticLatitudeToMercatorAngle(l.north)-T));for(let e=0;e<p.length;++e){const o=p[e],s=A.decodeTextureCoordinates(w,o,P);j(Z,g,s,s);const a=s.x,u=s.y,_=m?a:u;if(_<0||_>1)continue;if(Math.abs(a-h)<f.Z.EPSILON5&&Math.abs(u-d)<f.Z.EPSILON5)continue;const y=Math.abs(a)<f.Z.EPSILON5||Math.abs(a-1)<f.Z.EPSILON5,E=Math.abs(u)<f.Z.EPSILON5||Math.abs(u-1)<f.Z.EPSILON5;if(y&&E)continue;const x=A.decodePosition(w,o,S),D=A.decodeHeight(w,o);let R;A.hasVertexNormals?R=A.getOctEncodedNormal(w,o,I):(R=I,R.x=0,R.y=0);let B,M=u;if(A.hasWebMercatorT){const e=f.Z.lerp(l.south,l.north,u);M=(b.Z.geodeticLatitudeToMercatorAngle(e)-T)*C}i.hasGeodeticSurfaceNormals&&(B=t.geodeticSurfaceNormal(x,O)),i.encode(n,r*v,x,s,D,R,M,B),c.minimumHeight=Math.min(c.minimumHeight,D),c.maximumHeight=Math.max(c.maximumHeight,D),++r}return r}function ie(e,t,i,n,r,o){let s,a,c;i?(s=0,a=e.length,c=1):(s=e.length-1,a=-1,c=-1);for(let r=s;r!==a;r+=c){const o=e[r];if(!ne(t[r],o))continue;let s;switch(n){case y.Z.WEST:s=o.westIndicesSouthToNorth;break;case y.Z.SOUTH:s=o.southIndicesEastToWest;break;case y.Z.EAST:s=o.eastIndicesNorthToSouth;break;case y.Z.NORTH:s=o.northIndicesWestToEast}const a=s[i?0:s.length-1];if((0,l.Z)(a))return o.encoding.decodeHeight(o.vertices,a)}}function ne(e,t){return(0,l.Z)(t)&&(!(0,l.Z)(e.data.fill)||!e.data.fill.changedThisFrame)}function re(e,t,i,o,s,c,u,l){let h,d,p,m,_;const Z=o[s?0:i.length-1],g=i[s?0:i.length-1];if(ne(Z,g)&&(0===c?0===u?(h=s?g.northIndicesWestToEast:g.eastIndicesNorthToSouth,d=s,p=s):(h=s?g.eastIndicesNorthToSouth:g.southIndicesEastToWest,d=!s,p=!1):0===u?(h=s?g.westIndicesSouthToNorth:g.northIndicesWestToEast,d=!s,p=!0):(h=s?g.southIndicesEastToWest:g.westIndicesSouthToNorth,d=s,p=!s),h.length>0)){m=s?0:h.length-1,_=h[m],g.encoding.decodeTextureCoordinates(g.vertices,_,P);const i=j(Z,e.tile,P,P);if(i.x===c&&i.y===u)return K(g,_,0,0,l),!0;if(m=(0,r.Z)(h,d?c:u,(function(t,i){g.encoding.decodeTextureCoordinates(g.vertices,t,P);const n=j(Z,e.tile,P,P);return p?d?n.x-c:n.y-u:d?c-n.x:u-n.y})),!(m<0))return K(g,h[m],0,0,l),!0;if(m=~m,m>0&&m<h.length)return function(e,t,i,r,o,s,c,u,l,h){const d=r.encoding,p=r.vertices,m=j(t,i,d.decodeTextureCoordinates(p,o,P),P),_=j(t,i,d.decodeTextureCoordinates(p,s,D),D);let Z;Z=l?(c-m.x)/(_.x-m.x):(u-m.y)/(_.y-m.y);const g=d.decodeHeight(p,o),y=d.decodeHeight(p,s),b=i.rectangle;let A;if(E.longitude=f.Z.lerp(b.west,b.east,c),E.latitude=f.Z.lerp(b.south,b.north,u),h.height=E.height=f.Z.lerp(g,y,Z),d.hasVertexNormals){const e=d.getOctEncodedNormal(p,o,W),t=d.getOctEncodedNormal(p,s,Y),i=n.Z.octDecode(e.x,e.y,S),r=n.Z.octDecode(t.x,t.y,X);A=a.Z.lerp(i,r,Z,S),a.Z.normalize(A,A),n.Z.octEncode(A,h.encodedNormal)}else A=e.geodeticSurfaceNormalCartographic(E,S),n.Z.octEncode(A,h.encodedNormal)}(t,Z,e.tile,g,h[m-1],h[m],c,u,d,l),!0}return!1}const oe=[new a.Z,new a.Z,new a.Z,new a.Z],se=v},226948:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({FAILED:0,UNLOADED:1,RECEIVING:2,RECEIVED:3,TRANSFORMING:4,TRANSFORMED:5,READY:6})},816471:(e,t,i)=>{"use strict";i.d(t,{Z:()=>A});var n=i(152124),r=i(337968),o=i(416974),s=i(406144),a=i(426468),c=i(54879),u=i(446938),l=i(100883),h=i(795788),d=i(50128),f=i(884980),p=i(283044),m=i(527758);function _(e,t,i,n,o){this.bottomLeft=(0,s.Z)(e,r.Z.ZERO),this.topRight=(0,s.Z)(t,r.Z.ZERO),this.childNode1=i,this.childNode2=n,this.imageIndex=o}const Z=new r.Z(16,16);function g(e){e=(0,s.Z)(e,s.Z.EMPTY_OBJECT);const t=(0,s.Z)(e.borderWidthInPixels,1),i=(0,s.Z)(e.initialSize,Z);if(!(0,a.Z)(e.context))throw new u.Z("context is required.");if(t<0)throw new u.Z("borderWidthInPixels must be greater than or equal to zero.");if(i.x<1||i.y<1)throw new u.Z("initialSize must be greater than zero.");this._context=e.context,this._pixelFormat=(0,s.Z)(e.pixelFormat,l.Z.RGBA),this._borderWidthInPixels=t,this._textureCoordinates=[],this._guid=(0,o.Z)(),this._idHash={},this._initialSize=i,this._root=void 0}function y(e,t,i){if((0,a.Z)(t)){if(!(0,a.Z)(t.childNode1)&&!(0,a.Z)(t.childNode2)){if((0,a.Z)(t.imageIndex))return;const n=t.topRight.x-t.bottomLeft.x,o=t.topRight.y-t.bottomLeft.y,s=n-i.width,c=o-i.height;if(s<0||c<0)return;if(0===s&&0===c)return t;if(s>c){t.childNode1=new _(new r.Z(t.bottomLeft.x,t.bottomLeft.y),new r.Z(t.bottomLeft.x+i.width,t.topRight.y));const n=t.bottomLeft.x+i.width+e._borderWidthInPixels;n<t.topRight.x&&(t.childNode2=new _(new r.Z(n,t.bottomLeft.y),new r.Z(t.topRight.x,t.topRight.y)))}else{t.childNode1=new _(new r.Z(t.bottomLeft.x,t.bottomLeft.y),new r.Z(t.topRight.x,t.bottomLeft.y+i.height));const n=t.bottomLeft.y+i.height+e._borderWidthInPixels;n<t.topRight.y&&(t.childNode2=new _(new r.Z(t.bottomLeft.x,n),new r.Z(t.topRight.x,t.topRight.y)))}return y(e,t.childNode1,i)}return y(e,t.childNode1,i)||y(e,t.childNode2,i)}}function b(e,t,i){const s=y(e,e._root,t);if((0,a.Z)(s)){s.imageIndex=i;const r=e._texture.width,o=e._texture.height,a=s.topRight.x-s.bottomLeft.x,c=s.topRight.y-s.bottomLeft.y,u=s.bottomLeft.x/r,l=s.bottomLeft.y/o,h=a/r,d=c/o;e._textureCoordinates[i]=new n.Z(u,l,h,d),e._texture.copyFrom({source:t,xOffset:s.bottomLeft.x,yOffset:s.bottomLeft.y})}else!function(e,t){const i=e._context,n=e.numberOfImages,o=e._borderWidthInPixels;if(n>0){const n=e._texture.width,s=e._texture.height,c=2*(n+t.width+o),u=2*(s+t.height+o),l=n/c,h=s/u,d=new _(new r.Z(n+o,o),new r.Z(c,s)),m=new _(new r.Z,new r.Z(c,s),e._root,d),Z=new _(new r.Z(o,s+o),new r.Z(c,u)),g=new _(new r.Z,new r.Z(c,u),m,Z);for(let t=0;t<e._textureCoordinates.length;t++){const i=e._textureCoordinates[t];(0,a.Z)(i)&&(i.x*=l,i.y*=h,i.width*=l,i.height*=h)}const y=new p.Z({context:e._context,width:c,height:u,pixelFormat:e._pixelFormat}),b=new f.Z({context:i,colorTextures:[e._texture],destroyAttachments:!1});b._bind(),y.copyFromFramebuffer(0,0,0,0,c,u),b._unBind(),b.destroy(),e._texture=e._texture&&e._texture.destroy(),e._texture=y,e._root=g}else{let i=2*(t.width+2*o),n=2*(t.height+2*o);i<e._initialSize.x&&(i=e._initialSize.x),n<e._initialSize.y&&(n=e._initialSize.y),e._texture=e._texture&&e._texture.destroy(),e._texture=new p.Z({context:e._context,width:i,height:n,pixelFormat:e._pixelFormat}),e._root=new _(new r.Z(o,o),new r.Z(i,n))}}(e,t),b(e,t,i);e._guid=(0,o.Z)()}Object.defineProperties(g.prototype,{borderWidthInPixels:{get:function(){return this._borderWidthInPixels}},textureCoordinates:{get:function(){return this._textureCoordinates}},texture:{get:function(){return(0,a.Z)(this._texture)||(this._texture=new p.Z({context:this._context,width:this._initialSize.x,height:this._initialSize.y,pixelFormat:this._pixelFormat})),this._texture}},numberOfImages:{get:function(){return this._textureCoordinates.length}},guid:{get:function(){return this._guid}}}),g.prototype.addImage=function(e,t){if(!(0,a.Z)(e))throw new u.Z("id is required.");if(!(0,a.Z)(t))throw new u.Z("image is required.");let i=this._idHash[e];if((0,a.Z)(i))return i;if("function"==typeof t){if(t=t(e),!(0,a.Z)(t))throw new u.Z("image is required.")}else("string"==typeof t||t instanceof h.Z)&&(t=h.Z.createIfNeeded(t).fetchImage());const n=this;return i=(0,m.Z)(t,(function(e){if(n.isDestroyed())return-1;const t=n.numberOfImages;return b(n,e,t),t})),this._idHash[e]=i,i},g.prototype.addSubRegion=function(e,t){if(!(0,a.Z)(e))throw new u.Z("id is required.");if(!(0,a.Z)(t))throw new u.Z("subRegion is required.");const i=this._idHash[e];if(!(0,a.Z)(i))throw new d.Z('image with id "'+e+'" not found in the atlas.');const r=this;return(0,m.Z)(i,(function(e){if(-1===e)return-1;const i=r._texture.width,s=r._texture.height,a=r.numberOfImages,c=r._textureCoordinates[e],u=c.x+t.x/i,l=c.y+t.y/s,h=t.width/i,d=t.height/s;return r._textureCoordinates.push(new n.Z(u,l,h,d)),r._guid=(0,o.Z)(),a}))},g.prototype.isDestroyed=function(){return!1},g.prototype.destroy=function(){return this._texture=this._texture&&this._texture.destroy(),(0,c.Z)(this)};const A=g},119507:(e,t,i)=>{"use strict";i.d(t,{Z:()=>N});var n=i(360791),r=i(919382),o=i(698907),s=i(357299),a=i(182934),c=i(406144),u=i(426468),l=i(253316),h=i(952254),d=i(66172),f=i(583917),p=i(126874),m=i(634878),_=i(24401),Z=i(523501),g=i(947989),y=i(578721),b=i(939800),A=i(506678);function w(e){s.Z.typeOf.object("options",e),s.Z.typeOf.object("options.rectangle",e.rectangle),this.rectangle=Z.Z.clone(e.rectangle),this.minimumHeight=(0,c.Z)(e.minimumHeight,0),this.maximumHeight=(0,c.Z)(e.maximumHeight,0),this.southwestCornerCartesian=new r.Z,this.northeastCornerCartesian=new r.Z,this.westNormal=new r.Z,this.southNormal=new r.Z,this.eastNormal=new r.Z,this.northNormal=new r.Z;const t=(0,c.Z)(e.ellipsoid,l.Z.WGS84);!function(e,t,i){i.cartographicToCartesian(Z.Z.southwest(t),e.southwestCornerCartesian),i.cartographicToCartesian(Z.Z.northeast(t),e.northeastCornerCartesian),O.longitude=t.west,O.latitude=.5*(t.south+t.north),O.height=0;const n=i.cartographicToCartesian(O,x),o=r.Z.cross(n,r.Z.UNIT_Z,v);r.Z.normalize(o,e.westNormal),O.longitude=t.east;const s=i.cartographicToCartesian(O,S),a=r.Z.cross(r.Z.UNIT_Z,s,v);r.Z.normalize(a,e.eastNormal);const c=r.Z.subtract(n,s,v),u=r.Z.normalize(c,E),l=t.south;let h;if(l>0){O.longitude=.5*(t.west+t.east),O.latitude=l;const n=i.cartographicToCartesian(O,D.origin);r.Z.clone(u,D.direction);const o=m.Z.fromPointNormal(e.southwestCornerCartesian,e.westNormal,I);d.Z.rayPlane(D,o,e.southwestCornerCartesian),h=i.geodeticSurfaceNormal(n,T)}else h=i.geodeticSurfaceNormalCartographic(Z.Z.southeast(t),T);const f=r.Z.cross(h,c,C);r.Z.normalize(f,e.southNormal);const p=t.north;let _;if(p<0){O.longitude=.5*(t.west+t.east),O.latitude=p;const n=i.cartographicToCartesian(O,D.origin);r.Z.negate(u,D.direction);const o=m.Z.fromPointNormal(e.northeastCornerCartesian,e.eastNormal,I);d.Z.rayPlane(D,o,e.northeastCornerCartesian),_=i.geodeticSurfaceNormal(n,T)}else _=i.geodeticSurfaceNormalCartographic(Z.Z.northwest(t),T);const g=r.Z.cross(c,_,C);r.Z.normalize(g,e.northNormal)}(this,e.rectangle,t),this._orientedBoundingBox=void 0,this._boundingSphere=void 0,(0,c.Z)(e.computeBoundingVolumes,!0)&&this.computeBoundingVolumes(t)}Object.defineProperties(w.prototype,{boundingVolume:{get:function(){return this._orientedBoundingBox}},boundingSphere:{get:function(){return this._boundingSphere}}}),w.prototype.computeBoundingVolumes=function(e){this._orientedBoundingBox=p.Z.fromRectangle(this.rectangle,this.minimumHeight,this.maximumHeight,e),this._boundingSphere=n.Z.fromOrientedBoundingBox(this._orientedBoundingBox)};const v=new r.Z,T=new r.Z,C=new r.Z,E=new r.Z,x=new r.Z,S=new r.Z,O=new o.Z,I=new m.Z(r.Z.UNIT_X,0),D=new _.Z,P=new r.Z,R=new r.Z,B=new r.Z(0,-1,0),M=new r.Z(0,0,-1),L=new r.Z;w.prototype.distanceToCamera=function(e){s.Z.defined("frameState",e);const t=function(e,t){const i=t.camera,n=i.positionWC,o=i.positionCartographic;let s,a,c,u=0;if(!Z.Z.contains(e.rectangle,o)){let i=e.southwestCornerCartesian,o=e.northeastCornerCartesian,s=e.westNormal,a=e.southNormal,c=e.eastNormal,l=e.northNormal;t.mode!==A.Z.SCENE3D&&(i=t.mapProjection.project(Z.Z.southwest(e.rectangle),P),i.z=i.y,i.y=i.x,i.x=0,o=t.mapProjection.project(Z.Z.northeast(e.rectangle),R),o.z=o.y,o.y=o.x,o.x=0,s=B,c=r.Z.UNIT_Y,a=M,l=r.Z.UNIT_Z);const h=r.Z.subtract(n,i,L),d=r.Z.dot(h,s),f=r.Z.dot(h,a),p=r.Z.subtract(n,o,L),m=r.Z.dot(p,c),_=r.Z.dot(p,l);d>0?u+=d*d:m>0&&(u+=m*m),f>0?u+=f*f:_>0&&(u+=_*_)}if(t.mode===A.Z.SCENE3D?(s=o.height,a=e.minimumHeight,c=e.maximumHeight):(s=n.x,a=0,c=0),s>c){const e=s-c;u+=e*e}else if(s<a){const e=a-s;u+=e*e}return Math.sqrt(u)}(this,e);if(e.mode===A.Z.SCENE3D&&(0,u.Z)(this._orientedBoundingBox)){const i=Math.sqrt(this._orientedBoundingBox.distanceSquaredTo(e.camera.positionWC));return Math.max(t,i)}return t},w.prototype.intersectPlane=function(e){return s.Z.defined("plane",e),this._orientedBoundingBox.intersectPlane(e)},w.prototype.createDebugVolume=function(e){s.Z.defined("color",e);const t=new f.Z.clone(f.Z.IDENTITY),i=new g.Z({rectangle:this.rectangle,height:this.minimumHeight,extrudedHeight:this.maximumHeight}),n=new h.Z({geometry:i,id:"outline",modelMatrix:t,attributes:{color:a.Z.fromColor(e)}});return new b.Z({geometryInstances:n,appearance:new y.Z({translucent:!1,flat:!0}),asynchronous:!1})};const N=w},47854:(e,t,i)=>{"use strict";i.d(t,{Z:()=>ee});var n=i(919382),r=i(426468),o=i(698907),s=i(253316),a=i(360382),c=i(165373),u=i(634878),l=i(770919),h=i(360791),d=i(357299),f=i(182934),p=i(406144),m=i(952254),_=i(583917),Z=i(578721),g=i(939800),y=i(820074);let b=new o.Z;function A(e){d.Z.typeOf.object("options",e),d.Z.typeOf.string("options.token",e.token);const t=y.Z.fromToken(e.token),i=(0,p.Z)(e.minimumHeight,0),r=(0,p.Z)(e.maximumHeight,0),o=(0,p.Z)(e.ellipsoid,s.Z.WGS84);this.s2Cell=t,this.minimumHeight=i,this.maximumHeight=r,this.ellipsoid=o;const a=function(e,t,i,r){const o=new Array(6),s=e.getCenter(),a=r.geodeticSurfaceNormal(s,w),c=r.cartesianToCartographic(s,v);c.height=i;const l=r.cartographicToCartesian(c,T),h=u.Z.fromPointNormal(l,a);o[0]=h;let d,f=0;const p=[];let m,_;for(d=0;d<4;d++){m=e.getVertex(d),p[d]=m,_=r.cartesianToCartographic(m,C),_.height=t;const i=u.Z.getPointDistance(h,r.cartographicToCartesian(_,E));i<f&&(f=i)}const Z=u.Z.clone(h);for(Z.normal=n.Z.negate(Z.normal,Z.normal),Z.distance=-1*Z.distance+f,o[1]=Z,d=0;d<4;d++){m=p[d];const e=p[(d+1)%4],t=r.geodeticSurfaceNormal(m,x),i=n.Z.subtract(e,m,O);let s=n.Z.cross(i,t,S);s=n.Z.normalize(s,s),o[2+d]=u.Z.fromPointNormal(m,s)}return o}(t,i,r,o);this._boundingPlanes=a;const c=function(e){const t=new Array(8);for(let i=0;i<4;i++)t[i]=G(e[0],e[2+(i+3)%4],e[2+i%4]),t[i+4]=G(e[1],e[2+(i+3)%4],e[2+i%4]);return t}(a);let l;for(this._vertices=c,this._edgeNormals=new Array(6),this._edgeNormals[0]=W(a[0],c.slice(0,4)),l=0;l<4;l++)this._edgeNormals[0][l]=n.Z.negate(this._edgeNormals[0][l],this._edgeNormals[0][l]);for(this._edgeNormals[1]=W(a[1],c.slice(4,8)),l=0;l<4;l++)this._edgeNormals[2+l]=W(a[2+l],[c[l%4],c[(l+1)%4],c[4+(l+1)%4],c[4+l]]);for(this._planeVertices=[this._vertices.slice(0,4),this._vertices.slice(4,8)],l=0;l<4;l++)this._planeVertices.push([this._vertices[l%4],this._vertices[(l+1)%4],this._vertices[4+(l+1)%4],this._vertices[4+l]]);const f=t.getCenter();b=o.cartesianToCartographic(f,b),b.height=(r+i)/2,this.center=o.cartographicToCartesian(b,f),this._boundingSphere=h.Z.fromPoints(c)}const w=new n.Z,v=new o.Z,T=new n.Z,C=new o.Z,E=new n.Z,x=new n.Z,S=new n.Z,O=new n.Z;let I=new n.Z,D=new n.Z,P=new n.Z,R=new n.Z,B=new n.Z,M=new n.Z;const L=new n.Z,N=new n.Z,F=new n.Z;let k=new n.Z,U=new n.Z,V=new n.Z,z=new n.Z;const H=new c.Z;function G(e,t,i){I=e.normal,D=t.normal,P=i.normal,R=n.Z.multiplyByScalar(e.normal,-e.distance,R),B=n.Z.multiplyByScalar(t.normal,-t.distance,B),M=n.Z.multiplyByScalar(i.normal,-i.distance,M),k=n.Z.multiplyByScalar(n.Z.cross(D,P,L),n.Z.dot(R,I),k),U=n.Z.multiplyByScalar(n.Z.cross(P,I,N),n.Z.dot(B,D),U),V=n.Z.multiplyByScalar(n.Z.cross(I,D,F),n.Z.dot(M,P),V),H[0]=I.x,H[1]=D.x,H[2]=P.x,H[3]=I.y,H[4]=D.y,H[5]=P.y,H[6]=I.z,H[7]=D.z,H[8]=P.z;const r=c.Z.determinant(H);return z=n.Z.add(k,U,z),z=n.Z.add(z,V,z),new n.Z(z.x/r,z.y/r,z.z/r)}let q=new n.Z,j=new n.Z;function W(e,t){const i=[];for(let r=0;r<4;r++)q=n.Z.subtract(t[(r+1)%4],t[r],q),j=n.Z.cross(e.normal,q,j),j=n.Z.normalize(j,j),i[r]=n.Z.clone(j);return i}Object.defineProperties(A.prototype,{boundingVolume:{get:function(){return this}},boundingSphere:{get:function(){return this._boundingSphere}}});const K=new n.Z;A.prototype.distanceToCamera=function(e){d.Z.defined("frameState",e);const t=e.camera.positionWC,i=[],r=[];let o,s,a,c,l;for(u.Z.getPointDistance(this._boundingPlanes[0],t)>0?(i.push(0),r.push(this._planeVertices[0]),o=this._edgeNormals[0]):u.Z.getPointDistance(this._boundingPlanes[1],t)>0&&(i.push(1),r.push(this._planeVertices[1]),o=this._edgeNormals[1]),s=0;s<4;s++)a=2+s,u.Z.getPointDistance(this._boundingPlanes[a],t)>0&&(i.push(a),r.push(this._planeVertices[a]),o=this._edgeNormals[a]);if(0===i.length)return 0;if(1===i.length)return l=this._boundingPlanes[i[0]],c=$(u.Z.projectPointOntoPlane(l,t,K),r[0],0,o),n.Z.distance(c,t);if(2===i.length){if(0===i[0]){const e=[this._vertices[4*i[0]+(i[1]-2)],this._vertices[4*i[0]+(i[1]-2+1)%4]];return c=J(t,e[0],e[1]),n.Z.distance(c,t)}let e,o=Number.MAX_VALUE;for(s=0;s<2;s++)l=this._boundingPlanes[i[s]],c=$(u.Z.projectPointOntoPlane(l,t,K),r[s],0,this._edgeNormals[i[s]]),e=n.Z.distanceSquared(c,t),e<o&&(o=e);return Math.sqrt(o)}if(i.length>3)return c=$(u.Z.projectPointOntoPlane(this._boundingPlanes[1],t,K),this._planeVertices[1],this._boundingPlanes[1],this._edgeNormals[1]),n.Z.distance(c,t);const h=2===i[1]&&5===i[2]?0:1;return 0===i[0]?n.Z.distance(t,this._vertices[(i[1]-2+h)%4]):n.Z.distance(t,this._vertices[4+(i[1]-2+h)%4])};const Y=new n.Z,X=new n.Z;function J(e,t,i){const r=n.Z.subtract(i,t,Y),o=n.Z.subtract(e,t,X);let s=n.Z.dot(r,o);if(s<=0)return t;const a=n.Z.dot(r,r);return s>=a?i:(s/=a,new n.Z((1-s)*t.x+s*i.x,(1-s)*t.y+s*i.y,(1-s)*t.z+s*i.z))}const Q=new u.Z(n.Z.UNIT_X,0);function $(e,t,i,o){let s,a,c,l=Number.MAX_VALUE;for(let i=0;i<t.length;i++){const r=u.Z.fromPointNormal(t[i],o[i],Q);u.Z.getPointDistance(r,e)<0||(c=J(e,t[i],t[(i+1)%4]),s=n.Z.distance(e,c),s<l&&(l=s,a=c))}return(0,r.Z)(a)?a:e}A.prototype.intersectPlane=function(e){d.Z.defined("plane",e);let t=0,i=0;for(let r=0;r<this._vertices.length;r++)n.Z.dot(e.normal,this._vertices[r])+e.distance<0?i++:t++;return t===this._vertices.length?a.Z.INSIDE:i===this._vertices.length?a.Z.OUTSIDE:a.Z.INTERSECTING},A.prototype.createDebugVolume=function(e){d.Z.defined("color",e);const t=new _.Z.clone(_.Z.IDENTITY),i=new l.Z({polygonHierarchy:{positions:this._planeVertices[0]}}),n=l.Z.createGeometry(i),r=new m.Z({geometry:n,id:"outline",modelMatrix:t,attributes:{color:f.Z.fromColor(e)}}),o=new l.Z({polygonHierarchy:{positions:this._planeVertices[1]}}),s=l.Z.createGeometry(o),a=new m.Z({geometry:s,id:"outline",modelMatrix:t,attributes:{color:f.Z.fromColor(e)}}),c=[];for(let i=0;i<4;i++){const n=new l.Z({polygonHierarchy:{positions:this._planeVertices[2+i]}}),r=l.Z.createGeometry(n);c[i]=new m.Z({geometry:r,id:"outline",modelMatrix:t,attributes:{color:f.Z.fromColor(e)}})}return new g.Z({geometryInstances:[c[0],c[1],c[2],c[3],a,r],appearance:new Z.Z({translucent:!1,flat:!0}),asynchronous:!1})};const ee=A},608034:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(360791),r=i(919382),o=i(357299),s=i(182934),a=i(952254),c=i(362017),u=i(583917),l=i(974403),h=i(578721),d=i(939800);function f(e,t){0===t&&(t=c.Z.EPSILON7),this._boundingSphere=new n.Z(e,t)}Object.defineProperties(f.prototype,{center:{get:function(){return this._boundingSphere.center}},radius:{get:function(){return this._boundingSphere.radius}},boundingVolume:{get:function(){return this._boundingSphere}},boundingSphere:{get:function(){return this._boundingSphere}}}),f.prototype.distanceToCamera=function(e){o.Z.defined("frameState",e);const t=this._boundingSphere;return Math.max(0,r.Z.distance(t.center,e.camera.positionWC)-t.radius)},f.prototype.intersectPlane=function(e){return o.Z.defined("plane",e),n.Z.intersectPlane(this._boundingSphere,e)},f.prototype.update=function(e,t){r.Z.clone(e,this._boundingSphere.center),this._boundingSphere.radius=t},f.prototype.createDebugVolume=function(e){o.Z.defined("color",e);const t=new l.Z({radius:this.radius}),i=u.Z.fromTranslation(this.center,new u.Z.clone(u.Z.IDENTITY)),n=new a.Z({geometry:t,id:"outline",modelMatrix:i,attributes:{color:s.Z.fromColor(e)}});return new d.Z({geometryInstances:n,appearance:new h.Z({translucent:!1,flat:!0}),asynchronous:!1})};const p=f},153295:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(446938);function r(){}r.prototype.boundingVolume=void 0,r.prototype.boundingSphere=void 0,r.prototype.distanceToCamera=function(e){n.Z.throwInstantiationError()},r.prototype.intersectPlane=function(e){n.Z.throwInstantiationError()},r.prototype.createDebugVolume=function(e){n.Z.throwInstantiationError()};const o=r},913002:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(545125),r=i(406144),o=i(426468),s=i(197685),a=i(910946),c=i(527758);function u(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),this._tilingScheme=(0,o.Z)(e.tilingScheme)?e.tilingScheme:new a.Z({ellipsoid:e.ellipsoid}),this._color=(0,r.Z)(e.color,n.Z.YELLOW),this._errorEvent=new s.Z,this._tileWidth=(0,r.Z)(e.tileWidth,256),this._tileHeight=(0,r.Z)(e.tileHeight,256),this._readyPromise=c.Z.resolve(!0),this.defaultAlpha=void 0,this.defaultNightAlpha=void 0,this.defaultDayAlpha=void 0,this.defaultBrightness=void 0,this.defaultContrast=void 0,this.defaultHue=void 0,this.defaultSaturation=void 0,this.defaultGamma=void 0,this.defaultMinificationFilter=void 0,this.defaultMagnificationFilter=void 0}Object.defineProperties(u.prototype,{proxy:{get:function(){}},tileWidth:{get:function(){return this._tileWidth}},tileHeight:{get:function(){return this._tileHeight}},maximumLevel:{get:function(){}},minimumLevel:{get:function(){}},tilingScheme:{get:function(){return this._tilingScheme}},rectangle:{get:function(){return this._tilingScheme.rectangle}},tileDiscardPolicy:{get:function(){}},errorEvent:{get:function(){return this._errorEvent}},ready:{get:function(){return!0}},readyPromise:{get:function(){return this._readyPromise}},credit:{get:function(){}},hasAlphaChannel:{get:function(){return!0}}}),u.prototype.getTileCredits=function(e,t,i){},u.prototype.requestImage=function(e,t,i,n){const r=document.createElement("canvas");r.width=256,r.height=256;const o=r.getContext("2d"),s=this._color.toCssColorString();return o.strokeStyle=s,o.lineWidth=2,o.strokeRect(1,1,255,255),o.font="bold 25px Arial",o.textAlign="center",o.fillStyle=s,o.fillText("L: "+i,124,86),o.fillText("X: "+e,124,136),o.fillText("Y: "+t,124,186),r},u.prototype.pickFeatures=function(e,t,i,n,r){};const l=u},992968:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(446938);function r(e){n.Z.throwInstantiationError()}r.prototype.isReady=n.Z.throwInstantiationError,r.prototype.shouldDiscardImage=n.Z.throwInstantiationError;const o=r},560743:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(426468),r=i(649479);function o(e,t,i){this.readyImagery=void 0,this.loadingImagery=e,this.textureCoordinateRectangle=t,this.textureTranslationAndScale=void 0,this.useWebMercatorT=i}o.prototype.freeResources=function(){(0,n.Z)(this.readyImagery)&&this.readyImagery.releaseReference(),(0,n.Z)(this.loadingImagery)&&this.loadingImagery.releaseReference()},o.prototype.processStateMachine=function(e,t,i){const o=this.loadingImagery,s=o.imageryLayer;if(o.processStateMachine(t,!this.useWebMercatorT,i),o.state===r.Z.READY)return(0,n.Z)(this.readyImagery)&&this.readyImagery.releaseReference(),this.readyImagery=this.loadingImagery,this.loadingImagery=void 0,this.textureTranslationAndScale=s._calculateTextureTranslationAndScale(e,this),!0;let a,c=o.parent;for(;(0,n.Z)(c)&&(c.state!==r.Z.READY||!this.useWebMercatorT&&!(0,n.Z)(c.texture));)c.state!==r.Z.FAILED&&c.state!==r.Z.INVALID&&(a=a||c),c=c.parent;return this.readyImagery!==c&&((0,n.Z)(this.readyImagery)&&this.readyImagery.releaseReference(),this.readyImagery=c,(0,n.Z)(c)&&(c.addReference(),this.textureTranslationAndScale=s._calculateTextureTranslationAndScale(e,this))),!(o.state!==r.Z.FAILED&&o.state!==r.Z.INVALID||(0,n.Z)(a)&&(a.processStateMachine(t,!this.useWebMercatorT,i),1))};const s=o},618050:(e,t,i)=>{"use strict";i.d(t,{Z:()=>b});var n=i(337968),r=i(698907),o=i(406144),s=i(426468),a=i(446938),c=i(921099),u=i(910946),l=i(523501),h=i(795788),d=i(50128),f=i(723822),p=i(310526),m=i(527758),_=i(193866);function Z(e){if(e=(0,o.Z)(e,o.Z.EMPTY_OBJECT),!(0,s.Z)(e.url))throw new a.Z("options.url is required.");const t=m.Z.defer();let i;_.Z.call(this,t.promise),this._tmsResource=void 0,this._xmlResource=void 0,this._options=e,this._deferred=t,this._metadataError=void 0,this._metadataSuccess=this._metadataSuccess.bind(this),this._metadataFailure=this._metadataFailure.bind(this),this._requestMetadata=this._requestMetadata.bind(this);const n=this;(0,m.Z)(e.url).then((function(e){i=h.Z.createIfNeeded(e),i.appendForwardSlash(),n._tmsResource=i,n._xmlResource=i.getDerivedResource({url:"tilemapresource.xml"}),n._requestMetadata()})).otherwise((function(e){t.reject(e)}))}function g(e,t){return e.west<t.rectangle.west&&(e.west=t.rectangle.west),e.east>t.rectangle.east&&(e.east=t.rectangle.east),e.south<t.rectangle.south&&(e.south=t.rectangle.south),e.north>t.rectangle.north&&(e.north=t.rectangle.north),e}function y(e,t,i){const n=e.positionToTileXY(l.Z.southwest(t),i),r=e.positionToTileXY(l.Z.northeast(t),i);return(Math.abs(r.x-n.x)+1)*(Math.abs(r.y-n.y)+1)>4?0:i}(0,s.Z)(Object.create)&&(Z.prototype=Object.create(_.Z.prototype),Z.prototype.constructor=Z),Z.prototype._requestMetadata=function(){this._xmlResource.fetchXML().then(this._metadataSuccess).otherwise(this._metadataFailure)},Z.prototype._metadataSuccess=function(e){const t=/tileformat/i,i=/tileset/i,a=/tilesets/i,h=/boundingbox/i;let m,_,Z;const b=[],A=this._xmlResource;let w=this._metadataError;const v=this._deferred,T=this._requestMetadata,C=e.childNodes[0].childNodes;for(let e=0;e<C.length;e++)if(t.test(C.item(e).nodeName))m=C.item(e);else if(a.test(C.item(e).nodeName)){Z=C.item(e);const t=C.item(e).childNodes;for(let e=0;e<t.length;e++)i.test(t.item(e).nodeName)&&b.push(t.item(e))}else h.test(C.item(e).nodeName)&&(_=C.item(e));let E;if(!(0,s.Z)(Z)||!(0,s.Z)(_))return E="Unable to find expected tilesets or bbox attributes in "+A.url+".",w=f.Z.handleError(w,this,this.errorEvent,E,void 0,void 0,void 0,T),w.retry||v.reject(new d.Z(E)),void(this._metadataError=w);const x=this._options,S=(0,o.Z)(x.fileExtension,m.getAttribute("extension")),O=(0,o.Z)(x.tileWidth,parseInt(m.getAttribute("width"),10)),I=(0,o.Z)(x.tileHeight,parseInt(m.getAttribute("height"),10));let D=(0,o.Z)(x.minimumLevel,parseInt(b[0].getAttribute("order"),10));const P=(0,o.Z)(x.maximumLevel,parseInt(b[b.length-1].getAttribute("order"),10)),R=Z.getAttribute("profile");let B=x.tilingScheme;if(!(0,s.Z)(B))if("geodetic"===R||"global-geodetic"===R)B=new u.Z({ellipsoid:x.ellipsoid});else{if("mercator"!==R&&"global-mercator"!==R)return E=A.url+"specifies an unsupported profile attribute, "+R+".",w=f.Z.handleError(w,this,this.errorEvent,E,void 0,void 0,void 0,T),w.retry||v.reject(new d.Z(E)),void(this._metadataError=w);B=new p.Z({ellipsoid:x.ellipsoid})}let M=l.Z.clone(x.rectangle);if(!(0,s.Z)(M)){let e,t,i,s;(0,o.Z)(x.flipXY,!1)?(i=new n.Z(parseFloat(_.getAttribute("miny")),parseFloat(_.getAttribute("minx"))),s=new n.Z(parseFloat(_.getAttribute("maxy")),parseFloat(_.getAttribute("maxx")))):(i=new n.Z(parseFloat(_.getAttribute("minx")),parseFloat(_.getAttribute("miny"))),s=new n.Z(parseFloat(_.getAttribute("maxx")),parseFloat(_.getAttribute("maxy"))));const a="geodetic"===R||"mercator"===R;if(B.projection instanceof c.Z||a)e=r.Z.fromDegrees(i.x,i.y),t=r.Z.fromDegrees(s.x,s.y);else{const n=B.projection;e=n.unproject(i),t=n.unproject(s)}M=new l.Z(e.longitude,e.latitude,t.longitude,t.latitude)}M=g(M,B),D=y(B,M,D);const L=this._tmsResource.getDerivedResource({url:"{z}/{x}/{reverseY}."+S});v.resolve({url:L,tilingScheme:B,rectangle:M,tileWidth:O,tileHeight:I,minimumLevel:D,maximumLevel:P,tileDiscardPolicy:x.tileDiscardPolicy,credit:x.credit})},Z.prototype._metadataFailure=function(e){const t=this._options,i=(0,o.Z)(t.fileExtension,"png"),n=(0,o.Z)(t.tileWidth,256),r=(0,o.Z)(t.tileHeight,256),a=t.maximumLevel,c=(0,s.Z)(t.tilingScheme)?t.tilingScheme:new p.Z({ellipsoid:t.ellipsoid});let u=(0,o.Z)(t.rectangle,c.rectangle);u=g(u,c);const l=y(c,u,t.maximumLevel),h=this._tmsResource.getDerivedResource({url:"{z}/{x}/{reverseY}."+i});this._deferred.resolve({url:h,tilingScheme:c,rectangle:u,tileWidth:n,tileHeight:r,minimumLevel:l,maximumLevel:a,tileDiscardPolicy:t.tileDiscardPolicy,credit:t.credit})};const b=Z},392382:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(357299),r=i(406144),o=i(726422);function s(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),n.Z.typeOf.object("options.tile",e.tile),this._class=e.class;const t=e.tile;this._properties=t.properties,this._extensions=t.extensions,this._extras=t.extras}Object.defineProperties(s.prototype,{class:{get:function(){return this._class}},extras:{get:function(){return this._extras}},extensions:{get:function(){return this._extensions}}}),s.prototype.hasProperty=function(e){return o.Z.hasProperty(e,this._properties,this._class)},s.prototype.hasPropertyBySemantic=function(e){return o.Z.hasPropertyBySemantic(e,this._properties,this._class)},s.prototype.getPropertyIds=function(e){return o.Z.getPropertyIds(this._properties,this._class,e)},s.prototype.getProperty=function(e){return o.Z.getProperty(e,this._properties,this._class)},s.prototype.setProperty=function(e,t){return o.Z.setProperty(e,t,this._properties,this._class)},s.prototype.getPropertyBySemantic=function(e){return o.Z.getPropertyBySemantic(e,this._properties,this._class)},s.prototype.setPropertyBySemantic=function(e,t){return o.Z.setPropertyBySemantic(e,t,this._properties,this._class)}},950412:(e,t,i)=>{"use strict";i.d(t,{Z:()=>v});var n=i(360791),r=i(101985),o=i(919382),s=i(357299),a=i(182934),c=i(952254),u=i(165373),l=i(583917),h=i(362017),d=i(126874),f=i(578721),p=i(939800);const m=new o.Z,_=new o.Z,Z=new o.Z,g=new o.Z;function y(e,t,i){i=o.Z.cross(e,t,i);const n=o.Z.magnitude(i);return o.Z.multiplyByScalar(i,h.Z.EPSILON7/n,i)}function b(e,t){const i=o.Z.normalize(e,g);return y(e,o.Z.equalsEpsilon(i,o.Z.UNIT_X,h.Z.EPSILON6)?o.Z.UNIT_Y:o.Z.UNIT_X,t)}function A(e){let t=u.Z.getColumn(e,0,m),i=u.Z.getColumn(e,1,_),n=u.Z.getColumn(e,2,Z);const r=o.Z.equals(t,o.Z.ZERO),s=o.Z.equals(i,o.Z.ZERO),a=o.Z.equals(n,o.Z.ZERO);return r||s||a?r&&s&&a?(e[0]=h.Z.EPSILON7,e[4]=h.Z.EPSILON7,e[8]=h.Z.EPSILON7,e):(!r||s||a?r||!s||a?r||s||!a?r?s?a||(t=b(n,t),i=y(n,t,i)):(t=b(i,t),n=y(i,t,n)):(i=b(t,i),n=y(i,t,n)):n=y(i,t,n):i=y(t,n,i):t=y(i,n,t),u.Z.setColumn(e,0,t,e),u.Z.setColumn(e,1,i,e),u.Z.setColumn(e,2,n,e),e):e}function w(e,t){t=A(t),this._orientedBoundingBox=new d.Z(e,t),this._boundingSphere=n.Z.fromOrientedBoundingBox(this._orientedBoundingBox)}Object.defineProperties(w.prototype,{boundingVolume:{get:function(){return this._orientedBoundingBox}},boundingSphere:{get:function(){return this._boundingSphere}}}),w.prototype.distanceToCamera=function(e){return s.Z.defined("frameState",e),Math.sqrt(this._orientedBoundingBox.distanceSquaredTo(e.camera.positionWC))},w.prototype.intersectPlane=function(e){return s.Z.defined("plane",e),this._orientedBoundingBox.intersectPlane(e)},w.prototype.update=function(e,t){o.Z.clone(e,this._orientedBoundingBox.center),t=A(t),u.Z.clone(t,this._orientedBoundingBox.halfAxes),n.Z.fromOrientedBoundingBox(this._orientedBoundingBox,this._boundingSphere)},w.prototype.createDebugVolume=function(e){s.Z.defined("color",e);const t=new r.Z({minimum:new o.Z(-1,-1,-1),maximum:new o.Z(1,1,1)}),i=l.Z.fromRotationTranslation(this.boundingVolume.halfAxes,this.boundingVolume.center),n=new c.Z({geometry:t,id:"outline",modelMatrix:i,attributes:{color:a.Z.fromColor(e)}});return new p.Z({geometryInstances:n,appearance:new f.Z({translucent:!1,flat:!0}),asynchronous:!1})};const v=w},554642:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(426468);function r(){this.head=void 0,this.tail=void 0,this.count=0,this._lastBeforeStartOfFrame=void 0}function o(e,t){const i=t.replacementPrevious,n=t.replacementNext;t===e._lastBeforeStartOfFrame&&(e._lastBeforeStartOfFrame=n),t===e.head?e.head=n:i.replacementNext=n,t===e.tail?e.tail=i:n.replacementPrevious=i,t.replacementPrevious=void 0,t.replacementNext=void 0,--e.count}r.prototype.markStartOfRenderFrame=function(){this._lastBeforeStartOfFrame=this.head},r.prototype.trimTiles=function(e){let t=this.tail,i=!0;for(;i&&(0,n.Z)(this._lastBeforeStartOfFrame)&&this.count>e&&(0,n.Z)(t);){i=t!==this._lastBeforeStartOfFrame;const e=t.replacementPrevious;t.eligibleForUnloading&&(t.freeResources(),o(this,t)),t=e}},r.prototype.markTileRendered=function(e){const t=this.head;if(t!==e){if(++this.count,!(0,n.Z)(t))return e.replacementPrevious=void 0,e.replacementNext=void 0,this.head=e,void(this.tail=e);((0,n.Z)(e.replacementPrevious)||(0,n.Z)(e.replacementNext))&&o(this,e),e.replacementPrevious=void 0,e.replacementNext=t,t.replacementPrevious=e,this.head=e}else e===this._lastBeforeStartOfFrame&&(this._lastBeforeStartOfFrame=e.replacementNext)};const s=r},970941:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});const n={NONE:0,CULLED:1,RENDERED:2,REFINED:3,RENDERED_AND_KICKED:6,REFINED_AND_KICKED:7,CULLED_BUT_NEEDED:9,wasKicked:function(e){return e>=n.RENDERED_AND_KICKED},originalResult:function(e){return 3&e},kick:function(e){return 4|e}},r=n},363331:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({START:0,LOADING:1,READY:2,UPSAMPLED_ONLY:3})},865356:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(54879),r=i(527758);function o(e,t,i,n){this._tileset=e,this._tile=t,this._resource=i,this._readyPromise=r.Z.defer(),this.featurePropertiesDirty=!1,this._groupMetadata=void 0,function(e,t){e._tileset.loadTileset(e._resource,t,e._tile),e._readyPromise.resolve(e)}(this,n)}Object.defineProperties(o.prototype,{featuresLength:{get:function(){return 0}},pointsLength:{get:function(){return 0}},trianglesLength:{get:function(){return 0}},geometryByteLength:{get:function(){return 0}},texturesByteLength:{get:function(){return 0}},batchTableByteLength:{get:function(){return 0}},innerContents:{get:function(){}},readyPromise:{get:function(){return this._readyPromise.promise}},tileset:{get:function(){return this._tileset}},tile:{get:function(){return this._tile}},url:{get:function(){return this._resource.getUrlComponent(!0)}},batchTable:{get:function(){}},groupMetadata:{get:function(){return this._groupMetadata},set:function(e){this._groupMetadata=e}}}),o.prototype.hasProperty=function(e,t){return!1},o.prototype.getFeature=function(e){},o.prototype.applyDebugSettings=function(e,t){},o.prototype.applyStyle=function(e){},o.prototype.update=function(e,t){},o.prototype.isDestroyed=function(){return!1},o.prototype.destroy=function(){return(0,n.Z)(this)};const s=o},824589:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(357299),r=i(406144),o=i(426468),s=i(726422);function a(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).tileset;n.Z.typeOf.object("options.tileset",t);const i=(0,o.Z)(t.properties)?t.properties:{};this._class=e.class,this._properties=i,this._extras=t.extras,this._extensions=t.extensions}Object.defineProperties(a.prototype,{class:{get:function(){return this._class}},extras:{get:function(){return this._extras}},extensions:{get:function(){return this._extensions}}}),a.prototype.hasProperty=function(e){return s.Z.hasProperty(e,this._properties,this._class)},a.prototype.hasPropertyBySemantic=function(e){return s.Z.hasPropertyBySemantic(e,this._properties,this._class)},a.prototype.getPropertyIds=function(e){return s.Z.getPropertyIds(this._properties,this._class,e)},a.prototype.getProperty=function(e){return s.Z.getProperty(e,this._properties,this._class)},a.prototype.setProperty=function(e,t){return s.Z.setProperty(e,t,this._properties,this._class)},a.prototype.getPropertyBySemantic=function(e){return s.Z.getPropertyBySemantic(e,this._properties,this._class)},a.prototype.setPropertyBySemantic=function(e,t){return s.Z.setPropertyBySemantic(e,t,this._properties,this._class)};const c=a},952296:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(357299),r=i(406144),o=i(426468),s=i(446938),a=i(40080),c=i(261045),u=i(690220);function l(e){e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),n.Z.typeOf.object("options.clock",e.clock),n.Z.typeOf.object("options.times",e.times),n.Z.typeOf.func("options.requestImageFunction",e.requestImageFunction),n.Z.typeOf.func("options.reloadFunction",e.reloadFunction),this._tileCache={},this._tilesRequestedForInterval=[];const t=this._clock=e.clock;this._times=e.times,this._requestImageFunction=e.requestImageFunction,this._reloadFunction=e.reloadFunction,this._currentIntervalIndex=-1,t.onTick.addEventListener(this._clockOnTick,this),this._clockOnTick(t)}function h(e,t,i){return e+"-"+t+"-"+i}function d(e){const t=e._times;if(!(0,o.Z)(t))return;const i=e._clock,n=i.currentTime,r=i.canAnimate&&i.shouldAnimate,s=i.multiplier;if(!r&&0!==s)return;let c,u=t.indexOf(n);if(u<0)return;const l=t.get(u);return s>0?(c=a.Z.secondsDifference(l.stop,n),++u):(c=a.Z.secondsDifference(l.start,n),--u),c/=s,u>=0&&c<=5?t.get(u):void 0}function f(e,t,i){const n=e._times.indexOf(i.start),r=e._tileCache;let s=r[n];(0,o.Z)(s)||(s=r[n]={});const a=t.key;if((0,o.Z)(s[a]))return!0;const l=function(e){const t=e.split("-");if(3===t.length)return{x:Number(t[0]),y:Number(t[1]),level:Number(t[2])}}(a),h=new c.Z({throttle:!1,throttleByServer:!0,type:u.Z.IMAGERY,priorityFunction:t.priorityFunction}),d=e._requestImageFunction(l.x,l.y,l.level,h,i);return!!(0,o.Z)(d)&&(s[a]={promise:d,request:h},!0)}Object.defineProperties(l.prototype,{clock:{get:function(){return this._clock},set:function(e){if(!(0,o.Z)(e))throw new s.Z("value is required.");this._clock!==e&&(this._clock=e,this._clockOnTick(e),this._reloadFunction())}},times:{get:function(){return this._times},set:function(e){if(!(0,o.Z)(e))throw new s.Z("value is required.");this._times!==e&&(this._times=e,this._clockOnTick(this._clock),this._reloadFunction())}},currentInterval:{get:function(){return this._times.get(this._currentIntervalIndex)}}}),l.prototype.getFromCache=function(e,t,i,n){const r=h(e,t,i);let s;const a=this._tileCache[this._currentIntervalIndex];if((0,o.Z)(a)&&(0,o.Z)(a[r])){const e=a[r];s=e.promise.otherwise((function(t){throw n.state=e.request.state,t})),delete a[r]}return s},l.prototype.checkApproachingInterval=function(e,t,i,n){const r=h(e,t,i),s=this._tilesRequestedForInterval,a=d(this),c={key:r,priorityFunction:n.priorityFunction};(0,o.Z)(a)&&f(this,c,a)||s.push(c),s.length>=512&&s.splice(0,256)},l.prototype._clockOnTick=function(e){const t=e.currentTime,i=this._times.indexOf(t),n=this._currentIntervalIndex;if(i!==n){const e=this._tileCache[n];for(const t in e)e.hasOwnProperty(t)&&e[t].request.cancel();return delete this._tileCache[n],this._tilesRequestedForInterval=[],this._currentIntervalIndex=i,void this._reloadFunction()}const r=d(this);if((0,o.Z)(r)){const e=this._tilesRequestedForInterval;let t=!0;for(;t&&0!==e.length;){const i=e.pop();t=f(this,i,r),t||e.push(i)}}};const p=l},776585:(e,t,i)=>{"use strict";i.d(t,{Z:()=>M});var n=i(170099),r=i(357299),o=i(307260),s=i(406144),a=i(426468),c=i(54879),u=i(197685),l=i(485083),h=i(40080),d=i(362017),f=i(583917),p=i(795788),m=i(527758),_=i(586949),Z=i(878186),g=i(332270),y=i(715696),b=i(506678),A=i(556198);function w(e){e=(0,s.Z)(e,s.Z.EMPTY_OBJECT),r.Z.typeOf.object("options.clock",e.clock),r.Z.typeOf.object("options.intervals",e.intervals),this.show=(0,s.Z)(e.show,!0),this.modelMatrix=f.Z.clone((0,s.Z)(e.modelMatrix,f.Z.IDENTITY)),this.shadows=(0,s.Z)(e.shadows,A.Z.ENABLED),this.maximumMemoryUsage=(0,s.Z)(e.maximumMemoryUsage,256),this.shading=new y.Z(e.shading),this.style=e.style,this.frameFailed=new u.Z,this.frameChanged=new u.Z,this._clock=e.clock,this._intervals=e.intervals,this._clippingPlanes=void 0,this.clippingPlanes=e.clippingPlanes,this._pointCloudEyeDomeLighting=new g.Z,this._loadTimestamp=void 0,this._clippingPlanesState=0,this._styleDirty=!1,this._pickId=void 0,this._totalMemoryUsageInBytes=0,this._frames=[],this._previousInterval=void 0,this._nextInterval=void 0,this._lastRenderedFrame=void 0,this._clockMultiplier=0,this._readyPromise=m.Z.defer(),this._runningSum=0,this._runningLength=0,this._runningIndex=0,this._runningSamples=(0,n.Z)(new Array(5),0),this._runningAverage=0}function v(e){return"uniform vec4 czm_pickColor;\n"+e}function T(){return"czm_pickColor"}Object.defineProperties(w.prototype,{clippingPlanes:{get:function(){return this._clippingPlanes},set:function(e){_.Z.setOwner(e,this,"_clippingPlanes")}},totalMemoryUsageInBytes:{get:function(){return this._totalMemoryUsageInBytes}},boundingSphere:{get:function(){if((0,a.Z)(this._lastRenderedFrame))return this._lastRenderedFrame.pointCloud.boundingSphere}},readyPromise:{get:function(){return this._readyPromise.promise}}}),w.prototype.makeStyleDirty=function(){this._styleDirty=!0},w.prototype._getAverageLoadTime=function(){return 0===this._runningLength?.05:this._runningAverage};const C=new h.Z;function E(e){const t=e._clock,i=t.canAnimate&&t.shouldAnimate,n=t.multiplier;return i?n:0}function x(e,t){return e._intervals.indexOf(t.start)}const S=new f.Z,O=new y.Z;function I(e,t,i,n){const r=(0,s.Z)(e.shading,O),o=t.pointCloud,c=(0,s.Z)(t.transform,f.Z.IDENTITY);o.modelMatrix=f.Z.multiplyTransformation(e.modelMatrix,c,S),o.style=e.style,o.time=i.timeSinceLoad,o.shadows=e.shadows,o.clippingPlanes=e._clippingPlanes,o.isClipped=i.isClipped,o.attenuation=r.attenuation,o.backFaceCulling=r.backFaceCulling,o.normalShading=r.normalShading,o.geometricError=function(e,t){const i=e.shading;return(0,a.Z)(i)&&(0,a.Z)(i.baseResolution)?i.baseResolution:(0,a.Z)(t.boundingSphere)?d.Z.cbrt(t.boundingSphere.volume()/t.pointsLength):0}(e,o),o.geometricErrorScale=r.geometricErrorScale,o.maximumAttenuation=function(e){const t=e.shading;return(0,a.Z)(t)&&(0,a.Z)(t.maximumAttenuation)?t.maximumAttenuation:10}(e),o.update(n),t.touchedFrameNumber=n.frameNumber}function D(e,t,i,n){!function(e,t,i,n){t.touchedFrameNumber<n.frameNumber-1&&(t.sequential=!1);const r=t.pointCloud;if((0,a.Z)(r)&&!t.ready){const o=n.commandList,s=o.length;I(e,t,i,n),r.ready&&(t.ready=!0,e._totalMemoryUsageInBytes+=r.geometryByteLength,o.length=s,t.sequential)&&function(e,t){e._runningSum+=t,e._runningSum-=e._runningSamples[e._runningIndex],e._runningSamples[e._runningIndex]=t,e._runningLength=Math.min(e._runningLength+1,e._runningSamples.length),e._runningIndex=(e._runningIndex+1)%e._runningSamples.length,e._runningAverage=e._runningSum/e._runningLength}(e,((0,l.Z)()-t.timestamp)/1e3)}t.touchedFrameNumber=n.frameNumber}(e,function(e,t,i){const n=x(e,t),r=e._frames;let s=r[n];if(!(0,a.Z)(s)){const c=t.data.transform,u=(0,a.Z)(c)?f.Z.fromArray(c):void 0,h=t.data.uri;s={pointCloud:void 0,transform:u,timestamp:(0,l.Z)(),sequential:!0,ready:!1,touchedFrameNumber:i.frameNumber},r[n]=s,p.Z.fetchArrayBuffer({url:h}).then((function(t){var i;return s.pointCloud=new Z.Z({arrayBuffer:t,cull:!0,fragmentShaderLoaded:v,uniformMapLoaded:(i=e,function(e){return(0,o.Z)(e,{czm_pickColor:function(){return i._pickId.color}})}),pickIdLoaded:T}),s.pointCloud.readyPromise})).otherwise(function(e,t){return function(i){const n=(0,a.Z)(i.message)?i.message:i.toString();e.frameFailed.numberOfListeners>0?e.frameFailed.raiseEvent({uri:t,message:n}):(console.log("A frame failed to load: "+t),console.log("Error: "+n))}}(e,h))}return s}(e,t,n),i,n)}function P(e,t){const i=e._frames,n=i.length;for(let r=0;r<n;++r){const n=i[r];if((0,a.Z)(n)&&(!(0,a.Z)(t)||t(n))){const t=n.pointCloud;n.ready&&(e._totalMemoryUsageInBytes-=t.geometryByteLength),(0,a.Z)(t)&&t.destroy(),n===e._lastRenderedFrame&&(e._lastRenderedFrame=void 0),i[r]=void 0}}}function R(e,t,i,n,r){return!!(0,a.Z)(i)&&(!!i.ready||(D(e,t,n,r),i.ready))}const B={timeSinceLoad:0,isClipped:!1,clippingPlanesDirty:!1};w.prototype.update=function(e){if(e.mode===b.Z.MORPHING)return;if(!this.show)return;(0,a.Z)(this._pickId)||(this._pickId=e.context.createPickId({primitive:this})),(0,a.Z)(this._loadTimestamp)||(this._loadTimestamp=h.Z.clone(e.time));const t=Math.max(1e3*h.Z.secondsDifference(e.time,this._loadTimestamp),0),i=this._clippingPlanes;let n=0,r=!1;const o=(0,a.Z)(i)&&i.enabled;o&&(i.update(e),n=i.clippingPlanesState),this._clippingPlanesState!==n&&(this._clippingPlanesState=n,r=!0);const s=this._styleDirty;this._styleDirty=!1,(r||s)&&function(e,t,i){const n=e._frames,r=n.length;for(let e=0;e<r;++e){const r=n[e];(0,a.Z)(r)&&(0,a.Z)(r.pointCloud)&&(r.pointCloud.clippingPlanesDirty=t,r.pointCloud.styleDirty=i)}}(this,r,s),B.timeSinceLoad=t,B.isClipped=o;const c=this.shading,u=this._pointCloudEyeDomeLighting,l=e.commandList,d=l.length;let f=this._previousInterval,p=this._nextInterval;const m=function(e){const t=e._intervals,i=e._clock.currentTime,n=t.indexOf(i);return t.get(n)}(this);if(!(0,a.Z)(m))return;let _=!1;const Z=E(this),g=0===Z;Z!==this._clockMultiplier&&(_=!0,this._clockMultiplier=Z),(0,a.Z)(f)&&!g||(f=m),(!(0,a.Z)(p)||_||function(e,t,i){const n=E(e),r=x(e,t),o=x(e,i);return n>=0?r>=o:r<=o}(this,m,p))&&(p=function(e,t){const i=e._intervals,n=e._clock,r=E(e);if(0===r)return;const o=e._getAverageLoadTime(),s=h.Z.addSeconds(n.currentTime,o*r,C);let a=i.indexOf(s);return a===x(e,t)&&(r>=0?++a:--a),i.get(a)}(this,m)),f=function(e,t,i,n,r){let o,s,a;const c=e._intervals,u=e._frames,l=x(e,i),h=x(e,t);if(l>=h){for(o=l;o>=h;--o)if(s=c.get(o),a=u[o],R(e,s,a,n,r))return s}else for(o=l;o<=h;++o)if(s=c.get(o),a=u[o],R(e,s,a,n,r))return s;return t}(this,f,m,B,e);let y=function(e,t){const i=x(e,t),n=e._frames[i];if((0,a.Z)(n)&&n.ready)return n}(this,f);(0,a.Z)(y)||(D(this,f,B,e),y=this._lastRenderedFrame),(0,a.Z)(y)&&I(this,y,B,e),(0,a.Z)(p)&&D(this,p,B,e);const A=this;(0,a.Z)(y)&&!(0,a.Z)(this._lastRenderedFrame)&&e.afterRender.push((function(){A._readyPromise.resolve(A)})),(0,a.Z)(y)&&y!==this._lastRenderedFrame&&A.frameChanged.numberOfListeners>0&&e.afterRender.push((function(){A.frameChanged.raiseEvent(A)})),this._previousInterval=f,this._nextInterval=p,this._lastRenderedFrame=y,this._totalMemoryUsageInBytes>1024*this.maximumMemoryUsage*1024&&P(this,function(e){return function(t){return t.touchedFrameNumber<e.frameNumber}}(e));const w=l.length-d;(0,a.Z)(c)&&c.attenuation&&c.eyeDomeLighting&&w>0&&u.update(e,d,c,this.boundingSphere)},w.prototype.isDestroyed=function(){return!1},w.prototype.destroy=function(){return P(this),this._clippingPlanes=this._clippingPlanes&&this._clippingPlanes.destroy(),this._pickId=this._pickId&&this._pickId.destroy(),(0,c.Z)(this)};const M=w},257698:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});const n={REINHARD:0,MODIFIED_REINHARD:1,FILMIC:2,ACES:3,validate:function(e){return e===n.REINHARD||e===n.MODIFIED_REINHARD||e===n.FILMIC||e===n.ACES}},r=Object.freeze(n)},319685:(e,t,i)=>{"use strict";i.d(t,{Z:()=>C});var n=i(152124),r=i(545125),o=i(426468),s=i(54879),a=i(100883),c=i(20209),u=i(247913),l=i(273642),h=i(842649),d=i(687931),f=i(364232),p=i(270013),m=i(279427),_=i(283044),Z=i(453619),g=i(751297),y=i(451356),b=i(42973),A=i(786861);function w(e){this._drawClassificationFBO=new l.Z({createDepthAttachments:!1}),this._accumulationFBO=new l.Z({createDepthAttachments:!1}),this._packFBO=new l.Z,this._opaqueDepthStencilTexture=void 0,this._textureToComposite=void 0,this._translucentDepthStencilTexture=void 0,this._packDepthCommand=void 0,this._accumulateCommand=void 0,this._compositeCommand=void 0,this._copyCommand=void 0,this._clearColorCommand=new c.Z({color:new r.Z(0,0,0,0),owner:this}),this._clearDepthStencilCommand=new c.Z({depth:1,stencil:0,owner:this}),this._supported=e.depthTexture,this._viewport=new n.Z,this._rsDepth=void 0,this._rsAccumulate=void 0,this._rsComp=void 0,this._useScissorTest=void 0,this._scissorRectangle=void 0,this._hasTranslucentDepth=!1,this._frustumsDrawn=0}function v(e){e._textureToComposite=void 0,e._translucentDepthStencilTexture=e._translucentDepthStencilTexture&&!e._translucentDepthStencilTexture.isDestroyed()&&e._translucentDepthStencilTexture.destroy()}function T(e){e._drawClassificationFBO.destroy(),e._accumulationFBO.destroy(),e._packFBO.destroy()}Object.defineProperties(w.prototype,{hasTranslucentDepth:{get:function(){return this._hasTranslucentDepth}}}),w.prototype.executeTranslucentCommands=function(e,t,i,r,s){const c=r.length;let l,h;const w=e.frameState.useLogDepth,C=e.context,E=i.framebuffer;for(h=0;h<c;++h)if(l=r[h],l=w?l.derivedCommands.logDepth.command:l,l.depthForTranslucentClassification){this._hasTranslucentDepth=!0;break}if(this._hasTranslucentDepth){for(function(e,t,i,r){if(!e.isSupported())return;e._opaqueDepthStencilTexture=r.depthStencilTexture;const s=e._opaqueDepthStencilTexture.width,c=e._opaqueDepthStencilTexture.height;let l,h;if(e._drawClassificationFBO.isDirty(s,c)&&(function(e,t,i,n){v(e),e._translucentDepthStencilTexture=new _.Z({context:t,width:i,height:n,pixelFormat:a.Z.DEPTH_STENCIL,pixelDatatype:d.Z.UNSIGNED_INT_24_8,sampler:p.Z.NEAREST})}(e,t,s,c),function(e,t,i,n){T(e),e._drawClassificationFBO.setDepthStencilTexture(e._translucentDepthStencilTexture),e._drawClassificationFBO.update(t,i,n),e._accumulationFBO.setDepthStencilTexture(e._translucentDepthStencilTexture),e._accumulationFBO.update(t,i,n),e._packFBO.update(t,i,n)}(e,t,s,c)),(0,o.Z)(e._packDepthCommand)||(l=new m.Z({sources:[Z.Z]}),h={u_opaqueDepthTexture:function(){return e._opaqueDepthStencilTexture},u_translucentDepthTexture:function(){return e._translucentDepthStencilTexture}},e._packDepthCommand=t.createViewportQuadCommand(l,{uniformMap:h,owner:e})),!(0,o.Z)(e._compositeCommand)){l=new m.Z({sources:[g.Z]}),h={colorTexture:function(){return e._textureToComposite}},e._compositeCommand=t.createViewportQuadCommand(l,{uniformMap:h,owner:e});const i=e._compositeCommand,n=i.shaderProgram,r=t.shaderCache.createDerivedShaderProgram(n,"pick",{vertexShaderSource:n.vertexShaderSource,fragmentShaderSource:new m.Z({sources:l.sources,defines:["PICK"]}),attributeLocations:n._attributeLocations}),o=u.Z.shallowClone(i);o.shaderProgram=r,i.derivedCommands.pick=o}(0,o.Z)(e._copyCommand)||(l=new m.Z({sources:[g.Z]}),h={colorTexture:function(){return e._drawClassificationFBO.getColorTexture()}},e._copyCommand=t.createViewportQuadCommand(l,{uniformMap:h,owner:e})),(0,o.Z)(e._accumulateCommand)||(l=new m.Z({sources:[g.Z]}),h={colorTexture:function(){return e._drawClassificationFBO.getColorTexture()}},e._accumulateCommand=t.createViewportQuadCommand(l,{uniformMap:h,owner:e})),e._viewport.width=s,e._viewport.height=c;const w=!n.Z.equals(e._viewport,i.viewport);let C=w!==e._useScissorTest;e._useScissorTest=w,n.Z.equals(e._scissorRectangle,i.viewport)||(e._scissorRectangle=n.Z.clone(i.viewport,e._scissorRectangle),C=!0),(0,o.Z)(e._rsDepth)&&n.Z.equals(e._viewport,e._rsDepth.viewport)&&!C||(e._rsDepth=f.Z.fromCache({viewport:e._viewport,scissorTest:{enabled:e._useScissorTest,rectangle:e._scissorRectangle}})),(0,o.Z)(e._packDepthCommand)&&(e._packDepthCommand.renderState=e._rsDepth),(0,o.Z)(e._rsAccumulate)&&n.Z.equals(e._viewport,e._rsAccumulate.viewport)&&!C||(e._rsAccumulate=f.Z.fromCache({viewport:e._viewport,scissorTest:{enabled:e._useScissorTest,rectangle:e._scissorRectangle},stencilTest:{enabled:!0,frontFunction:A.Z.EQUAL,reference:b.Z.CESIUM_3D_TILE_MASK}})),(0,o.Z)(e._accumulateCommand)&&(e._accumulateCommand.renderState=e._rsAccumulate),(0,o.Z)(e._rsComp)&&n.Z.equals(e._viewport,e._rsComp.viewport)&&!C||(e._rsComp=f.Z.fromCache({viewport:e._viewport,scissorTest:{enabled:e._useScissorTest,rectangle:e._scissorRectangle},blending:y.Z.ALPHA_BLEND})),(0,o.Z)(e._compositeCommand)&&(e._compositeCommand.renderState=e._rsComp,e._compositeCommand.derivedCommands.pick.renderState=e._rsComp)}(this,C,i,s),i.framebuffer=this._drawClassificationFBO.framebuffer,this._clearDepthStencilCommand.execute(C,i),h=0;h<c;++h)l=r[h],l=w?l.derivedCommands.logDepth.command:l,l.depthForTranslucentClassification&&t(l.derivedCommands.depth.depthOnlyCommand,e,C,i);this._frustumsDrawn+=this._hasTranslucentDepth?1:0,this._hasTranslucentDepth&&(i.framebuffer=this._packFBO.framebuffer,this._packDepthCommand.execute(C,i)),i.framebuffer=E}},w.prototype.executeClassificationCommands=function(e,t,i,n){if(!this._hasTranslucentDepth)return;const r=e.context,o=r.uniformState,s=i.framebuffer;2===this._frustumsDrawn&&(i.framebuffer=this._accumulationFBO.framebuffer,this._copyCommand.execute(r,i)),i.framebuffer=this._drawClassificationFBO.framebuffer,this._frustumsDrawn>1&&this._clearColorCommand.execute(r,i),o.updatePass(h.Z.CESIUM_3D_TILE_CLASSIFICATION);const a=o.globeDepthTexture;o.globeDepthTexture=this._packFBO.getColorTexture();const c=n.commands[h.Z.CESIUM_3D_TILE_CLASSIFICATION],u=n.indices[h.Z.CESIUM_3D_TILE_CLASSIFICATION];for(let n=0;n<u;++n)t(c[n],e,r,i);o.globeDepthTexture=a,i.framebuffer=s,1!==this._frustumsDrawn&&(i.framebuffer=this._accumulationFBO.framebuffer,this._accumulateCommand.execute(r,i),i.framebuffer=s)},w.prototype.execute=function(e,t){this._hasTranslucentDepth&&(1===this._frustumsDrawn?this._textureToComposite=this._drawClassificationFBO.getColorTexture():this._textureToComposite=this._accumulationFBO.getColorTexture(),(e.frameState.passes.pick?this._compositeCommand.derivedCommands.pick:this._compositeCommand).execute(e.context,t),function(e,t,i){if(!e._hasTranslucentDepth)return;const n=i.framebuffer;i.framebuffer=e._drawClassificationFBO.framebuffer,e._clearColorCommand.execute(t._context,i),i.framebuffer=n,e._frustumsDrawn>1&&(i.framebuffer=e._accumulationFBO.framebuffer,e._clearColorCommand.execute(t._context,i)),e._hasTranslucentDepth=!1,e._frustumsDrawn=0}(this,e,t))},w.prototype.isSupported=function(){return this._supported},w.prototype.isDestroyed=function(){return!1},w.prototype.destroy=function(){return v(this),T(this),(0,o.Z)(this._compositeCommand)&&(this._compositeCommand.shaderProgram=this._compositeCommand.shaderProgram&&this._compositeCommand.shaderProgram.destroy()),(0,o.Z)(this._packDepthCommand)&&(this._packDepthCommand.shaderProgram=this._packDepthCommand.shaderProgram&&this._packDepthCommand.shaderProgram.destroy()),(0,s.Z)(this)};const C=w},399364:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});var n=i(556592),r=i(406144),o=i(426468),s=i(446938),a=i(696047),c=i(485083),u=i(202712),l=i(860303);function h(e,t,i,r,o,s,a,c,u,l){this._tweens=e,this._tweenjs=t,this._startObject=(0,n.Z)(i),this._stopObject=(0,n.Z)(r),this._duration=o,this._delay=s,this._easingFunction=a,this._update=c,this._complete=u,this.cancel=l,this.needsStart=!0}function d(){this._tweens=[]}Object.defineProperties(h.prototype,{startObject:{get:function(){return this._startObject}},stopObject:{get:function(){return this._stopObject}},duration:{get:function(){return this._duration}},delay:{get:function(){return this._delay}},easingFunction:{get:function(){return this._easingFunction}},update:{get:function(){return this._update}},complete:{get:function(){return this._complete}},tweenjs:{get:function(){return this._tweenjs}}}),h.prototype.cancelTween=function(){this._tweens.remove(this)},Object.defineProperties(d.prototype,{length:{get:function(){return this._tweens.length}}}),d.prototype.add=function(e){if(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT),!(0,o.Z)(e.startObject)||!(0,o.Z)(e.stopObject))throw new s.Z("options.startObject and options.stopObject are required.");if(!(0,o.Z)(e.duration)||e.duration<0)throw new s.Z("options.duration is required and must be positive.");if(0===e.duration)return(0,o.Z)(e.complete)&&e.complete(),new h(this);const t=e.duration/u.Z.SECONDS_PER_MILLISECOND,i=(0,r.Z)(e.delay,0),c=i/u.Z.SECONDS_PER_MILLISECOND,d=(0,r.Z)(e.easingFunction,a.Z.LINEAR_NONE),f=e.startObject,p=new l.Z.Tween(f);p.to((0,n.Z)(e.stopObject),t),p.delay(c),p.easing(d),(0,o.Z)(e.update)&&p.onUpdate((function(){e.update(f)})),p.onComplete((0,r.Z)(e.complete,null)),p.repeat((0,r.Z)(e._repeat,0));const m=new h(this,p,e.startObject,e.stopObject,e.duration,i,d,e.update,e.complete,e.cancel);return this._tweens.push(m),m},d.prototype.addProperty=function(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).object,i=e.property,n=e.startValue,a=e.stopValue;if(!(0,o.Z)(t)||!(0,o.Z)(e.property))throw new s.Z("options.object and options.property are required.");if(!(0,o.Z)(t[i]))throw new s.Z("options.object must have the specified property.");if(!(0,o.Z)(n)||!(0,o.Z)(a))throw new s.Z("options.startValue and options.stopValue are required.");return this.add({startObject:{value:n},stopObject:{value:a},duration:(0,r.Z)(e.duration,3),delay:e.delay,easingFunction:e.easingFunction,update:function(e){t[i]=e.value},complete:e.complete,cancel:e.cancel,_repeat:e._repeat})},d.prototype.addAlpha=function(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).material;if(!(0,o.Z)(t))throw new s.Z("options.material is required.");const i=[];for(const e in t.uniforms)t.uniforms.hasOwnProperty(e)&&(0,o.Z)(t.uniforms[e])&&(0,o.Z)(t.uniforms[e].alpha)&&i.push(e);if(0===i.length)throw new s.Z("material has no properties with alpha components.");return this.add({startObject:{alpha:(0,r.Z)(e.startValue,0)},stopObject:{alpha:(0,r.Z)(e.stopValue,1)},duration:(0,r.Z)(e.duration,3),delay:e.delay,easingFunction:e.easingFunction,update:function(e){const n=i.length;for(let r=0;r<n;++r)t.uniforms[i[r]].alpha=e.alpha},complete:e.complete,cancel:e.cancel})},d.prototype.addOffsetIncrement=function(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).material;if(!(0,o.Z)(t))throw new s.Z("material is required.");if(!(0,o.Z)(t.uniforms.offset))throw new s.Z("material.uniforms must have an offset property.");const i=t.uniforms;return this.addProperty({object:i,property:"offset",startValue:i.offset,stopValue:i.offset+1,duration:e.duration,delay:e.delay,easingFunction:e.easingFunction,update:e.update,cancel:e.cancel,_repeat:1/0})},d.prototype.remove=function(e){if(!(0,o.Z)(e))return!1;const t=this._tweens.indexOf(e);return-1!==t&&(e.tweenjs.stop(),(0,o.Z)(e.cancel)&&e.cancel(),this._tweens.splice(t,1),!0)},d.prototype.removeAll=function(){const e=this._tweens;for(let t=0;t<e.length;++t){const i=e[t];i.tweenjs.stop(),(0,o.Z)(i.cancel)&&i.cancel()}e.length=0},d.prototype.contains=function(e){return(0,o.Z)(e)&&-1!==this._tweens.indexOf(e)},d.prototype.get=function(e){if(!(0,o.Z)(e))throw new s.Z("index is required.");return this._tweens[e]},d.prototype.update=function(e){const t=this._tweens;let i=0;for(e=(0,o.Z)(e)?e/u.Z.SECONDS_PER_MILLISECOND:(0,c.Z)();i<t.length;){const n=t[i],r=n.tweenjs;n.needsStart?(n.needsStart=!1,r.start(e)):r.update(e)?i++:(r.stop(),t.splice(i,1))}};const f=d},193866:(e,t,i)=>{"use strict";i.d(t,{Z:()=>F});var n=i(337968),r=i(919382),o=i(698907),s=i(307260),a=i(846748),c=i(406144),u=i(426468),l=i(446938),h=i(197685),d=i(921099),f=i(362017),p=i(523501),m=i(795788),_=i(310526),Z=i(527758),g=i(616007);const y=/{[^}]+}/g,b={x:function(e,t,i,n){return I(e,"{x}",t)},y:function(e,t,i,n){return I(e,"{y}",i)},z:function(e,t,i,n){return I(e,"{z}",n)},s:function(e,t,i,n){const r=(t+i+n)%e._subdomains.length;return e._subdomains[r]},reverseX:function(e,t,i,n){const r=e.tilingScheme.getNumberOfXTilesAtLevel(n)-t-1;return I(e,"{reverseX}",r)},reverseY:function(e,t,i,n){const r=e.tilingScheme.getNumberOfYTilesAtLevel(n)-i-1;return I(e,"{reverseY}",r)},reverseZ:function(e,t,i,n){const r=e.maximumLevel;return I(e,"{reverseZ}",(0,u.Z)(r)&&n<r?r-n-1:n)},westDegrees:function(e,t,i,n){return D(e,t,i,n),T.west},southDegrees:function(e,t,i,n){return D(e,t,i,n),T.south},eastDegrees:function(e,t,i,n){return D(e,t,i,n),T.east},northDegrees:function(e,t,i,n){return D(e,t,i,n),T.north},westProjected:function(e,t,i,n){return P(e,t,i,n),E.west},southProjected:function(e,t,i,n){return P(e,t,i,n),E.south},eastProjected:function(e,t,i,n){return P(e,t,i,n),E.east},northProjected:function(e,t,i,n){return P(e,t,i,n),E.north},width:function(e,t,i,n){return e.tileWidth},height:function(e,t,i,n){return e.tileHeight}},A=(0,s.Z)(b,{i:function(e,t,i,n,r,o,s){return M(e,t,i,n,r,o),S.x},j:function(e,t,i,n,r,o,s){return M(e,t,i,n,r,o),S.y},reverseI:function(e,t,i,n,r,o,s){return M(e,t,i,n,r,o),e.tileWidth-S.x-1},reverseJ:function(e,t,i,n,r,o,s){return M(e,t,i,n,r,o),e.tileHeight-S.y-1},longitudeDegrees:function(e,t,i,n,r,o,s){return f.Z.toDegrees(r)},latitudeDegrees:function(e,t,i,n,r,o,s){return f.Z.toDegrees(o)},longitudeProjected:function(e,t,i,n,r,o,s){return N(e,0,0,0,r,o),B.x},latitudeProjected:function(e,t,i,n,r,o,s){return N(e,0,0,0,r,o),B.y},format:function(e,t,i,n,r,o,s){return s}});function w(e){if(!(0,u.Z)(e))throw new l.Z("options is required.");if(!Z.Z.isPromise(e)&&!(0,u.Z)(e.url))throw new l.Z("options is required.");this._errorEvent=new h.Z,this._resource=void 0,this._urlSchemeZeroPadding=void 0,this._pickFeaturesResource=void 0,this._tileWidth=void 0,this._tileHeight=void 0,this._maximumLevel=void 0,this._minimumLevel=void 0,this._tilingScheme=void 0,this._rectangle=void 0,this._tileDiscardPolicy=void 0,this._credit=void 0,this._hasAlphaChannel=void 0,this._readyPromise=void 0,this._tags=void 0,this._pickFeaturesTags=void 0,this.defaultAlpha=void 0,this.defaultNightAlpha=void 0,this.defaultDayAlpha=void 0,this.defaultBrightness=void 0,this.defaultContrast=void 0,this.defaultHue=void 0,this.defaultSaturation=void 0,this.defaultGamma=void 0,this.defaultMinificationFilter=void 0,this.defaultMagnificationFilter=void 0,this.enablePickFeatures=!0,this.reinitialize(e)}Object.defineProperties(w.prototype,{url:{get:function(){return this._resource.url}},urlSchemeZeroPadding:{get:function(){return this._urlSchemeZeroPadding}},pickFeaturesUrl:{get:function(){return this._pickFeaturesResource.url}},proxy:{get:function(){return this._resource.proxy}},tileWidth:{get:function(){if(!this.ready)throw new l.Z("tileWidth must not be called before the imagery provider is ready.");return this._tileWidth}},tileHeight:{get:function(){if(!this.ready)throw new l.Z("tileHeight must not be called before the imagery provider is ready.");return this._tileHeight}},maximumLevel:{get:function(){if(!this.ready)throw new l.Z("maximumLevel must not be called before the imagery provider is ready.");return this._maximumLevel}},minimumLevel:{get:function(){if(!this.ready)throw new l.Z("minimumLevel must not be called before the imagery provider is ready.");return this._minimumLevel}},tilingScheme:{get:function(){if(!this.ready)throw new l.Z("tilingScheme must not be called before the imagery provider is ready.");return this._tilingScheme}},rectangle:{get:function(){if(!this.ready)throw new l.Z("rectangle must not be called before the imagery provider is ready.");return this._rectangle}},tileDiscardPolicy:{get:function(){if(!this.ready)throw new l.Z("tileDiscardPolicy must not be called before the imagery provider is ready.");return this._tileDiscardPolicy}},errorEvent:{get:function(){return this._errorEvent}},ready:{get:function(){return(0,u.Z)(this._resource)}},readyPromise:{get:function(){return this._readyPromise}},credit:{get:function(){if(!this.ready)throw new l.Z("credit must not be called before the imagery provider is ready.");return this._credit}},hasAlphaChannel:{get:function(){if(!this.ready)throw new l.Z("hasAlphaChannel must not be called before the imagery provider is ready.");return this._hasAlphaChannel}}}),w.prototype.reinitialize=function(e){const t=this;t._readyPromise=(0,Z.Z)(e).then((function(e){if(!(0,u.Z)(e))throw new l.Z("options is required.");if(!(0,u.Z)(e.url))throw new l.Z("options.url is required.");const i=e.customTags,n=(0,s.Z)(b,i),r=(0,s.Z)(A,i),o=m.Z.createIfNeeded(e.url),h=m.Z.createIfNeeded(e.pickFeaturesUrl);t.enablePickFeatures=(0,c.Z)(e.enablePickFeatures,t.enablePickFeatures),t._urlSchemeZeroPadding=(0,c.Z)(e.urlSchemeZeroPadding,t.urlSchemeZeroPadding),t._tileDiscardPolicy=e.tileDiscardPolicy,t._getFeatureInfoFormats=e.getFeatureInfoFormats,t._subdomains=e.subdomains,Array.isArray(t._subdomains)?t._subdomains=t._subdomains.slice():(0,u.Z)(t._subdomains)&&t._subdomains.length>0?t._subdomains=t._subdomains.split(""):t._subdomains=["a","b","c"],t._tileWidth=(0,c.Z)(e.tileWidth,256),t._tileHeight=(0,c.Z)(e.tileHeight,256),t._minimumLevel=(0,c.Z)(e.minimumLevel,0),t._maximumLevel=e.maximumLevel,t._tilingScheme=(0,c.Z)(e.tilingScheme,new _.Z({ellipsoid:e.ellipsoid})),t._rectangle=(0,c.Z)(e.rectangle,t._tilingScheme.rectangle),t._rectangle=p.Z.intersection(t._rectangle,t._tilingScheme.rectangle),t._hasAlphaChannel=(0,c.Z)(e.hasAlphaChannel,!0);let d=e.credit;return"string"==typeof d&&(d=new a.Z(d)),t._credit=d,t._resource=o,t._tags=n,t._pickFeaturesResource=h,t._pickFeaturesTags=r,!0}))},w.prototype.getTileCredits=function(e,t,i){if(!this.ready)throw new l.Z("getTileCredits must not be called before the imagery provider is ready.")},w.prototype.requestImage=function(e,t,i,n){if(!this.ready)throw new l.Z("requestImage must not be called before the imagery provider is ready.");return g.Z.loadImage(this,function(e,t,i,n,r){v=!1,C=!1;const o=e._resource,s=o.getUrlComponent(!0),a=e._tags,c={},l=s.match(y);return(0,u.Z)(l)&&l.forEach((function(r){const o=r.substring(1,r.length-1);(0,u.Z)(a[o])&&(c[o]=a[o](e,t,i,n))})),o.getDerivedResource({request:r,templateValues:c})}(this,e,t,i,n))},w.prototype.pickFeatures=function(e,t,i,n,r){if(!this.ready)throw new l.Z("pickFeatures must not be called before the imagery provider is ready.");if(!this.enablePickFeatures||!(0,u.Z)(this._pickFeaturesResource)||0===this._getFeatureInfoFormats.length)return;let o=0;const s=this;function a(e,t){return e.callback(t)}return function c(){if(o>=s._getFeatureInfoFormats.length)return(0,Z.Z)([]);const l=s._getFeatureInfoFormats[o],h=function(e,t,i,n,r,o,s){v=!1,C=!1,x=!1,O=!1;const a=e._pickFeaturesResource,c=a.getUrlComponent(!0),l=e._pickFeaturesTags,h={},d=c.match(y);return(0,u.Z)(d)&&d.forEach((function(a){const c=a.substring(1,a.length-1);(0,u.Z)(l[c])&&(h[c]=l[c](e,t,i,n,r,o,s))})),a.getDerivedResource({templateValues:h})}(s,e,t,i,n,r,l.format);return++o,"json"===l.type?h.fetchJson().then(l.callback).otherwise(c):"xml"===l.type?h.fetchXML().then(l.callback).otherwise(c):"text"===l.type||"html"===l.type?h.fetchText().then(l.callback).otherwise(c):h.fetch({responseType:l.format}).then(a.bind(void 0,l)).otherwise(c)}()};let v=!1;const T=new p.Z;let C=!1;const E=new p.Z;let x=!1;const S=new n.Z;let O=!1;function I(e,t,i){if(e&&e.urlSchemeZeroPadding&&e.urlSchemeZeroPadding.hasOwnProperty(t)){const n=e.urlSchemeZeroPadding[t];if("string"==typeof n){const e=n.length;e>1&&(i=i.length>=e?i:new Array(e-i.toString().length+1).join("0")+i)}}return i}function D(e,t,i,n){v||(e.tilingScheme.tileXYToRectangle(t,i,n,T),T.west=f.Z.toDegrees(T.west),T.south=f.Z.toDegrees(T.south),T.east=f.Z.toDegrees(T.east),T.north=f.Z.toDegrees(T.north),v=!0)}function P(e,t,i,n){C||(e.tilingScheme.tileXYToNativeRectangle(t,i,n,E),C=!0)}const R=new p.Z,B=new r.Z;function M(e,t,i,n,r,o,s){if(x)return;N(e,0,0,0,r,o);const a=B,c=e.tilingScheme.tileXYToNativeRectangle(t,i,n,R);S.x=e.tileWidth*(a.x-c.west)/c.width|0,S.y=e.tileHeight*(c.north-a.y)/c.height|0,x=!0}const L=new o.Z;function N(e,t,i,n,r,o,s){if(!O){if(e.tilingScheme.projection instanceof d.Z)B.x=f.Z.toDegrees(r),B.y=f.Z.toDegrees(o);else{const t=L;t.longitude=r,t.latitude=o,e.tilingScheme.projection.project(t,B)}O=!0}}const F=w},570867:(e,t,i)=>{"use strict";i.d(t,{Z:()=>W});var n=i(140537),r=i(155597),o=i(337968),s=i(919382),a=i(545125),c=i(997274),u=i(406144),l=i(426468),h=i(54879),d=i(253316),f=i(488802),p=i(546135),m=i(126874),_=i(583917),Z=i(523501),g=i(890357),y=i(636807),b=i(50720),A=i(247913),w=i(842649),v=i(364232),T=i(928096),C=i(279427),E=i(676311),x=i(648298),S=i(135643),O=i(129583),I=i(527758),D=i(451356),P=i(268053),R=i(576049),B=i(690466),M=i(42973),L=i(786861),N=i(301859),F=i(566542);function k(e){this._positions=e.positions,this._widths=e.widths,this._counts=e.counts,this._batchIds=e.batchIds,this._ellipsoid=(0,u.Z)(e.ellipsoid,d.Z.WGS84),this._minimumHeight=e.minimumHeight,this._maximumHeight=e.maximumHeight,this._center=e.center,this._rectangle=e.rectangle,this._batchTable=e.batchTable,this._va=void 0,this._sp=void 0,this._rs=void 0,this._uniformMap=void 0,this._command=void 0,this._transferrableBatchIds=void 0,this._packedBuffer=void 0,this._minimumMaximumVectorHeights=new o.Z(n.Z._defaultMinTerrainHeight,n.Z._defaultMaxTerrainHeight),this._boundingVolume=m.Z.fromRectangle(e.rectangle,n.Z._defaultMinTerrainHeight,n.Z._defaultMaxTerrainHeight,this._ellipsoid),this._classificationType=e.classificationType,this._keepDecodedPositions=e.keepDecodedPositions,this._decodedPositions=void 0,this._decodedPositionOffsets=void 0,this._startEllipsoidNormals=void 0,this._endEllipsoidNormals=void 0,this._startPositionAndHeights=void 0,this._startFaceNormalAndVertexCornerIds=void 0,this._endPositionAndHeights=void 0,this._endFaceNormalAndHalfWidths=void 0,this._vertexBatchIds=void 0,this._indices=void 0,this._constantColor=a.Z.clone(a.Z.WHITE),this._highlightColor=this._constantColor,this._trianglesLength=0,this._geometryByteLength=0,this._ready=!1,this._readyPromise=I.Z.defer(),this._verticesPromise=void 0;const t=this;n.Z.initialize().then((function(){!function(e,t,i){const r=n.Z.getMinimumMaximumHeights(t,i),o=r.minimumTerrainHeight,s=r.maximumTerrainHeight,a=e._minimumMaximumVectorHeights;a.x=o,a.y=s;const c=e._boundingVolume,u=e._rectangle;m.Z.fromRectangle(u,o,s,i,c)}(t,t._rectangle,t._ellipsoid)})).otherwise((function(e){this._readyPromise.reject(e)}))}Object.defineProperties(k.prototype,{trianglesLength:{get:function(){return this._trianglesLength}},geometryByteLength:{get:function(){return this._geometryByteLength}},readyPromise:{get:function(){return this._readyPromise.promise}}});const U=new g.Z("createVectorTileClampedPolylines"),V={startEllipsoidNormal:0,endEllipsoidNormal:1,startPositionAndHeight:2,endPositionAndHeight:3,startFaceNormalAndVertexCorner:4,endFaceNormalAndHalfWidth:5,a_batchId:6};const z=new _.Z,H=new s.Z;function G(e){return v.Z.fromCache({cull:{enabled:!0,face:B.Z.FRONT},blending:D.Z.PRE_MULTIPLIED_ALPHA_BLEND,depthMask:!1,stencilTest:{enabled:e,frontFunction:L.Z.EQUAL,frontOperation:{fail:N.Z.KEEP,zFail:N.Z.KEEP,zPass:N.Z.KEEP},backFunction:L.Z.EQUAL,backOperation:{fail:N.Z.KEEP,zFail:N.Z.KEEP,zPass:N.Z.KEEP},reference:M.Z.CESIUM_3D_TILE_MASK,mask:M.Z.CESIUM_3D_TILE_MASK}})}k.prototype.getPositions=function(e){return F.Z.getPolylinePositions(this,e)},k.prototype.createFeatures=function(e,t){const i=this._batchIds,n=i.length;for(let r=0;r<n;++r){const n=i[r];t[n]=new P.Z(e,n)}},k.prototype.applyDebugSettings=function(e,t){this._highlightColor=e?t:this._constantColor};const q=new a.Z,j=a.Z.WHITE;k.prototype.applyStyle=function(e,t){if(!(0,l.Z)(e))return void function(e,t){const i=e._batchIds,n=i.length;for(let e=0;e<n;++e){const n=t[i[e]];n.show=!0,n.color=a.Z.WHITE}}(this,t);const i=this._batchIds,n=i.length;for(let r=0;r<n;++r){const n=t[i[r]];n.color=(0,l.Z)(e.color)?e.color.evaluateColor(n,q):j,n.show=!(0,l.Z)(e.show)||e.show.evaluate(n)}},k.prototype.update=function(e){const t=e.context;var i;if(function(e,t){if(!(0,l.Z)(e._va)){if(!(0,l.Z)(e._verticesPromise)){let t=e._positions,i=e._widths,n=e._counts,o=e._transferrableBatchIds,a=e._packedBuffer;(0,l.Z)(a)||(t=e._positions=(0,r.Z)(t),i=e._widths=(0,r.Z)(i),n=e._counts=(0,r.Z)(n),o=e._transferrableBatchIds=(0,r.Z)(e._batchIds),a=e._packedBuffer=function(e){const t=e._rectangle,i=e._minimumHeight,n=e._maximumHeight,r=e._ellipsoid,o=e._center,a=2+Z.Z.packedLength+d.Z.packedLength+s.Z.packedLength,c=new Float64Array(a);let u=0;return c[u++]=i,c[u++]=n,Z.Z.pack(t,c,u),u+=Z.Z.packedLength,d.Z.pack(r,c,u),u+=d.Z.packedLength,s.Z.pack(o,c,u),c}(e));const c=[t.buffer,i.buffer,n.buffer,o.buffer,a.buffer],u={positions:t.buffer,widths:i.buffer,counts:n.buffer,batchIds:o.buffer,packedBuffer:a.buffer,keepDecodedPositions:e._keepDecodedPositions},h=e._verticesPromise=U.scheduleTask(u,c);if(!(0,l.Z)(h))return;(0,I.Z)(h,(function(t){e._keepDecodedPositions&&(e._decodedPositions=new Float64Array(t.decodedPositions),e._decodedPositionOffsets=new Uint32Array(t.decodedPositionOffsets)),e._startEllipsoidNormals=new Float32Array(t.startEllipsoidNormals),e._endEllipsoidNormals=new Float32Array(t.endEllipsoidNormals),e._startPositionAndHeights=new Float32Array(t.startPositionAndHeights),e._startFaceNormalAndVertexCornerIds=new Float32Array(t.startFaceNormalAndVertexCornerIds),e._endPositionAndHeights=new Float32Array(t.endPositionAndHeights),e._endFaceNormalAndHalfWidths=new Float32Array(t.endFaceNormalAndHalfWidths),e._vertexBatchIds=new Uint16Array(t.vertexBatchIds);const i=t.indexDatatype;e._indices=i===p.Z.UNSIGNED_SHORT?new Uint16Array(t.indices):new Uint32Array(t.indices),e._ready=!0})).otherwise((function(t){e._readyPromise.reject(t)}))}if(e._ready&&!(0,l.Z)(e._va)){const i=e._startEllipsoidNormals,n=e._endEllipsoidNormals,r=e._startPositionAndHeights,o=e._endPositionAndHeights,s=e._startFaceNormalAndVertexCornerIds,a=e._endFaceNormalAndHalfWidths,u=e._vertexBatchIds,l=e._indices;let h=i.byteLength+n.byteLength;h+=r.byteLength+o.byteLength,h+=s.byteLength+a.byteLength,h+=u.byteLength+l.byteLength,e._trianglesLength=l.length/3,e._geometryByteLength=h;const d=y.Z.createVertexBuffer({context:t,typedArray:i,usage:b.Z.STATIC_DRAW}),f=y.Z.createVertexBuffer({context:t,typedArray:n,usage:b.Z.STATIC_DRAW}),m=y.Z.createVertexBuffer({context:t,typedArray:r,usage:b.Z.STATIC_DRAW}),_=y.Z.createVertexBuffer({context:t,typedArray:o,usage:b.Z.STATIC_DRAW}),Z=y.Z.createVertexBuffer({context:t,typedArray:s,usage:b.Z.STATIC_DRAW}),g=y.Z.createVertexBuffer({context:t,typedArray:a,usage:b.Z.STATIC_DRAW}),A=y.Z.createVertexBuffer({context:t,typedArray:u,usage:b.Z.STATIC_DRAW}),w=y.Z.createIndexBuffer({context:t,typedArray:l,usage:b.Z.STATIC_DRAW,indexDatatype:2===l.BYTES_PER_ELEMENT?p.Z.UNSIGNED_SHORT:p.Z.UNSIGNED_INT}),v=[{index:V.startEllipsoidNormal,vertexBuffer:d,componentDatatype:c.Z.FLOAT,componentsPerAttribute:3},{index:V.endEllipsoidNormal,vertexBuffer:f,componentDatatype:c.Z.FLOAT,componentsPerAttribute:3},{index:V.startPositionAndHeight,vertexBuffer:m,componentDatatype:c.Z.FLOAT,componentsPerAttribute:4},{index:V.endPositionAndHeight,vertexBuffer:_,componentDatatype:c.Z.FLOAT,componentsPerAttribute:4},{index:V.startFaceNormalAndVertexCorner,vertexBuffer:Z,componentDatatype:c.Z.FLOAT,componentsPerAttribute:4},{index:V.endFaceNormalAndHalfWidth,vertexBuffer:g,componentDatatype:c.Z.FLOAT,componentsPerAttribute:4},{index:V.a_batchId,vertexBuffer:A,componentDatatype:c.Z.UNSIGNED_SHORT,componentsPerAttribute:1}];e._va=new E.Z({context:t,attributes:v,indexBuffer:w}),e._positions=void 0,e._widths=void 0,e._counts=void 0,e._ellipsoid=void 0,e._minimumHeight=void 0,e._maximumHeight=void 0,e._rectangle=void 0,e._transferrableBatchIds=void 0,e._packedBuffer=void 0,e._startEllipsoidNormals=void 0,e._endEllipsoidNormals=void 0,e._startPositionAndHeights=void 0,e._startFaceNormalAndVertexCornerIds=void 0,e._endPositionAndHeights=void 0,e._endFaceNormalAndHalfWidths=void 0,e._vertexBatchIds=void 0,e._indices=void 0,e._readyPromise.resolve()}}}(this,t),function(e,t){(0,l.Z)(e._uniformMap)||(e._uniformMap={u_modifiedModelView:function(){const i=t.uniformState.view;return _.Z.clone(i,z),_.Z.multiplyByPoint(z,e._center,H),_.Z.setTranslation(z,H,z),z},u_highlightColor:function(){return e._highlightColor},u_minimumMaximumVectorHeights:function(){return e._minimumMaximumVectorHeights}})}(this,t),function(e,t){if((0,l.Z)(e._sp))return;const i=e._batchTable,n=i.getVertexShaderCallback(!1,"a_batchId",void 0)(S.Z),r=i.getFragmentShaderCallback(!1,void 0,!0)(O.Z),o=new C.Z({defines:["VECTOR_TILE",f.Z.isInternetExplorer()?"":"CLIP_POLYLINE"],sources:[x.Z,n]}),s=new C.Z({defines:["VECTOR_TILE"],sources:[r]});e._sp=T.Z.fromCache({context:t,vertexShaderSource:o,fragmentShaderSource:s,attributeLocations:V})}(this,t),i=this,(0,l.Z)(i._rs)||(i._rs=G(!1),i._rs3DTiles=G(!0)),!this._ready)return;const n=e.passes;(n.render||n.pick)&&function(e,t){let i=e._command;if(!(0,l.Z)(e._command)){const t=e._batchTable.getUniformMapCallback()(e._uniformMap);i=e._command=new A.Z({owner:e,vertexArray:e._va,renderState:e._rs,shaderProgram:e._sp,uniformMap:t,boundingVolume:e._boundingVolume,pass:w.Z.TERRAIN_CLASSIFICATION,pickId:e._batchTable.getPickId()});const n=A.Z.shallowClone(i,i.derivedCommands.tileset);n.renderState=e._rs3DTiles,n.pass=w.Z.CESIUM_3D_TILE_CLASSIFICATION,i.derivedCommands.tileset=n}const n=e._classificationType;n!==R.Z.TERRAIN&&n!==R.Z.BOTH||t.commandList.push(i),n!==R.Z.CESIUM_3D_TILE&&n!==R.Z.BOTH||t.commandList.push(i.derivedCommands.tileset)}(this,e)},k.prototype.isDestroyed=function(){return!1},k.prototype.destroy=function(){return this._va=this._va&&this._va.destroy(),this._sp=this._sp&&this._sp.destroy(),(0,h.Z)(this)};const W=k},195204:(e,t,i)=>{"use strict";i.d(t,{Z:()=>S});var n=i(919382),r=i(406144),o=i(426468),s=i(54879),a=i(446938),c=i(253316),u=i(987606),l=i(997274),h=i(362017),d=i(583917),f=i(523501),p=i(50128),m=i(527758),_=i(657045),Z=i(447490),g=i(757730),y=i(696469),b=i(566542),A=i(570867),w=i(814415);function v(e,t,i,s,a){this._tileset=e,this._tile=t,this._resource=i,this._polygons=void 0,this._polylines=void 0,this._points=void 0,this._contentReadyPromise=void 0,this._readyPromise=m.Z.defer(),this._batchTable=void 0,this._features=void 0,this.featurePropertiesDirty=!1,this._groupMetadata=void 0,function(e,t,i){i=(0,r.Z)(i,0);const s=new Uint8Array(t),a=new DataView(t);i+=T;const m=a.getUint32(i,!0);if(1!==m)throw new p.Z("Only Vector tile version 1 is supported. Version "+m+" is not.");i+=T;const b=a.getUint32(i,!0);if(i+=T,0===b)return void e._readyPromise.resolve(e);const A=a.getUint32(i,!0);if(i+=T,0===A)throw new p.Z("Feature table must have a byte length greater than zero");const v=a.getUint32(i,!0);i+=T;const x=a.getUint32(i,!0);i+=T;const S=a.getUint32(i,!0);i+=T;const O=a.getUint32(i,!0);i+=T;const I=a.getUint32(i,!0);i+=T;const D=a.getUint32(i,!0);i+=T;const P=a.getUint32(i,!0);i+=T;const R=(0,u.Z)(s,i,A);i+=A;const B=new Uint8Array(t,i,v);let M,L;i+=v,x>0&&(M=(0,u.Z)(s,i,x),i+=x,S>0&&(L=new Uint8Array(t,i,S),L=new Uint8Array(L),i+=S));const N=(0,r.Z)(R.POLYGONS_LENGTH,0),F=(0,r.Z)(R.POLYLINES_LENGTH,0),k=(0,r.Z)(R.POINTS_LENGTH,0),U=N+F+k,V=new _.Z(e,U,M,L,function(e){return function(t,i){(0,o.Z)(e._polygons)&&e._polygons.updateCommands(t,i)}}(e));if(e._batchTable=V,0===U)return;const z=new Z.Z(R,B),H=z.getGlobalProperty("REGION");if(!(0,o.Z)(H))throw new p.Z("Feature table global property: REGION must be defined");const G=f.Z.unpack(H),q=H[4],j=H[5],W=e._tile.computedTransform;let K=z.getGlobalProperty("RTC_CENTER",l.Z.FLOAT,3);(0,o.Z)(K)?(K=n.Z.unpack(K),d.Z.multiplyByPoint(W,K,K)):(K=f.Z.center(G),K.height=h.Z.lerp(q,j,.5),K=c.Z.WGS84.cartographicToCartesian(K));const Y=function(e,t){let i,n,s,a;const c=(0,r.Z)(e.POLYGONS_LENGTH,0),u=(0,r.Z)(e.POLYLINES_LENGTH,0),l=(0,r.Z)(e.POINTS_LENGTH,0);if(c>0&&(0,o.Z)(e.POLYGON_BATCH_IDS)){const n=t.byteOffset+e.POLYGON_BATCH_IDS.byteOffset;i=new Uint16Array(t.buffer,n,c)}if(u>0&&(0,o.Z)(e.POLYLINE_BATCH_IDS)){const i=t.byteOffset+e.POLYLINE_BATCH_IDS.byteOffset;n=new Uint16Array(t.buffer,i,u)}if(l>0&&(0,o.Z)(e.POINT_BATCH_IDS)){const i=t.byteOffset+e.POINT_BATCH_IDS.byteOffset;s=new Uint16Array(t.buffer,i,l)}const h=(0,o.Z)(i)||(0,o.Z)(n)||(0,o.Z)(s),d=c>0&&!(0,o.Z)(i)||u>0&&!(0,o.Z)(n)||l>0&&!(0,o.Z)(s);if(h&&d)throw new p.Z("If one group of batch ids is defined, then all batch ids must be defined.");if(!(0,o.Z)(i)&&!(0,o.Z)(n)&&!(0,o.Z)(s)){let e=0;if(!(0,o.Z)(i)&&c>0)for(i=new Uint16Array(c),a=0;a<c;++a)i[a]=e++;if(!(0,o.Z)(n)&&u>0)for(n=new Uint16Array(u),a=0;a<u;++a)n[a]=e++;if(!(0,o.Z)(s)&&l>0)for(s=new Uint16Array(l),a=0;a<l;++a)s[a]=e++}return{polygons:i,polylines:n,points:s}}(R,B);if(i+=(4-i%4)%4,N>0){z.featuresLength=N;const n=(0,r.Z)(z.getPropertyArray("POLYGON_COUNTS",l.Z.UNSIGNED_INT,1),z.getPropertyArray("POLYGON_COUNT",l.Z.UNSIGNED_INT,1));if(!(0,o.Z)(n))throw new p.Z("Feature table property: POLYGON_COUNTS must be defined when POLYGONS_LENGTH is greater than 0");const s=(0,r.Z)(z.getPropertyArray("POLYGON_INDEX_COUNTS",l.Z.UNSIGNED_INT,1),z.getPropertyArray("POLYGON_INDEX_COUNT",l.Z.UNSIGNED_INT,1));if(!(0,o.Z)(s))throw new p.Z("Feature table property: POLYGON_INDEX_COUNTS must be defined when POLYGONS_LENGTH is greater than 0");const a=n.reduce((function(e,t){return e+2*t}),0),c=s.reduce((function(e,t){return e+t}),0),u=new Uint32Array(t,i,c);i+=O;const h=new Uint16Array(t,i,a);let d,f;i+=I,(0,o.Z)(R.POLYGON_MINIMUM_HEIGHTS)&&(0,o.Z)(R.POLYGON_MAXIMUM_HEIGHTS)&&(d=z.getPropertyArray("POLYGON_MINIMUM_HEIGHTS",l.Z.FLOAT,1),f=z.getPropertyArray("POLYGON_MAXIMUM_HEIGHTS",l.Z.FLOAT,1)),e._polygons=new y.Z({positions:h,counts:n,indexCounts:s,indices:u,minimumHeight:q,maximumHeight:j,polygonMinimumHeights:d,polygonMaximumHeights:f,center:K,rectangle:G,boundingVolume:e.tile.boundingVolume.boundingVolume,batchTable:V,batchIds:Y.polygons,modelMatrix:W})}if(F>0){z.featuresLength=F;const n=(0,r.Z)(z.getPropertyArray("POLYLINE_COUNTS",l.Z.UNSIGNED_INT,1),z.getPropertyArray("POLYLINE_COUNT",l.Z.UNSIGNED_INT,1));if(!(0,o.Z)(n))throw new p.Z("Feature table property: POLYLINE_COUNTS must be defined when POLYLINES_LENGTH is greater than 0");let s=z.getPropertyArray("POLYLINE_WIDTHS",l.Z.UNSIGNED_SHORT,1);if(!(0,o.Z)(s)){s=new Uint16Array(F);for(let e=0;e<F;++e)s[e]=2}const a=n.reduce((function(e,t){return e+3*t}),0),u=new Uint16Array(t,i,a);i+=D;const h=e._tileset,d=h.examineVectorLinesFunction;(0,o.Z)(d)&&function(e,t,i,n,r,o){const s=t.length;let a=0;for(let c=0;c<s;c++){const s=3*t[c],u=e.slice(a,a+s);a+=s,o(u,i[c],r,n)}}((0,w.Z)(new Uint16Array(u),G,q,j,c.Z.WGS84),n,Y.polylines,V,e.url,d);let f=C;(0,o.Z)(h.classificationType)&&(f=E),e._polylines=f({positions:u,widths:s,counts:n,batchIds:Y.polylines,minimumHeight:q,maximumHeight:j,center:K,rectangle:G,boundingVolume:e.tile.boundingVolume.boundingVolume,batchTable:V,classificationType:h.classificationType,keepDecodedPositions:h.vectorKeepDecodedPositions})}if(k>0){const n=new Uint16Array(t,i,3*k);i+=P,e._points=new g.Z({positions:n,batchIds:Y.points,minimumHeight:q,maximumHeight:j,rectangle:G,batchTable:V})}}(this,s,a)}Object.defineProperties(v.prototype,{featuresLength:{get:function(){return(0,o.Z)(this._batchTable)?this._batchTable.featuresLength:0}},pointsLength:{get:function(){return(0,o.Z)(this._points)?this._points.pointsLength:0}},trianglesLength:{get:function(){let e=0;return(0,o.Z)(this._polygons)&&(e+=this._polygons.trianglesLength),(0,o.Z)(this._polylines)&&(e+=this._polylines.trianglesLength),e}},geometryByteLength:{get:function(){let e=0;return(0,o.Z)(this._polygons)&&(e+=this._polygons.geometryByteLength),(0,o.Z)(this._polylines)&&(e+=this._polylines.geometryByteLength),e}},texturesByteLength:{get:function(){return(0,o.Z)(this._points)?this._points.texturesByteLength:0}},batchTableByteLength:{get:function(){return(0,o.Z)(this._batchTable)?this._batchTable.memorySizeInBytes:0}},innerContents:{get:function(){}},readyPromise:{get:function(){return this._readyPromise.promise}},tileset:{get:function(){return this._tileset}},tile:{get:function(){return this._tile}},url:{get:function(){return this._resource.getUrlComponent(!0)}},batchTable:{get:function(){return this._batchTable}},groupMetadata:{get:function(){return this._groupMetadata},set:function(e){this._groupMetadata=e}}});const T=Uint32Array.BYTES_PER_ELEMENT;function C(e){return new b.Z(e)}function E(e){return new A.Z(e)}function x(e){const t=e.featuresLength;if(!(0,o.Z)(e._features)&&t>0){const i=new Array(t);(0,o.Z)(e._polygons)&&e._polygons.createFeatures(e,i),(0,o.Z)(e._polylines)&&e._polylines.createFeatures(e,i),(0,o.Z)(e._points)&&e._points.createFeatures(e,i),e._features=i}}v.prototype.hasProperty=function(e,t){return this._batchTable.hasProperty(e,t)},v.prototype.getFeature=function(e){const t=this.featuresLength;if(!(0,o.Z)(e)||e<0||e>=t)throw new a.Z("batchId is required and between zero and featuresLength - 1 ("+(t-1)+").");return x(this),this._features[e]},v.prototype.applyDebugSettings=function(e,t){(0,o.Z)(this._polygons)&&this._polygons.applyDebugSettings(e,t),(0,o.Z)(this._polylines)&&this._polylines.applyDebugSettings(e,t),(0,o.Z)(this._points)&&this._points.applyDebugSettings(e,t)},v.prototype.applyStyle=function(e){x(this),(0,o.Z)(this._polygons)&&this._polygons.applyStyle(e,this._features),(0,o.Z)(this._polylines)&&this._polylines.applyStyle(e,this._features),(0,o.Z)(this._points)&&this._points.applyStyle(e,this._features)},v.prototype.update=function(e,t){let i=!0;if((0,o.Z)(this._polygons)&&(this._polygons.classificationType=this._tileset.classificationType,this._polygons.debugWireframe=this._tileset.debugWireframe,this._polygons.update(t),i=i&&this._polygons._ready),(0,o.Z)(this._polylines)&&(this._polylines.update(t),i=i&&this._polylines._ready),(0,o.Z)(this._points)&&(this._points.update(t),i=i&&this._points._ready),(0,o.Z)(this._batchTable)&&i&&this._batchTable.update(e,t),!(0,o.Z)(this._contentReadyPromise)){const e=(0,o.Z)(this._points)?this._points.readyPromise:void 0,t=(0,o.Z)(this._polygons)?this._polygons.readyPromise:void 0,i=(0,o.Z)(this._polylines)?this._polylines.readyPromise:void 0,n=this;this._contentReadyPromise=m.Z.all([e,t,i]).then((function(){n._readyPromise.resolve(n)})).otherwise((function(e){n._readyPromise.reject(e)}))}},v.prototype.getPolylinePositions=function(e){const t=this._polylines;if((0,o.Z)(t))return t.getPositions(e)},v.prototype.isDestroyed=function(){return!1},v.prototype.destroy=function(){return this._polygons=this._polygons&&this._polygons.destroy(),this._polylines=this._polylines&&this._polylines.destroy(),this._points=this._points&&this._points.destroy(),this._batchTable=this._batchTable&&this._batchTable.destroy(),(0,s.Z)(this)};const S=v},624491:(e,t,i)=>{"use strict";i.d(t,{Z:()=>y});var n=i(155597),r=i(360791),o=i(919382),s=i(545125),a=i(406144),c=i(426468),u=i(54879),l=i(583917),h=i(890357),d=i(527758),f=i(576049),p=i(844702),m=i(388181);function _(e){this._boxes=e.boxes,this._boxBatchIds=e.boxBatchIds,this._cylinders=e.cylinders,this._cylinderBatchIds=e.cylinderBatchIds,this._ellipsoids=e.ellipsoids,this._ellipsoidBatchIds=e.ellipsoidBatchIds,this._spheres=e.spheres,this._sphereBatchIds=e.sphereBatchIds,this._modelMatrix=e.modelMatrix,this._batchTable=e.batchTable,this._boundingVolume=e.boundingVolume,this._center=e.center,(0,c.Z)(this._center)||((0,c.Z)(this._boundingVolume)?this._center=o.Z.clone(this._boundingVolume.center):this._center=o.Z.clone(o.Z.ZERO)),this._boundingVolumes=void 0,this._batchedIndices=void 0,this._indices=void 0,this._indexOffsets=void 0,this._indexCounts=void 0,this._positions=void 0,this._vertexBatchIds=void 0,this._batchIds=void 0,this._batchTableColors=void 0,this._packedBuffer=void 0,this._ready=!1,this._readyPromise=d.Z.defer(),this._verticesPromise=void 0,this._primitive=void 0,this.debugWireframe=!1,this.forceRebatch=!1,this.classificationType=f.Z.BOTH}Object.defineProperties(_.prototype,{trianglesLength:{get:function(){return(0,c.Z)(this._primitive)?this._primitive.trianglesLength:0}},geometryByteLength:{get:function(){return(0,c.Z)(this._primitive)?this._primitive.geometryByteLength:0}},readyPromise:{get:function(){return this._readyPromise.promise}}}),_.packedBoxLength=l.Z.packedLength+o.Z.packedLength,_.packedCylinderLength=l.Z.packedLength+2,_.packedEllipsoidLength=l.Z.packedLength+o.Z.packedLength,_.packedSphereLength=o.Z.packedLength+1;const Z=new h.Z("createVectorTileGeometries",5),g=new s.Z;_.prototype.createFeatures=function(e,t){this._primitive.createFeatures(e,t)},_.prototype.applyDebugSettings=function(e,t){this._primitive.applyDebugSettings(e,t)},_.prototype.applyStyle=function(e,t){this._primitive.applyStyle(e,t)},_.prototype.updateCommands=function(e,t){this._primitive.updateCommands(e,t)},_.prototype.update=function(e){(function(e){if(!(0,c.Z)(e._primitive)){if(!(0,c.Z)(e._verticesPromise)){let t=e._boxes,i=e._boxBatchIds,a=e._cylinders,u=e._cylinderBatchIds,h=e._ellipsoids,d=e._ellipsoidBatchIds,f=e._spheres,m=e._sphereBatchIds,_=e._batchTableColors,y=e._packedBuffer;if(!(0,c.Z)(_)){let r=0;(0,c.Z)(e._boxes)&&(t=e._boxes=(0,n.Z)(t),i=e._boxBatchIds=(0,n.Z)(i),r+=i.length),(0,c.Z)(e._cylinders)&&(a=e._cylinders=(0,n.Z)(a),u=e._cylinderBatchIds=(0,n.Z)(u),r+=u.length),(0,c.Z)(e._ellipsoids)&&(h=e._ellipsoids=(0,n.Z)(h),d=e._ellipsoidBatchIds=(0,n.Z)(d),r+=d.length),(0,c.Z)(e._spheres)&&(f=e._sphere=(0,n.Z)(f),m=e._sphereBatchIds=(0,n.Z)(m),r+=m.length),_=e._batchTableColors=new Uint32Array(r);const s=e._batchTable;for(let e=0;e<r;++e){const t=s.getColor(e,g);_[e]=t.toRgba()}y=e._packedBuffer=function(e){const t=new Float64Array(l.Z.packedLength+o.Z.packedLength);let i=0;return o.Z.pack(e._center,t,i),i+=o.Z.packedLength,l.Z.pack(e._modelMatrix,t,i),t}(e)}const b=[];(0,c.Z)(t)&&b.push(t.buffer,i.buffer),(0,c.Z)(a)&&b.push(a.buffer,u.buffer),(0,c.Z)(h)&&b.push(h.buffer,d.buffer),(0,c.Z)(f)&&b.push(f.buffer,m.buffer),b.push(_.buffer,y.buffer);const A={boxes:(0,c.Z)(t)?t.buffer:void 0,boxBatchIds:(0,c.Z)(t)?i.buffer:void 0,cylinders:(0,c.Z)(a)?a.buffer:void 0,cylinderBatchIds:(0,c.Z)(a)?u.buffer:void 0,ellipsoids:(0,c.Z)(h)?h.buffer:void 0,ellipsoidBatchIds:(0,c.Z)(h)?d.buffer:void 0,spheres:(0,c.Z)(f)?f.buffer:void 0,sphereBatchIds:(0,c.Z)(f)?m.buffer:void 0,batchTableColors:_.buffer,packedBuffer:y.buffer},w=e._verticesPromise=Z.scheduleTask(A,b);if(!(0,c.Z)(w))return;w.then((function(t){const i=new Float64Array(t.packedBuffer),n=function(e,t){let i=0;const n=t[i++],o=t[i++],a=e._boundingVolumes=new Array(o);for(let e=0;e<o;++e)a[e]=r.Z.unpack(t,i),i+=r.Z.packedLength;const c=t[i++],u=e._batchedIndices=new Array(c);for(let e=0;e<c;++e){const n=s.Z.unpack(t,i);i+=s.Z.packedLength;const r=t[i++],o=t[i++],a=t[i++],c=new Array(a);for(let e=0;e<a;++e)c[e]=t[i++];u[e]=new p.Z({color:n,offset:r,count:o,batchIds:c})}return n}(e,i);e._indices=2===n?new Uint16Array(t.indices):new Uint32Array(t.indices),e._indexOffsets=new Uint32Array(t.indexOffsets),e._indexCounts=new Uint32Array(t.indexCounts),e._positions=new Float32Array(t.positions),e._vertexBatchIds=new Uint16Array(t.vertexBatchIds),e._batchIds=new Uint16Array(t.batchIds),e._ready=!0}))}e._ready&&!(0,c.Z)(e._primitive)&&(e._primitive=new m.Z({batchTable:e._batchTable,positions:e._positions,batchIds:e._batchIds,vertexBatchIds:e._vertexBatchIds,indices:e._indices,indexOffsets:e._indexOffsets,indexCounts:e._indexCounts,batchedIndices:e._batchedIndices,boundingVolume:e._boundingVolume,boundingVolumes:e._boundingVolumes,center:e._center,pickObject:(0,a.Z)(e._pickObject,e)}),e._boxes=void 0,e._boxBatchIds=void 0,e._cylinders=void 0,e._cylinderBatchIds=void 0,e._ellipsoids=void 0,e._ellipsoidBatchIds=void 0,e._spheres=void 0,e._sphereBatchIds=void 0,e._center=void 0,e._modelMatrix=void 0,e._batchTable=void 0,e._boundingVolume=void 0,e._boundingVolumes=void 0,e._batchedIndices=void 0,e._indices=void 0,e._indexOffsets=void 0,e._indexCounts=void 0,e._positions=void 0,e._vertexBatchIds=void 0,e._batchIds=void 0,e._batchTableColors=void 0,e._packedBuffer=void 0,e._verticesPromise=void 0,e._readyPromise.resolve())}})(this),this._ready&&(this._primitive.debugWireframe=this.debugWireframe,this._primitive.forceRebatch=this.forceRebatch,this._primitive.classificationType=this.classificationType,this._primitive.update(e))},_.prototype.isDestroyed=function(){return!1},_.prototype.destroy=function(){return this._primitive=this._primitive&&this._primitive.destroy(),(0,u.Z)(this)};const y=_},757730:(e,t,i)=>{"use strict";i.d(t,{Z:()=>B});var n=i(155597),r=i(337968),o=i(919382),s=i(545125),a=i(426468),c=i(54879),u=i(744497),l=i(253316),h=i(530109),d=i(523501),f=i(890357),p=i(527758),m=i(631754),_=i(616594),Z=i(121015),g=i(892512),y=i(234320),b=i(946096),A=i(825497);function w(e){this._positions=e.positions,this._batchTable=e.batchTable,this._batchIds=e.batchIds,this._rectangle=e.rectangle,this._minHeight=e.minimumHeight,this._maxHeight=e.maximumHeight,this._billboardCollection=void 0,this._labelCollection=void 0,this._polylineCollection=void 0,this._verticesPromise=void 0,this._packedBuffer=void 0,this._ready=!1,this._readyPromise=p.Z.defer(),this._resolvedPromise=!1}Object.defineProperties(w.prototype,{pointsLength:{get:function(){return this._billboardCollection.length}},texturesByteLength:{get:function(){return this._billboardCollection.textureAtlas.texture.sizeInBytes+this._labelCollection._textureAtlas.texture.sizeInBytes}},readyPromise:{get:function(){return this._readyPromise.promise}}});const v=new f.Z("createVectorTilePoints",5),T=new o.Z;w.prototype.createFeatures=function(e,t){const i=this._billboardCollection,n=this._labelCollection,r=this._polylineCollection,o=this._batchIds,s=o.length;for(let a=0;a<s;++a){const s=o[a],c=i.get(a),u=n.get(a),l=r.get(a);t[s]=new _.Z(e,s,c,u,l)}},w.prototype.applyDebugSettings=function(e,t){e?(s.Z.clone(t,this._billboardCollection._highlightColor),s.Z.clone(t,this._labelCollection._highlightColor),s.Z.clone(t,this._polylineCollection._highlightColor)):(s.Z.clone(s.Z.WHITE,this._billboardCollection._highlightColor),s.Z.clone(s.Z.WHITE,this._labelCollection._highlightColor),s.Z.clone(s.Z.WHITE,this._polylineCollection._highlightColor))};const C=new s.Z,E=new s.Z,x=new s.Z,S=new s.Z,O=new s.Z,I=new s.Z,D=new h.Z,P=new h.Z,R=new u.Z;w.prototype.applyStyle=function(e,t){if(!(0,a.Z)(e))return void function(e,t){const i=e._batchIds,n=i.length;for(let e=0;e<n;++e){const n=t[i[e]];n.show=!0,n.pointSize=_.Z.defaultPointSize,n.color=_.Z.defaultColor,n.pointOutlineColor=_.Z.defaultPointOutlineColor,n.pointOutlineWidth=_.Z.defaultPointOutlineWidth,n.labelColor=s.Z.WHITE,n.labelOutlineColor=s.Z.WHITE,n.labelOutlineWidth=1,n.font="30px sans-serif",n.labelStyle=y.Z.FILL,n.labelText=void 0,n.backgroundColor=new s.Z(.165,.165,.165,.8),n.backgroundPadding=new r.Z(7,5),n.backgroundEnabled=!1,n.scaleByDistance=void 0,n.translucencyByDistance=void 0,n.distanceDisplayCondition=void 0,n.heightOffset=0,n.anchorLineEnabled=!1,n.anchorLineColor=s.Z.WHITE,n.image=void 0,n.disableDepthTestDistance=0,n.horizontalOrigin=Z.Z.CENTER,n.verticalOrigin=A.Z.CENTER,n.labelHorizontalOrigin=Z.Z.RIGHT,n.labelVerticalOrigin=A.Z.BASELINE}}(this,t);const i=this._batchIds,n=i.length;for(let r=0;r<n;++r){const n=t[i[r]];if((0,a.Z)(e.show)&&(n.show=e.show.evaluate(n)),(0,a.Z)(e.pointSize)&&(n.pointSize=e.pointSize.evaluate(n)),(0,a.Z)(e.color)&&(n.color=e.color.evaluateColor(n,C)),(0,a.Z)(e.pointOutlineColor)&&(n.pointOutlineColor=e.pointOutlineColor.evaluateColor(n,E)),(0,a.Z)(e.pointOutlineWidth)&&(n.pointOutlineWidth=e.pointOutlineWidth.evaluate(n)),(0,a.Z)(e.labelColor)&&(n.labelColor=e.labelColor.evaluateColor(n,x)),(0,a.Z)(e.labelOutlineColor)&&(n.labelOutlineColor=e.labelOutlineColor.evaluateColor(n,S)),(0,a.Z)(e.labelOutlineWidth)&&(n.labelOutlineWidth=e.labelOutlineWidth.evaluate(n)),(0,a.Z)(e.font)&&(n.font=e.font.evaluate(n)),(0,a.Z)(e.labelStyle)&&(n.labelStyle=e.labelStyle.evaluate(n)),(0,a.Z)(e.labelText)?n.labelText=e.labelText.evaluate(n):n.labelText=void 0,(0,a.Z)(e.backgroundColor)&&(n.backgroundColor=e.backgroundColor.evaluateColor(n,O)),(0,a.Z)(e.backgroundPadding)&&(n.backgroundPadding=e.backgroundPadding.evaluate(n)),(0,a.Z)(e.backgroundEnabled)&&(n.backgroundEnabled=e.backgroundEnabled.evaluate(n)),(0,a.Z)(e.scaleByDistance)){const t=e.scaleByDistance.evaluate(n);D.near=t.x,D.nearValue=t.y,D.far=t.z,D.farValue=t.w,n.scaleByDistance=D}else n.scaleByDistance=void 0;if((0,a.Z)(e.translucencyByDistance)){const t=e.translucencyByDistance.evaluate(n);P.near=t.x,P.nearValue=t.y,P.far=t.z,P.farValue=t.w,n.translucencyByDistance=P}else n.translucencyByDistance=void 0;if((0,a.Z)(e.distanceDisplayCondition)){const t=e.distanceDisplayCondition.evaluate(n);R.near=t.x,R.far=t.y,n.distanceDisplayCondition=R}else n.distanceDisplayCondition=void 0;(0,a.Z)(e.heightOffset)&&(n.heightOffset=e.heightOffset.evaluate(n)),(0,a.Z)(e.anchorLineEnabled)&&(n.anchorLineEnabled=e.anchorLineEnabled.evaluate(n)),(0,a.Z)(e.anchorLineColor)&&(n.anchorLineColor=e.anchorLineColor.evaluateColor(n,I)),(0,a.Z)(e.image)?n.image=e.image.evaluate(n):n.image=void 0,(0,a.Z)(e.disableDepthTestDistance)&&(n.disableDepthTestDistance=e.disableDepthTestDistance.evaluate(n)),(0,a.Z)(e.horizontalOrigin)&&(n.horizontalOrigin=e.horizontalOrigin.evaluate(n)),(0,a.Z)(e.verticalOrigin)&&(n.verticalOrigin=e.verticalOrigin.evaluate(n)),(0,a.Z)(e.labelHorizontalOrigin)&&(n.labelHorizontalOrigin=e.labelHorizontalOrigin.evaluate(n)),(0,a.Z)(e.labelVerticalOrigin)&&(n.labelVerticalOrigin=e.labelVerticalOrigin.evaluate(n))}},w.prototype.update=function(e){(function(e,t){if((0,a.Z)(e._billboardCollection))return;let i;if(!(0,a.Z)(e._verticesPromise)){i=e._positions;let r=e._packedBuffer;(0,a.Z)(r)||(i=e._positions=(0,n.Z)(i),e._batchIds=(0,n.Z)(e._batchIds),r=e._packedBuffer=function(e,t){const i=e._rectangle,n=e._minHeight,r=e._maxHeight,o=2+d.Z.packedLength+l.Z.packedLength,s=new Float64Array(o);let a=0;return s[a++]=n,s[a++]=r,d.Z.pack(i,s,a),a+=d.Z.packedLength,l.Z.pack(t,s,a),s}(e,t));const o=[i.buffer,r.buffer],s={positions:i.buffer,packedBuffer:r.buffer},c=e._verticesPromise=v.scheduleTask(s,o);if(!(0,a.Z)(c))return;c.then((function(t){e._positions=new Float64Array(t.positions),e._ready=!0}))}if(e._ready&&!(0,a.Z)(e._billboardCollection)){i=e._positions;const t=e._batchTable,n=e._batchIds,r=e._billboardCollection=new m.Z({batchTable:t}),s=e._labelCollection=new g.Z({batchTable:t}),a=e._polylineCollection=new b.Z;a._useHighlightColor=!0;const c=i.length/3;for(let e=0;e<c;++e){const t=n[e],c=o.Z.unpack(i,3*e,T),u=r.add();u.position=c,u._batchIndex=t;const l=s.add();l.text=" ",l.position=c,l._batchIndex=t,a.add().positions=[o.Z.clone(c),o.Z.clone(c)]}e._positions=void 0,e._packedBuffer=void 0}})(this,e.mapProjection.ellipsoid),this._ready&&(this._polylineCollection.update(e),this._billboardCollection.update(e),this._labelCollection.update(e),this._resolvedPromise||(this._readyPromise.resolve(),this._resolvedPromise=!0))},w.prototype.isDestroyed=function(){return!1},w.prototype.destroy=function(){return this._billboardCollection=this._billboardCollection&&this._billboardCollection.destroy(),this._labelCollection=this._labelCollection&&this._labelCollection.destroy(),this._polylineCollection=this._polylineCollection&&this._polylineCollection.destroy(),(0,c.Z)(this)};const B=w},696469:(e,t,i)=>{"use strict";i.d(t,{Z:()=>A});var n=i(155597),r=i(919382),o=i(545125),s=i(406144),a=i(426468),c=i(54879),u=i(253316),l=i(546135),h=i(126874),d=i(523501),f=i(890357),p=i(527758),m=i(576049),_=i(844702),Z=i(388181);function g(e){this._batchTable=e.batchTable,this._batchIds=e.batchIds,this._positions=e.positions,this._counts=e.counts,this._indices=e.indices,this._indexCounts=e.indexCounts,this._indexOffsets=void 0,this._batchTableColors=void 0,this._packedBuffer=void 0,this._batchedPositions=void 0,this._transferrableBatchIds=void 0,this._vertexBatchIds=void 0,this._ellipsoid=(0,s.Z)(e.ellipsoid,u.Z.WGS84),this._minimumHeight=e.minimumHeight,this._maximumHeight=e.maximumHeight,this._polygonMinimumHeights=e.polygonMinimumHeights,this._polygonMaximumHeights=e.polygonMaximumHeights,this._center=(0,s.Z)(e.center,r.Z.ZERO),this._rectangle=e.rectangle,this._center=void 0,this._boundingVolume=e.boundingVolume,this._boundingVolumes=void 0,this._batchedIndices=void 0,this._ready=!1,this._readyPromise=p.Z.defer(),this._verticesPromise=void 0,this._primitive=void 0,this.debugWireframe=!1,this.forceRebatch=!1,this.classificationType=m.Z.BOTH}Object.defineProperties(g.prototype,{trianglesLength:{get:function(){return(0,a.Z)(this._primitive)?this._primitive.trianglesLength:0}},geometryByteLength:{get:function(){return(0,a.Z)(this._primitive)?this._primitive.geometryByteLength:0}},readyPromise:{get:function(){return this._readyPromise.promise}}});const y=new f.Z("createVectorTilePolygons",5),b=new o.Z;g.prototype.createFeatures=function(e,t){this._primitive.createFeatures(e,t)},g.prototype.applyDebugSettings=function(e,t){this._primitive.applyDebugSettings(e,t)},g.prototype.applyStyle=function(e,t){this._primitive.applyStyle(e,t)},g.prototype.updateCommands=function(e,t){this._primitive.updateCommands(e,t)},g.prototype.update=function(e){(function(e){if(!(0,a.Z)(e._primitive)){if(!(0,a.Z)(e._verticesPromise)){let t=e._positions,i=e._counts,s=e._indexCounts,c=e._indices,f=e._transferrableBatchIds,m=e._batchTableColors,Z=e._packedBuffer;if(!(0,a.Z)(m)){t=e._positions=(0,n.Z)(e._positions),i=e._counts=(0,n.Z)(e._counts),s=e._indexCounts=(0,n.Z)(e._indexCounts),c=e._indices=(0,n.Z)(e._indices),e._center=e._ellipsoid.cartographicToCartesian(d.Z.center(e._rectangle)),f=e._transferrableBatchIds=new Uint32Array(e._batchIds),m=e._batchTableColors=new Uint32Array(f.length);const o=e._batchTable,a=m.length;for(let e=0;e<a;++e){const t=o.getColor(e,b);m[e]=t.toRgba()}Z=e._packedBuffer=function(e){const t=new Float64Array(3+r.Z.packedLength+u.Z.packedLength+d.Z.packedLength);let i=0;return t[i++]=e._indices.BYTES_PER_ELEMENT,t[i++]=e._minimumHeight,t[i++]=e._maximumHeight,r.Z.pack(e._center,t,i),i+=r.Z.packedLength,u.Z.pack(e._ellipsoid,t,i),i+=u.Z.packedLength,d.Z.pack(e._rectangle,t,i),t}(e)}const g=[t.buffer,i.buffer,s.buffer,c.buffer,f.buffer,m.buffer,Z.buffer],A={packedBuffer:Z.buffer,positions:t.buffer,counts:i.buffer,indexCounts:s.buffer,indices:c.buffer,batchIds:f.buffer,batchTableColors:m.buffer};let w=e._polygonMinimumHeights,v=e._polygonMaximumHeights;(0,a.Z)(w)&&(0,a.Z)(v)&&(w=(0,n.Z)(w),v=(0,n.Z)(v),g.push(w.buffer,v.buffer),A.minimumHeights=w,A.maximumHeights=v);const T=e._verticesPromise=y.scheduleTask(A,g);if(!(0,a.Z)(T))return;(0,p.Z)(T,(function(t){e._positions=void 0,e._counts=void 0,e._polygonMinimumHeights=void 0,e._polygonMaximumHeights=void 0;const i=new Float64Array(t.packedBuffer),n=i[0];!function(e,t){let i=1;const n=t[i++],r=e._boundingVolumes=new Array(n);for(let e=0;e<n;++e)r[e]=h.Z.unpack(t,i),i+=h.Z.packedLength;const s=t[i++],a=e._batchedIndices=new Array(s);for(let e=0;e<s;++e){const n=o.Z.unpack(t,i);i+=o.Z.packedLength;const r=t[i++],s=t[i++],c=t[i++],u=new Array(c);for(let e=0;e<c;++e)u[e]=t[i++];a[e]=new _.Z({color:n,offset:r,count:s,batchIds:u})}}(e,i),e._indices=2===l.Z.getSizeInBytes(n)?new Uint16Array(t.indices):new Uint32Array(t.indices),e._indexOffsets=new Uint32Array(t.indexOffsets),e._indexCounts=new Uint32Array(t.indexCounts),e._batchedPositions=new Float32Array(t.positions),e._vertexBatchIds=new Uint16Array(t.batchIds),e._ready=!0}))}e._ready&&!(0,a.Z)(e._primitive)&&(e._primitive=new Z.Z({batchTable:e._batchTable,positions:e._batchedPositions,batchIds:e._batchIds,vertexBatchIds:e._vertexBatchIds,indices:e._indices,indexOffsets:e._indexOffsets,indexCounts:e._indexCounts,batchedIndices:e._batchedIndices,boundingVolume:e._boundingVolume,boundingVolumes:e._boundingVolumes,center:e._center}),e._batchTable=void 0,e._batchIds=void 0,e._positions=void 0,e._counts=void 0,e._indices=void 0,e._indexCounts=void 0,e._indexOffsets=void 0,e._batchTableColors=void 0,e._packedBuffer=void 0,e._batchedPositions=void 0,e._transferrableBatchIds=void 0,e._vertexBatchIds=void 0,e._ellipsoid=void 0,e._minimumHeight=void 0,e._maximumHeight=void 0,e._polygonMinimumHeights=void 0,e._polygonMaximumHeights=void 0,e._center=void 0,e._rectangle=void 0,e._boundingVolume=void 0,e._boundingVolumes=void 0,e._batchedIndices=void 0,e._verticesPromise=void 0,e._readyPromise.resolve())}})(this),this._ready&&(this._primitive.debugWireframe=this.debugWireframe,this._primitive.forceRebatch=this.forceRebatch,this._primitive.classificationType=this.classificationType,this._primitive.update(e))},g.prototype.isDestroyed=function(){return!1},g.prototype.destroy=function(){return this._primitive=this._primitive&&this._primitive.destroy(),(0,c.Z)(this)};const A=g},566542:(e,t,i)=>{"use strict";i.d(t,{Z:()=>L});var n=i(155597),r=i(919382),o=i(545125),s=i(997274),a=i(406144),c=i(426468),u=i(54879),l=i(253316),h=i(488802),d=i(546135),f=i(583917),p=i(523501),m=i(890357),_=i(636807),Z=i(50720),g=i(247913),y=i(842649),b=i(364232),A=i(928096),w=i(279427),v=i(676311),T=i(648298),C=i(310871),E=i(527758),x=i(451356),S=i(268053);function O(e){this._positions=e.positions,this._widths=e.widths,this._counts=e.counts,this._batchIds=e.batchIds,this._ellipsoid=(0,a.Z)(e.ellipsoid,l.Z.WGS84),this._minimumHeight=e.minimumHeight,this._maximumHeight=e.maximumHeight,this._center=e.center,this._rectangle=e.rectangle,this._boundingVolume=e.boundingVolume,this._batchTable=e.batchTable,this._va=void 0,this._sp=void 0,this._rs=void 0,this._uniformMap=void 0,this._command=void 0,this._transferrableBatchIds=void 0,this._packedBuffer=void 0,this._keepDecodedPositions=e.keepDecodedPositions,this._decodedPositions=void 0,this._decodedPositionOffsets=void 0,this._currentPositions=void 0,this._previousPositions=void 0,this._nextPositions=void 0,this._expandAndWidth=void 0,this._vertexBatchIds=void 0,this._indices=void 0,this._constantColor=o.Z.clone(o.Z.WHITE),this._highlightColor=this._constantColor,this._trianglesLength=0,this._geometryByteLength=0,this._ready=!1,this._readyPromise=E.Z.defer(),this._verticesPromise=void 0}Object.defineProperties(O.prototype,{trianglesLength:{get:function(){return this._trianglesLength}},geometryByteLength:{get:function(){return this._geometryByteLength}},readyPromise:{get:function(){return this._readyPromise.promise}}});const I=new m.Z("createVectorTilePolylines",5),D={previousPosition:0,currentPosition:1,nextPosition:2,expandAndWidth:3,a_batchId:4};const P=new f.Z,R=new r.Z;O.getPolylinePositions=function(e,t){const i=e._batchIds,n=e._decodedPositions,r=e._decodedPositionOffsets;if(!(0,c.Z)(i)||!(0,c.Z)(n))return;let o,s;const a=i.length;let u=0,l=0;for(o=0;o<a;++o)i[o]===t&&(u+=r[o+1]-r[o]);if(0===u)return;const h=new Float64Array(3*u);for(o=0;o<a;++o)if(i[o]===t){const e=r[o],t=r[o+1]-e;for(s=0;s<t;++s){const t=3*(e+s);h[l++]=n[t],h[l++]=n[t+1],h[l++]=n[t+2]}}return h},O.prototype.getPositions=function(e){return O.getPolylinePositions(this,e)},O.prototype.createFeatures=function(e,t){const i=this._batchIds,n=i.length;for(let r=0;r<n;++r){const n=i[r];t[n]=new S.Z(e,n)}},O.prototype.applyDebugSettings=function(e,t){this._highlightColor=e?t:this._constantColor};const B=new o.Z,M=o.Z.WHITE;O.prototype.applyStyle=function(e,t){if(!(0,c.Z)(e))return void function(e,t){const i=e._batchIds,n=i.length;for(let e=0;e<n;++e){const n=t[i[e]];n.show=!0,n.color=o.Z.WHITE}}(this,t);const i=this._batchIds,n=i.length;for(let r=0;r<n;++r){const n=t[i[r]];n.color=(0,c.Z)(e.color)?e.color.evaluateColor(n,B):M,n.show=!(0,c.Z)(e.show)||e.show.evaluate(n)}},O.prototype.update=function(e){const t=e.context;if(function(e,t){if(!(0,c.Z)(e._va)){if(!(0,c.Z)(e._verticesPromise)){let t=e._positions,i=e._widths,o=e._counts,s=e._transferrableBatchIds,a=e._packedBuffer;(0,c.Z)(a)||(t=e._positions=(0,n.Z)(t),i=e._widths=(0,n.Z)(i),o=e._counts=(0,n.Z)(o),s=e._transferrableBatchIds=(0,n.Z)(e._batchIds),a=e._packedBuffer=function(e){const t=e._rectangle,i=e._minimumHeight,n=e._maximumHeight,o=e._ellipsoid,s=e._center,a=2+p.Z.packedLength+l.Z.packedLength+r.Z.packedLength,c=new Float64Array(a);let u=0;return c[u++]=i,c[u++]=n,p.Z.pack(t,c,u),u+=p.Z.packedLength,l.Z.pack(o,c,u),u+=l.Z.packedLength,r.Z.pack(s,c,u),c}(e));const u=[t.buffer,i.buffer,o.buffer,s.buffer,a.buffer],h={positions:t.buffer,widths:i.buffer,counts:o.buffer,batchIds:s.buffer,packedBuffer:a.buffer,keepDecodedPositions:e._keepDecodedPositions},f=e._verticesPromise=I.scheduleTask(h,u);if(!(0,c.Z)(f))return;(0,E.Z)(f).then((function(t){e._keepDecodedPositions&&(e._decodedPositions=new Float64Array(t.decodedPositions),e._decodedPositionOffsets=new Uint32Array(t.decodedPositionOffsets)),e._currentPositions=new Float32Array(t.currentPositions),e._previousPositions=new Float32Array(t.previousPositions),e._nextPositions=new Float32Array(t.nextPositions),e._expandAndWidth=new Float32Array(t.expandAndWidth),e._vertexBatchIds=new Uint16Array(t.batchIds);const i=t.indexDatatype;e._indices=i===d.Z.UNSIGNED_SHORT?new Uint16Array(t.indices):new Uint32Array(t.indices),e._ready=!0})).otherwise((function(t){e._readyPromise.reject(t)}))}if(e._ready&&!(0,c.Z)(e._va)){const i=e._currentPositions,n=e._previousPositions,r=e._nextPositions,o=e._expandAndWidth,a=e._vertexBatchIds,c=e._indices;let u=n.byteLength+i.byteLength+r.byteLength;u+=o.byteLength+a.byteLength+c.byteLength,e._trianglesLength=c.length/3,e._geometryByteLength=u;const l=_.Z.createVertexBuffer({context:t,typedArray:n,usage:Z.Z.STATIC_DRAW}),h=_.Z.createVertexBuffer({context:t,typedArray:i,usage:Z.Z.STATIC_DRAW}),f=_.Z.createVertexBuffer({context:t,typedArray:r,usage:Z.Z.STATIC_DRAW}),p=_.Z.createVertexBuffer({context:t,typedArray:o,usage:Z.Z.STATIC_DRAW}),m=_.Z.createVertexBuffer({context:t,typedArray:a,usage:Z.Z.STATIC_DRAW}),g=_.Z.createIndexBuffer({context:t,typedArray:c,usage:Z.Z.STATIC_DRAW,indexDatatype:2===c.BYTES_PER_ELEMENT?d.Z.UNSIGNED_SHORT:d.Z.UNSIGNED_INT}),y=[{index:D.previousPosition,vertexBuffer:l,componentDatatype:s.Z.FLOAT,componentsPerAttribute:3},{index:D.currentPosition,vertexBuffer:h,componentDatatype:s.Z.FLOAT,componentsPerAttribute:3},{index:D.nextPosition,vertexBuffer:f,componentDatatype:s.Z.FLOAT,componentsPerAttribute:3},{index:D.expandAndWidth,vertexBuffer:p,componentDatatype:s.Z.FLOAT,componentsPerAttribute:2},{index:D.a_batchId,vertexBuffer:m,componentDatatype:s.Z.UNSIGNED_SHORT,componentsPerAttribute:1}];e._va=new v.Z({context:t,attributes:y,indexBuffer:g}),e._positions=void 0,e._widths=void 0,e._counts=void 0,e._ellipsoid=void 0,e._minimumHeight=void 0,e._maximumHeight=void 0,e._rectangle=void 0,e._transferrableBatchIds=void 0,e._packedBuffer=void 0,e._currentPositions=void 0,e._previousPositions=void 0,e._nextPositions=void 0,e._expandAndWidth=void 0,e._vertexBatchIds=void 0,e._indices=void 0,e._readyPromise.resolve()}}}(this,t),function(e,t){(0,c.Z)(e._uniformMap)||(e._uniformMap={u_modifiedModelView:function(){const i=t.uniformState.view;return f.Z.clone(i,P),f.Z.multiplyByPoint(P,e._center,R),f.Z.setTranslation(P,R,P),P},u_highlightColor:function(){return e._highlightColor}})}(this,t),function(e,t){if((0,c.Z)(e._sp))return;const i=e._batchTable,n=i.getVertexShaderCallback(!1,"a_batchId",void 0)(C.Z),r=i.getFragmentShaderCallback(!1,void 0,!1)("uniform vec4 u_highlightColor; \nvoid main()\n{\n gl_FragColor = u_highlightColor;\n}\n"),o=new w.Z({defines:["VECTOR_TILE",h.Z.isInternetExplorer()?"":"CLIP_POLYLINE"],sources:[T.Z,n]}),s=new w.Z({defines:["VECTOR_TILE"],sources:[r]});e._sp=A.Z.fromCache({context:t,vertexShaderSource:o,fragmentShaderSource:s,attributeLocations:D})}(this,t),i=this,(0,c.Z)(i._rs)||(i._rs=b.Z.fromCache({blending:x.Z.ALPHA_BLEND,depthMask:!1,depthTest:{enabled:!0},polygonOffset:{enabled:!0,factor:-5,units:-5}})),!this._ready)return;var i;const o=e.passes;(o.render||o.pick)&&function(e,t){if(!(0,c.Z)(e._command)){const t=e._batchTable.getUniformMapCallback()(e._uniformMap);e._command=new g.Z({owner:e,vertexArray:e._va,renderState:e._rs,shaderProgram:e._sp,uniformMap:t,boundingVolume:e._boundingVolume,pass:y.Z.TRANSLUCENT,pickId:e._batchTable.getPickId()})}t.commandList.push(e._command)}(this,e)},O.prototype.isDestroyed=function(){return!1},O.prototype.destroy=function(){return this._va=this._va&&this._va.destroy(),this._sp=this._sp&&this._sp.destroy(),(0,u.Z)(this)};const L=O},388181:(e,t,i)=>{"use strict";i.d(t,{Z:()=>q});var n=i(919382),r=i(545125),o=i(997274),s=i(406144),a=i(426468),c=i(54879),u=i(546135),l=i(583917),h=i(195809),d=i(636807),f=i(50720),p=i(247913),m=i(842649),_=i(364232),Z=i(928096),g=i(279427),y=i(676311),b=i(936342),A=i(108696),w=i(451356),v=i(268053),T=i(576049),C=i(329286),E=i(389518),x=i(42973),S=i(786861),O=i(301859),I=i(844702);function D(e){e=(0,s.Z)(e,s.Z.EMPTY_OBJECT),this._batchTable=e.batchTable,this._batchIds=e.batchIds,this._positions=e.positions,this._vertexBatchIds=e.vertexBatchIds,this._indices=e.indices,this._indexCounts=e.indexCounts,this._indexOffsets=e.indexOffsets,this._batchedIndices=e.batchedIndices,this._boundingVolume=e.boundingVolume,this._boundingVolumes=e.boundingVolumes,this._center=(0,s.Z)(e.center,n.Z.ZERO),this._va=void 0,this._sp=void 0,this._spStencil=void 0,this._spPick=void 0,this._uniformMap=void 0,this._vaSwap=void 0,this._rsStencilDepthPass=void 0,this._rsStencilDepthPass3DTiles=void 0,this._rsColorPass=void 0,this._rsPickPass=void 0,this._rsWireframe=void 0,this._commands=[],this._commandsIgnoreShow=[],this._pickCommands=[],this._constantColor=r.Z.clone(r.Z.WHITE),this._highlightColor=this._constantColor,this._batchDirty=!0,this._pickCommandsDirty=!0,this._framesSinceLastRebatch=0,this._updatingAllCommands=!1,this._trianglesLength=this._indices.length/3,this._geometryByteLength=this._indices.byteLength+this._positions.byteLength+this._vertexBatchIds.byteLength,this.debugWireframe=!1,this._debugWireframe=this.debugWireframe,this._wireframeDirty=!1,this.forceRebatch=!1,this.classificationType=(0,s.Z)(e.classificationType,T.Z.BOTH),this._vertexShaderSource=e._vertexShaderSource,this._fragmentShaderSource=e._fragmentShaderSource,this._attributeLocations=e._attributeLocations,this._uniformMap=e._uniformMap,this._pickId=e._pickId,this._modelMatrix=e._modelMatrix,this._boundingSphere=e._boundingSphere,this._batchIdLookUp={};const t=this._batchIds.length;for(let e=0;e<t;++e){const t=this._batchIds[e];this._batchIdLookUp[t]=e}}Object.defineProperties(D.prototype,{trianglesLength:{get:function(){return this._trianglesLength}},geometryByteLength:{get:function(){return this._geometryByteLength}}});const P={position:0,a_batchId:1};function R(e){const t=e?S.Z.EQUAL:S.Z.ALWAYS;return{colorMask:{red:!1,green:!1,blue:!1,alpha:!1},stencilTest:{enabled:!0,frontFunction:t,frontOperation:{fail:O.Z.KEEP,zFail:O.Z.DECREMENT_WRAP,zPass:O.Z.KEEP},backFunction:t,backOperation:{fail:O.Z.KEEP,zFail:O.Z.INCREMENT_WRAP,zPass:O.Z.KEEP},reference:x.Z.CESIUM_3D_TILE_MASK,mask:x.Z.CESIUM_3D_TILE_MASK},stencilMask:x.Z.CLASSIFICATION_MASK,depthTest:{enabled:!0,func:C.Z.LESS_OR_EQUAL},depthMask:!1}}const B={stencilTest:{enabled:!0,frontFunction:S.Z.NOT_EQUAL,frontOperation:{fail:O.Z.ZERO,zFail:O.Z.ZERO,zPass:O.Z.ZERO},backFunction:S.Z.NOT_EQUAL,backOperation:{fail:O.Z.ZERO,zFail:O.Z.ZERO,zPass:O.Z.ZERO},reference:0,mask:x.Z.CLASSIFICATION_MASK},stencilMask:x.Z.CLASSIFICATION_MASK,depthTest:{enabled:!1},depthMask:!1,blending:w.Z.PRE_MULTIPLIED_ALPHA_BLEND},M={stencilTest:{enabled:!0,frontFunction:S.Z.NOT_EQUAL,frontOperation:{fail:O.Z.ZERO,zFail:O.Z.ZERO,zPass:O.Z.ZERO},backFunction:S.Z.NOT_EQUAL,backOperation:{fail:O.Z.ZERO,zFail:O.Z.ZERO,zPass:O.Z.ZERO},reference:0,mask:x.Z.CLASSIFICATION_MASK},stencilMask:x.Z.CLASSIFICATION_MASK,depthTest:{enabled:!1},depthMask:!1},L=new l.Z,N=new n.Z;function F(e,t,i,n,r,o,s){const a=e.constructor.BYTES_PER_ELEMENT,c=o.length;for(let u=0;u<c;++u){const c=s[o[u]],l=n[c],h=r[c],d=new e.constructor(e.buffer,a*l,h);t.set(d,i),n[c]=i,i+=h}return i}function k(e,t,i,n,r,o,s){const a=e.bytesPerIndex,c=o.length;for(let u=0;u<c;++u){const c=s[o[u]],l=n[c],h=r[c];t.copyFromBuffer(e,l*a,i*a,h*a),n[c]=i,i+=h}return i}function U(e,t){return t.color.toRgba()-e.color.toRgba()}D.prototype.createFeatures=function(e,t){const i=this._batchIds,n=i.length;for(let r=0;r<n;++r){const n=i[r];t[n]=new v.Z(e,n)}},D.prototype.applyDebugSettings=function(e,t){this._highlightColor=e?t:this._constantColor};const V=new r.Z,z=r.Z.WHITE,H=/\$/;function G(e,t,i,n){const r=e.classificationType,o=r!==T.Z.CESIUM_3D_TILE,s=r!==T.Z.TERRAIN,c=t.commandList;let u,l,h=i.length;for(l=0;l<h;++l)o&&(u=i[l],u.pass=m.Z.TERRAIN_CLASSIFICATION,c.push(u)),s&&(u=i[l].derivedCommands.tileset,u.pass=m.Z.CESIUM_3D_TILE_CLASSIFICATION,c.push(u));if(t.invertClassification&&(0,a.Z)(n))for(h=n.length,l=0;l<h;++l)c.push(n[l])}D.prototype.applyStyle=function(e,t){if(!(0,a.Z)(e))return void function(e,t){e._updatingAllCommands=!0;const i=e._batchIds;let n,o=i.length;for(n=0;n<o;++n){const e=t[i[n]];e.show=!0,e.color=r.Z.WHITE}const s=e._batchedIndices;for(o=s.length,n=0;n<o;++n)s[n].color=r.Z.clone(r.Z.WHITE);e._updatingAllCommands=!1,e._batchDirty=!0}(this,t);const i=e.color,n=i instanceof E.Z&&!H.test(i.expression);this._updatingAllCommands=n;const o=this._batchIds;let s,c=o.length;for(s=0;s<c;++s){const i=t[o[s]];i.color=(0,a.Z)(e.color)?e.color.evaluateColor(i,V):z,i.show=!(0,a.Z)(e.show)||e.show.evaluate(i)}if(n){const e=this._batchedIndices;for(c=e.length,s=0;s<c;++s)e[s].color=r.Z.clone(r.Z.WHITE);this._updatingAllCommands=!1,this._batchDirty=!0}},D.prototype.updateCommands=function(e,t){if(this._updatingAllCommands)return;const i=this._batchIdLookUp,n=i[e];if(!(0,a.Z)(n))return;const o=this._indexOffsets,s=this._indexCounts,c=o[n],u=s[n],l=this._batchedIndices,h=l.length;let d;for(d=0;d<h;++d){const e=l[d].offset,t=l[d].count;if(c>=e&&c<e+t)break}l.push(new I.Z({color:r.Z.clone(t),offset:c,count:u,batchIds:[e]}));const f=[],p=[],m=l[d].batchIds,_=m.length;for(let t=0;t<_;++t){const n=m[t];n!==e&&(o[i[n]]<c?f.push(n):p.push(n))}0!==p.length&&l.push(new I.Z({color:r.Z.clone(l[d].color),offset:c+u,count:l[d].offset+l[d].count-(c+u),batchIds:p})),0!==f.length?(l[d].count=c-l[d].offset,l[d].batchIds=f):l.splice(d,1),this._batchDirty=!0},D.prototype.update=function(e){const t=e.context;var i;!function(e,t){if((0,a.Z)(e._va))return;const i=d.Z.createVertexBuffer({context:t,typedArray:e._positions,usage:f.Z.STATIC_DRAW}),n=d.Z.createVertexBuffer({context:t,typedArray:e._vertexBatchIds,usage:f.Z.STATIC_DRAW}),r=d.Z.createIndexBuffer({context:t,typedArray:e._indices,usage:f.Z.DYNAMIC_DRAW,indexDatatype:2===e._indices.BYTES_PER_ELEMENT?u.Z.UNSIGNED_SHORT:u.Z.UNSIGNED_INT}),s=[{index:0,vertexBuffer:i,componentDatatype:o.Z.fromTypedArray(e._positions),componentsPerAttribute:3},{index:1,vertexBuffer:n,componentDatatype:o.Z.fromTypedArray(e._vertexBatchIds),componentsPerAttribute:1}];e._va=new y.Z({context:t,attributes:s,indexBuffer:r}),t.webgl2&&(e._vaSwap=new y.Z({context:t,attributes:s,indexBuffer:d.Z.createIndexBuffer({context:t,sizeInBytes:r.sizeInBytes,usage:f.Z.DYNAMIC_DRAW,indexDatatype:r.indexDatatype})})),e._batchedPositions=void 0,e._transferrableBatchIds=void 0,e._vertexBatchIds=void 0,e._verticesPromise=void 0}(this,t),function(e,t){if((0,a.Z)(e._sp))return;const i=e._batchTable,n=(0,s.Z)(e._attributeLocations,P);let r=e._pickId;const o=e._vertexShaderSource;let c=e._fragmentShaderSource;if((0,a.Z)(o))return e._sp=Z.Z.fromCache({context:t,vertexShaderSource:o,fragmentShaderSource:c,attributeLocations:n}),e._spStencil=e._sp,c=g.Z.replaceMain(c,"czm_non_pick_main"),c=c+"void main() \n{ \n czm_non_pick_main(); \n gl_FragColor = "+r+"; \n} \n",void(e._spPick=Z.Z.fromCache({context:t,vertexShaderSource:o,fragmentShaderSource:c,attributeLocations:n}));const u=i.getVertexShaderCallback(!1,"a_batchId",void 0)(A.Z);let l=i.getFragmentShaderCallback(!1,void 0,!0)(b.Z);r=i.getPickId();let h=new g.Z({sources:[u]}),d=new g.Z({defines:["VECTOR_TILE"],sources:[l]});e._sp=Z.Z.fromCache({context:t,vertexShaderSource:h,fragmentShaderSource:d,attributeLocations:n}),h=new g.Z({sources:[A.Z]}),d=new g.Z({defines:["VECTOR_TILE"],sources:[b.Z]}),e._spStencil=Z.Z.fromCache({context:t,vertexShaderSource:h,fragmentShaderSource:d,attributeLocations:n}),l=g.Z.replaceMain(l,"czm_non_pick_main"),l=l+"\nvoid main() \n{ \n czm_non_pick_main(); \n gl_FragColor = "+r+"; \n} \n";const f=new g.Z({sources:[u]}),p=new g.Z({defines:["VECTOR_TILE"],sources:[l]});e._spPick=Z.Z.fromCache({context:t,vertexShaderSource:f,fragmentShaderSource:p,attributeLocations:n})}(this,t),i=this,(0,a.Z)(i._rsStencilDepthPass)||(i._rsStencilDepthPass=_.Z.fromCache(R(!1)),i._rsStencilDepthPass3DTiles=_.Z.fromCache(R(!0)),i._rsColorPass=_.Z.fromCache(B),i._rsPickPass=_.Z.fromCache(M)),function(e,t){if((0,a.Z)(e._uniformMap))return;const i={u_modifiedModelViewProjection:function(){const i=t.uniformState.view,n=t.uniformState.projection;return l.Z.clone(i,L),l.Z.multiplyByPoint(L,e._center,N),l.Z.setTranslation(L,N,L),l.Z.multiply(n,L,L),L},u_highlightColor:function(){return e._highlightColor}};e._uniformMap=e._batchTable.getUniformMapCallback()(i)}(this,t);const n=e.passes;n.render&&(function(e,t){const i=function(e,t){if(!e._batchDirty)return!1;const i=e._batchedIndices,n=i.length;let o=!1;const s={};for(let e=0;e<n;++e){const t=i[e].color.toRgba();if((0,a.Z)(s[t])){o=!0;break}s[t]=!0}return o?o&&!e.forceRebatch&&e._framesSinceLastRebatch<120?void++e._framesSinceLastRebatch:(i.sort(U),t.webgl2?function(e,t){const i=e._indexOffsets,n=e._indexCounts,o=e._batchIdLookUp;let s=t.pop();const a=[s],c=e._va.indexBuffer,u=e._vaSwap.indexBuffer;let l=k(c,u,0,i,n,s.batchIds,o);for(s.offset=0,s.count=l;t.length>0;){const e=t.pop();if(r.Z.equals(e.color,s.color))l=k(c,u,l,i,n,e.batchIds,o),s.batchIds=s.batchIds.concat(e.batchIds),s.count=l-s.offset;else{const t=l;l=k(c,u,l,i,n,e.batchIds,o),e.offset=t,e.count=l-t,a.push(e),s=e}}const h=e._va;e._va=e._vaSwap,e._vaSwap=h,e._batchedIndices=a}(e,i):function(e,t){const i=e._indices,n=e._indexOffsets,o=e._indexCounts,s=e._batchIdLookUp,a=new i.constructor(i.length);let c=t.pop();const u=[c];let l=F(i,a,0,n,o,c.batchIds,s);for(c.offset=0,c.count=l;t.length>0;){const e=t.pop();if(r.Z.equals(e.color,c.color))l=F(i,a,l,n,o,e.batchIds,s),c.batchIds=c.batchIds.concat(e.batchIds),c.count=l-c.offset;else{const t=l;l=F(i,a,l,n,o,e.batchIds,s),e.offset=t,e.count=l-t,u.push(e),c=e}}e._va.indexBuffer.copyFromArrayView(a),e._indices=a,e._batchedIndices=u}(e,i),e._framesSinceLastRebatch=0,e._batchDirty=!1,e._pickCommandsDirty=!0,e._wireframeDirty=!0,!0):(e._batchDirty=!1,!1)}(e,t),n=e._commands,o=e._batchedIndices,c=o.length,u=2*c;if((0,a.Z)(n)&&!i&&n.length===u)return;n.length=u;const h=e._va,d=e._sp,f=(0,s.Z)(e._modelMatrix,l.Z.IDENTITY),_=e._uniformMap,Z=e._boundingVolume;for(let t=0;t<c;++t){const i=o[t].offset,r=o[t].count;let s=n[2*t];(0,a.Z)(s)||(s=n[2*t]=new p.Z({owner:e})),s.vertexArray=h,s.modelMatrix=f,s.offset=i,s.count=r,s.renderState=e._rsStencilDepthPass,s.shaderProgram=d,s.uniformMap=_,s.boundingVolume=Z,s.cull=!1,s.pass=m.Z.TERRAIN_CLASSIFICATION;const c=p.Z.shallowClone(s,s.derivedCommands.tileset);c.renderState=e._rsStencilDepthPass3DTiles,c.pass=m.Z.CESIUM_3D_TILE_CLASSIFICATION,s.derivedCommands.tileset=c;let u=n[2*t+1];(0,a.Z)(u)||(u=n[2*t+1]=new p.Z({owner:e})),u.vertexArray=h,u.modelMatrix=f,u.offset=i,u.count=r,u.renderState=e._rsColorPass,u.shaderProgram=d,u.uniformMap=_,u.boundingVolume=Z,u.cull=!1,u.pass=m.Z.TERRAIN_CLASSIFICATION;const l=p.Z.shallowClone(u,u.derivedCommands.tileset);l.pass=m.Z.CESIUM_3D_TILE_CLASSIFICATION,u.derivedCommands.tileset=l}e._commandsDirty=!0}(this,t),function(e,t){if(e.classificationType===T.Z.TERRAIN||!t.invertClassification||(0,a.Z)(e._commandsIgnoreShow)&&!e._commandsDirty)return;const i=e._commands,n=e._commandsIgnoreShow,r=e._spStencil,o=i.length,s=n.length=o/2;let c=0;for(let e=0;e<s;++e){const t=n[e]=p.Z.shallowClone(i[c],n[e]);t.shaderProgram=r,t.pass=m.Z.CESIUM_3D_TILE_CLASSIFICATION_IGNORE_SHOW,c+=2}e._commandsDirty=!1}(this,e),function(e){let t,i,n=e.debugWireframe===e._debugWireframe;if(n=n&&!(e.debugWireframe&&e._wireframeDirty),n)return;(0,a.Z)(e._rsWireframe)||(e._rsWireframe=_.Z.fromCache({})),e.debugWireframe?(t=e._rsWireframe,i=h.Z.LINES):(t=e._rsColorPass,i=h.Z.TRIANGLES);const r=e._commands,o=r.length;for(let e=0;e<o;e+=2){const n=r[e+1];n.renderState=t,n.primitiveType=i}e._debugWireframe=e.debugWireframe,e._wireframeDirty=!1}(this),this._debugWireframe?function(e,t){const i=e.commandList,n=t.length;for(let e=0;e<n;e+=2){const n=t[e+1];n.pass=m.Z.OPAQUE,i.push(n)}}(e,this._commands):G(this,e,this._commands,this._commandsIgnoreShow)),n.pick&&(function(e){if(!e._pickCommandsDirty)return;const t=e._indexOffsets.length,i=e._pickCommands;i.length=2*t;const n=e._va,r=e._spStencil,o=e._spPick,c=(0,s.Z)(e._modelMatrix,l.Z.IDENTITY),u=e._uniformMap;for(let s=0;s<t;++s){const t=e._indexOffsets[s],l=e._indexCounts[s],h=(0,a.Z)(e._boundingVolumes)?e._boundingVolumes[s]:e.boundingVolume;let d=i[2*s];(0,a.Z)(d)||(d=i[2*s]=new p.Z({owner:e,pickOnly:!0})),d.vertexArray=n,d.modelMatrix=c,d.offset=t,d.count=l,d.renderState=e._rsStencilDepthPass,d.shaderProgram=r,d.uniformMap=u,d.boundingVolume=h,d.pass=m.Z.TERRAIN_CLASSIFICATION;const f=p.Z.shallowClone(d,d.derivedCommands.tileset);f.renderState=e._rsStencilDepthPass3DTiles,f.pass=m.Z.CESIUM_3D_TILE_CLASSIFICATION,d.derivedCommands.tileset=f;let _=i[2*s+1];(0,a.Z)(_)||(_=i[2*s+1]=new p.Z({owner:e,pickOnly:!0})),_.vertexArray=n,_.modelMatrix=c,_.offset=t,_.count=l,_.renderState=e._rsPickPass,_.shaderProgram=o,_.uniformMap=u,_.boundingVolume=h,_.pass=m.Z.TERRAIN_CLASSIFICATION;const Z=p.Z.shallowClone(_,_.derivedCommands.tileset);Z.pass=m.Z.CESIUM_3D_TILE_CLASSIFICATION,_.derivedCommands.tileset=Z}e._pickCommandsDirty=!1}(this),G(this,e,this._pickCommands))},D.prototype.isDestroyed=function(){return!1},D.prototype.destroy=function(){return this._va=this._va&&this._va.destroy(),this._sp=this._sp&&this._sp.destroy(),this._spPick=this._spPick&&this._spPick.destroy(),this._vaSwap=this._vaSwap&&this._vaSwap.destroy(),(0,c.Z)(this)};const q=D},578765:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(357299),r=i(426468),o=i(446938);const s={POSITION:"POSITION",NORMAL:"NORMAL",TANGENT:"TANGENT",TEXCOORD:"TEXCOORD",COLOR:"COLOR",JOINTS:"JOINTS",WEIGHTS:"WEIGHTS",FEATURE_ID:"FEATURE_ID",hasSetIndex:function(e){switch(n.Z.typeOf.string("semantic",e),e){case s.POSITION:case s.NORMAL:case s.TANGENT:return!1;case s.TEXCOORD:case s.COLOR:case s.JOINTS:case s.WEIGHTS:case s.FEATURE_ID:return!0;default:throw new o.Z("semantic is not a valid value.")}},fromGltfSemantic:function(e){n.Z.typeOf.string("gltfSemantic",e);let t=e;const i=/^(\w+)_\d+$/.exec(e);switch(null!==i&&(t=i[1]),t){case"POSITION":return s.POSITION;case"NORMAL":return s.NORMAL;case"TANGENT":return s.TANGENT;case"TEXCOORD":return s.TEXCOORD;case"COLOR":return s.COLOR;case"JOINTS":return s.JOINTS;case"WEIGHTS":return s.WEIGHTS;case"_FEATURE_ID":case"FEATURE_ID":return s.FEATURE_ID}},fromPntsSemantic:function(e){switch(n.Z.typeOf.string("pntsSemantic",e),e){case"POSITION":case"POSITION_QUANTIZED":return s.POSITION;case"RGBA":case"RGB":case"RGB565":return s.COLOR;case"NORMAL":case"NORMAL_OCT16P":return s.NORMAL;case"BATCH_ID":return s.FEATURE_ID;default:throw new o.Z("pntsSemantic is not a valid value.")}},getGlslType:function(e){switch(n.Z.typeOf.string("semantic",e),e){case s.POSITION:case s.NORMAL:case s.TANGENT:return"vec3";case s.TEXCOORD:return"vec2";case s.COLOR:return"vec4";case s.JOINTS:return"ivec4";case s.WEIGHTS:return"vec4";case s.FEATURE_ID:return"int";default:throw new o.Z("semantic is not a valid value.")}},getVariableName:function(e,t){n.Z.typeOf.string("semantic",e);let i=function(e){switch(e){case s.POSITION:return"positionMC";case s.NORMAL:return"normalMC";case s.TANGENT:return"tangentMC";case s.TEXCOORD:return"texCoord";case s.COLOR:return"color";case s.JOINTS:return"joints";case s.WEIGHTS:return"weights";case s.FEATURE_ID:return"featureId";default:throw new o.Z("semantic is not a valid value.")}}(e);return(0,r.Z)(t)&&(i+="_"+t),i}},a=Object.freeze(s)},825497:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=Object.freeze({CENTER:0,BOTTOM:1,BASELINE:2,TOP:-1})},786453:(e,t,i)=>{"use strict";i.d(t,{Z:()=>P});var n=i(152124),r=i(919382),o=i(700725),s=i(426468),a=i(485083),c=i(62001),u=i(362017),l=i(583917),h=i(20209),d=i(842649),f=i(823989),p=i(333473),m=i(614288),_=i(199708),Z=i(23998),g=i(295811),y=i(439653),b=i(29900),A=i(140931),w=i(506678),v=i(971480),T=i(319685);function C(){this.command=void 0,this.near=void 0,this.far=void 0}function E(e,t,i){const r=e.context;let o,s;r.depthTexture&&(o=new _.Z),e._useOIT&&r.depthTexture&&(s=new g.Z(r));const a=new f.Z(r);a.viewport=n.Z.clone(i),this.camera=t,this._cameraClone=p.Z.clone(t),this._cameraStartFired=!1,this._cameraMovedTime=void 0,this.viewport=i,this.passState=a,this.pickFramebuffer=new b.Z(r),this.pickDepthFramebuffer=new y.Z,this.sceneFramebuffer=new A.Z,this.globeDepth=o,this.globeTranslucencyFramebuffer=new Z.Z,this.oit=s,this.translucentTileClassification=new T.Z(r),this.pickDepths=[],this.frustumCommandsList=[],this.debugFrustumStatistics=void 0,this._commandExtents=[]}const x=new r.Z,S=new r.Z;function O(e,t,i,n,r){t.debugShowFrustums&&(i.debugOverlappingFrustums=0);const o=e.frustumCommandsList,a=o.length;for(let e=0;e<a;++e){const s=o[e],a=s.near;if(n>s.far)continue;if(r<a)break;const c=i.pass,u=s.indices[c]++;if(s.commands[c][u]=i,t.debugShowFrustums&&(i.debugOverlappingFrustums|=1<<e),i.executeInClosestFrustum)break}if(t.debugShowFrustums){const t=e.debugFrustumStatistics.commandsInFrustums;t[i.debugOverlappingFrustums]=(0,s.Z)(t[i.debugOverlappingFrustums])?t[i.debugOverlappingFrustums]+1:1,++e.debugFrustumStatistics.totalCommands}t.updateDerivedCommands(i)}E.prototype.checkForCameraUpdates=function(e){const t=this.camera,i=this._cameraClone;return function(e,t,i){const n=1/Math.max(1,function(e,t){const i=Math.max(Math.abs(e.x),Math.abs(t.x)),n=Math.max(Math.abs(e.y),Math.abs(t.y)),r=Math.max(Math.abs(e.z),Math.abs(t.z));return Math.max(Math.max(i,n),r)}(e.position,t.position));return r.Z.multiplyByScalar(e.position,n,x),r.Z.multiplyByScalar(t.position,n,S),r.Z.equalsEpsilon(x,S,i)&&r.Z.equalsEpsilon(e.direction,t.direction,i)&&r.Z.equalsEpsilon(e.up,t.up,i)&&r.Z.equalsEpsilon(e.right,t.right,i)&&l.Z.equalsEpsilon(e.transform,t.transform,i)&&e.frustum.equalsEpsilon(t.frustum,i)}(t,i,u.Z.EPSILON15)?(this._cameraStartFired&&(0,a.Z)()-this._cameraMovedTime>e.cameraEventWaitTime&&(t.moveEnd.raiseEvent(),this._cameraStartFired=!1),!1):(this._cameraStartFired||(t.moveStart.raiseEvent(),this._cameraStartFired=!0),this._cameraMovedTime=(0,a.Z)(),p.Z.clone(t,i),!0)};const I=new o.Z,D=new c.Z;E.prototype.createPotentiallyVisibleSet=function(e){const t=e.frameState,i=t.camera,n=i.directionWC,r=i.positionWC,o=e._computeCommandList,a=e._overlayCommandList,c=t.commandList;e.debugShowFrustums&&(this.debugFrustumStatistics={totalCommands:0,commandsInFrustums:{}});const l=this.frustumCommandsList,f=l.length,p=d.Z.NUMBER_OF_PASSES;for(let e=0;e<f;++e)for(let t=0;t<p;++t)l[e].indices[t]=0;o.length=0,a.length=0;const _=this._commandExtents,Z=_.length;let g=0,y=+Number.MAX_VALUE,b=-Number.MAX_VALUE;const A=t.shadowState.shadowsEnabled;let T=+Number.MAX_VALUE,E=-Number.MAX_VALUE,x=Number.MAX_VALUE;const S=t.mode===w.Z.SCENE3D?t.occluder:void 0;let P=t.cullingVolume;const R=I.planes;for(let e=0;e<5;++e)R[e]=P.planes[e];P=I;const B=c.length;for(let t=0;t<B;++t){const u=c[t],l=u.pass;if(l===d.Z.COMPUTE)o.push(u);else if(l===d.Z.OVERLAY)a.push(u);else{let t,o;const a=u.boundingVolume;if((0,s.Z)(a)){if(!e.isVisible(u,P,S))continue;const i=a.computePlaneDistances(r,n,D);if(t=i.start,o=i.stop,y=Math.min(y,t),b=Math.max(b,o),A&&u.receiveShadows&&t<v.Z.MAXIMUM_DISTANCE&&!(l===d.Z.GLOBE&&t<-100&&o>100)){const e=o-t;l!==d.Z.GLOBE&&t<100&&(x=Math.min(x,e)),T=Math.min(T,t),E=Math.max(E,o)}}else u instanceof h.Z?(t=i.frustum.near,o=i.frustum.far):(t=i.frustum.near,o=i.frustum.far,y=Math.min(y,t),b=Math.max(b,o));let c=_[g];(0,s.Z)(c)||(c=_[g]=new C),c.command=u,c.near=t,c.far=o,g++}}let M,L;for(A&&(T=Math.min(Math.max(T,i.frustum.near),i.frustum.far),E=Math.max(Math.min(E,i.frustum.far),T)),A&&(t.shadowState.nearPlane=T,t.shadowState.farPlane=E,t.shadowState.closestObjectSize=x),function(e,t,i,n){const r=t.frameState,o=r.camera,a=r.useLogDepth?t.logarithmicDepthFarToNearRatio:t.farToNearRatio,c=t.mode===w.Z.SCENE2D,l=t.nearToFarDistance2D;let h;n*=1+u.Z.EPSILON2,i=Math.min(Math.max(i,o.frustum.near),o.frustum.far),n=Math.max(Math.min(n,o.frustum.far),i),c?(n=Math.min(n,o.position.z+t.nearToFarDistance2D),i=Math.min(i,n),h=Math.ceil(Math.max(1,n-i)/t.nearToFarDistance2D)):h=Math.ceil(Math.log(n/i)/Math.log(a));const d=e.frustumCommandsList;d.length=h;for(let e=0;e<h;++e){let t,r;c?(t=Math.min(n-l,i+e*l),r=Math.min(n,t+l)):(t=Math.max(i,Math.pow(a,e)*i),r=Math.min(n,a*t));let o=d[e];(0,s.Z)(o)?(o.near=t,o.far=r):o=d[e]=new m.Z(t,r)}}(this,e,y,b),M=0;M<g;M++)L=_[M],O(this,e,L.command,L.near,L.far);if(g<Z)for(M=g;M<Z&&(L=_[M],(0,s.Z)(L.command));M++)L.command=void 0;const N=l.length,F=t.frustumSplits;F.length=N+1;for(let e=0;e<N;++e)F[e]=l[e].near,e===N-1&&(F[e+1]=l[e].far)},E.prototype.destroy=function(){let e;this.pickFramebuffer=this.pickFramebuffer&&this.pickFramebuffer.destroy(),this.pickDepthFramebuffer=this.pickDepthFramebuffer&&this.pickDepthFramebuffer.destroy(),this.sceneFramebuffer=this.sceneFramebuffer&&this.sceneFramebuffer.destroy(),this.globeDepth=this.globeDepth&&this.globeDepth.destroy(),this.oit=this.oit&&this.oit.destroy(),this.translucentTileClassification=this.translucentTileClassification&&this.translucentTileClassification.destroy(),this.globeTranslucencyFramebuffer=this.globeTranslucencyFramebuffer&&this.globeTranslucencyFramebuffer.destroy();const t=this.pickDepths,i=t.length;for(e=0;e<i;++e)t[e].destroy()};const P=E},398880:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});var n=i(152124),r=i(545125),o=i(426468),s=i(54879),a=i(446938),c=i(842649),u=i(364232),l=i(279427),h=i(56625),d=i(451356),f=i(172795);function p(e,t){this.show=!0,(0,o.Z)(e)||(e=new n.Z),this.rectangle=n.Z.clone(e),(0,o.Z)(t)||(t=f.Z.fromType(f.Z.ColorType,{color:new r.Z(1,1,1,1)})),this.material=t,this._material=void 0,this._overlayCommand=void 0,this._rs=void 0}p.prototype.update=function(e){if(!this.show)return;if(!(0,o.Z)(this.material))throw new a.Z("this.material must be defined.");if(!(0,o.Z)(this.rectangle))throw new a.Z("this.rectangle must be defined.");const t=this._rs;if((0,o.Z)(t)&&n.Z.equals(t.viewport,this.rectangle)||(this._rs=u.Z.fromCache({blending:d.Z.ALPHA_BLEND,viewport:this.rectangle})),e.passes.render){const t=e.context;if(this._material!==this.material||!(0,o.Z)(this._overlayCommand)){this._material=this.material,(0,o.Z)(this._overlayCommand)&&this._overlayCommand.shaderProgram.destroy();const e=new l.Z({sources:[this._material.shaderSource,h.Z]});this._overlayCommand=t.createViewportQuadCommand(e,{renderState:this._rs,uniformMap:this._material._uniforms,owner:this}),this._overlayCommand.pass=c.Z.OVERLAY}this._material.update(t),this._overlayCommand.renderState=this._rs,this._overlayCommand.uniformMap=this._material._uniforms,e.commandList.push(this._overlayCommand)}},p.prototype.isDestroyed=function(){return!1},p.prototype.destroy=function(){return(0,o.Z)(this._overlayCommand)&&(this._overlayCommand.shaderProgram=this._overlayCommand.shaderProgram&&this._overlayCommand.shaderProgram.destroy()),(0,s.Z)(this)};const m=p},108738:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Z});var n=i(406144),r=i(426468),o=i(446938),s=i(910946),a=i(795788),c=i(786409),u=i(44685),l=i(952296),h=i(193866);const d=[3034,3035,3042,3043,3044],f=[4471,4559];function p(e){if(e=(0,n.Z)(e,n.Z.EMPTY_OBJECT),!(0,r.Z)(e.url))throw new o.Z("options.url is required.");if(!(0,r.Z)(e.layers))throw new o.Z("options.layers is required.");if((0,r.Z)(e.times)&&!(0,r.Z)(e.clock))throw new o.Z("options.times was specified, so options.clock is required.");this.defaultAlpha=void 0,this.defaultNightAlpha=void 0,this.defaultDayAlpha=void 0,this.defaultBrightness=void 0,this.defaultContrast=void 0,this.defaultHue=void 0,this.defaultSaturation=void 0,this.defaultGamma=void 0,this.defaultMinificationFilter=void 0,this.defaultMagnificationFilter=void 0,this._getFeatureInfoUrl=(0,n.Z)(e.getFeatureInfoUrl,e.url);const t=a.Z.createIfNeeded(e.url),i=a.Z.createIfNeeded(this._getFeatureInfoUrl);t.setQueryParameters(p.DefaultParameters,!0),i.setQueryParameters(p.GetFeatureInfoDefaultParameters,!0),(0,r.Z)(e.parameters)&&t.setQueryParameters(_(e.parameters)),(0,r.Z)(e.getFeatureInfoParameters)&&i.setQueryParameters(_(e.getFeatureInfoParameters));const u=this;this._reload=void 0,(0,r.Z)(e.times)&&(this._timeDynamicImagery=new l.Z({clock:e.clock,times:e.times,requestImageFunction:function(e,t,i,n,r){return m(u,e,t,i,n,r)},reloadFunction:function(){(0,r.Z)(u._reload)&&u._reload()}}));const Z={};if(Z.layers=e.layers,Z.bbox="{westProjected},{southProjected},{eastProjected},{northProjected}",Z.width="{width}",Z.height="{height}",parseFloat(t.queryParameters.version)>=1.3){Z.crs=(0,n.Z)(e.crs,e.tilingScheme&&e.tilingScheme.projection instanceof c.Z?"EPSG:3857":"CRS:84");const t=Z.crs.split(":");if("EPSG"===t[0]&&2===t.length){const e=Number(t[1]);(e>=4e3&&e<5e3&&!f.includes(e)||d.includes(e))&&(Z.bbox="{southProjected},{westProjected},{northProjected},{eastProjected}")}}else Z.srs=(0,n.Z)(e.srs,e.tilingScheme&&e.tilingScheme.projection instanceof c.Z?"EPSG:3857":"EPSG:4326");t.setQueryParameters(Z,!0),i.setQueryParameters(Z,!0);const g={query_layers:e.layers,info_format:"{format}"};parseFloat(i.queryParameters.version)>=1.3?(g.i="{i}",g.j="{j}"):(g.x="{i}",g.y="{j}"),i.setQueryParameters(g,!0),this._resource=t,this._pickFeaturesResource=i,this._layers=e.layers,this._tileProvider=new h.Z({url:t,pickFeaturesUrl:i,tilingScheme:(0,n.Z)(e.tilingScheme,new s.Z({ellipsoid:e.ellipsoid})),rectangle:e.rectangle,tileWidth:e.tileWidth,tileHeight:e.tileHeight,minimumLevel:e.minimumLevel,maximumLevel:e.maximumLevel,subdomains:e.subdomains,tileDiscardPolicy:e.tileDiscardPolicy,credit:e.credit,getFeatureInfoFormats:(0,n.Z)(e.getFeatureInfoFormats,p.DefaultGetFeatureInfoFormats),enablePickFeatures:e.enablePickFeatures})}function m(e,t,i,n,o,s){const a=(0,r.Z)(s)?s.data:void 0,c=e._tileProvider;return(0,r.Z)(a)&&c._resource.setQueryParameters(a),c.requestImage(t,i,n,o)}function _(e){const t={};for(const i in e)e.hasOwnProperty(i)&&(t[i.toLowerCase()]=e[i]);return t}Object.defineProperties(p.prototype,{url:{get:function(){return this._resource._url}},proxy:{get:function(){return this._resource.proxy}},layers:{get:function(){return this._layers}},tileWidth:{get:function(){return this._tileProvider.tileWidth}},tileHeight:{get:function(){return this._tileProvider.tileHeight}},maximumLevel:{get:function(){return this._tileProvider.maximumLevel}},minimumLevel:{get:function(){return this._tileProvider.minimumLevel}},tilingScheme:{get:function(){return this._tileProvider.tilingScheme}},rectangle:{get:function(){return this._tileProvider.rectangle}},tileDiscardPolicy:{get:function(){return this._tileProvider.tileDiscardPolicy}},errorEvent:{get:function(){return this._tileProvider.errorEvent}},ready:{get:function(){return this._tileProvider.ready}},readyPromise:{get:function(){return this._tileProvider.readyPromise}},credit:{get:function(){return this._tileProvider.credit}},hasAlphaChannel:{get:function(){return this._tileProvider.hasAlphaChannel}},enablePickFeatures:{get:function(){return this._tileProvider.enablePickFeatures},set:function(e){this._tileProvider.enablePickFeatures=e}},clock:{get:function(){return this._timeDynamicImagery.clock},set:function(e){this._timeDynamicImagery.clock=e}},times:{get:function(){return this._timeDynamicImagery.times},set:function(e){this._timeDynamicImagery.times=e}},getFeatureInfoUrl:{get:function(){return this._getFeatureInfoUrl}}}),p.prototype.getTileCredits=function(e,t,i){return this._tileProvider.getTileCredits(e,t,i)},p.prototype.requestImage=function(e,t,i,n){let o;const s=this._timeDynamicImagery;let a;return(0,r.Z)(s)&&(a=s.currentInterval,o=s.getFromCache(e,t,i,n)),(0,r.Z)(o)||(o=m(this,e,t,i,n,a)),(0,r.Z)(o)&&(0,r.Z)(s)&&s.checkApproachingInterval(e,t,i,n),o},p.prototype.pickFeatures=function(e,t,i,n,o){const s=this._timeDynamicImagery;return function(e,t,i,n,o,s,a){const c=(0,r.Z)(a)?a.data:void 0,u=e._tileProvider;return(0,r.Z)(c)&&u._pickFeaturesResource.setQueryParameters(c),u.pickFeatures(t,i,n,o,s)}(this,e,t,i,n,o,(0,r.Z)(s)?s.currentInterval:void 0)},p.DefaultParameters=Object.freeze({service:"WMS",version:"1.1.1",request:"GetMap",styles:"",format:"image/jpeg"}),p.GetFeatureInfoDefaultParameters=Object.freeze({service:"WMS",version:"1.1.1",request:"GetFeatureInfo"}),p.DefaultGetFeatureInfoFormats=Object.freeze([Object.freeze(new u.Z("json","application/json")),Object.freeze(new u.Z("xml","text/xml")),Object.freeze(new u.Z("text","text/html"))]);const Z=p},226227:(e,t,i)=>{"use strict";i.d(t,{Z:()=>g});var n=i(307260),r=i(846748),o=i(406144),s=i(426468),a=i(446938),c=i(197685),u=i(523501),l=i(795788),h=i(310526),d=i(527758),f=i(616007),p=i(952296);const m=Object.freeze({service:"WMTS",version:"1.0.0",request:"GetTile"});function _(e){if(e=(0,o.Z)(e,o.Z.EMPTY_OBJECT),!(0,s.Z)(e.url))throw new a.Z("options.url is required.");if(!(0,s.Z)(e.layer))throw new a.Z("options.layer is required.");if(!(0,s.Z)(e.style))throw new a.Z("options.style is required.");if(!(0,s.Z)(e.tileMatrixSetID))throw new a.Z("options.tileMatrixSetID is required.");if((0,s.Z)(e.times)&&!(0,s.Z)(e.clock))throw new a.Z("options.times was specified, so options.clock is required.");this.defaultAlpha=void 0,this.defaultNightAlpha=void 0,this.defaultDayAlpha=void 0,this.defaultBrightness=void 0,this.defaultContrast=void 0,this.defaultHue=void 0,this.defaultSaturation=void 0,this.defaultGamma=void 0,this.defaultMinificationFilter=void 0,this.defaultMagnificationFilter=void 0;const t=l.Z.createIfNeeded(e.url),i=e.style,n=e.tileMatrixSetID,f=t.url,_=f.match(/{/g);if(!(0,s.Z)(_)||1===_.length&&/{s}/.test(f))t.setQueryParameters(m),this._useKvp=!0;else{const e={style:i,Style:i,TileMatrixSet:n};t.setTemplateValues(e),this._useKvp=!1}this._resource=t,this._layer=e.layer,this._style=i,this._tileMatrixSetID=n,this._tileMatrixLabels=e.tileMatrixLabels,this._format=(0,o.Z)(e.format,"image/jpeg"),this._tileDiscardPolicy=e.tileDiscardPolicy,this._tilingScheme=(0,s.Z)(e.tilingScheme)?e.tilingScheme:new h.Z({ellipsoid:e.ellipsoid}),this._tileWidth=(0,o.Z)(e.tileWidth,256),this._tileHeight=(0,o.Z)(e.tileHeight,256),this._minimumLevel=(0,o.Z)(e.minimumLevel,0),this._maximumLevel=e.maximumLevel,this._rectangle=(0,o.Z)(e.rectangle,this._tilingScheme.rectangle),this._dimensions=e.dimensions;const g=this;this._reload=void 0,(0,s.Z)(e.times)&&(this._timeDynamicImagery=new p.Z({clock:e.clock,times:e.times,requestImageFunction:function(e,t,i,n,r){return Z(g,e,t,i,n,r)},reloadFunction:function(){(0,s.Z)(g._reload)&&g._reload()}})),this._readyPromise=d.Z.resolve(!0);const y=this._tilingScheme.positionToTileXY(u.Z.southwest(this._rectangle),this._minimumLevel),b=this._tilingScheme.positionToTileXY(u.Z.northeast(this._rectangle),this._minimumLevel),A=(Math.abs(b.x-y.x)+1)*(Math.abs(b.y-y.y)+1);if(A>4)throw new a.Z("The imagery provider's rectangle and minimumLevel indicate that there are "+A+" tiles at the minimum level. Imagery providers with more than four tiles at the minimum level are not supported.");this._errorEvent=new c.Z;const w=e.credit;this._credit="string"==typeof w?new r.Z(w):w,this._subdomains=e.subdomains,Array.isArray(this._subdomains)?this._subdomains=this._subdomains.slice():(0,s.Z)(this._subdomains)&&this._subdomains.length>0?this._subdomains=this._subdomains.split(""):this._subdomains=["a","b","c"]}function Z(e,t,i,r,o,a){const c=e._tileMatrixLabels,u=(0,s.Z)(c)?c[r]:r.toString(),l=e._subdomains,h=e._dimensions,d=(0,s.Z)(a)?a.data:void 0;let p,m;if(e._useKvp){let a={};a.tilematrix=u,a.layer=e._layer,a.style=e._style,a.tilerow=i,a.tilecol=t,a.tilematrixset=e._tileMatrixSetID,a.format=e._format,(0,s.Z)(h)&&(a=(0,n.Z)(a,h)),(0,s.Z)(d)&&(a=(0,n.Z)(a,d)),m={s:l[(t+i+r)%l.length]},p=e._resource.getDerivedResource({queryParameters:a,request:o}),p.setTemplateValues(m)}else m={TileMatrix:u,TileRow:i.toString(),TileCol:t.toString(),s:l[(t+i+r)%l.length]},p=e._resource.getDerivedResource({request:o}),p.setTemplateValues(m),(0,s.Z)(h)&&p.setTemplateValues(h),(0,s.Z)(d)&&p.setTemplateValues(d);return f.Z.loadImage(e,p)}Object.defineProperties(_.prototype,{url:{get:function(){return this._resource.url}},proxy:{get:function(){return this._resource.proxy}},tileWidth:{get:function(){return this._tileWidth}},tileHeight:{get:function(){return this._tileHeight}},maximumLevel:{get:function(){return this._maximumLevel}},minimumLevel:{get:function(){return this._minimumLevel}},tilingScheme:{get:function(){return this._tilingScheme}},rectangle:{get:function(){return this._rectangle}},tileDiscardPolicy:{get:function(){return this._tileDiscardPolicy}},errorEvent:{get:function(){return this._errorEvent}},format:{get:function(){return this._format}},ready:{value:!0},readyPromise:{get:function(){return this._readyPromise}},credit:{get:function(){return this._credit}},hasAlphaChannel:{get:function(){return!0}},clock:{get:function(){return this._timeDynamicImagery.clock},set:function(e){this._timeDynamicImagery.clock=e}},times:{get:function(){return this._timeDynamicImagery.times},set:function(e){this._timeDynamicImagery.times=e}},dimensions:{get:function(){return this._dimensions},set:function(e){this._dimensions!==e&&(this._dimensions=e,(0,s.Z)(this._reload)&&this._reload())}}}),_.prototype.getTileCredits=function(e,t,i){},_.prototype.requestImage=function(e,t,i,n){let r;const o=this._timeDynamicImagery;let a;return(0,s.Z)(o)&&(a=o.currentInterval,r=o.getFromCache(e,t,i,n)),(0,s.Z)(r)||(r=Z(this,e,t,i,n,a)),(0,s.Z)(r)&&(0,s.Z)(o)&&o.checkApproachingInterval(e,t,i,n),r},_.prototype.pickFeatures=function(e,t,i,n,r){};const g=_},648830:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(426468),r=i(523501),o=i(477274),s=i(527758),a=i(506678);function c(e,t){const i=t.terrainProvider,o=t.mapProjection,u=o.ellipsoid;let l;const h=t.camera.getRectangleCameraCoordinates(e);return l=t.mode===a.Z.SCENE3D?u.cartesianToCartographic(h):o.unproject(h),(0,n.Z)(i)?i.readyPromise.then((function(){const o=i.availability;if(!(0,n.Z)(o)||t.mode===a.Z.SCENE2D)return l;const s=[r.Z.center(e),r.Z.southeast(e),r.Z.southwest(e),r.Z.northeast(e),r.Z.northwest(e)];return c._sampleTerrainMostDetailed(i,s).then((function(e){const t=e.reduce((function(e,t){return Math.max(t.height,e)}),-Number.MAX_VALUE),i=l;return i.height+=t,i}))})):s.Z.resolve(l)}c._sampleTerrainMostDetailed=o.Z;const u=c},189999:(e,t,i)=>{"use strict";i.d(t,{Z:()=>O});var n=i(114754),r=i(362017),o=i(357299),s=i(545125),a=i(406144),c=i(426468),u=i(446938),l=i(457345),h=i(100883),d=i(687931),f=i(270013),p=i(283044),m=i(59102),_=i(636664),Z=i(655499),g=i(172795);const y=new s.Z,b=new s.Z,A=new s.Z,w=new s.Z,v=new n.Z,T=new Uint8Array(4);function C(e,t,i,n){const r=t.height===i.height?0:(e-t.height)/(i.height-t.height);return s.Z.lerp(t.color,i.color,r,n)}function E(e,t){return{height:e,color:s.Z.clone(t)}}function x(e){return(e=(e=e.filter((function(e,t,i){const n=t>0,r=t<i.length-1,o=!n||e.height===i[t-1].height,s=!r||e.height===i[t+1].height;return!o||!s}))).filter((function(e,t,i){const n=t>0,r=t<i.length-1,o=!!n&&s.Z.equals(e.color,i[t-1].color),a=!!r&&s.Z.equals(e.color,i[t+1].color);return!o||!a}))).filter((function(e,t,i){const n=t>0,r=!!n&&s.Z.equals(e.color,i[t-1].color),o=!n||e.height===i[t-1].height;return!r||!o}))}function S(e){const t=(e=(0,a.Z)(e,a.Z.EMPTY_OBJECT)).scene,i=e.layers;o.Z.typeOf.object("options.scene",t),o.Z.defined("options.layers",i),o.Z.typeOf.number.greaterThan("options.layers.length",i.length,0);const O=function(e){const t=function(e){let t,i;const n=[],o=e.length;for(t=0;t<o;t++){const o=e[t],h=o.entries,d=h.length;if(!Array.isArray(h)||0===d)throw new u.Z("entries must be an array with size > 0.");let f=[];for(i=0;i<d;i++){const e=h[i];if(!(0,c.Z)(e.height))throw new u.Z("entry requires a height.");if(!(0,c.Z)(e.color))throw new u.Z("entry requires a color.");const t=r.Z.clamp(e.height,S._minimumHeight,S._maximumHeight),n=s.Z.clone(e.color,y);n.red*=n.alpha,n.green*=n.alpha,n.blue*=n.alpha,f.push(E(t,n))}let p=!0,m=!0;for(i=0;i<d-1;i++){const e=f[i+0],t=f[i+1];p=p&&e.height<=t.height,m=m&&e.height>=t.height}m?f=f.reverse():p||(0,l.Z)(f,(function(e,t){return r.Z.sign(e.height-t.height)}));let _=(0,a.Z)(o.extendDownwards,!1),Z=(0,a.Z)(o.extendUpwards,!1);1!==f.length||_||Z||(_=!0,Z=!0),_&&f.splice(0,0,E(S._minimumHeight,f[0].color)),Z&&f.splice(f.length,0,E(S._maximumHeight,f[f.length-1].color)),f=x(f),n.push(f)}return n}(e);let i,n=[],o=[];function h(e,t){n.push(E(e,t))}function d(e,t,i){let n=s.Z.multiplyByScalar(i,1-t.alpha,w);n=s.Z.add(n,t,n),h(e,n)}const f=t.length;for(i=0;i<f;i++){const e=t[i];let r=0,s=0;o=n,n=[];const a=e.length,u=o.length;for(;r<a||s<u;){const t=r<a?e[r]:void 0,i=r>0?e[r-1]:void 0,n=r<a-1?e[r+1]:void 0,l=s<u?o[s]:void 0,f=s>0?o[s-1]:void 0,p=s<u-1?o[s+1]:void 0;if((0,c.Z)(t)&&(0,c.Z)(l)&&t.height===l.height){const e=(0,c.Z)(p)&&l.height===p.height,o=!(0,c.Z)(f),a=!(0,c.Z)(p),u=(0,c.Z)(n)&&t.height===n.height,m=!(0,c.Z)(i),_=!(0,c.Z)(n);e?u?(d(t.height,t.color,l.color),d(t.height,n.color,p.color)):m?(h(t.height,l.color),d(t.height,t.color,p.color)):_?(d(t.height,t.color,l.color),h(t.height,p.color)):(d(t.height,t.color,l.color),d(t.height,t.color,p.color)):o?u?(h(t.height,t.color),d(t.height,n.color,l.color)):_?(h(t.height,t.color),h(t.height,l.color)):(m||h(t.height,t.color),d(t.height,t.color,l.color)):a?u?(d(t.height,t.color,l.color),h(t.height,n.color)):m?(h(t.height,l.color),h(t.height,t.color)):_?d(t.height,t.color,l.color):(d(t.height,t.color,l.color),h(t.height,t.color)):u?(d(t.height,t.color,l.color),d(t.height,n.color,l.color)):m?(h(t.height,l.color),d(t.height,t.color,l.color)):_?(d(t.height,t.color,l.color),h(t.height,l.color)):d(t.height,t.color,l.color),r+=u?2:1,s+=e?2:1}else if((0,c.Z)(t)&&(0,c.Z)(l)&&(0,c.Z)(f)&&t.height<l.height){const e=C(t.height,f,l,A);(0,c.Z)(i)?(0,c.Z)(n)?d(t.height,t.color,e):(d(t.height,t.color,e),h(t.height,e)):(h(t.height,e),d(t.height,t.color,e)),r++}else if((0,c.Z)(l)&&(0,c.Z)(t)&&(0,c.Z)(i)&&l.height<t.height){const e=C(l.height,i,t,b);(0,c.Z)(f)?(0,c.Z)(p)?d(l.height,e,l.color):(d(l.height,e,l.color),h(l.height,e)):(h(l.height,e),d(l.height,e,l.color)),s++}else(0,c.Z)(t)&&(!(0,c.Z)(l)||t.height<l.height)?(!(0,c.Z)(l)||(0,c.Z)(f)||(0,c.Z)(n)?((0,c.Z)(l)||!(0,c.Z)(f)||(0,c.Z)(i)||(h(f.height,S._emptyColor),h(t.height,S._emptyColor)),h(t.height,t.color)):(h(t.height,t.color),h(t.height,S._emptyColor),h(l.height,S._emptyColor)),r++):(0,c.Z)(l)&&(!(0,c.Z)(t)||l.height<t.height)&&(h(l.height,l.color),s++)}}return x(n)}(i),I=O.length;let D,P,R,B;if(S._useFloatTexture(t.context))for(R=d.Z.FLOAT,B=h.Z.LUMINANCE,P=new Float32Array(I),D=0;D<I;D++)P[D]=O[D].height;else for(R=d.Z.UNSIGNED_BYTE,B=h.Z.RGBA,P=new Uint8Array(4*I),D=0;D<I;D++)n.Z.packFloat(O[D].height,v),n.Z.pack(v,P,4*D);const M=p.Z.create({context:t.context,pixelFormat:B,pixelDatatype:R,source:{arrayBufferView:P,width:I,height:1},sampler:new f.Z({wrapS:Z.Z.CLAMP_TO_EDGE,wrapT:Z.Z.CLAMP_TO_EDGE,minificationFilter:_.Z.NEAREST,magnificationFilter:m.Z.NEAREST})}),L=new Uint8Array(4*I);for(D=0;D<I;D++)O[D].color.toBytes(T),L[4*D+0]=T[0],L[4*D+1]=T[1],L[4*D+2]=T[2],L[4*D+3]=T[3];const N=p.Z.create({context:t.context,pixelFormat:h.Z.RGBA,pixelDatatype:d.Z.UNSIGNED_BYTE,source:{arrayBufferView:L,width:I,height:1},sampler:new f.Z({wrapS:Z.Z.CLAMP_TO_EDGE,wrapT:Z.Z.CLAMP_TO_EDGE,minificationFilter:_.Z.LINEAR,magnificationFilter:m.Z.LINEAR})});return g.Z.fromType("ElevationBand",{heights:M,colors:N})}S._useFloatTexture=function(e){return e.floatingPointTexture},S._maximumHeight=5906376425472,S._minimumHeight=-5906376425472,S._emptyColor=new s.Z(0,0,0,0);const O=S},69807:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(545125),r=i(307260),o=i(406144),s=i(426468),a=i(822302),c=i(465210),u=i(670281);const l=function(e){e=(0,r.Z)(e,{url:a.Z.fromAssetId(96188)});const t=new c.Z(e);let i=e.style;if(!(0,s.Z)(i)){const t=(0,o.Z)(e.defaultColor,n.Z.WHITE).toCssColorString();i=new u.Z({color:"Boolean(${feature['cesium#color']}) ? color(${feature['cesium#color']}) : "+t})}return t.style=i,t}},307591:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(182934),r=i(406144),o=i(426468),s=i(446938),a=i(952254),c=i(423035),u=i(583917),l=i(578721),h=i(939800);const d=function(e){const t=[];let i=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).geometry;if(!(0,o.Z)(i))throw new s.Z("options.geometry is required.");(0,o.Z)(i.attributes)&&(0,o.Z)(i.primitiveType)||(i=i.constructor.createGeometry(i));const d=i.attributes,f=u.Z.clone((0,r.Z)(e.modelMatrix,u.Z.IDENTITY)),p=(0,r.Z)(e.length,1e4);if((0,o.Z)(d.normal)&&t.push(new a.Z({geometry:c.Z.createLineSegmentsForVectors(i,"normal",p),attributes:{color:new n.Z(1,0,0,1)},modelMatrix:f})),(0,o.Z)(d.tangent)&&t.push(new a.Z({geometry:c.Z.createLineSegmentsForVectors(i,"tangent",p),attributes:{color:new n.Z(0,1,0,1)},modelMatrix:f})),(0,o.Z)(d.bitangent)&&t.push(new a.Z({geometry:c.Z.createLineSegmentsForVectors(i,"bitangent",p),attributes:{color:new n.Z(0,0,1,1)},modelMatrix:f})),t.length>0)return new h.Z({asynchronous:!1,geometryInstances:t,appearance:new l.Z({flat:!0,translucent:!1})})}},418683:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(406144),r=i(632145),o=i(382106);const s=function(e){e=(0,n.Z)(e,n.Z.EMPTY_OBJECT);const t=(0,n.Z)(e.style,o.Z.AERIAL);return new r.Z({assetId:t})}},324628:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(337968),r=i(919382),o=i(114754),s=i(997274),a=i(631145),c=i(165373),u=i(583917);const l={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},h={SCALAR:void 0,VEC2:n.Z,VEC3:r.Z,VEC4:o.Z,MAT2:a.Z,MAT3:c.Z,MAT4:u.Z},d=function(e){const t=e.componentType;let i;i="string"==typeof t?s.Z.fromName(t):t;const n=l[e.type],r=h[e.type];return{componentsPerAttribute:n,classType:r,createArrayBufferView:function(e,t,r){return s.Z.createArrayBufferView(i,e,t,n*r)}}}},488818:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(357299);const r=function(e,t,i){return n.Z.typeOf.string("samplerUniformName",e),n.Z.typeOf.string("matrixUniformName",t),n.Z.typeOf.string("styleUniformName",i)," float clipDistance = clip(gl_FragCoord, "+e+", "+t+"); \n vec4 clippingPlanesEdgeColor = vec4(1.0); \n clippingPlanesEdgeColor.rgb = "+i+".rgb; \n float clippingPlanesEdgeWidth = "+i+".a; \n if (clipDistance > 0.0 && clipDistance < clippingPlanesEdgeWidth) \n { \n gl_FragColor = clippingPlanesEdgeColor;\n } \n"}},394088:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(337968),r=i(357299),o=i(586949);const s=new n.Z,a=function(e,t){r.Z.typeOf.object("clippingPlaneCollection",e),r.Z.typeOf.object("context",t);const i=e.unionClippingRegions,n=e.length,a=o.Z.useFloatTexture(t),c=o.Z.getTextureResolution(e,t,s),u=c.x,l=c.y;let h=a?function(e,t){const i=1/t;let n=1/e+"";-1===n.indexOf(".")&&(n+=".0");let r=i+"";return-1===r.indexOf(".")&&(r+=".0"),"vec4 getClippingPlane(highp sampler2D packedClippingPlanes, int clippingPlaneNumber, mat4 transform)\n{\n int pixY = clippingPlaneNumber / "+e+";\n int pixX = clippingPlaneNumber - (pixY * "+e+");\n float u = (float(pixX) + 0.5) * "+n+";\n float v = (float(pixY) + 0.5) * "+r+";\n vec4 plane = texture2D(packedClippingPlanes, vec2(u, v));\n return czm_transformPlane(plane, transform);\n}\n"}(u,l):function(e,t){const i=1/t;let n=1/e+"";-1===n.indexOf(".")&&(n+=".0");let r=i+"";return-1===r.indexOf(".")&&(r+=".0"),"vec4 getClippingPlane(highp sampler2D packedClippingPlanes, int clippingPlaneNumber, mat4 transform)\n{\n int clippingPlaneStartIndex = clippingPlaneNumber * 2;\n int pixY = clippingPlaneStartIndex / "+e+";\n int pixX = clippingPlaneStartIndex - (pixY * "+e+");\n float u = (float(pixX) + 0.5) * "+n+";\n float v = (float(pixY) + 0.5) * "+r+";\n vec4 oct32 = texture2D(packedClippingPlanes, vec2(u, v)) * 255.0;\n vec2 oct = vec2(oct32.x * 256.0 + oct32.y, oct32.z * 256.0 + oct32.w);\n vec4 plane;\n plane.xyz = czm_octDecode(oct, 65535.0);\n plane.w = czm_unpackFloat(texture2D(packedClippingPlanes, vec2(u + "+n+", v)));\n return czm_transformPlane(plane, transform);\n}\n"}(u,l);return h+="\n",h+=i?function(e){return"float clip(vec4 fragCoord, sampler2D clippingPlanes, mat4 clippingPlanesMatrix)\n{\n vec4 position = czm_windowToEyeCoordinates(fragCoord);\n vec3 clipNormal = vec3(0.0);\n vec3 clipPosition = vec3(0.0);\n float clipAmount;\n float pixelWidth = czm_metersPerPixel(position);\n bool breakAndDiscard = false;\n for (int i = 0; i < "+e+"; ++i)\n {\n vec4 clippingPlane = getClippingPlane(clippingPlanes, i, clippingPlanesMatrix);\n clipNormal = clippingPlane.xyz;\n clipPosition = -clippingPlane.w * clipNormal;\n float amount = dot(clipNormal, (position.xyz - clipPosition)) / pixelWidth;\n clipAmount = czm_branchFreeTernary(i == 0, amount, min(amount, clipAmount));\n if (amount <= 0.0)\n {\n breakAndDiscard = true;\n break;\n }\n }\n if (breakAndDiscard) {\n discard;\n }\n return clipAmount;\n}\n"}(n):function(e){return"float clip(vec4 fragCoord, sampler2D clippingPlanes, mat4 clippingPlanesMatrix)\n{\n bool clipped = true;\n vec4 position = czm_windowToEyeCoordinates(fragCoord);\n vec3 clipNormal = vec3(0.0);\n vec3 clipPosition = vec3(0.0);\n float clipAmount = 0.0;\n float pixelWidth = czm_metersPerPixel(position);\n for (int i = 0; i < "+e+"; ++i)\n {\n vec4 clippingPlane = getClippingPlane(clippingPlanes, i, clippingPlanesMatrix);\n clipNormal = clippingPlane.xyz;\n clipPosition = -clippingPlane.w * clipNormal;\n float amount = dot(clipNormal, (position.xyz - clipPosition)) / pixelWidth;\n clipAmount = max(amount, clipAmount);\n clipped = clipped && (amount <= 0.0);\n }\n if (clipped)\n {\n discard;\n }\n return clipAmount;\n}\n"}(n),h}},331508:(e,t,i)=>{"use strict";i.d(t,{Z:()=>m});var n=i(357299),r=i(426468),o=i(859071),s=i(50128),a=i(906864),c=i(549773),u=i(785049),l=i(324628),h=i(81108),d=i(211303),f=i(518201),p=i(388847);function m(e){n.Z.typeOf.number("options.count",e.count),n.Z.typeOf.object("options.batchTable",e.batchTable);const t=e.count,i=e.batchTable,o=e.binaryBody,Z=function(e){const t=e.HIERARCHY,i=e.extras,n=e.extensions;let o;(0,r.Z)(t)?(m._deprecationWarning("batchTableHierarchyExtension","The batch table HIERARCHY property has been moved to an extension. Use extensions.3DTILES_batch_table_hierarchy instead."),o=t):(0,r.Z)(n)&&(o=n["3DTILES_batch_table_hierarchy"]);const s={},a={};for(const t in e){if(!e.hasOwnProperty(t)||"HIERARCHY"===t||"extensions"===t||"extras"===t)continue;const i=e[t];Array.isArray(i)?s[t]=i:a[t]=i}return{binaryProperties:a,jsonProperties:s,hierarchy:o,extras:i,extensions:n}}(i),g=new h.Z({count:t,properties:Z.jsonProperties}),y=function(e,t){if((0,r.Z)(e))return new a.Z({extension:e,binaryBody:t})}(Z.hierarchy,o),b=function(e,t,i,n){const o={},a={},c={};let u=0;for(const t in i){if(!i.hasOwnProperty(t))continue;if(!(0,r.Z)(n))throw new s.Z("Property "+t+" requires a batch table binary.");const h=i[t],d=(0,l.Z)(h);a[t]={bufferView:u},o[t]=_(h),c[u]=d.createArrayBufferView(n.buffer,n.byteOffset+h.byteOffset,e),u++}const h={classes:{}};h.classes[t]={properties:o};const d=new f.Z(h);return{featureTableJson:{class:t,count:e,properties:a},bufferViewsU8:c,transcodedSchema:d,transcodedClass:d.classes[t]}}(t,d.Z.BATCH_TABLE_CLASS_NAME,Z.binaryProperties,o),A=b.featureTableJson,w=new p.Z({count:A.count,properties:A.properties,class:b.transcodedClass,bufferViews:b.bufferViewsU8}),v=new u.Z({id:0,name:"Batch Table",count:A.count,metadataTable:w,jsonMetadataTable:g,batchTableHierarchy:y});return new c.Z({schema:b.transcodedSchema,propertyTables:[v],extensions:Z.extensions,extras:Z.extras})}function _(e){const t=function(e){switch(e){case"BYTE":return"INT8";case"UNSIGNED_BYTE":return"UINT8";case"SHORT":return"INT16";case"UNSIGNED_SHORT":return"UINT16";case"INT":return"INT32";case"UNSIGNED_INT":return"UINT32";case"FLOAT":return"FLOAT32";case"DOUBLE":return"FLOAT64"}}(e.componentType),i=e.type;return"SCALAR"===i?{type:"SINGLE",componentType:t}:{type:i,componentType:t}}m._deprecationWarning=o.Z},503728:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(357299),r=i(426468);function o(e){return n.Z.typeOf.object("tileMetadata",e),{tile:{boundingVolume:s("TILE",e),minimumHeight:a("TILE",e),maximumHeight:c("TILE",e)},content:{boundingVolume:s("CONTENT",e),minimumHeight:a("CONTENT",e),maximumHeight:c("CONTENT",e)}}}function s(e,t){const i=e+"_BOUNDING_BOX",n=t.getPropertyBySemantic(i);if((0,r.Z)(n))return{box:n};const o=e+"_BOUNDING_REGION",s=t.getPropertyBySemantic(o);if((0,r.Z)(s))return{region:s};const a=e+"_BOUNDING_SPHERE",c=t.getPropertyBySemantic(a);return(0,r.Z)(c)?{sphere:c}:void 0}function a(e,t){const i=e+"_MINIMUM_HEIGHT";return t.getPropertyBySemantic(i)}function c(e,t){const i=e+"_MAXIMUM_HEIGHT";return t.getPropertyBySemantic(i)}},423129:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(357299),r=i(556592),o=i(406144),s=i(426468),a=i(785049),c=i(752593),u=i(549773),l=i(388847);function h(e){const t=(e=(0,o.Z)(e,o.Z.EMPTY_OBJECT)).extension,i=e.schema;let r;n.Z.typeOf.object("options.extension",t),n.Z.typeOf.object("options.schema",i);const h=[];if((0,s.Z)(t.propertyTables))for(r=0;r<t.propertyTables.length;r++){const n=t.propertyTables[r],o=i.classes[n.class],s=new l.Z({count:n.count,properties:n.properties,class:o,bufferViews:e.bufferViews});h.push(new a.Z({id:r,name:n.name,count:n.count,metadataTable:s,extras:n.extras,extensions:n.extensions}))}const f=[];if((0,s.Z)(t.propertyTextures))for(r=0;r<t.propertyTextures.length;r++){const n=t.propertyTextures[r];f.push(new c.Z({id:r,name:n.name,featureTexture:d(n),class:i.classes[n.class],textures:e.textures}))}return new u.Z({schema:i,propertyTables:h,propertyTextures:f,statistics:t.statistics,extras:t.extras,extensions:t.extensions})}function d(e){const t=(0,r.Z)(e),i=(0,r.Z)(e);i.properties={};const n=e.properties;for(const e in n)if(n.hasOwnProperty(e)){const r=n[e];i.properties[e]={texture:t,channels:f(r)}}return i}function f(e){return e.map((function(e){return"rgba".charAt(e)})).join("")}},571109:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(357299),r=i(406144),o=i(426468),s=i(785049),a=i(752593),c=i(549773),u=i(388847);function l(e){const t=(e=(0,r.Z)(e,r.Z.EMPTY_OBJECT)).extension,i=e.schema;let l;n.Z.typeOf.object("options.extension",t),n.Z.typeOf.object("options.schema",i);const h=[];let d;if((0,o.Z)(t.featureTables))for(d=Object.keys(t.featureTables).sort(),l=0;l<d.length;l++){const n=d[l],r=t.featureTables[n],o=i.classes[r.class],a=new u.Z({count:r.count,properties:r.properties,class:o,bufferViews:e.bufferViews});h.push(new s.Z({id:n,count:r.count,metadataTable:a,extras:r.extras,extensions:r.extensions}))}const f=[];if((0,o.Z)(t.featureTextures))for(d=Object.keys(t.featureTextures).sort(),l=0;l<d.length;l++){const n=d[l],r=t.featureTextures[n];f.push(new a.Z({id:n,featureTexture:r,class:i.classes[r.class],textures:e.textures}))}return new c.Z({schema:i,propertyTables:h,propertyTextures:f,statistics:t.statistics,extras:t.extras,extensions:t.extensions})}},921778:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(426468),r=i(987606),o=i(707009),s=i(50128),a=i(58277);function c(e){const t=new Uint8Array(e);let i=(0,o.Z)(t);if("glTF"===i&&(i="glb"),a.Z.isBinaryFormat(i))return{contentType:i,binaryPayload:t};const c=function(e){let t;try{t=(0,r.Z)(e)}catch(e){throw new s.Z("Invalid tile content.")}return t}(t);if((0,n.Z)(c.root))return{contentType:a.Z.EXTERNAL_TILESET,jsonPayload:c};if((0,n.Z)(c.asset))return{contentType:a.Z.GLTF,jsonPayload:c};throw new s.Z("Invalid tile content.")}},102610:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(406144),r=i(426468),o=i(619287),s=i(770155),a=i(48564),c=i(794130),u=i(934804),l=i(152823);function h(e,t){let i;switch(i=(0,r.Z)(t.value)?t.value:(0,r.Z)(t.index)?[t.index]:t,e){case"ambient":case"diffuse":case"emission":case"specular":return 1===i.length?o.Z.SAMPLER_2D:o.Z.FLOAT_VEC4;case"shininess":case"transparency":return o.Z.FLOAT;case"transparent":case"doubleSided":return o.Z.BOOL}}const d=function(e,t){if(t=(0,n.Z)(t,n.Z.EMPTY_OBJECT),!(0,r.Z)(e))return;if(!(0,u.Z)(e,"KHR_materials_common"))return;(0,u.Z)(e,"KHR_techniques_webgl")||((0,r.Z)(e.extensions)||(e.extensions={}),e.extensions.KHR_techniques_webgl={programs:[],shaders:[],techniques:[]},e.extensionsUsed.push("KHR_techniques_webgl"),e.extensionsRequired.push("KHR_techniques_webgl"));const i=e.extensions.KHR_techniques_webgl;!function(e){const t=e.extensions.KHR_materials_common;if(!(0,r.Z)(t)||!(0,r.Z)(t.lights))return;const i=t.lights,o=i.length;for(let e=0;e<o;e++){const t=i[e];if("ambient"===t.type){(0,r.Z)(t.ambient)||(t.ambient={});const e=t.ambient;(0,r.Z)(e.color)||(e.color=[1,1,1])}else if("directional"===t.type){(0,r.Z)(t.directional)||(t.directional={});const e=t.directional;(0,r.Z)(e.color)||(e.color=[1,1,1])}else if("point"===t.type){(0,r.Z)(t.point)||(t.point={});const e=t.point;(0,r.Z)(e.color)||(e.color=[1,1,1]),e.constantAttenuation=(0,n.Z)(e.constantAttenuation,1),e.linearAttenuation=(0,n.Z)(e.linearAttenuation,0),e.quadraticAttenuation=(0,n.Z)(e.quadraticAttenuation,0)}else if("spot"===t.type){(0,r.Z)(t.spot)||(t.spot={});const e=t.spot;(0,r.Z)(e.color)||(e.color=[1,1,1]),e.constantAttenuation=(0,n.Z)(e.constantAttenuation,1),e.fallOffAngle=(0,n.Z)(e.fallOffAngle,3.14159265),e.fallOffExponent=(0,n.Z)(e.fallOffExponent,0),e.linearAttenuation=(0,n.Z)(e.linearAttenuation,0),e.quadraticAttenuation=(0,n.Z)(e.quadraticAttenuation,0)}}}(e);const d=function(e){const t={};let i;if((0,r.Z)(e.extensions)&&(0,r.Z)(e.extensions.KHR_materials_common)&&(i=e.extensions.KHR_materials_common.lights),(0,r.Z)(i)){const n=e.nodes;for(const e in n)if(n.hasOwnProperty(e)){const t=n[e];if((0,r.Z)(t.extensions)&&(0,r.Z)(t.extensions.KHR_materials_common)){const n=t.extensions.KHR_materials_common.light;(0,r.Z)(n)&&(0,r.Z)(i[n])&&(i[n].node=e),delete t.extensions.KHR_materials_common}}let s=0;for(const e in i)if(i.hasOwnProperty(e)){const n=i[e],a=n.type;if("ambient"!==a&&!(0,r.Z)(n.node)){delete i[e];continue}const c="light"+s.toString();let u,l,h,d;switch(n.baseName=c,a){case"ambient":u=n.ambient,t[c+"Color"]={type:o.Z.FLOAT_VEC3,value:u.color};break;case"directional":l=n.directional,t[c+"Color"]={type:o.Z.FLOAT_VEC3,value:l.color},(0,r.Z)(n.node)&&(t[c+"Transform"]={node:n.node,semantic:"MODELVIEW",type:o.Z.FLOAT_MAT4});break;case"point":h=n.point,t[c+"Color"]={type:o.Z.FLOAT_VEC3,value:h.color},(0,r.Z)(n.node)&&(t[c+"Transform"]={node:n.node,semantic:"MODELVIEW",type:o.Z.FLOAT_MAT4}),t[c+"Attenuation"]={type:o.Z.FLOAT_VEC3,value:[h.constantAttenuation,h.linearAttenuation,h.quadraticAttenuation]};break;case"spot":d=n.spot,t[c+"Color"]={type:o.Z.FLOAT_VEC3,value:d.color},(0,r.Z)(n.node)&&(t[c+"Transform"]={node:n.node,semantic:"MODELVIEW",type:o.Z.FLOAT_MAT4},t[c+"InverseTransform"]={node:n.node,semantic:"MODELVIEWINVERSE",type:o.Z.FLOAT_MAT4,useInFragment:!0}),t[c+"Attenuation"]={type:o.Z.FLOAT_VEC3,value:[d.constantAttenuation,d.linearAttenuation,d.quadraticAttenuation]},t[c+"FallOff"]={type:o.Z.FLOAT_VEC2,value:[d.fallOffAngle,d.fallOffExponent]}}++s}}return t}(e),f=l.Z.splitIncompatibleMaterials(e),p={};let m=!1;return c.Z.material(e,(function(c,l){if((0,r.Z)(c.extensions)&&(0,r.Z)(c.extensions.KHR_materials_common)){const _=c.extensions.KHR_materials_common,Z=f[l],g=function(e,t){let i="";i+="technique:"+e.technique+";";const o=e.values,s=Object.keys(o).sort(),a=s.length;for(let e=0;e<a;++e){const t=s[e];o.hasOwnProperty(t)&&(i+=t+":"+h(t,o[t]),i+=";")}const c=(0,n.Z)(e.jointCount,0);if(i+=c.toString()+";",(0,r.Z)(t)){const e=t.skinning;c>0&&(i+=e.type+";"),i+=t.hasVertexColors}return i}(_,Z);let y=p[g];(0,r.Z)(y)||(y=function(e,t,i,c,l,d){(0,r.Z)(c)||(c={}),d=(0,n.Z)(d,!1);const f=t.techniques,p=t.shaders,m=t.programs,_=c.technique.toUpperCase();let Z;(0,r.Z)(e.extensions)&&(0,r.Z)(e.extensions.KHR_materials_common)&&(Z=e.extensions.KHR_materials_common.lights);const g=c.values,y=(0,n.Z)(c.jointCount,0);let b,A=!1,w=!1;(0,r.Z)(i)&&(b=i.skinning,A=b.skinned,w=i.hasVertexColors);let v="precision highp float;\n",T="precision highp float;\n";const C="CONSTANT"!==_,E={u_modelViewMatrix:{semantic:(0,u.Z)(e,"CESIUM_RTC")?"CESIUM_RTC_MODELVIEW":"MODELVIEW",type:o.Z.FLOAT_MAT4},u_projectionMatrix:{semantic:"PROJECTION",type:o.Z.FLOAT_MAT4}};C&&(E.u_normalMatrix={semantic:"MODELVIEWINVERSETRANSPOSE",type:o.Z.FLOAT_MAT3}),A&&(E.u_jointMatrix={count:y,semantic:"JOINTMATRIX",type:o.Z.FLOAT_MAT4});let x,S=!1;for(const e in g)if(g.hasOwnProperty(e)&&"transparent"!==e&&"doubleSided"!==e){const t=h(e,g[e]);x="u_"+e.toLowerCase(),S||t!==o.Z.SAMPLER_2D||(S=!0),E[x]={type:t}}if((0,r.Z)(E.u_diffuse)&&(E.u_diffuse.semantic="_3DTILESDIFFUSE"),(0,r.Z)(l))for(const e in l)l.hasOwnProperty(e)&&(x="u_"+e,E[x]=l[e]);for(x in E)if(E.hasOwnProperty(x)){const e=E[x],t=(0,r.Z)(e.count)?"["+e.count+"]":"";e.type!==o.Z.FLOAT_MAT3&&e.type!==o.Z.FLOAT_MAT4||e.useInFragment?(T+="uniform "+(0,s.Z)(e.type)+" "+x+t+";\n",delete e.useInFragment):v+="uniform "+(0,s.Z)(e.type)+" "+x+t+";\n"}let O="";A&&(O+=" mat4 skinMatrix =\n a_weight.x * u_jointMatrix[int(a_joint.x)] +\n a_weight.y * u_jointMatrix[int(a_joint.y)] +\n a_weight.z * u_jointMatrix[int(a_joint.z)] +\n a_weight.w * u_jointMatrix[int(a_joint.w)];\n");const I={a_position:{semantic:"POSITION"}};let D;v+="attribute vec3 a_position;\n",v+="varying vec3 v_positionEC;\n",O+=A?" vec4 pos = u_modelViewMatrix * skinMatrix * vec4(a_position,1.0);\n":" vec4 pos = u_modelViewMatrix * vec4(a_position,1.0);\n",O+=" v_positionEC = pos.xyz;\n",O+=" gl_Position = u_projectionMatrix * pos;\n",T+="varying vec3 v_positionEC;\n",C&&(I.a_normal={semantic:"NORMAL"},v+="attribute vec3 a_normal;\n",v+="varying vec3 v_normal;\n",O+=A?" v_normal = u_normalMatrix * mat3(skinMatrix) * a_normal;\n":" v_normal = u_normalMatrix * a_normal;\n",T+="varying vec3 v_normal;\n"),S&&(I.a_texcoord_0={semantic:"TEXCOORD_0"},D="v_texcoord_0",v+="attribute vec2 a_texcoord_0;\n",v+="varying vec2 "+D+";\n",O+=" "+D+" = a_texcoord_0;\n",T+="varying vec2 "+D+";\n"),A&&(I.a_joint={semantic:"JOINTS_0"},I.a_weight={semantic:"WEIGHTS_0"},v+="attribute vec4 a_joint;\n",v+="attribute vec4 a_weight;\n"),w&&(I.a_vertexColor={semantic:"COLOR_0"},v+="attribute vec4 a_vertexColor;\n",v+="varying vec4 v_vertexColor;\n",O+=" v_vertexColor = a_vertexColor;\n",T+="varying vec4 v_vertexColor;\n"),d&&(I.a_batchId={semantic:"_BATCHID"},v+="attribute float a_batchId;\n");const P=C&&("BLINN"===_||"PHONG"===_)&&(0,r.Z)(E.u_specular)&&(0,r.Z)(E.u_shininess)&&E.u_shininess>0;let R=!1,B=!1,M="";for(const e in Z)if(Z.hasOwnProperty(e)){const t=Z[e],i=t.type.toLowerCase(),n=t.baseName;M+=" {\n";const r="u_"+n+"Color";if("ambient"===i)B=!0,M+=" ambientLight += "+r+";\n";else if(C){R=!0;const e="v_"+n+"Direction",t="v_"+n+"Position";"point"!==i&&(v+="varying vec3 "+e+";\n",T+="varying vec3 "+e+";\n",O+=" "+e+" = mat3(u_"+n+"Transform) * vec3(0.,0.,1.);\n","directional"===i&&(M+=" vec3 l = normalize("+e+");\n")),"directional"!==i?(v+="varying vec3 "+t+";\n",T+="varying vec3 "+t+";\n",O+=" "+t+" = u_"+n+"Transform[3].xyz;\n",M+=" vec3 VP = "+t+" - v_positionEC;\n",M+=" vec3 l = normalize(VP);\n",M+=" float range = length(VP);\n",M+=" float attenuation = 1.0 / (u_"+n+"Attenuation.x + ",M+="(u_"+n+"Attenuation.y * range) + ",M+="(u_"+n+"Attenuation.z * range * range));\n"):M+=" float attenuation = 1.0;\n","spot"===i&&(M+=" float spotDot = dot(l, normalize("+e+"));\n",M+=" if (spotDot < cos(u_"+n+"FallOff.x * 0.5))\n",M+=" {\n",M+=" attenuation = 0.0;\n",M+=" }\n",M+=" else\n",M+=" {\n",M+=" attenuation *= max(0.0, pow(spotDot, u_"+n+"FallOff.y));\n",M+=" }\n"),M+=" diffuseLight += "+r+"* max(dot(normal,l), 0.) * attenuation;\n",P&&("BLINN"===_?(M+=" vec3 h = normalize(l + viewDir);\n",M+=" float specularIntensity = max(0., pow(max(dot(normal, h), 0.), u_shininess)) * attenuation;\n"):(M+=" vec3 reflectDir = reflect(-l, normal);\n",M+=" float specularIntensity = max(0., pow(max(dot(reflectDir, viewDir), 0.), u_shininess)) * attenuation;\n"),M+=" specularLight += "+r+" * specularIntensity;\n")}M+=" }\n"}B||(M+=" ambientLight += vec3(0.2, 0.2, 0.2);\n"),R||"CONSTANT"===_||(T+="#ifdef USE_CUSTOM_LIGHT_COLOR \n",T+="uniform vec3 gltf_lightColor; \n",T+="#endif \n",M+="#ifndef USE_CUSTOM_LIGHT_COLOR \n",M+=" vec3 lightColor = czm_lightColor;\n",M+="#else \n",M+=" vec3 lightColor = gltf_lightColor;\n",M+="#endif \n",M+=" vec3 l = normalize(czm_lightDirectionEC);\n",M+=" diffuseLight += lightColor * max(dot(normal,l), 0.2);\n",P&&("BLINN"===_?(M+=" vec3 h = normalize(l + viewDir);\n",M+=" float specularIntensity = max(0., pow(max(dot(normal, h), 0.), u_shininess));\n"):(M+=" vec3 reflectDir = reflect(-l, normal);\n",M+=" float specularIntensity = max(0., pow(max(dot(reflectDir, viewDir), 0.), u_shininess));\n"),M+=" specularLight += lightColor * specularIntensity;\n")),v+="void main(void) {\n",v+=O,v+="}\n",T+="void main(void) {\n";let L,N=" vec3 color = vec3(0.0, 0.0, 0.0);\n";C&&(T+=" vec3 normal = normalize(v_normal);\n",c.doubleSided&&(T+=" if (czm_backFacing())\n",T+=" {\n",T+=" normal = -normal;\n",T+=" }\n")),"CONSTANT"!==_?((0,r.Z)(E.u_diffuse)&&(E.u_diffuse.type===o.Z.SAMPLER_2D?T+=" vec4 diffuse = texture2D(u_diffuse, "+D+");\n":T+=" vec4 diffuse = u_diffuse;\n",T+=" vec3 diffuseLight = vec3(0.0, 0.0, 0.0);\n",N+=" color += diffuse.rgb * diffuseLight;\n"),P&&(E.u_specular.type===o.Z.SAMPLER_2D?T+=" vec3 specular = texture2D(u_specular, "+D+").rgb;\n":T+=" vec3 specular = u_specular.rgb;\n",T+=" vec3 specularLight = vec3(0.0, 0.0, 0.0);\n",N+=" color += specular * specularLight;\n"),L=(0,r.Z)(E.u_transparency)?" gl_FragColor = vec4(color * diffuse.a * u_transparency, diffuse.a * u_transparency);\n":" gl_FragColor = vec4(color * diffuse.a, diffuse.a);\n"):L=(0,r.Z)(E.u_transparency)?" gl_FragColor = vec4(color * u_transparency, u_transparency);\n":" gl_FragColor = vec4(color, 1.0);\n",w&&(N+=" color *= v_vertexColor.rgb;\n"),(0,r.Z)(E.u_emission)&&(E.u_emission.type===o.Z.SAMPLER_2D?T+=" vec3 emission = texture2D(u_emission, "+D+").rgb;\n":T+=" vec3 emission = u_emission.rgb;\n",N+=" color += emission;\n"),((0,r.Z)(E.u_ambient)||"CONSTANT"!==_)&&((0,r.Z)(E.u_ambient)?E.u_ambient.type===o.Z.SAMPLER_2D?T+=" vec3 ambient = texture2D(u_ambient, "+D+").rgb;\n":T+=" vec3 ambient = u_ambient.rgb;\n":T+=" vec3 ambient = diffuse.rgb;\n",N+=" color += ambient * ambientLight;\n"),T+=" vec3 viewDir = -normalize(v_positionEC);\n",T+=" vec3 ambientLight = vec3(0.0, 0.0, 0.0);\n",T+=M,T+=N,T+=L,T+="}\n";const F=(0,a.Z)(p,{type:o.Z.VERTEX_SHADER,extras:{_pipeline:{source:v,extension:".glsl"}}}),k=(0,a.Z)(p,{type:o.Z.FRAGMENT_SHADER,extras:{_pipeline:{source:T,extension:".glsl"}}}),U=(0,a.Z)(m,{fragmentShader:k,vertexShader:F});return(0,a.Z)(f,{attributes:I,program:U,uniforms:E})}(e,i,Z,_,d,t.addBatchIdToGeneratedShaders),p[g]=y,m=!0);const b={},A=_.values;let w;for(const e in A)A.hasOwnProperty(e)&&"transparent"!==e&&"doubleSided"!==e&&(w="u_"+e.toLowerCase(),b[w]=A[e]);c.extensions.KHR_techniques_webgl={technique:y,values:b},c.alphaMode="OPAQUE",_.transparent&&(c.alphaMode="BLEND"),_.doubleSided&&(c.doubleSided=!0)}})),m?(l.Z.ensureSemanticExistence(e),e):e}},883748:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Z});var n=i(406144),r=i(426468),o=i(619287),s=i(770155),a=i(48564),c=i(794130),u=i(934804),l=i(152823);function h(e,t,i,n,o){let s;const a=i[t];return(0,r.Z)(a)&&(0,r.Z)(a.texCoord)&&1===a.texCoord&&(n=n.replace("0","1")),(0,r.Z)(i[t+"Offset"])?(s=t+"Coord",o.fragmentShaderMain+=" vec2 "+s+" = computeTexCoord("+n+", "+t+"Offset, "+t+"Rotation, "+t+"Scale);\n"):s=n,s}const d=[0,0],f=[0],p=[1,1];function m(e,t,i){if(-1===e.indexOf("Texture")||!(0,r.Z)(t.extensions)||!(0,r.Z)(t.extensions.KHR_texture_transform))return;const o="u_"+e,s=t.extensions.KHR_texture_transform;i[o+"Offset"]=(0,n.Z)(s.offset,d),i[o+"Rotation"]=(0,n.Z)(s.rotation,f),i[o+"Scale"]=(0,n.Z)(s.scale,p),(0,r.Z)(t.texCoord)&&(0,r.Z)(s.texCoord)&&(i[o].texCoord=s.texCoord)}function _(e){if(-1!==e.indexOf("Offset"))return o.Z.FLOAT_VEC2;if(-1!==e.indexOf("Rotation"))return o.Z.FLOAT;if(-1!==e.indexOf("Scale"))return o.Z.FLOAT_VEC2;if(-1!==e.indexOf("Texture"))return o.Z.SAMPLER_2D;switch(e){case"u_baseColorFactor":case"u_diffuseFactor":return o.Z.FLOAT_VEC4;case"u_metallicFactor":case"u_roughnessFactor":case"u_glossinessFactor":return o.Z.FLOAT;case"u_emissiveFactor":case"u_specularFactor":return o.Z.FLOAT_VEC3}}const Z=function(e,t){if(t=(0,n.Z)(t,n.Z.EMPTY_OBJECT),(0,u.Z)(e,"KHR_techniques_webgl"))return e;if(!(0,r.Z)(e.materials)||0===e.materials.length)return e;(0,r.Z)(e.extensions)||(e.extensions={}),(0,r.Z)(e.extensionsUsed)||(e.extensionsUsed=[]),(0,r.Z)(e.extensionsRequired)||(e.extensionsRequired=[]),e.extensions.KHR_techniques_webgl={programs:[],shaders:[],techniques:[]},e.extensionsUsed.push("KHR_techniques_webgl"),e.extensionsRequired.push("KHR_techniques_webgl");const i=l.Z.splitIncompatibleMaterials(e);return c.Z.material(e,(function(l,d){const f={},p=function(e,t,i,l,d,f){const p=(0,n.Z)(f.addBatchIdToGeneratedShaders,!1),Z=e.extensions.KHR_techniques_webgl,g=Z.techniques,y=Z.shaders,b=Z.programs,A=function(e){return(0,r.Z)(e.extensions)&&(0,r.Z)(e.extensions.KHR_materials_pbrSpecularGlossiness)}(t);let w,v,T;const C=t.pbrMetallicRoughness;if((0,r.Z)(C)&&!A)for(v in C)C.hasOwnProperty(v)&&(T=C[v],w="u_"+v,l[w]=T,m(v,T,l));if(A){const e=t.extensions.KHR_materials_pbrSpecularGlossiness;for(v in e)e.hasOwnProperty(v)&&(T=e[v],w="u_"+v,l[w]=T,m(v,T,l))}for(const e in t)t.hasOwnProperty(e)&&(e.indexOf("Texture")>=0||e.indexOf("Factor")>=0)&&(T=t[e],w="u_"+e,l[w]=T,m(e,T,l));let E,x="precision highp float;\n",S="precision highp float;\n";(0,r.Z)(e.skins)&&(E=e.skins[0]);const O=(0,r.Z)(E)?E.joints:[],I=O.length,D=d[i];let P,R,B=!1,M=!1,L=!1,N=!1,F=!1,k=!1,U=!1,V=!1,z=!1;(0,r.Z)(D)&&(P=D.skinning,B=P.skinned&&O.length>0,M=D.hasVertexColors,L=D.hasMorphTargets,N=D.hasNormals,F=D.hasTangents,k=D.hasTexCoords,U=D.hasTexCoord1,V=D.hasOutline),L&&c.Z.mesh(e,(function(e){c.Z.meshPrimitive(e,(function(e){if(e.material===i){const t=e.targets;(0,r.Z)(t)&&(R=t)}}))}));const H={u_modelViewMatrix:{semantic:(0,u.Z)(e,"CESIUM_RTC")?"CESIUM_RTC_MODELVIEW":"MODELVIEW",type:o.Z.FLOAT_MAT4},u_projectionMatrix:{semantic:"PROJECTION",type:o.Z.FLOAT_MAT4}};(0,r.Z)(t.extensions)&&(0,r.Z)(t.extensions.KHR_materials_unlit)&&(z=!0),N&&(H.u_normalMatrix={semantic:"MODELVIEWINVERSETRANSPOSE",type:o.Z.FLOAT_MAT3}),B&&(H.u_jointMatrix={count:I,semantic:"JOINTMATRIX",type:o.Z.FLOAT_MAT4}),L&&(H.u_morphWeights={count:R.length,semantic:"MORPHWEIGHTS",type:o.Z.FLOAT});const G=t.alphaMode;for(w in(0,r.Z)(G)&&"MASK"===G&&(H.u_alphaCutoff={semantic:"ALPHACUTOFF",type:o.Z.FLOAT}),l)l.hasOwnProperty(w)&&(H[w]={type:_(w)});const q=(0,n.Z)(H.u_baseColorTexture,H.u_baseColorFactor);for(w in(0,r.Z)(q)&&(q.semantic="_3DTILESDIFFUSE"),H)if(H.hasOwnProperty(w)){const e=H[w],t=(0,r.Z)(e.count)?"["+e.count+"]":"";e.type!==o.Z.FLOAT_MAT3&&e.type!==o.Z.FLOAT_MAT4&&"u_morphWeights"!==w||e.useInFragment?(S+="uniform "+(0,s.Z)(e.type)+" "+w+t+";\n",delete e.useInFragment):x+="uniform "+(0,s.Z)(e.type)+" "+w+t+";\n"}V&&(S+="uniform sampler2D u_outlineTexture;\n");let j="";B&&(j+=" mat4 skinMatrix =\n a_weight.x * u_jointMatrix[int(a_joint.x)] +\n a_weight.y * u_jointMatrix[int(a_joint.y)] +\n a_weight.z * u_jointMatrix[int(a_joint.z)] +\n a_weight.w * u_jointMatrix[int(a_joint.w)];\n");const W={a_position:{semantic:"POSITION"}};if(V&&(W.a_outlineCoordinates={semantic:"_OUTLINE_COORDINATES"}),x+="attribute vec3 a_position;\n",N&&(x+="varying vec3 v_positionEC;\n"),V&&(x+="attribute vec3 a_outlineCoordinates;\n",x+="varying vec3 v_outlineCoordinates;\n"),j+=" vec3 weightedPosition = a_position;\n",N&&(j+=" vec3 weightedNormal = a_normal;\n"),F&&(j+=" vec4 weightedTangent = a_tangent;\n"),L)for(let e=0;e<R.length;e++){const t=R[e];for(const i in t)if(t.hasOwnProperty(i)&&"extras"!==i){const t="a_"+i+"_"+e;W[t]={semantic:i+"_"+e},x+="attribute vec3 "+t+";\n","POSITION"===i?j+=" weightedPosition += u_morphWeights["+e+"] * "+t+";\n":"NORMAL"===i?j+=" weightedNormal += u_morphWeights["+e+"] * "+t+";\n":F&&"TANGENT"===i&&(j+=" weightedTangent.xyz += u_morphWeights["+e+"] * "+t+";\n")}}j+=B?" vec4 position = skinMatrix * vec4(weightedPosition, 1.0);\n":" vec4 position = vec4(weightedPosition, 1.0);\n",j+=" position = u_modelViewMatrix * position;\n",N&&(j+=" v_positionEC = position.xyz;\n"),j+=" gl_Position = u_projectionMatrix * position;\n",V&&(j+=" v_outlineCoordinates = a_outlineCoordinates;\n"),N&&(W.a_normal={semantic:"NORMAL"},x+="attribute vec3 a_normal;\n",z||(x+="varying vec3 v_normal;\n",j+=B?" v_normal = u_normalMatrix * mat3(skinMatrix) * weightedNormal;\n":" v_normal = u_normalMatrix * weightedNormal;\n",S+="varying vec3 v_normal;\n"),S+="varying vec3 v_positionEC;\n"),F&&(W.a_tangent={semantic:"TANGENT"},x+="attribute vec4 a_tangent;\n",x+="varying vec4 v_tangent;\n",j+=" v_tangent.xyz = u_normalMatrix * weightedTangent.xyz;\n",j+=" v_tangent.w = weightedTangent.w;\n",S+="varying vec4 v_tangent;\n"),V&&(S+="varying vec3 v_outlineCoordinates;\n");let K,Y,X,J,Q,$,ee,te,ie="";if(k){if(W.a_texcoord_0={semantic:"TEXCOORD_0"},K="v_texcoord_0",x+="attribute vec2 a_texcoord_0;\n",x+="varying vec2 v_texcoord_0;\n",j+=" v_texcoord_0 = a_texcoord_0;\n",S+="varying vec2 v_texcoord_0;\n",U){W.a_texcoord_1={semantic:"TEXCOORD_1"};const e=K.replace("0","1");x+="attribute vec2 a_texcoord_1;\n",x+="varying vec2 "+e+";\n",j+=" "+e+" = a_texcoord_1;\n",S+="varying vec2 "+e+";\n"}const e={fragmentShaderMain:ie};Y=h(0,"u_normalTexture",l,K,e),X=h(0,"u_baseColorTexture",l,K,e),J=h(0,"u_specularGlossinessTexture",l,K,e),Q=h(0,"u_diffuseTexture",l,K,e),$=h(0,"u_metallicRoughnessTexture",l,K,e),ee=h(0,"u_occlusionTexture",l,K,e),te=h(0,"u_emissiveTexture",l,K,e),ie=e.fragmentShaderMain}B&&(W.a_joint={semantic:"JOINTS_0"},W.a_weight={semantic:"WEIGHTS_0"},x+="attribute vec4 a_joint;\n",x+="attribute vec4 a_weight;\n"),M&&(W.a_vertexColor={semantic:"COLOR_0"},x+="attribute vec4 a_vertexColor;\n",x+="varying vec4 v_vertexColor;\n",j+=" v_vertexColor = a_vertexColor;\n",S+="varying vec4 v_vertexColor;\n"),p&&(W.a_batchId={semantic:"_BATCHID"},x+="attribute float a_batchId;\n"),x+="void main(void) \n{\n",x+=j,x+="}\n",N&&!z&&(S+="const float M_PI = 3.141592653589793;\n",S+="vec3 lambertianDiffuse(vec3 diffuseColor) \n{\n return diffuseColor / M_PI;\n}\n\n",S+="vec3 fresnelSchlick2(vec3 f0, vec3 f90, float VdotH) \n{\n return f0 + (f90 - f0) * pow(clamp(1.0 - VdotH, 0.0, 1.0), 5.0);\n}\n\n",S+="vec3 fresnelSchlick(float metalness, float VdotH) \n{\n return metalness + (vec3(1.0) - metalness) * pow(1.0 - VdotH, 5.0);\n}\n\n",S+="float smithVisibilityG1(float NdotV, float roughness) \n{\n float k = (roughness + 1.0) * (roughness + 1.0) / 8.0;\n return NdotV / (NdotV * (1.0 - k) + k);\n}\n\n",S+="float smithVisibilityGGX(float roughness, float NdotL, float NdotV) \n{\n return smithVisibilityG1(NdotL, roughness) * smithVisibilityG1(NdotV, roughness);\n}\n\n",S+="float GGX(float roughness, float NdotH) \n{\n float roughnessSquared = roughness * roughness;\n float f = (NdotH * roughnessSquared - NdotH) * NdotH + 1.0;\n return roughnessSquared / (M_PI * f * f);\n}\n\n"),S+="vec3 SRGBtoLINEAR3(vec3 srgbIn) \n{\n return pow(srgbIn, vec3(2.2));\n}\n\n",S+="vec4 SRGBtoLINEAR4(vec4 srgbIn) \n{\n vec3 linearOut = pow(srgbIn.rgb, vec3(2.2));\n return vec4(linearOut, srgbIn.a);\n}\n\n",S+="vec3 applyTonemapping(vec3 linearIn) \n{\n#ifndef HDR \n return czm_acesTonemapping(linearIn);\n#else \n return linearIn;\n#endif \n}\n\n",S+="vec3 LINEARtoSRGB(vec3 linearIn) \n{\n#ifndef HDR \n return pow(linearIn, vec3(1.0/2.2));\n#else \n return linearIn;\n#endif \n}\n\n",S+="vec2 computeTexCoord(vec2 texCoords, vec2 offset, float rotation, vec2 scale) \n{\n rotation = -rotation; \n mat3 transform = mat3(\n cos(rotation) * scale.x, sin(rotation) * scale.x, 0.0, \n -sin(rotation) * scale.y, cos(rotation) * scale.y, 0.0, \n offset.x, offset.y, 1.0); \n vec2 transformedTexCoords = (transform * vec3(fract(texCoords), 1.0)).xy; \n return transformedTexCoords; \n}\n\n",S+="#ifdef USE_IBL_LIGHTING \n",S+="uniform vec2 gltf_iblFactor; \n",S+="#endif \n",S+="#ifdef USE_CUSTOM_LIGHT_COLOR \n",S+="uniform vec3 gltf_lightColor; \n",S+="#endif \n",S+="void main(void) \n{\n",S+=ie,N&&!z&&(S+=" vec3 ng = normalize(v_normal);\n",S+=" vec3 positionWC = vec3(czm_inverseView * vec4(v_positionEC, 1.0));\n",(0,r.Z)(l.u_normalTexture)?F?(S+=" vec3 t = normalize(v_tangent.xyz);\n",S+=" vec3 b = normalize(cross(ng, t) * v_tangent.w);\n",S+=" mat3 tbn = mat3(t, b, ng);\n",S+=" vec3 n = texture2D(u_normalTexture, "+Y+").rgb;\n",S+=" n = normalize(tbn * (2.0 * n - 1.0));\n"):(S="#ifdef GL_OES_standard_derivatives\n#extension GL_OES_standard_derivatives : enable\n#endif\n"+S,S+="#ifdef GL_OES_standard_derivatives\n",S+=" vec3 pos_dx = dFdx(v_positionEC);\n",S+=" vec3 pos_dy = dFdy(v_positionEC);\n",S+=" vec3 tex_dx = dFdx(vec3("+Y+",0.0));\n",S+=" vec3 tex_dy = dFdy(vec3("+Y+",0.0));\n",S+=" vec3 t = (tex_dy.t * pos_dx - tex_dx.t * pos_dy) / (tex_dx.s * tex_dy.t - tex_dy.s * tex_dx.t);\n",S+=" t = normalize(t - ng * dot(ng, t));\n",S+=" vec3 b = normalize(cross(ng, t));\n",S+=" mat3 tbn = mat3(t, b, ng);\n",S+=" vec3 n = texture2D(u_normalTexture, "+Y+").rgb;\n",S+=" n = normalize(tbn * (2.0 * n - 1.0));\n",S+="#else\n",S+=" vec3 n = ng;\n",S+="#endif\n"):S+=" vec3 n = ng;\n",t.doubleSided&&(S+=" if (czm_backFacing())\n",S+=" {\n",S+=" n = -n;\n",S+=" }\n")),(0,r.Z)(l.u_baseColorTexture)?(S+=" vec4 baseColorWithAlpha = SRGBtoLINEAR4(texture2D(u_baseColorTexture, "+X+"));\n",(0,r.Z)(l.u_baseColorFactor)&&(S+=" baseColorWithAlpha *= u_baseColorFactor;\n")):(0,r.Z)(l.u_baseColorFactor)?S+=" vec4 baseColorWithAlpha = u_baseColorFactor;\n":S+=" vec4 baseColorWithAlpha = vec4(1.0);\n",M&&(S+=" baseColorWithAlpha *= v_vertexColor;\n"),S+=" vec3 baseColor = baseColorWithAlpha.rgb;\n",N&&!z?(A?((0,r.Z)(l.u_specularGlossinessTexture)?(S+=" vec4 specularGlossiness = SRGBtoLINEAR4(texture2D(u_specularGlossinessTexture, "+J+"));\n",S+=" vec3 specular = specularGlossiness.rgb;\n",S+=" float glossiness = specularGlossiness.a;\n",(0,r.Z)(l.u_specularFactor)&&(S+=" specular *= u_specularFactor;\n"),(0,r.Z)(l.u_glossinessFactor)&&(S+=" glossiness *= u_glossinessFactor;\n")):((0,r.Z)(l.u_specularFactor)?S+=" vec3 specular = clamp(u_specularFactor, vec3(0.0), vec3(1.0));\n":S+=" vec3 specular = vec3(1.0);\n",(0,r.Z)(l.u_glossinessFactor)?S+=" float glossiness = clamp(u_glossinessFactor, 0.0, 1.0);\n":S+=" float glossiness = 1.0;\n"),(0,r.Z)(l.u_diffuseTexture)?(S+=" vec4 diffuse = SRGBtoLINEAR4(texture2D(u_diffuseTexture, "+Q+"));\n",(0,r.Z)(l.u_diffuseFactor)&&(S+=" diffuse *= u_diffuseFactor;\n")):(0,r.Z)(l.u_diffuseFactor)?S+=" vec4 diffuse = clamp(u_diffuseFactor, vec4(0.0), vec4(1.0));\n":S+=" vec4 diffuse = vec4(1.0);\n",S+=" baseColorWithAlpha.a = diffuse.a;\n"):(0,r.Z)(l.u_metallicRoughnessTexture)?(S+=" vec3 metallicRoughness = texture2D(u_metallicRoughnessTexture, "+$+").rgb;\n",S+=" float metalness = clamp(metallicRoughness.b, 0.0, 1.0);\n",S+=" float roughness = clamp(metallicRoughness.g, 0.04, 1.0);\n",(0,r.Z)(l.u_metallicFactor)&&(S+=" metalness *= u_metallicFactor;\n"),(0,r.Z)(l.u_roughnessFactor)&&(S+=" roughness *= u_roughnessFactor;\n")):((0,r.Z)(l.u_metallicFactor)?S+=" float metalness = clamp(u_metallicFactor, 0.0, 1.0);\n":S+=" float metalness = 1.0;\n",(0,r.Z)(l.u_roughnessFactor)?S+=" float roughness = clamp(u_roughnessFactor, 0.04, 1.0);\n":S+=" float roughness = 1.0;\n"),S+=" vec3 v = -normalize(v_positionEC);\n",S+="#ifndef USE_CUSTOM_LIGHT_COLOR \n",S+=" vec3 lightColorHdr = czm_lightColorHdr;\n",S+="#else \n",S+=" vec3 lightColorHdr = gltf_lightColor;\n",S+="#endif \n",S+=" vec3 l = normalize(czm_lightDirectionEC);\n",S+=" vec3 h = normalize(v + l);\n",S+=" float NdotL = clamp(dot(n, l), 0.001, 1.0);\n",S+=" float NdotV = abs(dot(n, v)) + 0.001;\n",S+=" float NdotH = clamp(dot(n, h), 0.0, 1.0);\n",S+=" float LdotH = clamp(dot(l, h), 0.0, 1.0);\n",S+=" float VdotH = clamp(dot(v, h), 0.0, 1.0);\n",S+=" vec3 f0 = vec3(0.04);\n",A?(S+=" float roughness = 1.0 - glossiness;\n",S+=" vec3 diffuseColor = diffuse.rgb * (1.0 - max(max(specular.r, specular.g), specular.b));\n",S+=" vec3 specularColor = specular;\n"):(S+=" vec3 diffuseColor = baseColor * (1.0 - metalness) * (1.0 - f0);\n",S+=" vec3 specularColor = mix(f0, baseColor, metalness);\n"),S+=" float alpha = roughness * roughness;\n",S+=" float reflectance = max(max(specularColor.r, specularColor.g), specularColor.b);\n",S+=" vec3 r90 = vec3(clamp(reflectance * 25.0, 0.0, 1.0));\n",S+=" vec3 r0 = specularColor.rgb;\n",S+=" vec3 F = fresnelSchlick2(r0, r90, VdotH);\n",S+=" float G = smithVisibilityGGX(alpha, NdotL, NdotV);\n",S+=" float D = GGX(alpha, NdotH);\n",S+=" vec3 diffuseContribution = (1.0 - F) * lambertianDiffuse(diffuseColor);\n",S+=" vec3 specularContribution = F * G * D / (4.0 * NdotL * NdotV);\n",S+=" vec3 color = NdotL * lightColorHdr * (diffuseContribution + specularContribution);\n",S+="#if defined(USE_IBL_LIGHTING) && !defined(DIFFUSE_IBL) && !defined(SPECULAR_IBL) \n",S+=" vec3 r = normalize(czm_inverseViewRotation * normalize(reflect(v, n)));\n",S+=" float vertexRadius = length(positionWC);\n",S+=" float horizonDotNadir = 1.0 - min(1.0, czm_ellipsoidRadii.x / vertexRadius);\n",S+=" float reflectionDotNadir = dot(r, normalize(positionWC));\n",S+=" r.x = -r.x;\n",S+=" r = -normalize(czm_temeToPseudoFixed * r);\n",S+=" r.x = -r.x;\n",S+=" float inverseRoughness = 1.04 - roughness;\n",S+=" inverseRoughness *= inverseRoughness;\n",S+=" vec3 sceneSkyBox = textureCube(czm_environmentMap, r).rgb * inverseRoughness;\n",S+=" float atmosphereHeight = 0.05;\n",S+=" float blendRegionSize = 0.1 * ((1.0 - inverseRoughness) * 8.0 + 1.1 - horizonDotNadir);\n",S+=" float blendRegionOffset = roughness * -1.0;\n",S+=" float farAboveHorizon = clamp(horizonDotNadir - blendRegionSize * 0.5 + blendRegionOffset, 1.0e-10 - blendRegionSize, 0.99999);\n",S+=" float aroundHorizon = clamp(horizonDotNadir + blendRegionSize * 0.5, 1.0e-10 - blendRegionSize, 0.99999);\n",S+=" float farBelowHorizon = clamp(horizonDotNadir + blendRegionSize * 1.5, 1.0e-10 - blendRegionSize, 0.99999);\n",S+=" float smoothstepHeight = smoothstep(0.0, atmosphereHeight, horizonDotNadir);\n",S+=" vec3 belowHorizonColor = mix(vec3(0.1, 0.15, 0.25), vec3(0.4, 0.7, 0.9), smoothstepHeight);\n",S+=" vec3 nadirColor = belowHorizonColor * 0.5;\n",S+=" vec3 aboveHorizonColor = mix(vec3(0.9, 1.0, 1.2), belowHorizonColor, roughness * 0.5);\n",S+=" vec3 blueSkyColor = mix(vec3(0.18, 0.26, 0.48), aboveHorizonColor, reflectionDotNadir * inverseRoughness * 0.5 + 0.75);\n",S+=" vec3 zenithColor = mix(blueSkyColor, sceneSkyBox, smoothstepHeight);\n",S+=" vec3 blueSkyDiffuseColor = vec3(0.7, 0.85, 0.9);\n",S+=" float diffuseIrradianceFromEarth = (1.0 - horizonDotNadir) * (reflectionDotNadir * 0.25 + 0.75) * smoothstepHeight;\n",S+=" float diffuseIrradianceFromSky = (1.0 - smoothstepHeight) * (1.0 - (reflectionDotNadir * 0.25 + 0.25));\n",S+=" vec3 diffuseIrradiance = blueSkyDiffuseColor * clamp(diffuseIrradianceFromEarth + diffuseIrradianceFromSky, 0.0, 1.0);\n",S+=" float notDistantRough = (1.0 - horizonDotNadir * roughness * 0.8);\n",S+=" vec3 specularIrradiance = mix(zenithColor, aboveHorizonColor, smoothstep(farAboveHorizon, aroundHorizon, reflectionDotNadir) * notDistantRough);\n",S+=" specularIrradiance = mix(specularIrradiance, belowHorizonColor, smoothstep(aroundHorizon, farBelowHorizon, reflectionDotNadir) * inverseRoughness);\n",S+=" specularIrradiance = mix(specularIrradiance, nadirColor, smoothstep(farBelowHorizon, 1.0, reflectionDotNadir) * inverseRoughness);\n",S+="#ifdef USE_SUN_LUMINANCE \n",S+=" float LdotZenith = clamp(dot(normalize(czm_inverseViewRotation * l), normalize(positionWC * -1.0)), 0.001, 1.0);\n",S+=" float S = acos(LdotZenith);\n",S+=" float NdotZenith = clamp(dot(normalize(czm_inverseViewRotation * n), normalize(positionWC * -1.0)), 0.001, 1.0);\n",S+=" float gamma = acos(NdotL);\n",S+=" float numerator = ((0.91 + 10.0 * exp(-3.0 * gamma) + 0.45 * pow(NdotL, 2.0)) * (1.0 - exp(-0.32 / NdotZenith)));\n",S+=" float denominator = (0.91 + 10.0 * exp(-3.0 * S) + 0.45 * pow(LdotZenith,2.0)) * (1.0 - exp(-0.32));\n",S+=" float luminance = gltf_luminanceAtZenith * (numerator / denominator);\n",S+="#endif \n",S+=" vec2 brdfLut = texture2D(czm_brdfLut, vec2(NdotV, roughness)).rg;\n",S+=" vec3 IBLColor = (diffuseIrradiance * diffuseColor * gltf_iblFactor.x) + (specularIrradiance * SRGBtoLINEAR3(specularColor * brdfLut.x + brdfLut.y) * gltf_iblFactor.y);\n",S+=" float maximumComponent = max(max(lightColorHdr.x, lightColorHdr.y), lightColorHdr.z);\n",S+=" vec3 lightColor = lightColorHdr / max(maximumComponent, 1.0);\n",S+=" IBLColor *= lightColor;\n",S+="#ifdef USE_SUN_LUMINANCE \n",S+=" color += IBLColor * luminance;\n",S+="#else \n",S+=" color += IBLColor; \n",S+="#endif \n",S+="#elif defined(DIFFUSE_IBL) || defined(SPECULAR_IBL) \n",S+=" const mat3 yUpToZUp = mat3(-1.0, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 1.0, 0.0); \n",S+=" vec3 cubeDir = normalize(yUpToZUp * gltf_iblReferenceFrameMatrix * normalize(reflect(-v, n))); \n",S+="#ifdef DIFFUSE_IBL \n",S+="#ifdef CUSTOM_SPHERICAL_HARMONICS \n",S+=" vec3 diffuseIrradiance = czm_sphericalHarmonics(cubeDir, gltf_sphericalHarmonicCoefficients); \n",S+="#else \n",S+=" vec3 diffuseIrradiance = czm_sphericalHarmonics(cubeDir, czm_sphericalHarmonicCoefficients); \n",S+="#endif \n",S+="#else \n",S+=" vec3 diffuseIrradiance = vec3(0.0); \n",S+="#endif \n",S+="#ifdef SPECULAR_IBL \n",S+=" vec2 brdfLut = texture2D(czm_brdfLut, vec2(NdotV, roughness)).rg;\n",S+="#ifdef CUSTOM_SPECULAR_IBL \n",S+=" vec3 specularIBL = czm_sampleOctahedralProjection(gltf_specularMap, gltf_specularMapSize, cubeDir, roughness * gltf_maxSpecularLOD, gltf_maxSpecularLOD);\n",S+="#else \n",S+=" vec3 specularIBL = czm_sampleOctahedralProjection(czm_specularEnvironmentMaps, czm_specularEnvironmentMapSize, cubeDir, roughness * czm_specularEnvironmentMapsMaximumLOD, czm_specularEnvironmentMapsMaximumLOD);\n",S+="#endif \n",S+=" specularIBL *= F * brdfLut.x + brdfLut.y;\n",S+="#else \n",S+=" vec3 specularIBL = vec3(0.0); \n",S+="#endif \n",S+=" color += diffuseIrradiance * diffuseColor + specularColor * specularIBL;\n",S+="#endif \n"):S+=" vec3 color = baseColor;\n",z||((0,r.Z)(l.u_occlusionTexture)&&(S+=" color *= texture2D(u_occlusionTexture, "+ee+").r;\n"),(0,r.Z)(l.u_emissiveTexture)?(S+=" vec3 emissive = SRGBtoLINEAR3(texture2D(u_emissiveTexture, "+te+").rgb);\n",(0,r.Z)(l.u_emissiveFactor)&&(S+=" emissive *= u_emissiveFactor;\n"),S+=" color += emissive;\n"):(0,r.Z)(l.u_emissiveFactor)&&(S+=" color += u_emissiveFactor;\n")),z||(S+=" color = applyTonemapping(color);\n"),S+=" color = LINEARtoSRGB(color);\n",V&&(S+=" float outlineness = max(\n",S+=" texture2D(u_outlineTexture, vec2(v_outlineCoordinates.x, 0.5)).r,\n",S+=" max(\n",S+=" texture2D(u_outlineTexture, vec2(v_outlineCoordinates.y, 0.5)).r,\n",S+=" texture2D(u_outlineTexture, vec2(v_outlineCoordinates.z, 0.5)).r));\n",S+=" color = mix(color, vec3(0.0, 0.0, 0.0), outlineness);\n"),(0,r.Z)(G)?"MASK"===G?(S+=" if (baseColorWithAlpha.a < u_alphaCutoff) {\n",S+=" discard;\n",S+=" }\n",S+=" gl_FragColor = vec4(color, 1.0);\n"):S+="BLEND"===G?" gl_FragColor = vec4(color, baseColorWithAlpha.a);\n":" gl_FragColor = vec4(color, 1.0);\n":S+=" gl_FragColor = vec4(color, 1.0);\n",S+="}\n";const ne=(0,a.Z)(y,{type:o.Z.VERTEX_SHADER,extras:{_pipeline:{source:x,extension:".glsl"}}}),re=(0,a.Z)(y,{type:o.Z.FRAGMENT_SHADER,extras:{_pipeline:{source:S,extension:".glsl"}}}),oe=(0,a.Z)(b,{fragmentShader:re,vertexShader:ne});return(0,a.Z)(g,{attributes:W,program:oe,uniforms:H})}(e,l,d,f,i,t);(0,r.Z)(l.extensions)||(l.extensions={}),l.extensions.KHR_techniques_webgl={values:f,technique:p}})),l.Z.ensureSemanticExistence(e),e}},179173:(e,t,i)=>{"use strict";i.d(t,{Z:()=>bt});var n=i(423711),r=i(22688),o=i(534682),s=i(494564),a=i(354213),c=i(932448),u=i(796312),l=i(972189),h=i(680784),d=i(797741),f=i(933543),p=i(933500),m=i(186387),_=i(189886),Z=i(968446),g=i(188615),y=i(435339),b=i(668518),A=i(956910),w=i(828523),v=i(864431),T=i(790273),C=i(475202),E=i(852332),x=i(576316),S=i(607369),O=i(216003),I=i(105437),D=i(135427),P=i(383152),R=i(29571),B=i(561229),M=i(677989),L=i(408012),N=i(892900),F=i(412193),k=i(783515),U=i(386401),V=i(204610),z=i(939021),H=i(590753),G=i(5072),q=i(445927),j=i(756424),W=i(190909),K=i(144245),Y=i(172999),X=i(104814),J=i(686587),Q=i(968478),$=i(33157),ee=i(567435),te=i(174579),ie=i(143185),ne=i(219360),re=i(647906),oe=i(858048),se=i(166440),ae=i(581911),ce=i(404512),ue=i(115847),le=i(389149),he=i(1133),de=i(69935),fe=i(335615),pe=i(682494),me=i(564818),_e=i(716065),Ze=i(257840),ge=i(713068),ye=i(404800),be=i(869109),Ae=i(904027),we=i(481849),ve=i(756600),Te=i(34759),Ce=i(694557),Ee=i(271021),xe=i(891254),Se=i(92437),Oe=i(523286),Ie=i(504939),De=i(400058),Pe=i(137379),Re=i(959429),Be=i(544989),Me=i(820182),Le=i(194578),Ne=i(299431),Fe=i(200914),ke=i(120347),Ue=i(916975),Ve=i(847996),ze=i(677136),He=i(716345),Ge=i(610320),qe=i(704024),je=i(143992),We=i(253463),Ke=i(318884),Ye=i(862433),Xe=i(860771),Je=i(494056),Qe=i(41657),$e=i(173354),et=i(611471),tt=i(670042),it=i(836213),nt=i(124460),rt=i(175807),ot=i(908355),st=i(671743),at=i(742127),ct=i(680105),ut=i(547528),lt=i(595599),ht=i(759876),dt=i(418759),ft=i(627598),pt=i(351634),mt=i(551845),_t=i(518661),Zt=i(709445),gt=i(139430),yt=i(127086);const bt={czm_degreesPerRadian:n.Z,czm_depthRange:r.Z,czm_epsilon1:o.Z,czm_epsilon2:s.Z,czm_epsilon3:a.Z,czm_epsilon4:c.Z,czm_epsilon5:u.Z,czm_epsilon6:l.Z,czm_epsilon7:h.Z,czm_infinity:d.Z,czm_oneOverPi:f.Z,czm_oneOverTwoPi:p.Z,czm_passCesium3DTile:m.Z,czm_passCesium3DTileClassification:_.Z,czm_passCesium3DTileClassificationIgnoreShow:Z.Z,czm_passClassification:g.Z,czm_passCompute:y.Z,czm_passEnvironment:b.Z,czm_passGlobe:A.Z,czm_passOpaque:w.Z,czm_passOverlay:v.Z,czm_passTerrainClassification:T.Z,czm_passTranslucent:C.Z,czm_pi:E.Z,czm_piOverFour:x.Z,czm_piOverSix:S.Z,czm_piOverThree:O.Z,czm_piOverTwo:I.Z,czm_radiansPerDegree:D.Z,czm_sceneMode2D:P.Z,czm_sceneMode3D:R.Z,czm_sceneModeColumbusView:B.Z,czm_sceneModeMorphing:M.Z,czm_solarRadius:L.Z,czm_threePiOver2:N.Z,czm_twoPi:F.Z,czm_webMercatorMaxLatitude:k.Z,czm_depthRangeStruct:U.Z,czm_material:V.Z,czm_materialInput:z.Z,czm_modelMaterial:H.Z,czm_modelVertexOutput:G.Z,czm_pbrParameters:q.Z,czm_ray:j.Z,czm_raySegment:W.Z,czm_shadowParameters:K.Z,czm_HSBToRGB:Y.Z,czm_HSLToRGB:X.Z,czm_RGBToHSB:J.Z,czm_RGBToHSL:Q.Z,czm_RGBToXYZ:$.Z,czm_XYZToRGB:ee.Z,czm_acesTonemapping:te.Z,czm_alphaWeight:ie.Z,czm_antialias:ne.Z,czm_approximateSphericalCoordinates:re.Z,czm_backFacing:oe.Z,czm_branchFreeTernary:se.Z,czm_cascadeColor:ae.Z,czm_cascadeDistance:ce.Z,czm_cascadeMatrix:ue.Z,czm_cascadeWeights:le.Z,czm_columbusViewMorph:he.Z,czm_computePosition:de.Z,czm_cosineAndSine:fe.Z,czm_decompressTextureCoordinates:pe.Z,czm_defaultPbrMaterial:me.Z,czm_depthClamp:_e.Z,czm_eastNorthUpToEyeCoordinates:Ze.Z,czm_ellipsoidContainsPoint:ge.Z,czm_ellipsoidWgs84TextureCoordinates:ye.Z,czm_equalsEpsilon:be.Z,czm_eyeOffset:Ae.Z,czm_eyeToWindowCoordinates:we.Z,czm_fastApproximateAtan:ve.Z,czm_fog:Te.Z,czm_gammaCorrect:Ce.Z,czm_geodeticSurfaceNormal:Ee.Z,czm_getDefaultMaterial:xe.Z,czm_getLambertDiffuse:Se.Z,czm_getSpecular:Oe.Z,czm_getWaterNoise:Ie.Z,czm_hue:De.Z,czm_inverseGamma:Pe.Z,czm_isEmpty:Re.Z,czm_isFull:Be.Z,czm_latitudeToWebMercatorFraction:Me.Z,czm_lineDistance:Le.Z,czm_linearToSrgb:Ne.Z,czm_luminance:Fe.Z,czm_metersPerPixel:ke.Z,czm_modelToWindowCoordinates:Ue.Z,czm_multiplyWithColorBalance:Ve.Z,czm_nearFarScalar:ze.Z,czm_octDecode:He.Z,czm_packDepth:Ge.Z,czm_pbrLighting:qe.Z,czm_pbrMetallicRoughnessMaterial:je.Z,czm_pbrSpecularGlossinessMaterial:We.Z,czm_phong:Ke.Z,czm_planeDistance:Ye.Z,czm_pointAlongRay:Xe.Z,czm_rayEllipsoidIntersectionInterval:Je.Z,czm_readDepth:Qe.Z,czm_readNonPerspective:$e.Z,czm_reverseLogDepth:et.Z,czm_sampleOctahedralProjection:tt.Z,czm_saturation:it.Z,czm_shadowDepthCompare:nt.Z,czm_shadowVisibility:rt.Z,czm_signNotZero:ot.Z,czm_sphericalHarmonics:st.Z,czm_srgbToLinear:at.Z,czm_tangentToEyeSpaceMatrix:ct.Z,czm_transformPlane:ut.Z,czm_translateRelativeToEye:lt.Z,czm_translucentPhong:ht.Z,czm_transpose:dt.Z,czm_unpackDepth:ft.Z,czm_unpackFloat:pt.Z,czm_vertexLogDepth:mt.Z,czm_windowToEyeCoordinates:_t.Z,czm_writeDepthClamp:Zt.Z,czm_writeLogDepth:gt.Z,czm_writeNonPerspective:yt.Z}},489676:(e,t,i)=>{"use strict";function n(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1}function r(e,t){for(var i=e.length-1;i>=0;i--)!0===t(e[i])&&e.splice(i,1)}function o(e){throw new Error("Unhandled case for value: '"+e+"'")}i.d(t,{Z:()=>te});var s=function(){function e(e){void 0===e&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.whitespaceRegex=/\s+/,this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return e.prototype.setTagName=function(e){return this.tagName=e,this},e.prototype.getTagName=function(){return this.tagName||""},e.prototype.setAttr=function(e,t){return this.getAttrs()[e]=t,this},e.prototype.getAttr=function(e){return this.getAttrs()[e]},e.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},e.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},e.prototype.setClass=function(e){return this.setAttr("class",e)},e.prototype.addClass=function(e){for(var t,i=this.getClass(),r=this.whitespaceRegex,o=i?i.split(r):[],s=e.split(r);t=s.shift();)-1===n(o,t)&&o.push(t);return this.getAttrs().class=o.join(" "),this},e.prototype.removeClass=function(e){for(var t,i=this.getClass(),r=this.whitespaceRegex,o=i?i.split(r):[],s=e.split(r);o.length&&(t=s.shift());){var a=n(o,t);-1!==a&&o.splice(a,1)}return this.getAttrs().class=o.join(" "),this},e.prototype.getClass=function(){return this.getAttrs().class||""},e.prototype.hasClass=function(e){return-1!==(" "+this.getClass()+" ").indexOf(" "+e+" ")},e.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},e.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},e.prototype.getInnerHTML=function(){return this.innerHTML||""},e.prototype.getInnerHtml=function(){return this.getInnerHTML()},e.prototype.toAnchorString=function(){var e=this.getTagName(),t=this.buildAttrsStr();return["<",e,t=t?" "+t:"",">",this.getInnerHtml(),"</",e,">"].join("")},e.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),t=[];for(var i in e)e.hasOwnProperty(i)&&t.push(i+'="'+e[i]+'"');return t.join(" ")},e}(),a=function(){function e(e){void 0===e&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return e.prototype.build=function(e){return new s({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},e.prototype.createAttrs=function(e){var t={href:e.getAnchorHref()},i=this.createCssClass(e);return i&&(t.class=i),this.newWindow&&(t.target="_blank",t.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<e.getAnchorText().length&&(t.title=e.getAnchorHref()),t},e.prototype.createCssClass=function(e){var t=this.className;if(t){for(var i=[t],n=e.getCssClassSuffixes(),r=0,o=n.length;r<o;r++)i.push(t+"-"+n[r]);return i.join(" ")}return""},e.prototype.processAnchorText=function(e){return this.doTruncate(e)},e.prototype.doTruncate=function(e){var t=this.truncate;if(!t||!t.length)return e;var i=t.length,n=t.location;return"smart"===n?function(e,t,i){var n,r;null==i?(i="…",r=3,n=8):(r=i.length,n=i.length);var o=function(e){var t="";return e.scheme&&e.host&&(t+=e.scheme+"://"),e.host&&(t+=e.host),e.path&&(t+="/"+e.path),e.query&&(t+="?"+e.query),e.fragment&&(t+="#"+e.fragment),t},s=function(e,t){var n=t/2,r=Math.ceil(n),o=-1*Math.floor(n),s="";return o<0&&(s=e.substr(o)),e.substr(0,r)+i+s};if(e.length<=t)return e;var a=t-r,c=function(e){var t={},i=e,n=i.match(/^([a-z]+):\/\//i);return n&&(t.scheme=n[1],i=i.substr(n[0].length)),(n=i.match(/^(.*?)(?=(\?|#|\/|$))/i))&&(t.host=n[1],i=i.substr(n[0].length)),(n=i.match(/^\/(.*?)(?=(\?|#|$))/i))&&(t.path=n[1],i=i.substr(n[0].length)),(n=i.match(/^\?(.*?)(?=(#|$))/i))&&(t.query=n[1],i=i.substr(n[0].length)),(n=i.match(/^#(.*?)$/i))&&(t.fragment=n[1]),t}(e);if(c.query){var u=c.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);u&&(c.query=c.query.substr(0,u[1].length),e=o(c))}if(e.length<=t)return e;if(c.host&&(c.host=c.host.replace(/^www\./,""),e=o(c)),e.length<=t)return e;var l="";if(c.host&&(l+=c.host),l.length>=a)return c.host.length==t?(c.host.substr(0,t-r)+i).substr(0,a+n):s(l,a).substr(0,a+n);var h="";if(c.path&&(h+="/"+c.path),c.query&&(h+="?"+c.query),h){if((l+h).length>=a)return(l+h).length==t?(l+h).substr(0,t):(l+s(h,a-l.length)).substr(0,a+n);l+=h}if(c.fragment){var d="#"+c.fragment;if((l+d).length>=a)return(l+d).length==t?(l+d).substr(0,t):(l+s(d,a-l.length)).substr(0,a+n);l+=d}if(c.scheme&&c.host){var f=c.scheme+"://";if((l+f).length<a)return(f+l).substr(0,t)}if(l.length<=t)return l;var p="";return a>0&&(p=l.substr(-1*Math.floor(a/2))),(l.substr(0,Math.ceil(a/2))+i+p).substr(0,a+n)}(e,i):"middle"===n?function(e,t,i){if(e.length<=t)return e;var n,r;null==i?(i="…",n=8,r=3):(n=i.length,r=i.length);var o=t-r,s="";return o>0&&(s=e.substr(-1*Math.floor(o/2))),(e.substr(0,Math.ceil(o/2))+i+s).substr(0,o+n)}(e,i):function(e,t,i){return function(e,t,i){var n;return e.length>t&&(null==i?(i="…",n=3):n=i.length,e=e.substring(0,t-n)+i),e}(e,t,void 0)}(e,i)},e}(),c=function(){function e(e){this.__jsduckDummyDocProp=null,this.matchedText="",this.offset=0,this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset}return e.prototype.getMatchedText=function(){return this.matchedText},e.prototype.setOffset=function(e){this.offset=e},e.prototype.getOffset=function(){return this.offset},e.prototype.getCssClassSuffixes=function(){return[this.getType()]},e.prototype.buildTag=function(){return this.tagBuilder.build(this)},e}(),u=function(e,t){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},u(e,t)};function l(e,t){function i(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var h,d=function(){return d=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},d.apply(this,arguments)},f=function(e){function t(t){var i=e.call(this,t)||this;return i.email="",i.email=t.email,i}return l(t,e),t.prototype.getType=function(){return"email"},t.prototype.getEmail=function(){return this.email},t.prototype.getAnchorHref=function(){return"mailto:"+this.email},t.prototype.getAnchorText=function(){return this.email},t}(c),p=function(e){function t(t){var i=e.call(this,t)||this;return i.serviceName="",i.hashtag="",i.serviceName=t.serviceName,i.hashtag=t.hashtag,i}return l(t,e),t.prototype.getType=function(){return"hashtag"},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getHashtag=function(){return this.hashtag},t.prototype.getAnchorHref=function(){var e=this.serviceName,t=this.hashtag;switch(e){case"twitter":return"https://twitter.com/hashtag/"+t;case"facebook":return"https://www.facebook.com/hashtag/"+t;case"instagram":return"https://instagram.com/explore/tags/"+t;default:throw new Error("Unknown service name to point hashtag to: "+e)}},t.prototype.getAnchorText=function(){return"#"+this.hashtag},t}(c),m=function(e){function t(t){var i=e.call(this,t)||this;return i.serviceName="twitter",i.mention="",i.mention=t.mention,i.serviceName=t.serviceName,i}return l(t,e),t.prototype.getType=function(){return"mention"},t.prototype.getMention=function(){return this.mention},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;default:throw new Error("Unknown service name to point mention to: "+this.serviceName)}},t.prototype.getAnchorText=function(){return"@"+this.mention},t.prototype.getCssClassSuffixes=function(){var t=e.prototype.getCssClassSuffixes.call(this),i=this.getServiceName();return i&&t.push(i),t},t}(c),_=function(e){function t(t){var i=e.call(this,t)||this;return i.number="",i.plusSign=!1,i.number=t.number,i.plusSign=t.plusSign,i}return l(t,e),t.prototype.getType=function(){return"phone"},t.prototype.getPhoneNumber=function(){return this.number},t.prototype.getNumber=function(){return this.getPhoneNumber()},t.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},t.prototype.getAnchorText=function(){return this.matchedText},t}(c),Z=function(e){function t(t){var i=e.call(this,t)||this;return i.url="",i.urlMatchType="scheme",i.protocolUrlMatch=!1,i.protocolRelativeMatch=!1,i.stripPrefix={scheme:!0,www:!0},i.stripTrailingSlash=!0,i.decodePercentEncoding=!0,i.schemePrefixRegex=/^(https?:\/\/)?/i,i.wwwPrefixRegex=/^(https?:\/\/)?(www\.)?/i,i.protocolRelativeRegex=/^\/\//,i.protocolPrepended=!1,i.urlMatchType=t.urlMatchType,i.url=t.url,i.protocolUrlMatch=t.protocolUrlMatch,i.protocolRelativeMatch=t.protocolRelativeMatch,i.stripPrefix=t.stripPrefix,i.stripTrailingSlash=t.stripTrailingSlash,i.decodePercentEncoding=t.decodePercentEncoding,i}return l(t,e),t.prototype.getType=function(){return"url"},t.prototype.getUrlMatchType=function(){return this.urlMatchType},t.prototype.getUrl=function(){var e=this.url;return this.protocolRelativeMatch||this.protocolUrlMatch||this.protocolPrepended||(e=this.url="http://"+e,this.protocolPrepended=!0),e},t.prototype.getAnchorHref=function(){return this.getUrl().replace(/&/g,"&")},t.prototype.getAnchorText=function(){var e=this.getMatchedText();return this.protocolRelativeMatch&&(e=this.stripProtocolRelativePrefix(e)),this.stripPrefix.scheme&&(e=this.stripSchemePrefix(e)),this.stripPrefix.www&&(e=this.stripWwwPrefix(e)),this.stripTrailingSlash&&(e=this.removeTrailingSlash(e)),this.decodePercentEncoding&&(e=this.removePercentEncoding(e)),e},t.prototype.stripSchemePrefix=function(e){return e.replace(this.schemePrefixRegex,"")},t.prototype.stripWwwPrefix=function(e){return e.replace(this.wwwPrefixRegex,"$1")},t.prototype.stripProtocolRelativePrefix=function(e){return e.replace(this.protocolRelativeRegex,"")},t.prototype.removeTrailingSlash=function(e){return"/"===e.charAt(e.length-1)&&(e=e.slice(0,-1)),e},t.prototype.removePercentEncoding=function(e){var t=e.replace(/%22/gi,""").replace(/%26/gi,"&").replace(/%27/gi,"'").replace(/%3C/gi,"<").replace(/%3E/gi,">");try{return decodeURIComponent(t)}catch(e){return t}},t}(c),g=function(e){this.__jsduckDummyDocProp=null,this.tagBuilder=e.tagBuilder},y=/[A-Za-z]/,b=/[\d]/,A=/[\D]/,w=/\s/,v=/['"]/,T=/[\x00-\x1F\x7F]/,C=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source,E=C+/\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/.source+/\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source,x=/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source,S=E+x,O=E+x,I="(?:["+x+"]{1,3}\\.){3}["+x+"]{1,3}",D="["+O+"](?:["+O+"\\-]{0,61}["+O+"])?",P=function(e){return"(?=("+D+"))\\"+e},R=function(e){return"(?:"+P(e)+"(?:\\."+P(e+1)+"){0,126}|"+I+")"},B=new RegExp("["+O+"]"),M=/(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--3oq18vl8pn36a|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|afamilycompany|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|spreadbetting|travelchannel|wolterskluwer|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|rightathome|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pbt977c|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nationwide|newholland|nextdirect|onyourside|properties|protection|prudential|realestate|republican|restaurant|schaeffler|swiftcover|tatamotors|technology|telefonica|university|vistaprint|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|fujixerox|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|honeywell|institute|insurance|kuokgroup|ladbrokes|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|scjohnson|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--tckwe|xn--vhquv|yodobashi|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|budapest|builders|business|capetown|catering|catholic|chrysler|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|esurance|etisalat|everbank|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|movistar|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|symantec|training|uconnect|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|cartier|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|iselect|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lancome|lanxess|lasalle|latrobe|leclerc|liaison|limited|lincoln|markets|metlife|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|shriram|singles|staples|starhub|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|الجزائر|العليان|پاکستان|كاثوليك|موبايلي|இந்தியா|abarth|abbott|abbvie|active|africa|agency|airbus|airtel|alipay|alsace|alstom|anquan|aramco|author|bayern|beauty|berlin|bharti|blanco|bostik|boston|broker|camera|career|caseih|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|mobily|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|piaget|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|warman|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|dodge|drive|dubai|earth|edeka|email|epost|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glade|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|intel|irish|iveco|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|lixil|loans|locus|lotte|lotto|lupin|macys|mango|media|miami|money|mopar|movie|nadex|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|zippo|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|aigo|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|doha|duck|duns|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|raid|read|reit|rent|rest|rich|rmit|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scor|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|グーグル|クラウド|ポイント|大众汽车|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bnl|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceb|ceo|cfa|cfd|com|crs|csc|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jcp|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|off|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|qvc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|srl|srt|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ストア|セール|みんな|中文网|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|工行|广东|微博|慈善|手机|手表|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|珠宝|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,L=new RegExp("["+O+"!#$%&'*+/=?^_`{|}~-]"),N=new RegExp("^"+M.source+"$"),F=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.localPartCharRegex=L,t.strictTldRegex=N,t}return l(t,e),t.prototype.parseMatches=function(e){for(var t=this.tagBuilder,i=this.localPartCharRegex,n=this.strictTldRegex,r=[],s=e.length,a=new k,c={m:"a",a:"i",i:"l",l:"t",t:"o",o:":"},u=0,l=0,h=a;u<s;){var p=e.charAt(u);switch(l){case 0:m(p);break;case 1:_(e.charAt(u-1),p);break;case 2:Z(p);break;case 3:g(p);break;case 4:y(p);break;case 5:b(p);break;case 6:A(p);break;case 7:w(p);break;default:o(l)}u++}return C(),r;function m(e){"m"===e?v(1):i.test(e)&&v()}function _(e,t){":"===e?i.test(t)?(l=2,h=new k(d(d({},h),{hasMailtoPrefix:!0}))):T():c[e]===t||(i.test(t)?l=2:"."===t?l=3:"@"===t?l=4:T())}function Z(e){"."===e?l=3:"@"===e?l=4:i.test(e)||T()}function g(e){"."===e||"@"===e?T():i.test(e)?l=2:T()}function y(e){B.test(e)?l=5:T()}function b(e){"."===e?l=7:"-"===e?l=6:B.test(e)||C()}function A(e){"-"===e||"."===e?C():B.test(e)?l=5:C()}function w(e){"."===e||"-"===e?C():B.test(e)?(l=5,h=new k(d(d({},h),{hasDomainDot:!0}))):C()}function v(e){void 0===e&&(e=2),l=e,h=new k({idx:u})}function T(){l=0,h=a}function C(){if(h.hasDomainDot){var i=e.slice(h.idx,u);/[-.]$/.test(i)&&(i=i.slice(0,-1));var o=h.hasMailtoPrefix?i.slice("mailto:".length):i;(function(e){var t=(e.split(".").pop()||"").toLowerCase();return n.test(t)})(o)&&r.push(new f({tagBuilder:t,matchedText:i,offset:h.idx,email:o}))}T()}},t}(g),k=function(e){void 0===e&&(e={}),this.idx=void 0!==e.idx?e.idx:-1,this.hasMailtoPrefix=!!e.hasMailtoPrefix,this.hasDomainDot=!!e.hasDomainDot},U=function(){function e(){}return e.isValid=function(e,t){return!(t&&!this.isValidUriScheme(t)||this.urlMatchDoesNotHaveProtocolOrDot(e,t)||this.urlMatchDoesNotHaveAtLeastOneWordChar(e,t)&&!this.isValidIpAddress(e)||this.containsMultipleDots(e))},e.isValidIpAddress=function(e){var t=new RegExp(this.hasFullProtocolRegex.source+this.ipRegex.source);return null!==e.match(t)},e.containsMultipleDots=function(e){var t=e;return this.hasFullProtocolRegex.test(e)&&(t=e.split("://")[1]),t.split("/")[0].indexOf("..")>-1},e.isValidUriScheme=function(e){var t=e.match(this.uriSchemeRegex),i=t&&t[0].toLowerCase();return"javascript:"!==i&&"vbscript:"!==i},e.urlMatchDoesNotHaveProtocolOrDot=function(e,t){return!(!e||t&&this.hasFullProtocolRegex.test(t)||-1!==e.indexOf("."))},e.urlMatchDoesNotHaveAtLeastOneWordChar=function(e,t){return!(!e||!t||this.hasFullProtocolRegex.test(t)||this.hasWordCharAfterProtocolRegex.test(e))},e.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,e.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,e.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+C+"]"),e.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,e}(),V=(h=new RegExp("[/?#](?:["+O+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*["+O+"\\-+&@#/%=~_()|'$*\\[\\]{}✓])?"),new RegExp(["(?:","(",/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/.source,R(2),")","|","(","(//)?",/(?:www\.)/.source,R(6),")","|","(","(//)?",R(10)+"\\.",M.source,"(?![-"+S+"])",")",")","(?::[0-9]+)?","(?:"+h.source+")?"].join(""),"gi")),z=new RegExp("["+O+"]"),H=function(e){function t(t){var i=e.call(this,t)||this;return i.stripPrefix={scheme:!0,www:!0},i.stripTrailingSlash=!0,i.decodePercentEncoding=!0,i.matcherRegex=V,i.wordCharRegExp=z,i.stripPrefix=t.stripPrefix,i.stripTrailingSlash=t.stripTrailingSlash,i.decodePercentEncoding=t.decodePercentEncoding,i}return l(t,e),t.prototype.parseMatches=function(e){for(var t,i=this.matcherRegex,n=this.stripPrefix,r=this.stripTrailingSlash,o=this.decodePercentEncoding,s=this.tagBuilder,a=[],c=function(){var i=t[0],c=t[1],l=t[4],h=t[5],d=t[9],f=t.index,p=h||d,m=e.charAt(f-1);if(!U.isValid(i,c))return"continue";if(f>0&&"@"===m)return"continue";if(f>0&&p&&u.wordCharRegExp.test(m))return"continue";if(/\?$/.test(i)&&(i=i.substr(0,i.length-1)),u.matchHasUnbalancedClosingParen(i))i=i.substr(0,i.length-1);else{var _=u.matchHasInvalidCharAfterTld(i,c);_>-1&&(i=i.substr(0,_))}var g=["http://","https://"].find((function(e){return!!c&&-1!==c.indexOf(e)}));if(g){var y=i.indexOf(g);i=i.substr(y),c=c.substr(y),f+=y}var b=c?"scheme":l?"www":"tld",A=!!c;a.push(new Z({tagBuilder:s,matchedText:i,offset:f,urlMatchType:b,url:i,protocolUrlMatch:A,protocolRelativeMatch:!!p,stripPrefix:n,stripTrailingSlash:r,decodePercentEncoding:o}))},u=this;null!==(t=i.exec(e));)c();return a},t.prototype.matchHasUnbalancedClosingParen=function(e){var t,i=e.charAt(e.length-1);if(")"===i)t="(";else if("]"===i)t="[";else{if("}"!==i)return!1;t="{"}for(var n=0,r=0,o=e.length-1;r<o;r++){var s=e.charAt(r);s===t?n++:s===i&&(n=Math.max(n-1,0))}return 0===n},t.prototype.matchHasInvalidCharAfterTld=function(e,t){if(!e)return-1;var i=0;t&&(i=e.indexOf(":"),e=e.slice(i));var n=new RegExp("^((.?//)?[-."+O+"]*[-"+O+"]\\.[-"+O+"]+)").exec(e);return null===n?-1:(i+=n[1].length,e=e.slice(n[1].length),/^[^-.A-Za-z0-9:\/?#]/.test(e)?i:-1)},t}(g),G=new RegExp("#[_"+O+"]{1,139}(?![_"+O+"])","g"),q=new RegExp("[^"+O+"]"),j=function(e){function t(t){var i=e.call(this,t)||this;return i.serviceName="twitter",i.matcherRegex=G,i.nonWordCharRegex=q,i.serviceName=t.serviceName,i}return l(t,e),t.prototype.parseMatches=function(e){for(var t,i=this.matcherRegex,n=this.nonWordCharRegex,r=this.serviceName,o=this.tagBuilder,s=[];null!==(t=i.exec(e));){var a=t.index,c=e.charAt(a-1);if(0===a||n.test(c)){var u=t[0],l=t[0].slice(1);s.push(new p({tagBuilder:o,matchedText:u,offset:a,serviceName:r,hashtag:l}))}}return s},t}(g),W=new RegExp(/(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/.source+"|"+/(0([1-9]{1}-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/.source,"g"),K=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.matcherRegex=W,t}return l(t,e),t.prototype.parseMatches=function(e){for(var t,i=this.matcherRegex,n=this.tagBuilder,r=[];null!==(t=i.exec(e));){var o=t[0],s=o.replace(/[^0-9,;#]/g,""),a=!(!t[1]&&!t[2]),c=0==t.index?"":e.substr(t.index-1,1),u=e.substr(t.index+o.length,1),l=!c.match(/\d/)&&!u.match(/\d/);this.testMatch(t[3])&&this.testMatch(o)&&l&&r.push(new _({tagBuilder:n,matchedText:o,offset:t.index,number:s,plusSign:a}))}return r},t.prototype.testMatch=function(e){return A.test(e)},t}(g),Y=new RegExp("@[_"+O+"]{1,50}(?![_"+O+"])","g"),X=new RegExp("@[_."+O+"]{1,30}(?![_"+O+"])","g"),J=new RegExp("@[-_."+O+"]{1,50}(?![-_"+O+"])","g"),Q=new RegExp("[^"+O+"]"),$=function(e){function t(t){var i=e.call(this,t)||this;return i.serviceName="twitter",i.matcherRegexes={twitter:Y,instagram:X,soundcloud:J},i.nonWordCharRegex=Q,i.serviceName=t.serviceName,i}return l(t,e),t.prototype.parseMatches=function(e){var t,i=this.serviceName,n=this.matcherRegexes[this.serviceName],r=this.nonWordCharRegex,o=this.tagBuilder,s=[];if(!n)return s;for(;null!==(t=n.exec(e));){var a=t.index,c=e.charAt(a-1);if(0===a||r.test(c)){var u=t[0].replace(/\.+$/g,""),l=u.slice(1);s.push(new m({tagBuilder:o,matchedText:u,offset:a,serviceName:i,mention:l}))}}return s},t}(g);var ee=function(e){void 0===e&&(e={}),this.idx=void 0!==e.idx?e.idx:-1,this.type=e.type||"tag",this.name=e.name||"",this.isOpening=!!e.isOpening,this.isClosing=!!e.isClosing},te=function(){function e(t){void 0===t&&(t={}),this.version=e.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.matchers=null,this.tagBuilder=null,this.urls=this.normalizeUrlsCfg(t.urls),this.email="boolean"==typeof t.email?t.email:this.email,this.phone="boolean"==typeof t.phone?t.phone:this.phone,this.hashtag=t.hashtag||this.hashtag,this.mention=t.mention||this.mention,this.newWindow="boolean"==typeof t.newWindow?t.newWindow:this.newWindow,this.stripPrefix=this.normalizeStripPrefixCfg(t.stripPrefix),this.stripTrailingSlash="boolean"==typeof t.stripTrailingSlash?t.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding="boolean"==typeof t.decodePercentEncoding?t.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=t.sanitizeHtml||!1;var i=this.mention;if(!1!==i&&"twitter"!==i&&"instagram"!==i&&"soundcloud"!==i)throw new Error("invalid `mention` cfg - see docs");var n=this.hashtag;if(!1!==n&&"twitter"!==n&&"facebook"!==n&&"instagram"!==n)throw new Error("invalid `hashtag` cfg - see docs");this.truncate=this.normalizeTruncateCfg(t.truncate),this.className=t.className||this.className,this.replaceFn=t.replaceFn||this.replaceFn,this.context=t.context||this}return e.link=function(t,i){return new e(i).link(t)},e.parse=function(t,i){return new e(i).parse(t)},e.prototype.normalizeUrlsCfg=function(e){return null==e&&(e=!0),"boolean"==typeof e?{schemeMatches:e,wwwMatches:e,tldMatches:e}:{schemeMatches:"boolean"!=typeof e.schemeMatches||e.schemeMatches,wwwMatches:"boolean"!=typeof e.wwwMatches||e.wwwMatches,tldMatches:"boolean"!=typeof e.tldMatches||e.tldMatches}},e.prototype.normalizeStripPrefixCfg=function(e){return null==e&&(e=!0),"boolean"==typeof e?{scheme:e,www:e}:{scheme:"boolean"!=typeof e.scheme||e.scheme,www:"boolean"!=typeof e.www||e.www}},e.prototype.normalizeTruncateCfg=function(e){return"number"==typeof e?{length:e,location:"end"}:function(e,t){for(var i in t)t.hasOwnProperty(i)&&void 0===e[i]&&(e[i]=t[i]);return e}(e||{},{length:Number.POSITIVE_INFINITY,location:"end"})},e.prototype.parse=function(e){var t=this,i=["a","style","script"],n=0,r=[];return function(e,t){for(var i,n=t.onOpenTag,r=t.onCloseTag,s=t.onText,a=t.onComment,c=t.onDoctype,u=new ee,l=0,h=e.length,f=0,p=0,m=u;l<h;){var _=e.charAt(l);switch(f){case 0:Z(_);break;case 1:g(_);break;case 2:C(_);break;case 3:A(_);break;case 4:E(_);break;case 5:x(_);break;case 6:S(_);break;case 7:O(_);break;case 8:I(_);break;case 9:D(_);break;case 10:P(_);break;case 11:R(_);break;case 12:B(_);break;case 13:"--"===e.substr(l,2)?(l+=2,m=new ee(d(d({},m),{type:"comment"})),f=14):"DOCTYPE"===e.substr(l,7).toUpperCase()?(l+=7,m=new ee(d(d({},m),{type:"doctype"})),f=20):z();break;case 14:M(_);break;case 15:L(_);break;case 16:N(_);break;case 17:F(_);break;case 18:k(_);break;case 19:U(_);break;case 20:V(_);break;default:o(f)}l++}function Z(e){"<"===e&&H()}function g(e){"!"===e?f=13:"/"===e?(f=2,m=new ee(d(d({},m),{isClosing:!0}))):"<"===e?H():y.test(e)?(f=3,m=new ee(d(d({},m),{isOpening:!0}))):(f=0,m=u)}function A(e){w.test(e)?(m=new ee(d(d({},m),{name:q()})),f=4):"<"===e?H():"/"===e?(m=new ee(d(d({},m),{name:q()})),f=12):">"===e?(m=new ee(d(d({},m),{name:q()})),G()):y.test(e)||b.test(e)||":"===e||z()}function C(e){">"===e?z():y.test(e)?f=3:z()}function E(e){w.test(e)||("/"===e?f=12:">"===e?G():"<"===e?H():"="===e||v.test(e)||T.test(e)?z():f=5)}function x(e){w.test(e)?f=6:"/"===e?f=12:"="===e?f=7:">"===e?G():"<"===e?H():v.test(e)&&z()}function S(e){w.test(e)||("/"===e?f=12:"="===e?f=7:">"===e?G():"<"===e?H():v.test(e)?z():f=5)}function O(e){w.test(e)||('"'===e?f=8:"'"===e?f=9:/[>=`]/.test(e)?z():"<"===e?H():f=10)}function I(e){'"'===e&&(f=11)}function D(e){"'"===e&&(f=11)}function P(e){w.test(e)?f=4:">"===e?G():"<"===e&&H()}function R(e){w.test(e)?f=4:"/"===e?f=12:">"===e?G():"<"===e?H():(f=4,l--)}function B(e){">"===e?(m=new ee(d(d({},m),{isClosing:!0})),G()):f=4}function M(e){"-"===e?f=15:">"===e?z():f=16}function L(e){"-"===e?f=18:">"===e?z():f=16}function N(e){"-"===e&&(f=17)}function F(e){f="-"===e?18:16}function k(e){">"===e?G():"!"===e?f=19:"-"===e||(f=16)}function U(e){"-"===e?f=17:">"===e?G():f=16}function V(e){">"===e?G():"<"===e&&H()}function z(){f=0,m=u}function H(){f=1,m=new ee({idx:l})}function G(){var t=e.slice(p,m.idx);t&&s(t,p),"comment"===m.type?a(m.idx):"doctype"===m.type?c(m.idx):(m.isOpening&&n(m.name,m.idx),m.isClosing&&r(m.name,m.idx)),z(),p=l+1}function q(){var t=m.idx+(m.isClosing?2:1);return e.slice(t,l).toLowerCase()}p<l&&(i=e.slice(p,l),s(i,p),p=l+1)}(e,{onOpenTag:function(e){i.indexOf(e)>=0&&n++},onText:function(e,i){if(0===n){var o=function(e,t){if(!t.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var i,n=[],r=0;i=t.exec(e);)n.push(e.substring(r,i.index)),n.push(i[0]),r=i.index+i[0].length;return n.push(e.substring(r)),n}(e,/( | |<|<|>|>|"|"|')/gi),s=i;o.forEach((function(e,i){if(i%2==0){var n=t.parseText(e,s);r.push.apply(r,n)}s+=e.length}))}},onCloseTag:function(e){i.indexOf(e)>=0&&(n=Math.max(n-1,0))},onComment:function(e){},onDoctype:function(e){}}),r=this.compactMatches(r),r=this.removeUnwantedMatches(r)},e.prototype.compactMatches=function(e){e.sort((function(e,t){return e.getOffset()-t.getOffset()}));for(var t=0;t<e.length-1;t++){var i=e[t],n=i.getOffset(),r=i.getMatchedText().length,o=n+r;if(t+1<e.length){if(e[t+1].getOffset()===n){var s=e[t+1].getMatchedText().length>r?t:t+1;e.splice(s,1);continue}e[t+1].getOffset()<o&&e.splice(t+1,1)}}return e},e.prototype.removeUnwantedMatches=function(e){return this.hashtag||r(e,(function(e){return"hashtag"===e.getType()})),this.email||r(e,(function(e){return"email"===e.getType()})),this.phone||r(e,(function(e){return"phone"===e.getType()})),this.mention||r(e,(function(e){return"mention"===e.getType()})),this.urls.schemeMatches||r(e,(function(e){return"url"===e.getType()&&"scheme"===e.getUrlMatchType()})),this.urls.wwwMatches||r(e,(function(e){return"url"===e.getType()&&"www"===e.getUrlMatchType()})),this.urls.tldMatches||r(e,(function(e){return"url"===e.getType()&&"tld"===e.getUrlMatchType()})),e},e.prototype.parseText=function(e,t){void 0===t&&(t=0),t=t||0;for(var i=this.getMatchers(),n=[],r=0,o=i.length;r<o;r++){for(var s=i[r].parseMatches(e),a=0,c=s.length;a<c;a++)s[a].setOffset(t+s[a].getOffset());n.push.apply(n,s)}return n},e.prototype.link=function(e){if(!e)return"";this.sanitizeHtml&&(e=e.replace(/</g,"<").replace(/>/g,">"));for(var t=this.parse(e),i=[],n=0,r=0,o=t.length;r<o;r++){var s=t[r];i.push(e.substring(n,s.getOffset())),i.push(this.createMatchReturnVal(s)),n=s.getOffset()+s.getMatchedText().length}return i.push(e.substring(n)),i.join("")},e.prototype.createMatchReturnVal=function(e){var t;return this.replaceFn&&(t=this.replaceFn.call(this.context,e)),"string"==typeof t?t:!1===t?e.getMatchedText():t instanceof s?t.toAnchorString():e.buildTag().toAnchorString()},e.prototype.getMatchers=function(){if(this.matchers)return this.matchers;var e=this.getTagBuilder(),t=[new j({tagBuilder:e,serviceName:this.hashtag}),new F({tagBuilder:e}),new K({tagBuilder:e}),new $({tagBuilder:e,serviceName:this.mention}),new H({tagBuilder:e,stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding})];return this.matchers=t},e.prototype.getTagBuilder=function(){var e=this.tagBuilder;return e||(e=this.tagBuilder=new a({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e},e.version="3.14.3",e.AnchorTagBuilder=a,e.HtmlTag=s,e.matcher={Email:F,Hashtag:j,Matcher:g,Mention:$,Phone:K,Url:H},e.match={Email:f,Hashtag:p,Match:c,Mention:m,Phone:_,Url:Z},e}()},860303:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});var n=(0,i(614955).c)((function(e,t){var i,n,r=r||(i=[],{getAll:function(){return i},removeAll:function(){i=[]},add:function(e){i.push(e)},remove:function(e){var t=i.indexOf(e);-1!==t&&i.splice(t,1)},update:function(e,t){if(0===i.length)return!1;var n=0;for(e=void 0!==e?e:r.now();n<i.length;)i[n].update(e)||t?n++:i.splice(n,1);return!0}});"undefined"==typeof window&&"undefined"!=typeof process?r.now=function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof window&&void 0!==window.performance&&void 0!==window.performance.now?r.now=window.performance.now.bind(window.performance):void 0!==Date.now?r.now=Date.now:r.now=function(){return(new Date).getTime()},r.Tween=function(e){var t,i=e,n={},o={},s={},a=1e3,c=0,u=!1,l=!1,h=0,d=null,f=r.Easing.Linear.None,p=r.Interpolation.Linear,m=[],_=null,Z=!1,g=null,y=null,b=null;this.to=function(e,t){return o=e,void 0!==t&&(a=t),this},this.start=function(e){for(var t in r.add(this),l=!0,Z=!1,d=void 0!==e?e:r.now(),d+=h,o){if(o[t]instanceof Array){if(0===o[t].length)continue;o[t]=[i[t]].concat(o[t])}void 0!==i[t]&&(n[t]=i[t],n[t]instanceof Array==0&&(n[t]*=1),s[t]=n[t]||0)}return this},this.stop=function(){return l?(r.remove(this),l=!1,null!==b&&b.call(i,i),this.stopChainedTweens(),this):this},this.end=function(){return this.update(d+a),this},this.stopChainedTweens=function(){for(var e=0,t=m.length;e<t;e++)m[e].stop()},this.delay=function(e){return h=e,this},this.repeat=function(e){return c=e,this},this.repeatDelay=function(e){return t=e,this},this.yoyo=function(e){return u=e,this},this.easing=function(e){return f=e,this},this.interpolation=function(e){return p=e,this},this.chain=function(){return m=arguments,this},this.onStart=function(e){return _=e,this},this.onUpdate=function(e){return g=e,this},this.onComplete=function(e){return y=e,this},this.onStop=function(e){return b=e,this},this.update=function(e){var r,l,b;if(e<d)return!0;for(r in!1===Z&&(null!==_&&_.call(i,i),Z=!0),b=f(l=(l=(e-d)/a)>1?1:l),o)if(void 0!==n[r]){var A=n[r]||0,w=o[r];w instanceof Array?i[r]=p(w,b):("string"==typeof w&&(w="+"===w.charAt(0)||"-"===w.charAt(0)?A+parseFloat(w):parseFloat(w)),"number"==typeof w&&(i[r]=A+(w-A)*b))}if(null!==g&&g.call(i,b),1===l){if(c>0){for(r in isFinite(c)&&c--,s){if("string"==typeof o[r]&&(s[r]=s[r]+parseFloat(o[r])),u){var v=s[r];s[r]=o[r],o[r]=v}n[r]=s[r]}return d=void 0!==t?e+t:e+h,!0}null!==y&&y.call(i,i);for(var T=0,C=m.length;T<C;T++)m[T].start(d+a);return!1}return!0}},r.Easing={Linear:{None:function(e){return e}},Quadratic:{In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},Cubic:{In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}},Quartic:{In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}},Quintic:{In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}},Sinusoidal:{In:function(e){return 1-Math.cos(e*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return.5*(1-Math.cos(Math.PI*e))}},Exponential:{In:function(e){return 0===e?0:Math.pow(1024,e-1)},Out:function(e){return 1===e?1:1-Math.pow(2,-10*e)},InOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))}},Circular:{In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}},Elastic:{In:function(e){return 0===e?0:1===e?1:-Math.pow(2,10*(e-1))*Math.sin(5*(e-1.1)*Math.PI)},Out:function(e){return 0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin(5*(e-.1)*Math.PI)+1},InOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?-.5*Math.pow(2,10*(e-1))*Math.sin(5*(e-1.1)*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin(5*(e-1.1)*Math.PI)+1}},Back:{In:function(e){var t=1.70158;return e*e*((t+1)*e-t)},Out:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},InOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)}},Bounce:{In:function(e){return 1-r.Easing.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?.5*r.Easing.Bounce.In(2*e):.5*r.Easing.Bounce.Out(2*e-1)+.5}}},r.Interpolation={Linear:function(e,t){var i=e.length-1,n=i*t,o=Math.floor(n),s=r.Interpolation.Utils.Linear;return t<0?s(e[0],e[1],n):t>1?s(e[i],e[i-1],i-n):s(e[o],e[o+1>i?i:o+1],n-o)},Bezier:function(e,t){for(var i=0,n=e.length-1,o=Math.pow,s=r.Interpolation.Utils.Bernstein,a=0;a<=n;a++)i+=o(1-t,n-a)*o(t,a)*e[a]*s(n,a);return i},CatmullRom:function(e,t){var i=e.length-1,n=i*t,o=Math.floor(n),s=r.Interpolation.Utils.CatmullRom;return e[0]===e[i]?(t<0&&(o=Math.floor(n=i*(1+t))),s(e[(o-1+i)%i],e[o],e[(o+1)%i],e[(o+2)%i],n-o)):t<0?e[0]-(s(e[0],e[0],e[1],e[1],-n)-e[0]):t>1?e[i]-(s(e[i],e[i],e[i-1],e[i-1],n-i)-e[i]):s(e[o?o-1:0],e[o],e[i<o+1?i:o+1],e[i<o+2?i:o+2],n-o)},Utils:{Linear:function(e,t,i){return(t-e)*i+e},Bernstein:function(e,t){var i=r.Interpolation.Utils.Factorial;return i(e)/i(t)/i(e-t)},Factorial:(n=[1],function(e){var t=1;if(n[e])return n[e];for(var i=e;i>1;i--)t*=i;return n[e]=t,t}),CatmullRom:function(e,t,i,n,r){var o=.5*(i-e),s=.5*(n-t),a=r*r;return(2*t-2*i+o+s)*(r*a)+(-3*t+3*i-2*o-s)*a+o*r+t}}},e.exports=r}))},111840:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(614955),r=(0,n.c)((function(e,t){!function(i){var r=t&&!t.nodeType&&t,o=e&&!e.nodeType&&e,s="object"==typeof n.a&&n.a;s.global!==s&&s.window!==s&&s.self!==s||(i=s);var a,c,u=2147483647,l=36,h=/^xn--/,d=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=Math.floor,_=String.fromCharCode;function Z(e){throw new RangeError(p[e])}function g(e,t){for(var i=e.length,n=[];i--;)n[i]=t(e[i]);return n}function y(e,t){var i=e.split("@"),n="";return i.length>1&&(n=i[0]+"@",e=i[1]),n+g((e=e.replace(f,".")).split("."),t).join(".")}function b(e){for(var t,i,n=[],r=0,o=e.length;r<o;)(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<o?56320==(64512&(i=e.charCodeAt(r++)))?n.push(((1023&t)<<10)+(1023&i)+65536):(n.push(t),r--):n.push(t);return n}function A(e){return g(e,(function(e){var t="";return e>65535&&(t+=_((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+_(e)})).join("")}function w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function v(e,t,i){var n=0;for(e=i?m(e/700):e>>1,e+=m(e/t);e>455;n+=l)e=m(e/35);return m(n+36*e/(e+38))}function T(e){var t,i,n,r,o,s,a,c,h,d,f,p=[],_=e.length,g=0,y=128,b=72;for((i=e.lastIndexOf("-"))<0&&(i=0),n=0;n<i;++n)e.charCodeAt(n)>=128&&Z("not-basic"),p.push(e.charCodeAt(n));for(r=i>0?i+1:0;r<_;){for(o=g,s=1,a=l;r>=_&&Z("invalid-input"),((c=(f=e.charCodeAt(r++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:l)>=l||c>m((u-g)/s))&&Z("overflow"),g+=c*s,!(c<(h=a<=b?1:a>=b+26?26:a-b));a+=l)s>m(u/(d=l-h))&&Z("overflow"),s*=d;b=v(g-o,t=p.length+1,0==o),m(g/t)>u-y&&Z("overflow"),y+=m(g/t),g%=t,p.splice(g++,0,y)}return A(p)}function C(e){var t,i,n,r,o,s,a,c,h,d,f,p,g,y,A,T=[];for(p=(e=b(e)).length,t=128,i=0,o=72,s=0;s<p;++s)(f=e[s])<128&&T.push(_(f));for(n=r=T.length,r&&T.push("-");n<p;){for(a=u,s=0;s<p;++s)(f=e[s])>=t&&f<a&&(a=f);for(a-t>m((u-i)/(g=n+1))&&Z("overflow"),i+=(a-t)*g,t=a,s=0;s<p;++s)if((f=e[s])<t&&++i>u&&Z("overflow"),f==t){for(c=i,h=l;!(c<(d=h<=o?1:h>=o+26?26:h-o));h+=l)A=c-d,y=l-d,T.push(_(w(d+A%y,0))),c=m(A/y);T.push(_(w(c,0))),o=v(i,g,n==r),i=0,++n}++i,++t}return T.join("")}if(a={version:"1.3.2",ucs2:{decode:b,encode:A},decode:T,encode:C,toASCII:function(e){return y(e,(function(e){return d.test(e)?"xn--"+C(e):e}))},toUnicode:function(e){return y(e,(function(e){return h.test(e)?T(e.slice(4).toLowerCase()):e}))}},r&&o)if(e.exports==r)o.exports=a;else for(c in a)a.hasOwnProperty(c)&&(r[c]=a[c]);else i.punycode=a}(n.a)})),o=(0,n.c)((function(e){var t,i;t=n.a,i=function(e){var t=e&&e.IPv6;return{best:function(e){var t,i,n=e.toLowerCase().split(":"),r=n.length,o=8;for(""===n[0]&&""===n[1]&&""===n[2]?(n.shift(),n.shift()):""===n[0]&&""===n[1]?n.shift():""===n[r-1]&&""===n[r-2]&&n.pop(),-1!==n[(r=n.length)-1].indexOf(".")&&(o=7),t=0;t<r&&""!==n[t];t++);if(t<o)for(n.splice(t,1,"0000");n.length<o;)n.splice(t,0,"0000");for(var s=0;s<o;s++){i=n[s].split("");for(var a=0;a<3&&"0"===i[0]&&i.length>1;a++)i.splice(0,1);n[s]=i.join("")}var c=-1,u=0,l=0,h=-1,d=!1;for(s=0;s<o;s++)d?"0"===n[s]?l+=1:(d=!1,l>u&&(c=h,u=l)):"0"===n[s]&&(d=!0,h=s,l=1);l>u&&(c=h,u=l),u>1&&n.splice(c,u,""),r=n.length;var f="";for(""===n[0]&&(f=":"),s=0;s<r&&(f+=n[s],s!==r-1);s++)f+=":";return""===n[r-1]&&(f+=":"),f},noConflict:function(){return e.IPv6===this&&(e.IPv6=t),this}}},e.exports?e.exports=i():t.IPv6=i(t)})),s=(0,n.c)((function(e){var t,i;t=n.a,i=function(e){var t=e&&e.SecondLevelDomains,i={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;var n=e.lastIndexOf(".",t-1);if(n<=0||n>=t-1)return!1;var r=i.list[e.slice(t+1)];return!!r&&r.indexOf(" "+e.slice(n+1,t)+" ")>=0},is:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;if(e.lastIndexOf(".",t-1)>=0)return!1;var n=i.list[e.slice(t+1)];return!!n&&n.indexOf(" "+e.slice(0,t)+" ")>=0},get:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return null;var n=e.lastIndexOf(".",t-1);if(n<=0||n>=t-1)return null;var r=i.list[e.slice(t+1)];return r?r.indexOf(" "+e.slice(n+1,t)+" ")<0?null:e.slice(n+1):null},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return i},e.exports?e.exports=i():t.SecondLevelDomains=i(t)})),a=(0,n.c)((function(e){var t,i;t=n.a,i=function(e,t,i,n){var r=n&&n.URI;function o(e,t){var i=arguments.length>=1,n=arguments.length>=2;if(!(this instanceof o))return i?n?new o(e,t):new o(e):new o;if(void 0===e){if(i)throw new TypeError("undefined is not a valid argument for URI");e="undefined"!=typeof location?location.href+"":""}if(null===e&&i)throw new TypeError("null is not a valid argument for URI");return this.href(e),void 0!==t?this.absoluteTo(t):this}o.version="1.19.7";var s=o.prototype,a=Object.prototype.hasOwnProperty;function c(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function u(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function l(e){return"Array"===u(e)}function h(e,t){var i,n,r={};if("RegExp"===u(t))r=null;else if(l(t))for(i=0,n=t.length;i<n;i++)r[t[i]]=!0;else r[t]=!0;for(i=0,n=e.length;i<n;i++)(r&&void 0!==r[e[i]]||!r&&t.test(e[i]))&&(e.splice(i,1),n--,i--);return e}function d(e,t){var i,n;if(l(t)){for(i=0,n=t.length;i<n;i++)if(!d(e,t[i]))return!1;return!0}var r=u(t);for(i=0,n=e.length;i<n;i++)if("RegExp"===r){if("string"==typeof e[i]&&e[i].match(t))return!0}else if(e[i]===t)return!0;return!1}function f(e,t){if(!l(e)||!l(t))return!1;if(e.length!==t.length)return!1;e.sort(),t.sort();for(var i=0,n=e.length;i<n;i++)if(e[i]!==t[i])return!1;return!0}function p(e){return e.replace(/^\/+|\/+$/g,"")}function m(e){return escape(e)}function _(e){return encodeURIComponent(e).replace(/[!'()*]/g,m).replace(/\*/g,"%2A")}o._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:o.preventInvalidHostname,duplicateQueryParameters:o.duplicateQueryParameters,escapeQuerySpace:o.escapeQuerySpace}},o.preventInvalidHostname=!1,o.duplicateQueryParameters=!1,o.escapeQuerySpace=!0,o.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,o.idn_expression=/[^a-z0-9\._-]/i,o.punycode_expression=/(xn--)/i,o.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,o.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,o.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,o.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},o.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},o.hostProtocols=["http","https"],o.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,o.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},o.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return o.domAttributes[t]}},o.encode=_,o.decode=decodeURIComponent,o.iso8859=function(){o.encode=escape,o.decode=unescape},o.unicode=function(){o.encode=_,o.decode=decodeURIComponent},o.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},o.encodeQuery=function(e,t){var i=o.encode(e+"");return void 0===t&&(t=o.escapeQuerySpace),t?i.replace(/%20/g,"+"):i},o.decodeQuery=function(e,t){e+="",void 0===t&&(t=o.escapeQuerySpace);try{return o.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var Z,g={encode:"encode",decode:"decode"},y=function(e,t){return function(i){try{return o[t](i+"").replace(o.characters[e][t].expression,(function(i){return o.characters[e][t].map[i]}))}catch(e){return i}}};for(Z in g)o[Z+"PathSegment"]=y("pathname",g[Z]),o[Z+"UrnPathSegment"]=y("urnpath",g[Z]);var b=function(e,t,i){return function(n){var r;r=i?function(e){return o[t](o[i](e))}:o[t];for(var s=(n+"").split(e),a=0,c=s.length;a<c;a++)s[a]=r(s[a]);return s.join(e)}};function A(e){return function(t,i){return void 0===t?this._parts[e]||"":(this._parts[e]=t||null,this.build(!i),this)}}function w(e,t){return function(i,n){return void 0===i?this._parts[e]||"":(null!==i&&(i+="").charAt(0)===t&&(i=i.substring(1)),this._parts[e]=i,this.build(!n),this)}}o.decodePath=b("/","decodePathSegment"),o.decodeUrnPath=b(":","decodeUrnPathSegment"),o.recodePath=b("/","encodePathSegment","decode"),o.recodeUrnPath=b(":","encodeUrnPathSegment","decode"),o.encodeReserved=y("reserved","encode"),o.parse=function(e,t){var i;return t||(t={preventInvalidHostname:o.preventInvalidHostname}),(i=e.indexOf("#"))>-1&&(t.fragment=e.substring(i+1)||null,e=e.substring(0,i)),(i=e.indexOf("?"))>-1&&(t.query=e.substring(i+1)||null,e=e.substring(0,i)),"//"===(e=e.replace(/^(https?|ftp|wss?)?:[/\\]*/,"$1://")).substring(0,2)?(t.protocol=null,e=e.substring(2),e=o.parseAuthority(e,t)):(i=e.indexOf(":"))>-1&&(t.protocol=e.substring(0,i)||null,t.protocol&&!t.protocol.match(o.protocol_expression)?t.protocol=void 0:"//"===e.substring(i+1,i+3).replace(/\\/g,"/")?(e=e.substring(i+3),e=o.parseAuthority(e,t)):(e=e.substring(i+1),t.urn=!0)),t.path=e,t},o.parseHost=function(e,t){e||(e="");var i,n,r=(e=e.replace(/\\/g,"/")).indexOf("/");if(-1===r&&(r=e.length),"["===e.charAt(0))i=e.indexOf("]"),t.hostname=e.substring(1,i)||null,t.port=e.substring(i+2,r)||null,"/"===t.port&&(t.port=null);else{var s=e.indexOf(":"),a=e.indexOf("/"),c=e.indexOf(":",s+1);-1!==c&&(-1===a||c<a)?(t.hostname=e.substring(0,r)||null,t.port=null):(n=e.substring(0,r).split(":"),t.hostname=n[0]||null,t.port=n[1]||null)}return t.hostname&&"/"!==e.substring(r).charAt(0)&&(r++,e="/"+e),t.preventInvalidHostname&&o.ensureValidHostname(t.hostname,t.protocol),t.port&&o.ensureValidPort(t.port),e.substring(r)||"/"},o.parseAuthority=function(e,t){return e=o.parseUserinfo(e,t),o.parseHost(e,t)},o.parseUserinfo=function(e,t){var i=e;-1!==e.indexOf("\\")&&(e=e.replace(/\\/g,"/"));var n,r=e.indexOf("/"),s=e.lastIndexOf("@",r>-1?r:e.length-1);return s>-1&&(-1===r||s<r)?(n=e.substring(0,s).split(":"),t.username=n[0]?o.decode(n[0]):null,n.shift(),t.password=n[0]?o.decode(n.join(":")):null,e=i.substring(s+1)):(t.username=null,t.password=null),e},o.parseQuery=function(e,t){if(!e)return{};if(!(e=e.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var i,n,r,s={},c=e.split("&"),u=c.length,l=0;l<u;l++)i=c[l].split("="),n=o.decodeQuery(i.shift(),t),r=i.length?o.decodeQuery(i.join("="),t):null,"__proto__"!==n&&(a.call(s,n)?("string"!=typeof s[n]&&null!==s[n]||(s[n]=[s[n]]),s[n].push(r)):s[n]=r);return s},o.build=function(e){var t="",i=!1;return e.protocol&&(t+=e.protocol+":"),e.urn||!t&&!e.hostname||(t+="//",i=!0),t+=o.buildAuthority(e)||"","string"==typeof e.path&&("/"!==e.path.charAt(0)&&i&&(t+="/"),t+=e.path),"string"==typeof e.query&&e.query&&(t+="?"+e.query),"string"==typeof e.fragment&&e.fragment&&(t+="#"+e.fragment),t},o.buildHost=function(e){var t="";return e.hostname?(o.ip6_expression.test(e.hostname)?t+="["+e.hostname+"]":t+=e.hostname,e.port&&(t+=":"+e.port),t):""},o.buildAuthority=function(e){return o.buildUserinfo(e)+o.buildHost(e)},o.buildUserinfo=function(e){var t="";return e.username&&(t+=o.encode(e.username)),e.password&&(t+=":"+o.encode(e.password)),t&&(t+="@"),t},o.buildQuery=function(e,t,i){var n,r,s,c,u="";for(r in e)if("__proto__"!==r&&a.call(e,r))if(l(e[r]))for(n={},s=0,c=e[r].length;s<c;s++)void 0!==e[r][s]&&void 0===n[e[r][s]+""]&&(u+="&"+o.buildQueryParameter(r,e[r][s],i),!0!==t&&(n[e[r][s]+""]=!0));else void 0!==e[r]&&(u+="&"+o.buildQueryParameter(r,e[r],i));return u.substring(1)},o.buildQueryParameter=function(e,t,i){return o.encodeQuery(e,i)+(null!==t?"="+o.encodeQuery(t,i):"")},o.addQuery=function(e,t,i){if("object"==typeof t)for(var n in t)a.call(t,n)&&o.addQuery(e,n,t[n]);else{if("string"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(void 0===e[t])return void(e[t]=i);"string"==typeof e[t]&&(e[t]=[e[t]]),l(i)||(i=[i]),e[t]=(e[t]||[]).concat(i)}},o.setQuery=function(e,t,i){if("object"==typeof t)for(var n in t)a.call(t,n)&&o.setQuery(e,n,t[n]);else{if("string"!=typeof t)throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");e[t]=void 0===i?null:i}},o.removeQuery=function(e,t,i){var n,r,s;if(l(t))for(n=0,r=t.length;n<r;n++)e[t[n]]=void 0;else if("RegExp"===u(t))for(s in e)t.test(s)&&(e[s]=void 0);else if("object"==typeof t)for(s in t)a.call(t,s)&&o.removeQuery(e,s,t[s]);else{if("string"!=typeof t)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==i?"RegExp"===u(i)?!l(e[t])&&i.test(e[t])?e[t]=void 0:e[t]=h(e[t],i):e[t]!==String(i)||l(i)&&1!==i.length?l(e[t])&&(e[t]=h(e[t],i)):e[t]=void 0:e[t]=void 0}},o.hasQuery=function(e,t,i,n){switch(u(t)){case"String":break;case"RegExp":for(var r in e)if(a.call(e,r)&&t.test(r)&&(void 0===i||o.hasQuery(e,r,i)))return!0;return!1;case"Object":for(var s in t)if(a.call(t,s)&&!o.hasQuery(e,s,t[s]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(u(i)){case"Undefined":return t in e;case"Boolean":return i===Boolean(l(e[t])?e[t].length:e[t]);case"Function":return!!i(e[t],t,e);case"Array":return!!l(e[t])&&(n?d:f)(e[t],i);case"RegExp":return l(e[t])?!!n&&d(e[t],i):Boolean(e[t]&&e[t].match(i));case"Number":i=String(i);case"String":return l(e[t])?!!n&&d(e[t],i):e[t]===i;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},o.joinPaths=function(){for(var e=[],t=[],i=0,n=0;n<arguments.length;n++){var r=new o(arguments[n]);e.push(r);for(var s=r.segment(),a=0;a<s.length;a++)"string"==typeof s[a]&&t.push(s[a]),s[a]&&i++}if(!t.length||!i)return new o("");var c=new o("").segment(t);return""!==e[0].path()&&"/"!==e[0].path().slice(0,1)||c.path("/"+c.path()),c.normalize()},o.commonPath=function(e,t){var i,n=Math.min(e.length,t.length);for(i=0;i<n;i++)if(e.charAt(i)!==t.charAt(i)){i--;break}return i<1?e.charAt(0)===t.charAt(0)&&"/"===e.charAt(0)?"/":"":("/"===e.charAt(i)&&"/"===t.charAt(i)||(i=e.substring(0,i).lastIndexOf("/")),e.substring(0,i+1))},o.withinString=function(e,t,i){i||(i={});var n=i.start||o.findUri.start,r=i.end||o.findUri.end,s=i.trim||o.findUri.trim,a=i.parens||o.findUri.parens,c=/[a-z0-9-]=["']?$/i;for(n.lastIndex=0;;){var u=n.exec(e);if(!u)break;var l=u.index;if(i.ignoreHtml){var h=e.slice(Math.max(l-3,0),l);if(h&&c.test(h))continue}for(var d=l+e.slice(l).search(r),f=e.slice(l,d),p=-1;;){var m=a.exec(f);if(!m)break;var _=m.index+m[0].length;p=Math.max(p,_)}if(!((f=p>-1?f.slice(0,p)+f.slice(p).replace(s,""):f.replace(s,"")).length<=u[0].length||i.ignore&&i.ignore.test(f))){var Z=t(f,l,d=l+f.length,e);void 0!==Z?(Z=String(Z),e=e.slice(0,l)+Z+e.slice(d),n.lastIndex=l+Z.length):n.lastIndex=d}}return n.lastIndex=0,e},o.ensureValidHostname=function(t,i){var n=!!t,r=!1;if(!!i&&(r=d(o.hostProtocols,i)),r&&!n)throw new TypeError("Hostname cannot be empty, if protocol is "+i);if(t&&t.match(o.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(t).match(o.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_]')}},o.ensureValidPort=function(e){if(e){var t=Number(e);if(!(/^[0-9]+$/.test(t)&&t>0&&t<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},o.noConflict=function(e){if(e){var t={URI:this.noConflict()};return n.URITemplate&&"function"==typeof n.URITemplate.noConflict&&(t.URITemplate=n.URITemplate.noConflict()),n.IPv6&&"function"==typeof n.IPv6.noConflict&&(t.IPv6=n.IPv6.noConflict()),n.SecondLevelDomains&&"function"==typeof n.SecondLevelDomains.noConflict&&(t.SecondLevelDomains=n.SecondLevelDomains.noConflict()),t}return n.URI===this&&(n.URI=r),this},s.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=o.build(this._parts),this._deferred_build=!1),this},s.clone=function(){return new o(this)},s.valueOf=s.toString=function(){return this.build(!1)._string},s.protocol=A("protocol"),s.username=A("username"),s.password=A("password"),s.hostname=A("hostname"),s.port=A("port"),s.query=w("query","?"),s.fragment=w("fragment","#"),s.search=function(e,t){var i=this.query(e,t);return"string"==typeof i&&i.length?"?"+i:i},s.hash=function(e,t){var i=this.fragment(e,t);return"string"==typeof i&&i.length?"#"+i:i},s.pathname=function(e,t){if(void 0===e||!0===e){var i=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?o.decodeUrnPath:o.decodePath)(i):i}return this._parts.urn?this._parts.path=e?o.recodeUrnPath(e):"":this._parts.path=e?o.recodePath(e):"/",this.build(!t),this},s.path=s.pathname,s.href=function(e,t){var i;if(void 0===e)return this.toString();this._string="",this._parts=o._parts();var n=e instanceof o,r="object"==typeof e&&(e.hostname||e.path||e.pathname);if(e.nodeName&&(e=e[o.getDomAttribute(e)]||"",r=!1),!n&&r&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e||e instanceof String)this._parts=o.parse(String(e),this._parts);else{if(!n&&!r)throw new TypeError("invalid input");var s=n?e._parts:e;for(i in s)"query"!==i&&a.call(this._parts,i)&&(this._parts[i]=s[i]);s.query&&this.query(s.query,!1)}return this.build(!t),this},s.is=function(e){var t=!1,n=!1,r=!1,s=!1,a=!1,c=!1,u=!1,l=!this._parts.urn;switch(this._parts.hostname&&(l=!1,n=o.ip4_expression.test(this._parts.hostname),r=o.ip6_expression.test(this._parts.hostname),a=(s=!(t=n||r))&&i&&i.has(this._parts.hostname),c=s&&o.idn_expression.test(this._parts.hostname),u=s&&o.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return l;case"absolute":return!l;case"domain":case"name":return s;case"sld":return a;case"ip":return t;case"ip4":case"ipv4":case"inet4":return n;case"ip6":case"ipv6":case"inet6":return r;case"idn":return c;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return u}return null};var v=s.protocol,T=s.port,C=s.hostname;s.protocol=function(e,t){if(e&&!(e=e.replace(/:(\/\/)?$/,"")).match(o.protocol_expression))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return v.call(this,e,t)},s.scheme=s.protocol,s.port=function(e,t){return this._parts.urn?void 0===e?"":this:(void 0!==e&&(0===e&&(e=null),e&&(":"===(e+="").charAt(0)&&(e=e.substring(1)),o.ensureValidPort(e))),T.call(this,e,t))},s.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var i={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==o.parseHost(e,i))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=i.hostname,this._parts.preventInvalidHostname&&o.ensureValidHostname(e,this._parts.protocol)}return C.call(this,e,t)},s.origin=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var i=this.protocol();return this.authority()?(i?i+"://":"")+this.authority():""}var n=o(e);return this.protocol(n.protocol()).authority(n.authority()).build(!t),this},s.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?o.buildHost(this._parts):"";if("/"!==o.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},s.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?o.buildAuthority(this._parts):"";if("/"!==o.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},s.userinfo=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var i=o.buildUserinfo(this._parts);return i?i.substring(0,i.length-1):i}return"@"!==e[e.length-1]&&(e+="@"),o.parseUserinfo(e,this._parts),this.build(!t),this},s.resource=function(e,t){var i;return void 0===e?this.path()+this.search()+this.hash():(i=o.parse(e),this._parts.path=i.path,this._parts.query=i.query,this._parts.fragment=i.fragment,this.build(!t),this)},s.subdomain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var i=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,i)||""}var n=this._parts.hostname.length-this.domain().length,r=this._parts.hostname.substring(0,n),s=new RegExp("^"+c(r));if(e&&"."!==e.charAt(e.length-1)&&(e+="."),-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");return e&&o.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(s,e),this.build(!t),this},s.domain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var i=this._parts.hostname.match(/\./g);if(i&&i.length<2)return this._parts.hostname;var n=this._parts.hostname.length-this.tld(t).length-1;return n=this._parts.hostname.lastIndexOf(".",n-1)+1,this._parts.hostname.substring(n)||""}if(!e)throw new TypeError("cannot set domain empty");if(-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(o.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var r=new RegExp(c(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(r,e)}return this.build(!t),this},s.tld=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.lastIndexOf("."),r=this._parts.hostname.substring(n+1);return!0!==t&&i&&i.list[r.toLowerCase()]&&i.get(this._parts.hostname)||r}var o;if(!e)throw new TypeError("cannot set TLD empty");if(e.match(/[^a-zA-Z0-9-]/)){if(!i||!i.is(e))throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');o=new RegExp(c(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,e)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");o=new RegExp(c(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,e)}return this.build(!t),this},s.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var i=this._parts.path.length-this.filename().length-1,n=this._parts.path.substring(0,i)||(this._parts.hostname?"/":"");return e?o.decodePath(n):n}var r=this._parts.path.length-this.filename().length,s=this._parts.path.substring(0,r),a=new RegExp("^"+c(s));return this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=o.recodePath(e),this._parts.path=this._parts.path.replace(a,e),this.build(!t),this},s.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("string"!=typeof e){if(!this._parts.path||"/"===this._parts.path)return"";var i=this._parts.path.lastIndexOf("/"),n=this._parts.path.substring(i+1);return e?o.decodePathSegment(n):n}var r=!1;"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(r=!0);var s=new RegExp(c(this.filename())+"$");return e=o.recodePath(e),this._parts.path=this._parts.path.replace(s,e),r?this.normalizePath(t):this.build(!t),this},s.suffix=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path||"/"===this._parts.path)return"";var i,n,r=this.filename(),s=r.lastIndexOf(".");return-1===s?"":(i=r.substring(s+1),n=/^[a-z0-9%]+$/i.test(i)?i:"",e?o.decodePathSegment(n):n)}"."===e.charAt(0)&&(e=e.substring(1));var a,u=this.suffix();if(u)a=e?new RegExp(c(u)+"$"):new RegExp(c("."+u)+"$");else{if(!e)return this;this._parts.path+="."+o.recodePath(e)}return a&&(e=o.recodePath(e),this._parts.path=this._parts.path.replace(a,e)),this.build(!t),this},s.segment=function(e,t,i){var n=this._parts.urn?":":"/",r=this.path(),o="/"===r.substring(0,1),s=r.split(n);if(void 0!==e&&"number"!=typeof e&&(i=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw new Error('Bad segment "'+e+'", must be 0-based integer');if(o&&s.shift(),e<0&&(e=Math.max(s.length+e,0)),void 0===t)return void 0===e?s:s[e];if(null===e||void 0===s[e])if(l(t)){s=[];for(var a=0,c=t.length;a<c;a++)(t[a].length||s.length&&s[s.length-1].length)&&(s.length&&!s[s.length-1].length&&s.pop(),s.push(p(t[a])))}else(t||"string"==typeof t)&&(t=p(t),""===s[s.length-1]?s[s.length-1]=t:s.push(t));else t?s[e]=p(t):s.splice(e,1);return o&&s.unshift(""),this.path(s.join(n),i)},s.segmentCoded=function(e,t,i){var n,r,s;if("number"!=typeof e&&(i=t,t=e,e=void 0),void 0===t){if(l(n=this.segment(e,t,i)))for(r=0,s=n.length;r<s;r++)n[r]=o.decode(n[r]);else n=void 0!==n?o.decode(n):void 0;return n}if(l(t))for(r=0,s=t.length;r<s;r++)t[r]=o.encode(t[r]);else t="string"==typeof t||t instanceof String?o.encode(t):t;return this.segment(e,t,i)};var E=s.query;return s.query=function(e,t){if(!0===e)return o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof e){var i=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace),n=e.call(this,i);return this._parts.query=o.buildQuery(n||i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this}return void 0!==e&&"string"!=typeof e?(this._parts.query=o.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this):E.call(this,e,t)},s.setQuery=function(e,t,i){var n=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof e||e instanceof String)n[e]=void 0!==t?t:null;else{if("object"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var r in e)a.call(e,r)&&(n[r]=e[r])}return this._parts.query=o.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(i=t),this.build(!i),this},s.addQuery=function(e,t,i){var n=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.addQuery(n,e,void 0===t?null:t),this._parts.query=o.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(i=t),this.build(!i),this},s.removeQuery=function(e,t,i){var n=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.removeQuery(n,e,t),this._parts.query=o.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(i=t),this.build(!i),this},s.hasQuery=function(e,t,i){var n=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.hasQuery(n,e,t,i)},s.setSearch=s.setQuery,s.addSearch=s.addQuery,s.removeSearch=s.removeQuery,s.hasSearch=s.hasQuery,s.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},s.normalizeProtocol=function(e){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},s.normalizeHostname=function(i){return this._parts.hostname&&(this.is("IDN")&&e?this._parts.hostname=e.toASCII(this._parts.hostname):this.is("IPv6")&&t&&(this._parts.hostname=t.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!i)),this},s.normalizePort=function(e){return"string"==typeof this._parts.protocol&&this._parts.port===o.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},s.normalizePath=function(e){var t,i=this._parts.path;if(!i)return this;if(this._parts.urn)return this._parts.path=o.recodeUrnPath(this._parts.path),this.build(!e),this;if("/"===this._parts.path)return this;var n,r,s="";for("/"!==(i=o.recodePath(i)).charAt(0)&&(t=!0,i="/"+i),"/.."!==i.slice(-3)&&"/."!==i.slice(-2)||(i+="/"),i=i.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),t&&(s=i.substring(1).match(/^(\.\.\/)+/)||"")&&(s=s[0]);-1!==(n=i.search(/\/\.\.(\/|$)/));)0!==n?(-1===(r=i.substring(0,n).lastIndexOf("/"))&&(r=n),i=i.substring(0,r)+i.substring(n+3)):i=i.substring(3);return t&&this.is("relative")&&(i=s+i.substring(1)),this._parts.path=i,this.build(!e),this},s.normalizePathname=s.normalizePath,s.normalizeQuery=function(e){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(o.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},s.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},s.normalizeSearch=s.normalizeQuery,s.normalizeHash=s.normalizeFragment,s.iso8859=function(){var e=o.encode,t=o.decode;o.encode=escape,o.decode=decodeURIComponent;try{this.normalize()}finally{o.encode=e,o.decode=t}return this},s.unicode=function(){var e=o.encode,t=o.decode;o.encode=_,o.decode=unescape;try{this.normalize()}finally{o.encode=e,o.decode=t}return this},s.readable=function(){var t=this.clone();t.username("").password("").normalize();var i="";if(t._parts.protocol&&(i+=t._parts.protocol+"://"),t._parts.hostname&&(t.is("punycode")&&e?(i+=e.toUnicode(t._parts.hostname),t._parts.port&&(i+=":"+t._parts.port)):i+=t.host()),t._parts.hostname&&t._parts.path&&"/"!==t._parts.path.charAt(0)&&(i+="/"),i+=t.path(!0),t._parts.query){for(var n="",r=0,s=t._parts.query.split("&"),a=s.length;r<a;r++){var c=(s[r]||"").split("=");n+="&"+o.decodeQuery(c[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==c[1]&&(n+="="+o.decodeQuery(c[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}i+="?"+n.substring(1)}return i+o.decodeQuery(t.hash(),!0)},s.absoluteTo=function(e){var t,i,n,r=this.clone(),s=["protocol","username","password","hostname","port"];if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e instanceof o||(e=new o(e)),r._parts.protocol)return r;if(r._parts.protocol=e._parts.protocol,this._parts.hostname)return r;for(i=0;n=s[i];i++)r._parts[n]=e._parts[n];return r._parts.path?(".."===r._parts.path.substring(-2)&&(r._parts.path+="/"),"/"!==r.path().charAt(0)&&(t=(t=e.directory())||(0===e.path().indexOf("/")?"/":""),r._parts.path=(t?t+"/":"")+r._parts.path,r.normalizePath())):(r._parts.path=e._parts.path,r._parts.query||(r._parts.query=e._parts.query)),r.build(),r},s.relativeTo=function(e){var t,i,n,r,s,a=this.clone().normalize();if(a._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e=new o(e).normalize(),t=a._parts,i=e._parts,r=a.path(),s=e.path(),"/"!==r.charAt(0))throw new Error("URI is already relative");if("/"!==s.charAt(0))throw new Error("Cannot calculate a URI relative to another relative URI");if(t.protocol===i.protocol&&(t.protocol=null),t.username!==i.username||t.password!==i.password)return a.build();if(null!==t.protocol||null!==t.username||null!==t.password)return a.build();if(t.hostname!==i.hostname||t.port!==i.port)return a.build();if(t.hostname=null,t.port=null,r===s)return t.path="",a.build();if(!(n=o.commonPath(r,s)))return a.build();var c=i.path.substring(n.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return t.path=c+t.path.substring(n.length)||"./",a.build()},s.equals=function(e){var t,i,n,r,s,c=this.clone(),u=new o(e),h={};if(c.normalize(),u.normalize(),c.toString()===u.toString())return!0;if(n=c.query(),r=u.query(),c.query(""),u.query(""),c.toString()!==u.toString())return!1;if(n.length!==r.length)return!1;for(s in t=o.parseQuery(n,this._parts.escapeQuerySpace),i=o.parseQuery(r,this._parts.escapeQuerySpace),t)if(a.call(t,s)){if(l(t[s])){if(!f(t[s],i[s]))return!1}else if(t[s]!==i[s])return!1;h[s]=!0}for(s in i)if(a.call(i,s)&&!h[s])return!1;return!0},s.preventInvalidHostname=function(e){return this._parts.preventInvalidHostname=!!e,this},s.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},s.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this},o},e.exports?e.exports=i(r,o,s):t.URI=i(t.punycode,t.IPv6,t.SecondLevelDomains,t)}))},923717:(e,t,i)=>{"use strict";i.d(t,{Z:()=>J});var n=Object.hasOwnProperty,r=Object.setPrototypeOf,o=Object.isFrozen,s=Object.getPrototypeOf,a=Object.getOwnPropertyDescriptor,c=Object.freeze,u=Object.seal,l=Object.create,h="undefined"!=typeof Reflect&&Reflect,d=h.apply,f=h.construct;d||(d=function(e,t,i){return e.apply(t,i)}),c||(c=function(e){return e}),u||(u=function(e){return e}),f||(f=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}(t))))});var p,m=C(Array.prototype.forEach),_=C(Array.prototype.pop),Z=C(Array.prototype.push),g=C(String.prototype.toLowerCase),y=C(String.prototype.match),b=C(String.prototype.replace),A=C(String.prototype.indexOf),w=C(String.prototype.trim),v=C(RegExp.prototype.test),T=(p=TypeError,function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return f(p,t)});function C(e){return function(t){for(var i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return d(e,t,n)}}function E(e,t){r&&r(e,null);for(var i=t.length;i--;){var n=t[i];if("string"==typeof n){var s=g(n);s!==n&&(o(t)||(t[i]=s),n=s)}e[n]=!0}return e}function x(e){var t=l(null),i=void 0;for(i in e)d(n,e,[i])&&(t[i]=e[i]);return t}function S(e,t){for(;null!==e;){var i=a(e,t);if(i){if(i.get)return C(i.get);if("function"==typeof i.value)return C(i.value)}e=s(e)}return function(e){return console.warn("fallback value for",e),null}}var O=c(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),I=c(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),D=c(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),P=c(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),R=c(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),B=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),M=c(["#text"]),L=c(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),N=c(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),F=c(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),k=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),U=u(/\{\{[\s\S]*|[\s\S]*\}\}/gm),V=u(/<%[\s\S]*|[\s\S]*%>/gm),z=u(/^data-[\-\w.\u00B7-\uFFFF]/),H=u(/^aria-[\-\w]+$/),G=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=u(/^(?:\w+script|data):/i),j=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),W="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 K(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}var Y=function(){return"undefined"==typeof window?null:window},X=function(e,t){if("object"!==(void 0===e?"undefined":W(e))||"function"!=typeof e.createPolicy)return null;var i=null,n="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(n)&&(i=t.currentScript.getAttribute(n));var r="dompurify"+(i?"#"+i:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}},J=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y(),i=function(t){return e(t)};if(i.version="2.3.5",i.removed=[],!t||!t.document||9!==t.document.nodeType)return i.isSupported=!1,i;var n=t.document,r=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,a=t.Node,u=t.Element,l=t.NodeFilter,h=t.NamedNodeMap,d=void 0===h?t.NamedNodeMap||t.MozNamedAttrMap:h,f=t.HTMLFormElement,p=t.DOMParser,C=t.trustedTypes,J=u.prototype,Q=S(J,"cloneNode"),$=S(J,"nextSibling"),ee=S(J,"childNodes"),te=S(J,"parentNode");if("function"==typeof s){var ie=r.createElement("template");ie.content&&ie.content.ownerDocument&&(r=ie.content.ownerDocument)}var ne=X(C,n),re=ne?ne.createHTML(""):"",oe=r,se=oe.implementation,ae=oe.createNodeIterator,ce=oe.createDocumentFragment,ue=oe.getElementsByTagName,le=n.importNode,he={};try{he=x(r).documentMode?r.documentMode:{}}catch(e){}var de={};i.isSupported="function"==typeof te&&se&&void 0!==se.createHTMLDocument&&9!==he;var fe=U,pe=V,me=z,_e=H,Ze=q,ge=j,ye=G,be=null,Ae=E({},[].concat(K(O),K(I),K(D),K(R),K(M))),we=null,ve=E({},[].concat(K(L),K(N),K(F),K(k))),Te=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ce=null,Ee=null,xe=!0,Se=!0,Oe=!1,Ie=!1,De=!1,Pe=!1,Re=!1,Be=!1,Me=!1,Le=!1,Ne=!0,Fe=!0,ke=!1,Ue={},Ve=null,ze=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),He=null,Ge=E({},["audio","video","img","source","image","track"]),qe=null,je=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),We="http://www.w3.org/1998/Math/MathML",Ke="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml",Xe=Ye,Je=!1,Qe=void 0,$e=["application/xhtml+xml","text/html"],et="text/html",tt=void 0,it=null,nt=r.createElement("form"),rt=function(e){return e instanceof RegExp||e instanceof Function},ot=function(e){it&&it===e||(e&&"object"===(void 0===e?"undefined":W(e))||(e={}),e=x(e),be="ALLOWED_TAGS"in e?E({},e.ALLOWED_TAGS):Ae,we="ALLOWED_ATTR"in e?E({},e.ALLOWED_ATTR):ve,qe="ADD_URI_SAFE_ATTR"in e?E(x(je),e.ADD_URI_SAFE_ATTR):je,He="ADD_DATA_URI_TAGS"in e?E(x(Ge),e.ADD_DATA_URI_TAGS):Ge,Ve="FORBID_CONTENTS"in e?E({},e.FORBID_CONTENTS):ze,Ce="FORBID_TAGS"in e?E({},e.FORBID_TAGS):{},Ee="FORBID_ATTR"in e?E({},e.FORBID_ATTR):{},Ue="USE_PROFILES"in e&&e.USE_PROFILES,xe=!1!==e.ALLOW_ARIA_ATTR,Se=!1!==e.ALLOW_DATA_ATTR,Oe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=e.SAFE_FOR_TEMPLATES||!1,De=e.WHOLE_DOCUMENT||!1,Be=e.RETURN_DOM||!1,Me=e.RETURN_DOM_FRAGMENT||!1,Le=e.RETURN_TRUSTED_TYPE||!1,Re=e.FORCE_BODY||!1,Ne=!1!==e.SANITIZE_DOM,Fe=!1!==e.KEEP_CONTENT,ke=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||ye,Xe=e.NAMESPACE||Ye,e.CUSTOM_ELEMENT_HANDLING&&rt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Te.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&rt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Te.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Te.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Qe=Qe=-1===$e.indexOf(e.PARSER_MEDIA_TYPE)?et:e.PARSER_MEDIA_TYPE,tt="application/xhtml+xml"===Qe?function(e){return e}:g,Ie&&(Se=!1),Me&&(Be=!0),Ue&&(be=E({},[].concat(K(M))),we=[],!0===Ue.html&&(E(be,O),E(we,L)),!0===Ue.svg&&(E(be,I),E(we,N),E(we,k)),!0===Ue.svgFilters&&(E(be,D),E(we,N),E(we,k)),!0===Ue.mathMl&&(E(be,R),E(we,F),E(we,k))),e.ADD_TAGS&&(be===Ae&&(be=x(be)),E(be,e.ADD_TAGS)),e.ADD_ATTR&&(we===ve&&(we=x(we)),E(we,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&E(qe,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(Ve===ze&&(Ve=x(Ve)),E(Ve,e.FORBID_CONTENTS)),Fe&&(be["#text"]=!0),De&&E(be,["html","head","body"]),be.table&&(E(be,["tbody"]),delete Ce.tbody),c&&c(e),it=e)},st=E({},["mi","mo","mn","ms","mtext"]),at=E({},["foreignobject","desc","title","annotation-xml"]),ct=E({},I);E(ct,D),E(ct,P);var ut=E({},R);E(ut,B);var lt=function(e){var t=te(e);t&&t.tagName||(t={namespaceURI:Ye,tagName:"template"});var i=g(e.tagName),n=g(t.tagName);if(e.namespaceURI===Ke)return t.namespaceURI===Ye?"svg"===i:t.namespaceURI===We?"svg"===i&&("annotation-xml"===n||st[n]):Boolean(ct[i]);if(e.namespaceURI===We)return t.namespaceURI===Ye?"math"===i:t.namespaceURI===Ke?"math"===i&&at[n]:Boolean(ut[i]);if(e.namespaceURI===Ye){if(t.namespaceURI===Ke&&!at[n])return!1;if(t.namespaceURI===We&&!st[n])return!1;var r=E({},["title","style","font","a","script"]);return!ut[i]&&(r[i]||!ct[i])}return!1},ht=function(e){Z(i.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=re}catch(t){e.remove()}}},dt=function(e,t){try{Z(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Z(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!we[e])if(Be||Me)try{ht(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ft=function(e){var t=void 0,i=void 0;if(Re)e="<remove></remove>"+e;else{var n=y(e,/^[\r\n\t ]+/);i=n&&n[0]}"application/xhtml+xml"===Qe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=ne?ne.createHTML(e):e;if(Xe===Ye)try{t=(new p).parseFromString(o,Qe)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(Xe,"template",null);try{t.documentElement.innerHTML=Je?"":o}catch(e){}}var s=t.body||t.documentElement;return e&&i&&s.insertBefore(r.createTextNode(i),s.childNodes[0]||null),Xe===Ye?ue.call(t,De?"html":"body")[0]:De?t.documentElement:s},pt=function(e){return ae.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},mt=function(e){return e instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},_t=function(e){return"object"===(void 0===a?"undefined":W(a))?e instanceof a:e&&"object"===(void 0===e?"undefined":W(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Zt=function(e,t,n){de[e]&&m(de[e],(function(e){e.call(i,t,n,it)}))},gt=function(e){var t=void 0;if(Zt("beforeSanitizeElements",e,null),mt(e))return ht(e),!0;if(y(e.nodeName,/[\u0080-\uFFFF]/))return ht(e),!0;var n=tt(e.nodeName);if(Zt("uponSanitizeElement",e,{tagName:n,allowedTags:be}),!_t(e.firstElementChild)&&(!_t(e.content)||!_t(e.content.firstElementChild))&&v(/<[/\w]/g,e.innerHTML)&&v(/<[/\w]/g,e.textContent))return ht(e),!0;if("select"===n&&v(/<template/i,e.innerHTML))return ht(e),!0;if(!be[n]||Ce[n]){if(Fe&&!Ve[n]){var r=te(e)||e.parentNode,o=ee(e)||e.childNodes;if(o&&r)for(var s=o.length-1;s>=0;--s)r.insertBefore(Q(o[s],!0),$(e))}if(!Ce[n]&&bt(n)){if(Te.tagNameCheck instanceof RegExp&&v(Te.tagNameCheck,n))return!1;if(Te.tagNameCheck instanceof Function&&Te.tagNameCheck(n))return!1}return ht(e),!0}return e instanceof u&&!lt(e)?(ht(e),!0):"noscript"!==n&&"noembed"!==n||!v(/<\/no(script|embed)/i,e.innerHTML)?(Ie&&3===e.nodeType&&(t=e.textContent,t=b(t,fe," "),t=b(t,pe," "),e.textContent!==t&&(Z(i.removed,{element:e.cloneNode()}),e.textContent=t)),Zt("afterSanitizeElements",e,null),!1):(ht(e),!0)},yt=function(e,t,i){if(Ne&&("id"===t||"name"===t)&&(i in r||i in nt))return!1;if(Se&&!Ee[t]&&v(me,t));else if(xe&&v(_e,t));else if(!we[t]||Ee[t]){if(!(bt(e)&&(Te.tagNameCheck instanceof RegExp&&v(Te.tagNameCheck,e)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(e))&&(Te.attributeNameCheck instanceof RegExp&&v(Te.attributeNameCheck,t)||Te.attributeNameCheck instanceof Function&&Te.attributeNameCheck(t))||"is"===t&&Te.allowCustomizedBuiltInElements&&(Te.tagNameCheck instanceof RegExp&&v(Te.tagNameCheck,i)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(i))))return!1}else if(qe[t]);else if(v(ye,b(i,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==A(i,"data:")||!He[e])if(Oe&&!v(Ze,b(i,ge,"")));else if(i)return!1;return!0},bt=function(e){return e.indexOf("-")>0},At=function(e){var t=void 0,n=void 0,r=void 0,o=void 0;Zt("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we};for(o=s.length;o--;){var c=t=s[o],u=c.name,l=c.namespaceURI;if(n=w(t.value),r=tt(u),a.attrName=r,a.attrValue=n,a.keepAttr=!0,a.forceKeepAttr=void 0,Zt("uponSanitizeAttribute",e,a),n=a.attrValue,!a.forceKeepAttr&&(dt(u,e),a.keepAttr))if(v(/\/>/i,n))dt(u,e);else{Ie&&(n=b(n,fe," "),n=b(n,pe," "));var h=tt(e.nodeName);if(yt(h,r,n))try{l?e.setAttributeNS(l,u,n):e.setAttribute(u,n),_(i.removed)}catch(e){}}}Zt("afterSanitizeAttributes",e,null)}},wt=function e(t){var i=void 0,n=pt(t);for(Zt("beforeSanitizeShadowDOM",t,null);i=n.nextNode();)Zt("uponSanitizeShadowNode",i,null),gt(i)||(i.content instanceof o&&e(i.content),At(i));Zt("afterSanitizeShadowDOM",t,null)};return i.sanitize=function(e,r){var s=void 0,c=void 0,u=void 0,l=void 0,h=void 0;if((Je=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!_t(e)){if("function"!=typeof e.toString)throw T("toString is not a function");if("string"!=typeof(e=e.toString()))throw T("dirty is not a string, aborting")}if(!i.isSupported){if("object"===W(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(_t(e))return t.toStaticHTML(e.outerHTML)}return e}if(Pe||ot(r),i.removed=[],"string"==typeof e&&(ke=!1),ke){if(e.nodeName){var d=tt(e.nodeName);if(!be[d]||Ce[d])throw T("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)1===(c=(s=ft("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?s=c:s.appendChild(c);else{if(!Be&&!Ie&&!De&&-1===e.indexOf("<"))return ne&&Le?ne.createHTML(e):e;if(!(s=ft(e)))return Be?null:Le?re:""}s&&Re&&ht(s.firstChild);for(var f=pt(ke?e:s);u=f.nextNode();)3===u.nodeType&&u===l||gt(u)||(u.content instanceof o&&wt(u.content),At(u),l=u);if(l=null,ke)return e;if(Be){if(Me)for(h=ce.call(s.ownerDocument);s.firstChild;)h.appendChild(s.firstChild);else h=s;return we.shadowroot&&(h=le.call(n,h,!0)),h}var p=De?s.outerHTML:s.innerHTML;return Ie&&(p=b(p,fe," "),p=b(p,pe," ")),ne&&Le?ne.createHTML(p):p},i.setConfig=function(e){ot(e),Pe=!0},i.clearConfig=function(){it=null,Pe=!1},i.isValidAttribute=function(e,t,i){it||ot({});var n=tt(e),r=tt(t);return yt(n,r,i)},i.addHook=function(e,t){"function"==typeof t&&(de[e]=de[e]||[],Z(de[e],t))},i.removeHook=function(e){de[e]&&_(de[e])},i.removeHooks=function(e){de[e]&&(de[e]=[])},i.removeAllHooks=function(){de={}},i}()},686094:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});var n=o,r=o;function o(e,t,i){i=i||2;var n,r,o,u,l,h,d,m=t&&t.length,_=m?t[0]*i:e.length,g=s(e,0,_,i,!0),y=[];if(!g||g.next===g.prev)return y;if(m&&(g=function(e,t,i,n){var r,o,c,u=[];for(r=0,o=t.length;r<o;r++)(c=s(e,t[r]*n,r<o-1?t[r+1]*n:e.length,n,!1))===c.next&&(c.steiner=!0),u.push(Z(c));for(u.sort(f),r=0;r<u.length;r++)i=a(i=p(u[r],i),i.next);return i}(e,t,g,i)),e.length>80*i){n=o=e[0],r=u=e[1];for(var b=i;b<_;b+=i)(l=e[b])<n&&(n=l),(h=e[b+1])<r&&(r=h),l>o&&(o=l),h>u&&(u=h);d=0!==(d=Math.max(o-n,u-r))?1/d:0}return c(g,y,i,n,r,d),y}function s(e,t,i,n,r){var o,s;if(r===I(e,t,i,n)>0)for(o=t;o<i;o+=n)s=x(o,e[o],e[o+1],s);else for(o=i-n;o>=t;o-=n)s=x(o,e[o],e[o+1],s);return s&&A(s,s.next)&&(S(s),s=s.next),s}function a(e,t){if(!e)return e;t||(t=e);var i,n=e;do{if(i=!1,n.steiner||!A(n,n.next)&&0!==b(n.prev,n,n.next))n=n.next;else{if(S(n),(n=t=n.prev)===n.next)break;i=!0}}while(i||n!==t);return t}function c(e,t,i,n,r,o,s){if(e){!s&&o&&function(e,t,i,n){var r=e;do{null===r.z&&(r.z=_(r.x,r.y,t,i,n)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==e);r.prevZ.nextZ=null,r.prevZ=null,function(e){var t,i,n,r,o,s,a,c,u=1;do{for(i=e,e=null,o=null,s=0;i;){for(s++,n=i,a=0,t=0;t<u&&(a++,n=n.nextZ);t++);for(c=u;a>0||c>0&&n;)0!==a&&(0===c||!n||i.z<=n.z)?(r=i,i=i.nextZ,a--):(r=n,n=n.nextZ,c--),o?o.nextZ=r:e=r,r.prevZ=o,o=r;i=n}o.nextZ=null,u*=2}while(s>1)}(r)}(e,n,r,o);for(var f,p,m=e;e.prev!==e.next;)if(f=e.prev,p=e.next,o?l(e,n,r,o):u(e))t.push(f.i/i),t.push(e.i/i),t.push(p.i/i),S(e),e=p.next,m=p.next;else if((e=p)===m){s?1===s?c(e=h(a(e),t,i),t,i,n,r,o,2):2===s&&d(e,t,i,n,r,o):c(a(e),t,i,n,r,o,1);break}}}function u(e){var t=e.prev,i=e,n=e.next;if(b(t,i,n)>=0)return!1;for(var r=e.next.next;r!==e.prev;){if(g(t.x,t.y,i.x,i.y,n.x,n.y,r.x,r.y)&&b(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function l(e,t,i,n){var r=e.prev,o=e,s=e.next;if(b(r,o,s)>=0)return!1;for(var a=r.x<o.x?r.x<s.x?r.x:s.x:o.x<s.x?o.x:s.x,c=r.y<o.y?r.y<s.y?r.y:s.y:o.y<s.y?o.y:s.y,u=r.x>o.x?r.x>s.x?r.x:s.x:o.x>s.x?o.x:s.x,l=r.y>o.y?r.y>s.y?r.y:s.y:o.y>s.y?o.y:s.y,h=_(a,c,t,i,n),d=_(u,l,t,i,n),f=e.prevZ,p=e.nextZ;f&&f.z>=h&&p&&p.z<=d;){if(f!==e.prev&&f!==e.next&&g(r.x,r.y,o.x,o.y,s.x,s.y,f.x,f.y)&&b(f.prev,f,f.next)>=0)return!1;if(f=f.prevZ,p!==e.prev&&p!==e.next&&g(r.x,r.y,o.x,o.y,s.x,s.y,p.x,p.y)&&b(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(;f&&f.z>=h;){if(f!==e.prev&&f!==e.next&&g(r.x,r.y,o.x,o.y,s.x,s.y,f.x,f.y)&&b(f.prev,f,f.next)>=0)return!1;f=f.prevZ}for(;p&&p.z<=d;){if(p!==e.prev&&p!==e.next&&g(r.x,r.y,o.x,o.y,s.x,s.y,p.x,p.y)&&b(p.prev,p,p.next)>=0)return!1;p=p.nextZ}return!0}function h(e,t,i){var n=e;do{var r=n.prev,o=n.next.next;!A(r,o)&&w(r,n,n.next,o)&&C(r,o)&&C(o,r)&&(t.push(r.i/i),t.push(n.i/i),t.push(o.i/i),S(n),S(n.next),n=e=o),n=n.next}while(n!==e);return a(n)}function d(e,t,i,n,r,o){var s=e;do{for(var u=s.next.next;u!==s.prev;){if(s.i!==u.i&&y(s,u)){var l=E(s,u);return s=a(s,s.next),l=a(l,l.next),c(s,t,i,n,r,o),void c(l,t,i,n,r,o)}u=u.next}s=s.next}while(s!==e)}function f(e,t){return e.x-t.x}function p(e,t){var i=function(e,t){var i,n=t,r=e.x,o=e.y,s=-1/0;do{if(o<=n.y&&o>=n.next.y&&n.next.y!==n.y){var a=n.x+(o-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(a<=r&&a>s){if(s=a,a===r){if(o===n.y)return n;if(o===n.next.y)return n.next}i=n.x<n.next.x?n:n.next}}n=n.next}while(n!==t);if(!i)return null;if(r===s)return i;var c,u=i,l=i.x,h=i.y,d=1/0;n=i;do{r>=n.x&&n.x>=l&&r!==n.x&&g(o<h?r:s,o,l,h,o<h?s:r,o,n.x,n.y)&&(c=Math.abs(o-n.y)/(r-n.x),C(n,e)&&(c<d||c===d&&(n.x>i.x||n.x===i.x&&m(i,n)))&&(i=n,d=c)),n=n.next}while(n!==u);return i}(e,t);if(!i)return t;var n=E(i,e),r=a(i,i.next);return a(n,n.next),t===i?r:t}function m(e,t){return b(e.prev,e,t.prev)<0&&b(t.next,e,e.next)<0}function _(e,t,i,n,r){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-i)*r)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*r)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function Z(e){var t=e,i=e;do{(t.x<i.x||t.x===i.x&&t.y<i.y)&&(i=t),t=t.next}while(t!==e);return i}function g(e,t,i,n,r,o,s,a){return(r-s)*(t-a)-(e-s)*(o-a)>=0&&(e-s)*(n-a)-(i-s)*(t-a)>=0&&(i-s)*(o-a)-(r-s)*(n-a)>=0}function y(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var i=e;do{if(i.i!==e.i&&i.next.i!==e.i&&i.i!==t.i&&i.next.i!==t.i&&w(i,i.next,e,t))return!0;i=i.next}while(i!==e);return!1}(e,t)&&(C(e,t)&&C(t,e)&&function(e,t){var i=e,n=!1,r=(e.x+t.x)/2,o=(e.y+t.y)/2;do{i.y>o!=i.next.y>o&&i.next.y!==i.y&&r<(i.next.x-i.x)*(o-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next}while(i!==e);return n}(e,t)&&(b(e.prev,e,t.prev)||b(e,t.prev,t))||A(e,t)&&b(e.prev,e,e.next)>0&&b(t.prev,t,t.next)>0)}function b(e,t,i){return(t.y-e.y)*(i.x-t.x)-(t.x-e.x)*(i.y-t.y)}function A(e,t){return e.x===t.x&&e.y===t.y}function w(e,t,i,n){var r=T(b(e,t,i)),o=T(b(e,t,n)),s=T(b(i,n,e)),a=T(b(i,n,t));return r!==o&&s!==a||!(0!==r||!v(e,i,t))||!(0!==o||!v(e,n,t))||!(0!==s||!v(i,e,n))||!(0!==a||!v(i,t,n))}function v(e,t,i){return t.x<=Math.max(e.x,i.x)&&t.x>=Math.min(e.x,i.x)&&t.y<=Math.max(e.y,i.y)&&t.y>=Math.min(e.y,i.y)}function T(e){return e>0?1:e<0?-1:0}function C(e,t){return b(e.prev,e,e.next)<0?b(e,t,e.next)>=0&&b(e,e.prev,t)>=0:b(e,t,e.prev)<0||b(e,e.next,t)<0}function E(e,t){var i=new O(e.i,e.x,e.y),n=new O(t.i,t.x,t.y),r=e.next,o=t.prev;return e.next=t,t.prev=e,i.next=r,r.prev=i,n.next=i,i.prev=n,o.next=n,n.prev=o,n}function x(e,t,i,n){var r=new O(e,t,i);return n?(r.next=n.next,r.prev=n,n.next.prev=r,n.next=r):(r.prev=r,r.next=r),r}function S(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 O(e,t,i){this.i=e,this.x=t,this.y=i,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function I(e,t,i,n){for(var r=0,o=t,s=i-n;o<i;o+=n)r+=(e[s]-e[o])*(e[o+1]+e[s+1]),s=o;return r}o.deviation=function(e,t,i,n){var r=t&&t.length,o=r?t[0]*i:e.length,s=Math.abs(I(e,0,o,i));if(r)for(var a=0,c=t.length;a<c;a++){var u=t[a]*i,l=a<c-1?t[a+1]*i:e.length;s-=Math.abs(I(e,u,l,i))}var h=0;for(a=0;a<n.length;a+=3){var d=n[a]*i,f=n[a+1]*i,p=n[a+2]*i;h+=Math.abs((e[d]-e[p])*(e[f+1]-e[d+1])-(e[d]-e[f])*(e[p+1]-e[d+1]))}return 0===s&&0===h?0:Math.abs((h-s)/s)},o.flatten=function(e){for(var t=e[0][0].length,i={vertices:[],holes:[],dimensions:t},n=0,r=0;r<e.length;r++){for(var o=0;o<e[r].length;o++)for(var s=0;s<t;s++)i.vertices.push(e[r][o][s]);r>0&&(n+=e[r-1].length,i.holes.push(n))}return i},n.default=r},603034:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});var n=(0,i(614955).c)((function(e){e.exports&&(e.exports=function(){var e=3,t=4,i=12,n=13,r=16,o=17;function s(e,t){void 0===t&&(t=0);var i=e.charCodeAt(t);if(55296<=i&&i<=56319&&t<e.length-1){var n=i;return 56320<=(r=e.charCodeAt(t+1))&&r<=57343?1024*(n-55296)+(r-56320)+65536:n}if(56320<=i&&i<=57343&&t>=1){var r=i;return 55296<=(n=e.charCodeAt(t-1))&&n<=56319?1024*(n-55296)+(r-56320)+65536:r}return i}function a(s,a,c){var u=[s].concat(a).concat([c]),l=u[u.length-2],h=c,d=u.lastIndexOf(14);if(d>1&&u.slice(1,d).every((function(t){return t==e}))&&-1==[e,n,o].indexOf(s))return 2;var f=u.lastIndexOf(t);if(f>0&&u.slice(1,f).every((function(e){return e==t}))&&-1==[i,t].indexOf(l))return u.filter((function(e){return e==t})).length%2==1?3:4;if(0==l&&1==h)return 0;if(2==l||0==l||1==l)return 14==h&&a.every((function(t){return t==e}))?2:1;if(2==h||0==h||1==h)return 1;if(6==l&&(6==h||7==h||9==h||10==h))return 0;if(!(9!=l&&7!=l||7!=h&&8!=h))return 0;if((10==l||8==l)&&8==h)return 0;if(h==e||15==h)return 0;if(5==h)return 0;if(l==i)return 0;var p=-1!=u.indexOf(e)?u.lastIndexOf(e)-1:u.length-2;return-1!=[n,o].indexOf(u[p])&&u.slice(p+1,-1).every((function(t){return t==e}))&&14==h||15==l&&-1!=[r,o].indexOf(h)?0:-1!=a.indexOf(t)?2:l==t&&h==t?0:1}function c(s){return 1536<=s&&s<=1541||1757==s||1807==s||2274==s||3406==s||69821==s||70082<=s&&s<=70083||72250==s||72326<=s&&s<=72329||73030==s?i:13==s?0:10==s?1:0<=s&&s<=9||11<=s&&s<=12||14<=s&&s<=31||127<=s&&s<=159||173==s||1564==s||6158==s||8203==s||8206<=s&&s<=8207||8232==s||8233==s||8234<=s&&s<=8238||8288<=s&&s<=8292||8293==s||8294<=s&&s<=8303||55296<=s&&s<=57343||65279==s||65520<=s&&s<=65528||65529<=s&&s<=65531||113824<=s&&s<=113827||119155<=s&&s<=119162||917504==s||917505==s||917506<=s&&s<=917535||917632<=s&&s<=917759||918e3<=s&&s<=921599?2:768<=s&&s<=879||1155<=s&&s<=1159||1160<=s&&s<=1161||1425<=s&&s<=1469||1471==s||1473<=s&&s<=1474||1476<=s&&s<=1477||1479==s||1552<=s&&s<=1562||1611<=s&&s<=1631||1648==s||1750<=s&&s<=1756||1759<=s&&s<=1764||1767<=s&&s<=1768||1770<=s&&s<=1773||1809==s||1840<=s&&s<=1866||1958<=s&&s<=1968||2027<=s&&s<=2035||2070<=s&&s<=2073||2075<=s&&s<=2083||2085<=s&&s<=2087||2089<=s&&s<=2093||2137<=s&&s<=2139||2260<=s&&s<=2273||2275<=s&&s<=2306||2362==s||2364==s||2369<=s&&s<=2376||2381==s||2385<=s&&s<=2391||2402<=s&&s<=2403||2433==s||2492==s||2494==s||2497<=s&&s<=2500||2509==s||2519==s||2530<=s&&s<=2531||2561<=s&&s<=2562||2620==s||2625<=s&&s<=2626||2631<=s&&s<=2632||2635<=s&&s<=2637||2641==s||2672<=s&&s<=2673||2677==s||2689<=s&&s<=2690||2748==s||2753<=s&&s<=2757||2759<=s&&s<=2760||2765==s||2786<=s&&s<=2787||2810<=s&&s<=2815||2817==s||2876==s||2878==s||2879==s||2881<=s&&s<=2884||2893==s||2902==s||2903==s||2914<=s&&s<=2915||2946==s||3006==s||3008==s||3021==s||3031==s||3072==s||3134<=s&&s<=3136||3142<=s&&s<=3144||3146<=s&&s<=3149||3157<=s&&s<=3158||3170<=s&&s<=3171||3201==s||3260==s||3263==s||3266==s||3270==s||3276<=s&&s<=3277||3285<=s&&s<=3286||3298<=s&&s<=3299||3328<=s&&s<=3329||3387<=s&&s<=3388||3390==s||3393<=s&&s<=3396||3405==s||3415==s||3426<=s&&s<=3427||3530==s||3535==s||3538<=s&&s<=3540||3542==s||3551==s||3633==s||3636<=s&&s<=3642||3655<=s&&s<=3662||3761==s||3764<=s&&s<=3769||3771<=s&&s<=3772||3784<=s&&s<=3789||3864<=s&&s<=3865||3893==s||3895==s||3897==s||3953<=s&&s<=3966||3968<=s&&s<=3972||3974<=s&&s<=3975||3981<=s&&s<=3991||3993<=s&&s<=4028||4038==s||4141<=s&&s<=4144||4146<=s&&s<=4151||4153<=s&&s<=4154||4157<=s&&s<=4158||4184<=s&&s<=4185||4190<=s&&s<=4192||4209<=s&&s<=4212||4226==s||4229<=s&&s<=4230||4237==s||4253==s||4957<=s&&s<=4959||5906<=s&&s<=5908||5938<=s&&s<=5940||5970<=s&&s<=5971||6002<=s&&s<=6003||6068<=s&&s<=6069||6071<=s&&s<=6077||6086==s||6089<=s&&s<=6099||6109==s||6155<=s&&s<=6157||6277<=s&&s<=6278||6313==s||6432<=s&&s<=6434||6439<=s&&s<=6440||6450==s||6457<=s&&s<=6459||6679<=s&&s<=6680||6683==s||6742==s||6744<=s&&s<=6750||6752==s||6754==s||6757<=s&&s<=6764||6771<=s&&s<=6780||6783==s||6832<=s&&s<=6845||6846==s||6912<=s&&s<=6915||6964==s||6966<=s&&s<=6970||6972==s||6978==s||7019<=s&&s<=7027||7040<=s&&s<=7041||7074<=s&&s<=7077||7080<=s&&s<=7081||7083<=s&&s<=7085||7142==s||7144<=s&&s<=7145||7149==s||7151<=s&&s<=7153||7212<=s&&s<=7219||7222<=s&&s<=7223||7376<=s&&s<=7378||7380<=s&&s<=7392||7394<=s&&s<=7400||7405==s||7412==s||7416<=s&&s<=7417||7616<=s&&s<=7673||7675<=s&&s<=7679||8204==s||8400<=s&&s<=8412||8413<=s&&s<=8416||8417==s||8418<=s&&s<=8420||8421<=s&&s<=8432||11503<=s&&s<=11505||11647==s||11744<=s&&s<=11775||12330<=s&&s<=12333||12334<=s&&s<=12335||12441<=s&&s<=12442||42607==s||42608<=s&&s<=42610||42612<=s&&s<=42621||42654<=s&&s<=42655||42736<=s&&s<=42737||43010==s||43014==s||43019==s||43045<=s&&s<=43046||43204<=s&&s<=43205||43232<=s&&s<=43249||43302<=s&&s<=43309||43335<=s&&s<=43345||43392<=s&&s<=43394||43443==s||43446<=s&&s<=43449||43452==s||43493==s||43561<=s&&s<=43566||43569<=s&&s<=43570||43573<=s&&s<=43574||43587==s||43596==s||43644==s||43696==s||43698<=s&&s<=43700||43703<=s&&s<=43704||43710<=s&&s<=43711||43713==s||43756<=s&&s<=43757||43766==s||44005==s||44008==s||44013==s||64286==s||65024<=s&&s<=65039||65056<=s&&s<=65071||65438<=s&&s<=65439||66045==s||66272==s||66422<=s&&s<=66426||68097<=s&&s<=68099||68101<=s&&s<=68102||68108<=s&&s<=68111||68152<=s&&s<=68154||68159==s||68325<=s&&s<=68326||69633==s||69688<=s&&s<=69702||69759<=s&&s<=69761||69811<=s&&s<=69814||69817<=s&&s<=69818||69888<=s&&s<=69890||69927<=s&&s<=69931||69933<=s&&s<=69940||70003==s||70016<=s&&s<=70017||70070<=s&&s<=70078||70090<=s&&s<=70092||70191<=s&&s<=70193||70196==s||70198<=s&&s<=70199||70206==s||70367==s||70371<=s&&s<=70378||70400<=s&&s<=70401||70460==s||70462==s||70464==s||70487==s||70502<=s&&s<=70508||70512<=s&&s<=70516||70712<=s&&s<=70719||70722<=s&&s<=70724||70726==s||70832==s||70835<=s&&s<=70840||70842==s||70845==s||70847<=s&&s<=70848||70850<=s&&s<=70851||71087==s||71090<=s&&s<=71093||71100<=s&&s<=71101||71103<=s&&s<=71104||71132<=s&&s<=71133||71219<=s&&s<=71226||71229==s||71231<=s&&s<=71232||71339==s||71341==s||71344<=s&&s<=71349||71351==s||71453<=s&&s<=71455||71458<=s&&s<=71461||71463<=s&&s<=71467||72193<=s&&s<=72198||72201<=s&&s<=72202||72243<=s&&s<=72248||72251<=s&&s<=72254||72263==s||72273<=s&&s<=72278||72281<=s&&s<=72283||72330<=s&&s<=72342||72344<=s&&s<=72345||72752<=s&&s<=72758||72760<=s&&s<=72765||72767==s||72850<=s&&s<=72871||72874<=s&&s<=72880||72882<=s&&s<=72883||72885<=s&&s<=72886||73009<=s&&s<=73014||73018==s||73020<=s&&s<=73021||73023<=s&&s<=73029||73031==s||92912<=s&&s<=92916||92976<=s&&s<=92982||94095<=s&&s<=94098||113821<=s&&s<=113822||119141==s||119143<=s&&s<=119145||119150<=s&&s<=119154||119163<=s&&s<=119170||119173<=s&&s<=119179||119210<=s&&s<=119213||119362<=s&&s<=119364||121344<=s&&s<=121398||121403<=s&&s<=121452||121461==s||121476==s||121499<=s&&s<=121503||121505<=s&&s<=121519||122880<=s&&s<=122886||122888<=s&&s<=122904||122907<=s&&s<=122913||122915<=s&&s<=122916||122918<=s&&s<=122922||125136<=s&&s<=125142||125252<=s&&s<=125258||917536<=s&&s<=917631||917760<=s&&s<=917999?e:127462<=s&&s<=127487?t:2307==s||2363==s||2366<=s&&s<=2368||2377<=s&&s<=2380||2382<=s&&s<=2383||2434<=s&&s<=2435||2495<=s&&s<=2496||2503<=s&&s<=2504||2507<=s&&s<=2508||2563==s||2622<=s&&s<=2624||2691==s||2750<=s&&s<=2752||2761==s||2763<=s&&s<=2764||2818<=s&&s<=2819||2880==s||2887<=s&&s<=2888||2891<=s&&s<=2892||3007==s||3009<=s&&s<=3010||3014<=s&&s<=3016||3018<=s&&s<=3020||3073<=s&&s<=3075||3137<=s&&s<=3140||3202<=s&&s<=3203||3262==s||3264<=s&&s<=3265||3267<=s&&s<=3268||3271<=s&&s<=3272||3274<=s&&s<=3275||3330<=s&&s<=3331||3391<=s&&s<=3392||3398<=s&&s<=3400||3402<=s&&s<=3404||3458<=s&&s<=3459||3536<=s&&s<=3537||3544<=s&&s<=3550||3570<=s&&s<=3571||3635==s||3763==s||3902<=s&&s<=3903||3967==s||4145==s||4155<=s&&s<=4156||4182<=s&&s<=4183||4228==s||6070==s||6078<=s&&s<=6085||6087<=s&&s<=6088||6435<=s&&s<=6438||6441<=s&&s<=6443||6448<=s&&s<=6449||6451<=s&&s<=6456||6681<=s&&s<=6682||6741==s||6743==s||6765<=s&&s<=6770||6916==s||6965==s||6971==s||6973<=s&&s<=6977||6979<=s&&s<=6980||7042==s||7073==s||7078<=s&&s<=7079||7082==s||7143==s||7146<=s&&s<=7148||7150==s||7154<=s&&s<=7155||7204<=s&&s<=7211||7220<=s&&s<=7221||7393==s||7410<=s&&s<=7411||7415==s||43043<=s&&s<=43044||43047==s||43136<=s&&s<=43137||43188<=s&&s<=43203||43346<=s&&s<=43347||43395==s||43444<=s&&s<=43445||43450<=s&&s<=43451||43453<=s&&s<=43456||43567<=s&&s<=43568||43571<=s&&s<=43572||43597==s||43755==s||43758<=s&&s<=43759||43765==s||44003<=s&&s<=44004||44006<=s&&s<=44007||44009<=s&&s<=44010||44012==s||69632==s||69634==s||69762==s||69808<=s&&s<=69810||69815<=s&&s<=69816||69932==s||70018==s||70067<=s&&s<=70069||70079<=s&&s<=70080||70188<=s&&s<=70190||70194<=s&&s<=70195||70197==s||70368<=s&&s<=70370||70402<=s&&s<=70403||70463==s||70465<=s&&s<=70468||70471<=s&&s<=70472||70475<=s&&s<=70477||70498<=s&&s<=70499||70709<=s&&s<=70711||70720<=s&&s<=70721||70725==s||70833<=s&&s<=70834||70841==s||70843<=s&&s<=70844||70846==s||70849==s||71088<=s&&s<=71089||71096<=s&&s<=71099||71102==s||71216<=s&&s<=71218||71227<=s&&s<=71228||71230==s||71340==s||71342<=s&&s<=71343||71350==s||71456<=s&&s<=71457||71462==s||72199<=s&&s<=72200||72249==s||72279<=s&&s<=72280||72343==s||72751==s||72766==s||72873==s||72881==s||72884==s||94033<=s&&s<=94078||119142==s||119149==s?5:4352<=s&&s<=4447||43360<=s&&s<=43388?6:4448<=s&&s<=4519||55216<=s&&s<=55238?7:4520<=s&&s<=4607||55243<=s&&s<=55291?8:44032==s||44060==s||44088==s||44116==s||44144==s||44172==s||44200==s||44228==s||44256==s||44284==s||44312==s||44340==s||44368==s||44396==s||44424==s||44452==s||44480==s||44508==s||44536==s||44564==s||44592==s||44620==s||44648==s||44676==s||44704==s||44732==s||44760==s||44788==s||44816==s||44844==s||44872==s||44900==s||44928==s||44956==s||44984==s||45012==s||45040==s||45068==s||45096==s||45124==s||45152==s||45180==s||45208==s||45236==s||45264==s||45292==s||45320==s||45348==s||45376==s||45404==s||45432==s||45460==s||45488==s||45516==s||45544==s||45572==s||45600==s||45628==s||45656==s||45684==s||45712==s||45740==s||45768==s||45796==s||45824==s||45852==s||45880==s||45908==s||45936==s||45964==s||45992==s||46020==s||46048==s||46076==s||46104==s||46132==s||46160==s||46188==s||46216==s||46244==s||46272==s||46300==s||46328==s||46356==s||46384==s||46412==s||46440==s||46468==s||46496==s||46524==s||46552==s||46580==s||46608==s||46636==s||46664==s||46692==s||46720==s||46748==s||46776==s||46804==s||46832==s||46860==s||46888==s||46916==s||46944==s||46972==s||47e3==s||47028==s||47056==s||47084==s||47112==s||47140==s||47168==s||47196==s||47224==s||47252==s||47280==s||47308==s||47336==s||47364==s||47392==s||47420==s||47448==s||47476==s||47504==s||47532==s||47560==s||47588==s||47616==s||47644==s||47672==s||47700==s||47728==s||47756==s||47784==s||47812==s||47840==s||47868==s||47896==s||47924==s||47952==s||47980==s||48008==s||48036==s||48064==s||48092==s||48120==s||48148==s||48176==s||48204==s||48232==s||48260==s||48288==s||48316==s||48344==s||48372==s||48400==s||48428==s||48456==s||48484==s||48512==s||48540==s||48568==s||48596==s||48624==s||48652==s||48680==s||48708==s||48736==s||48764==s||48792==s||48820==s||48848==s||48876==s||48904==s||48932==s||48960==s||48988==s||49016==s||49044==s||49072==s||49100==s||49128==s||49156==s||49184==s||49212==s||49240==s||49268==s||49296==s||49324==s||49352==s||49380==s||49408==s||49436==s||49464==s||49492==s||49520==s||49548==s||49576==s||49604==s||49632==s||49660==s||49688==s||49716==s||49744==s||49772==s||49800==s||49828==s||49856==s||49884==s||49912==s||49940==s||49968==s||49996==s||50024==s||50052==s||50080==s||50108==s||50136==s||50164==s||50192==s||50220==s||50248==s||50276==s||50304==s||50332==s||50360==s||50388==s||50416==s||50444==s||50472==s||50500==s||50528==s||50556==s||50584==s||50612==s||50640==s||50668==s||50696==s||50724==s||50752==s||50780==s||50808==s||50836==s||50864==s||50892==s||50920==s||50948==s||50976==s||51004==s||51032==s||51060==s||51088==s||51116==s||51144==s||51172==s||51200==s||51228==s||51256==s||51284==s||51312==s||51340==s||51368==s||51396==s||51424==s||51452==s||51480==s||51508==s||51536==s||51564==s||51592==s||51620==s||51648==s||51676==s||51704==s||51732==s||51760==s||51788==s||51816==s||51844==s||51872==s||51900==s||51928==s||51956==s||51984==s||52012==s||52040==s||52068==s||52096==s||52124==s||52152==s||52180==s||52208==s||52236==s||52264==s||52292==s||52320==s||52348==s||52376==s||52404==s||52432==s||52460==s||52488==s||52516==s||52544==s||52572==s||52600==s||52628==s||52656==s||52684==s||52712==s||52740==s||52768==s||52796==s||52824==s||52852==s||52880==s||52908==s||52936==s||52964==s||52992==s||53020==s||53048==s||53076==s||53104==s||53132==s||53160==s||53188==s||53216==s||53244==s||53272==s||53300==s||53328==s||53356==s||53384==s||53412==s||53440==s||53468==s||53496==s||53524==s||53552==s||53580==s||53608==s||53636==s||53664==s||53692==s||53720==s||53748==s||53776==s||53804==s||53832==s||53860==s||53888==s||53916==s||53944==s||53972==s||54e3==s||54028==s||54056==s||54084==s||54112==s||54140==s||54168==s||54196==s||54224==s||54252==s||54280==s||54308==s||54336==s||54364==s||54392==s||54420==s||54448==s||54476==s||54504==s||54532==s||54560==s||54588==s||54616==s||54644==s||54672==s||54700==s||54728==s||54756==s||54784==s||54812==s||54840==s||54868==s||54896==s||54924==s||54952==s||54980==s||55008==s||55036==s||55064==s||55092==s||55120==s||55148==s||55176==s?9:44033<=s&&s<=44059||44061<=s&&s<=44087||44089<=s&&s<=44115||44117<=s&&s<=44143||44145<=s&&s<=44171||44173<=s&&s<=44199||44201<=s&&s<=44227||44229<=s&&s<=44255||44257<=s&&s<=44283||44285<=s&&s<=44311||44313<=s&&s<=44339||44341<=s&&s<=44367||44369<=s&&s<=44395||44397<=s&&s<=44423||44425<=s&&s<=44451||44453<=s&&s<=44479||44481<=s&&s<=44507||44509<=s&&s<=44535||44537<=s&&s<=44563||44565<=s&&s<=44591||44593<=s&&s<=44619||44621<=s&&s<=44647||44649<=s&&s<=44675||44677<=s&&s<=44703||44705<=s&&s<=44731||44733<=s&&s<=44759||44761<=s&&s<=44787||44789<=s&&s<=44815||44817<=s&&s<=44843||44845<=s&&s<=44871||44873<=s&&s<=44899||44901<=s&&s<=44927||44929<=s&&s<=44955||44957<=s&&s<=44983||44985<=s&&s<=45011||45013<=s&&s<=45039||45041<=s&&s<=45067||45069<=s&&s<=45095||45097<=s&&s<=45123||45125<=s&&s<=45151||45153<=s&&s<=45179||45181<=s&&s<=45207||45209<=s&&s<=45235||45237<=s&&s<=45263||45265<=s&&s<=45291||45293<=s&&s<=45319||45321<=s&&s<=45347||45349<=s&&s<=45375||45377<=s&&s<=45403||45405<=s&&s<=45431||45433<=s&&s<=45459||45461<=s&&s<=45487||45489<=s&&s<=45515||45517<=s&&s<=45543||45545<=s&&s<=45571||45573<=s&&s<=45599||45601<=s&&s<=45627||45629<=s&&s<=45655||45657<=s&&s<=45683||45685<=s&&s<=45711||45713<=s&&s<=45739||45741<=s&&s<=45767||45769<=s&&s<=45795||45797<=s&&s<=45823||45825<=s&&s<=45851||45853<=s&&s<=45879||45881<=s&&s<=45907||45909<=s&&s<=45935||45937<=s&&s<=45963||45965<=s&&s<=45991||45993<=s&&s<=46019||46021<=s&&s<=46047||46049<=s&&s<=46075||46077<=s&&s<=46103||46105<=s&&s<=46131||46133<=s&&s<=46159||46161<=s&&s<=46187||46189<=s&&s<=46215||46217<=s&&s<=46243||46245<=s&&s<=46271||46273<=s&&s<=46299||46301<=s&&s<=46327||46329<=s&&s<=46355||46357<=s&&s<=46383||46385<=s&&s<=46411||46413<=s&&s<=46439||46441<=s&&s<=46467||46469<=s&&s<=46495||46497<=s&&s<=46523||46525<=s&&s<=46551||46553<=s&&s<=46579||46581<=s&&s<=46607||46609<=s&&s<=46635||46637<=s&&s<=46663||46665<=s&&s<=46691||46693<=s&&s<=46719||46721<=s&&s<=46747||46749<=s&&s<=46775||46777<=s&&s<=46803||46805<=s&&s<=46831||46833<=s&&s<=46859||46861<=s&&s<=46887||46889<=s&&s<=46915||46917<=s&&s<=46943||46945<=s&&s<=46971||46973<=s&&s<=46999||47001<=s&&s<=47027||47029<=s&&s<=47055||47057<=s&&s<=47083||47085<=s&&s<=47111||47113<=s&&s<=47139||47141<=s&&s<=47167||47169<=s&&s<=47195||47197<=s&&s<=47223||47225<=s&&s<=47251||47253<=s&&s<=47279||47281<=s&&s<=47307||47309<=s&&s<=47335||47337<=s&&s<=47363||47365<=s&&s<=47391||47393<=s&&s<=47419||47421<=s&&s<=47447||47449<=s&&s<=47475||47477<=s&&s<=47503||47505<=s&&s<=47531||47533<=s&&s<=47559||47561<=s&&s<=47587||47589<=s&&s<=47615||47617<=s&&s<=47643||47645<=s&&s<=47671||47673<=s&&s<=47699||47701<=s&&s<=47727||47729<=s&&s<=47755||47757<=s&&s<=47783||47785<=s&&s<=47811||47813<=s&&s<=47839||47841<=s&&s<=47867||47869<=s&&s<=47895||47897<=s&&s<=47923||47925<=s&&s<=47951||47953<=s&&s<=47979||47981<=s&&s<=48007||48009<=s&&s<=48035||48037<=s&&s<=48063||48065<=s&&s<=48091||48093<=s&&s<=48119||48121<=s&&s<=48147||48149<=s&&s<=48175||48177<=s&&s<=48203||48205<=s&&s<=48231||48233<=s&&s<=48259||48261<=s&&s<=48287||48289<=s&&s<=48315||48317<=s&&s<=48343||48345<=s&&s<=48371||48373<=s&&s<=48399||48401<=s&&s<=48427||48429<=s&&s<=48455||48457<=s&&s<=48483||48485<=s&&s<=48511||48513<=s&&s<=48539||48541<=s&&s<=48567||48569<=s&&s<=48595||48597<=s&&s<=48623||48625<=s&&s<=48651||48653<=s&&s<=48679||48681<=s&&s<=48707||48709<=s&&s<=48735||48737<=s&&s<=48763||48765<=s&&s<=48791||48793<=s&&s<=48819||48821<=s&&s<=48847||48849<=s&&s<=48875||48877<=s&&s<=48903||48905<=s&&s<=48931||48933<=s&&s<=48959||48961<=s&&s<=48987||48989<=s&&s<=49015||49017<=s&&s<=49043||49045<=s&&s<=49071||49073<=s&&s<=49099||49101<=s&&s<=49127||49129<=s&&s<=49155||49157<=s&&s<=49183||49185<=s&&s<=49211||49213<=s&&s<=49239||49241<=s&&s<=49267||49269<=s&&s<=49295||49297<=s&&s<=49323||49325<=s&&s<=49351||49353<=s&&s<=49379||49381<=s&&s<=49407||49409<=s&&s<=49435||49437<=s&&s<=49463||49465<=s&&s<=49491||49493<=s&&s<=49519||49521<=s&&s<=49547||49549<=s&&s<=49575||49577<=s&&s<=49603||49605<=s&&s<=49631||49633<=s&&s<=49659||49661<=s&&s<=49687||49689<=s&&s<=49715||49717<=s&&s<=49743||49745<=s&&s<=49771||49773<=s&&s<=49799||49801<=s&&s<=49827||49829<=s&&s<=49855||49857<=s&&s<=49883||49885<=s&&s<=49911||49913<=s&&s<=49939||49941<=s&&s<=49967||49969<=s&&s<=49995||49997<=s&&s<=50023||50025<=s&&s<=50051||50053<=s&&s<=50079||50081<=s&&s<=50107||50109<=s&&s<=50135||50137<=s&&s<=50163||50165<=s&&s<=50191||50193<=s&&s<=50219||50221<=s&&s<=50247||50249<=s&&s<=50275||50277<=s&&s<=50303||50305<=s&&s<=50331||50333<=s&&s<=50359||50361<=s&&s<=50387||50389<=s&&s<=50415||50417<=s&&s<=50443||50445<=s&&s<=50471||50473<=s&&s<=50499||50501<=s&&s<=50527||50529<=s&&s<=50555||50557<=s&&s<=50583||50585<=s&&s<=50611||50613<=s&&s<=50639||50641<=s&&s<=50667||50669<=s&&s<=50695||50697<=s&&s<=50723||50725<=s&&s<=50751||50753<=s&&s<=50779||50781<=s&&s<=50807||50809<=s&&s<=50835||50837<=s&&s<=50863||50865<=s&&s<=50891||50893<=s&&s<=50919||50921<=s&&s<=50947||50949<=s&&s<=50975||50977<=s&&s<=51003||51005<=s&&s<=51031||51033<=s&&s<=51059||51061<=s&&s<=51087||51089<=s&&s<=51115||51117<=s&&s<=51143||51145<=s&&s<=51171||51173<=s&&s<=51199||51201<=s&&s<=51227||51229<=s&&s<=51255||51257<=s&&s<=51283||51285<=s&&s<=51311||51313<=s&&s<=51339||51341<=s&&s<=51367||51369<=s&&s<=51395||51397<=s&&s<=51423||51425<=s&&s<=51451||51453<=s&&s<=51479||51481<=s&&s<=51507||51509<=s&&s<=51535||51537<=s&&s<=51563||51565<=s&&s<=51591||51593<=s&&s<=51619||51621<=s&&s<=51647||51649<=s&&s<=51675||51677<=s&&s<=51703||51705<=s&&s<=51731||51733<=s&&s<=51759||51761<=s&&s<=51787||51789<=s&&s<=51815||51817<=s&&s<=51843||51845<=s&&s<=51871||51873<=s&&s<=51899||51901<=s&&s<=51927||51929<=s&&s<=51955||51957<=s&&s<=51983||51985<=s&&s<=52011||52013<=s&&s<=52039||52041<=s&&s<=52067||52069<=s&&s<=52095||52097<=s&&s<=52123||52125<=s&&s<=52151||52153<=s&&s<=52179||52181<=s&&s<=52207||52209<=s&&s<=52235||52237<=s&&s<=52263||52265<=s&&s<=52291||52293<=s&&s<=52319||52321<=s&&s<=52347||52349<=s&&s<=52375||52377<=s&&s<=52403||52405<=s&&s<=52431||52433<=s&&s<=52459||52461<=s&&s<=52487||52489<=s&&s<=52515||52517<=s&&s<=52543||52545<=s&&s<=52571||52573<=s&&s<=52599||52601<=s&&s<=52627||52629<=s&&s<=52655||52657<=s&&s<=52683||52685<=s&&s<=52711||52713<=s&&s<=52739||52741<=s&&s<=52767||52769<=s&&s<=52795||52797<=s&&s<=52823||52825<=s&&s<=52851||52853<=s&&s<=52879||52881<=s&&s<=52907||52909<=s&&s<=52935||52937<=s&&s<=52963||52965<=s&&s<=52991||52993<=s&&s<=53019||53021<=s&&s<=53047||53049<=s&&s<=53075||53077<=s&&s<=53103||53105<=s&&s<=53131||53133<=s&&s<=53159||53161<=s&&s<=53187||53189<=s&&s<=53215||53217<=s&&s<=53243||53245<=s&&s<=53271||53273<=s&&s<=53299||53301<=s&&s<=53327||53329<=s&&s<=53355||53357<=s&&s<=53383||53385<=s&&s<=53411||53413<=s&&s<=53439||53441<=s&&s<=53467||53469<=s&&s<=53495||53497<=s&&s<=53523||53525<=s&&s<=53551||53553<=s&&s<=53579||53581<=s&&s<=53607||53609<=s&&s<=53635||53637<=s&&s<=53663||53665<=s&&s<=53691||53693<=s&&s<=53719||53721<=s&&s<=53747||53749<=s&&s<=53775||53777<=s&&s<=53803||53805<=s&&s<=53831||53833<=s&&s<=53859||53861<=s&&s<=53887||53889<=s&&s<=53915||53917<=s&&s<=53943||53945<=s&&s<=53971||53973<=s&&s<=53999||54001<=s&&s<=54027||54029<=s&&s<=54055||54057<=s&&s<=54083||54085<=s&&s<=54111||54113<=s&&s<=54139||54141<=s&&s<=54167||54169<=s&&s<=54195||54197<=s&&s<=54223||54225<=s&&s<=54251||54253<=s&&s<=54279||54281<=s&&s<=54307||54309<=s&&s<=54335||54337<=s&&s<=54363||54365<=s&&s<=54391||54393<=s&&s<=54419||54421<=s&&s<=54447||54449<=s&&s<=54475||54477<=s&&s<=54503||54505<=s&&s<=54531||54533<=s&&s<=54559||54561<=s&&s<=54587||54589<=s&&s<=54615||54617<=s&&s<=54643||54645<=s&&s<=54671||54673<=s&&s<=54699||54701<=s&&s<=54727||54729<=s&&s<=54755||54757<=s&&s<=54783||54785<=s&&s<=54811||54813<=s&&s<=54839||54841<=s&&s<=54867||54869<=s&&s<=54895||54897<=s&&s<=54923||54925<=s&&s<=54951||54953<=s&&s<=54979||54981<=s&&s<=55007||55009<=s&&s<=55035||55037<=s&&s<=55063||55065<=s&&s<=55091||55093<=s&&s<=55119||55121<=s&&s<=55147||55149<=s&&s<=55175||55177<=s&&s<=55203?10:9757==s||9977==s||9994<=s&&s<=9997||127877==s||127938<=s&&s<=127940||127943==s||127946<=s&&s<=127948||128066<=s&&s<=128067||128070<=s&&s<=128080||128110==s||128112<=s&&s<=128120||128124==s||128129<=s&&s<=128131||128133<=s&&s<=128135||128170==s||128372<=s&&s<=128373||128378==s||128400==s||128405<=s&&s<=128406||128581<=s&&s<=128583||128587<=s&&s<=128591||128675==s||128692<=s&&s<=128694||128704==s||128716==s||129304<=s&&s<=129308||129310<=s&&s<=129311||129318==s||129328<=s&&s<=129337||129341<=s&&s<=129342||129489<=s&&s<=129501?n:127995<=s&&s<=127999?14:8205==s?15:9792==s||9794==s||9877<=s&&s<=9878||9992==s||10084==s||127752==s||127806==s||127859==s||127891==s||127908==s||127912==s||127979==s||127981==s||128139==s||128187<=s&&s<=128188||128295==s||128300==s||128488==s||128640==s||128658==s?r:128102<=s&&s<=128105?o:11}return this.nextBreak=function(e,t){if(void 0===t&&(t=0),t<0)return 0;if(t>=e.length-1)return e.length;for(var i,n,r=c(s(e,t)),o=[],u=t+1;u<e.length;u++)if(n=u-1,!(55296<=(i=e).charCodeAt(n)&&i.charCodeAt(n)<=56319&&56320<=i.charCodeAt(n+1)&&i.charCodeAt(n+1)<=57343)){var l=c(s(e,u));if(a(r,o,l))return u;o.push(l)}return e.length},this.splitGraphemes=function(e){for(var t,i=[],n=0;(t=this.nextBreak(e,n))<e.length;)i.push(e.slice(n,t)),n=t;return n<e.length&&i.push(e.slice(n)),i},this.iterateGraphemes=function(e){var t=0,i={next:function(){var i,n;return(n=this.nextBreak(e,t))<e.length?(i=e.slice(t,n),t=n,{value:i,done:!1}):t<e.length?(i=e.slice(t),t=e.length,{value:i,done:!1}):{value:void 0,done:!0}}.bind(this)};return"undefined"!=typeof Symbol&&Symbol.iterator&&(i[Symbol.iterator]=function(){return i}),i},this.countGraphemes=function(e){for(var t,i=0,n=0;(t=this.nextBreak(e,n))<e.length;)n=t,i++;return n<e.length&&i++,i},this})}))},455280:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});var n=(0,i(614955).c)((function(e,t){!function(i){var n="Compound",r="MemberExpression",o="Literal",s=function(e,t){var i=new Error(e+" at character "+t);throw i.index=t,i.description=e,i},a=!0,c={"-":a,"!":a,"~":a,"+":a},u={"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10},l=function(e){var t,i=0;for(var n in e)(t=n.length)>i&&e.hasOwnProperty(n)&&(i=t);return i},h=l(c),d=l(u),f={true:!0,false:!1,null:null},p=function(e){return u[e]||0},m=function(e,t,i){return{type:"||"===e||"&&"===e?"LogicalExpression":"BinaryExpression",operator:e,left:t,right:i}},_=function(e){return e>=48&&e<=57},Z=function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=128&&!u[String.fromCharCode(e)]},g=function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e>=128&&!u[String.fromCharCode(e)]},y=function(e){for(var t,i,a=0,l=e.charAt,y=e.charCodeAt,b=function(t){return l.call(e,t)},A=function(t){return y.call(e,t)},w=e.length,v=function(){for(var e=A(a);32===e||9===e||10===e||13===e;)e=A(++a)},T=function(){var e,t,i=E();return v(),63!==A(a)?i:(a++,(e=T())||s("Expected expression",a),v(),58===A(a)?(a++,(t=T())||s("Expected expression",a),{type:"ConditionalExpression",test:i,consequent:e,alternate:t}):void s("Expected :",a))},C=function(){v();for(var t=e.substr(a,d),i=t.length;i>0;){if(u.hasOwnProperty(t)&&(!Z(A(a))||a+t.length<e.length&&!g(A(a+t.length))))return a+=i,t;t=t.substr(0,--i)}return!1},E=function(){var e,t,i,n,r,o,c,u,l;if(o=x(),!(t=C()))return o;for(r={value:t,prec:p(t)},(c=x())||s("Expected expression after "+t,a),n=[o,r,c];(t=C())&&0!==(i=p(t));){for(r={value:t,prec:i},l=t;n.length>2&&i<=n[n.length-2].prec;)c=n.pop(),t=n.pop().value,o=n.pop(),e=m(t,o,c),n.push(e);(e=x())||s("Expected expression after "+l,a),n.push(r,e)}for(e=n[u=n.length-1];u>1;)e=m(n[u-1].value,n[u-2],e),u-=2;return e},x=function(){var t,i,n;if(v(),t=A(a),_(t)||46===t)return S();if(39===t||34===t)return O();if(91===t)return B();for(n=(i=e.substr(a,h)).length;n>0;){if(c.hasOwnProperty(i)&&(!Z(A(a))||a+i.length<e.length&&!g(A(a+i.length))))return a+=n,{type:"UnaryExpression",operator:i,argument:x(),prefix:!0};i=i.substr(0,--n)}return!(!Z(t)&&40!==t)&&P()},S=function(){for(var e,t,i="";_(A(a));)i+=b(a++);if(46===A(a))for(i+=b(a++);_(A(a));)i+=b(a++);if("e"===(e=b(a))||"E"===e){for(i+=b(a++),"+"!==(e=b(a))&&"-"!==e||(i+=b(a++));_(A(a));)i+=b(a++);_(A(a-1))||s("Expected exponent ("+i+b(a)+")",a)}return t=A(a),Z(t)?s("Variable names cannot start with a number ("+i+b(a)+")",a):46===t&&s("Unexpected period",a),{type:o,value:parseFloat(i),raw:i}},O=function(){for(var e,t="",i=b(a++),n=!1;a<w;){if((e=b(a++))===i){n=!0;break}if("\\"===e)switch(e=b(a++)){case"n":t+="\n";break;case"r":t+="\r";break;case"t":t+="\t";break;case"b":t+="\b";break;case"f":t+="\f";break;case"v":t+="\v";break;default:t+=e}else t+=e}return n||s('Unclosed quote after "'+t+'"',a),{type:o,value:t,raw:i+t+i}},I=function(){var t,i=A(a),n=a;for(Z(i)?a++:s("Unexpected "+b(a),a);a<w&&(i=A(a),g(i));)a++;return t=e.slice(n,a),f.hasOwnProperty(t)?{type:o,value:f[t],raw:t}:"this"===t?{type:"ThisExpression"}:{type:"Identifier",name:t}},D=function(e){for(var t,i,r=[],o=!1,c=0;a<w;){if(v(),(t=A(a))===e){o=!0,a++,41===e&&c&&c>=r.length&&s("Unexpected token "+String.fromCharCode(e),a);break}if(44===t){if(a++,++c!==r.length)if(41===e)s("Unexpected token ,",a);else if(93===e)for(var u=r.length;u<c;u++)r.push(null)}else(i=T())&&i.type!==n||s("Expected comma",a),r.push(i)}return o||s("Expected "+String.fromCharCode(e),a),r},P=function(){var e,t;for(t=40===(e=A(a))?R():I(),v(),e=A(a);46===e||91===e||40===e;)a++,46===e?(v(),t={type:r,computed:!1,object:t,property:I()}):91===e?(t={type:r,computed:!0,object:t,property:T()},v(),93!==(e=A(a))&&s("Unclosed [",a),a++):40===e&&(t={type:"CallExpression",arguments:D(41),callee:t}),v(),e=A(a);return t},R=function(){a++;var e=T();if(v(),41===A(a))return a++,e;s("Unclosed (",a)},B=function(){return a++,{type:"ArrayExpression",elements:D(93)}},M=[];a<w;)59===(t=A(a))||44===t?a++:(i=T())?M.push(i):a<w&&s('Unexpected "'+b(a)+'"',a);return 1===M.length?M[0]:{type:n,body:M}};y.version="0.3.5",y.toString=function(){return"JavaScript Expression Parser (JSEP) v"+y.version},y.addUnaryOp=function(e){return h=Math.max(e.length,h),c[e]=a,this},y.addBinaryOp=function(e,t){return d=Math.max(e.length,d),u[e]=t,this},y.addLiteral=function(e,t){return f[e]=t,this},y.removeUnaryOp=function(e){return delete c[e],e.length===h&&(h=l(c)),this},y.removeAllUnaryOps=function(){return c={},h=0,this},y.removeBinaryOp=function(e){return delete u[e],e.length===d&&(d=l(u)),this},y.removeAllBinaryOps=function(){return u={},d=0,this},y.removeLiteral=function(e){return delete f[e],this},y.removeAllLiterals=function(){return f={},this},e.exports?t=e.exports=y:t.parse=y}()}))},787222:(e,t,i)=>{"use strict";var n;i.d(t,{Z:()=>o}),"undefined"!=typeof ko&&(n=ko),function(e){var t=this||(0,eval)("this"),i=t.document,n=t.navigator,r=t.jQuery,o=t.JSON;r||"undefined"==typeof jQuery||(r=jQuery),function(e){e(t.ko={})}((function(s,a){function c(e,t){return(null===e||typeof e in A)&&e===t}function u(t,i){var n;return function(){n||(n=b.a.setTimeout((function(){n=e,t()}),i))}}function l(e,t){var i;return function(){clearTimeout(i),i=b.a.setTimeout(e,t)}}function h(e,t){t&&"change"!==t?"beforeChange"===t?this.pc(e):this.gb(e,t):this.qc(e)}function d(e,t){null!==t&&t.s&&t.s()}function f(e,t){var i=this.qd,n=i[E];n.ra||(this.Qb&&this.mb[t]?(i.uc(t,e,this.mb[t]),this.mb[t]=null,--this.Qb):n.I[t]||i.uc(t,e,n.J?{da:e}:i.$c(e)),e.Ja&&e.gd())}var p,m,_,Z,g,y,b=void 0!==s?s:{};b.b=function(e,t){for(var i=e.split("."),n=b,r=0;r<i.length-1;r++)n=n[i[r]];n[i[i.length-1]]=t},b.L=function(e,t,i){e[t]=i},b.version="3.5.1",b.b("version",b.version),b.options={deferUpdates:!1,useOnlyNativeEvents:!1,foreachHidesDestroyed:!1},b.a=function(){function s(e,t){for(var i in e)l.call(e,i)&&t(i,e[i])}function a(e,t){if(t)for(var i in t)l.call(t,i)&&(e[i]=t[i]);return e}function c(e,t){return e.__proto__=t,e}function u(e,t,i,n){var r=e[t].match(g)||[];b.a.D(i.match(g),(function(e){b.a.Na(r,e,n)})),e[t]=r.join(" ")}var l=Object.prototype.hasOwnProperty,h={__proto__:[]}instanceof Array,d="function"==typeof Symbol,f={},p={};f[n&&/Firefox\/2/i.test(n.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"],f.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" "),s(f,(function(e,t){if(t.length)for(var i=0,n=t.length;i<n;i++)p[t[i]]=e}));var m,_={propertychange:!0},Z=i&&function(){for(var t=3,n=i.createElement("div"),r=n.getElementsByTagName("i");n.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e",r[0];);return 4<t?t:e}(),g=/\S+/g;return{Jc:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],D:function(e,t,i){for(var n=0,r=e.length;n<r;n++)t.call(i,e[n],n,e)},A:"function"==typeof Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t)}:function(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},Lb:function(t,i,n){for(var r=0,o=t.length;r<o;r++)if(i.call(n,t[r],r,t))return t[r];return e},Pa:function(e,t){var i=b.a.A(e,t);0<i?e.splice(i,1):0===i&&e.shift()},wc:function(e){var t=[];return e&&b.a.D(e,(function(e){0>b.a.A(t,e)&&t.push(e)})),t},Mb:function(e,t,i){var n=[];if(e)for(var r=0,o=e.length;r<o;r++)n.push(t.call(i,e[r],r));return n},jb:function(e,t,i){var n=[];if(e)for(var r=0,o=e.length;r<o;r++)t.call(i,e[r],r)&&n.push(e[r]);return n},Nb:function(e,t){if(t instanceof Array)e.push.apply(e,t);else for(var i=0,n=t.length;i<n;i++)e.push(t[i]);return e},Na:function(e,t,i){var n=b.a.A(b.a.bc(e),t);0>n?i&&e.push(t):i||e.splice(n,1)},Ba:h,extend:a,setPrototypeOf:c,Ab:h?c:a,P:s,Ga:function(e,t,i){if(!e)return e;var n,r={};for(n in e)l.call(e,n)&&(r[n]=t.call(i,e[n],n,e));return r},Tb:function(e){for(;e.firstChild;)b.removeNode(e.firstChild)},Yb:function(e){for(var t=((e=b.a.la(e))[0]&&e[0].ownerDocument||i).createElement("div"),n=0,r=e.length;n<r;n++)t.appendChild(b.oa(e[n]));return t},Ca:function(e,t){for(var i=0,n=e.length,r=[];i<n;i++){var o=e[i].cloneNode(!0);r.push(t?b.oa(o):o)}return r},va:function(e,t){if(b.a.Tb(e),t)for(var i=0,n=t.length;i<n;i++)e.appendChild(t[i])},Xc:function(e,t){var i=e.nodeType?[e]:e;if(0<i.length){for(var n=i[0],r=n.parentNode,o=0,s=t.length;o<s;o++)r.insertBefore(t[o],n);for(o=0,s=i.length;o<s;o++)b.removeNode(i[o])}},Ua:function(e,t){if(e.length){for(t=8===t.nodeType&&t.parentNode||t;e.length&&e[0].parentNode!==t;)e.splice(0,1);for(;1<e.length&&e[e.length-1].parentNode!==t;)e.length--;if(1<e.length){var i=e[0],n=e[e.length-1];for(e.length=0;i!==n;)e.push(i),i=i.nextSibling;e.push(n)}}return e},Zc:function(e,t){7>Z?e.setAttribute("selected",t):e.selected=t},Db:function(t){return null===t||t===e?"":t.trim?t.trim():t.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ud:function(e,t){return e=e||"",!(t.length>e.length)&&e.substring(0,t.length)===t},vd:function(e,t){if(e===t)return!0;if(11===e.nodeType)return!1;if(t.contains)return t.contains(1!==e.nodeType?e.parentNode:e);if(t.compareDocumentPosition)return 16==(16&t.compareDocumentPosition(e));for(;e&&e!=t;)e=e.parentNode;return!!e},Sb:function(e){return b.a.vd(e,e.ownerDocument.documentElement)},kd:function(e){return!!b.a.Lb(e,b.a.Sb)},R:function(e){return e&&e.tagName&&e.tagName.toLowerCase()},Ac:function(e){return b.onError?function(){try{return e.apply(this,arguments)}catch(e){throw b.onError&&b.onError(e),e}}:e},setTimeout:function(e,t){return setTimeout(b.a.Ac(e),t)},Gc:function(e){setTimeout((function(){throw b.onError&&b.onError(e),e}),0)},B:function(e,t,i){var n=b.a.Ac(i);if(i=_[t],b.options.useOnlyNativeEvents||i||!r)if(i||"function"!=typeof e.addEventListener){if(void 0===e.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");var o=function(t){n.call(e,t)},s="on"+t;e.attachEvent(s,o),b.a.K.za(e,(function(){e.detachEvent(s,o)}))}else e.addEventListener(t,n,!1);else m||(m="function"==typeof r(e).on?"on":"bind"),r(e)[m](t,n)},Fb:function(e,n){if(!e||!e.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var o;if(o=!("input"!==b.a.R(e)||!e.type||"click"!=n.toLowerCase()||"checkbox"!=(o=e.type)&&"radio"!=o),b.options.useOnlyNativeEvents||!r||o)if("function"==typeof i.createEvent){if("function"!=typeof e.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");(o=i.createEvent(p[n]||"HTMLEvents")).initEvent(n,!0,!0,t,0,0,0,0,0,!1,!1,!1,!1,0,e),e.dispatchEvent(o)}else if(o&&e.click)e.click();else{if(void 0===e.fireEvent)throw Error("Browser doesn't support triggering events");e.fireEvent("on"+n)}else r(e).trigger(n)},f:function(e){return b.O(e)?e():e},bc:function(e){return b.O(e)?e.v():e},Eb:function(e,t,i){var n;t&&("object"==typeof e.classList?(n=e.classList[i?"add":"remove"],b.a.D(t.match(g),(function(t){n.call(e.classList,t)}))):"string"==typeof e.className.baseVal?u(e.className,"baseVal",t,i):u(e,"className",t,i))},Bb:function(t,i){var n=b.a.f(i);null!==n&&n!==e||(n="");var r=b.h.firstChild(t);!r||3!=r.nodeType||b.h.nextSibling(r)?b.h.va(t,[t.ownerDocument.createTextNode(n)]):r.data=n,b.a.Ad(t)},Yc:function(e,t){if(e.name=t,7>=Z)try{var n=e.name.replace(/[&<>'"]/g,(function(e){return"&#"+e.charCodeAt(0)+";"}));e.mergeAttributes(i.createElement("<input name='"+n+"'/>"),!1)}catch(e){}},Ad:function(e){9<=Z&&(e=1==e.nodeType?e:e.parentNode).style&&(e.style.zoom=e.style.zoom)},wd:function(e){if(Z){var t=e.style.width;e.style.width=0,e.style.width=t}},Pd:function(e,t){e=b.a.f(e),t=b.a.f(t);for(var i=[],n=e;n<=t;n++)i.push(n);return i},la:function(e){for(var t=[],i=0,n=e.length;i<n;i++)t.push(e[i]);return t},Da:function(e){return d?Symbol(e):e},Zd:6===Z,$d:7===Z,W:Z,Lc:function(e,t){for(var i=b.a.la(e.getElementsByTagName("input")).concat(b.a.la(e.getElementsByTagName("textarea"))),n="string"==typeof t?function(e){return e.name===t}:function(e){return t.test(e.name)},r=[],o=i.length-1;0<=o;o--)n(i[o])&&r.push(i[o]);return r},Nd:function(e){return"string"==typeof e&&(e=b.a.Db(e))?o&&o.parse?o.parse(e):new Function("return "+e)():null},hc:function(e,t,i){if(!o||!o.stringify)throw Error("Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js");return o.stringify(b.a.f(e),t,i)},Od:function(e,t,n){var r=(n=n||{}).params||{},o=n.includeFields||this.Jc,a=e;if("object"==typeof e&&"form"===b.a.R(e)){a=e.action;for(var c=o.length-1;0<=c;c--)for(var u=b.a.Lc(e,o[c]),l=u.length-1;0<=l;l--)r[u[l].name]=u[l].value}t=b.a.f(t);var h=i.createElement("form");for(var d in h.style.display="none",h.action=a,h.method="post",t)(e=i.createElement("input")).type="hidden",e.name=d,e.value=b.a.hc(b.a.f(t[d])),h.appendChild(e);s(r,(function(e,t){var n=i.createElement("input");n.type="hidden",n.name=e,n.value=t,h.appendChild(n)})),i.body.appendChild(h),n.submitter?n.submitter(h):h.submit(),setTimeout((function(){h.parentNode.removeChild(h)}),0)}}}(),b.b("utils",b.a),b.b("utils.arrayForEach",b.a.D),b.b("utils.arrayFirst",b.a.Lb),b.b("utils.arrayFilter",b.a.jb),b.b("utils.arrayGetDistinctValues",b.a.wc),b.b("utils.arrayIndexOf",b.a.A),b.b("utils.arrayMap",b.a.Mb),b.b("utils.arrayPushAll",b.a.Nb),b.b("utils.arrayRemoveItem",b.a.Pa),b.b("utils.cloneNodes",b.a.Ca),b.b("utils.createSymbolOrString",b.a.Da),b.b("utils.extend",b.a.extend),b.b("utils.fieldsIncludedWithJsonPost",b.a.Jc),b.b("utils.getFormFields",b.a.Lc),b.b("utils.objectMap",b.a.Ga),b.b("utils.peekObservable",b.a.bc),b.b("utils.postJson",b.a.Od),b.b("utils.parseJson",b.a.Nd),b.b("utils.registerEventHandler",b.a.B),b.b("utils.stringifyJson",b.a.hc),b.b("utils.range",b.a.Pd),b.b("utils.toggleDomNodeCssClass",b.a.Eb),b.b("utils.triggerEvent",b.a.Fb),b.b("utils.unwrapObservable",b.a.f),b.b("utils.objectForEach",b.a.P),b.b("utils.addOrRemoveItem",b.a.Na),b.b("utils.setTextContent",b.a.Bb),b.b("unwrap",b.a.f),Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if(1===arguments.length)return function(){return t.apply(e,arguments)};var i=Array.prototype.slice.call(arguments,1);return function(){var n=i.slice(0);return n.push.apply(n,arguments),t.apply(e,n)}}),b.a.g=new function(){var t,i,n=0,r="__ko__"+(new Date).getTime(),o={};return b.a.W?(t=function(t,i){var s=t[r];if(!s||"null"===s||!o[s]){if(!i)return e;s=t[r]="ko"+n++,o[s]={}}return o[s]},i=function(e){var t=e[r];return!!t&&(delete o[t],e[r]=null,!0)}):(t=function(e,t){var i=e[r];return!i&&t&&(i=e[r]={}),i},i=function(e){return!!e[r]&&(delete e[r],!0)}),{get:function(e,i){var n=t(e,!1);return n&&n[i]},set:function(i,n,r){(i=t(i,r!==e))&&(i[n]=r)},Ub:function(e,i,n){return(e=t(e,!0))[i]||(e[i]=n)},clear:i,Z:function(){return n+++r}}},b.b("utils.domData",b.a.g),b.b("utils.domData.clear",b.a.g.clear),b.a.K=new function(){function t(t,i){var n=b.a.g.get(t,o);return n===e&&i&&(n=[],b.a.g.set(t,o,n)),n}function i(e){if(i=t(e,!1))for(var i=i.slice(0),r=0;r<i.length;r++)i[r](e);b.a.g.clear(e),b.a.K.cleanExternalData(e),a[e.nodeType]&&n(e.childNodes,!0)}function n(e,t){for(var n,r=[],o=0;o<e.length;o++)if((!t||8===e[o].nodeType)&&(i(r[r.length]=n=e[o]),e[o]!==n))for(;o--&&-1==b.a.A(r,e[o]););}var o=b.a.g.Z(),s={1:!0,8:!0,9:!0},a={1:!0,9:!0};return{za:function(e,i){if("function"!=typeof i)throw Error("Callback must be a function");t(e,!0).push(i)},yb:function(i,n){var r=t(i,!1);r&&(b.a.Pa(r,n),0==r.length&&b.a.g.set(i,o,e))},oa:function(e){return b.u.G((function(){s[e.nodeType]&&(i(e),a[e.nodeType]&&n(e.getElementsByTagName("*")))})),e},removeNode:function(e){b.oa(e),e.parentNode&&e.parentNode.removeChild(e)},cleanExternalData:function(e){r&&"function"==typeof r.cleanData&&r.cleanData([e])}}},b.oa=b.a.K.oa,b.removeNode=b.a.K.removeNode,b.b("cleanNode",b.oa),b.b("removeNode",b.removeNode),b.b("utils.domNodeDisposal",b.a.K),b.b("utils.domNodeDisposal.addDisposeCallback",b.a.K.za),b.b("utils.domNodeDisposal.removeDisposeCallback",b.a.K.yb),p=[0,"",""],g={thead:m=[1,"<table>","</table>"],tbody:m,tfoot:m,tr:[2,"<table><tbody>","</tbody></table>"],td:_=[3,"<table><tbody><tr>","</tr></tbody></table>"],th:_,option:Z=[1,"<select multiple='multiple'>","</select>"],optgroup:Z},y=8>=b.a.W,b.a.ua=function(e,n){var o;if(r){if(r.parseHTML)o=r.parseHTML(e,n)||[];else if((o=r.clean([e],n))&&o[0]){for(var s=o[0];s.parentNode&&11!==s.parentNode.nodeType;)s=s.parentNode;s.parentNode&&s.parentNode.removeChild(s)}}else{(o=n)||(o=i),s=o.parentWindow||o.defaultView||t;var a,c=b.a.Db(e).toLowerCase(),u=o.createElement("div");for(a=(c=c.match(/^(?:\x3c!--.*?--\x3e\s*?)*?<([a-z]+)[\s>]/))&&g[c[1]]||p,c=a[0],a="ignored<div>"+a[1]+e+a[2]+"</div>","function"==typeof s.innerShiv?u.appendChild(s.innerShiv(a)):(y&&o.body.appendChild(u),u.innerHTML=a,y&&u.parentNode.removeChild(u));c--;)u=u.lastChild;o=b.a.la(u.lastChild.childNodes)}return o},b.a.Md=function(e,t){var i=b.a.ua(e,t);return i.length&&i[0].parentElement||b.a.Yb(i)},b.a.fc=function(t,i){if(b.a.Tb(t),null!==(i=b.a.f(i))&&i!==e)if("string"!=typeof i&&(i=i.toString()),r)r(t).html(i);else for(var n=b.a.ua(i,t.ownerDocument),o=0;o<n.length;o++)t.appendChild(n[o])},b.b("utils.parseHtmlFragment",b.a.ua),b.b("utils.setHtml",b.a.fc),b.aa=function(){function t(e,i){if(e)if(8==e.nodeType)null!=(n=b.aa.Uc(e.nodeValue))&&i.push({ud:e,Kd:n});else if(1==e.nodeType)for(var n=0,r=e.childNodes,o=r.length;n<o;n++)t(r[n],i)}var i={};return{Xb:function(e){if("function"!=typeof e)throw Error("You can only pass a function to ko.memoization.memoize()");var t=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return i[t]=e,"\x3c!--[ko_memo:"+t+"]--\x3e"},bd:function(t,n){var r=i[t];if(r===e)throw Error("Couldn't find any memo with ID "+t+". Perhaps it's already been unmemoized.");try{return r.apply(null,n||[]),!0}finally{delete i[t]}},cd:function(e,i){var n=[];t(e,n);for(var r=0,o=n.length;r<o;r++){var s=n[r].ud,a=[s];i&&b.a.Nb(a,i),b.aa.bd(n[r].Kd,a),s.nodeValue="",s.parentNode&&s.parentNode.removeChild(s)}},Uc:function(e){return(e=e.match(/^\[ko_memo\:(.*?)\]$/))?e[1]:null}}}(),b.b("memoization",b.aa),b.b("memoization.memoize",b.aa.Xb),b.b("memoization.unmemoize",b.aa.bd),b.b("memoization.parseMemoText",b.aa.Uc),b.b("memoization.unmemoizeDomNodeAndDescendants",b.aa.cd),b.na=function(){function e(){if(s)for(var e,t=s,i=0;c<s;)if(e=o[c++]){if(c>t){if(5e3<=++i){c=s,b.a.Gc(Error("'Too much recursion' after processing "+i+" task groups."));break}t=s}try{e()}catch(e){b.a.Gc(e)}}}function n(){e(),c=s=o.length=0}var r,o=[],s=0,a=1,c=0;return r=t.MutationObserver?function(e){var t=i.createElement("div");return new MutationObserver(e).observe(t,{attributes:!0}),function(){t.classList.toggle("foo")}}(n):i&&"onreadystatechange"in i.createElement("script")?function(e){var t=i.createElement("script");t.onreadystatechange=function(){t.onreadystatechange=null,i.documentElement.removeChild(t),t=null,e()},i.documentElement.appendChild(t)}:function(e){setTimeout(e,0)},{scheduler:r,zb:function(e){return s||b.na.scheduler(n),o[s++]=e,a++},cancel:function(e){(e-=a-s)>=c&&e<s&&(o[e]=null)},resetForTesting:function(){var e=s-c;return c=s=o.length=0,e},Sd:e}}(),b.b("tasks",b.na),b.b("tasks.schedule",b.na.zb),b.b("tasks.runEarly",b.na.Sd),b.Ta={throttle:function(e,t){e.throttleEvaluation=t;var i=null;return b.$({read:e,write:function(n){clearTimeout(i),i=b.a.setTimeout((function(){e(n)}),t)}})},rateLimit:function(e,t){var i,n,r;"number"==typeof t?i=t:(i=t.timeout,n=t.method),e.Hb=!1,r="function"==typeof n?n:"notifyWhenChangesStop"==n?l:u,e.ub((function(e){return r(e,i,t)}))},deferred:function(t,i){if(!0!==i)throw Error("The 'deferred' extender only accepts the value 'true', because it is not supported to turn deferral off once enabled.");t.Hb||(t.Hb=!0,t.ub((function(i){var n,r=!1;return function(){if(!r){b.na.cancel(n),n=b.na.zb(i);try{r=!0,t.notifySubscribers(e,"dirty")}finally{r=!1}}}})))},notify:function(e,t){e.equalityComparer="always"==t?null:c}};var A={undefined:1,boolean:1,number:1,string:1};b.b("extenders",b.Ta),b.ic=function(e,t,i){this.da=e,this.lc=t,this.mc=i,this.Ib=!1,this.fb=this.Jb=null,b.L(this,"dispose",this.s),b.L(this,"disposeWhenNodeIsRemoved",this.l)},b.ic.prototype.s=function(){this.Ib||(this.fb&&b.a.K.yb(this.Jb,this.fb),this.Ib=!0,this.mc(),this.da=this.lc=this.mc=this.Jb=this.fb=null)},b.ic.prototype.l=function(e){this.Jb=e,b.a.K.za(e,this.fb=this.s.bind(this))},b.T=function(){b.a.Ab(this,w),w.qb(this)};var w={qb:function(e){e.U={change:[]},e.sc=1},subscribe:function(e,t,i){var n=this;i=i||"change";var r=new b.ic(n,t?e.bind(t):e,(function(){b.a.Pa(n.U[i],r),n.hb&&n.hb(i)}));return n.Qa&&n.Qa(i),n.U[i]||(n.U[i]=[]),n.U[i].push(r),r},notifySubscribers:function(e,t){if("change"===(t=t||"change")&&this.Gb(),this.Wa(t)){var i="change"===t&&this.ed||this.U[t].slice(0);try{b.u.xc();for(var n,r=0;n=i[r];++r)n.Ib||n.lc(e)}finally{b.u.end()}}},ob:function(){return this.sc},Dd:function(e){return this.ob()!==e},Gb:function(){++this.sc},ub:function(e){var t,i,n,r,o,s=this,a=b.O(s);s.gb||(s.gb=s.notifySubscribers,s.notifySubscribers=h);var c=e((function(){s.Ja=!1,a&&r===s&&(r=s.nc?s.nc():s());var e=i||o&&s.sb(n,r);o=i=t=!1,e&&s.gb(n=r)}));s.qc=function(e,i){i&&s.Ja||(o=!i),s.ed=s.U.change.slice(0),s.Ja=t=!0,r=e,c()},s.pc=function(e){t||(n=e,s.gb(e,"beforeChange"))},s.rc=function(){o=!0},s.gd=function(){s.sb(n,s.v(!0))&&(i=!0)}},Wa:function(e){return this.U[e]&&this.U[e].length},Bd:function(e){if(e)return this.U[e]&&this.U[e].length||0;var t=0;return b.a.P(this.U,(function(e,i){"dirty"!==e&&(t+=i.length)})),t},sb:function(e,t){return!this.equalityComparer||!this.equalityComparer(e,t)},toString:function(){return"[object Object]"},extend:function(e){var t=this;return e&&b.a.P(e,(function(e,i){var n=b.Ta[e];"function"==typeof n&&(t=n(t,i)||t)})),t}};b.L(w,"init",w.qb),b.L(w,"subscribe",w.subscribe),b.L(w,"extend",w.extend),b.L(w,"getSubscriptionsCount",w.Bd),b.a.Ba&&b.a.setPrototypeOf(w,Function.prototype),b.T.fn=w,b.Qc=function(e){return null!=e&&"function"==typeof e.subscribe&&"function"==typeof e.notifySubscribers},b.b("subscribable",b.T),b.b("isSubscribable",b.Qc),b.S=b.u=function(){function e(e){n.push(i),i=e}function t(){i=n.pop()}var i,n=[],r=0;return{xc:e,end:t,cc:function(e){if(i){if(!b.Qc(e))throw Error("Only subscribable things can act as dependencies");i.od.call(i.pd,e,e.fd||(e.fd=++r))}},G:function(i,n,r){try{return e(),i.apply(n,r||[])}finally{t()}},qa:function(){if(i)return i.o.qa()},Va:function(){if(i)return i.o.Va()},Ya:function(){if(i)return i.Ya},o:function(){if(i)return i.o}}}(),b.b("computedContext",b.S),b.b("computedContext.getDependenciesCount",b.S.qa),b.b("computedContext.getDependencies",b.S.Va),b.b("computedContext.isInitial",b.S.Ya),b.b("computedContext.registerDependency",b.S.cc),b.b("ignoreDependencies",b.Yd=b.u.G);var v=b.a.Da("_latestValue");b.ta=function(e){function t(){return 0<arguments.length?(t.sb(t[v],arguments[0])&&(t.ya(),t[v]=arguments[0],t.xa()),this):(b.u.cc(t),t[v])}return t[v]=e,b.a.Ba||b.a.extend(t,b.T.fn),b.T.fn.qb(t),b.a.Ab(t,T),b.options.deferUpdates&&b.Ta.deferred(t,!0),t};var T={equalityComparer:c,v:function(){return this[v]},xa:function(){this.notifySubscribers(this[v],"spectate"),this.notifySubscribers(this[v])},ya:function(){this.notifySubscribers(this[v],"beforeChange")}};b.a.Ba&&b.a.setPrototypeOf(T,b.T.fn);var C=b.ta.Ma="__ko_proto__";T[C]=b.ta,b.O=function(e){if((e="function"==typeof e&&e[C])&&e!==T[C]&&e!==b.o.fn[C])throw Error("Invalid object that looks like an observable; possibly from another Knockout instance");return!!e},b.Za=function(e){return"function"==typeof e&&(e[C]===T[C]||e[C]===b.o.fn[C]&&e.Nc)},b.b("observable",b.ta),b.b("isObservable",b.O),b.b("isWriteableObservable",b.Za),b.b("isWritableObservable",b.Za),b.b("observable.fn",T),b.L(T,"peek",T.v),b.L(T,"valueHasMutated",T.xa),b.L(T,"valueWillMutate",T.ya),b.Ha=function(e){if("object"!=typeof(e=e||[])||!("length"in e))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");return e=b.ta(e),b.a.Ab(e,b.Ha.fn),e.extend({trackArrayChanges:!0})},b.Ha.fn={remove:function(e){for(var t=this.v(),i=[],n="function"!=typeof e||b.O(e)?function(t){return t===e}:e,r=0;r<t.length;r++){var o=t[r];if(n(o)){if(0===i.length&&this.ya(),t[r]!==o)throw Error("Array modified during remove; cannot remove item");i.push(o),t.splice(r,1),r--}}return i.length&&this.xa(),i},removeAll:function(t){if(t===e){var i=this.v(),n=i.slice(0);return this.ya(),i.splice(0,i.length),this.xa(),n}return t?this.remove((function(e){return 0<=b.a.A(t,e)})):[]},destroy:function(e){var t=this.v(),i="function"!=typeof e||b.O(e)?function(t){return t===e}:e;this.ya();for(var n=t.length-1;0<=n;n--){var r=t[n];i(r)&&(r._destroy=!0)}this.xa()},destroyAll:function(t){return t===e?this.destroy((function(){return!0})):t?this.destroy((function(e){return 0<=b.a.A(t,e)})):[]},indexOf:function(e){var t=this();return b.a.A(t,e)},replace:function(e,t){var i=this.indexOf(e);0<=i&&(this.ya(),this.v()[i]=t,this.xa())},sorted:function(e){var t=this().slice(0);return e?t.sort(e):t.sort()},reversed:function(){return this().slice(0).reverse()}},b.a.Ba&&b.a.setPrototypeOf(b.Ha.fn,b.ta.fn),b.a.D("pop push reverse shift sort splice unshift".split(" "),(function(e){b.Ha.fn[e]=function(){var t=this.v();this.ya(),this.zc(t,e,arguments);var i=t[e].apply(t,arguments);return this.xa(),i===t?this:i}})),b.a.D(["slice"],(function(e){b.Ha.fn[e]=function(){var t=this();return t[e].apply(t,arguments)}})),b.Pc=function(e){return b.O(e)&&"function"==typeof e.remove&&"function"==typeof e.push},b.b("observableArray",b.Ha),b.b("isObservableArray",b.Pc),b.Ta.trackArrayChanges=function(t,i){function n(){function e(){if(u){var e,i=[].concat(t.v()||[]);t.Wa("arrayChange")&&((!c||1<u)&&(c=b.a.Pb(s,i,t.Ob)),e=c),s=i,c=null,u=0,e&&e.length&&t.notifySubscribers(e,"arrayChange")}}a?e():(a=!0,o=t.subscribe((function(){++u}),null,"spectate"),s=[].concat(t.v()||[]),c=null,r=t.subscribe(e))}if(t.Ob={},i&&"object"==typeof i&&b.a.extend(t.Ob,i),t.Ob.sparse=!0,!t.zc){var r,o,s,a=!1,c=null,u=0,l=t.Qa,h=t.hb;t.Qa=function(e){l&&l.call(t,e),"arrayChange"===e&&n()},t.hb=function(i){h&&h.call(t,i),"arrayChange"!==i||t.Wa("arrayChange")||(r&&r.s(),o&&o.s(),o=r=null,a=!1,s=e)},t.zc=function(e,t,i){function n(e,t,i){return r[r.length]={status:e,value:t,index:i}}if(a&&!u){var r=[],o=e.length,s=i.length,l=0;switch(t){case"push":l=o;case"unshift":for(t=0;t<s;t++)n("added",i[t],l+t);break;case"pop":l=o-1;case"shift":o&&n("deleted",e[l],l);break;case"splice":t=Math.min(Math.max(0,0>i[0]?o+i[0]:i[0]),o),o=1===s?o:Math.min(t+(i[1]||0),o),s=t+s-2,l=Math.max(o,s);for(var h=[],d=[],f=2;t<l;++t,++f)t<o&&d.push(n("deleted",e[t],t)),t<s&&h.push(n("added",i[f],t));b.a.Kc(d,h);break;default:return}c=r}}}};var E=b.a.Da("_state");b.o=b.$=function(t,i,n){function r(){if(0<arguments.length){if("function"!=typeof o)throw Error("Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.");return o.apply(s.nb,arguments),this}return s.ra||b.u.cc(r),(s.ka||s.J&&r.Xa())&&r.ha(),s.X}if("object"==typeof t?n=t:(n=n||{},t&&(n.read=t)),"function"!=typeof n.read)throw Error("Pass a function that returns the value of the ko.computed");var o=n.write,s={X:e,sa:!0,ka:!0,rb:!1,jc:!1,ra:!1,wb:!1,J:!1,Wc:n.read,nb:i||n.owner,l:n.disposeWhenNodeIsRemoved||n.l||null,Sa:n.disposeWhen||n.Sa,Rb:null,I:{},V:0,Ic:null};return r[E]=s,r.Nc="function"==typeof o,b.a.Ba||b.a.extend(r,b.T.fn),b.T.fn.qb(r),b.a.Ab(r,x),n.pure?(s.wb=!0,s.J=!0,b.a.extend(r,S)):n.deferEvaluation&&b.a.extend(r,O),b.options.deferUpdates&&b.Ta.deferred(r,!0),s.l&&(s.jc=!0,s.l.nodeType||(s.l=null)),s.J||n.deferEvaluation||r.ha(),s.l&&r.ja()&&b.a.K.za(s.l,s.Rb=function(){r.s()}),r};var x={equalityComparer:c,qa:function(){return this[E].V},Va:function(){var e=[];return b.a.P(this[E].I,(function(t,i){e[i.Ka]=i.da})),e},Vb:function(e){if(!this[E].V)return!1;var t=this.Va();return-1!==b.a.A(t,e)||!!b.a.Lb(t,(function(t){return t.Vb&&t.Vb(e)}))},uc:function(e,t,i){if(this[E].wb&&t===this)throw Error("A 'pure' computed must not be called recursively");this[E].I[e]=i,i.Ka=this[E].V++,i.La=t.ob()},Xa:function(){var e,t,i=this[E].I;for(e in i)if(Object.prototype.hasOwnProperty.call(i,e)&&(t=i[e],this.Ia&&t.da.Ja||t.da.Dd(t.La)))return!0},Jd:function(){this.Ia&&!this[E].rb&&this.Ia(!1)},ja:function(){var e=this[E];return e.ka||0<e.V},Rd:function(){this.Ja?this[E].ka&&(this[E].sa=!0):this.Hc()},$c:function(e){if(e.Hb){var t=e.subscribe(this.Jd,this,"dirty"),i=e.subscribe(this.Rd,this);return{da:e,s:function(){t.s(),i.s()}}}return e.subscribe(this.Hc,this)},Hc:function(){var e=this,t=e.throttleEvaluation;t&&0<=t?(clearTimeout(this[E].Ic),this[E].Ic=b.a.setTimeout((function(){e.ha(!0)}),t)):e.Ia?e.Ia(!0):e.ha(!0)},ha:function(e){var t=this[E],i=t.Sa,n=!1;if(!t.rb&&!t.ra){if(t.l&&!b.a.Sb(t.l)||i&&i()){if(!t.jc)return void this.s()}else t.jc=!1;t.rb=!0;try{n=this.zd(e)}finally{t.rb=!1}return n}},zd:function(t){var i=this[E],n=!1,r=i.wb?e:!i.V;n={qd:this,mb:i.I,Qb:i.V},b.u.xc({pd:n,od:f,o:this,Ya:r}),i.I={},i.V=0;var o=this.yd(i,n);return i.V?n=this.sb(i.X,o):(this.s(),n=!0),n&&(i.J?this.Gb():this.notifySubscribers(i.X,"beforeChange"),i.X=o,this.notifySubscribers(i.X,"spectate"),!i.J&&t&&this.notifySubscribers(i.X),this.rc&&this.rc()),r&&this.notifySubscribers(i.X,"awake"),n},yd:function(e,t){try{var i=e.Wc;return e.nb?i.call(e.nb):i()}finally{b.u.end(),t.Qb&&!e.J&&b.a.P(t.mb,d),e.sa=e.ka=!1}},v:function(e){var t=this[E];return(t.ka&&(e||!t.V)||t.J&&this.Xa())&&this.ha(),t.X},ub:function(e){b.T.fn.ub.call(this,e),this.nc=function(){return this[E].J||(this[E].sa?this.ha():this[E].ka=!1),this[E].X},this.Ia=function(e){this.pc(this[E].X),this[E].ka=!0,e&&(this[E].sa=!0),this.qc(this,!e)}},s:function(){var t=this[E];!t.J&&t.I&&b.a.P(t.I,(function(e,t){t.s&&t.s()})),t.l&&t.Rb&&b.a.K.yb(t.l,t.Rb),t.I=e,t.V=0,t.ra=!0,t.sa=!1,t.ka=!1,t.J=!1,t.l=e,t.Sa=e,t.Wc=e,this.Nc||(t.nb=e)}},S={Qa:function(e){var t=this,i=t[E];if(!i.ra&&i.J&&"change"==e){if(i.J=!1,i.sa||t.Xa())i.I=null,i.V=0,t.ha()&&t.Gb();else{var n=[];b.a.P(i.I,(function(e,t){n[t.Ka]=e})),b.a.D(n,(function(e,n){var r=i.I[e],o=t.$c(r.da);o.Ka=n,o.La=r.La,i.I[e]=o})),t.Xa()&&t.ha()&&t.Gb()}i.ra||t.notifySubscribers(i.X,"awake")}},hb:function(t){var i=this[E];i.ra||"change"!=t||this.Wa("change")||(b.a.P(i.I,(function(e,t){t.s&&(i.I[e]={da:t.da,Ka:t.Ka,La:t.La},t.s())})),i.J=!0,this.notifySubscribers(e,"asleep"))},ob:function(){var e=this[E];return e.J&&(e.sa||this.Xa())&&this.ha(),b.T.fn.ob.call(this)}},O={Qa:function(e){"change"!=e&&"beforeChange"!=e||this.v()}};b.a.Ba&&b.a.setPrototypeOf(x,b.T.fn);var I=b.ta.Ma;x[I]=b.o,b.Oc=function(e){return"function"==typeof e&&e[I]===x[I]},b.Fd=function(e){return b.Oc(e)&&e[E]&&e[E].wb},b.b("computed",b.o),b.b("dependentObservable",b.o),b.b("isComputed",b.Oc),b.b("isPureComputed",b.Fd),b.b("computed.fn",x),b.L(x,"peek",x.v),b.L(x,"dispose",x.s),b.L(x,"isActive",x.ja),b.L(x,"getDependenciesCount",x.qa),b.L(x,"getDependencies",x.Va),b.xb=function(e,t){return"function"==typeof e?b.o(e,t,{pure:!0}):((e=b.a.extend({},e)).pure=!0,b.o(e,t))},b.b("pureComputed",b.xb),function(){function t(n,r,o){if(o=o||new i,"object"!=typeof(n=r(n))||null===n||n===e||n instanceof RegExp||n instanceof Date||n instanceof String||n instanceof Number||n instanceof Boolean)return n;var s=n instanceof Array?[]:{};return o.save(n,s),function(e,t){if(e instanceof Array){for(var i=0;i<e.length;i++)t(i);"function"==typeof e.toJSON&&t("toJSON")}else for(i in e)t(i)}(n,(function(i){var a=r(n[i]);switch(typeof a){case"boolean":case"number":case"string":case"function":s[i]=a;break;case"object":case"undefined":var c=o.get(a);s[i]=c!==e?c:t(a,r,o)}})),s}function i(){this.keys=[],this.values=[]}b.ad=function(e){if(0==arguments.length)throw Error("When calling ko.toJS, pass the object you want to convert.");return t(e,(function(e){for(var t=0;b.O(e)&&10>t;t++)e=e();return e}))},b.toJSON=function(e,t,i){return e=b.ad(e),b.a.hc(e,t,i)},i.prototype={constructor:i,save:function(e,t){var i=b.a.A(this.keys,e);0<=i?this.values[i]=t:(this.keys.push(e),this.values.push(t))},get:function(t){return 0<=(t=b.a.A(this.keys,t))?this.values[t]:e}}}(),b.b("toJS",b.ad),b.b("toJSON",b.toJSON),b.Wd=function(e,t,i){function n(t){var n=b.xb(e,i).extend({ma:"always"}),r=n.subscribe((function(e){e&&(r.s(),t(e))}));return n.notifySubscribers(n.v()),r}return"function"!=typeof Promise||t?n(t.bind(i)):new Promise(n)},b.b("when",b.Wd),b.w={M:function(t){switch(b.a.R(t)){case"option":return!0===t.__ko__hasDomDataOptionValue__?b.a.g.get(t,b.c.options.$b):7>=b.a.W?t.getAttributeNode("value")&&t.getAttributeNode("value").specified?t.value:t.text:t.value;case"select":return 0<=t.selectedIndex?b.w.M(t.options[t.selectedIndex]):e;default:return t.value}},cb:function(t,i,n){switch(b.a.R(t)){case"option":"string"==typeof i?(b.a.g.set(t,b.c.options.$b,e),"__ko__hasDomDataOptionValue__"in t&&delete t.__ko__hasDomDataOptionValue__,t.value=i):(b.a.g.set(t,b.c.options.$b,i),t.__ko__hasDomDataOptionValue__=!0,t.value="number"==typeof i?i:"");break;case"select":""!==i&&null!==i||(i=e);for(var r,o=-1,s=0,a=t.options.length;s<a;++s)if((r=b.w.M(t.options[s]))==i||""===r&&i===e){o=s;break}(n||0<=o||i===e&&1<t.size)&&(t.selectedIndex=o,6===b.a.W&&b.a.setTimeout((function(){t.selectedIndex=o}),0));break;default:null!==i&&i!==e||(i=""),t.value=i}}},b.b("selectExtensions",b.w),b.b("selectExtensions.readValue",b.w.M),b.b("selectExtensions.writeValue",b.w.cb),b.m=function(){function e(e){123===(e=b.a.Db(e)).charCodeAt(0)&&(e=e.slice(1,-1));var t,i=[],s=(e+="\n,").match(n),a=[],c=0;if(1<s.length){for(var u,l=0;u=s[l];++l){var h=u.charCodeAt(0);if(44===h){if(0>=c){i.push(t&&a.length?{key:t,value:a.join("")}:{unknown:t||a.join("")}),t=c=0,a=[];continue}}else if(58===h){if(!c&&!t&&1===a.length){t=a.pop();continue}}else{if(47===h&&1<u.length&&(47===u.charCodeAt(1)||42===u.charCodeAt(1)))continue;47===h&&l&&1<u.length?(h=s[l-1].match(r))&&!o[h[0]]&&(s=(e=e.substr(e.indexOf(u)+1)).match(n),l=-1,u="/"):40===h||123===h||91===h?++c:41===h||125===h||93===h?--c:t||a.length||34!==h&&39!==h||(u=u.slice(1,-1))}a.push(u)}if(0<c)throw Error("Unbalanced parentheses, braces, or brackets")}return i}var t=["true","false","null","undefined"],i=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,n=RegExp("\"(?:\\\\.|[^\"])*\"|'(?:\\\\.|[^'])*'|`(?:\\\\.|[^`])*`|/\\*(?:[^*]|\\*+[^*/])*\\*+/|//.*\n|/(?:\\\\.|[^/])+/w*|[^\\s:,/][^,\"'`{}()/:[\\]]*[^\\s,\"'`{}()/:[\\]]|[^\\s]","g"),r=/[\])"'A-Za-z0-9_$]+$/,o={in:1,return:1,typeof:1},s={};return{Ra:[],wa:s,ac:e,vb:function(n,r){function o(e,n){var r;if(!l){var h=b.getBindingHandler(e);if(h&&h.preprocess&&!(n=h.preprocess(n,e,o)))return;(h=s[e])&&(r=n,0<=b.a.A(t,r)?r=!1:(h=r.match(i),r=null!==h&&(h[1]?"Object("+h[1]+")"+h[2]:r)),h=r),h&&c.push("'"+("string"==typeof s[e]?s[e]:e)+"':function(_z){"+r+"=_z}")}u&&(n="function(){return "+n+" }"),a.push("'"+e+"':"+n)}var a=[],c=[],u=(r=r||{}).valueAccessors,l=r.bindingParams,h="string"==typeof n?e(n):n;return b.a.D(h,(function(e){o(e.key||e.unknown,e.value)})),c.length&&o("_ko_property_writers","{"+c.join(",")+" }"),a.join(",")},Id:function(e,t){for(var i=0;i<e.length;i++)if(e[i].key==t)return!0;return!1},eb:function(e,t,i,n,r){e&&b.O(e)?!b.Za(e)||r&&e.v()===n||e(n):(e=t.get("_ko_property_writers"))&&e[i]&&e[i](n)}}}(),b.b("expressionRewriting",b.m),b.b("expressionRewriting.bindingRewriteValidators",b.m.Ra),b.b("expressionRewriting.parseObjectLiteral",b.m.ac),b.b("expressionRewriting.preProcessBindings",b.m.vb),b.b("expressionRewriting._twoWayBindings",b.m.wa),b.b("jsonExpressionRewriting",b.m),b.b("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",b.m.vb),function(){function e(e){return 8==e.nodeType&&s.test(o?e.text:e.nodeValue)}function t(e){return 8==e.nodeType&&a.test(o?e.text:e.nodeValue)}function n(i,n){for(var r=i,o=1,s=[];r=r.nextSibling;){if(t(r)&&(b.a.g.set(r,u,!0),0==--o))return s;s.push(r),e(r)&&o++}if(!n)throw Error("Cannot find closing comment tag to match: "+i.nodeValue);return null}function r(e,t){var i=n(e,t);return i?0<i.length?i[i.length-1].nextSibling:e.nextSibling:null}var o=i&&"\x3c!--test--\x3e"===i.createComment("test").text,s=o?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,a=o?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,c={ul:!0,ol:!0},u="__ko_matchedEndComment__";b.h={ea:{},childNodes:function(t){return e(t)?n(t):t.childNodes},Ea:function(t){if(e(t))for(var i=0,n=(t=b.h.childNodes(t)).length;i<n;i++)b.removeNode(t[i]);else b.a.Tb(t)},va:function(t,i){if(e(t)){b.h.Ea(t);for(var n=t.nextSibling,r=0,o=i.length;r<o;r++)n.parentNode.insertBefore(i[r],n)}else b.a.va(t,i)},Vc:function(t,i){var n;e(t)?(n=t.nextSibling,t=t.parentNode):n=t.firstChild,n?i!==n&&t.insertBefore(i,n):t.appendChild(i)},Wb:function(t,i,n){n?(n=n.nextSibling,e(t)&&(t=t.parentNode),n?i!==n&&t.insertBefore(i,n):t.appendChild(i)):b.h.Vc(t,i)},firstChild:function(i){if(e(i))return!i.nextSibling||t(i.nextSibling)?null:i.nextSibling;if(i.firstChild&&t(i.firstChild))throw Error("Found invalid end comment, as the first child of "+i);return i.firstChild},nextSibling:function(i){if(e(i)&&(i=r(i)),i.nextSibling&&t(i.nextSibling)){var n=i.nextSibling;if(t(n)&&!b.a.g.get(n,u))throw Error("Found end comment without a matching opening comment, as child of "+i);return null}return i.nextSibling},Cd:e,Vd:function(e){return(e=(o?e.text:e.nodeValue).match(s))?e[1]:null},Sc:function(i){if(c[b.a.R(i)]){var n=i.firstChild;if(n)do{if(1===n.nodeType){var o,s=null;if(o=n.firstChild)do{if(s)s.push(o);else if(e(o)){var a=r(o,!0);a?o=a:s=[o]}else t(o)&&(s=[o])}while(o=o.nextSibling);if(o=s)for(s=n.nextSibling,a=0;a<o.length;a++)s?i.insertBefore(o[a],s):i.appendChild(o[a])}}while(n=n.nextSibling)}}}}(),b.b("virtualElements",b.h),b.b("virtualElements.allowedBindings",b.h.ea),b.b("virtualElements.emptyNode",b.h.Ea),b.b("virtualElements.insertAfter",b.h.Wb),b.b("virtualElements.prepend",b.h.Vc),b.b("virtualElements.setDomNodeChildren",b.h.va),b.ga=function(){this.nd={}},b.a.extend(b.ga.prototype,{nodeHasBindings:function(e){switch(e.nodeType){case 1:return null!=e.getAttribute("data-bind")||b.j.getComponentNameForNode(e);case 8:return b.h.Cd(e);default:return!1}},getBindings:function(e,t){var i=(i=this.getBindingsString(e,t))?this.parseBindingsString(i,t,e):null;return b.j.tc(i,e,t,!1)},getBindingAccessors:function(e,t){var i=(i=this.getBindingsString(e,t))?this.parseBindingsString(i,t,e,{valueAccessors:!0}):null;return b.j.tc(i,e,t,!0)},getBindingsString:function(e){switch(e.nodeType){case 1:return e.getAttribute("data-bind");case 8:return b.h.Vd(e);default:return null}},parseBindingsString:function(e,t,i,n){try{var r,o=this.nd,s=e+(n&&n.valueAccessors||"");if(!(r=o[s])){var a,c="with($context){with($data||{}){return{"+b.m.vb(e,n)+"}}}";a=new Function("$context","$element",c),r=o[s]=a}return r(t,i)}catch(t){throw t.message="Unable to parse bindings.\nBindings value: "+e+"\nMessage: "+t.message,t}}}),b.ga.instance=new b.ga,b.b("bindingProvider",b.ga),function(){function n(e){var t=(e=b.a.g.get(e,A))&&e.N;t&&(e.N=null,t.Tc())}function o(e,t,i){this.node=e,this.yc=t,this.kb=[],this.H=!1,t.N||b.a.K.za(e,n),i&&i.N&&(i.N.kb.push(e),this.Kb=i)}function s(e){return function(){return e}}function a(e){return e()}function c(e){return b.a.Ga(b.u.G(e),(function(t,i){return function(){return e()[i]}}))}function u(e,t,i){return"function"==typeof e?c(e.bind(null,t,i)):b.a.Ga(e,s)}function l(e,t){return c(this.getBindings.bind(this,e,t))}function h(e,t){var i=b.h.firstChild(t);if(i){var n,r=b.ga.instance,o=r.preprocessNode;if(o){for(;n=i;)i=b.h.nextSibling(n),o.call(r,n);i=b.h.firstChild(t)}for(;n=i;)i=b.h.nextSibling(n),d(e,n)}b.i.ma(t,b.i.H)}function d(e,t){var i=e,n=1===t.nodeType;n&&b.h.Sc(t),(n||b.ga.instance.nodeHasBindings(t))&&(i=f(t,null,e).bindingContextForDescendants),i&&!g[b.a.R(t)]&&h(i,t)}function f(t,i,n){var r,o=b.a.g.Ub(t,A,{}),s=o.hd;if(!i){if(s)throw Error("You cannot apply bindings multiple times to the same element.");o.hd=!0}if(s||(o.context=n),o.Zb||(o.Zb={}),i&&"function"!=typeof i)r=i;else{var c=b.ga.instance,u=c.getBindingAccessors||l,h=b.$((function(){return(r=i?i(n,t):u.call(c,t,n))&&(n[m]&&n[m](),n[Z]&&n[Z]()),r}),null,{l:t});r&&h.ja()||(h=null)}var d,f=n;if(r){var p=function(){return b.a.Ga(h?h():r,a)},_=h?function(e){return function(){return a(h()[e])}}:function(e){return r[e]};p.get=function(e){return r[e]&&a(_(e))},p.has=function(e){return e in r},b.i.H in r&&b.i.subscribe(t,b.i.H,(function(){var e=(0,r[b.i.H])();if(e){var i=b.h.childNodes(t);i.length&&e(i,b.Ec(i[0]))}})),b.i.pa in r&&(f=b.i.Cb(t,n),b.i.subscribe(t,b.i.pa,(function(){var e=(0,r[b.i.pa])();e&&b.h.firstChild(t)&&e(t)}))),o=function(e){var t=[],i={},n=[];return b.a.P(e,(function r(o){if(!i[o]){var s=b.getBindingHandler(o);s&&(s.after&&(n.push(o),b.a.D(s.after,(function(t){if(e[t]){if(-1!==b.a.A(n,t))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+n.join(", "));r(t)}})),n.length--),t.push({key:o,Mc:s})),i[o]=!0}})),t}(r),b.a.D(o,(function(i){var n=i.Mc.init,o=i.Mc.update,s=i.key;if(8===t.nodeType&&!b.h.ea[s])throw Error("The binding '"+s+"' cannot be used with virtual elements");try{"function"==typeof n&&b.u.G((function(){var i=n(t,_(s),p,f.$data,f);if(i&&i.controlsDescendantBindings){if(d!==e)throw Error("Multiple bindings ("+d+" and "+s+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");d=s}})),"function"==typeof o&&b.$((function(){o(t,_(s),p,f.$data,f)}),null,{l:t})}catch(e){throw e.message='Unable to process binding "'+s+": "+r[s]+'"\nMessage: '+e.message,e}}))}return{shouldBindDescendants:o=d===e,bindingContextForDescendants:o&&f}}function p(t,i){return t&&t instanceof b.fa?t:new b.fa(t,e,e,i)}var m=b.a.Da("_subscribable"),_=b.a.Da("_ancestorBindingInfo"),Z=b.a.Da("_dataDependency");b.c={};var g={script:!0,textarea:!0,template:!0};b.getBindingHandler=function(e){return b.c[e]};var y={};b.fa=function(t,i,n,r,o){function s(){var e=h?l():l,t=b.a.f(e);return i?(b.a.extend(c,i),_ in i&&(c[_]=i[_])):(c.$parents=[],c.$root=t,c.ko=b),c[m]=a,u?t=c.$data:(c.$rawData=e,c.$data=t),n&&(c[n]=t),r&&r(c,i,t),i&&i[m]&&!b.S.o().Vb(i[m])&&i[m](),d&&(c[Z]=d),c.$data}var a,c=this,u=t===y,l=u?e:t,h="function"==typeof l&&!b.O(l),d=o&&o.dataDependency;o&&o.exportDependencies?s():((a=b.xb(s)).v(),a.ja()?a.equalityComparer=null:c[m]=e)},b.fa.prototype.createChildContext=function(e,t,i,n){if(!n&&t&&"object"==typeof t&&(t=(n=t).as,i=n.extend),t&&n&&n.noChildContext){var r="function"==typeof e&&!b.O(e);return new b.fa(y,this,null,(function(n){i&&i(n),n[t]=r?e():e}),n)}return new b.fa(e,this,t,(function(e,t){e.$parentContext=t,e.$parent=t.$data,e.$parents=(t.$parents||[]).slice(0),e.$parents.unshift(e.$parent),i&&i(e)}),n)},b.fa.prototype.extend=function(e,t){return new b.fa(y,this,null,(function(t){b.a.extend(t,"function"==typeof e?e(t):e)}),t)};var A=b.a.g.Z();o.prototype.Tc=function(){this.Kb&&this.Kb.N&&this.Kb.N.sd(this.node)},o.prototype.sd=function(e){b.a.Pa(this.kb,e),!this.kb.length&&this.H&&this.Cc()},o.prototype.Cc=function(){this.H=!0,this.yc.N&&!this.kb.length&&(this.yc.N=null,b.a.K.yb(this.node,n),b.i.ma(this.node,b.i.pa),this.Tc())},b.i={H:"childrenComplete",pa:"descendantsComplete",subscribe:function(e,t,i,n,r){var o=b.a.g.Ub(e,A,{});return o.Fa||(o.Fa=new b.T),r&&r.notifyImmediately&&o.Zb[t]&&b.u.G(i,n,[e]),o.Fa.subscribe(i,n,t)},ma:function(t,i){var n=b.a.g.get(t,A);if(n&&(n.Zb[i]=!0,n.Fa&&n.Fa.notifySubscribers(t,i),i==b.i.H))if(n.N)n.N.Cc();else if(n.N===e&&n.Fa&&n.Fa.Wa(b.i.pa))throw Error("descendantsComplete event not supported for bindings on this node")},Cb:function(e,t){var i=b.a.g.Ub(e,A,{});return i.N||(i.N=new o(e,i,t[_])),t[_]==i?t:t.extend((function(e){e[_]=i}))}},b.Td=function(e){return(e=b.a.g.get(e,A))&&e.context},b.ib=function(e,t,i){return 1===e.nodeType&&b.h.Sc(e),f(e,t,p(i))},b.ld=function(e,t,i){return i=p(i),b.ib(e,u(t,i,e),i)},b.Oa=function(e,t){1!==t.nodeType&&8!==t.nodeType||h(p(e),t)},b.vc=function(e,n,o){if(!r&&t.jQuery&&(r=t.jQuery),2>arguments.length){if(!(n=i.body))throw Error("ko.applyBindings: could not find document.body; has the document been loaded?")}else if(!n||1!==n.nodeType&&8!==n.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");d(p(e,o),n)},b.Dc=function(t){return!t||1!==t.nodeType&&8!==t.nodeType?e:b.Td(t)},b.Ec=function(t){return(t=b.Dc(t))?t.$data:e},b.b("bindingHandlers",b.c),b.b("bindingEvent",b.i),b.b("bindingEvent.subscribe",b.i.subscribe),b.b("bindingEvent.startPossiblyAsyncContentBinding",b.i.Cb),b.b("applyBindings",b.vc),b.b("applyBindingsToDescendants",b.Oa),b.b("applyBindingAccessorsToNode",b.ib),b.b("applyBindingsToNode",b.ld),b.b("contextFor",b.Dc),b.b("dataFor",b.Ec)}(),function(e){function t(t,n){var s,a=Object.prototype.hasOwnProperty.call(r,t)?r[t]:e;a?a.subscribe(n):((a=r[t]=new b.T).subscribe(n),i(t,(function(e,i){var n=!(!i||!i.synchronous);o[t]={definition:e,Gd:n},delete r[t],s||n?a.notifySubscribers(e):b.na.zb((function(){a.notifySubscribers(e)}))})),s=!0)}function i(e,t){n("getConfig",[e],(function(i){i?n("loadComponent",[e,i],(function(e){t(e,i)})):t(null,null)}))}function n(t,i,r,o){o||(o=b.j.loaders.slice(0));var s=o.shift();if(s){var a=s[t];if(a){var c=!1;if(a.apply(s,i.concat((function(e){c?r(null):null!==e?r(e):n(t,i,r,o)})))!==e&&(c=!0,!s.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else n(t,i,r,o)}else r(null)}var r={},o={};b.j={get:function(i,n){var r=Object.prototype.hasOwnProperty.call(o,i)?o[i]:e;r?r.Gd?b.u.G((function(){n(r.definition)})):b.na.zb((function(){n(r.definition)})):t(i,n)},Bc:function(e){delete o[e]},oc:n},b.j.loaders=[],b.b("components",b.j),b.b("components.get",b.j.get),b.b("components.clearCachedDefinition",b.j.Bc)}(),function(){function e(e,t,i,n){function r(){0==--a&&n(o)}var o={},a=2,c=i.template;i=i.viewModel,c?s(t,c,(function(t){b.j.oc("loadTemplate",[e,t],(function(e){o.template=e,r()}))})):r(),i?s(t,i,(function(t){b.j.oc("loadViewModel",[e,t],(function(e){o[l]=e,r()}))})):r()}function n(e,t,i){if("function"==typeof t)i((function(e){return new t(e)}));else if("function"==typeof t[l])i(t[l]);else if("instance"in t){var r=t.instance;i((function(){return r}))}else"viewModel"in t?n(e,t.viewModel,i):e("Unknown viewModel value: "+t)}function r(e){switch(b.a.R(e)){case"script":return b.a.ua(e.text);case"textarea":return b.a.ua(e.value);case"template":if(o(e.content))return b.a.Ca(e.content.childNodes)}return b.a.Ca(e.childNodes)}function o(e){return t.DocumentFragment?e instanceof DocumentFragment:e&&11===e.nodeType}function s(e,i,n){"string"==typeof i.require?a||t.require?(a||t.require)([i.require],(function(e){e&&"object"==typeof e&&e.Xd&&e.default&&(e=e.default),n(e)})):e("Uses require, but no AMD loader is present"):n(i)}function c(e){return function(t){throw Error("Component '"+e+"': "+t)}}var u={};b.j.register=function(e,t){if(!t)throw Error("Invalid configuration for "+e);if(b.j.tb(e))throw Error("Component "+e+" is already registered");u[e]=t},b.j.tb=function(e){return Object.prototype.hasOwnProperty.call(u,e)},b.j.unregister=function(e){delete u[e],b.j.Bc(e)},b.j.Fc={getConfig:function(e,t){t(b.j.tb(e)?u[e]:null)},loadComponent:function(t,i,n){var r=c(t);s(r,i,(function(i){e(t,r,i,n)}))},loadTemplate:function(e,n,s){if(e=c(e),"string"==typeof n)s(b.a.ua(n));else if(n instanceof Array)s(n);else if(o(n))s(b.a.la(n.childNodes));else if(n.element)if(n=n.element,t.HTMLElement?n instanceof HTMLElement:n&&n.tagName&&1===n.nodeType)s(r(n));else if("string"==typeof n){var a=i.getElementById(n);a?s(r(a)):e("Cannot find element with ID "+n)}else e("Unknown element type: "+n);else e("Unknown template value: "+n)},loadViewModel:function(e,t,i){n(c(e),t,i)}};var l="createViewModel";b.b("components.register",b.j.register),b.b("components.isRegistered",b.j.tb),b.b("components.unregister",b.j.unregister),b.b("components.defaultLoader",b.j.Fc),b.j.loaders.push(b.j.Fc),b.j.dd=u}(),function(){function e(e,i){if(n=e.getAttribute("params")){var n=t.parseBindingsString(n,i,e,{valueAccessors:!0,bindingParams:!0}),r=(n=b.a.Ga(n,(function(t){return b.o(t,null,{l:e})})),b.a.Ga(n,(function(t){var i=t.v();return t.ja()?b.o({read:function(){return b.a.f(t())},write:b.Za(i)&&function(e){t()(e)},l:e}):i})));return Object.prototype.hasOwnProperty.call(r,"$raw")||(r.$raw=n),r}return{$raw:{}}}b.j.getComponentNameForNode=function(e){var t=b.a.R(e);if(b.j.tb(t)&&(-1!=t.indexOf("-")||"[object HTMLUnknownElement]"==""+e||8>=b.a.W&&e.tagName===t))return t},b.j.tc=function(t,i,n,r){if(1===i.nodeType){var o=b.j.getComponentNameForNode(i);if(o){if((t=t||{}).component)throw Error('Cannot use the "component" binding on a custom element matching a component');var s={name:o,params:e(i,n)};t.component=r?function(){return s}:s}}return t};var t=new b.ga;9>b.a.W&&(b.j.register=function(e){return function(t){return e.apply(this,arguments)}}(b.j.register),i.createDocumentFragment=function(e){return function(){var t,i=e(),n=b.j.dd;for(t in n);return i}}(i.createDocumentFragment))}(),function(){var e=0;b.c.component={init:function(t,i,n,r,o){function s(){var e=a&&a.dispose;"function"==typeof e&&e.call(a),u&&u.s(),c=a=u=null}var a,c,u,l=b.a.la(b.h.childNodes(t));return b.h.Ea(t),b.a.K.za(t,s),b.o((function(){var n,r,h=b.a.f(i());if("string"==typeof h?n=h:(n=b.a.f(h.name),r=b.a.f(h.params)),!n)throw Error("No component name specified");var d=b.i.Cb(t,o),f=c=++e;b.j.get(n,(function(e){if(c===f){if(s(),!e)throw Error("Unknown component '"+n+"'");!function(e,t,i){if(!(t=t.template))throw Error("Component '"+e+"' has no template");e=b.a.Ca(t),b.h.va(i,e)}(n,e,t);var i=function(e,t,i){var n=e.createViewModel;return n?n.call(e,t,i):t}(e,r,{element:t,templateNodes:l});e=d.createChildContext(i,{extend:function(e){e.$component=i,e.$componentTemplateNodes=l}}),i&&i.koDescendantsComplete&&(u=b.i.subscribe(t,b.i.pa,i.koDescendantsComplete,i)),a=i,b.Oa(e,t)}}))}),null,{l:t}),{controlsDescendantBindings:!0}}},b.h.ea.component=!0}();var D={class:"className",for:"htmlFor"};b.c.attr={update:function(t,i){var n=b.a.f(i())||{};b.a.P(n,(function(i,n){n=b.a.f(n);var r=i.indexOf(":"),o=(r="lookupNamespaceURI"in t&&0<r&&t.lookupNamespaceURI(i.substr(0,r)),!1===n||null===n||n===e);o?r?t.removeAttributeNS(r,i):t.removeAttribute(i):n=n.toString(),8>=b.a.W&&i in D?(i=D[i],o?t.removeAttribute(i):t[i]=n):o||(r?t.setAttributeNS(r,i,n):t.setAttribute(i,n)),"name"===i&&b.a.Yc(t,o?"":n)}))}},b.c.checked={after:["value","attr"],init:function(t,i,n){function r(){var r=t.checked,c=o();if(!b.S.Ya()&&(r||!a&&!b.S.qa())){var h=b.u.G(i);if(u){var f=l?h.v():h,p=d;d=c,p!==c?r&&(b.a.Na(f,c,!0),b.a.Na(f,p,!1)):b.a.Na(f,c,r),l&&b.Za(h)&&h(f)}else s&&(c===e?c=r:r||(c=e)),b.m.eb(h,n,"checked",c,!0)}}var o=b.xb((function(){return n.has("checkedValue")?b.a.f(n.get("checkedValue")):h?n.has("value")?b.a.f(n.get("value")):t.value:void 0})),s="checkbox"==t.type,a="radio"==t.type;if(s||a){var c=i(),u=s&&b.a.f(c)instanceof Array,l=!(u&&c.push&&c.splice),h=a||u,d=u?o():e;a&&!t.name&&b.c.uniqueName.init(t,(function(){return!0})),b.o(r,null,{l:t}),b.a.B(t,"click",r),b.o((function(){var n=b.a.f(i()),r=o();u?(t.checked=0<=b.a.A(n,r),d=r):t.checked=s&&r===e?!!n:o()===n}),null,{l:t}),c=e}}},b.m.wa.checked=!0,b.c.checkedValue={update:function(e,t){e.value=b.a.f(t())}},b.c.class={update:function(e,t){var i=b.a.Db(b.a.f(t()));b.a.Eb(e,e.__ko__cssValue,!1),e.__ko__cssValue=i,b.a.Eb(e,i,!0)}},b.c.css={update:function(e,t){var i=b.a.f(t());null!==i&&"object"==typeof i?b.a.P(i,(function(t,i){i=b.a.f(i),b.a.Eb(e,t,i)})):b.c.class.update(e,t)}},b.c.enable={update:function(e,t){var i=b.a.f(t());i&&e.disabled?e.removeAttribute("disabled"):i||e.disabled||(e.disabled=!0)}},b.c.disable={update:function(e,t){b.c.enable.update(e,(function(){return!b.a.f(t())}))}},b.c.event={init:function(e,t,i,n,r){var o=t()||{};b.a.P(o,(function(o){"string"==typeof o&&b.a.B(e,o,(function(e){var s,a=t()[o];if(a){try{var c=b.a.la(arguments);n=r.$data,c.unshift(n),s=a.apply(n,c)}finally{!0!==s&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}!1===i.get(o+"Bubble")&&(e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}}))}))}},b.c.foreach={Rc:function(e){return function(){var t=e(),i=b.a.bc(t);return i&&"number"!=typeof i.length?(b.a.f(t),{foreach:i.data,as:i.as,noChildContext:i.noChildContext,includeDestroyed:i.includeDestroyed,afterAdd:i.afterAdd,beforeRemove:i.beforeRemove,afterRender:i.afterRender,beforeMove:i.beforeMove,afterMove:i.afterMove,templateEngine:b.ba.Ma}):{foreach:t,templateEngine:b.ba.Ma}}},init:function(e,t){return b.c.template.init(e,b.c.foreach.Rc(t))},update:function(e,t,i,n,r){return b.c.template.update(e,b.c.foreach.Rc(t),i,n,r)}},b.m.Ra.foreach=!1,b.h.ea.foreach=!0,b.c.hasfocus={init:function(e,t,i){function n(n){e.__ko_hasfocusUpdating=!0;var r=e.ownerDocument;if("activeElement"in r){var o;try{o=r.activeElement}catch(e){o=r.body}n=o===e}r=t(),b.m.eb(r,i,"hasfocus",n,!0),e.__ko_hasfocusLastValue=n,e.__ko_hasfocusUpdating=!1}var r=n.bind(null,!0),o=n.bind(null,!1);b.a.B(e,"focus",r),b.a.B(e,"focusin",r),b.a.B(e,"blur",o),b.a.B(e,"focusout",o),e.__ko_hasfocusLastValue=!1},update:function(e,t){var i=!!b.a.f(t());e.__ko_hasfocusUpdating||e.__ko_hasfocusLastValue===i||(i?e.focus():e.blur(),!i&&e.__ko_hasfocusLastValue&&e.ownerDocument.body.focus(),b.u.G(b.a.Fb,null,[e,i?"focusin":"focusout"]))}},b.m.wa.hasfocus=!0,b.c.hasFocus=b.c.hasfocus,b.m.wa.hasFocus="hasfocus",b.c.html={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){b.a.fc(e,t())}},function(){function e(e,t,i){b.c[e]={init:function(e,n,r,o,s){var a,c,u,l,h,d={};if(t){o=r.get("as");var f=r.get("noChildContext");d={as:o,noChildContext:f,exportDependencies:h=!(o&&f)}}return l=(u="render"==r.get("completeOn"))||r.has(b.i.pa),b.o((function(){var r,o=b.a.f(n()),f=!i!=!o,p=!c;(h||f!==a)&&(l&&(s=b.i.Cb(e,s)),f&&(t&&!h||(d.dataDependency=b.S.o()),r=t?s.createChildContext("function"==typeof o?o:n,d):b.S.qa()?s.extend(null,d):s),p&&b.S.qa()&&(c=b.a.Ca(b.h.childNodes(e),!0)),f?(p||b.h.va(e,b.a.Ca(c)),b.Oa(r,e)):(b.h.Ea(e),u||b.i.ma(e,b.i.H)),a=f)}),null,{l:e}),{controlsDescendantBindings:!0}}},b.m.Ra[e]=!1,b.h.ea[e]=!0}e("if"),e("ifnot",!1,!0),e("with",!0)}(),b.c.let={init:function(e,t,i,n,r){return t=r.extend(t),b.Oa(t,e),{controlsDescendantBindings:!0}}},b.h.ea.let=!0;var P={};b.c.options={init:function(e){if("select"!==b.a.R(e))throw Error("options binding applies only to SELECT elements");for(;0<e.length;)e.remove(0);return{controlsDescendantBindings:!0}},update:function(t,i,n){function r(){return b.a.jb(t.options,(function(e){return e.selected}))}function o(e,t,i){var n=typeof t;return"function"==n?t(e):"string"==n?e[t]:i}function s(e,i){if(p&&l)b.i.ma(t,b.i.H);else if(f.length){var n=0<=b.a.A(f,b.w.M(i[0]));b.a.Zc(i[0],n),p&&!n&&b.u.G(b.a.Fb,null,[t,"change"])}}var a=t.multiple,c=0!=t.length&&a?t.scrollTop:null,u=b.a.f(i()),l=n.get("valueAllowUnset")&&n.has("value"),h=n.get("optionsIncludeDestroyed");i={};var d,f=[];l||(a?f=b.a.Mb(r(),b.w.M):0<=t.selectedIndex&&f.push(b.w.M(t.options[t.selectedIndex]))),u&&(void 0===u.length&&(u=[u]),d=b.a.jb(u,(function(t){return h||t===e||null===t||!b.a.f(t._destroy)})),n.has("optionsCaption")&&null!==(u=b.a.f(n.get("optionsCaption")))&&u!==e&&d.unshift(P));var p=!1;i.beforeRemove=function(e){t.removeChild(e)},u=s,n.has("optionsAfterRender")&&"function"==typeof n.get("optionsAfterRender")&&(u=function(t,i){s(0,i),b.u.G(n.get("optionsAfterRender"),null,[i[0],t!==P?t:e])}),b.a.ec(t,d,(function(i,r,s){return s.length&&(f=!l&&s[0].selected?[b.w.M(s[0])]:[],p=!0),r=t.ownerDocument.createElement("option"),i===P?(b.a.Bb(r,n.get("optionsCaption")),b.w.cb(r,e)):(s=o(i,n.get("optionsValue"),i),b.w.cb(r,b.a.f(s)),i=o(i,n.get("optionsText"),s),b.a.Bb(r,i)),[r]}),i,u),l||(a?f.length&&r().length<f.length:f.length&&0<=t.selectedIndex?b.w.M(t.options[t.selectedIndex])!==f[0]:f.length||0<=t.selectedIndex)&&b.u.G(b.a.Fb,null,[t,"change"]),(l||b.S.Ya())&&b.i.ma(t,b.i.H),b.a.wd(t),c&&20<Math.abs(c-t.scrollTop)&&(t.scrollTop=c)}},b.c.options.$b=b.a.g.Z(),b.c.selectedOptions={init:function(e,t,i){function n(){var n=t(),r=[];b.a.D(e.getElementsByTagName("option"),(function(e){e.selected&&r.push(b.w.M(e))})),b.m.eb(n,i,"selectedOptions",r)}function r(){var i=b.a.f(t()),n=e.scrollTop;i&&"number"==typeof i.length&&b.a.D(e.getElementsByTagName("option"),(function(e){var t=0<=b.a.A(i,b.w.M(e));e.selected!=t&&b.a.Zc(e,t)})),e.scrollTop=n}if("select"!=b.a.R(e))throw Error("selectedOptions binding applies only to SELECT elements");var o;b.i.subscribe(e,b.i.H,(function(){o?n():(b.a.B(e,"change",n),o=b.o(r,null,{l:e}))}),null,{notifyImmediately:!0})},update:function(){}},b.m.wa.selectedOptions=!0,b.c.style={update:function(t,i){var n=b.a.f(i()||{});b.a.P(n,(function(i,n){if(null!==(n=b.a.f(n))&&n!==e&&!1!==n||(n=""),r)r(t).css(i,n);else if(/^--/.test(i))t.style.setProperty(i,n);else{i=i.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}));var o=t.style[i];t.style[i]=n,n===o||t.style[i]!=o||isNaN(n)||(t.style[i]=n+"px")}}))}},b.c.submit={init:function(e,t,i,n,r){if("function"!=typeof t())throw Error("The value for a submit binding must be a function");b.a.B(e,"submit",(function(i){var n,o=t();try{n=o.call(r.$data,e)}finally{!0!==n&&(i.preventDefault?i.preventDefault():i.returnValue=!1)}}))}},b.c.text={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){b.a.Bb(e,t())}},b.h.ea.text=!0,function(){if(t&&t.navigator){var i,n,r,o,s,a=function(e){if(e)return parseFloat(e[1])},c=t.navigator.userAgent;(i=t.opera&&t.opera.version&&parseInt(t.opera.version()))||(s=a(c.match(/Edge\/([^ ]+)$/)))||a(c.match(/Chrome\/([^ ]+)/))||(n=a(c.match(/Version\/([^ ]+) Safari/)))||(r=a(c.match(/Firefox\/([^ ]+)/)))||(o=b.a.W||a(c.match(/MSIE ([^ ]+)/)))||(o=a(c.match(/rv:([^ )]+)/)))}if(8<=o&&10>o)var u=b.a.g.Z(),l=b.a.g.Z(),h=function(e){var t=this.activeElement;(t=t&&b.a.g.get(t,l))&&t(e)},d=function(e,t){var i=e.ownerDocument;b.a.g.get(i,u)||(b.a.g.set(i,u,!0),b.a.B(i,"selectionchange",h)),b.a.g.set(e,l,t)};b.c.textInput={init:function(t,a,c){function u(e,i){b.a.B(t,e,i)}function l(){f||(p=t.value,f=b.a.setTimeout(h,4))}function h(){clearTimeout(f),p=f=e;var i=t.value;m!==i&&(m=i,b.m.eb(a(),c,"textInput",i))}var f,p,m=t.value,_=9==b.a.W?l:h,Z=!1;o&&u("keypress",h),11>o&&u("propertychange",(function(e){Z||"value"!==e.propertyName||_(e)})),8==o&&(u("keyup",h),u("keydown",h)),d&&(d(t,_),u("dragend",l)),(!o||9<=o)&&u("input",_),5>n&&"textarea"===b.a.R(t)?(u("keydown",l),u("paste",l),u("cut",l)):11>i?u("keydown",l):4>r?(u("DOMAutoComplete",h),u("dragdrop",h),u("drop",h)):s&&"number"===t.type&&u("keydown",l),u("change",h),u("blur",h),b.o((function i(){var n=b.a.f(a());null!==n&&n!==e||(n=""),p!==e&&n===p?b.a.setTimeout(i,4):t.value!==n&&(Z=!0,t.value=n,Z=!1,m=t.value)}),null,{l:t})}},b.m.wa.textInput=!0,b.c.textinput={preprocess:function(e,t,i){i("textInput",e)}}}(),b.c.uniqueName={init:function(e,t){if(t()){var i="ko_unique_"+ ++b.c.uniqueName.rd;b.a.Yc(e,i)}}},b.c.uniqueName.rd=0,b.c.using={init:function(e,t,i,n,r){var o;return i.has("as")&&(o={as:i.get("as"),noChildContext:i.get("noChildContext")}),t=r.createChildContext(t,o),b.Oa(t,e),{controlsDescendantBindings:!0}}},b.h.ea.using=!0,b.c.value={init:function(t,i,n){var r=b.a.R(t),o="input"==r;if(!o||"checkbox"!=t.type&&"radio"!=t.type){var s=[],a=n.get("valueUpdate"),c=!1,u=null;a&&(s="string"==typeof a?[a]:b.a.wc(a),b.a.Pa(s,"change"));var l,h,d=function(){u=null,c=!1;var e=i(),r=b.w.M(t);b.m.eb(e,n,"value",r)};!b.a.W||!o||"text"!=t.type||"off"==t.autocomplete||t.form&&"off"==t.form.autocomplete||-1!=b.a.A(s,"propertychange")||(b.a.B(t,"propertychange",(function(){c=!0})),b.a.B(t,"focus",(function(){c=!1})),b.a.B(t,"blur",(function(){c&&d()}))),b.a.D(s,(function(e){var i=d;b.a.Ud(e,"after")&&(i=function(){u=b.w.M(t),b.a.setTimeout(d,0)},e=e.substring(5)),b.a.B(t,e,i)})),l=o&&"file"==t.type?function(){var n=b.a.f(i());null===n||n===e||""===n?t.value="":b.u.G(d)}:function(){var o=b.a.f(i()),s=b.w.M(t);null!==u&&o===u?b.a.setTimeout(l,0):o===s&&s!==e||("select"===r?(s=n.get("valueAllowUnset"),b.w.cb(t,o,s),s||o===b.w.M(t)||b.u.G(d)):b.w.cb(t,o))},"select"===r?b.i.subscribe(t,b.i.H,(function(){h?n.get("valueAllowUnset")?l():d():(b.a.B(t,"change",d),h=b.o(l,null,{l:t}))}),null,{notifyImmediately:!0}):(b.a.B(t,"change",d),b.o(l,null,{l:t}))}else b.ib(t,{checkedValue:i})},update:function(){}},b.m.wa.value=!0,b.c.visible={update:function(e,t){var i=b.a.f(t()),n="none"!=e.style.display;i&&!n?e.style.display="":!i&&n&&(e.style.display="none")}},b.c.hidden={update:function(e,t){b.c.visible.update(e,(function(){return!b.a.f(t())}))}},function(e){b.c[e]={init:function(t,i,n,r,o){return b.c.event.init.call(this,t,(function(){var t={};return t[e]=i(),t}),n,r,o)}}}("click"),b.ca=function(){},b.ca.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource")},b.ca.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock")},b.ca.prototype.makeTemplateSource=function(e,t){if("string"==typeof e){var n=(t=t||i).getElementById(e);if(!n)throw Error("Cannot find template with ID "+e);return new b.C.F(n)}if(1==e.nodeType||8==e.nodeType)return new b.C.ia(e);throw Error("Unknown template type: "+e)},b.ca.prototype.renderTemplate=function(e,t,i,n){return e=this.makeTemplateSource(e,n),this.renderTemplateSource(e,t,i,n)},b.ca.prototype.isTemplateRewritten=function(e,t){return!1===this.allowTemplateRewriting||this.makeTemplateSource(e,t).data("isRewritten")},b.ca.prototype.rewriteTemplate=function(e,t,i){t=t((e=this.makeTemplateSource(e,i)).text()),e.text(t),e.data("isRewritten",!0)},b.b("templateEngine",b.ca),b.kc=function(){function e(e,t,i,n){e=b.m.ac(e);for(var r=b.m.Ra,o=0;o<e.length;o++){var s=e[o].key;if(Object.prototype.hasOwnProperty.call(r,s)){var a=r[s];if("function"==typeof a){if(s=a(e[o].value))throw Error(s)}else if(!a)throw Error("This template engine does not support the '"+s+"' binding within its templates")}}return i="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+b.m.vb(e,{valueAccessors:!0})+" } })()},'"+i.toLowerCase()+"')",n.createJavaScriptEvaluatorBlock(i)+t}var t=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'|[^>]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,i=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{xd:function(e,t,i){t.isTemplateRewritten(e,i)||t.rewriteTemplate(e,(function(e){return b.kc.Ld(e,t)}),i)},Ld:function(n,r){return n.replace(t,(function(t,i,n,o,s){return e(s,i,n,r)})).replace(i,(function(t,i){return e(i,"\x3c!-- ko --\x3e","#comment",r)}))},md:function(e,t){return b.aa.Xb((function(i,n){var r=i.nextSibling;r&&r.nodeName.toLowerCase()===t&&b.ib(r,e,n)}))}}}(),b.b("__tr_ambtns",b.kc.md),function(){b.C={},b.C.F=function(e){if(this.F=e){var t=b.a.R(e);this.ab="script"===t?1:"textarea"===t?2:"template"==t&&e.content&&11===e.content.nodeType?3:4}},b.C.F.prototype.text=function(){var e=1===this.ab?"text":2===this.ab?"value":"innerHTML";if(0==arguments.length)return this.F[e];var t=arguments[0];"innerHTML"===e?b.a.fc(this.F,t):this.F[e]=t};var t=b.a.g.Z()+"_";b.C.F.prototype.data=function(e){if(1===arguments.length)return b.a.g.get(this.F,t+e);b.a.g.set(this.F,t+e,arguments[1])};var i=b.a.g.Z();b.C.F.prototype.nodes=function(){var t=this.F;if(0==arguments.length){var n=b.a.g.get(t,i)||{},r=n.lb||(3===this.ab?t.content:4===this.ab?t:e);if(!r||n.jd){var o=this.text();o&&o!==n.bb&&(r=b.a.Md(o,t.ownerDocument),b.a.g.set(t,i,{lb:r,bb:o,jd:!0}))}return r}n=arguments[0],this.ab!==e&&this.text(""),b.a.g.set(t,i,{lb:n})},b.C.ia=function(e){this.F=e},b.C.ia.prototype=new b.C.F,b.C.ia.prototype.constructor=b.C.ia,b.C.ia.prototype.text=function(){if(0==arguments.length){var t=b.a.g.get(this.F,i)||{};return t.bb===e&&t.lb&&(t.bb=t.lb.innerHTML),t.bb}b.a.g.set(this.F,i,{bb:arguments[0]})},b.b("templateSources",b.C),b.b("templateSources.domElement",b.C.F),b.b("templateSources.anonymousTemplate",b.C.ia)}(),function(){function t(e,t,i){var n;for(t=b.h.nextSibling(t);e&&(n=e)!==t;)i(n,e=b.h.nextSibling(n))}function i(e,i){if(e.length){var n=e[0],r=e[e.length-1],o=n.parentNode,s=b.ga.instance,a=s.preprocessNode;if(a){if(t(n,r,(function(e,t){var i=e.previousSibling,o=a.call(s,e);o&&(e===n&&(n=o[0]||t),e===r&&(r=o[o.length-1]||i))})),e.length=0,!n)return;n===r?e.push(n):(e.push(n,r),b.a.Ua(e,o))}t(n,r,(function(e){1!==e.nodeType&&8!==e.nodeType||b.vc(i,e)})),t(n,r,(function(e){1!==e.nodeType&&8!==e.nodeType||b.aa.cd(e,[i])})),b.a.Ua(e,o)}}function n(e){return e.nodeType?e:0<e.length?e[0]:null}function r(e,t,r,o,a){a=a||{};var c=(e&&n(e)||r||{}).ownerDocument,u=a.templateEngine||s;if(b.kc.xd(r,u,c),"number"!=typeof(r=u.renderTemplate(r,o,a,c)).length||0<r.length&&"number"!=typeof r[0].nodeType)throw Error("Template engine must return an array of DOM nodes");switch(c=!1,t){case"replaceChildren":b.h.va(e,r),c=!0;break;case"replaceNode":b.a.Xc(e,r),c=!0;break;case"ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+t)}return c&&(i(r,o),a.afterRender&&b.u.G(a.afterRender,null,[r,o[a.as||"$data"]]),"replaceChildren"==t&&b.i.ma(e,b.i.H)),r}function o(e,t,i){return b.O(e)?e():"function"==typeof e?e(t,i):e}var s;b.gc=function(t){if(t!=e&&!(t instanceof b.ca))throw Error("templateEngine must inherit from ko.templateEngine");s=t},b.dc=function(t,i,a,c,u){if(((a=a||{}).templateEngine||s)==e)throw Error("Set a template engine before calling renderTemplate");if(u=u||"replaceChildren",c){var l=n(c);return b.$((function(){var e=i&&i instanceof b.fa?i:new b.fa(i,null,null,null,{exportDependencies:!0}),s=o(t,e.$data,e);e=r(c,u,s,e,a),"replaceNode"==u&&(l=n(c=e))}),null,{Sa:function(){return!l||!b.a.Sb(l)},l:l&&"replaceNode"==u?l.parentNode:l})}return b.aa.Xb((function(e){b.dc(t,i,a,e,"replaceNode")}))},b.Qd=function(t,n,s,a,c){function u(e,t){b.u.G(b.a.ec,null,[a,e,h,s,l,t]),b.i.ma(a,b.i.H)}function l(e,t){i(t,d),s.afterRender&&s.afterRender(t,e),d=null}function h(e,i){d=c.createChildContext(e,{as:f,noChildContext:s.noChildContext,extend:function(e){e.$index=i,f&&(e[f+"Index"]=i)}});var n=o(t,e,d);return r(a,"ignoreTargetNode",n,d,s)}var d,f=s.as,p=!1===s.includeDestroyed||b.options.foreachHidesDestroyed&&!s.includeDestroyed;if(p||s.beforeRemove||!b.Pc(n))return b.$((function(){var t=b.a.f(n)||[];void 0===t.length&&(t=[t]),p&&(t=b.a.jb(t,(function(t){return t===e||null===t||!b.a.f(t._destroy)}))),u(t)}),null,{l:a});u(n.v());var m=n.subscribe((function(e){u(n(),e)}),null,"arrayChange");return m.l(a),m};var a=b.a.g.Z(),c=b.a.g.Z();b.c.template={init:function(e,t){var i=b.a.f(t());if("string"==typeof i||"name"in i)b.h.Ea(e);else if("nodes"in i){if(i=i.nodes||[],b.O(i))throw Error('The "nodes" option must be a plain, non-observable array.');var n=i[0]&&i[0].parentNode;n&&b.a.g.get(n,c)||(n=b.a.Yb(i),b.a.g.set(n,c,!0)),new b.C.ia(e).nodes(n)}else{if(!(0<(i=b.h.childNodes(e)).length))throw Error("Anonymous template defined, but no template content was provided");n=b.a.Yb(i),new b.C.ia(e).nodes(n)}return{controlsDescendantBindings:!0}},update:function(t,i,n,r,o){var s=i();n=!0,r=null,"string"==typeof(i=b.a.f(s))?i={}:(s="name"in i?i.name:t,"if"in i&&(n=b.a.f(i.if)),n&&"ifnot"in i&&(n=!b.a.f(i.ifnot)),n&&!s&&(n=!1)),"foreach"in i?r=b.Qd(s,n&&i.foreach||[],i,t,o):n?(n=o,"data"in i&&(n=o.createChildContext(i.data,{as:i.as,noChildContext:i.noChildContext,exportDependencies:!0})),r=b.dc(s,n,i,t)):b.h.Ea(t),o=r,(i=b.a.g.get(t,a))&&"function"==typeof i.s&&i.s(),b.a.g.set(t,a,!o||o.ja&&!o.ja()?e:o)}},b.m.Ra.template=function(e){return 1==(e=b.m.ac(e)).length&&e[0].unknown||b.m.Id(e,"name")?null:"This template engine does not support anonymous templates nested within its templates"},b.h.ea.template=!0}(),b.b("setTemplateEngine",b.gc),b.b("renderTemplate",b.dc),b.a.Kc=function(e,t,i){var n,r,o,s,a;if(e.length&&t.length)for(n=r=0;(!i||n<i)&&(s=e[r]);++r){for(o=0;a=t[o];++o)if(s.value===a.value){s.moved=a.index,a.moved=s.index,t.splice(o,1),n=o=0;break}n+=o}},b.a.Pb=function(){function e(e,t,i,n,r){var o,s,a,c,u,l=Math.min,h=Math.max,d=[],f=e.length,p=t.length,m=p-f||1,_=f+p+1;for(o=0;o<=f;o++)for(c=a,d.push(a=[]),u=l(p,o+m),s=h(0,o-1);s<=u;s++)a[s]=s?o?e[o-1]===t[s-1]?c[s-1]:l(c[s]||_,a[s-1]||_)+1:s+1:o+1;for(l=[],h=[],m=[],o=f,s=p;o||s;)p=d[o][s]-1,s&&p===d[o][s-1]?h.push(l[l.length]={status:i,value:t[--s],index:s}):o&&p===d[o-1][s]?m.push(l[l.length]={status:n,value:e[--o],index:o}):(--s,--o,r.sparse||l.push({status:"retained",value:t[s]}));return b.a.Kc(m,h,!r.dontLimitMoves&&10*f),l.reverse()}return function(t,i,n){return n="boolean"==typeof n?{dontLimitMoves:n}:n||{},i=i||[],(t=t||[]).length<i.length?e(t,i,"added","deleted",n):e(i,t,"deleted","added",n)}}(),b.b("utils.compareArrays",b.a.Pb),function(){function t(t,i,n,r,o){var s=[],a=b.$((function(){var e=i(n,o,b.a.Ua(s,t))||[];0<s.length&&(b.a.Xc(s,e),r&&b.u.G(r,null,[n,e,o])),s.length=0,b.a.Nb(s,e)}),null,{l:t,Sa:function(){return!b.a.kd(s)}});return{Y:s,$:a.ja()?a:e}}var i=b.a.g.Z(),n=b.a.g.Z();b.a.ec=function(r,o,s,a,c,u){function l(e){f={Aa:e,pb:b.ta(w++)},y.push(f),g||x.push(f)}function h(e){f=Z[e],w!==f.pb.v()&&E.push(f),f.pb(w++),b.a.Ua(f.Y,r),y.push(f)}function d(e,t){if(e)for(var i=0,n=t.length;i<n;i++)b.a.D(t[i].Y,(function(n){e(n,i,t[i].Aa)}))}void 0===(o=o||[]).length&&(o=[o]),a=a||{};var f,p,m,_,Z=b.a.g.get(r,i),g=!Z,y=[],A=0,w=0,v=[],T=[],C=[],E=[],x=[],S=0;if(g)b.a.D(o,l);else{if(!u||Z&&Z._countWaitingForRemove){var O=b.a.Mb(Z,(function(e){return e.Aa}));u=b.a.Pb(O,o,{dontLimitMoves:a.dontLimitMoves,sparse:!0})}var I,D,P;for(O=0;I=u[O];O++)switch(D=I.moved,P=I.index,I.status){case"deleted":for(;A<P;)h(A++);D===e&&((f=Z[A]).$&&(f.$.s(),f.$=e),b.a.Ua(f.Y,r).length&&(a.beforeRemove&&(y.push(f),S++,f.Aa===n?f=null:C.push(f)),f&&v.push.apply(v,f.Y))),A++;break;case"added":for(;w<P;)h(A++);D!==e?(T.push(y.length),h(D)):l(I.value)}for(;w<o.length;)h(A++);y._countWaitingForRemove=S}b.a.g.set(r,i,y),d(a.beforeMove,E),b.a.D(v,a.beforeRemove?b.oa:b.removeNode);try{_=r.ownerDocument.activeElement}catch(e){}if(T.length)for(;(O=T.shift())!=e;){for(f=y[O],p=e;O;)if((m=y[--O].Y)&&m.length){p=m[m.length-1];break}for(o=0;A=f.Y[o];p=A,o++)b.h.Wb(r,A,p)}for(O=0;f=y[O];O++){for(f.Y||b.a.extend(f,t(r,s,f.Aa,c,f.pb)),o=0;A=f.Y[o];p=A,o++)b.h.Wb(r,A,p);!f.Ed&&c&&(c(f.Aa,f.Y,f.pb),f.Ed=!0,p=f.Y[f.Y.length-1])}for(_&&r.ownerDocument.activeElement!=_&&_.focus(),d(a.beforeRemove,C),O=0;O<C.length;++O)C[O].Aa=n;d(a.afterMove,E),d(a.afterAdd,x)}}(),b.b("utils.setDomNodeChildrenFromArrayMapping",b.a.ec),b.ba=function(){this.allowTemplateRewriting=!1},b.ba.prototype=new b.ca,b.ba.prototype.constructor=b.ba,b.ba.prototype.renderTemplateSource=function(e,t,i,n){return(t=9>b.a.W||!e.nodes?null:e.nodes())?b.a.la(t.cloneNode(!0).childNodes):(e=e.text(),b.a.ua(e,n))},b.ba.Ma=new b.ba,b.gc(b.ba.Ma),b.b("nativeTemplateEngine",b.ba),function(){b.$a=function(){var e=this.Hd=function(){if(!r||!r.tmpl)return 0;try{if(0<=r.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(e){}return 1}();this.renderTemplateSource=function(t,n,o,s){if(s=s||i,o=o||{},2>e)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var a=t.data("precompiled");return a||(a=t.text()||"",a=r.template(null,"{{ko_with $item.koBindingContext}}"+a+"{{/ko_with}}"),t.data("precompiled",a)),t=[n.$data],n=r.extend({koBindingContext:n},o.templateOptions),(n=r.tmpl(a,t,n)).appendTo(s.createElement("div")),r.fragments={},n},this.createJavaScriptEvaluatorBlock=function(e){return"{{ko_code ((function() { return "+e+" })()) }}"},this.addTemplate=function(e,t){i.write("<script type='text/html' id='"+e+"'>"+t+"<\/script>")},0<e&&(r.tmpl.tag.ko_code={open:"__.push($1 || '');"},r.tmpl.tag.ko_with={open:"with($1) {",close:"} "})},b.$a.prototype=new b.ca,b.$a.prototype.constructor=b.$a;var e=new b.$a;0<e.Hd&&b.gc(e),b.b("jqueryTmplTemplateEngine",b.$a)}()}))}();var r=ko;"undefined"!=typeof window?(ko=window.ko,void 0!==n?window.ko=n:delete window.ko):(ko=global.ko,void 0!==n?global.ko=n:delete global.ko);const o=r},687256:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n="__knockoutObservables",r="__knockoutSubscribable";function o(e,t){if(!e)throw new Error("When calling ko.track, you must pass an object as the first parameter.");var i=this,o=s(e,!0);return(t=t||Object.getOwnPropertyNames(e)).forEach((function(t){if(t!==n&&t!==r&&!(t in o)){var s=e[t],a=s instanceof Array,c=i.isObservable(s)?s:a?i.observableArray(s):i.observable(s);Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:c,set:i.isWriteableObservable(c)?c:void 0}),o[t]=c,a&&function(e,t){var i=null;e.computed((function(){i&&(i.dispose(),i=null);var n=t();n instanceof Array&&(i=function(e,t,i){return function(e,t){var i=t.__knockoutSubscribable;if(!i){i=new e.subscribable,Object.defineProperty(t,r,{value:i});var n={};!function(e,t,i){["pop","push","reverse","shift","sort","splice","unshift"].forEach((function(n){var r=e[n];e[n]=function(){var e=r.apply(this,arguments);return!0!==i.pause&&t.notifySubscribers(this),e}}))}(t,i,n),function(e,t,i,n){["remove","removeAll","destroy","destroyAll","replace"].forEach((function(r){Object.defineProperty(t,r,{enumerable:!1,value:function(){var o;n.pause=!0;try{o=e.observableArray.fn[r].apply(e.observableArray(t),arguments)}finally{n.pause=!1}return i.notifySubscribers(t),o}})}))}(e,t,i,n)}return i}(e,i).subscribe(t)}(e,t,n))}))}(i,c)}})),e}function s(e,t){var i=e.__knockoutObservables;return!i&&t&&(i={},Object.defineProperty(e,n,{value:i})),i}function a(e,t,i){var n={owner:e,deferEvaluation:!0};if("function"==typeof i)n.read=i;else{if("value"in i)throw new Error('For ko.defineProperty, you must not specify a "value" for the property. You must provide a "get" function.');if("function"!=typeof i.get)throw new Error('For ko.defineProperty, the third parameter must be either an evaluator function, or an options object containing a function called "get".');n.read=i.get,n.write=i.set}return e[t]=this.computed(n),o.call(this,e,[t]),e}function c(e,t){if(!e)return null;var i=s(e,!1);return i&&i[t]||null}function u(e,t){var i=c(e,t);i&&i.valueHasMutated()}const l={attachToKo:function(e){e.track=o,e.getObservable=c,e.valueHasMutated=u,e.defineProperty=a}}},412096:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(787222),r=i(687256),o=i(214798);r.Z.attachToKo(n.Z),o.Z.register(n.Z);const s=n.Z},359202:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Z});var n=i(348764).Buffer;const r=[171,75,84,88,32,50,48,187,13,10,26,10];var o,s,a,c,u,l,h,d,f;(f=o||(o={}))[f.NONE=0]="NONE",f[f.BASISLZ=1]="BASISLZ",f[f.ZSTD=2]="ZSTD",f[f.ZLIB=3]="ZLIB",function(e){e[e.BASICFORMAT=0]="BASICFORMAT"}(s||(s={})),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ETC1S=163]="ETC1S",e[e.UASTC=166]="UASTC"}(a||(a={})),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SRGB=1]="SRGB"}(c||(c={})),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.LINEAR=1]="LINEAR",e[e.SRGB=2]="SRGB",e[e.ITU=3]="ITU",e[e.NTSC=4]="NTSC",e[e.SLOG=5]="SLOG",e[e.SLOG2=6]="SLOG2"}(u||(u={})),function(e){e[e.ALPHA_STRAIGHT=0]="ALPHA_STRAIGHT",e[e.ALPHA_PREMULTIPLIED=1]="ALPHA_PREMULTIPLIED"}(l||(l={})),function(e){e[e.RGB=0]="RGB",e[e.RRR=3]="RRR",e[e.GGG=4]="GGG",e[e.AAA=15]="AAA"}(h||(h={})),function(e){e[e.RGB=0]="RGB",e[e.RGBA=3]="RGBA",e[e.RRR=4]="RRR",e[e.RRRG=5]="RRRG"}(d||(d={}));class p{constructor(){this.vkFormat=0,this.typeSize=1,this.pixelWidth=0,this.pixelHeight=0,this.pixelDepth=0,this.layerCount=0,this.faceCount=1,this.supercompressionScheme=o.NONE,this.levels=[],this.dataFormatDescriptor=[{vendorId:0,descriptorType:s.BASICFORMAT,versionNumber:2,descriptorBlockSize:40,colorModel:a.UNSPECIFIED,colorPrimaries:c.SRGB,transferFunction:c.SRGB,flags:l.ALPHA_STRAIGHT,texelBlockDimension:{x:4,y:4,z:1,w:1},bytesPlane:[],samples:[]}],this.keyValue={},this.globalData=null}}class m{constructor(e,t,i,n){this._dataView=new DataView(e.buffer,e.byteOffset+t,i),this._littleEndian=n,this._offset=0}_nextUint8(){const e=this._dataView.getUint8(this._offset);return this._offset+=1,e}_nextUint16(){const e=this._dataView.getUint16(this._offset,this._littleEndian);return this._offset+=2,e}_nextUint32(){const e=this._dataView.getUint32(this._offset,this._littleEndian);return this._offset+=4,e}_nextUint64(){const e=this._dataView.getUint32(this._offset,this._littleEndian)+2**32*this._dataView.getUint32(this._offset+4,this._littleEndian);return this._offset+=8,e}_skip(e){return this._offset+=e,this}_scan(e,t=0){const i=this._offset;let n=0;for(;this._dataView.getUint8(this._offset)!==t&&n<e;)n++,this._offset++;return n<e&&this._offset++,new Uint8Array(this._dataView.buffer,this._dataView.byteOffset+i,n)}}function _(e){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(e):n.from(e).toString("utf8")}function Z(e){const t=new Uint8Array(e.buffer,e.byteOffset,r.length);if(t[0]!==r[0]||t[1]!==r[1]||t[2]!==r[2]||t[3]!==r[3]||t[4]!==r[4]||t[5]!==r[5]||t[6]!==r[6]||t[7]!==r[7]||t[8]!==r[8]||t[9]!==r[9]||t[10]!==r[10]||t[11]!==r[11])throw new Error("Missing KTX 2.0 identifier.");const i=new p,n=17*Uint32Array.BYTES_PER_ELEMENT,o=new m(e,r.length,n,!0);i.vkFormat=o._nextUint32(),i.typeSize=o._nextUint32(),i.pixelWidth=o._nextUint32(),i.pixelHeight=o._nextUint32(),i.pixelDepth=o._nextUint32(),i.layerCount=o._nextUint32(),i.faceCount=o._nextUint32();const s=o._nextUint32();i.supercompressionScheme=o._nextUint32();const a=o._nextUint32(),c=o._nextUint32(),u=o._nextUint32(),l=o._nextUint32(),h=o._nextUint64(),d=o._nextUint64(),f=new m(e,r.length+n,3*s*8,!0);for(let t=0;t<s;t++)i.levels.push({levelData:new Uint8Array(e.buffer,e.byteOffset+f._nextUint64(),f._nextUint64()),uncompressedByteLength:f._nextUint64()});const Z=new m(e,a,c,!0),g={vendorId:Z._skip(4)._nextUint16(),descriptorType:Z._nextUint16(),versionNumber:Z._nextUint16(),descriptorBlockSize:Z._nextUint16(),colorModel:Z._nextUint8(),colorPrimaries:Z._nextUint8(),transferFunction:Z._nextUint8(),flags:Z._nextUint8(),texelBlockDimension:{x:Z._nextUint8()+1,y:Z._nextUint8()+1,z:Z._nextUint8()+1,w:Z._nextUint8()+1},bytesPlane:[Z._nextUint8(),Z._nextUint8(),Z._nextUint8(),Z._nextUint8(),Z._nextUint8(),Z._nextUint8(),Z._nextUint8(),Z._nextUint8()],samples:[]},y=(g.descriptorBlockSize/4-6)/4;for(let e=0;e<y;e++)g.samples[e]={bitOffset:Z._nextUint16(),bitLength:Z._nextUint8(),channelID:Z._nextUint8(),samplePosition:[Z._nextUint8(),Z._nextUint8(),Z._nextUint8(),Z._nextUint8()],sampleLower:Z._nextUint32(),sampleUpper:Z._nextUint32()};i.dataFormatDescriptor.length=0,i.dataFormatDescriptor.push(g);const b=new m(e,u,l,!0);for(;b._offset<l;){const e=b._nextUint32(),t=b._scan(e),n=_(t),r=b._scan(e-t.byteLength);i.keyValue[n]=n.match(/^ktx/i)?_(r):r,b._offset%4&&b._skip(4-b._offset%4)}if(d<=0)return i;const A=new m(e,h,d,!0),w=A._nextUint16(),v=A._nextUint16(),T=A._nextUint32(),C=A._nextUint32(),E=A._nextUint32(),x=A._nextUint32(),S=[];for(let e=0;e<s;e++)S.push({imageFlags:A._nextUint32(),rgbSliceByteOffset:A._nextUint32(),rgbSliceByteLength:A._nextUint32(),alphaSliceByteOffset:A._nextUint32(),alphaSliceByteLength:A._nextUint32()});const O=h+A._offset,I=O+T,D=I+C,P=D+E,R=new Uint8Array(e.buffer,e.byteOffset+O,T),B=new Uint8Array(e.buffer,e.byteOffset+I,C),M=new Uint8Array(e.buffer,e.byteOffset+D,E),L=new Uint8Array(e.buffer,e.byteOffset+P,x);return i.globalData={endpointCount:w,selectorCount:v,imageDescs:S,endpointsData:R,selectorsData:B,tablesData:M,extendedData:L},i}},545973:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});var n=(0,i(614955).c)((function(e){!function(){var t,i,n,r,o,s,a,c,u,l,h,d,f,p,m,_,Z=(t={defaultNoDataValue:-34027999387901484e22,decode:function(e,s){var a=(s=s||{}).encodedMaskData||null===s.encodedMaskData,c=o(e,s.inputOffset||0,a),u=null!==s.noDataValue?s.noDataValue:t.defaultNoDataValue,l=i(c,s.pixelType||Float32Array,s.encodedMaskData,u,s.returnMask),h={width:c.width,height:c.height,pixelData:l.resultPixels,minValue:l.minValue,maxValue:c.pixels.maxValue,noDataValue:u};return l.resultMask&&(h.maskData=l.resultMask),s.returnEncodedMask&&c.mask&&(h.encodedMaskData=c.mask.bitset?c.mask.bitset:null),s.returnFileInfo&&(h.fileInfo=n(c),s.computeUsedBitDepths&&(h.fileInfo.bitDepths=r(c))),h}},i=function(e,t,i,n,r){var o,a,c,u=0,l=e.pixels.numBlocksX,h=e.pixels.numBlocksY,d=Math.floor(e.width/l),f=Math.floor(e.height/h),p=2*e.maxZError,m=Number.MAX_VALUE;i=i||(e.mask?e.mask.bitset:null),a=new t(e.width*e.height),r&&i&&(c=new Uint8Array(e.width*e.height));for(var _,Z,g=new Float32Array(d*f),y=0;y<=h;y++){var b=y!==h?f:e.height%h;if(0!==b)for(var A=0;A<=l;A++){var w=A!==l?d:e.width%l;if(0!==w){var v,T,C,E,x=y*e.width*f+A*d,S=e.width-w,O=e.pixels.blocks[u];if(O.encoding<2?(0===O.encoding?v=O.rawData:(s(O.stuffedData,O.bitsPerPixel,O.numValidPixels,O.offset,p,g,e.pixels.maxValue),v=g),T=0):C=2===O.encoding?0:O.offset,i)for(Z=0;Z<b;Z++){for(7&x&&(E=i[x>>3],E<<=7&x),_=0;_<w;_++)7&x||(E=i[x>>3]),128&E?(c&&(c[x]=1),m=m>(o=O.encoding<2?v[T++]:C)?o:m,a[x++]=o):(c&&(c[x]=0),a[x++]=n),E<<=1;x+=S}else if(O.encoding<2)for(Z=0;Z<b;Z++){for(_=0;_<w;_++)m=m>(o=v[T++])?o:m,a[x++]=o;x+=S}else for(m=m>C?C:m,Z=0;Z<b;Z++){for(_=0;_<w;_++)a[x++]=C;x+=S}if(1===O.encoding&&T!==O.numValidPixels)throw"Block and Mask do not match";u++}}}return{resultPixels:a,resultMask:c,minValue:m}},n=function(e){return{fileIdentifierString:e.fileIdentifierString,fileVersion:e.fileVersion,imageType:e.imageType,height:e.height,width:e.width,maxZError:e.maxZError,eofOffset:e.eofOffset,mask:e.mask?{numBlocksX:e.mask.numBlocksX,numBlocksY:e.mask.numBlocksY,numBytes:e.mask.numBytes,maxValue:e.mask.maxValue}:null,pixels:{numBlocksX:e.pixels.numBlocksX,numBlocksY:e.pixels.numBlocksY,numBytes:e.pixels.numBytes,maxValue:e.pixels.maxValue,noDataValue:e.noDataValue}}},r=function(e){for(var t=e.pixels.numBlocksX*e.pixels.numBlocksY,i={},n=0;n<t;n++){var r=e.pixels.blocks[n];0===r.encoding?i.float32=!0:1===r.encoding?i[r.bitsPerPixel]=!0:i[0]=!0}return Object.keys(i)},o=function(e,t,i){var n={},r=new Uint8Array(e,t,10);if(n.fileIdentifierString=String.fromCharCode.apply(null,r),"CntZImage"!==n.fileIdentifierString.trim())throw"Unexpected file identifier string: "+n.fileIdentifierString;t+=10;var o=new DataView(e,t,24);if(n.fileVersion=o.getInt32(0,!0),n.imageType=o.getInt32(4,!0),n.height=o.getUint32(8,!0),n.width=o.getUint32(12,!0),n.maxZError=o.getFloat64(16,!0),t+=24,!i)if(o=new DataView(e,t,16),n.mask={},n.mask.numBlocksY=o.getUint32(0,!0),n.mask.numBlocksX=o.getUint32(4,!0),n.mask.numBytes=o.getUint32(8,!0),n.mask.maxValue=o.getFloat32(12,!0),t+=16,n.mask.numBytes>0){var s=new Uint8Array(Math.ceil(n.width*n.height/8)),a=(o=new DataView(e,t,n.mask.numBytes)).getInt16(0,!0),c=2,u=0;do{if(a>0)for(;a--;)s[u++]=o.getUint8(c++);else{var l=o.getUint8(c++);for(a=-a;a--;)s[u++]=l}a=o.getInt16(c,!0),c+=2}while(c<n.mask.numBytes);if(-32768!==a||u<s.length)throw"Unexpected end of mask RLE encoding";n.mask.bitset=s,t+=n.mask.numBytes}else 0==(n.mask.numBytes|n.mask.numBlocksY|n.mask.maxValue)&&(n.mask.bitset=new Uint8Array(Math.ceil(n.width*n.height/8)));o=new DataView(e,t,16),n.pixels={},n.pixels.numBlocksY=o.getUint32(0,!0),n.pixels.numBlocksX=o.getUint32(4,!0),n.pixels.numBytes=o.getUint32(8,!0),n.pixels.maxValue=o.getFloat32(12,!0),t+=16;var h=n.pixels.numBlocksX,d=n.pixels.numBlocksY,f=h+(n.width%h>0?1:0),p=d+(n.height%d>0?1:0);n.pixels.blocks=new Array(f*p);for(var m=0,_=0;_<p;_++)for(var Z=0;Z<f;Z++){var g=0,y=e.byteLength-t;o=new DataView(e,t,Math.min(10,y));var b={};n.pixels.blocks[m++]=b;var A=o.getUint8(0);if(g++,b.encoding=63&A,b.encoding>3)throw"Invalid block encoding ("+b.encoding+")";if(2!==b.encoding){if(0!==A&&2!==A){if(A>>=6,b.offsetType=A,2===A)b.offset=o.getInt8(1),g++;else if(1===A)b.offset=o.getInt16(1,!0),g+=2;else{if(0!==A)throw"Invalid block offset type";b.offset=o.getFloat32(1,!0),g+=4}if(1===b.encoding)if(A=o.getUint8(g),g++,b.bitsPerPixel=63&A,A>>=6,b.numValidPixelsType=A,2===A)b.numValidPixels=o.getUint8(g),g++;else if(1===A)b.numValidPixels=o.getUint16(g,!0),g+=2;else{if(0!==A)throw"Invalid valid pixel count type";b.numValidPixels=o.getUint32(g,!0),g+=4}}var w;if(t+=g,3!==b.encoding)if(0===b.encoding){var v=(n.pixels.numBytes-1)/4;if(v!==Math.floor(v))throw"uncompressed block has invalid length";w=new ArrayBuffer(4*v),new Uint8Array(w).set(new Uint8Array(e,t,4*v));var T=new Float32Array(w);b.rawData=T,t+=4*v}else if(1===b.encoding){var C=Math.ceil(b.numValidPixels*b.bitsPerPixel/8),E=Math.ceil(C/4);w=new ArrayBuffer(4*E),new Uint8Array(w).set(new Uint8Array(e,t,C)),b.stuffedData=new Uint32Array(w),t+=C}}else t++}return n.eofOffset=t,n},s=function(e,t,i,n,r,o,s){var a,c,u,l=(1<<t)-1,h=0,d=0,f=Math.ceil((s-n)/r),p=4*e.length-Math.ceil(t*i/8);for(e[e.length-1]<<=8*p,a=0;a<i;a++){if(0===d&&(u=e[h++],d=32),d>=t)c=u>>>d-t&l,d-=t;else{var m=t-d;c=(u&l)<<m&l,c+=(u=e[h++])>>>(d=32-m)}o[a]=c<f?n+c*r:s}return o},t),g=(a=function(e,t,i,n,r,o,s,a){var c,u,l,h,d,f=(1<<i)-1,p=0,m=0,_=4*e.length-Math.ceil(i*n/8);if(e[e.length-1]<<=8*_,r)for(c=0;c<n;c++)0===m&&(l=e[p++],m=32),m>=i?(u=l>>>m-i&f,m-=i):(u=(l&f)<<(h=i-m)&f,u+=(l=e[p++])>>>(m=32-h)),t[c]=r[u];else for(d=Math.ceil((a-o)/s),c=0;c<n;c++)0===m&&(l=e[p++],m=32),m>=i?(u=l>>>m-i&f,m-=i):(u=(l&f)<<(h=i-m)&f,u+=(l=e[p++])>>>(m=32-h)),t[c]=u<d?o+u*s:a},c=function(e,t,i,n,r,o){var s,a=(1<<t)-1,c=0,u=0,l=0,h=0,d=0,f=[],p=4*e.length-Math.ceil(t*i/8);e[e.length-1]<<=8*p;var m=Math.ceil((o-n)/r);for(u=0;u<i;u++)0===h&&(s=e[c++],h=32),h>=t?(d=s>>>h-t&a,h-=t):(d=(s&a)<<(l=t-h)&a,d+=(s=e[c++])>>>(h=32-l)),f[u]=d<m?n+d*r:o;return f.unshift(n),f},u=function(e,t,i,n,r,o,s,a){var c,u,l,h,d=(1<<i)-1,f=0,p=0,m=0;if(r)for(c=0;c<n;c++)0===p&&(l=e[f++],p=32,m=0),p>=i?(u=l>>>m&d,p-=i,m+=i):(u=l>>>m&d,p=32-(h=i-p),u|=((l=e[f++])&(1<<h)-1)<<i-h,m=h),t[c]=r[u];else{var _=Math.ceil((a-o)/s);for(c=0;c<n;c++)0===p&&(l=e[f++],p=32,m=0),p>=i?(u=l>>>m&d,p-=i,m+=i):(u=l>>>m&d,p=32-(h=i-p),u|=((l=e[f++])&(1<<h)-1)<<i-h,m=h),t[c]=u<_?o+u*s:a}return t},l=function(e,t,i,n,r,o){var s,a=(1<<t)-1,c=0,u=0,l=0,h=0,d=0,f=0,p=[],m=Math.ceil((o-n)/r);for(u=0;u<i;u++)0===h&&(s=e[c++],h=32,f=0),h>=t?(d=s>>>f&a,h-=t,f+=t):(d=s>>>f&a,h=32-(l=t-h),d|=((s=e[c++])&(1<<l)-1)<<t-l,f=l),p[u]=d<m?n+d*r:o;return p.unshift(n),p},h=function(e,t,i,n){var r,o,s,a,c=(1<<i)-1,u=0,l=0,h=4*e.length-Math.ceil(i*n/8);for(e[e.length-1]<<=8*h,r=0;r<n;r++)0===l&&(s=e[u++],l=32),l>=i?(o=s>>>l-i&c,l-=i):(o=(s&c)<<(a=i-l)&c,o+=(s=e[u++])>>>(l=32-a)),t[r]=o;return t},d=function(e,t,i,n){var r,o,s,a,c=(1<<i)-1,u=0,l=0,h=0;for(r=0;r<n;r++)0===l&&(s=e[u++],l=32,h=0),l>=i?(o=s>>>h&c,l-=i,h+=i):(o=s>>>h&c,l=32-(a=i-l),o|=((s=e[u++])&(1<<a)-1)<<i-a,h=a),t[r]=o;return t},f={HUFFMAN_LUT_BITS_MAX:12,computeChecksumFletcher32:function(e){for(var t=65535,i=65535,n=e.length,r=Math.floor(n/2),o=0;r;){var s=r>=359?359:r;r-=s;do{t+=e[o++]<<8,i+=t+=e[o++]}while(--s);t=(65535&t)+(t>>>16),i=(65535&i)+(i>>>16)}return 1&n&&(i+=t+=e[o]<<8),((i=(65535&i)+(i>>>16))<<16|(t=(65535&t)+(t>>>16)))>>>0},readHeaderInfo:function(e,t){var i=t.ptr,n=new Uint8Array(e,i,6),r={};if(r.fileIdentifierString=String.fromCharCode.apply(null,n),0!==r.fileIdentifierString.lastIndexOf("Lerc2",0))throw"Unexpected file identifier string (expect Lerc2 ): "+r.fileIdentifierString;i+=6;var o,s=new DataView(e,i,8),a=s.getInt32(0,!0);if(r.fileVersion=a,i+=4,a>=3&&(r.checksum=s.getUint32(4,!0),i+=4),s=new DataView(e,i,12),r.height=s.getUint32(0,!0),r.width=s.getUint32(4,!0),i+=8,a>=4?(r.numDims=s.getUint32(8,!0),i+=4):r.numDims=1,s=new DataView(e,i,40),r.numValidPixel=s.getUint32(0,!0),r.microBlockSize=s.getInt32(4,!0),r.blobSize=s.getInt32(8,!0),r.imageType=s.getInt32(12,!0),r.maxZError=s.getFloat64(16,!0),r.zMin=s.getFloat64(24,!0),r.zMax=s.getFloat64(32,!0),i+=40,t.headerInfo=r,t.ptr=i,a>=3&&(o=a>=4?52:48,this.computeChecksumFletcher32(new Uint8Array(e,i-o,r.blobSize-14))!==r.checksum))throw"Checksum failed.";return!0},checkMinMaxRanges:function(e,t){var i=t.headerInfo,n=this.getDataTypeArray(i.imageType),r=i.numDims*this.getDataTypeSize(i.imageType),o=this.readSubArray(e,t.ptr,n,r),s=this.readSubArray(e,t.ptr+r,n,r);t.ptr+=2*r;var a,c=!0;for(a=0;a<i.numDims;a++)if(o[a]!==s[a]){c=!1;break}return i.minValues=o,i.maxValues=s,c},readSubArray:function(e,t,i,n){var r;if(i===Uint8Array)r=new Uint8Array(e,t,n);else{var o=new ArrayBuffer(n);new Uint8Array(o).set(new Uint8Array(e,t,n)),r=new i(o)}return r},readMask:function(e,t){var i,n,r=t.ptr,o=t.headerInfo,s=o.width*o.height,a=o.numValidPixel,c=new DataView(e,r,4),u={};if(u.numBytes=c.getUint32(0,!0),r+=4,(0===a||s===a)&&0!==u.numBytes)throw"invalid mask";if(0===a)i=new Uint8Array(Math.ceil(s/8)),u.bitset=i,n=new Uint8Array(s),t.pixels.resultMask=n,r+=u.numBytes;else if(u.numBytes>0){i=new Uint8Array(Math.ceil(s/8));var l=(c=new DataView(e,r,u.numBytes)).getInt16(0,!0),h=2,d=0,f=0;do{if(l>0)for(;l--;)i[d++]=c.getUint8(h++);else for(f=c.getUint8(h++),l=-l;l--;)i[d++]=f;l=c.getInt16(h,!0),h+=2}while(h<u.numBytes);if(-32768!==l||d<i.length)throw"Unexpected end of mask RLE encoding";n=new Uint8Array(s);var p=0,m=0;for(m=0;m<s;m++)7&m?(p=i[m>>3],p<<=7&m):p=i[m>>3],128&p&&(n[m]=1);t.pixels.resultMask=n,u.bitset=i,r+=u.numBytes}return t.ptr=r,t.mask=u,!0},readDataOneSweep:function(e,t,i){var n,r=t.ptr,o=t.headerInfo,s=o.numDims,a=o.width*o.height,c=o.imageType,u=o.numValidPixel*f.getDataTypeSize(c)*s,l=t.pixels.resultMask;if(i===Uint8Array)n=new Uint8Array(e,r,u);else{var h=new ArrayBuffer(u);new Uint8Array(h).set(new Uint8Array(e,r,u)),n=new i(h)}if(n.length===a*s)t.pixels.resultPixels=n;else{t.pixels.resultPixels=new i(a*s);var d=0,p=0,m=0,_=0;if(s>1)for(m=0;m<s;m++)for(_=m*a,p=0;p<a;p++)l[p]&&(t.pixels.resultPixels[_+p]=n[d++]);else for(p=0;p<a;p++)l[p]&&(t.pixels.resultPixels[p]=n[d++])}return r+=u,t.ptr=r,!0},readHuffmanTree:function(e,t){var i=this.HUFFMAN_LUT_BITS_MAX,n=new DataView(e,t.ptr,16);if(t.ptr+=16,n.getInt32(0,!0)<2)throw"unsupported Huffman version";var r=n.getInt32(4,!0),o=n.getInt32(8,!0),s=n.getInt32(12,!0);if(o>=s)return!1;var a=new Uint32Array(s-o);f.decodeBits(e,t,a);var c,u,l,h,d=[];for(c=o;c<s;c++)d[u=c-(c<r?0:r)]={first:a[c-o],second:null};var m=e.byteLength-t.ptr,_=Math.ceil(m/4),Z=new ArrayBuffer(4*_);new Uint8Array(Z).set(new Uint8Array(e,t.ptr,m));var g,y=new Uint32Array(Z),b=0,A=0;for(g=y[0],c=o;c<s;c++)(h=d[u=c-(c<r?0:r)].first)>0&&(d[u].second=g<<b>>>32-h,32-b>=h?32===(b+=h)&&(b=0,g=y[++A]):(b+=h-32,g=y[++A],d[u].second|=g>>>32-b));var w,v=0,T=new p;for(c=0;c<d.length;c++)void 0!==d[c]&&(v=Math.max(v,d[c].first));w=v>=i?i:v,v>=30&&console.log("WARning, large NUM LUT BITS IS "+v);var C,E,x,S,O,I=[];for(c=o;c<s;c++)if((h=d[u=c-(c<r?0:r)].first)>0)if(C=[h,u],h<=w)for(E=d[u].second<<w-h,x=1<<w-h,l=0;l<x;l++)I[E|l]=C;else for(E=d[u].second,O=T,S=h-1;S>=0;S--)E>>>S&1?(O.right||(O.right=new p),O=O.right):(O.left||(O.left=new p),O=O.left),0!==S||O.val||(O.val=C[1]);return{decodeLut:I,numBitsLUTQick:w,numBitsLUT:v,tree:T,stuffedData:y,srcPtr:A,bitPos:b}},readHuffman:function(e,t,i){var n,r,o,s,a,c,u,l,h,d=t.headerInfo,f=d.numDims,p=t.headerInfo.height,m=t.headerInfo.width,_=m*p,Z=this.readHuffmanTree(e,t),g=Z.decodeLut,y=Z.tree,b=Z.stuffedData,A=Z.srcPtr,w=Z.bitPos,v=Z.numBitsLUTQick,T=Z.numBitsLUT,C=0===t.headerInfo.imageType?128:0,E=t.pixels.resultMask,x=0;w>0&&(A++,w=0);var S,O=b[A],I=1===t.encodeMode,D=new i(_*f),P=D;for(S=0;S<d.numDims;S++){if(f>1&&(P=new i(D.buffer,_*S,_),x=0),t.headerInfo.numValidPixel===m*p)for(l=0,c=0;c<p;c++)for(u=0;u<m;u++,l++){if(r=0,a=s=O<<w>>>32-v,32-w<v&&(a=s|=b[A+1]>>>64-w-v),g[a])r=g[a][1],w+=g[a][0];else for(a=s=O<<w>>>32-T,32-w<T&&(a=s|=b[A+1]>>>64-w-T),n=y,h=0;h<T;h++)if(!(n=s>>>T-h-1&1?n.right:n.left).left&&!n.right){r=n.val,w=w+h+1;break}w>=32&&(w-=32,O=b[++A]),o=r-C,I?(o+=u>0?x:c>0?P[l-m]:x,o&=255,P[l]=o,x=o):P[l]=o}else for(l=0,c=0;c<p;c++)for(u=0;u<m;u++,l++)if(E[l]){if(r=0,a=s=O<<w>>>32-v,32-w<v&&(a=s|=b[A+1]>>>64-w-v),g[a])r=g[a][1],w+=g[a][0];else for(a=s=O<<w>>>32-T,32-w<T&&(a=s|=b[A+1]>>>64-w-T),n=y,h=0;h<T;h++)if(!(n=s>>>T-h-1&1?n.right:n.left).left&&!n.right){r=n.val,w=w+h+1;break}w>=32&&(w-=32,O=b[++A]),o=r-C,I?(u>0&&E[l-1]?o+=x:c>0&&E[l-m]?o+=P[l-m]:o+=x,o&=255,P[l]=o,x=o):P[l]=o}t.ptr=t.ptr+4*(A+1)+(w>0?4:0)}t.pixels.resultPixels=D},decodeBits:function(e,t,i,n,r){var o=t.headerInfo,s=o.fileVersion,f=0,p=new DataView(e,t.ptr,5),m=p.getUint8(0);f++;var _=m>>6,Z=0===_?4:3-_,g=(32&m)>0,y=31&m,b=0;if(1===Z)b=p.getUint8(f),f++;else if(2===Z)b=p.getUint16(f,!0),f+=2;else{if(4!==Z)throw"Invalid valid pixel count type";b=p.getUint32(f,!0),f+=4}var A,w,v,T,C,E,x,S,O,I=2*o.maxZError,D=o.numDims>1?o.maxValues[r]:o.zMax;if(g){for(t.counter.lut++,S=p.getUint8(f),f++,T=Math.ceil((S-1)*y/8),C=Math.ceil(T/4),w=new ArrayBuffer(4*C),v=new Uint8Array(w),t.ptr+=f,v.set(new Uint8Array(e,t.ptr,T)),x=new Uint32Array(w),t.ptr+=T,O=0;S-1>>>O;)O++;T=Math.ceil(b*O/8),C=Math.ceil(T/4),w=new ArrayBuffer(4*C),(v=new Uint8Array(w)).set(new Uint8Array(e,t.ptr,T)),A=new Uint32Array(w),t.ptr+=T,E=s>=3?l(x,y,S-1,n,I,D):c(x,y,S-1,n,I,D),s>=3?u(A,i,O,b,E):a(A,i,O,b,E)}else t.counter.bitstuffer++,O=y,t.ptr+=f,O>0&&(T=Math.ceil(b*O/8),C=Math.ceil(T/4),w=new ArrayBuffer(4*C),(v=new Uint8Array(w)).set(new Uint8Array(e,t.ptr,T)),A=new Uint32Array(w),t.ptr+=T,s>=3?null==n?d(A,i,O,b):u(A,i,O,b,!1,n,I,D):null==n?h(A,i,O,b):a(A,i,O,b,!1,n,I,D))},readTiles:function(e,t,i){var n=t.headerInfo,r=n.width,o=n.height,s=n.microBlockSize,a=n.imageType,c=f.getDataTypeSize(a),u=Math.ceil(r/s),l=Math.ceil(o/s);t.pixels.numBlocksY=l,t.pixels.numBlocksX=u,t.pixels.ptr=0;var h,d,p,m,_,Z,g,y,b=0,A=0,w=0,v=0,T=0,C=0,E=0,x=0,S=0,O=0,I=0,D=0,P=0,R=0,B=0,M=new i(s*s),L=o%s||s,N=r%s||s,F=n.numDims,k=t.pixels.resultMask,U=t.pixels.resultPixels;for(w=0;w<l;w++)for(T=w!==l-1?s:L,v=0;v<u;v++)for(O=w*r*s+v*s,I=r-(C=v!==u-1?s:N),y=0;y<F;y++){if(F>1&&(U=new i(t.pixels.resultPixels.buffer,r*o*y*c,r*o)),E=e.byteLength-t.ptr,d={},B=0,B++,S=(x=(h=new DataView(e,t.ptr,Math.min(10,E))).getUint8(0))>>6&255,(x>>2&15)!=(v*s>>3&15))throw"integrity issue";if((_=3&x)>3)throw t.ptr+=B,"Invalid block encoding ("+_+")";if(2!==_)if(0===_){if(t.counter.uncompressed++,t.ptr+=B,D=(D=T*C*c)<(P=e.byteLength-t.ptr)?D:P,p=new ArrayBuffer(D%c==0?D:D+c-D%c),new Uint8Array(p).set(new Uint8Array(e,t.ptr,D)),m=new i(p),R=0,k)for(b=0;b<T;b++){for(A=0;A<C;A++)k[O]&&(U[O]=m[R++]),O++;O+=I}else for(b=0;b<T;b++){for(A=0;A<C;A++)U[O++]=m[R++];O+=I}t.ptr+=R*c}else if(Z=f.getDataTypeUsed(a,S),g=f.getOnePixel(d,B,Z,h),B+=f.getDataTypeSize(Z),3===_)if(t.ptr+=B,t.counter.constantoffset++,k)for(b=0;b<T;b++){for(A=0;A<C;A++)k[O]&&(U[O]=g),O++;O+=I}else for(b=0;b<T;b++){for(A=0;A<C;A++)U[O++]=g;O+=I}else if(t.ptr+=B,f.decodeBits(e,t,M,g,y),B=0,k)for(b=0;b<T;b++){for(A=0;A<C;A++)k[O]&&(U[O]=M[B++]),O++;O+=I}else for(b=0;b<T;b++){for(A=0;A<C;A++)U[O++]=M[B++];O+=I}else t.counter.constant++,t.ptr+=B}},formatFileInfo:function(e){return{fileIdentifierString:e.headerInfo.fileIdentifierString,fileVersion:e.headerInfo.fileVersion,imageType:e.headerInfo.imageType,height:e.headerInfo.height,width:e.headerInfo.width,numValidPixel:e.headerInfo.numValidPixel,microBlockSize:e.headerInfo.microBlockSize,blobSize:e.headerInfo.blobSize,maxZError:e.headerInfo.maxZError,pixelType:f.getPixelType(e.headerInfo.imageType),eofOffset:e.eofOffset,mask:e.mask?{numBytes:e.mask.numBytes}:null,pixels:{numBlocksX:e.pixels.numBlocksX,numBlocksY:e.pixels.numBlocksY,maxValue:e.headerInfo.zMax,minValue:e.headerInfo.zMin,noDataValue:e.noDataValue}}},constructConstantSurface:function(e){var t=e.headerInfo.zMax,i=e.headerInfo.numDims,n=e.headerInfo.height*e.headerInfo.width,r=n*i,o=0,s=0,a=0,c=e.pixels.resultMask;if(c)if(i>1)for(o=0;o<i;o++)for(a=o*n,s=0;s<n;s++)c[s]&&(e.pixels.resultPixels[a+s]=t);else for(s=0;s<n;s++)c[s]&&(e.pixels.resultPixels[s]=t);else if(e.pixels.resultPixels.fill)e.pixels.resultPixels.fill(t);else for(s=0;s<r;s++)e.pixels.resultPixels[s]=t},getDataTypeArray:function(e){var t;switch(e){case 0:t=Int8Array;break;case 1:t=Uint8Array;break;case 2:t=Int16Array;break;case 3:t=Uint16Array;break;case 4:t=Int32Array;break;case 5:t=Uint32Array;break;case 6:default:t=Float32Array;break;case 7:t=Float64Array}return t},getPixelType:function(e){var t;switch(e){case 0:t="S8";break;case 1:t="U8";break;case 2:t="S16";break;case 3:t="U16";break;case 4:t="S32";break;case 5:t="U32";break;case 6:default:t="F32";break;case 7:t="F64"}return t},isValidPixelValue:function(e,t){if(null==t)return!1;var i;switch(e){case 0:i=t>=-128&&t<=127;break;case 1:i=t>=0&&t<=255;break;case 2:i=t>=-32768&&t<=32767;break;case 3:i=t>=0&&t<=65536;break;case 4:i=t>=-2147483648&&t<=2147483647;break;case 5:i=t>=0&&t<=4294967296;break;case 6:i=t>=-34027999387901484e22&&t<=34027999387901484e22;break;case 7:i=t>=5e-324&&t<=17976931348623157e292;break;default:i=!1}return i},getDataTypeSize:function(e){var t=0;switch(e){case 0:case 1:t=1;break;case 2:case 3:t=2;break;case 4:case 5:case 6:t=4;break;case 7:t=8;break;default:t=e}return t},getDataTypeUsed:function(e,t){var i=e;switch(e){case 2:case 4:i=e-t;break;case 3:case 5:i=e-2*t;break;case 6:i=0===t?e:1===t?2:1;break;case 7:i=0===t?e:e-2*t+1;break;default:i=e}return i},getOnePixel:function(e,t,i,n){var r=0;switch(i){case 0:r=n.getInt8(t);break;case 1:r=n.getUint8(t);break;case 2:r=n.getInt16(t,!0);break;case 3:r=n.getUint16(t,!0);break;case 4:r=n.getInt32(t,!0);break;case 5:r=n.getUInt32(t,!0);break;case 6:r=n.getFloat32(t,!0);break;case 7:r=n.getFloat64(t,!0);break;default:throw"the decoder does not understand this pixel type"}return r}},p=function(e,t,i){this.val=e,this.left=t,this.right=i},{decode:function(e,t){var i=(t=t||{}).noDataValue,n=0,r={};r.ptr=t.inputOffset||0,r.pixels={},f.readHeaderInfo(e,r);var o=r.headerInfo,s=o.fileVersion,a=f.getDataTypeArray(o.imageType);f.readMask(e,r),o.numValidPixel===o.width*o.height||r.pixels.resultMask||(r.pixels.resultMask=t.maskData);var c,u=o.width*o.height;if(r.pixels.resultPixels=new a(u*o.numDims),r.counter={onesweep:0,uncompressed:0,lut:0,bitstuffer:0,constant:0,constantoffset:0},0!==o.numValidPixel)if(o.zMax===o.zMin)f.constructConstantSurface(r);else if(s>=4&&f.checkMinMaxRanges(e,r))f.constructConstantSurface(r);else{var l=new DataView(e,r.ptr,2),h=l.getUint8(0);if(r.ptr++,h)f.readDataOneSweep(e,r,a);else if(s>1&&o.imageType<=1&&Math.abs(o.maxZError-.5)<1e-5){var d=l.getUint8(1);if(r.ptr++,r.encodeMode=d,d>2||s<4&&d>1)throw"Invalid Huffman flag "+d;d?f.readHuffman(e,r,a):f.readTiles(e,r,a)}else f.readTiles(e,r,a)}r.eofOffset=r.ptr,t.inputOffset?(c=r.headerInfo.blobSize+t.inputOffset-r.ptr,Math.abs(c)>=1&&(r.eofOffset=t.inputOffset+r.headerInfo.blobSize)):(c=r.headerInfo.blobSize-r.ptr,Math.abs(c)>=1&&(r.eofOffset=r.headerInfo.blobSize));var p={width:o.width,height:o.height,pixelData:r.pixels.resultPixels,minValue:o.zMin,maxValue:o.zMax,validPixelCount:o.numValidPixel,dimCount:o.numDims,dimStats:{minValues:o.minValues,maxValues:o.maxValues},maskData:r.pixels.resultMask};if(r.pixels.resultMask&&f.isValidPixelValue(o.imageType,i)){var m=r.pixels.resultMask;for(n=0;n<u;n++)m[n]||(p.pixelData[n]=i);p.noDataValue=i}return r.noDataValue=i,t.returnFileInfo&&(p.fileInfo=f.formatFileInfo(r)),p},getBandCount:function(e){for(var t=0,i=0,n={ptr:0,pixels:{}};i<e.byteLength-58;)f.readHeaderInfo(e,n),i+=n.headerInfo.blobSize,t++,n.ptr=i;return t}}),y=(m=new ArrayBuffer(4),_=new Uint8Array(m),new Uint32Array(m)[0]=1,1===_[0]),b={decode:function(e,t){if(!y)throw"Big endian system is not supported.";var i,n,r=(t=t||{}).inputOffset||0,o=new Uint8Array(e,r,10),s=String.fromCharCode.apply(null,o);if("CntZImage"===s.trim())i=Z,n=1;else{if("Lerc2"!==s.substring(0,5))throw"Unexpected file identifier string: "+s;i=g,n=2}for(var a,c,u,l,h,d,f=0,p=e.byteLength-10,m=[],_={width:0,height:0,pixels:[],pixelType:t.pixelType,mask:null,statistics:[]};r<p;){var b=i.decode(e,{inputOffset:r,encodedMaskData:a,maskData:u,returnMask:0===f,returnEncodedMask:0===f,returnFileInfo:!0,pixelType:t.pixelType||null,noDataValue:t.noDataValue||null});r=b.fileInfo.eofOffset,0===f&&(a=b.encodedMaskData,u=b.maskData,_.width=b.width,_.height=b.height,_.dimCount=b.dimCount||1,_.pixelType=b.pixelType||b.fileInfo.pixelType,_.mask=b.maskData),n>1&&b.fileInfo.mask&&b.fileInfo.mask.numBytes>0&&m.push(b.maskData),f++,_.pixels.push(b.pixelData),_.statistics.push({minValue:b.minValue,maxValue:b.maxValue,noDataValue:b.noDataValue,dimStats:b.dimStats})}if(n>1&&m.length>1){for(d=_.width*_.height,_.bandMasks=m,(u=new Uint8Array(d)).set(m[0]),l=1;l<m.length;l++)for(c=m[l],h=0;h<d;h++)u[h]=u[h]&c[h];_.maskData=u}return _}};e.exports?e.exports=b:this.Lerc=b}()}))},761677:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=function(e){null==e&&(e=(new Date).getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,e.constructor==Array?this.init_by_array(e,e.length):this.init_seed(e)};n.prototype.init_seed=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti<this.N;this.mti++)e=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30,this.mt[this.mti]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+this.mti,this.mt[this.mti]>>>=0},n.prototype.init_by_array=function(e,t){var i,n,r;for(this.init_seed(19650218),i=1,n=0,r=this.N>t?this.N:t;r;r--){var o=this.mt[i-1]^this.mt[i-1]>>>30;this.mt[i]=(this.mt[i]^(1664525*((4294901760&o)>>>16)<<16)+1664525*(65535&o))+e[n]+n,this.mt[i]>>>=0,n++,++i>=this.N&&(this.mt[0]=this.mt[this.N-1],i=1),n>=t&&(n=0)}for(r=this.N-1;r;r--)o=this.mt[i-1]^this.mt[i-1]>>>30,this.mt[i]=(this.mt[i]^(1566083941*((4294901760&o)>>>16)<<16)+1566083941*(65535&o))-i,this.mt[i]>>>=0,++i>=this.N&&(this.mt[0]=this.mt[this.N-1],i=1);this.mt[0]=2147483648},n.prototype.random_int=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var i;for(this.mti==this.N+1&&this.init_seed(5489),i=0;i<this.N-this.M;i++)e=this.mt[i]&this.UPPER_MASK|this.mt[i+1]&this.LOWER_MASK,this.mt[i]=this.mt[i+this.M]^e>>>1^t[1&e];for(;i<this.N-1;i++)e=this.mt[i]&this.UPPER_MASK|this.mt[i+1]&this.LOWER_MASK,this.mt[i]=this.mt[i+(this.M-this.N)]^e>>>1^t[1&e];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[1&e],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,(e^=e>>>18)>>>0},n.prototype.random_int31=function(){return this.random_int()>>>1},n.prototype.random_incl=function(){return this.random_int()*(1/4294967295)},n.prototype.random=function(){return this.random_int()*(1/4294967296)},n.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)},n.prototype.random_long=function(){return(67108864*(this.random_int()>>>5)+(this.random_int()>>>6))*(1/9007199254740992)};var r=n},339761:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n}),function(){var e,t=new Uint8Array([32,0,65,2,1,106,34,33,3,128,11,4,13,64,6,253,10,7,15,116,127,5,8,12,40,16,19,54,20,9,27,255,113,17,42,67,24,23,146,148,18,14,22,45,70,69,56,114,101,21,25,63,75,136,108,28,118,29,73,115]);if("object"!=typeof WebAssembly)return{supported:!1};WebAssembly.instantiate(function(e){for(var i=new Uint8Array(e.length),n=0;n<e.length;++n){var r=e.charCodeAt(n);i[n]=r>96?r-71:r>64?r-65:r>47?r+4:r>46?63:62}var o=0;for(n=0;n<e.length;++n)i[o++]=i[n]<60?t[i[n]]:64*(i[n]-60)+i[++n];return i.buffer.slice(0,o)}("B9h79tEBBBENQ9gEUEU9gEUB9gBB9gVUUUUUEU9gDUUEU9gLUUUUEU9gIUUUEU9gVUUUUUB9gLUUUUB9gD99UE99Ie8aDILEVOLEVLRRRRRWWVBOOBEdddLVE9wEIIVIEBEOWEUEC+Q/KEKR/QIhO9tw9t9vv95DBh9f9f939h79t9f9j9h229f9jT9vv7BB8a9tw79o9v9wT9fw9u9j9v9kw9WwvTw949C919m9mwvBE8f9tw79o9v9wT9fw9u9j9v9kw9WwvTw949C919m9mwv9C9v919u9kBDe9tw79o9v9wT9fw9u9j9v9kw9WwvTw949Wwv79p9v9uBIy9tw79o9v9wT9fw9u9j9v9kw69u9kw949C919m9mwvBL8e9tw79o9v9wT9fw9u9j9v9kw69u9kw949C919m9mwv9C9v919u9kBO8a9tw79o9v9wT9fw9u9j9v9kw69u9kw949Wwv79p9v9uBRe9tw79o9v9wT9fw9u9j9v9kw69u9kw949Twg91w9u9jwBWA9tw79o9v9wT9fw9u9j9v9kw69u9kw949Twg91w9u9jw9C9v919u9kBdl9tw79o9v9wT9fw9u9j9v9kws9p2Twv9P9jTBQk9tw79o9v9wT9fw9u9j9v9kws9p2Twv9R919hTBKl9tw79o9v9wT9fw9u9j9v9kws9p2Twvt949wBXe9tw79o9v9wT9f9v9wT9p9t9p96w9WwvTw94j9h9j9owBSA9tw79o9v9wT9f9v9wT9p9t9p96w9WwvTw94j9h9j9ow9TTv9p9wBZA9tw79o9v9wT9f9v9wT9p9t9p96w9WwvTw94swT9j9o9Sw9t9h9wBhL79iv9rBodWEBCEKDqxQ+f9Q8aDBK/EpE8jU8jJJJJBCJO9rGV8kJJJJBCBHODNALCEFAE0MBABCBrBJ+KJJBC+gEv86BBAVCJDFCBCJDZnJJJB8aDNAItMBAVCJDFADALZ+TJJJB8aKABAEFHRABCEFHEAVALFCBCBCJDAL9rALCfE0eZnJJJB8aAVAVCJDFALZ+TJJJBHWCJ/ABAL9uHODNAItMBAOC/wfBgGOCJDAOCJD6eHdCBHQINAWCJLFCBCJDZnJJJB8aAdAIAQ9rAQAdFAI6eHKADAQAL2FHXDNALtMBAKCSFGOC9wgHMAOCL4CIFCD4HpCBHSAXHZAEHhINDNAKtMBAWASFrBBHoCBHEAZHOINAWCJLFAEFAOrBBGaAo9rGoCETAoCkTCk91CR4786BBAOALFHOAaHoAECEFGEAK9HMBKKDNARAh9rAp6MBAhCBApZnJJJBGcApFHEDNAMtMBCBHxAWCJLFHqINARAE9rCk6MDAWCJLFAxFGlrBDHoCUHODNAlrBEGaAlrBBGkvCfEgMBCBHaAoCfEgMBCBHoDNAlrBIMBAlrBLMBAlrBVMBAlrBOMBAlrBRMBAlrBWMBAlrBdMBAlrBQMBAlrBKMBAlrBXMBAlrBMMBCBHaAlrBpMECBHoCUCBAlrBSeHOKCBHaKDNDNDNDNCLCDCECWAOCZ6GheAkCfEgGkCD0CLvAaCfEgGaCD0FAoCfEgGoCD0FAlrBIGyCD0FAlrBLG8aCD0FAlrBVGeCD0FAlrBOG3CD0FAlrBRG5CD0FAlrBWG8eCD0FAlrBdG8fCD0FAlrBQGACD0FAlrBKGHCD0FAlrBXGGCD0FAlrBMG8jCD0FAlrBpG8kCD0FAlrBSG8lCD0FG8mAOCZAheG8n6GOeAkCp0CWvAaCp0FAoCp0FAyCp0FA8aCp0FAeCp0FA3Cp0FA5Cp0FA8eCp0FA8fCp0FAACp0FAHCp0FAGCp0FA8jCp0FA8kCp0FA8lCp0FA8mA8nAOe6GoeGyCUFpDIEBKAcAxCO4FGaAarBBCDCIAoeAxCI4COgTv86BBAyCW9HMEAEAl8pBB83BBAECWFAlCWF8pBB83BBAECZFHEXDKAcAxCO4FGaAarBBCEAxCI4COgTv86BBKCDCLCWCEAheAOeAoeH8aCUAyTCU7HaCBH5AqHeINAEH3A8aHoAeHECBHOINAErBBGhAaAhAaCfEgGk6eAOCfEgAyTvHOAECEFHEAoCUFGoMBKA3AO86BBAeA8aFHeA3CEFHEA5A8aFG5CZ6MBKDNAlrBBGOAk6MBA3AO86BEA3CDFHEKDNAlrBEGOAk6MBAEAO86BBAECEFHEKDNAlrBDGOAk6MBAEAO86BBAECEFHEKDNAlrBIGOAk6MBAEAO86BBAECEFHEKDNAlrBLGOAk6MBAEAO86BBAECEFHEKDNAlrBVGOAk6MBAEAO86BBAECEFHEKDNAlrBOGOAk6MBAEAO86BBAECEFHEKDNAlrBRGOAk6MBAEAO86BBAECEFHEKDNAlrBWGOAk6MBAEAO86BBAECEFHEKDNAlrBdGOAk6MBAEAO86BBAECEFHEKDNAlrBQGOAk6MBAEAO86BBAECEFHEKDNAlrBKGOAk6MBAEAO86BBAECEFHEKDNAlrBXGOAk6MBAEAO86BBAECEFHEKDNAlrBMGOAk6MBAEAO86BBAECEFHEKDNAlrBpGOAk6MBAEAO86BBAECEFHEKAlrBSGOAk6MBAEAO86BBAECEFHEKAqCZFHqAxCZFGxAM6MBKKAEtMBAZCEFHZAEHhASCEFGSALsMDXEKKCBHOXIKAWAXAKCUFAL2FALZ+TJJJB8aAKAQFGQAI6MBKKCBHOARAE9rCAALALCA6e6MBDNALC8f0MBAECBCAAL9rGOZnJJJBAOFHEKAEAWCJDFALZ+TJJJBALFAB9rHOKAVCJOF8kJJJJBAOK9HEEUAECAAECA0eABCJ/ABAE9uC/wfBgGDCJDADCJD6eGDFCUFAD9uAE2ADCL4CIFCD4ADv2FCEFKMBCBABbDJ+KJJBK/pSEeU8jJJJJBC/AE9rGL8kJJJJBCBHVDNAICI9uGOChFAE0MBABCBYD+E+KJJBGRC/gEv86BBALC/ABFCfECJEZnJJJB8aALCuFGW9CU83IBALC8wFGd9CU83IBALCYFGQ9CU83IBALCAFGK9CU83IBALCkFGX9CU83IBALCZFGM9CU83IBAL9CU83IWAL9CU83IBABAEFC9wFGpABCEFGSAOFGE6HODNAItMBCMCSARCB9KeHZCBHhCBHoCBHaCBHcCBHxINDNAOCEgtMBCBHVXIKCDHqADAaCDTFGOYDBHlAOCWFYDBHkAOCLFYDBHyCBH8aCBHODNDNDNDNDNDNDNDNDNINALC/ABFAOCU7AxFCSgCITFGVYDLHeDNAVYDBGVAl9HMBAeAy9HMBAqC9+FHqXDKDNAVAy9HMBAeAk9HMBAqCUFHqXDKDNAVAk9HMBAeAlsMDKAqCLFHqA8aCZFH8aAOCEFGOCZ9HMBXDKKAqC870MBADAqCIgCX2GVC+E1JJBFYDBAaFCDTFYDBHqADAVCJ1JJBFYDBAaFCDTFYDBHyALADAVC11JJBFYDBAaFCDTFYDBGVAcZ+FJJJBGeCBCSAVAhsGkeAeCB9KAeAZ9IgGleHeAkAlCE7gHkDNARCE9IMBAeCS9HMBAVAVAoAVCEFAosGeeGoCEFsMDCMCSAeeHeKASAeA8av86BBAeCS9HMDAVAo9rGOCETAOC8f917HOINAEAOCfB0CRTAOCfBgv86BBAECEFHEAOCR4GOMBKAVHoXIKADCEAkAhsCETAyAhseCX2GOC11JJBFYDBAaFCDTFYDBHqADAOC+E1JJBFYDBAaFCDTFYDBHeADAOCJ1JJBFYDBAaFCDTFYDBHVCBHlDNARCE9IMBAhtMBAVMBAeCE9HMBAqCD9HMBAW9CU83IBAd9CU83IBAQ9CU83IBAK9CU83IBAX9CU83IBAM9CU83IBAL9CU83IWAL9CU83IBCBHhCEHlKAhAVAhsGOFH8aALAeAcZ+FJJJBHyALAqAcZ+FJJJBHkAyCM0MLAyCEFHyXVKCpHeASAOCLTCpv86BBAVHoKAetMBAeAZ9IMEKALAcCDTFAVbDBAcCEFCSgHcKAhAkFHhALC/ABFAxCITFGOAqbDLAOAVbDBALC/ABFAxCEFCSgGOCITFGeAVbDLAeAybDBAOCEFHVXDKCBCSAeA8asG3eHyA8aA3FH8aKDNDNAkCM0MBAkCEFHkXEKCBCSAqA8asG3eHkA8aA3FH8aKDNDNDNDNDNDNDNDNDNDNDNDNDNDNDNDNDNAkAyCLTvG3CfEgG5C+qUFp9UISSSSSSSSSSSSSSWSLQMSSSSSSSSSSSSESVSSSSSSSSSSSSSRDSdSSSSSSSSSSSSSSKSSSSSSSSSSSSSSSSOBKC/wEH8eA5pDMKpKC/xEH8eXXKC/yEH8eXKKC/zEH8eXQKC/0EH8eXdKC/1EH8eXWKC/2EH8eXRKC/3EH8eXOKC/4EH8eXVKC/5EH8eXLKC/6EH8eXIKC/7EH8eXDKC/8EH8eXEKCPEH8eKAlAVAh9HvMBASA8e86BBXEKASC9+CUAOe86BBAEA386BBAECEFHEKDNAOMBAVAo9rGOCETAOC8f917HOINAEAOCfB0CRTAOCfBgv86BBAECEFHEAOCR4GOMBKAVHoKDNAyCS9HMBAeAo9rGOCETAOC8f917HOINAEAOCfB0CRTAOCfBgv86BBAECEFHEAOCR4GOMBKAeHoKDNAkCS9HMBAqAo9rGOCETAOC8f917HOINAEAOCfB0CRTAOCfBgv86BBAECEFHEAOCR4GOMBKAqHoKALAcCDTFAVbDBAcCEFCSgHODNDNAypZBEEEEEEEEEEEEEEBEKALAOCDTFAebDBAcCDFCSgHOKDNDNAkpZBEEEEEEEEEEEEEEBEKALAOCDTFAqbDBAOCEFCSgHOKALC/ABFAxCITFGyAVbDLAyAebDBALC/ABFAxCEFCSgCITFGyAebDLAyAqbDBALC/ABFAxCDFCSgCITFGeAqbDLAeAVbDBAxCIFHVAOHcA8aHhKApAE6HOASCEFHSAVCSgHxAaCIFGaAI6MBKKCBHVAOMBAE9C/lm+i/D+Z+g8a83BWAE9CJ/s+d+0/1+M/e/U+GU83BBAEAB9rCZFHVKALC/AEF8kJJJJBAVK+mIEEUCBHIDNABADCUFCSgCDTFYDBAEsMBCEHIABADCpFCSgCDTFYDBAEsMBCDHIABADCMFCSgCDTFYDBAEsMBCIHIABADCXFCSgCDTFYDBAEsMBCLHIABADCKFCSgCDTFYDBAEsMBCVHIABADCQFCSgCDTFYDBAEsMBCOHIABADCdFCSgCDTFYDBAEsMBCRHIABADCWFCSgCDTFYDBAEsMBCWHIABADCRFCSgCDTFYDBAEsMBCdHIABADCOFCSgCDTFYDBAEsMBCQHIABADCVFCSgCDTFYDBAEsMBCKHIABADCLFCSgCDTFYDBAEsMBCXHIABADCIFCSgCDTFYDBAEsMBCMHIABADCDFCSgCDTFYDBAEsMBCpHIABADCEFCSgCDTFYDBAEsMBCSCUABADCSgCDTFYDBAEseSKAIKjEIUCRHDDNINADCEFHIADC96FGLC8f0MEAIHDCEALTAE6MBKKAICR9uCI2CDFABCI9u2ChFKMBCBABbD+E+KJJBK+YDERU8jJJJJBCZ9rHLCBHVDNAICVFAE0MBCBHVABCBrB+E+KJJBC/QEv86BBAL9CB83IWABCEFHOABAEFC98FHRDNAItMBCBHWINDNARAO0MBCBSKAVADAWCDTFYDBGdALCWFAVCDTFYDB9rGEAEC8f91GEFAE7C59K7GVAdALCWFAVCDTFGQYDB9rGEC8f91CETAECDT7vHEINAOAECfB0CRTAECfBgv86BBAOCEFHOAECR4GEMBKAQAdbDBAWCEFGWAI9HMBKKCBHVARAO6MBAOCBbBBAOAB9rCLFHVKAVK86EIUCWHDDNINADCEFHIADC95FGLC8f0MEAIHDCEALTAE6MBKKAICR9uAB2CVFK+yWDEUO99DNAEtMBADCLsHVCUADCETCUFTCU7HDDNDNCUAICUFTCU7+yGOjBBBzmGR+LjBBB9P9dtMBAR+oHIXEKCJJJJ94HIKAD+yHWDNAVMBABCOFHDINALCLFiDBGRjBBBBjBBJzALiDBGd+LAR+LmALCWFiDBGQ+LmGR+VARjBBBB9beGRnHKAdARnHRALCXFiDBHdDNDNAQjBBBB9gtMBAKHQXEKjBBJzAR+L+TGQAQ+MAKjBBBB9geHQjBBJzAK+L+TGKAK+MARjBBBB9geHRKADC9+FAI87EBDNDNjBBBzjBBB+/AdjBBBB9geAdjBBJ+/AdjBBJ+/9geGdjBBJzAdjBBJz9feAWnmGd+LjBBB9P9dtMBAd+oHBXEKCJJJJ94HBKADAB87EBDNDNjBBBzjBBB+/AQjBBBB9geAQjBBJ+/AQjBBJ+/9geGdjBBJzAdjBBJz9feAOnmGd+LjBBB9P9dtMBAd+oHBXEKCJJJJ94HBKADC98FAB87EBDNDNjBBBzjBBB+/ARjBBBB9geARjBBJ+/ARjBBJ+/9geGRjBBJzARjBBJz9feAOnmGR+LjBBB9P9dtMBAR+oHBXEKCJJJJ94HBKADC96FAB87EBALCZFHLADCWFHDAECUFGEMBXDKKABCIFHDINALCLFiDBGRjBBBBjBBJzALiDBGd+LAR+LmALCWFiDBGQ+LmGR+VARjBBBB9beGRnHKAdARnHRALCXFiDBHdDNDNAQjBBBB9gtMBAKHQXEKjBBJzAR+L+TGQAQ+MAKjBBBB9geHQjBBJzAK+L+TGKAK+MARjBBBB9geHRKADCUFAI86BBDNDNjBBBzjBBB+/AdjBBBB9geAdjBBJ+/AdjBBJ+/9geGdjBBJzAdjBBJz9feAWnmGd+LjBBB9P9dtMBAd+oHBXEKCJJJJ94HBKADAB86BBDNDNjBBBzjBBB+/AQjBBBB9geAQjBBJ+/AQjBBJ+/9geGdjBBJzAdjBBJz9feAOnmGd+LjBBB9P9dtMBAd+oHBXEKCJJJJ94HBKADC9+FAB86BBDNDNjBBBzjBBB+/ARjBBBB9geARjBBJ+/ARjBBJ+/9geGRjBBJzARjBBJz9feAOnmGR+LjBBB9P9dtMBAR+oHBXEKCJJJJ94HBKADC99FAB86BBALCZFHLADCLFHDAECUFGEMBKKK/KLLD99EUE99EUDNAEtMBDNDNCUAICUFTCU7+yGVjBBBzmGO+LjBBB9P9dtMBAO+oHIXEKCJJJJ94HIKAIC/8fIgHRINABCOFCICDALCLFiDB+LALiDB+L9eGIALCWFiDB+LALAICDTFiDB+L9eeGIALCXFiDB+LALAICDTFiDB+L9eeGIARv87EBDNDNjBBBzjBBB+/ALAICEFCIgCDTFiDBj/zL+1znjBBJ+/jBBJzALAICDTFiDBjBBBB9deGOnGWjBBBB9geAWjBBJ+/AWjBBJ+/9geGWjBBJzAWjBBJz9feAVnmGW+LjBBB9P9dtMBAW+oHdXEKCJJJJ94HdKABAd87EBDNDNjBBBzjBBB+/AOALAICDFCIgCDTFiDBj/zL+1znnGWjBBBB9geAWjBBJ+/AWjBBJ+/9geGWjBBJzAWjBBJz9feAVnmGW+LjBBB9P9dtMBAW+oHdXEKCJJJJ94HdKABCDFAd87EBDNDNjBBBzjBBB+/AOALAICUFCIgCDTFiDBj/zL+1znnGOjBBBB9geAOjBBJ+/AOjBBJ+/9geGOjBBJzAOjBBJz9feAVnmGO+LjBBB9P9dtMBAO+oHIXEKCJJJJ94HIKABCLFAI87EBABCWFHBALCZFHLAECUFGEMBKKK+tDDWUE998jJJJJBCZ9rGV8kJJJJBDNAEtMBADCD4GOtMBCEAI9rHRAOCDTHWCBHdINC+cUHDALHIAOHQINAIiDBAVCXFZ+YJJJB8aAVYDXGKADADAK9IeHDAICLFHIAQCUFGQMBKARADFGICkTHKCBHDCBAI9rHXAOHIINDNDNALADFiDBGMAXZ+XJJJBjBBBzjBBB+/AMjBBBB9gemGM+LjBBB9P9dtMBAM+oHQXEKCJJJJ94HQKABADFAQCfffRgAKvbDBADCLFHDAICUFGIMBKABAWFHBALAWFHLAdCEFGdAE9HMBKKAVCZF8kJJJJBK+iMDlUI998jJJJJBC+QD9rGV8kJJJJBAVC+oEFCBC/kBZnJJJB8aCBHODNADtMBCBHOAItMBDNABAE9HMBAVCUADCDTGRADCffffI0eCBYD/4+JJJBhJJJJBBGEbD+oEAVCEbD1DAEABARZ+TJJJB8aKAVC+YEFCWFCBbDBAV9CB83I+YEAVC+YEFAEADAIAVC+oEFZ+OJJJBCUAICDTGWAICffffI0eGdCBYD/4+JJJBhJJJJBBHRAVC+oEFAVYD1DGOCDTFARbDBAVAOCEFGQbD1DARAVYD+YEGKAWZ+TJJJBHXAVC+oEFAQCDTFADCI9uGMCBYD/4+JJJBhJJJJBBGRbDBAVAOCDFGWbD1DARCBAMZnJJJBHpAVC+oEFAWCDTFAdCBYD/4+JJJBhJJJJBBGSbDBAVAOCIFGQbD1DAXHRASHWINAWALiDBALARYDBGdCWAdCW6eCDTFC/EBFiDBmuDBARCLFHRAWCLFHWAICUFGIMBKCBHIAVC+oEFAQCDTFCUAMCDTADCffff970eCBYD/4+JJJBhJJJJBBGQbDBAVAOCLFGObD1DDNADCI6MBAEHRAQHWINAWASARYDBCDTFiDBASARCLFYDBCDTFiDBmASARCWFYDBCDTFiDBmuDBARCXFHRAWCLFHWAICEFGIAM6MBKKAVC/MBFHZAVYD+cEHhAVYD+gEHoAVHRCBHdCBHWCBHaCEHcINARHxAEAWCX2FGqCWFGlYDBHDAqYDBHkABAaCX2FGRCLFAqCLFGyYDBG8abDBARAkbDBARCWFADbDBApAWFCE86BBAZADbDWAZA8abDLAZAkbDBAQAWCDTFCBbDBCIHeDNAdtMBAxHRINDNARYDBGIADsMBAIAksMBAIA8asMBAZAeCDTFAIbDBAeCEFHeKARCLFHRAdCUFGdMBKKAXAkCDTFGRARYDBCUFbDBAXA8aCDTFGRARYDBCUFbDBAXADCDTFGRARYDBCUFbDBAoAhAqYDBCDTGIFYDBCDTFGkHRAKAIFGDYDBGdHIDNAdtMBDNINARYDBAWsMEARCLFHRAICUFGItMDXBKKARAdCDTAkFC98FYDBbDBADADYDBCUFbDBKAoAhAyYDBCDTGIFYDBCDTFGkHRAKAIFGDYDBGdHIDNAdtMBDNINARYDBAWsMEARCLFHRAICUFGIMBXDKKARAdCDTAkFC98FYDBbDBADADYDBCUFbDBKDNAKAlYDBCDTGRFGDYDBGdtMBAoAhARFYDBCDTFGkHRAdHIDNINARYDBAWsMEARCLFHRAICUFGIMBXDKKARAdCDTAkFC98FYDBbDBADADYDBCUFbDBKDNDNAetMBCUHWjBBBBH3CBHRINASAZARCDTFYDBCDTGIFGdiDBH5AdALCBARCEFGkARCS0eCDTFiDBALAXAIFYDBGRCWARCW6eCDTFC/EBFiDBmG8euDBDNAKAIFYDBGdtMBA8eA5+TH8eAoAhAIFYDBCDTFHRAdCDTHIINAQARYDBGdCDTFGDA8eADiDBmG5uDBA5A3A3A59dGDeH3AdAWADeHWARCLFHRAIC98FGIMBKKAkHRAkAe9HMBKAWCU9HMEKAcAM9PMDINDNApAcFrBBMBAcHWXDKAMAcCEFGc9HMBXIKKAaCEFHaAeCZAeCZ6eHdAZHRAxHZAWCU9HMBKKAOCDTAVC+oEFFC98FHRDNINAOtMEARYDBCBYD/0+JJJBh+BJJJBBARC98FHRAOCUFHOXBKKAVC+QDF8kJJJJBK/iLEVUCUAICDTGVAICffffI0eGOCBYD/4+JJJBhJJJJBBHRALALYD9gGWCDTFARbDBALAWCEFbD9gABARbDBAOCBYD/4+JJJBhJJJJBBHRALALYD9gGOCDTFARbDBALAOCEFbD9gABARbDLCUADCDTADCffffI0eCBYD/4+JJJBhJJJJBBHRALALYD9gGOCDTFARbDBALAOCEFbD9gABARbDWABYDBCBAVZnJJJB8aADCI9uHdDNADtMBABYDBHOAEHLADHRINAOALYDBCDTFGVAVYDBCEFbDBALCLFHLARCUFGRMBKKDNAItMBABYDBHLABYDLHRCBHVAIHOINARAVbDBARCLFHRALYDBAVFHVALCLFHLAOCUFGOMBKKDNADCI6MBABYDLHRABYDWHVCBHLINAECWFYDBHOAECLFYDBHDARAEYDBCDTFGWAWYDBGWCEFbDBAVAWCDTFALbDBARADCDTFGDADYDBGDCEFbDBAVADCDTFALbDBARAOCDTFGOAOYDBGOCEFbDBAVAOCDTFALbDBAECXFHEALCEFGLAd6MBKKDNAItMBABYDLHEABYDBHLINAEAEYDBALYDB9rbDBALCLFHLAECLFHEAICUFGIMBKKKqBABAEADAIC+k1JJBZ+NJJJBKqBABAEADAIC+M+JJJBZ+NJJJBK9dEEUABCfEAICDTZnJJJBHLCBHIDNADtMBINDNALAEYDBCDTFGBYDBCU9HMBABAIbDBAICEFHIKAECLFHEADCUFGDMBKKAIK9TEIUCBCBYD/8+JJJBGEABCIFC98gFGBbD/8+JJJBDNDNABzBCZTGD9NMBCUHIABAD9rCffIFCZ4NBCUsMEKAEHIKAIK/lEEEUDNDNAEABvCIgtMBABHIXEKDNDNADCZ9PMBABHIXEKABHIINAIAEYDBbDBAICLFAECLFYDBbDBAICWFAECWFYDBbDBAICXFAECXFYDBbDBAICZFHIAECZFHEADC9wFGDCS0MBKKADCL6MBINAIAEYDBbDBAECLFHEAICLFHIADC98FGDCI0MBKKDNADtMBINAIAErBB86BBAICEFHIAECEFHEADCUFGDMBKKABK/AEEDUDNDNABCIgtMBABHIXEKAECfEgC+B+C+EW2HLDNDNADCZ9PMBABHIXEKABHIINAIALbDBAICXFALbDBAICWFALbDBAICLFALbDBAICZFHIADC9wFGDCS0MBKKADCL6MBINAIALbDBAICLFHIADC98FGDCI0MBKKDNADtMBINAIAE86BBAICEFHIADCUFGDMBKKABK9TEIUCBCBYD/8+JJJBGEABCIFC98gFGBbD/8+JJJBDNDNABzBCZTGD9NMBCUHIABAD9rCffIFCZ4NBCUsMEKAEHIKAIK9+EIUzBHEDNDNCBYD/8+JJJBGDAECZTGI9NMBCUHEADAI9rCffIFCZ4NBCUsMEKADHEKCBABAE9rCIFC98gCBYD/8+JJJBFGDbD/8+JJJBDNADzBCZTGE9NMBADAE9rCffIFCZ4NB8aKKXBABAEZ+ZJJJBK+BEEIUDNAB+8GDCl4GICfEgGLCfEsMBDNALMBDNABjBBBB9cMBAECBbDBABSKABjBBJ9fnAEZ+YJJJBHBAEAEYDBCNFbDBABSKAEAICfEgC+CUFbDBADCfff+D94gCJJJ/4Iv++HBKABK+gEBDNDNAECJE9IMBABjBBBUnHBDNAECfE9OMBAEC+BUFHEXDKABjBBBUnHBAECPDAECPD9IeC+C9+FHEXEKAEC+BU9KMBABjBBJXnHBDNAEC+b9+9MMBAEC/mBFHEXEKABjBBJXnHBAEC+299AEC+2999KeC/MEFHEKABAEClTCJJJ/8IF++nKK+ODDBCJWK/0EBBBBEBBBDBBBEBBBDBBBBBBBDBBBBBBBEBBBBBBB+L29Hz/69+9Kz/n/76z/RG97z/Z/O9Xz8j/b85z/+/U9Yz/B/K9hz+2/z9dz9E+L9Mz59a8kz+R/t3z+a+Zyz79ohz/J4++8++y+d9v8+BBBB9S+49+z8r+Hbz9m9m/m8+l/Z/O8+/8+pg89Q/X+j878r+Hq8++m+b/E87BBBBBBJzBBJzBBJz+e/v/n8++y+dSz9I/h/68+XD/r8+/H0838+/w+nOzBBBB+wv9o8+UF888+9I/h/68+9C9g/l89/N/M9M89/d8kO8+BBBBF+8Tz9M836zs+2azl/Zpzz818ez9E+LXz/u98f8+819e/68+BC/0dKXEBBBDBBBZwBB"),{}).then((function(t){(e=t.instance).exports.__wasm_call_ctors(),e.exports.meshopt_encodeVertexVersion(0),e.exports.meshopt_encodeIndexVersion(1)}))}();var n=function(){var e=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,3,2,0,0,5,3,1,0,1,12,1,0,10,22,2,12,0,65,0,65,0,65,0,252,10,0,0,11,7,0,65,0,253,15,26,11]),t=new Uint8Array([32,0,65,2,1,106,34,33,3,128,11,4,13,64,6,253,10,7,15,116,127,5,8,12,40,16,19,54,20,9,27,255,113,17,42,67,24,23,146,148,18,14,22,45,70,69,56,114,101,21,25,63,75,136,108,28,118,29,73,115]);if("object"!=typeof WebAssembly)return{supported:!1};var i,n="B9h79tEBBBE8fV9gBB9gVUUUUUEU9gIUUUB9gEUEU9gIUUUEUIKQBEEEDDDILLLVE9wEEEVIEBEOWEUEC+Q/IEKR/LEdO9tw9t9vv95DBh9f9f939h79t9f9j9h229f9jT9vv7BB8a9tw79o9v9wT9f9kw9j9v9kw9WwvTw949C919m9mwvBEy9tw79o9v9wT9f9kw9j9v9kw69u9kw949C919m9mwvBDe9tw79o9v9wT9f9kw9j9v9kw69u9kw949Twg91w9u9jwBIl9tw79o9v9wT9f9kw9j9v9kws9p2Twv9P9jTBLk9tw79o9v9wT9f9kw9j9v9kws9p2Twv9R919hTBVl9tw79o9v9wT9f9kw9j9v9kws9p2Twvt949wBOL79iv9rBRQ+x8yQDBK/qMEZU8jJJJJBCJ/EB9rGV8kJJJJBC9+HODNADCEFAL0MBCUHOAIrBBC+gE9HMBAVAIALFGRAD9rADZ1JJJBHWCJ/ABAD9uC/wfBgGOCJDAOCJD6eHdAICEFHLCBHQDNINAQAE9PMEAdAEAQ9rAQAdFAE6eHKDNDNADtMBAKCSFGOC9wgHXAOCL4CIFCD4HMAWCJDFHpCBHSALHZINDNARAZ9rAM9PMBCBHLXIKAZAMFHLDNAXtMBCBHhCBHIINDNARAL9rCk9PMBCBHLXVKAWCJ/CBFAIFHODNDNDNDNDNAZAICO4FrBBAhCOg4CIgpLBEDIBKAO9CB83IBAOCWF9CB83IBXIKAOALrBLALrBBGoCO4GaAaCIsGae86BBAOCEFALCLFAaFGarBBAoCL4CIgGcAcCIsGce86BBAOCDFAaAcFGarBBAoCD4CIgGcAcCIsGce86BBAOCIFAaAcFGarBBAoCIgGoAoCIsGoe86BBAOCLFAaAoFGarBBALrBEGoCO4GcAcCIsGce86BBAOCVFAaAcFGarBBAoCL4CIgGcAcCIsGce86BBAOCOFAaAcFGarBBAoCD4CIgGcAcCIsGce86BBAOCRFAaAcFGarBBAoCIgGoAoCIsGoe86BBAOCWFAaAoFGarBBALrBDGoCO4GcAcCIsGce86BBAOCdFAaAcFGarBBAoCL4CIgGcAcCIsGce86BBAOCQFAaAcFGarBBAoCD4CIgGcAcCIsGce86BBAOCKFAaAcFGarBBAoCIgGoAoCIsGoe86BBAOCXFAaAoFGorBBALrBIGLCO4GaAaCIsGae86BBAOCMFAoAaFGorBBALCL4CIgGaAaCIsGae86BBAOCpFAoAaFGorBBALCD4CIgGaAaCIsGae86BBAOCSFAoAaFGOrBBALCIgGLALCIsGLe86BBAOALFHLXDKAOALrBWALrBBGoCL4GaAaCSsGae86BBAOCEFALCWFAaFGarBBAoCSgGoAoCSsGoe86BBAOCDFAaAoFGorBBALrBEGaCL4GcAcCSsGce86BBAOCIFAoAcFGorBBAaCSgGaAaCSsGae86BBAOCLFAoAaFGorBBALrBDGaCL4GcAcCSsGce86BBAOCVFAoAcFGorBBAaCSgGaAaCSsGae86BBAOCOFAoAaFGorBBALrBIGaCL4GcAcCSsGce86BBAOCRFAoAcFGorBBAaCSgGaAaCSsGae86BBAOCWFAoAaFGorBBALrBLGaCL4GcAcCSsGce86BBAOCdFAoAcFGorBBAaCSgGaAaCSsGae86BBAOCQFAoAaFGorBBALrBVGaCL4GcAcCSsGce86BBAOCKFAoAcFGorBBAaCSgGaAaCSsGae86BBAOCXFAoAaFGorBBALrBOGaCL4GcAcCSsGce86BBAOCMFAoAcFGorBBAaCSgGaAaCSsGae86BBAOCpFAoAaFGorBBALrBRGLCL4GaAaCSsGae86BBAOCSFAoAaFGOrBBALCSgGLALCSsGLe86BBAOALFHLXEKAOAL8pBB83BBAOCWFALCWF8pBB83BBALCZFHLKAhCDFHhAICZFGIAX6MBKKDNALMBCBHLXIKDNAKtMBAWASFrBBHhCBHOApHIINAIAWCJ/CBFAOFrBBGZCE4CBAZCEg9r7AhFGh86BBAIADFHIAOCEFGOAK9HMBKKApCEFHpALHZASCEFGSAD9HMBKKABAQAD2FAWCJDFAKAD2Z1JJJB8aAWAWCJDFAKCUFAD2FADZ1JJJB8aKAKCBALeAQFHQALMBKC9+HOXEKCBC99ARAL9rADCAADCA0eseHOKAVCJ/EBF8kJJJJBAOK+OoEZU8jJJJJBC/AE9rGV8kJJJJBC9+HODNAECI9uGRChFAL0MBCUHOAIrBBGWC/wEgC/gE9HMBAWCSgGdCE0MBAVC/ABFCfECJEZ+JJJJB8aAVCuF9CU83IBAVC8wF9CU83IBAVCYF9CU83IBAVCAF9CU83IBAVCkF9CU83IBAVCZF9CU83IBAV9CU83IWAV9CU83IBAIALFC9wFHQAICEFGWARFHKDNAEtMBCMCSAdCEseHXABHICBHdCBHMCBHpCBHLCBHOINDNAKAQ9NMBC9+HOXIKDNDNAWrBBGRC/vE0MBAVC/ABFARCL4CU7AOFCSgCITFGSYDLHZASYDBHhDNARCSgGSAX9PMBAVARCU7ALFCSgCDTFYDBAdASeHRAStHSDNDNADCD9HMBABAh87EBABCLFAR87EBABCDFAZ87EBXEKAIAhbDBAICWFARbDBAICLFAZbDBKAdASFHdAVC/ABFAOCITFGoARbDBAoAZbDLAVALCDTFARbDBAVC/ABFAOCEFCSgGOCITFGZAhbDBAZARbDLALASFHLAOCEFHOXDKDNDNASCSsMBAMASFASC987FCEFHMXEKAK8sBBGSCfEgHRDNDNASCU9MMBAKCEFHKXEKAK8sBEGSCfBgCRTARCfBgvHRDNASCU9MMBAKCDFHKXEKAK8sBDGSCfBgCpTARvHRDNASCU9MMBAKCIFHKXEKAK8sBIGSCfBgCxTARvHRDNASCU9MMBAKCLFHKXEKAKrBLC3TARvHRAKCVFHKKARCE4CBARCEg9r7AMFHMKDNDNADCD9HMBABAh87EBABCLFAM87EBABCDFAZ87EBXEKAIAhbDBAICWFAMbDBAICLFAZbDBKAVC/ABFAOCITFGRAMbDBARAZbDLAVALCDTFAMbDBAVC/ABFAOCEFCSgGOCITFGRAhbDBARAMbDLALCEFHLAOCEFHOXEKDNARCPE0MBAVALAQARCSgFrBBGSCL4GZ9rCSgCDTFYDBAdCEFGhAZeHRAVALAS9rCSgCDTFYDBAhAZtGoFGhASCSgGZeHSAZtHZDNDNADCD9HMBABAd87EBABCLFAS87EBABCDFAR87EBXEKAIAdbDBAICWFASbDBAICLFARbDBKAVALCDTFAdbDBAVC/ABFAOCITFGaARbDBAaAdbDLAVALCEFGLCSgCDTFARbDBAVC/ABFAOCEFCSgCITFGaASbDBAaARbDLAVALAoFCSgGLCDTFASbDBAVC/ABFAOCDFCSgGOCITFGRAdbDBARASbDLAOCEFHOALAZFHLAhAZFHdXEKAdCBAKrBBGaeGZARC/+EsGcFHRAaCSgHhDNDNAaCL4GoMBARCEFHSXEKARHSAVALAo9rCSgCDTFYDBHRKDNDNAhMBASCEFHdXEKASHdAVALAa9rCSgCDTFYDBHSKDNDNActMBAKCEFHaXEKAK8sBEGaCfEgHZDNDNAaCU9MMBAKCDFHaXEKAK8sBDGaCfBgCRTAZCfBgvHZDNAaCU9MMBAKCIFHaXEKAK8sBIGaCfBgCpTAZvHZDNAaCU9MMBAKCLFHaXEKAK8sBLGaCfBgCxTAZvHZDNAaCU9MMBAKCVFHaXEKAKCOFHaAKrBVC3TAZvHZKAZCE4CBAZCEg9r7AMFGMHZKDNDNAoCSsMBAaHcXEKAa8sBBGKCfEgHRDNDNAKCU9MMBAaCEFHcXEKAa8sBEGKCfBgCRTARCfBgvHRDNAKCU9MMBAaCDFHcXEKAa8sBDGKCfBgCpTARvHRDNAKCU9MMBAaCIFHcXEKAa8sBIGKCfBgCxTARvHRDNAKCU9MMBAaCLFHcXEKAaCVFHcAarBLC3TARvHRKARCE4CBARCEg9r7AMFGMHRKDNDNAhCSsMBAcHKXEKAc8sBBGKCfEgHSDNDNAKCU9MMBAcCEFHKXEKAc8sBEGKCfBgCRTASCfBgvHSDNAKCU9MMBAcCDFHKXEKAc8sBDGKCfBgCpTASvHSDNAKCU9MMBAcCIFHKXEKAc8sBIGKCfBgCxTASvHSDNAKCU9MMBAcCLFHKXEKAcCVFHKAcrBLC3TASvHSKASCE4CBASCEg9r7AMFGMHSKDNDNADCD9HMBABAZ87EBABCLFAS87EBABCDFAR87EBXEKAIAZbDBAICWFASbDBAICLFARbDBKAVC/ABFAOCITFGaARbDBAaAZbDLAVALCDTFAZbDBAVC/ABFAOCEFCSgCITFGaASbDBAaARbDLAVALCEFGLCSgCDTFARbDBAVC/ABFAOCDFCSgCITFGRAZbDBARASbDLAVALAotAoCSsvFGLCSgCDTFASbDBALAhtAhCSsvFHLAOCIFHOKAWCEFHWABCOFHBAICXFHIAOCSgHOALCSgHLApCIFGpAE6MBKKCBC99AKAQseHOKAVC/AEF8kJJJJBAOK/tLEDU8jJJJJBCZ9rHVC9+HODNAECVFAL0MBCUHOAIrBBC/+EgC/QE9HMBAV9CB83IWAICEFHOAIALFC98FHIDNAEtMBDNADCDsMBINDNAOAI6MBC9+SKAO8sBBGDCfEgHLDNDNADCU9MMBAOCEFHOXEKAO8sBEGDCfBgCRTALCfBgvHLDNADCU9MMBAOCDFHOXEKAO8sBDGDCfBgCpTALvHLDNADCU9MMBAOCIFHOXEKAO8sBIGDCfBgCxTALvHLDNADCU9MMBAOCLFHOXEKAOrBLC3TALvHLAOCVFHOKAVCWFALCEgCDTvGDALCD4CBALCE4CEg9r7ADYDBFGLbDBABALbDBABCLFHBAECUFGEMBXDKKINDNAOAI6MBC9+SKAO8sBBGDCfEgHLDNDNADCU9MMBAOCEFHOXEKAO8sBEGDCfBgCRTALCfBgvHLDNADCU9MMBAOCDFHOXEKAO8sBDGDCfBgCpTALvHLDNADCU9MMBAOCIFHOXEKAO8sBIGDCfBgCxTALvHLDNADCU9MMBAOCLFHOXEKAOrBLC3TALvHLAOCVFHOKABALCD4CBALCE4CEg9r7AVCWFALCEgCDTvGLYDBFGD87EBALADbDBABCDFHBAECUFGEMBKKCBC99AOAIseHOKAOK+lVOEUE99DUD99EUD99DNDNADCL9HMBAEtMEINDNDNjBBBzjBBB+/ABCDFGD8sBB+yAB8sBBGI+yGL+L+TABCEFGV8sBBGO+yGR+L+TGWjBBBB9gGdeAWjBB/+9CAWAWnjBBBBAWAdeGQAQ+MGKAICU9KeALmGLALnAQAKAOCU9KeARmGQAQnmm+R+VGRnmGW+LjBBB9P9dtMBAW+oHIXEKCJJJJ94HIKADAI86BBDNDNjBBBzjBBB+/AQjBBBB9geAQARnmGW+LjBBB9P9dtMBAW+oHDXEKCJJJJ94HDKAVAD86BBDNDNjBBBzjBBB+/ALjBBBB9geALARnmGW+LjBBB9P9dtMBAW+oHDXEKCJJJJ94HDKABAD86BBABCLFHBAECUFGEMBXDKKAEtMBINDNDNjBBBzjBBB+/ABCLFGD8uEB+yAB8uEBGI+yGL+L+TABCDFGV8uEBGO+yGR+L+TGWjBBBB9gGdeAWjB/+fsAWAWnjBBBBAWAdeGQAQ+MGKAICU9KeALmGLALnAQAKAOCU9KeARmGQAQnmm+R+VGRnmGW+LjBBB9P9dtMBAW+oHIXEKCJJJJ94HIKADAI87EBDNDNjBBBzjBBB+/AQjBBBB9geAQARnmGW+LjBBB9P9dtMBAW+oHDXEKCJJJJ94HDKAVAD87EBDNDNjBBBzjBBB+/ALjBBBB9geALARnmGW+LjBBB9P9dtMBAW+oHDXEKCJJJJ94HDKABAD87EBABCWFHBAECUFGEMBKKK/SILIUI99IUE99DNAEtMBCBHIABHLINDNDNj/zL81zALCOF8uEBGVCIv+y+VGOAL8uEB+ynGRjB/+fsnjBBBzjBBB+/ARjBBBB9gemGW+LjBBB9P9dtMBAW+oHdXEKCJJJJ94HdKALCLF8uEBHQALCDF8uEBHKABAVCEFCIgAIvCETFAd87EBDNDNAOAK+ynGWjB/+fsnjBBBzjBBB+/AWjBBBB9gemGX+LjBBB9P9dtMBAX+oHKXEKCJJJJ94HKKABAVCDFCIgAIvCETFAK87EBDNDNAOAQ+ynGOjB/+fsnjBBBzjBBB+/AOjBBBB9gemGX+LjBBB9P9dtMBAX+oHQXEKCJJJJ94HQKABAVCUFCIgAIvCETFAQ87EBDNDNjBBJzARARn+TAWAWn+TAOAOn+TGRjBBBBARjBBBB9ge+RjB/+fsnjBBBzmGR+LjBBB9P9dtMBAR+oHQXEKCJJJJ94HQKABAVCIgAIvCETFAQ87EBALCWFHLAICLFHIAECUFGEMBKKK6BDNADCD4AE2GEtMBINABABYDBGDCWTCW91+yADCk91ClTCJJJ/8IF++nuDBABCLFHBAECUFGEMBKKK9TEIUCBCBYDJ1JJBGEABCIFC98gFGBbDJ1JJBDNDNABzBCZTGD9NMBCUHIABAD9rCffIFCZ4NBCUsMEKAEHIKAIK/lEEEUDNDNAEABvCIgtMBABHIXEKDNDNADCZ9PMBABHIXEKABHIINAIAEYDBbDBAICLFAECLFYDBbDBAICWFAECWFYDBbDBAICXFAECXFYDBbDBAICZFHIAECZFHEADC9wFGDCS0MBKKADCL6MBINAIAEYDBbDBAECLFHEAICLFHIADC98FGDCI0MBKKDNADtMBINAIAErBB86BBAICEFHIAECEFHEADCUFGDMBKKABK/AEEDUDNDNABCIgtMBABHIXEKAECfEgC+B+C+EW2HLDNDNADCZ9PMBABHIXEKABHIINAIALbDBAICXFALbDBAICWFALbDBAICLFALbDBAICZFHIADC9wFGDCS0MBKKADCL6MBINAIALbDBAICLFHIADC98FGDCI0MBKKDNADtMBINAIAE86BBAICEFHIADCUFGDMBKKABKKKEBCJWKLZ9kBB";WebAssembly.validate(e)&&(n="B9h79tEBBBE5V9gBB9gVUUUUUEU9gIUUUB9gDUUB9gEUEUIMXBBEBEEDIDIDLLVE9wEEEVIEBEOWEUEC+Q/aEKR/LEdO9tw9t9vv95DBh9f9f939h79t9f9j9h229f9jT9vv7BB8a9tw79o9v9wT9f9kw9j9v9kw9WwvTw949C919m9mwvBDy9tw79o9v9wT9f9kw9j9v9kw69u9kw949C919m9mwvBLe9tw79o9v9wT9f9kw9j9v9kw69u9kw949Twg91w9u9jwBVl9tw79o9v9wT9f9kw9j9v9kws9p2Twv9P9jTBOk9tw79o9v9wT9f9kw9j9v9kws9p2Twv9R919hTBWl9tw79o9v9wT9f9kw9j9v9kws9p2Twvt949wBQL79iv9rBKQ/j6XLBZIK9+EVU8jJJJJBCZ9rHBCBHEINCBHDCBHIINABCWFADFAICJUAEAD4CEgGLe86BBAIALFHIADCEFGDCW9HMBKAEC+Q+YJJBFAI86BBAECITC+Q1JJBFAB8pIW83IBAECEFGECJD9HMBKK1HLSUD97EUO978jJJJJBCJ/KB9rGV8kJJJJBC9+HODNADCEFAL0MBCUHOAIrBBC+gE9HMBAVAIALFGRAD9rAD/8QBBCJ/ABAD9uC/wfBgGOCJDAOCJD6eHWAICEFHOCBHdDNINAdAE9PMEAWAEAd9rAdAWFAE6eHQDNDNADtMBAQCSFGLC9wgGKCI2HXAKCETHMALCL4CIFCD4HpCBHSINAOHZCBHhDNINDNARAZ9rAp9PMBCBHOXVKAVCJ/CBFAhAK2FHoAZApFHOCBHIDNAKC/AB6MBARAO9rC/gB6MBCBHLINAoALFHIDNDNDNDNDNAZALCO4FrBBGaCIgpLBEDIBKAICBPhPKLBXIKAIAOPBBLAOPBBBGcCLP+MEAcPMBZEhDoIaLcVxOqRlGcCDP+MEAcPMBZEhDoIaLcVxOqRlC+D+G+MkPhP9OGxCIPSP8jGcP5B9CJf/8/4/w/g/AB9+9Cu1+nGqCITC+Q1JJBFPBIBAqC+Q+YJJBFPBBBGlAlPMBBBBBBBBBBBBBBBBAcP5E9CJf/8/4/w/g/AB9+9Cu1+nGqCITC+Q1JJBFPBIBP9uPMBEDILVORZhoacxqlPpAxAcP9SPKLBAOCLFAlPqBFAqC+Q+YJJBFrBBFHOXDKAIAOPBBWAOPBBBGcCLP+MEAcPMBZEhDoIaLcVxOqRlC+P+e+8/4BPhP9OGxCSPSP8jGcP5B9CJf/8/4/w/g/AB9+9Cu1+nGqCITC+Q1JJBFPBIBAqC+Q+YJJBFPBBBGlAlPMBBBBBBBBBBBBBBBBAcP5E9CJf/8/4/w/g/AB9+9Cu1+nGqCITC+Q1JJBFPBIBP9uPMBEDILVORZhoacxqlPpAxAcP9SPKLBAOCWFAlPqBFAqC+Q+YJJBFrBBFHOXEKAIAOPBBBPKLBAOCZFHOKDNDNDNDNDNAaCD4CIgpLBEDIBKAICBPhPKLZXIKAIAOPBBLAOPBBBGcCLP+MEAcPMBZEhDoIaLcVxOqRlGcCDP+MEAcPMBZEhDoIaLcVxOqRlC+D+G+MkPhP9OGxCIPSP8jGcP5B9CJf/8/4/w/g/AB9+9Cu1+nGqCITC+Q1JJBFPBIBAqC+Q+YJJBFPBBBGlAlPMBBBBBBBBBBBBBBBBAcP5E9CJf/8/4/w/g/AB9+9Cu1+nGqCITC+Q1JJBFPBIBP9uPMBEDILVORZhoacxqlPpAxAcP9SPKLZAOCLFAlPqBFAqC+Q+YJJBFrBBFHOXDKAIAOPBBWAOPBBBGcCLP+MEAcPMBZEhDoIaLcVxOqRlC+P+e+8/4BPhP9OGxCSPSP8jGcP5B9CJf/8/4/w/g/AB9+9Cu1+nGqCITC+Q1JJBFPBIBAqC+Q+YJJBFPBBBGlAlPMBBBBBBBBBBBBBBBBAcP5E9CJf/8/4/w/g/AB9+9Cu1+nGqCITC+Q1JJBFPBIBP9uPMBEDILVORZhoacxqlPpAxAcP9SPKLZAOCWFAlPqBFAqC+Q+YJJBFrBBFHOXEKAIAOPBBBPKLZAOCZFHOKDNDNDNDNDNAaCL4CIgpLBEDIBKAICBPhPKLAXIKAIAOPBBLAOPBBBGcCLP+MEAcPMBZEhDoIaLcVxOqRlGcCDP+MEAcPMBZEhDoIaLcVxOqRlC+D+G+MkPhP9OGxCIPSP8jGcP5B9CJf/8/4/w/g/AB9+9Cu1+nGqCITC+Q1JJBFPBIBAqC+Q+YJJBFPBBBGlAlPMBBBBBBBBBBBBBBBBAcP5E9CJf/8/4/w/g/AB9+9Cu1+nGqCITC+Q1JJBFPBIBP9uPMBEDILVORZhoacxqlPpAxAcP9SPKLAAOCLFAlPqBFAqC+Q+YJJBFrBBFHOXDKAIAOPBBWAOPBBBGcCLP+MEAcPMBZEhDoIaLcVxOqRlC+P+e+8/4BPhP9OGxCSPSP8jGcP5B9CJf/8/4/w/g/AB9+9Cu1+nGqCITC+Q1JJBFPBIBAqC+Q+YJJBFPBBBGlAlPMBBBBBBBBBBBBBBBBAcP5E9CJf/8/4/w/g/AB9+9Cu1+nGqCITC+Q1JJBFPBIBP9uPMBEDILVORZhoacxqlPpAxAcP9SPKLAAOCWFAlPqBFAqC+Q+YJJBFrBBFHOXEKAIAOPBBBPKLAAOCZFHOKDNDNDNDNDNAaCO4pLBEDIBKAICBPhPKL8wXIKAIAOPBBLAOPBBBGcCLP+MEAcPMBZEhDoIaLcVxOqRlGcCDP+MEAcPMBZEhDoIaLcVxOqRlC+D+G+MkPhP9OGxCIPSP8jGcP5B9CJf/8/4/w/g/AB9+9Cu1+nGaCITC+Q1JJBFPBIBAaC+Q+YJJBFPBBBGlAlPMBBBBBBBBBBBBBBBBAcP5E9CJf/8/4/w/g/AB9+9Cu1+nGaCITC+Q1JJBFPBIBP9uPMBEDILVORZhoacxqlPpAxAcP9SPKL8wAOCLFAlPqBFAaC+Q+YJJBFrBBFHOXDKAIAOPBBWAOPBBBGcCLP+MEAcPMBZEhDoIaLcVxOqRlC+P+e+8/4BPhP9OGxCSPSP8jGcP5B9CJf/8/4/w/g/AB9+9Cu1+nGaCITC+Q1JJBFPBIBAaC+Q+YJJBFPBBBGlAlPMBBBBBBBBBBBBBBBBAcP5E9CJf/8/4/w/g/AB9+9Cu1+nGaCITC+Q1JJBFPBIBP9uPMBEDILVORZhoacxqlPpAxAcP9SPKL8wAOCWFAlPqBFAaC+Q+YJJBFrBBFHOXEKAIAOPBBBPKL8wAOCZFHOKALC/ABFHIALCJEFAK0MEAIHLARAO9rC/fB0MBKKDNAIAK9PMBAICI4HLINDNARAO9rCk9PMBCBHOXRKAoAIFHaDNDNDNDNDNAZAICO4FrBBALCOg4CIgpLBEDIBKAaCBPhPKLBXIKAaAOPBBLAOPBBBGcCLP+MEAcPMBZEhDoIaLcVxOqRlGcCDP+MEAcPMBZEhDoIaLcVxOqRlC+D+G+MkPhP9OGxCIPSP8jGcP5B9CJf/8/4/w/g/AB9+9Cu1+nGqCITC+Q1JJBFPBIBAqC+Q+YJJBFPBBBGlAlPMBBBBBBBBBBBBBBBBAcP5E9CJf/8/4/w/g/AB9+9Cu1+nGqCITC+Q1JJBFPBIBP9uPMBEDILVORZhoacxqlPpAxAcP9SPKLBAOCLFAlPqBFAqC+Q+YJJBFrBBFHOXDKAaAOPBBWAOPBBBGcCLP+MEAcPMBZEhDoIaLcVxOqRlC+P+e+8/4BPhP9OGxCSPSP8jGcP5B9CJf/8/4/w/g/AB9+9Cu1+nGqCITC+Q1JJBFPBIBAqC+Q+YJJBFPBBBGlAlPMBBBBBBBBBBBBBBBBAcP5E9CJf/8/4/w/g/AB9+9Cu1+nGqCITC+Q1JJBFPBIBP9uPMBEDILVORZhoacxqlPpAxAcP9SPKLBAOCWFAlPqBFAqC+Q+YJJBFrBBFHOXEKAaAOPBBBPKLBAOCZFHOKALCDFHLAICZFGIAK6MBKKDNAOtMBAOHZAhCEFGhCLsMDXEKKCBHOXIKDNAKtMBAVCJDFASFHIAVASFPBDBHlCBHaINAIAVCJ/CBFAaFGLPBLBGxCEP9tAxCEPSGcP9OP9hP9RGxALAKFPBLBGkCEP9tAkAcP9OP9hP9RGkPMBZEhDoIaLcVxOqRlGyALAMFPBLBG8aCEP9tA8aAcP9OP9hP9RG8aALAXFPBLBGeCEP9tAeAcP9OP9hP9RGePMBZEhDoIaLcVxOqRlG3PMBEZhDIoaLVcxORqlGcAcPMBEDIBEDIBEDIBEDIAlP9uGlPeBbDBAIADFGLAlAcAcPMLVORLVORLVORLVORP9uGlPeBbDBALADFGLAlAcAcPMWdQKWdQKWdQKWdQKP9uGlPeBbDBALADFGLAlAcAcPMXMpSXMpSXMpSXMpSP9uGlPeBbDBALADFGLAlAyA3PMWdkyQK8aeXM35pS8e8fGcAcPMBEDIBEDIBEDIBEDIP9uGlPeBbDBALADFGLAlAcAcPMLVORLVORLVORLVORP9uGlPeBbDBALADFGLAlAcAcPMWdQKWdQKWdQKWdQKP9uGlPeBbDBALADFGLAlAcAcPMXMpSXMpSXMpSXMpSP9uGlPeBbDBALADFGLAlAxAkPMWkdyQ8aKeX3M5p8eS8fGxA8aAePMWkdyQ8aKeX3M5p8eS8fGkPMBEZhDIoaLVcxORqlGcAcPMBEDIBEDIBEDIBEDIP9uGlPeBbDBALADFGLAlAcAcPMLVORLVORLVORLVORP9uGlPeBbDBALADFGLAlAcAcPMWdQKWdQKWdQKWdQKP9uGlPeBbDBALADFGLAlAcAcPMXMpSXMpSXMpSXMpSP9uGlPeBbDBALADFGLAlAxAkPMWdkyQK8aeXM35pS8e8fGcAcPMBEDIBEDIBEDIBEDIP9uGlPeBbDBALADFGLAlAcAcPMLVORLVORLVORLVORP9uGlPeBbDBALADFGLAlAcAcPMWdQKWdQKWdQKWdQKP9uGlPeBbDBALADFGLAlAcAcPMXMpSXMpSXMpSXMpSP9uGlPeBbDBALADFHIAaCZFGaAK6MBKKASCLFGSAD6MBKKABAdAD2FAVCJDFAQAD2/8QBBAVAVCJDFAQCUFAD2FAD/8QBBKAQCBAOeAdFHdAOMBKC9+HOXEKCBC99ARAO9rADCAADCA0eseHOKAVCJ/KBF8kJJJJBAOKWBZ+BJJJBK+KoEZU8jJJJJBC/AE9rGV8kJJJJBC9+HODNAECI9uGRChFAL0MBCUHOAIrBBGWC/wEgC/gE9HMBAWCSgGdCE0MBAVC/ABFCfECJE/8KBAVCuF9CU83IBAVC8wF9CU83IBAVCYF9CU83IBAVCAF9CU83IBAVCkF9CU83IBAVCZF9CU83IBAV9CU83IWAV9CU83IBAIALFC9wFHQAICEFGWARFHKDNAEtMBCMCSAdCEseHXABHICBHdCBHMCBHpCBHLCBHOINDNAKAQ9NMBC9+HOXIKDNDNAWrBBGRC/vE0MBAVC/ABFARCL4CU7AOFCSgCITFGSYDLHZASYDBHhDNARCSgGSAX9PMBAVARCU7ALFCSgCDTFYDBAdASeHRAStHSDNDNADCD9HMBABAh87EBABCLFAR87EBABCDFAZ87EBXEKAIAhbDBAICWFARbDBAICLFAZbDBKAdASFHdAVC/ABFAOCITFGoARbDBAoAZbDLAVALCDTFARbDBAVC/ABFAOCEFCSgGOCITFGZAhbDBAZARbDLALASFHLAOCEFHOXDKDNDNASCSsMBAMASFASC987FCEFHMXEKAK8sBBGSCfEgHRDNDNASCU9MMBAKCEFHKXEKAK8sBEGSCfBgCRTARCfBgvHRDNASCU9MMBAKCDFHKXEKAK8sBDGSCfBgCpTARvHRDNASCU9MMBAKCIFHKXEKAK8sBIGSCfBgCxTARvHRDNASCU9MMBAKCLFHKXEKAKrBLC3TARvHRAKCVFHKKARCE4CBARCEg9r7AMFHMKDNDNADCD9HMBABAh87EBABCLFAM87EBABCDFAZ87EBXEKAIAhbDBAICWFAMbDBAICLFAZbDBKAVC/ABFAOCITFGRAMbDBARAZbDLAVALCDTFAMbDBAVC/ABFAOCEFCSgGOCITFGRAhbDBARAMbDLALCEFHLAOCEFHOXEKDNARCPE0MBAVALAQARCSgFrBBGSCL4GZ9rCSgCDTFYDBAdCEFGhAZeHRAVALAS9rCSgCDTFYDBAhAZtGoFGhASCSgGZeHSAZtHZDNDNADCD9HMBABAd87EBABCLFAS87EBABCDFAR87EBXEKAIAdbDBAICWFASbDBAICLFARbDBKAVALCDTFAdbDBAVC/ABFAOCITFGaARbDBAaAdbDLAVALCEFGLCSgCDTFARbDBAVC/ABFAOCEFCSgCITFGaASbDBAaARbDLAVALAoFCSgGLCDTFASbDBAVC/ABFAOCDFCSgGOCITFGRAdbDBARASbDLAOCEFHOALAZFHLAhAZFHdXEKAdCBAKrBBGaeGZARC/+EsGcFHRAaCSgHhDNDNAaCL4GoMBARCEFHSXEKARHSAVALAo9rCSgCDTFYDBHRKDNDNAhMBASCEFHdXEKASHdAVALAa9rCSgCDTFYDBHSKDNDNActMBAKCEFHaXEKAK8sBEGaCfEgHZDNDNAaCU9MMBAKCDFHaXEKAK8sBDGaCfBgCRTAZCfBgvHZDNAaCU9MMBAKCIFHaXEKAK8sBIGaCfBgCpTAZvHZDNAaCU9MMBAKCLFHaXEKAK8sBLGaCfBgCxTAZvHZDNAaCU9MMBAKCVFHaXEKAKCOFHaAKrBVC3TAZvHZKAZCE4CBAZCEg9r7AMFGMHZKDNDNAoCSsMBAaHcXEKAa8sBBGKCfEgHRDNDNAKCU9MMBAaCEFHcXEKAa8sBEGKCfBgCRTARCfBgvHRDNAKCU9MMBAaCDFHcXEKAa8sBDGKCfBgCpTARvHRDNAKCU9MMBAaCIFHcXEKAa8sBIGKCfBgCxTARvHRDNAKCU9MMBAaCLFHcXEKAaCVFHcAarBLC3TARvHRKARCE4CBARCEg9r7AMFGMHRKDNDNAhCSsMBAcHKXEKAc8sBBGKCfEgHSDNDNAKCU9MMBAcCEFHKXEKAc8sBEGKCfBgCRTASCfBgvHSDNAKCU9MMBAcCDFHKXEKAc8sBDGKCfBgCpTASvHSDNAKCU9MMBAcCIFHKXEKAc8sBIGKCfBgCxTASvHSDNAKCU9MMBAcCLFHKXEKAcCVFHKAcrBLC3TASvHSKASCE4CBASCEg9r7AMFGMHSKDNDNADCD9HMBABAZ87EBABCLFAS87EBABCDFAR87EBXEKAIAZbDBAICWFASbDBAICLFARbDBKAVC/ABFAOCITFGaARbDBAaAZbDLAVALCDTFAZbDBAVC/ABFAOCEFCSgCITFGaASbDBAaARbDLAVALCEFGLCSgCDTFARbDBAVC/ABFAOCDFCSgCITFGRAZbDBARASbDLAVALAotAoCSsvFGLCSgCDTFASbDBALAhtAhCSsvFHLAOCIFHOKAWCEFHWABCOFHBAICXFHIAOCSgHOALCSgHLApCIFGpAE6MBKKCBC99AKAQseHOKAVC/AEF8kJJJJBAOK/tLEDU8jJJJJBCZ9rHVC9+HODNAECVFAL0MBCUHOAIrBBC/+EgC/QE9HMBAV9CB83IWAICEFHOAIALFC98FHIDNAEtMBDNADCDsMBINDNAOAI6MBC9+SKAO8sBBGDCfEgHLDNDNADCU9MMBAOCEFHOXEKAO8sBEGDCfBgCRTALCfBgvHLDNADCU9MMBAOCDFHOXEKAO8sBDGDCfBgCpTALvHLDNADCU9MMBAOCIFHOXEKAO8sBIGDCfBgCxTALvHLDNADCU9MMBAOCLFHOXEKAOrBLC3TALvHLAOCVFHOKAVCWFALCEgCDTvGDALCD4CBALCE4CEg9r7ADYDBFGLbDBABALbDBABCLFHBAECUFGEMBXDKKINDNAOAI6MBC9+SKAO8sBBGDCfEgHLDNDNADCU9MMBAOCEFHOXEKAO8sBEGDCfBgCRTALCfBgvHLDNADCU9MMBAOCDFHOXEKAO8sBDGDCfBgCpTALvHLDNADCU9MMBAOCIFHOXEKAO8sBIGDCfBgCxTALvHLDNADCU9MMBAOCLFHOXEKAOrBLC3TALvHLAOCVFHOKABALCD4CBALCE4CEg9r7AVCWFALCEgCDTvGLYDBFGD87EBALADbDBABCDFHBAECUFGEMBKKCBC99AOAIseHOKAOK/xVDIUO978jJJJJBCA9rGI8kJJJJBDNDNADCL9HMBDNAEC98gGLtMBABHDCBHVINADADPBBBGOCkP+rECkP+sEP/6EGRAOCWP+rECkP+sEP/6EARP/gEAOCZP+rECkP+sEP/6EGWP/gEP/kEP/lEGdCBPhP+2EGQARCJJJJ94PhGKP9OP9RP/kEGRjBB/+9CPaARARP/mEAdAdP/mEAWAQAWAKP9OP9RP/kEGRARP/mEP/kEP/kEP/jEP/nEGWP/mEjBBN0PaGQP/kECfEPhP9OAOCJJJ94PhP9OP9QARAWP/mEAQP/kECWP+rECJ/+IPhP9OP9QAdAWP/mEAQP/kECZP+rECJJ/8RPhP9OP9QPKBBADCZFHDAVCLFGVAL6MBKKALAE9PMEAIAECIgGVCDTGDvCBCZAD9r/8KBAIABALCDTFGLAD/8QBBDNAVtMBAIAIPBLBGOCkP+rECkP+sEP/6EGRAOCWP+rECkP+sEP/6EARP/gEAOCZP+rECkP+sEP/6EGWP/gEP/kEP/lEGdCBPhP+2EGQARCJJJJ94PhGKP9OP9RP/kEGRjBB/+9CPaARARP/mEAdAdP/mEAWAQAWAKP9OP9RP/kEGRARP/mEP/kEP/kEP/jEP/nEGWP/mEjBBN0PaGQP/kECfEPhP9OAOCJJJ94PhP9OP9QARAWP/mEAQP/kECWP+rECJ/+IPhP9OP9QAdAWP/mEAQP/kECZP+rECJJ/8RPhP9OP9QPKLBKALAIAD/8QBBXEKABAEC98gGDZ+HJJJBADAE9PMBAIAECIgGLCITGVFCBCAAV9r/8KBAIABADCITFGDAV/8QBBAIALZ+HJJJBADAIAV/8QBBKAICAF8kJJJJBK+yIDDUR97DNAEtMBCBHDINABCZFGIAIPBBBGLCBPhGVCJJ98P3ECJJ98P3IGOP9OABPBBBGRALPMLVORXMpScxql358e8fCffEPhP9OP/6EARALPMBEDIWdQKZhoaky8aeGLCZP+sEP/6EGWP/gEALCZP+rECZP+sEP/6EGdP/gEP/kEP/lEGLjB/+fsPaAdALAVP+2EGVAdCJJJJ94PhGQP9OP9RP/kEGdAdP/mEALALP/mEAWAVAWAQP9OP9RP/kEGLALP/mEP/kEP/kEP/jEP/nEGWP/mEjBBN0PaGVP/kECZP+rEAdAWP/mEAVP/kECffIPhP9OP9QGdALAWP/mEAVP/kECUPSCBPlDCBPlICBPlOCBPlRCBPlQCBPlKCBPlpCBPlSP9OGLPMWdkyQK8aeXM35pS8e8fP9QPKBBABARAOP9OAdALPMBEZhDIoaLVcxORqlP9QPKBBABCAFHBADCLFGDAE6MBKKK94EIU8jJJJJBCA9rGI8kJJJJBABAEC98gGLZ+JJJJBDNALAE9PMBAIAECIgGVCITGEFCBCAAE9r/8KBAIABALCITFGBAE/8QBBAIAVZ+JJJJBABAIAE/8QBBKAICAF8kJJJJBK/hILDUE97EUV978jJJJJBCZ9rHDDNAEtMBCBHIINADABPBBBGLABCZFGVPBBBGOPMLVORXMpScxql358e8fGRCZP+sEGWCLP+rEPKLBABjBBJzPaj/zL81zPaAWCIPhP9QP/6EP/nEGWALAOPMBEDIWdQKZhoaky8aeGLCZP+rECZP+sEP/6EP/mEGOAOP/mEAWALCZP+sEP/6EP/mEGdAdP/mEAWARCZP+rECZP+sEP/6EP/mEGRARP/mEP/kEP/kEP/lECBPhP+4EP/jEjB/+fsPaGWP/mEjBBN0PaGLP/kECffIPhGQP9OAdAWP/mEALP/kECZP+rEP9QGdARAWP/mEALP/kECZP+rEAOAWP/mEALP/kEAQP9OP9QGWPMBEZhDIoaLVcxORqlGLP5BADPBLBPeB+t+J83IBABCWFALP5EADPBLBPeE+t+J83IBAVAdAWPMWdkyQK8aeXM35pS8e8fGWP5BADPBLBPeD+t+J83IBABCkFAWP5EADPBLBPeI+t+J83IBABCAFHBAICLFGIAE6MBKKK/3EDIUE978jJJJJBC/AB9rHIDNADCD4AE2GLC98gGVtMBCBHDABHEINAEAEPBBBGOCWP+rECWP+sEP/6EAOCkP+sEClP+rECJJJ/8IPhP+uEP/mEPKBBAECZFHEADCLFGDAV6MBKKDNAVAL9PMBAIALCIgGDCDTGEvCBC/ABAE9r/8KBAIABAVCDTFGVAE/8QBBDNADtMBAIAIPBLBGOCWP+rECWP+sEP/6EAOCkP+sEClP+rECJJJ/8IPhP+uEP/mEPKLBKAVAIAE/8QBBKK9TEIUCBCBYDJ1JJBGEABCIFC98gFGBbDJ1JJBDNDNABzBCZTGD9NMBCUHIABAD9rCffIFCZ4NBCUsMEKAEHIKAIKKKEBCJWKLZ9tBB");var r=WebAssembly.instantiate(function(e){for(var i=new Uint8Array(e.length),n=0;n<e.length;++n){var r=e.charCodeAt(n);i[n]=r>96?r-71:r>64?r-65:r>47?r+4:r>46?63:62}var o=0;for(n=0;n<e.length;++n)i[o++]=i[n]<60?t[i[n]]:64*(i[n]-60)+i[++n];return i.buffer.slice(0,o)}(n),{}).then((function(e){(i=e.instance).exports.__wasm_call_ctors()}));function o(e,t,n,r,o,s){var a=i.exports.sbrk,c=n+3&-4,u=a(c*r),l=a(o.length),h=new Uint8Array(i.exports.memory.buffer);h.set(o,l);var d=e(u,n,r,l,o.length);if(0==d&&s&&s(u,c,r),t.set(h.subarray(u,u+n*r)),a(u-a(0)),0!=d)throw new Error("Malformed buffer data: "+d)}var s={0:"",1:"meshopt_decodeFilterOct",2:"meshopt_decodeFilterQuat",3:"meshopt_decodeFilterExp",NONE:"",OCTAHEDRAL:"meshopt_decodeFilterOct",QUATERNION:"meshopt_decodeFilterQuat",EXPONENTIAL:"meshopt_decodeFilterExp"},a={0:"meshopt_decodeVertexBuffer",1:"meshopt_decodeIndexBuffer",2:"meshopt_decodeIndexSequence",ATTRIBUTES:"meshopt_decodeVertexBuffer",TRIANGLES:"meshopt_decodeIndexBuffer",INDICES:"meshopt_decodeIndexSequence"};return{ready:r,supported:!0,decodeVertexBuffer:function(e,t,n,r,a){o(i.exports.meshopt_decodeVertexBuffer,e,t,n,r,i.exports[s[a]])},decodeIndexBuffer:function(e,t,n,r){o(i.exports.meshopt_decodeIndexBuffer,e,t,n,r)},decodeIndexSequence:function(e,t,n,r){o(i.exports.meshopt_decodeIndexSequence,e,t,n,r)},decodeGltfBuffer:function(e,t,n,r,c,u){o(i.exports[a[c]],e,t,n,r,i.exports[s[u]])}}}()},977950:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});const{webm:n,mp4:r}={webm:"data:video/webm;base64,GkXfo0AgQoaBAUL3gQFC8oEEQvOBCEKCQAR3ZWJtQoeBAkKFgQIYU4BnQI0VSalmQCgq17FAAw9CQE2AQAZ3aGFtbXlXQUAGd2hhbW15RIlACECPQAAAAAAAFlSua0AxrkAu14EBY8WBAZyBACK1nEADdW5khkAFVl9WUDglhohAA1ZQOIOBAeBABrCBCLqBCB9DtnVAIueBAKNAHIEAAIAwAQCdASoIAAgAAUAmJaQAA3AA/vz0AAA=",mp4:"data:video/mp4;base64,AAAAIGZ0eXBtcDQyAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAACKBtZGF0AAAC8wYF///v3EXpvebZSLeWLNgg2SPu73gyNjQgLSBjb3JlIDE0MiByMjQ3OSBkZDc5YTYxIC0gSC4yNjQvTVBFRy00IEFWQyBjb2RlYyAtIENvcHlsZWZ0IDIwMDMtMjAxNCAtIGh0dHA6Ly93d3cudmlkZW9sYW4ub3JnL3gyNjQuaHRtbCAtIG9wdGlvbnM6IGNhYmFjPTEgcmVmPTEgZGVibG9jaz0xOjA6MCBhbmFseXNlPTB4MToweDExMSBtZT1oZXggc3VibWU9MiBwc3k9MSBwc3lfcmQ9MS4wMDowLjAwIG1peGVkX3JlZj0wIG1lX3JhbmdlPTE2IGNocm9tYV9tZT0xIHRyZWxsaXM9MCA4eDhkY3Q9MCBjcW09MCBkZWFkem9uZT0yMSwxMSBmYXN0X3Bza2lwPTEgY2hyb21hX3FwX29mZnNldD0wIHRocmVhZHM9NiBsb29rYWhlYWRfdGhyZWFkcz0xIHNsaWNlZF90aHJlYWRzPTAgbnI9MCBkZWNpbWF0ZT0xIGludGVybGFjZWQ9MCBibHVyYXlfY29tcGF0PTAgY29uc3RyYWluZWRfaW50cmE9MCBiZnJhbWVzPTMgYl9weXJhbWlkPTIgYl9hZGFwdD0xIGJfYmlhcz0wIGRpcmVjdD0xIHdlaWdodGI9MSBvcGVuX2dvcD0wIHdlaWdodHA9MSBrZXlpbnQ9MzAwIGtleWludF9taW49MzAgc2NlbmVjdXQ9NDAgaW50cmFfcmVmcmVzaD0wIHJjX2xvb2thaGVhZD0xMCByYz1jcmYgbWJ0cmVlPTEgY3JmPTIwLjAgcWNvbXA9MC42MCBxcG1pbj0wIHFwbWF4PTY5IHFwc3RlcD00IHZidl9tYXhyYXRlPTIwMDAwIHZidl9idWZzaXplPTI1MDAwIGNyZl9tYXg9MC4wIG5hbF9ocmQ9bm9uZSBmaWxsZXI9MCBpcF9yYXRpbz0xLjQwIGFxPTE6MS4wMACAAAAAOWWIhAA3//p+C7v8tDDSTjf97w55i3SbRPO4ZY+hkjD5hbkAkL3zpJ6h/LR1CAABzgB1kqqzUorlhQAAAAxBmiQYhn/+qZYADLgAAAAJQZ5CQhX/AAj5IQADQGgcIQADQGgcAAAACQGeYUQn/wALKCEAA0BoHAAAAAkBnmNEJ/8ACykhAANAaBwhAANAaBwAAAANQZpoNExDP/6plgAMuSEAA0BoHAAAAAtBnoZFESwr/wAI+SEAA0BoHCEAA0BoHAAAAAkBnqVEJ/8ACykhAANAaBwAAAAJAZ6nRCf/AAsoIQADQGgcIQADQGgcAAAADUGarDRMQz/+qZYADLghAANAaBwAAAALQZ7KRRUsK/8ACPkhAANAaBwAAAAJAZ7pRCf/AAsoIQADQGgcIQADQGgcAAAACQGe60Qn/wALKCEAA0BoHAAAAA1BmvA0TEM//qmWAAy5IQADQGgcIQADQGgcAAAAC0GfDkUVLCv/AAj5IQADQGgcAAAACQGfLUQn/wALKSEAA0BoHCEAA0BoHAAAAAkBny9EJ/8ACyghAANAaBwAAAANQZs0NExDP/6plgAMuCEAA0BoHAAAAAtBn1JFFSwr/wAI+SEAA0BoHCEAA0BoHAAAAAkBn3FEJ/8ACyghAANAaBwAAAAJAZ9zRCf/AAsoIQADQGgcIQADQGgcAAAADUGbeDRMQz/+qZYADLkhAANAaBwAAAALQZ+WRRUsK/8ACPghAANAaBwhAANAaBwAAAAJAZ+1RCf/AAspIQADQGgcAAAACQGft0Qn/wALKSEAA0BoHCEAA0BoHAAAAA1Bm7w0TEM//qmWAAy4IQADQGgcAAAAC0Gf2kUVLCv/AAj5IQADQGgcAAAACQGf+UQn/wALKCEAA0BoHCEAA0BoHAAAAAkBn/tEJ/8ACykhAANAaBwAAAANQZvgNExDP/6plgAMuSEAA0BoHCEAA0BoHAAAAAtBnh5FFSwr/wAI+CEAA0BoHAAAAAkBnj1EJ/8ACyghAANAaBwhAANAaBwAAAAJAZ4/RCf/AAspIQADQGgcAAAADUGaJDRMQz/+qZYADLghAANAaBwAAAALQZ5CRRUsK/8ACPkhAANAaBwhAANAaBwAAAAJAZ5hRCf/AAsoIQADQGgcAAAACQGeY0Qn/wALKSEAA0BoHCEAA0BoHAAAAA1Bmmg0TEM//qmWAAy5IQADQGgcAAAAC0GehkUVLCv/AAj5IQADQGgcIQADQGgcAAAACQGepUQn/wALKSEAA0BoHAAAAAkBnqdEJ/8ACyghAANAaBwAAAANQZqsNExDP/6plgAMuCEAA0BoHCEAA0BoHAAAAAtBnspFFSwr/wAI+SEAA0BoHAAAAAkBnulEJ/8ACyghAANAaBwhAANAaBwAAAAJAZ7rRCf/AAsoIQADQGgcAAAADUGa8DRMQz/+qZYADLkhAANAaBwhAANAaBwAAAALQZ8ORRUsK/8ACPkhAANAaBwAAAAJAZ8tRCf/AAspIQADQGgcIQADQGgcAAAACQGfL0Qn/wALKCEAA0BoHAAAAA1BmzQ0TEM//qmWAAy4IQADQGgcAAAAC0GfUkUVLCv/AAj5IQADQGgcIQADQGgcAAAACQGfcUQn/wALKCEAA0BoHAAAAAkBn3NEJ/8ACyghAANAaBwhAANAaBwAAAANQZt4NExC//6plgAMuSEAA0BoHAAAAAtBn5ZFFSwr/wAI+CEAA0BoHCEAA0BoHAAAAAkBn7VEJ/8ACykhAANAaBwAAAAJAZ+3RCf/AAspIQADQGgcAAAADUGbuzRMQn/+nhAAYsAhAANAaBwhAANAaBwAAAAJQZ/aQhP/AAspIQADQGgcAAAACQGf+UQn/wALKCEAA0BoHCEAA0BoHCEAA0BoHCEAA0BoHCEAA0BoHCEAA0BoHAAACiFtb292AAAAbG12aGQAAAAA1YCCX9WAgl8AAAPoAAAH/AABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAGGlvZHMAAAAAEICAgAcAT////v7/AAAF+XRyYWsAAABcdGtoZAAAAAPVgIJf1YCCXwAAAAEAAAAAAAAH0AAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAygAAAMoAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAB9AAABdwAAEAAAAABXFtZGlhAAAAIG1kaGQAAAAA1YCCX9WAgl8AAV+QAAK/IFXEAAAAAAAtaGRscgAAAAAAAAAAdmlkZQAAAAAAAAAAAAAAAFZpZGVvSGFuZGxlcgAAAAUcbWluZgAAABR2bWhkAAAAAQAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAAE3HN0YmwAAACYc3RzZAAAAAAAAAABAAAAiGF2YzEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAygDKAEgAAABIAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY//8AAAAyYXZjQwFNQCj/4QAbZ01AKOyho3ySTUBAQFAAAAMAEAAr8gDxgxlgAQAEaO+G8gAAABhzdHRzAAAAAAAAAAEAAAA8AAALuAAAABRzdHNzAAAAAAAAAAEAAAABAAAB8GN0dHMAAAAAAAAAPAAAAAEAABdwAAAAAQAAOpgAAAABAAAXcAAAAAEAAAAAAAAAAQAAC7gAAAABAAA6mAAAAAEAABdwAAAAAQAAAAAAAAABAAALuAAAAAEAADqYAAAAAQAAF3AAAAABAAAAAAAAAAEAAAu4AAAAAQAAOpgAAAABAAAXcAAAAAEAAAAAAAAAAQAAC7gAAAABAAA6mAAAAAEAABdwAAAAAQAAAAAAAAABAAALuAAAAAEAADqYAAAAAQAAF3AAAAABAAAAAAAAAAEAAAu4AAAAAQAAOpgAAAABAAAXcAAAAAEAAAAAAAAAAQAAC7gAAAABAAA6mAAAAAEAABdwAAAAAQAAAAAAAAABAAALuAAAAAEAADqYAAAAAQAAF3AAAAABAAAAAAAAAAEAAAu4AAAAAQAAOpgAAAABAAAXcAAAAAEAAAAAAAAAAQAAC7gAAAABAAA6mAAAAAEAABdwAAAAAQAAAAAAAAABAAALuAAAAAEAADqYAAAAAQAAF3AAAAABAAAAAAAAAAEAAAu4AAAAAQAAOpgAAAABAAAXcAAAAAEAAAAAAAAAAQAAC7gAAAABAAA6mAAAAAEAABdwAAAAAQAAAAAAAAABAAALuAAAAAEAAC7gAAAAAQAAF3AAAAABAAAAAAAAABxzdHNjAAAAAAAAAAEAAAABAAAAAQAAAAEAAAEEc3RzegAAAAAAAAAAAAAAPAAAAzQAAAAQAAAADQAAAA0AAAANAAAAEQAAAA8AAAANAAAADQAAABEAAAAPAAAADQAAAA0AAAARAAAADwAAAA0AAAANAAAAEQAAAA8AAAANAAAADQAAABEAAAAPAAAADQAAAA0AAAARAAAADwAAAA0AAAANAAAAEQAAAA8AAAANAAAADQAAABEAAAAPAAAADQAAAA0AAAARAAAADwAAAA0AAAANAAAAEQAAAA8AAAANAAAADQAAABEAAAAPAAAADQAAAA0AAAARAAAADwAAAA0AAAANAAAAEQAAAA8AAAANAAAADQAAABEAAAANAAAADQAAAQBzdGNvAAAAAAAAADwAAAAwAAADZAAAA3QAAAONAAADoAAAA7kAAAPQAAAD6wAAA/4AAAQXAAAELgAABEMAAARcAAAEbwAABIwAAAShAAAEugAABM0AAATkAAAE/wAABRIAAAUrAAAFQgAABV0AAAVwAAAFiQAABaAAAAW1AAAFzgAABeEAAAX+AAAGEwAABiwAAAY/AAAGVgAABnEAAAaEAAAGnQAABrQAAAbPAAAG4gAABvUAAAcSAAAHJwAAB0AAAAdTAAAHcAAAB4UAAAeeAAAHsQAAB8gAAAfjAAAH9gAACA8AAAgmAAAIQQAACFQAAAhnAAAIhAAACJcAAAMsdHJhawAAAFx0a2hkAAAAA9WAgl/VgIJfAAAAAgAAAAAAAAf8AAAAAAAAAAAAAAABAQAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAACsm1kaWEAAAAgbWRoZAAAAADVgIJf1YCCXwAArEQAAWAAVcQAAAAAACdoZGxyAAAAAAAAAABzb3VuAAAAAAAAAAAAAAAAU3RlcmVvAAAAAmNtaW5mAAAAEHNtaGQAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAidzdGJsAAAAZ3N0c2QAAAAAAAAAAQAAAFdtcDRhAAAAAAAAAAEAAAAAAAAAAAACABAAAAAArEQAAAAAADNlc2RzAAAAAAOAgIAiAAIABICAgBRAFQAAAAADDUAAAAAABYCAgAISEAaAgIABAgAAABhzdHRzAAAAAAAAAAEAAABYAAAEAAAAABxzdHNjAAAAAAAAAAEAAAABAAAAAQAAAAEAAAAUc3RzegAAAAAAAAAGAAAAWAAAAXBzdGNvAAAAAAAAAFgAAAOBAAADhwAAA5oAAAOtAAADswAAA8oAAAPfAAAD5QAAA/gAAAQLAAAEEQAABCgAAAQ9AAAEUAAABFYAAARpAAAEgAAABIYAAASbAAAErgAABLQAAATHAAAE3gAABPMAAAT5AAAFDAAABR8AAAUlAAAFPAAABVEAAAVXAAAFagAABX0AAAWDAAAFmgAABa8AAAXCAAAFyAAABdsAAAXyAAAF+AAABg0AAAYgAAAGJgAABjkAAAZQAAAGZQAABmsAAAZ+AAAGkQAABpcAAAauAAAGwwAABskAAAbcAAAG7wAABwYAAAcMAAAHIQAABzQAAAc6AAAHTQAAB2QAAAdqAAAHfwAAB5IAAAeYAAAHqwAAB8IAAAfXAAAH3QAAB/AAAAgDAAAICQAACCAAAAg1AAAIOwAACE4AAAhhAAAIeAAACH4AAAiRAAAIpAAACKoAAAiwAAAItgAACLwAAAjCAAAAFnVkdGEAAAAObmFtZVN0ZXJlbwAAAHB1ZHRhAAAAaG1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAAO2lsc3QAAAAzqXRvbwAAACtkYXRhAAAAAQAAAABIYW5kQnJha2UgMC4xMC4yIDIwMTUwNjExMDA="},o="undefined"!=typeof navigator&&parseFloat((""+(/CPU.*OS ([0-9_]{3,4})[0-9_]{0,1}|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))<10&&!window.MSStream;var s=class{constructor(){o?this.noSleepTimer=null:(this.noSleepVideo=document.createElement("video"),this.noSleepVideo.setAttribute("muted",""),this.noSleepVideo.setAttribute("title","No Sleep"),this.noSleepVideo.setAttribute("playsinline",""),this._addSourceToVideo(this.noSleepVideo,"webm",n),this._addSourceToVideo(this.noSleepVideo,"mp4",r),this.noSleepVideo.addEventListener("loadedmetadata",(()=>{this.noSleepVideo.duration<=1?this.noSleepVideo.setAttribute("loop",""):this.noSleepVideo.addEventListener("timeupdate",(()=>{this.noSleepVideo.currentTime>.5&&(this.noSleepVideo.currentTime=Math.random())}))})))}_addSourceToVideo(e,t,i){var n=document.createElement("source");n.src=i,n.type=`video/${t}`,e.appendChild(n)}enable(){o?(this.disable(),console.warn("\n NoSleep enabled for older iOS devices. This can interrupt\n active or long-running network requests from completing successfully.\n See https://github.com/richtr/NoSleep.js/issues/15 for more details.\n "),this.noSleepTimer=window.setInterval((()=>{document.hidden||(window.location.href=window.location.href.split("#")[0],window.setTimeout(window.stop,0))}),15e3)):this.noSleepVideo.play()}disable(){o?this.noSleepTimer&&(console.warn("\n NoSleep now disabled for older iOS devices.\n "),window.clearInterval(this.noSleepTimer),this.noSleepTimer=null):this.noSleepVideo.pause()}}},976250:(e,t,i)=>{"use strict";i.d(t,{Z:()=>U});var n=(0,i(614955).c)((function(e,t){var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var i=t.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var r in i)n(i,r)&&(e[r]=i[r])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,i,n,r){if(t.subarray&&e.subarray)e.set(t.subarray(i,i+n),r);else for(var o=0;o<n;o++)e[r+o]=t[i+o]},flattenChunks:function(e){var t,i,n,r,o,s;for(n=0,t=0,i=e.length;t<i;t++)n+=e[t].length;for(s=new Uint8Array(n),r=0,t=0,i=e.length;t<i;t++)o=e[t],s.set(o,r),r+=o.length;return s}},o={arraySet:function(e,t,i,n,r){for(var o=0;o<n;o++)e[r+o]=t[i+o]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,r)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,o))},t.setTyped(i)})),r=function(e,t,i,n){for(var r=65535&e|0,o=e>>>16&65535|0,s=0;0!==i;){i-=s=i>2e3?2e3:i;do{o=o+(r=r+t[n++]|0)|0}while(--s);r%=65521,o%=65521}return r|o<<16|0},o=function(){for(var e,t=[],i=0;i<256;i++){e=i;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[i]=e}return t}(),s=function(e,t,i,n){var r=o,s=n+i;e^=-1;for(var a=n;a<s;a++)e=e>>>8^r[255&(e^t[a])];return-1^e},a=function(e,t){var i,n,r,o,s,a,c,u,l,h,d,f,p,m,_,Z,g,y,b,A,w,v,T,C,E;i=e.state,n=e.next_in,C=e.input,r=n+(e.avail_in-5),o=e.next_out,E=e.output,s=o-(t-e.avail_out),a=o+(e.avail_out-257),c=i.dmax,u=i.wsize,l=i.whave,h=i.wnext,d=i.window,f=i.hold,p=i.bits,m=i.lencode,_=i.distcode,Z=(1<<i.lenbits)-1,g=(1<<i.distbits)-1;e:do{p<15&&(f+=C[n++]<<p,p+=8,f+=C[n++]<<p,p+=8),y=m[f&Z];t:for(;;){if(f>>>=b=y>>>24,p-=b,0==(b=y>>>16&255))E[o++]=65535&y;else{if(!(16&b)){if(0==(64&b)){y=m[(65535&y)+(f&(1<<b)-1)];continue t}if(32&b){i.mode=12;break e}e.msg="invalid literal/length code",i.mode=30;break e}A=65535&y,(b&=15)&&(p<b&&(f+=C[n++]<<p,p+=8),A+=f&(1<<b)-1,f>>>=b,p-=b),p<15&&(f+=C[n++]<<p,p+=8,f+=C[n++]<<p,p+=8),y=_[f&g];i:for(;;){if(f>>>=b=y>>>24,p-=b,!(16&(b=y>>>16&255))){if(0==(64&b)){y=_[(65535&y)+(f&(1<<b)-1)];continue i}e.msg="invalid distance code",i.mode=30;break e}if(w=65535&y,p<(b&=15)&&(f+=C[n++]<<p,(p+=8)<b&&(f+=C[n++]<<p,p+=8)),(w+=f&(1<<b)-1)>c){e.msg="invalid distance too far back",i.mode=30;break e}if(f>>>=b,p-=b,w>(b=o-s)){if((b=w-b)>l&&i.sane){e.msg="invalid distance too far back",i.mode=30;break e}if(v=0,T=d,0===h){if(v+=u-b,b<A){A-=b;do{E[o++]=d[v++]}while(--b);v=o-w,T=E}}else if(h<b){if(v+=u+h-b,(b-=h)<A){A-=b;do{E[o++]=d[v++]}while(--b);if(v=0,h<A){A-=b=h;do{E[o++]=d[v++]}while(--b);v=o-w,T=E}}}else if(v+=h-b,b<A){A-=b;do{E[o++]=d[v++]}while(--b);v=o-w,T=E}for(;A>2;)E[o++]=T[v++],E[o++]=T[v++],E[o++]=T[v++],A-=3;A&&(E[o++]=T[v++],A>1&&(E[o++]=T[v++]))}else{v=o-w;do{E[o++]=E[v++],E[o++]=E[v++],E[o++]=E[v++],A-=3}while(A>2);A&&(E[o++]=E[v++],A>1&&(E[o++]=E[v++]))}break}}break}}while(n<r&&o<a);n-=A=p>>3,f&=(1<<(p-=A<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n<r?r-n+5:5-(n-r),e.avail_out=o<a?a-o+257:257-(o-a),i.hold=f,i.bits=p},c=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],u=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],h=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],d=function(e,t,i,r,o,s,a,d){var f,p,m,_,Z,g,y,b,A,w=d.bits,v=0,T=0,C=0,E=0,x=0,S=0,O=0,I=0,D=0,P=0,R=null,B=0,M=new n.Buf16(16),L=new n.Buf16(16),N=null,F=0;for(v=0;v<=15;v++)M[v]=0;for(T=0;T<r;T++)M[t[i+T]]++;for(x=w,E=15;E>=1&&0===M[E];E--);if(x>E&&(x=E),0===E)return o[s++]=20971520,o[s++]=20971520,d.bits=1,0;for(C=1;C<E&&0===M[C];C++);for(x<C&&(x=C),I=1,v=1;v<=15;v++)if(I<<=1,(I-=M[v])<0)return-1;if(I>0&&(0===e||1!==E))return-1;for(L[1]=0,v=1;v<15;v++)L[v+1]=L[v]+M[v];for(T=0;T<r;T++)0!==t[i+T]&&(a[L[t[i+T]]++]=T);if(0===e?(R=N=a,g=19):1===e?(R=c,B-=257,N=u,F-=257,g=256):(R=l,N=h,g=-1),P=0,T=0,v=C,Z=s,S=x,O=0,m=-1,_=(D=1<<x)-1,1===e&&D>852||2===e&&D>592)return 1;for(;;){y=v-O,a[T]<g?(b=0,A=a[T]):a[T]>g?(b=N[F+a[T]],A=R[B+a[T]]):(b=96,A=0),f=1<<v-O,C=p=1<<S;do{o[Z+(P>>O)+(p-=f)]=y<<24|b<<16|A|0}while(0!==p);for(f=1<<v-1;P&f;)f>>=1;if(0!==f?(P&=f-1,P+=f):P=0,T++,0==--M[v]){if(v===E)break;v=t[i+a[T]]}if(v>x&&(P&_)!==m){for(0===O&&(O=x),Z+=C,I=1<<(S=v-O);S+O<E&&!((I-=M[S+O])<=0);)S++,I<<=1;if(D+=1<<S,1===e&&D>852||2===e&&D>592)return 1;o[m=P&_]=x<<24|S<<16|Z-s|0}}return 0!==P&&(o[Z+P]=v-O<<24|64<<16|0),d.bits=x,0},f=-2,p=12,m=30;function _(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function Z(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function g(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):f}function y(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,g(e)):f}function b(e,t){var i,n;return e&&e.state?(n=e.state,t<0?(i=0,t=-t):(i=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?f:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=i,n.wbits=t,y(e))):f}function A(e,t){var i,n;return e?(n=new Z,e.state=n,n.window=null,0!==(i=b(e,t))&&(e.state=null),i):f}var w,v,T=!0;function C(e){if(T){var t;for(w=new n.Buf32(512),v=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(d(1,e.lens,0,288,w,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;d(2,e.lens,0,32,v,0,e.work,{bits:5}),T=!1}e.lencode=w,e.lenbits=9,e.distcode=v,e.distbits=5}function E(e,t,i,r){var o,s=e.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new n.Buf8(s.wsize)),r>=s.wsize?(n.arraySet(s.window,t,i-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):((o=s.wsize-s.wnext)>r&&(o=r),n.arraySet(s.window,t,i-r,o,s.wnext),(r-=o)?(n.arraySet(s.window,t,i-r,r,0),s.wnext=r,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}var x={inflateReset:y,inflateReset2:b,inflateResetKeep:g,inflateInit:function(e){return A(e,15)},inflateInit2:A,inflate:function(e,t){var i,o,c,u,l,h,Z,g,y,b,A,w,v,T,x,S,O,I,D,P,R,B,M,L,N=0,F=new n.Buf8(4),k=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return f;(i=e.state).mode===p&&(i.mode=13),l=e.next_out,c=e.output,Z=e.avail_out,u=e.next_in,o=e.input,h=e.avail_in,g=i.hold,y=i.bits,b=h,A=Z,B=0;e:for(;;)switch(i.mode){case 1:if(0===i.wrap){i.mode=13;break}for(;y<16;){if(0===h)break e;h--,g+=o[u++]<<y,y+=8}if(2&i.wrap&&35615===g){i.check=0,F[0]=255&g,F[1]=g>>>8&255,i.check=s(i.check,F,2,0),g=0,y=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&g)<<8)+(g>>8))%31){e.msg="incorrect header check",i.mode=m;break}if(8!=(15&g)){e.msg="unknown compression method",i.mode=m;break}if(y-=4,R=8+(15&(g>>>=4)),0===i.wbits)i.wbits=R;else if(R>i.wbits){e.msg="invalid window size",i.mode=m;break}i.dmax=1<<R,e.adler=i.check=1,i.mode=512&g?10:p,g=0,y=0;break;case 2:for(;y<16;){if(0===h)break e;h--,g+=o[u++]<<y,y+=8}if(i.flags=g,8!=(255&i.flags)){e.msg="unknown compression method",i.mode=m;break}if(57344&i.flags){e.msg="unknown header flags set",i.mode=m;break}i.head&&(i.head.text=g>>8&1),512&i.flags&&(F[0]=255&g,F[1]=g>>>8&255,i.check=s(i.check,F,2,0)),g=0,y=0,i.mode=3;case 3:for(;y<32;){if(0===h)break e;h--,g+=o[u++]<<y,y+=8}i.head&&(i.head.time=g),512&i.flags&&(F[0]=255&g,F[1]=g>>>8&255,F[2]=g>>>16&255,F[3]=g>>>24&255,i.check=s(i.check,F,4,0)),g=0,y=0,i.mode=4;case 4:for(;y<16;){if(0===h)break e;h--,g+=o[u++]<<y,y+=8}i.head&&(i.head.xflags=255&g,i.head.os=g>>8),512&i.flags&&(F[0]=255&g,F[1]=g>>>8&255,i.check=s(i.check,F,2,0)),g=0,y=0,i.mode=5;case 5:if(1024&i.flags){for(;y<16;){if(0===h)break e;h--,g+=o[u++]<<y,y+=8}i.length=g,i.head&&(i.head.extra_len=g),512&i.flags&&(F[0]=255&g,F[1]=g>>>8&255,i.check=s(i.check,F,2,0)),g=0,y=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&((w=i.length)>h&&(w=h),w&&(i.head&&(R=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),n.arraySet(i.head.extra,o,u,w,R)),512&i.flags&&(i.check=s(i.check,o,w,u)),h-=w,u+=w,i.length-=w),i.length))break e;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===h)break e;w=0;do{R=o[u+w++],i.head&&R&&i.length<65536&&(i.head.name+=String.fromCharCode(R))}while(R&&w<h);if(512&i.flags&&(i.check=s(i.check,o,w,u)),h-=w,u+=w,R)break e}else i.head&&(i.head.name=null);i.length=0,i.mode=8;case 8:if(4096&i.flags){if(0===h)break e;w=0;do{R=o[u+w++],i.head&&R&&i.length<65536&&(i.head.comment+=String.fromCharCode(R))}while(R&&w<h);if(512&i.flags&&(i.check=s(i.check,o,w,u)),h-=w,u+=w,R)break e}else i.head&&(i.head.comment=null);i.mode=9;case 9:if(512&i.flags){for(;y<16;){if(0===h)break e;h--,g+=o[u++]<<y,y+=8}if(g!==(65535&i.check)){e.msg="header crc mismatch",i.mode=m;break}g=0,y=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),e.adler=i.check=0,i.mode=p;break;case 10:for(;y<32;){if(0===h)break e;h--,g+=o[u++]<<y,y+=8}e.adler=i.check=_(g),g=0,y=0,i.mode=11;case 11:if(0===i.havedict)return e.next_out=l,e.avail_out=Z,e.next_in=u,e.avail_in=h,i.hold=g,i.bits=y,2;e.adler=i.check=1,i.mode=p;case p:if(5===t||6===t)break e;case 13:if(i.last){g>>>=7&y,y-=7&y,i.mode=27;break}for(;y<3;){if(0===h)break e;h--,g+=o[u++]<<y,y+=8}switch(i.last=1&g,y-=1,3&(g>>>=1)){case 0:i.mode=14;break;case 1:if(C(i),i.mode=20,6===t){g>>>=2,y-=2;break e}break;case 2:i.mode=17;break;case 3:e.msg="invalid block type",i.mode=m}g>>>=2,y-=2;break;case 14:for(g>>>=7&y,y-=7&y;y<32;){if(0===h)break e;h--,g+=o[u++]<<y,y+=8}if((65535&g)!=(g>>>16^65535)){e.msg="invalid stored block lengths",i.mode=m;break}if(i.length=65535&g,g=0,y=0,i.mode=15,6===t)break e;case 15:i.mode=16;case 16:if(w=i.length){if(w>h&&(w=h),w>Z&&(w=Z),0===w)break e;n.arraySet(c,o,u,w,l),h-=w,u+=w,Z-=w,l+=w,i.length-=w;break}i.mode=p;break;case 17:for(;y<14;){if(0===h)break e;h--,g+=o[u++]<<y,y+=8}if(i.nlen=257+(31&g),g>>>=5,y-=5,i.ndist=1+(31&g),g>>>=5,y-=5,i.ncode=4+(15&g),g>>>=4,y-=4,i.nlen>286||i.ndist>30){e.msg="too many length or distance symbols",i.mode=m;break}i.have=0,i.mode=18;case 18:for(;i.have<i.ncode;){for(;y<3;){if(0===h)break e;h--,g+=o[u++]<<y,y+=8}i.lens[k[i.have++]]=7&g,g>>>=3,y-=3}for(;i.have<19;)i.lens[k[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,M={bits:i.lenbits},B=d(0,i.lens,0,19,i.lencode,0,i.work,M),i.lenbits=M.bits,B){e.msg="invalid code lengths set",i.mode=m;break}i.have=0,i.mode=19;case 19:for(;i.have<i.nlen+i.ndist;){for(;S=(N=i.lencode[g&(1<<i.lenbits)-1])>>>16&255,O=65535&N,!((x=N>>>24)<=y);){if(0===h)break e;h--,g+=o[u++]<<y,y+=8}if(O<16)g>>>=x,y-=x,i.lens[i.have++]=O;else{if(16===O){for(L=x+2;y<L;){if(0===h)break e;h--,g+=o[u++]<<y,y+=8}if(g>>>=x,y-=x,0===i.have){e.msg="invalid bit length repeat",i.mode=m;break}R=i.lens[i.have-1],w=3+(3&g),g>>>=2,y-=2}else if(17===O){for(L=x+3;y<L;){if(0===h)break e;h--,g+=o[u++]<<y,y+=8}y-=x,R=0,w=3+(7&(g>>>=x)),g>>>=3,y-=3}else{for(L=x+7;y<L;){if(0===h)break e;h--,g+=o[u++]<<y,y+=8}y-=x,R=0,w=11+(127&(g>>>=x)),g>>>=7,y-=7}if(i.have+w>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=m;break}for(;w--;)i.lens[i.have++]=R}}if(i.mode===m)break;if(0===i.lens[256]){e.msg="invalid code -- missing end-of-block",i.mode=m;break}if(i.lenbits=9,M={bits:i.lenbits},B=d(1,i.lens,0,i.nlen,i.lencode,0,i.work,M),i.lenbits=M.bits,B){e.msg="invalid literal/lengths set",i.mode=m;break}if(i.distbits=6,i.distcode=i.distdyn,M={bits:i.distbits},B=d(2,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,M),i.distbits=M.bits,B){e.msg="invalid distances set",i.mode=m;break}if(i.mode=20,6===t)break e;case 20:i.mode=21;case 21:if(h>=6&&Z>=258){e.next_out=l,e.avail_out=Z,e.next_in=u,e.avail_in=h,i.hold=g,i.bits=y,a(e,A),l=e.next_out,c=e.output,Z=e.avail_out,u=e.next_in,o=e.input,h=e.avail_in,g=i.hold,y=i.bits,i.mode===p&&(i.back=-1);break}for(i.back=0;S=(N=i.lencode[g&(1<<i.lenbits)-1])>>>16&255,O=65535&N,!((x=N>>>24)<=y);){if(0===h)break e;h--,g+=o[u++]<<y,y+=8}if(S&&0==(240&S)){for(I=x,D=S,P=O;S=(N=i.lencode[P+((g&(1<<I+D)-1)>>I)])>>>16&255,O=65535&N,!(I+(x=N>>>24)<=y);){if(0===h)break e;h--,g+=o[u++]<<y,y+=8}g>>>=I,y-=I,i.back+=I}if(g>>>=x,y-=x,i.back+=x,i.length=O,0===S){i.mode=26;break}if(32&S){i.back=-1,i.mode=p;break}if(64&S){e.msg="invalid literal/length code",i.mode=m;break}i.extra=15&S,i.mode=22;case 22:if(i.extra){for(L=i.extra;y<L;){if(0===h)break e;h--,g+=o[u++]<<y,y+=8}i.length+=g&(1<<i.extra)-1,g>>>=i.extra,y-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;S=(N=i.distcode[g&(1<<i.distbits)-1])>>>16&255,O=65535&N,!((x=N>>>24)<=y);){if(0===h)break e;h--,g+=o[u++]<<y,y+=8}if(0==(240&S)){for(I=x,D=S,P=O;S=(N=i.distcode[P+((g&(1<<I+D)-1)>>I)])>>>16&255,O=65535&N,!(I+(x=N>>>24)<=y);){if(0===h)break e;h--,g+=o[u++]<<y,y+=8}g>>>=I,y-=I,i.back+=I}if(g>>>=x,y-=x,i.back+=x,64&S){e.msg="invalid distance code",i.mode=m;break}i.offset=O,i.extra=15&S,i.mode=24;case 24:if(i.extra){for(L=i.extra;y<L;){if(0===h)break e;h--,g+=o[u++]<<y,y+=8}i.offset+=g&(1<<i.extra)-1,g>>>=i.extra,y-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back",i.mode=m;break}i.mode=25;case 25:if(0===Z)break e;if(w=A-Z,i.offset>w){if((w=i.offset-w)>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=m;break}w>i.wnext?(w-=i.wnext,v=i.wsize-w):v=i.wnext-w,w>i.length&&(w=i.length),T=i.window}else T=c,v=l-i.offset,w=i.length;w>Z&&(w=Z),Z-=w,i.length-=w;do{c[l++]=T[v++]}while(--w);0===i.length&&(i.mode=21);break;case 26:if(0===Z)break e;c[l++]=i.length,Z--,i.mode=21;break;case 27:if(i.wrap){for(;y<32;){if(0===h)break e;h--,g|=o[u++]<<y,y+=8}if(A-=Z,e.total_out+=A,i.total+=A,A&&(e.adler=i.check=i.flags?s(i.check,c,A,l-A):r(i.check,c,A,l-A)),A=Z,(i.flags?g:_(g))!==i.check){e.msg="incorrect data check",i.mode=m;break}g=0,y=0}i.mode=28;case 28:if(i.wrap&&i.flags){for(;y<32;){if(0===h)break e;h--,g+=o[u++]<<y,y+=8}if(g!==(4294967295&i.total)){e.msg="incorrect length check",i.mode=m;break}g=0,y=0}i.mode=29;case 29:B=1;break e;case m:B=-3;break e;case 31:return-4;default:return f}return e.next_out=l,e.avail_out=Z,e.next_in=u,e.avail_in=h,i.hold=g,i.bits=y,(i.wsize||A!==e.avail_out&&i.mode<m&&(i.mode<27||4!==t))&&E(e,e.output,e.next_out,A-e.avail_out),b-=e.avail_in,A-=e.avail_out,e.total_in+=b,e.total_out+=A,i.total+=A,i.wrap&&A&&(e.adler=i.check=i.flags?s(i.check,c,A,e.next_out-A):r(i.check,c,A,e.next_out-A)),e.data_type=i.bits+(i.last?64:0)+(i.mode===p?128:0)+(20===i.mode||15===i.mode?256:0),(0===b&&0===A||4===t)&&0===B&&(B=-5),B},inflateEnd:function(e){if(!e||!e.state)return f;var t=e.state;return t.window&&(t.window=null),e.state=null,0},inflateGetHeader:function(e,t){var i;return e&&e.state?0==(2&(i=e.state).wrap)?f:(i.head=t,t.done=!1,0):f},inflateSetDictionary:function(e,t){var i,n=t.length;return e&&e.state?0!==(i=e.state).wrap&&11!==i.mode?f:11===i.mode&&r(1,t,n,0)!==i.check?-3:E(e,t,n,n)?(i.mode=31,-4):(i.havedict=1,0):f},inflateInfo:"pako inflate (from Nodeca project)"},S=!0,O=!0;try{String.fromCharCode.apply(null,[0])}catch(e){S=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){O=!1}for(var I=new n.Buf8(256),D=0;D<256;D++)I[D]=D>=252?6:D>=248?5:D>=240?4:D>=224?3:D>=192?2:1;I[254]=I[254]=1;var P=function(e,t){var i,r,o,s,a=t||e.length,c=new Array(2*a);for(r=0,i=0;i<a;)if((o=e[i++])<128)c[r++]=o;else if((s=I[o])>4)c[r++]=65533,i+=s-1;else{for(o&=2===s?31:3===s?15:7;s>1&&i<a;)o=o<<6|63&e[i++],s--;s>1?c[r++]=65533:o<65536?c[r++]=o:(o-=65536,c[r++]=55296|o>>10&1023,c[r++]=56320|1023&o)}return function(e,t){if(t<65534&&(e.subarray&&O||!e.subarray&&S))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var i="",r=0;r<t;r++)i+=String.fromCharCode(e[r]);return i}(c,r)},R=function(e,t){var i;for((t=t||e.length)>e.length&&(t=e.length),i=t-1;i>=0&&128==(192&e[i]);)i--;return i<0||0===i?t:i+I[e[i]]>t?i:t},B={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},M=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},L=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},N=Object.prototype.toString;function F(e){if(!(this instanceof F))return new F(e);this.options=n.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new M,this.strm.avail_out=0;var i=x.inflateInit2(this.strm,t.windowBits);if(0!==i)throw new Error(B[i]);if(this.header=new L,x.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=function(e){var t,i,r,o,s,a=e.length,c=0;for(o=0;o<a;o++)55296==(64512&(i=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=e.charCodeAt(o+1)))&&(i=65536+(i-55296<<10)+(r-56320),o++),c+=i<128?1:i<2048?2:i<65536?3:4;for(t=new n.Buf8(c),s=0,o=0;s<c;o++)55296==(64512&(i=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=e.charCodeAt(o+1)))&&(i=65536+(i-55296<<10)+(r-56320),o++),i<128?t[s++]=i:i<2048?(t[s++]=192|i>>>6,t[s++]=128|63&i):i<65536?(t[s++]=224|i>>>12,t[s++]=128|i>>>6&63,t[s++]=128|63&i):(t[s++]=240|i>>>18,t[s++]=128|i>>>12&63,t[s++]=128|i>>>6&63,t[s++]=128|63&i);return t}(t.dictionary):"[object ArrayBuffer]"===N.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&0!==(i=x.inflateSetDictionary(this.strm,t.dictionary))))throw new Error(B[i])}function k(e,t){var i=new F(t);if(i.push(e,!0),i.err)throw i.msg||B[i.err];return i.result}F.prototype.push=function(e,t){var i,r,o,s,a,c=this.strm,u=this.options.chunkSize,l=this.options.dictionary,h=!1;if(this.ended)return!1;r=t===~~t?t:!0===t?4:0,"string"==typeof e?c.input=function(e){for(var t=new n.Buf8(e.length),i=0,r=t.length;i<r;i++)t[i]=e.charCodeAt(i);return t}(e):"[object ArrayBuffer]"===N.call(e)?c.input=new Uint8Array(e):c.input=e,c.next_in=0,c.avail_in=c.input.length;do{if(0===c.avail_out&&(c.output=new n.Buf8(u),c.next_out=0,c.avail_out=u),2===(i=x.inflate(c,0))&&l&&(i=x.inflateSetDictionary(this.strm,l)),-5===i&&!0===h&&(i=0,h=!1),1!==i&&0!==i)return this.onEnd(i),this.ended=!0,!1;c.next_out&&(0!==c.avail_out&&1!==i&&(0!==c.avail_in||4!==r&&2!==r)||("string"===this.options.to?(o=R(c.output,c.next_out),s=c.next_out-o,a=P(c.output,o),c.next_out=s,c.avail_out=u-s,s&&n.arraySet(c.output,c.output,o,s,0),this.onData(a)):this.onData(n.shrinkBuf(c.output,c.next_out)))),0===c.avail_in&&0===c.avail_out&&(h=!0)}while((c.avail_in>0||0===c.avail_out)&&1!==i);return 1===i&&(r=4),4===r?(i=x.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,0===i):2!==r||(this.onEnd(0),c.avail_out=0,!0)},F.prototype.onData=function(e){this.chunks.push(e)},F.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var U={Inflate:F,inflate:k,inflateRaw:function(e,t){return(t=t||{}).raw=!0,k(e,t)},ungzip:k}},735581:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>protobuf$1});var _commonjsHelpers_3aae1032_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(614955);function _mergeNamespaces(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(i){if("default"!==i&&!(i in e)){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:function(){return t[i]}})}}))})),Object.freeze(e)}var protobuf=(0,_commonjsHelpers_3aae1032_js__WEBPACK_IMPORTED_MODULE_0__.c)((function(module){(function(global,undefined$1){!function(e,t,i){var n=global.protobuf=function i(n){var r=t[n];return r||e[n][0].call(r=t[n]={exports:{}},i,r,r.exports),r.exports}(8);"function"==typeof undefined$1&&undefined$1.amd&&undefined$1(["long"],(function(e){return e&&e.isLong&&(n.util.Long=e,n.configure()),n})),module&&module.exports&&(module.exports=n)}({1:[function(e,t,i){t.exports=function(e,t){for(var i=[],n=2;n<arguments.length;)i.push(arguments[n++]);var r=!0;return new Promise((function(n,o){i.push((function(e){if(r)if(r=!1,e)o(e);else{for(var t=[],i=1;i<arguments.length;)t.push(arguments[i++]);n.apply(null,t)}}));try{e.apply(t||this,i)}catch(e){r&&(r=!1,o(e))}}))}},{}],2:[function(e,t,i){var n=i;n.length=function(e){var t=e.length;if(!t)return 0;for(var i=0;--t%4>1&&"="===e.charAt(t);)++i;return Math.ceil(3*e.length)/4-i};for(var r=new Array(64),o=new Array(123),s=0;s<64;)o[r[s]=s<26?s+65:s<52?s+71:s<62?s-4:s-59|43]=s++;n.encode=function(e,t,i){for(var n,o=[],s=0,a=0;t<i;){var c=e[t++];switch(a){case 0:o[s++]=r[c>>2],n=(3&c)<<4,a=1;break;case 1:o[s++]=r[n|c>>4],n=(15&c)<<2,a=2;break;case 2:o[s++]=r[n|c>>6],o[s++]=r[63&c],a=0}}return a&&(o[s++]=r[n],o[s]=61,1===a&&(o[s+1]=61)),String.fromCharCode.apply(String,o)};var a="invalid encoding";n.decode=function(e,t,i){for(var n,r=i,s=0,c=0;c<e.length;){var u=e.charCodeAt(c++);if(61===u&&s>1)break;if((u=o[u])===undefined$1)throw Error(a);switch(s){case 0:n=u,s=1;break;case 1:t[i++]=n<<2|(48&u)>>4,n=u,s=2;break;case 2:t[i++]=(15&n)<<4|(60&u)>>2,n=u,s=3;break;case 3:t[i++]=(3&n)<<6|u,s=0}}if(1===s)throw Error(a);return i-r},n.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},{}],3:[function(e,t,i){function n(){this._listeners={}}t.exports=n,n.prototype.on=function(e,t,i){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:i||this}),this},n.prototype.off=function(e,t){if(e===undefined$1)this._listeners={};else if(t===undefined$1)this._listeners[e]=[];else for(var i=this._listeners[e],n=0;n<i.length;)i[n].fn===t?i.splice(n,1):++n;return this},n.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var i=[],n=1;n<arguments.length;)i.push(arguments[n++]);for(n=0;n<t.length;)t[n].fn.apply(t[n++].ctx,i)}return this}},{}],4:[function(e,t,i){function n(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),i=new Uint8Array(t.buffer),n=128===i[3];function r(e,n,r){t[0]=e,n[r]=i[0],n[r+1]=i[1],n[r+2]=i[2],n[r+3]=i[3]}function o(e,n,r){t[0]=e,n[r]=i[3],n[r+1]=i[2],n[r+2]=i[1],n[r+3]=i[0]}function s(e,n){return i[0]=e[n],i[1]=e[n+1],i[2]=e[n+2],i[3]=e[n+3],t[0]}function a(e,n){return i[3]=e[n],i[2]=e[n+1],i[1]=e[n+2],i[0]=e[n+3],t[0]}e.writeFloatLE=n?r:o,e.writeFloatBE=n?o:r,e.readFloatLE=n?s:a,e.readFloatBE=n?a:s}():function(){function t(e,t,i,n){var r=t<0?1:0;if(r&&(t=-t),0===t)e(1/t>0?0:2147483648,i,n);else if(isNaN(t))e(2143289344,i,n);else if(t>34028234663852886e22)e((r<<31|2139095040)>>>0,i,n);else if(t<11754943508222875e-54)e((r<<31|Math.round(t/1401298464324817e-60))>>>0,i,n);else{var o=Math.floor(Math.log(t)/Math.LN2);e((r<<31|o+127<<23|8388607&Math.round(t*Math.pow(2,-o)*8388608))>>>0,i,n)}}function i(e,t,i){var n=e(t,i),r=2*(n>>31)+1,o=n>>>23&255,s=8388607&n;return 255===o?s?NaN:r*(1/0):0===o?1401298464324817e-60*r*s:r*Math.pow(2,o-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,o),e.readFloatLE=i.bind(null,s),e.readFloatBE=i.bind(null,a)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),i=new Uint8Array(t.buffer),n=128===i[7];function r(e,n,r){t[0]=e,n[r]=i[0],n[r+1]=i[1],n[r+2]=i[2],n[r+3]=i[3],n[r+4]=i[4],n[r+5]=i[5],n[r+6]=i[6],n[r+7]=i[7]}function o(e,n,r){t[0]=e,n[r]=i[7],n[r+1]=i[6],n[r+2]=i[5],n[r+3]=i[4],n[r+4]=i[3],n[r+5]=i[2],n[r+6]=i[1],n[r+7]=i[0]}function s(e,n){return i[0]=e[n],i[1]=e[n+1],i[2]=e[n+2],i[3]=e[n+3],i[4]=e[n+4],i[5]=e[n+5],i[6]=e[n+6],i[7]=e[n+7],t[0]}function a(e,n){return i[7]=e[n],i[6]=e[n+1],i[5]=e[n+2],i[4]=e[n+3],i[3]=e[n+4],i[2]=e[n+5],i[1]=e[n+6],i[0]=e[n+7],t[0]}e.writeDoubleLE=n?r:o,e.writeDoubleBE=n?o:r,e.readDoubleLE=n?s:a,e.readDoubleBE=n?a:s}():function(){function t(e,t,i,n,r,o){var s=n<0?1:0;if(s&&(n=-n),0===n)e(0,r,o+t),e(1/n>0?0:2147483648,r,o+i);else if(isNaN(n))e(0,r,o+t),e(2146959360,r,o+i);else if(n>17976931348623157e292)e(0,r,o+t),e((s<<31|2146435072)>>>0,r,o+i);else{var a;if(n<22250738585072014e-324)e((a=n/5e-324)>>>0,r,o+t),e((s<<31|a/4294967296)>>>0,r,o+i);else{var c=Math.floor(Math.log(n)/Math.LN2);1024===c&&(c=1023),e(4503599627370496*(a=n*Math.pow(2,-c))>>>0,r,o+t),e((s<<31|c+1023<<20|1048576*a&1048575)>>>0,r,o+i)}}}function i(e,t,i,n,r){var o=e(n,r+t),s=e(n,r+i),a=2*(s>>31)+1,c=s>>>20&2047,u=4294967296*(1048575&s)+o;return 2047===c?u?NaN:a*(1/0):0===c?5e-324*a*u:a*Math.pow(2,c-1075)*(u+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,o,4,0),e.readDoubleLE=i.bind(null,s,0,4),e.readDoubleBE=i.bind(null,a,4,0)}(),e}function r(e,t,i){t[i]=255&e,t[i+1]=e>>>8&255,t[i+2]=e>>>16&255,t[i+3]=e>>>24}function o(e,t,i){t[i]=e>>>24,t[i+1]=e>>>16&255,t[i+2]=e>>>8&255,t[i+3]=255&e}function s(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function a(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}t.exports=n(n)},{}],5:[function(require,module,exports){function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},{}],6:[function(e,t,i){t.exports=function(e,t,i){var n=i||8192,r=n>>>1,o=null,s=n;return function(i){if(i<1||i>r)return e(i);s+i>n&&(o=e(n),s=0);var a=t.call(o,s,s+=i);return 7&s&&(s=1+(7|s)),a}}},{}],7:[function(e,t,i){var n=i;n.length=function(e){for(var t=0,i=0,n=0;n<e.length;++n)(i=e.charCodeAt(n))<128?t+=1:i<2048?t+=2:55296==(64512&i)&&56320==(64512&e.charCodeAt(n+1))?(++n,t+=4):t+=3;return t},n.read=function(e,t,i){if(i-t<1)return"";for(var n,r=null,o=[],s=0;t<i;)(n=e[t++])<128?o[s++]=n:n>191&&n<224?o[s++]=(31&n)<<6|63&e[t++]:n>239&&n<365?(n=((7&n)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,o[s++]=55296+(n>>10),o[s++]=56320+(1023&n)):o[s++]=(15&n)<<12|(63&e[t++])<<6|63&e[t++],s>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,o)),s=0);return r?(s&&r.push(String.fromCharCode.apply(String,o.slice(0,s))),r.join("")):String.fromCharCode.apply(String,o.slice(0,s))},n.write=function(e,t,i){for(var n,r,o=i,s=0;s<e.length;++s)(n=e.charCodeAt(s))<128?t[i++]=n:n<2048?(t[i++]=n>>6|192,t[i++]=63&n|128):55296==(64512&n)&&56320==(64512&(r=e.charCodeAt(s+1)))?(n=65536+((1023&n)<<10)+(1023&r),++s,t[i++]=n>>18|240,t[i++]=n>>12&63|128,t[i++]=n>>6&63|128,t[i++]=63&n|128):(t[i++]=n>>12|224,t[i++]=n>>6&63|128,t[i++]=63&n|128);return i-o}},{}],8:[function(e,t,i){var n=i;function r(){n.Reader._configure(n.BufferReader),n.util._configure()}n.build="minimal",n.roots={},n.Writer=e(15),n.BufferWriter=e(16),n.Reader=e(9),n.BufferReader=e(10),n.util=e(14),n.rpc=e(11),n.configure=r,n.Writer._configure(n.BufferWriter),r()},{10:10,11:11,14:14,15:15,16:16,9:9}],9:[function(e,t,i){t.exports=c;var n,r=e(14),o=r.LongBits,s=r.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function c(e){this.buf=e,this.pos=0,this.len=e.length}var u,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new c(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new c(e);throw Error("illegal buffer")};function h(){var e=new o(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function d(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function f(){if(this.pos+8>this.len)throw a(this,8);return new o(d(this.buf,this.pos+=4),d(this.buf,this.pos+=4))}c.create=r.Buffer?function(e){return(c.create=function(e){return r.Buffer.isBuffer(e)?new n(e):l(e)})(e)}:l,c.prototype._slice=r.Array.prototype.subarray||r.Array.prototype.slice,c.prototype.uint32=(u=4294967295,function(){if(u=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return u;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return u}),c.prototype.int32=function(){return 0|this.uint32()},c.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},c.prototype.bool=function(){return 0!==this.uint32()},c.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return d(this.buf,this.pos+=4)},c.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|d(this.buf,this.pos+=4)},c.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=r.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},c.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=r.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},c.prototype.bytes=function(){var e=this.uint32(),t=this.pos,i=this.pos+e;if(i>this.len)throw a(this,e);return this.pos+=e,t===i?new this.buf.constructor(0):this._slice.call(this.buf,t,i)},c.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},c.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},c.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},c._configure=function(e){n=e;var t=r.Long?"toLong":"toNumber";r.merge(c.prototype,{int64:function(){return h.call(this)[t](!1)},uint64:function(){return h.call(this)[t](!0)},sint64:function(){return h.call(this).zzDecode()[t](!1)},fixed64:function(){return f.call(this)[t](!0)},sfixed64:function(){return f.call(this)[t](!1)}})}},{14:14}],10:[function(e,t,i){t.exports=o;var n=e(9);(o.prototype=Object.create(n.prototype)).constructor=o;var r=e(14);function o(e){n.call(this,e)}r.Buffer&&(o.prototype._slice=r.Buffer.prototype.slice),o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len))}},{14:14,9:9}],11:[function(e,t,i){i.Service=e(12)},{12:12}],12:[function(e,t,i){t.exports=r;var n=e(14);function r(e,t,i){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(i)}(r.prototype=Object.create(n.EventEmitter.prototype)).constructor=r,r.prototype.rpcCall=function e(t,i,r,o,s){if(!o)throw TypeError("request must be specified");var a=this;if(!s)return n.asPromise(e,a,t,i,r,o);if(!a.rpcImpl)return setTimeout((function(){s(Error("already ended"))}),0),undefined$1;try{return a.rpcImpl(t,i[a.requestDelimited?"encodeDelimited":"encode"](o).finish(),(function(e,i){if(e)return a.emit("error",e,t),s(e);if(null===i)return a.end(!0),undefined$1;if(!(i instanceof r))try{i=r[a.responseDelimited?"decodeDelimited":"decode"](i)}catch(e){return a.emit("error",e,t),s(e)}return a.emit("data",i,t),s(null,i)}))}catch(e){return a.emit("error",e,t),setTimeout((function(){s(e)}),0),undefined$1}},r.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},{14:14}],13:[function(e,t,i){t.exports=r;var n=e(14);function r(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=r.zero=new r(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=r.zeroHash="\0\0\0\0\0\0\0\0";r.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var i=e>>>0,n=(e-i)/4294967296>>>0;return t&&(n=~n>>>0,i=~i>>>0,++i>4294967295&&(i=0,++n>4294967295&&(n=0))),new r(i,n)},r.from=function(e){if("number"==typeof e)return r.fromNumber(e);if(n.isString(e)){if(!n.Long)return r.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new r(e.low>>>0,e.high>>>0):o},r.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,i=~this.hi>>>0;return t||(i=i+1>>>0),-(t+4294967296*i)}return this.lo+4294967296*this.hi},r.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;r.fromHash=function(e){return e===s?o:new r((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},r.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},r.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},r.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},r.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,i=this.hi>>>24;return 0===i?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:i<128?9:10}},{14:14}],14:[function(e,t,i){var n=i;function r(e,t,i){for(var n=Object.keys(t),r=0;r<n.length;++r)e[n[r]]!==undefined$1&&i||(e[n[r]]=t[n[r]]);return e}function o(e){function t(e,i){if(!(this instanceof t))return new t(e,i);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),i&&r(this,i)}return(t.prototype=Object.create(Error.prototype)).constructor=t,Object.defineProperty(t.prototype,"name",{get:function(){return e}}),t.prototype.toString=function(){return this.name+": "+this.message},t}n.asPromise=e(1),n.base64=e(2),n.EventEmitter=e(3),n.float=e(4),n.inquire=e(5),n.utf8=e(7),n.pool=e(6),n.LongBits=e(13),n.emptyArray=Object.freeze?Object.freeze([]):[],n.emptyObject=Object.freeze?Object.freeze({}):{},n.isNode=Boolean(global.process&&global.process.versions&&global.process.versions.node),n.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},n.isString=function(e){return"string"==typeof e||e instanceof String},n.isObject=function(e){return e&&"object"==typeof e},n.isset=n.isSet=function(e,t){var i=e[t];return!(null==i||!e.hasOwnProperty(t))&&("object"!=typeof i||(Array.isArray(i)?i.length:Object.keys(i).length)>0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=global.dcodeIO&&global.dcodeIO.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var i=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(i.lo,i.hi,t):i.toNumber(Boolean(t))},n.merge=r,n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=o,n.ProtocolError=o("ProtocolError"),n.oneOfGetter=function(e){for(var t={},i=0;i<e.length;++i)t[e[i]]=1;return function(){for(var e=Object.keys(this),i=e.length-1;i>-1;--i)if(1===t[e[i]]&&this[e[i]]!==undefined$1&&null!==this[e[i]])return e[i]}},n.oneOfSetter=function(e){return function(t){for(var i=0;i<e.length;++i)e[i]!==t&&delete this[e[i]]}},n.lazyResolve=function(e,t){for(var i=0;i<t.length;++i)for(var n=Object.keys(t[i]),r=0;r<n.length;++r){for(var o=t[i][n[r]].split("."),s=e;o.length;)s=s[o.shift()];t[i][n[r]]=s}},n.toJSONOptions={longs:String,enums:String,bytes:String},n._configure=function(){var e=n.Buffer;e?(n._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,i){return new e(t,i)},n._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}):n._Buffer_from=n._Buffer_allocUnsafe=null}},{1:1,13:13,2:2,3:3,4:4,5:5,6:6,7:7}],15:[function(e,t,i){t.exports=h;var n,r=e(14),o=r.LongBits,s=r.base64,a=r.utf8;function c(e,t,i){this.fn=e,this.len=t,this.next=undefined$1,this.val=i}function u(){}function l(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function h(){this.len=0,this.head=new c(u,0,0),this.tail=this.head,this.states=null}function d(e,t,i){t[i]=255&e}function f(e,t){this.len=e,this.next=undefined$1,this.val=t}function p(e,t,i){for(;e.hi;)t[i++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[i++]=127&e.lo|128,e.lo=e.lo>>>7;t[i++]=e.lo}function m(e,t,i){t[i]=255&e,t[i+1]=e>>>8&255,t[i+2]=e>>>16&255,t[i+3]=e>>>24}h.create=r.Buffer?function(){return(h.create=function(){return new n})()}:function(){return new h},h.alloc=function(e){return new r.Array(e)},r.Array!==Array&&(h.alloc=r.pool(h.alloc,r.Array.prototype.subarray)),h.prototype.push=function(e,t,i){return this.tail=this.tail.next=new c(e,t,i),this.len+=t,this},f.prototype=Object.create(c.prototype),f.prototype.fn=function(e,t,i){for(;e>127;)t[i++]=127&e|128,e>>>=7;t[i]=e},h.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new f((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},h.prototype.int32=function(e){return e<0?this.push(p,10,o.fromNumber(e)):this.uint32(e)},h.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},h.prototype.uint64=function(e){var t=o.from(e);return this.push(p,t.length(),t)},h.prototype.int64=h.prototype.uint64,h.prototype.sint64=function(e){var t=o.from(e).zzEncode();return this.push(p,t.length(),t)},h.prototype.bool=function(e){return this.push(d,1,e?1:0)},h.prototype.fixed32=function(e){return this.push(m,4,e>>>0)},h.prototype.sfixed32=h.prototype.fixed32,h.prototype.fixed64=function(e){var t=o.from(e);return this.push(m,4,t.lo).push(m,4,t.hi)},h.prototype.sfixed64=h.prototype.fixed64,h.prototype.float=function(e){return this.push(r.float.writeFloatLE,4,e)},h.prototype.double=function(e){return this.push(r.float.writeDoubleLE,8,e)};var _=r.Array.prototype.set?function(e,t,i){t.set(e,i)}:function(e,t,i){for(var n=0;n<e.length;++n)t[i+n]=e[n]};h.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this.push(d,1,0);if(r.isString(e)){var i=h.alloc(t=s.length(e));s.decode(e,i,0),e=i}return this.uint32(t).push(_,t,e)},h.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t).push(a.write,t,e):this.push(d,1,0)},h.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new c(u,0,0),this.len=0,this},h.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new c(u,0,0),this.len=0),this},h.prototype.ldelim=function(){var e=this.head,t=this.tail,i=this.len;return this.reset().uint32(i),i&&(this.tail.next=e.next,this.tail=t,this.len+=i),this},h.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),i=0;e;)e.fn(e.val,t,i),i+=e.len,e=e.next;return t},h._configure=function(e){n=e}},{14:14}],16:[function(e,t,i){t.exports=s;var n=e(15);(s.prototype=Object.create(n.prototype)).constructor=s;var r=e(14),o=r.Buffer;function s(){n.call(this)}s.alloc=function(e){return(s.alloc=r._Buffer_allocUnsafe)(e)};var a=o&&o.prototype instanceof Uint8Array&&"set"===o.prototype.set.name?function(e,t,i){t.set(e,i)}:function(e,t,i){if(e.copy)e.copy(t,i,0,e.length);else for(var n=0;n<e.length;)t[i++]=e[n++]};function c(e,t,i){e.length<40?r.utf8.write(e,t,i):t.utf8Write(e,i)}s.prototype.bytes=function(e){r.isString(e)&&(e=r._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this.push(a,t,e),this},s.prototype.string=function(e){var t=o.byteLength(e);return this.uint32(t),t&&this.push(c,t,e),this}},{14:14,15:15}]},{})})("object"==typeof window&&window||"object"==typeof self&&self||_commonjsHelpers_3aae1032_js__WEBPACK_IMPORTED_MODULE_0__.a)})),protobuf$1=Object.freeze(_mergeNamespaces({__proto__:null,default:protobuf},[protobuf]))},495431:(e,t,i)=>{"use strict";function n(e){return e}function r(e){if(null==e)return n;var t,i,r=e.scale[0],o=e.scale[1],s=e.translate[0],a=e.translate[1];return function(e,n){n||(t=i=0);var c=2,u=e.length,l=new Array(u);for(l[0]=(t+=e[0])*r+s,l[1]=(i+=e[1])*o+a;c<u;)l[c]=e[c],++c;return l}}function o(e){var t,i=r(e.transform),n=1/0,o=n,s=-n,a=-n;function c(e){(e=i(e))[0]<n&&(n=e[0]),e[0]>s&&(s=e[0]),e[1]<o&&(o=e[1]),e[1]>a&&(a=e[1])}function u(e){switch(e.type){case"GeometryCollection":e.geometries.forEach(u);break;case"Point":c(e.coordinates);break;case"MultiPoint":e.coordinates.forEach(c)}}for(t in e.arcs.forEach((function(e){for(var t,r=-1,c=e.length;++r<c;)(t=i(e[r],r))[0]<n&&(n=t[0]),t[0]>s&&(s=t[0]),t[1]<o&&(o=t[1]),t[1]>a&&(a=t[1])})),e.objects)u(e.objects[t]);return[n,o,s,a]}function s(e,t){var i=t.id,n=t.bbox,r=null==t.properties?{}:t.properties,o=a(e,t);return null==i&&null==n?{type:"Feature",properties:r,geometry:o}:null==n?{type:"Feature",id:i,properties:r,geometry:o}:{type:"Feature",id:i,bbox:n,properties:r,geometry:o}}function a(e,t){var i=r(e.transform),n=e.arcs;function o(e,t){t.length&&t.pop();for(var r=n[e<0?~e:e],o=0,s=r.length;o<s;++o)t.push(i(r[o],o));e<0&&function(e,t){for(var i,n=e.length,r=n-t;r<--n;)i=e[r],e[r++]=e[n],e[n]=i}(t,s)}function s(e){return i(e)}function a(e){for(var t=[],i=0,n=e.length;i<n;++i)o(e[i],t);return t.length<2&&t.push(t[0]),t}function c(e){for(var t=a(e);t.length<4;)t.push(t[0]);return t}function u(e){return e.map(c)}return function e(t){var i,n=t.type;switch(n){case"GeometryCollection":return{type:n,geometries:t.geometries.map(e)};case"Point":i=s(t.coordinates);break;case"MultiPoint":i=t.coordinates.map(s);break;case"LineString":i=a(t.arcs);break;case"MultiLineString":i=t.arcs.map(a);break;case"Polygon":i=u(t.arcs);break;case"MultiPolygon":i=t.arcs.map(u);break;default:return null}return{type:n,coordinates:i}}(t)}function c(e,t){var i={},n={},r={},o=[],s=-1;function a(e,t){for(var n in e){var r=e[n];delete t[r.start],delete r.start,delete r.end,r.forEach((function(e){i[e<0?~e:e]=1})),o.push(r)}}return t.forEach((function(i,n){var r,o=e.arcs[i<0?~i:i];o.length<3&&!o[1][0]&&!o[1][1]&&(r=t[++s],t[s]=i,t[n]=r)})),t.forEach((function(t){var i,o,s=function(t){var i,n=e.arcs[t<0?~t:t],r=n[0];return e.transform?(i=[0,0],n.forEach((function(e){i[0]+=e[0],i[1]+=e[1]}))):i=n[n.length-1],t<0?[i,r]:[r,i]}(t),a=s[0],c=s[1];if(i=r[a])if(delete r[i.end],i.push(t),i.end=c,o=n[c]){delete n[o.start];var u=o===i?i:i.concat(o);n[u.start=i.start]=r[u.end=o.end]=u}else n[i.start]=r[i.end]=i;else if(i=n[c])if(delete n[i.start],i.unshift(t),i.start=a,o=r[a]){delete r[o.end];var l=o===i?i:o.concat(i);n[l.start=o.start]=r[l.end=i.end]=l}else n[i.start]=r[i.end]=i;else n[(i=[t]).start=a]=r[i.end=c]=i})),a(r,n),a(n,r),t.forEach((function(e){i[e<0?~e:e]||o.push([e])})),o}function u(e,t,i){var n,r,o;if(arguments.length>1)n=l(0,t,i);else for(r=0,n=new Array(o=e.arcs.length);r<o;++r)n[r]=r;return{type:"MultiLineString",arcs:c(e,n)}}function l(e,t,i){var n,r=[],o=[];function s(e){var t=e<0?~e:e;(o[t]||(o[t]=[])).push({i:e,g:n})}function a(e){e.forEach(s)}function c(e){e.forEach(a)}return function e(t){switch(n=t,t.type){case"GeometryCollection":t.geometries.forEach(e);break;case"LineString":a(t.arcs);break;case"MultiLineString":case"Polygon":c(t.arcs);break;case"MultiPolygon":!function(e){e.forEach(c)}(t.arcs)}}(t),o.forEach(null==i?function(e){r.push(e[0].i)}:function(e){i(e[0].g,e[e.length-1].g)&&r.push(e[0].i)}),r}function h(e,t){var i={},n=[],r=[];function o(e){e.forEach((function(t){t.forEach((function(t){(i[t=t<0?~t:t]||(i[t]=[])).push(e)}))})),n.push(e)}function s(t){return function(e){for(var t,i=-1,n=e.length,r=e[n-1],o=0;++i<n;)t=r,r=e[i],o+=t[0]*r[1]-t[1]*r[0];return Math.abs(o)}(a(e,{type:"Polygon",arcs:[t]}).coordinates[0])}return t.forEach((function e(t){switch(t.type){case"GeometryCollection":t.geometries.forEach(e);break;case"Polygon":o(t.arcs);break;case"MultiPolygon":t.arcs.forEach(o)}})),n.forEach((function(e){if(!e._){var t=[],n=[e];for(e._=1,r.push(t);e=n.pop();)t.push(e),e.forEach((function(e){e.forEach((function(e){i[e<0?~e:e].forEach((function(e){e._||(e._=1,n.push(e))}))}))}))}})),n.forEach((function(e){delete e._})),{type:"MultiPolygon",arcs:r.map((function(t){var n,r=[];if(t.forEach((function(e){e.forEach((function(e){e.forEach((function(e){i[e<0?~e:e].length<2&&r.push(e)}))}))})),(n=(r=c(e,r)).length)>1)for(var o,a,u=1,l=s(r[0]);u<n;++u)(o=s(r[u]))>l&&(a=r[0],r[0]=r[u],r[u]=a,l=o);return r})).filter((function(e){return e.length>0}))}}function d(e,t){for(var i=0,n=e.length;i<n;){var r=i+n>>>1;e[r]<t?i=r+1:n=r}return i}function f(e){if(null==e)return n;var t,i,r=e.scale[0],o=e.scale[1],s=e.translate[0],a=e.translate[1];return function(e,n){n||(t=i=0);var c=2,u=e.length,l=new Array(u),h=Math.round((e[0]-s)/r),d=Math.round((e[1]-a)/o);for(l[0]=h-t,t=h,l[1]=d-i,i=d;c<u;)l[c]=e[c],++c;return l}}i.d(t,{Z:()=>p});var p=Object.freeze({__proto__:null,bbox:o,feature:function(e,t){return"string"==typeof t&&(t=e.objects[t]),"GeometryCollection"===t.type?{type:"FeatureCollection",features:t.geometries.map((function(t){return s(e,t)}))}:s(e,t)},mesh:function(e){return a(e,u.apply(this,arguments))},meshArcs:u,merge:function(e){return a(e,h.apply(this,arguments))},mergeArcs:h,neighbors:function(e){var t={},i=e.map((function(){return[]}));function n(e,i){e.forEach((function(e){e<0&&(e=~e);var n=t[e];n?n.push(i):t[e]=[i]}))}function r(e,t){e.forEach((function(e){n(e,t)}))}var o={LineString:n,MultiLineString:r,Polygon:r,MultiPolygon:function(e,t){e.forEach((function(e){r(e,t)}))}};for(var s in e.forEach((function e(t,i){"GeometryCollection"===t.type?t.geometries.forEach((function(t){e(t,i)})):t.type in o&&o[t.type](t.arcs,i)})),t)for(var a=t[s],c=a.length,u=0;u<c;++u)for(var l=u+1;l<c;++l){var h,f=a[u],p=a[l];(h=i[f])[s=d(h,p)]!==p&&h.splice(s,0,p),(h=i[p])[s=d(h,f)]!==f&&h.splice(s,0,f)}return i},quantize:function(e,t){if(e.transform)throw new Error("already quantized");if(t&&t.scale)c=e.bbox;else{if(!((i=Math.floor(t))>=2))throw new Error("n must be ≥2");var i,n=(c=e.bbox||o(e))[0],r=c[1],s=c[2],a=c[3];t={scale:[s-n?(s-n)/(i-1):1,a-r?(a-r)/(i-1):1],translate:[n,r]}}var c,u,l=f(t),h=e.objects,d={};function p(e){return l(e)}function m(e){var t;switch(e.type){case"GeometryCollection":t={type:"GeometryCollection",geometries:e.geometries.map(m)};break;case"Point":t={type:"Point",coordinates:p(e.coordinates)};break;case"MultiPoint":t={type:"MultiPoint",coordinates:e.coordinates.map(p)};break;default:return e}return null!=e.id&&(t.id=e.id),null!=e.bbox&&(t.bbox=e.bbox),null!=e.properties&&(t.properties=e.properties),t}for(u in h)d[u]=m(h[u]);return{type:"Topology",bbox:c,transform:t,objects:d,arcs:e.arcs.map((function(e){var t,i=0,n=1,r=e.length,o=new Array(r);for(o[0]=l(e[0],0);++i<r;)((t=l(e[i],i))[0]||t[1])&&(o[n++]=t);return 1===n&&(o[n++]=[0,0]),o.length=n,o}))}},transform:r,untransform:f})},527758:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});var n=(0,i(614955).c)((function(e,t){var i;i=function(){var e,t,i;function n(e,t,i,n){return r(e).then(t,i,n)}function r(e){var t,i,n;return e instanceof o?t=e:c(e)?(i=a(),e.then((function(e){i.resolve(e)}),(function(e){i.reject(e)}),(function(e){i.progress(e)})),t=i.promise):(n=e,t=new o((function(e){try{return r(e?e(n):n)}catch(e){return s(e)}}))),t}function o(e){this.then=e}function s(e){return new o((function(t,i){try{return i?r(i(e)):s(e)}catch(e){return s(e)}}))}function a(){var e,t,n,c,u,l;return e=new o(h),t=[],n=[],c=function(e,i,r){var o,s;return o=a(),s="function"==typeof r?function(e){try{o.progress(r(e))}catch(e){o.progress(e)}}:function(e){o.progress(e)},t.push((function(t){t.then(e,i).then(o.resolve,o.reject,s)})),n.push(s),o.promise},u=function(e){return d(n,e),e},l=function(e){return e=r(e),c=e.then,l=r,u=p,d(t,e),n=t=i,e},{then:h,resolve:f,reject:m,progress:_,promise:e,resolver:{resolve:f,reject:m,progress:_}};function h(e,t,i){return c(e,t,i)}function f(e){return l(e)}function m(e){return l(s(e))}function _(e){return u(e)}}function c(e){return e&&"function"==typeof e.then}function u(e,t,i,r,o){return f(2,arguments),n(e,(function(e){var s,c,u,l,h,d,f,m,_,Z;if(_=e.length>>>0,s=Math.max(0,Math.min(t,_)),u=[],c=_-s+1,l=[],h=a(),s)for(m=h.progress,f=function(e){l.push(e),--c||(d=f=p,h.reject(l))},d=function(e){u.push(e),--s||(d=f=p,h.resolve(u))},Z=0;Z<_;++Z)Z in e&&n(e[Z],y,g,m);else h.resolve(u);return h.then(i,r,o);function g(e){f(e)}function y(e){d(e)}}))}function l(e,t,i,n){return f(1,arguments),h(e,m).then(t,i,n)}function h(e,t){return n(e,(function(e){var i,r,o,s,c,u;if(o=r=e.length>>>0,i=[],u=a(),o)for(s=function(e,r){n(e,t).then((function(e){i[r]=e,--o||u.resolve(i)}),u.reject)},c=0;c<r;c++)c in e?s(e[c],c):--o;else u.resolve(i);return u.promise}))}function d(e,t){for(var i,n=0;i=e[n++];)i(t)}function f(e,t){for(var i,n=t.length;n>e;)if(null!=(i=t[--n])&&"function"!=typeof i)throw new Error("arg "+n+" must be a function")}function p(){}function m(e){return e}return n.defer=a,n.resolve=r,n.reject=function(e){return n(e,s)},n.join=function(){return h(arguments,m)},n.all=l,n.map=h,n.reduce=function(i,r){var o=t.call(arguments,1);return n(i,(function(t){var i;return i=t.length,o[0]=function(e,t,o){return n(e,(function(e){return n(t,(function(t){return r(e,t,o,i)}))}))},e.apply(t,o)}))},n.any=function(e,t,i,n){return u(e,1,(function(e){return t?t(e[0]):e[0]}),i,n)},n.some=u,n.chain=function(e,t,i){var r=arguments.length>2;return n(e,(function(e){return e=r?i:e,t.resolve(e),e}),(function(e){return t.reject(e),s(e)}),t.progress)},n.isPromise=c,o.prototype={always:function(e,t){return this.then(e,e,t)},otherwise:function(e){return this.then(i,e)},yield:function(e){return this.then((function(){return e}))},spread:function(e){return this.then((function(t){return l(t,(function(t){return e.apply(i,t)}))}))}},t=[].slice,e=[].reduce||function(e){var t,i,n,r,o;if(o=0,r=(t=Object(this)).length>>>0,(i=arguments).length<=1)for(;;){if(o in t){n=t[o++];break}if(++o>=r)throw new TypeError}else n=i[1];for(;o<r;++o)o in t&&(n=e(n,t[o],o,t));return n},n},e.exports=i()}))},108840:(e,t,i)=>{"use strict";i.d(t,{Z:()=>gi});const n=-2;function r(e){return o(e.map((([e,t])=>new Array(e).fill(t,0,e))))}function o(e){return e.reduce(((e,t)=>e.concat(Array.isArray(t)?o(t):t)),[])}const s=[0,1,2,3].concat(...r([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function a(){const e=this;function t(e,t){let i=0;do{i|=1&e,e>>>=1,i<<=1}while(--t>0);return i>>>1}e.build_tree=function(i){const n=e.dyn_tree,r=e.stat_desc.static_tree,o=e.stat_desc.elems;let s,a,c,u=-1;for(i.heap_len=0,i.heap_max=573,s=0;s<o;s++)0!==n[2*s]?(i.heap[++i.heap_len]=u=s,i.depth[s]=0):n[2*s+1]=0;for(;i.heap_len<2;)c=i.heap[++i.heap_len]=u<2?++u:0,n[2*c]=1,i.depth[c]=0,i.opt_len--,r&&(i.static_len-=r[2*c+1]);for(e.max_code=u,s=Math.floor(i.heap_len/2);s>=1;s--)i.pqdownheap(n,s);c=o;do{s=i.heap[1],i.heap[1]=i.heap[i.heap_len--],i.pqdownheap(n,1),a=i.heap[1],i.heap[--i.heap_max]=s,i.heap[--i.heap_max]=a,n[2*c]=n[2*s]+n[2*a],i.depth[c]=Math.max(i.depth[s],i.depth[a])+1,n[2*s+1]=n[2*a+1]=c,i.heap[1]=c++,i.pqdownheap(n,1)}while(i.heap_len>=2);i.heap[--i.heap_max]=i.heap[1],function(t){const i=e.dyn_tree,n=e.stat_desc.static_tree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,s=e.stat_desc.max_length;let a,c,u,l,h,d,f=0;for(l=0;l<=15;l++)t.bl_count[l]=0;for(i[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)c=t.heap[a],l=i[2*i[2*c+1]+1]+1,l>s&&(l=s,f++),i[2*c+1]=l,c>e.max_code||(t.bl_count[l]++,h=0,c>=o&&(h=r[c-o]),d=i[2*c],t.opt_len+=d*(l+h),n&&(t.static_len+=d*(n[2*c+1]+h)));if(0!==f){do{for(l=s-1;0===t.bl_count[l];)l--;t.bl_count[l]--,t.bl_count[l+1]+=2,t.bl_count[s]--,f-=2}while(f>0);for(l=s;0!==l;l--)for(c=t.bl_count[l];0!==c;)u=t.heap[--a],u>e.max_code||(i[2*u+1]!=l&&(t.opt_len+=(l-i[2*u+1])*i[2*u],i[2*u+1]=l),c--)}}(i),function(e,i,n){const r=[];let o,s,a,c=0;for(o=1;o<=15;o++)r[o]=c=c+n[o-1]<<1;for(s=0;s<=i;s++)a=e[2*s+1],0!==a&&(e[2*s]=t(r[a]++,a))}(n,e.max_code,i.bl_count)}}function c(e,t,i,n,r){const o=this;o.static_tree=e,o.extra_bits=t,o.extra_base=i,o.elems=n,o.max_length=r}function u(e,t,i,n,r){const o=this;o.good_length=e,o.max_lazy=t,o.nice_length=i,o.max_chain=n,o.func=r}a._length_code=[0,1,2,3,4,5,6,7].concat(...r([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),a.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],a.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],a.d_code=function(e){return e<256?s[e]:s[256+(e>>>7)]},a.extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a.extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],a.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],a.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8],c.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5],c.static_l_desc=new c(c.static_ltree,a.extra_lbits,257,286,15),c.static_d_desc=new c(c.static_dtree,a.extra_dbits,0,30,15),c.static_bl_desc=new c(null,a.extra_blbits,0,19,7);const l=[new u(0,0,0,0,0),new u(4,4,8,4,1),new u(4,5,16,8,1),new u(4,6,32,32,1),new u(4,4,16,16,2),new u(8,16,32,32,2),new u(8,16,128,128,2),new u(8,32,128,256,2),new u(32,128,258,1024,2),new u(32,258,258,4096,2)],h=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],d=113,f=666,p=262;function m(e,t,i,n){const r=e[2*t],o=e[2*i];return r<o||r==o&&n[t]<=n[i]}function _(){const e=this;let t,i,r,o,s,u,_,Z,g,y,b,A,w,v,T,C,E,x,S,O,I,D,P,R,B,M,L,N,F,k,U,V,z;const H=new a,G=new a,q=new a;let j,W,K,Y,X,J;function Q(){let t;for(t=0;t<286;t++)U[2*t]=0;for(t=0;t<30;t++)V[2*t]=0;for(t=0;t<19;t++)z[2*t]=0;U[512]=1,e.opt_len=e.static_len=0,W=K=0}function $(e,t){let i,n=-1,r=e[1],o=0,s=7,a=4;0===r&&(s=138,a=3),e[2*(t+1)+1]=65535;for(let c=0;c<=t;c++)i=r,r=e[2*(c+1)+1],++o<s&&i==r||(o<a?z[2*i]+=o:0!==i?(i!=n&&z[2*i]++,z[32]++):o<=10?z[34]++:z[36]++,o=0,n=i,0===r?(s=138,a=3):i==r?(s=6,a=3):(s=7,a=4))}function ee(t){e.pending_buf[e.pending++]=t}function te(e){ee(255&e),ee(e>>>8&255)}function ie(e,t){let i;const n=t;J>16-n?(i=e,X|=i<<J&65535,te(X),X=i>>>16-J,J+=n-16):(X|=e<<J&65535,J+=n)}function ne(e,t){const i=2*e;ie(65535&t[i],65535&t[i+1])}function re(e,t){let i,n,r=-1,o=e[1],s=0,a=7,c=4;for(0===o&&(a=138,c=3),i=0;i<=t;i++)if(n=o,o=e[2*(i+1)+1],!(++s<a&&n==o)){if(s<c)do{ne(n,z)}while(0!=--s);else 0!==n?(n!=r&&(ne(n,z),s--),ne(16,z),ie(s-3,2)):s<=10?(ne(17,z),ie(s-3,3)):(ne(18,z),ie(s-11,7));s=0,r=n,0===o?(a=138,c=3):n==o?(a=6,c=3):(a=7,c=4)}}function oe(){16==J?(te(X),X=0,J=0):J>=8&&(ee(255&X),X>>>=8,J-=8)}function se(t,i){let n,r,o;if(e.dist_buf[W]=t,e.lc_buf[W]=255&i,W++,0===t?U[2*i]++:(K++,t--,U[2*(a._length_code[i]+256+1)]++,V[2*a.d_code(t)]++),0==(8191&W)&&L>2){for(n=8*W,r=I-E,o=0;o<30;o++)n+=V[2*o]*(5+a.extra_dbits[o]);if(n>>>=3,K<Math.floor(W/2)&&n<Math.floor(r/2))return!0}return W==j-1}function ae(t,i){let n,r,o,s,c=0;if(0!==W)do{n=e.dist_buf[c],r=e.lc_buf[c],c++,0===n?ne(r,t):(o=a._length_code[r],ne(o+256+1,t),s=a.extra_lbits[o],0!==s&&(r-=a.base_length[o],ie(r,s)),n--,o=a.d_code(n),ne(o,i),s=a.extra_dbits[o],0!==s&&(n-=a.base_dist[o],ie(n,s)))}while(c<W);ne(256,t),Y=t[513]}function ce(){J>8?te(X):J>0&&ee(255&X),X=0,J=0}function ue(t,i,n){ie(0+(n?1:0),3),function(t,i,n){ce(),Y=8,te(i),te(~i),e.pending_buf.set(Z.subarray(t,t+i),e.pending),e.pending+=i}(t,i)}function le(i){(function(t,i,n){let r,o,s=0;L>0?(H.build_tree(e),G.build_tree(e),s=function(){let t;for($(U,H.max_code),$(V,G.max_code),q.build_tree(e),t=18;t>=3&&0===z[2*a.bl_order[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(),r=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=r&&(r=o)):r=o=i+5,i+4<=r&&-1!=t?ue(t,i,n):o==r?(ie(2+(n?1:0),3),ae(c.static_ltree,c.static_dtree)):(ie(4+(n?1:0),3),function(e,t,i){let n;for(ie(e-257,5),ie(t-1,5),ie(i-4,4),n=0;n<i;n++)ie(z[2*a.bl_order[n]+1],3);re(U,e-1),re(V,t-1)}(H.max_code+1,G.max_code+1,s+1),ae(U,V)),Q(),n&&ce()})(E>=0?E:-1,I-E,i),E=I,t.flush_pending()}function he(){let e,i,n,r;do{if(r=g-P-I,0===r&&0===I&&0===P)r=s;else if(-1==r)r--;else if(I>=s+s-p){Z.set(Z.subarray(s,s+s),0),D-=s,I-=s,E-=s,e=w,n=e;do{i=65535&b[--n],b[n]=i>=s?i-s:0}while(0!=--e);e=s,n=e;do{i=65535&y[--n],y[n]=i>=s?i-s:0}while(0!=--e);r+=s}if(0===t.avail_in)return;e=t.read_buf(Z,I+P,r),P+=e,P>=3&&(A=255&Z[I],A=(A<<C^255&Z[I+1])&T)}while(P<p&&0!==t.avail_in)}function de(e){let t,i,n=B,r=I,o=R;const a=I>s-p?I-(s-p):0;let c=k;const u=_,l=I+258;let h=Z[r+o-1],d=Z[r+o];R>=F&&(n>>=2),c>P&&(c=P);do{if(t=e,Z[t+o]==d&&Z[t+o-1]==h&&Z[t]==Z[r]&&Z[++t]==Z[r+1]){r+=2,t++;do{}while(Z[++r]==Z[++t]&&Z[++r]==Z[++t]&&Z[++r]==Z[++t]&&Z[++r]==Z[++t]&&Z[++r]==Z[++t]&&Z[++r]==Z[++t]&&Z[++r]==Z[++t]&&Z[++r]==Z[++t]&&r<l);if(i=258-(l-r),r=l-258,i>o){if(D=e,o=i,i>=c)break;h=Z[r+o-1],d=Z[r+o]}}}while((e=65535&y[e&u])>a&&0!=--n);return o<=P?o:P}e.depth=[],e.bl_count=[],e.heap=[],U=[],V=[],z=[],e.pqdownheap=function(t,i){const n=e.heap,r=n[i];let o=i<<1;for(;o<=e.heap_len&&(o<e.heap_len&&m(t,n[o+1],n[o],e.depth)&&o++,!m(t,r,n[o],e.depth));)n[i]=n[o],i=o,o<<=1;n[i]=r},e.deflateInit=function(t,a,h,f,p,m){return f||(f=8),p||(p=8),m||(m=0),t.msg=null,-1==a&&(a=6),p<1||p>9||8!=f||h<9||h>15||a<0||a>9||m<0||m>2?n:(t.dstate=e,u=h,s=1<<u,_=s-1,v=p+7,w=1<<v,T=w-1,C=Math.floor((v+3-1)/3),Z=new Uint8Array(2*s),y=[],b=[],j=1<<p+6,e.pending_buf=new Uint8Array(4*j),r=4*j,e.dist_buf=new Uint16Array(j),e.lc_buf=new Uint8Array(j),L=a,N=m,function(t){return t.total_in=t.total_out=0,t.msg=null,e.pending=0,e.pending_out=0,i=d,o=0,H.dyn_tree=U,H.stat_desc=c.static_l_desc,G.dyn_tree=V,G.stat_desc=c.static_d_desc,q.dyn_tree=z,q.stat_desc=c.static_bl_desc,X=0,J=0,Y=8,Q(),function(){g=2*s,b[w-1]=0;for(let e=0;e<w-1;e++)b[e]=0;M=l[L].max_lazy,F=l[L].good_length,k=l[L].nice_length,B=l[L].max_chain,I=0,E=0,P=0,x=R=2,O=0,A=0}(),0}(t))},e.deflateEnd=function(){return 42!=i&&i!=d&&i!=f?n:(e.lc_buf=null,e.dist_buf=null,e.pending_buf=null,b=null,y=null,Z=null,e.dstate=null,i==d?-3:0)},e.deflateParams=function(e,t,i){let r=0;return-1==t&&(t=6),t<0||t>9||i<0||i>2?n:(l[L].func!=l[t].func&&0!==e.total_in&&(r=e.deflate(1)),L!=t&&(L=t,M=l[L].max_lazy,F=l[L].good_length,k=l[L].nice_length,B=l[L].max_chain),N=i,r)},e.deflateSetDictionary=function(e,t,r){let o,a=r,c=0;if(!t||42!=i)return n;if(a<3)return 0;for(a>s-p&&(a=s-p,c=r-a),Z.set(t.subarray(c,c+a),0),I=a,E=a,A=255&Z[0],A=(A<<C^255&Z[1])&T,o=0;o<=a-3;o++)A=(A<<C^255&Z[o+2])&T,y[o&_]=b[A],b[A]=o;return 0},e.deflate=function(a,m){let g,v,B,F,k;if(m>4||m<0)return n;if(!a.next_out||!a.next_in&&0!==a.avail_in||i==f&&4!=m)return a.msg=h[4],n;if(0===a.avail_out)return a.msg=h[7],-5;var U;if(t=a,F=o,o=m,42==i&&(v=8+(u-8<<4)<<8,B=(L-1&255)>>1,B>3&&(B=3),v|=B<<6,0!==I&&(v|=32),v+=31-v%31,i=d,ee((U=v)>>8&255),ee(255&U)),0!==e.pending){if(t.flush_pending(),0===t.avail_out)return o=-1,0}else if(0===t.avail_in&&m<=F&&4!=m)return t.msg=h[7],-5;if(i==f&&0!==t.avail_in)return a.msg=h[7],-5;if(0!==t.avail_in||0!==P||0!=m&&i!=f){switch(k=-1,l[L].func){case 0:k=function(e){let i,n=65535;for(n>r-5&&(n=r-5);;){if(P<=1){if(he(),0===P&&0==e)return 0;if(0===P)break}if(I+=P,P=0,i=E+n,(0===I||I>=i)&&(P=I-i,I=i,le(!1),0===t.avail_out))return 0;if(I-E>=s-p&&(le(!1),0===t.avail_out))return 0}return le(4==e),0===t.avail_out?4==e?2:0:4==e?3:1}(m);break;case 1:k=function(e){let i,n=0;for(;;){if(P<p){if(he(),P<p&&0==e)return 0;if(0===P)break}if(P>=3&&(A=(A<<C^255&Z[I+2])&T,n=65535&b[A],y[I&_]=b[A],b[A]=I),0!==n&&(I-n&65535)<=s-p&&2!=N&&(x=de(n)),x>=3)if(i=se(I-D,x-3),P-=x,x<=M&&P>=3){x--;do{I++,A=(A<<C^255&Z[I+2])&T,n=65535&b[A],y[I&_]=b[A],b[A]=I}while(0!=--x);I++}else I+=x,x=0,A=255&Z[I],A=(A<<C^255&Z[I+1])&T;else i=se(0,255&Z[I]),P--,I++;if(i&&(le(!1),0===t.avail_out))return 0}return le(4==e),0===t.avail_out?4==e?2:0:4==e?3:1}(m);break;case 2:k=function(e){let i,n,r=0;for(;;){if(P<p){if(he(),P<p&&0==e)return 0;if(0===P)break}if(P>=3&&(A=(A<<C^255&Z[I+2])&T,r=65535&b[A],y[I&_]=b[A],b[A]=I),R=x,S=D,x=2,0!==r&&R<M&&(I-r&65535)<=s-p&&(2!=N&&(x=de(r)),x<=5&&(1==N||3==x&&I-D>4096)&&(x=2)),R>=3&&x<=R){n=I+P-3,i=se(I-1-S,R-3),P-=R-1,R-=2;do{++I<=n&&(A=(A<<C^255&Z[I+2])&T,r=65535&b[A],y[I&_]=b[A],b[A]=I)}while(0!=--R);if(O=0,x=2,I++,i&&(le(!1),0===t.avail_out))return 0}else if(0!==O){if(i=se(0,255&Z[I-1]),i&&le(!1),I++,P--,0===t.avail_out)return 0}else O=1,I++,P--}return 0!==O&&(i=se(0,255&Z[I-1]),O=0),le(4==e),0===t.avail_out?4==e?2:0:4==e?3:1}(m)}if(2!=k&&3!=k||(i=f),0==k||2==k)return 0===t.avail_out&&(o=-1),0;if(1==k){if(1==m)ie(2,3),ne(256,c.static_ltree),oe(),1+Y+10-J<9&&(ie(2,3),ne(256,c.static_ltree),oe()),Y=7;else if(ue(0,0,!1),3==m)for(g=0;g<w;g++)b[g]=0;if(t.flush_pending(),0===t.avail_out)return o=-1,0}}return 4!=m?0:1}}function Z(){const e=this;e.next_in_index=0,e.next_out_index=0,e.avail_in=0,e.total_in=0,e.avail_out=0,e.total_out=0}Z.prototype={deflateInit:function(e,t){const i=this;return i.dstate=new _,t||(t=15),i.dstate.deflateInit(i,e,t)},deflate:function(e){const t=this;return t.dstate?t.dstate.deflate(t,e):n},deflateEnd:function(){const e=this;if(!e.dstate)return n;const t=e.dstate.deflateEnd();return e.dstate=null,t},deflateParams:function(e,t){const i=this;return i.dstate?i.dstate.deflateParams(i,e,t):n},deflateSetDictionary:function(e,t){const i=this;return i.dstate?i.dstate.deflateSetDictionary(i,e,t):n},read_buf:function(e,t,i){const n=this;let r=n.avail_in;return r>i&&(r=i),0===r?0:(n.avail_in-=r,e.set(n.next_in.subarray(n.next_in_index,n.next_in_index+r),t),n.next_in_index+=r,n.total_in+=r,r)},flush_pending:function(){const e=this;let t=e.dstate.pending;t>e.avail_out&&(t=e.avail_out),0!==t&&(e.next_out.set(e.dstate.pending_buf.subarray(e.dstate.pending_out,e.dstate.pending_out+t),e.next_out_index),e.next_out_index+=t,e.dstate.pending_out+=t,e.total_out+=t,e.avail_out-=t,e.dstate.pending-=t,0===e.dstate.pending&&(e.dstate.pending_out=0))}};const g=-2,y=-3,b=-5,A=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],w=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],v=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],T=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],C=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],E=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],x=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function S(){let e,t,i,n,r,o;function s(e,t,s,a,c,u,l,h,d,f,p){let m,_,Z,g,A,w,v,T,C,E,x,S,O,I,D;E=0,A=s;do{i[e[t+E]]++,E++,A--}while(0!==A);if(i[0]==s)return l[0]=-1,h[0]=0,0;for(T=h[0],w=1;w<=15&&0===i[w];w++);for(v=w,T<w&&(T=w),A=15;0!==A&&0===i[A];A--);for(Z=A,T>A&&(T=A),h[0]=T,I=1<<w;w<A;w++,I<<=1)if((I-=i[w])<0)return y;if((I-=i[A])<0)return y;for(i[A]+=I,o[1]=w=0,E=1,O=2;0!=--A;)o[O]=w+=i[E],O++,E++;A=0,E=0;do{0!==(w=e[t+E])&&(p[o[w]++]=A),E++}while(++A<s);for(s=o[Z],o[0]=A=0,E=0,g=-1,S=-T,r[0]=0,x=0,D=0;v<=Z;v++)for(m=i[v];0!=m--;){for(;v>S+T;){if(g++,S+=T,D=Z-S,D=D>T?T:D,(_=1<<(w=v-S))>m+1&&(_-=m+1,O=v,w<D))for(;++w<D&&!((_<<=1)<=i[++O]);)_-=i[O];if(D=1<<w,f[0]+D>1440)return y;r[g]=x=f[0],f[0]+=D,0!==g?(o[g]=A,n[0]=w,n[1]=T,w=A>>>S-T,n[2]=x-r[g-1]-w,d.set(n,3*(r[g-1]+w))):l[0]=x}for(n[1]=v-S,E>=s?n[0]=192:p[E]<a?(n[0]=p[E]<256?0:96,n[2]=p[E++]):(n[0]=u[p[E]-a]+16+64,n[2]=c[p[E++]-a]),_=1<<v-S,w=A>>>S;w<D;w+=_)d.set(n,3*(x+w));for(w=1<<v-1;0!=(A&w);w>>>=1)A^=w;for(A^=w,C=(1<<S)-1;(A&C)!=o[g];)g--,S-=T,C=(1<<S)-1}return 0!==I&&1!=Z?b:0}function a(s){let a;for(e||(e=[],t=[],i=new Int32Array(16),n=[],r=new Int32Array(15),o=new Int32Array(16)),t.length<s&&(t=[]),a=0;a<s;a++)t[a]=0;for(a=0;a<16;a++)i[a]=0;for(a=0;a<3;a++)n[a]=0;r.set(i.subarray(0,15),0),o.set(i.subarray(0,16),0)}this.inflate_trees_bits=function(i,n,r,o,c){let u;return a(19),e[0]=0,u=s(i,0,19,19,null,null,r,n,o,e,t),u==y?c.msg="oversubscribed dynamic bit lengths tree":u!=b&&0!==n[0]||(c.msg="incomplete dynamic bit lengths tree",u=y),u},this.inflate_trees_dynamic=function(i,n,r,o,c,u,l,h,d){let f;return a(288),e[0]=0,f=s(r,0,i,257,T,C,u,o,h,e,t),0!=f||0===o[0]?(f==y?d.msg="oversubscribed literal/length tree":-4!=f&&(d.msg="incomplete literal/length tree",f=y),f):(a(288),f=s(r,i,n,0,E,x,l,c,h,e,t),0!=f||0===c[0]&&i>257?(f==y?d.msg="oversubscribed distance tree":f==b?(d.msg="incomplete distance tree",f=y):-4!=f&&(d.msg="empty distance tree with lengths",f=y),f):0)}}function O(){const e=this;let t,i,n,r,o=0,s=0,a=0,c=0,u=0,l=0,h=0,d=0,f=0,p=0;function m(e,t,i,n,r,o,s,a){let c,u,l,h,d,f,p,m,_,Z,g,b,w,v,T,C;p=a.next_in_index,m=a.avail_in,d=s.bitb,f=s.bitk,_=s.write,Z=_<s.read?s.read-_-1:s.end-_,g=A[e],b=A[t];do{for(;f<20;)m--,d|=(255&a.read_byte(p++))<<f,f+=8;if(c=d&g,u=i,l=n,C=3*(l+c),0!==(h=u[C]))for(;;){if(d>>=u[C+1],f-=u[C+1],0!=(16&h)){for(h&=15,w=u[C+2]+(d&A[h]),d>>=h,f-=h;f<15;)m--,d|=(255&a.read_byte(p++))<<f,f+=8;for(c=d&b,u=r,l=o,C=3*(l+c),h=u[C];;){if(d>>=u[C+1],f-=u[C+1],0!=(16&h)){for(h&=15;f<h;)m--,d|=(255&a.read_byte(p++))<<f,f+=8;if(v=u[C+2]+(d&A[h]),d>>=h,f-=h,Z-=w,_>=v)T=_-v,_-T>0&&2>_-T?(s.window[_++]=s.window[T++],s.window[_++]=s.window[T++],w-=2):(s.window.set(s.window.subarray(T,T+2),_),_+=2,T+=2,w-=2);else{T=_-v;do{T+=s.end}while(T<0);if(h=s.end-T,w>h){if(w-=h,_-T>0&&h>_-T)do{s.window[_++]=s.window[T++]}while(0!=--h);else s.window.set(s.window.subarray(T,T+h),_),_+=h,T+=h,h=0;T=0}}if(_-T>0&&w>_-T)do{s.window[_++]=s.window[T++]}while(0!=--w);else s.window.set(s.window.subarray(T,T+w),_),_+=w,T+=w,w=0;break}if(0!=(64&h))return a.msg="invalid distance code",w=a.avail_in-m,w=f>>3<w?f>>3:w,m+=w,p-=w,f-=w<<3,s.bitb=d,s.bitk=f,a.avail_in=m,a.total_in+=p-a.next_in_index,a.next_in_index=p,s.write=_,y;c+=u[C+2],c+=d&A[h],C=3*(l+c),h=u[C]}break}if(0!=(64&h))return 0!=(32&h)?(w=a.avail_in-m,w=f>>3<w?f>>3:w,m+=w,p-=w,f-=w<<3,s.bitb=d,s.bitk=f,a.avail_in=m,a.total_in+=p-a.next_in_index,a.next_in_index=p,s.write=_,1):(a.msg="invalid literal/length code",w=a.avail_in-m,w=f>>3<w?f>>3:w,m+=w,p-=w,f-=w<<3,s.bitb=d,s.bitk=f,a.avail_in=m,a.total_in+=p-a.next_in_index,a.next_in_index=p,s.write=_,y);if(c+=u[C+2],c+=d&A[h],C=3*(l+c),0===(h=u[C])){d>>=u[C+1],f-=u[C+1],s.window[_++]=u[C+2],Z--;break}}else d>>=u[C+1],f-=u[C+1],s.window[_++]=u[C+2],Z--}while(Z>=258&&m>=10);return w=a.avail_in-m,w=f>>3<w?f>>3:w,m+=w,p-=w,f-=w<<3,s.bitb=d,s.bitk=f,a.avail_in=m,a.total_in+=p-a.next_in_index,a.next_in_index=p,s.write=_,0}e.init=function(e,o,s,a,c,u){t=0,h=e,d=o,n=s,f=a,r=c,p=u,i=null},e.proc=function(e,_,Z){let b,w,v,T,C,E,x,S=0,O=0,I=0;for(I=_.next_in_index,T=_.avail_in,S=e.bitb,O=e.bitk,C=e.write,E=C<e.read?e.read-C-1:e.end-C;;)switch(t){case 0:if(E>=258&&T>=10&&(e.bitb=S,e.bitk=O,_.avail_in=T,_.total_in+=I-_.next_in_index,_.next_in_index=I,e.write=C,Z=m(h,d,n,f,r,p,e,_),I=_.next_in_index,T=_.avail_in,S=e.bitb,O=e.bitk,C=e.write,E=C<e.read?e.read-C-1:e.end-C,0!=Z)){t=1==Z?7:9;break}a=h,i=n,s=f,t=1;case 1:for(b=a;O<b;){if(0===T)return e.bitb=S,e.bitk=O,_.avail_in=T,_.total_in+=I-_.next_in_index,_.next_in_index=I,e.write=C,e.inflate_flush(_,Z);Z=0,T--,S|=(255&_.read_byte(I++))<<O,O+=8}if(w=3*(s+(S&A[b])),S>>>=i[w+1],O-=i[w+1],v=i[w],0===v){c=i[w+2],t=6;break}if(0!=(16&v)){u=15&v,o=i[w+2],t=2;break}if(0==(64&v)){a=v,s=w/3+i[w+2];break}if(0!=(32&v)){t=7;break}return t=9,_.msg="invalid literal/length code",Z=y,e.bitb=S,e.bitk=O,_.avail_in=T,_.total_in+=I-_.next_in_index,_.next_in_index=I,e.write=C,e.inflate_flush(_,Z);case 2:for(b=u;O<b;){if(0===T)return e.bitb=S,e.bitk=O,_.avail_in=T,_.total_in+=I-_.next_in_index,_.next_in_index=I,e.write=C,e.inflate_flush(_,Z);Z=0,T--,S|=(255&_.read_byte(I++))<<O,O+=8}o+=S&A[b],S>>=b,O-=b,a=d,i=r,s=p,t=3;case 3:for(b=a;O<b;){if(0===T)return e.bitb=S,e.bitk=O,_.avail_in=T,_.total_in+=I-_.next_in_index,_.next_in_index=I,e.write=C,e.inflate_flush(_,Z);Z=0,T--,S|=(255&_.read_byte(I++))<<O,O+=8}if(w=3*(s+(S&A[b])),S>>=i[w+1],O-=i[w+1],v=i[w],0!=(16&v)){u=15&v,l=i[w+2],t=4;break}if(0==(64&v)){a=v,s=w/3+i[w+2];break}return t=9,_.msg="invalid distance code",Z=y,e.bitb=S,e.bitk=O,_.avail_in=T,_.total_in+=I-_.next_in_index,_.next_in_index=I,e.write=C,e.inflate_flush(_,Z);case 4:for(b=u;O<b;){if(0===T)return e.bitb=S,e.bitk=O,_.avail_in=T,_.total_in+=I-_.next_in_index,_.next_in_index=I,e.write=C,e.inflate_flush(_,Z);Z=0,T--,S|=(255&_.read_byte(I++))<<O,O+=8}l+=S&A[b],S>>=b,O-=b,t=5;case 5:for(x=C-l;x<0;)x+=e.end;for(;0!==o;){if(0===E&&(C==e.end&&0!==e.read&&(C=0,E=C<e.read?e.read-C-1:e.end-C),0===E&&(e.write=C,Z=e.inflate_flush(_,Z),C=e.write,E=C<e.read?e.read-C-1:e.end-C,C==e.end&&0!==e.read&&(C=0,E=C<e.read?e.read-C-1:e.end-C),0===E)))return e.bitb=S,e.bitk=O,_.avail_in=T,_.total_in+=I-_.next_in_index,_.next_in_index=I,e.write=C,e.inflate_flush(_,Z);e.window[C++]=e.window[x++],E--,x==e.end&&(x=0),o--}t=0;break;case 6:if(0===E&&(C==e.end&&0!==e.read&&(C=0,E=C<e.read?e.read-C-1:e.end-C),0===E&&(e.write=C,Z=e.inflate_flush(_,Z),C=e.write,E=C<e.read?e.read-C-1:e.end-C,C==e.end&&0!==e.read&&(C=0,E=C<e.read?e.read-C-1:e.end-C),0===E)))return e.bitb=S,e.bitk=O,_.avail_in=T,_.total_in+=I-_.next_in_index,_.next_in_index=I,e.write=C,e.inflate_flush(_,Z);Z=0,e.window[C++]=c,E--,t=0;break;case 7:if(O>7&&(O-=8,T++,I--),e.write=C,Z=e.inflate_flush(_,Z),C=e.write,E=C<e.read?e.read-C-1:e.end-C,e.read!=e.write)return e.bitb=S,e.bitk=O,_.avail_in=T,_.total_in+=I-_.next_in_index,_.next_in_index=I,e.write=C,e.inflate_flush(_,Z);t=8;case 8:return Z=1,e.bitb=S,e.bitk=O,_.avail_in=T,_.total_in+=I-_.next_in_index,_.next_in_index=I,e.write=C,e.inflate_flush(_,Z);case 9:return Z=y,e.bitb=S,e.bitk=O,_.avail_in=T,_.total_in+=I-_.next_in_index,_.next_in_index=I,e.write=C,e.inflate_flush(_,Z);default:return Z=g,e.bitb=S,e.bitk=O,_.avail_in=T,_.total_in+=I-_.next_in_index,_.next_in_index=I,e.write=C,e.inflate_flush(_,Z)}},e.free=function(){}}S.inflate_trees_fixed=function(e,t,i,n){return e[0]=9,t[0]=5,i[0]=w,n[0]=v,0};const I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function D(e,t){const i=this;let n,r=0,o=0,s=0,a=0;const c=[0],u=[0],l=new O;let h=0,d=new Int32Array(4320);const f=new S;i.bitk=0,i.bitb=0,i.window=new Uint8Array(t),i.end=t,i.read=0,i.write=0,i.reset=function(e,t){t&&(t[0]=0),6==r&&l.free(e),r=0,i.bitk=0,i.bitb=0,i.read=i.write=0},i.reset(e,null),i.inflate_flush=function(e,t){let n,r,o;return r=e.next_out_index,o=i.read,n=(o<=i.write?i.write:i.end)-o,n>e.avail_out&&(n=e.avail_out),0!==n&&t==b&&(t=0),e.avail_out-=n,e.total_out+=n,e.next_out.set(i.window.subarray(o,o+n),r),r+=n,o+=n,o==i.end&&(o=0,i.write==i.end&&(i.write=0),n=i.write-o,n>e.avail_out&&(n=e.avail_out),0!==n&&t==b&&(t=0),e.avail_out-=n,e.total_out+=n,e.next_out.set(i.window.subarray(o,o+n),r),r+=n,o+=n),e.next_out_index=r,i.read=o,t},i.proc=function(e,t){let p,m,_,Z,b,w,v,T;for(Z=e.next_in_index,b=e.avail_in,m=i.bitb,_=i.bitk,w=i.write,v=w<i.read?i.read-w-1:i.end-w;;){let C,E,x,O,D,P,R,B;switch(r){case 0:for(;_<3;){if(0===b)return i.bitb=m,i.bitk=_,e.avail_in=b,e.total_in+=Z-e.next_in_index,e.next_in_index=Z,i.write=w,i.inflate_flush(e,t);t=0,b--,m|=(255&e.read_byte(Z++))<<_,_+=8}switch(p=7&m,h=1&p,p>>>1){case 0:m>>>=3,_-=3,p=7&_,m>>>=p,_-=p,r=1;break;case 1:C=[],E=[],x=[[]],O=[[]],S.inflate_trees_fixed(C,E,x,O),l.init(C[0],E[0],x[0],0,O[0],0),m>>>=3,_-=3,r=6;break;case 2:m>>>=3,_-=3,r=3;break;case 3:return m>>>=3,_-=3,r=9,e.msg="invalid block type",t=y,i.bitb=m,i.bitk=_,e.avail_in=b,e.total_in+=Z-e.next_in_index,e.next_in_index=Z,i.write=w,i.inflate_flush(e,t)}break;case 1:for(;_<32;){if(0===b)return i.bitb=m,i.bitk=_,e.avail_in=b,e.total_in+=Z-e.next_in_index,e.next_in_index=Z,i.write=w,i.inflate_flush(e,t);t=0,b--,m|=(255&e.read_byte(Z++))<<_,_+=8}if((~m>>>16&65535)!=(65535&m))return r=9,e.msg="invalid stored block lengths",t=y,i.bitb=m,i.bitk=_,e.avail_in=b,e.total_in+=Z-e.next_in_index,e.next_in_index=Z,i.write=w,i.inflate_flush(e,t);o=65535&m,m=_=0,r=0!==o?2:0!==h?7:0;break;case 2:if(0===b)return i.bitb=m,i.bitk=_,e.avail_in=b,e.total_in+=Z-e.next_in_index,e.next_in_index=Z,i.write=w,i.inflate_flush(e,t);if(0===v&&(w==i.end&&0!==i.read&&(w=0,v=w<i.read?i.read-w-1:i.end-w),0===v&&(i.write=w,t=i.inflate_flush(e,t),w=i.write,v=w<i.read?i.read-w-1:i.end-w,w==i.end&&0!==i.read&&(w=0,v=w<i.read?i.read-w-1:i.end-w),0===v)))return i.bitb=m,i.bitk=_,e.avail_in=b,e.total_in+=Z-e.next_in_index,e.next_in_index=Z,i.write=w,i.inflate_flush(e,t);if(t=0,p=o,p>b&&(p=b),p>v&&(p=v),i.window.set(e.read_buf(Z,p),w),Z+=p,b-=p,w+=p,v-=p,0!=(o-=p))break;r=0!==h?7:0;break;case 3:for(;_<14;){if(0===b)return i.bitb=m,i.bitk=_,e.avail_in=b,e.total_in+=Z-e.next_in_index,e.next_in_index=Z,i.write=w,i.inflate_flush(e,t);t=0,b--,m|=(255&e.read_byte(Z++))<<_,_+=8}if(s=p=16383&m,(31&p)>29||(p>>5&31)>29)return r=9,e.msg="too many length or distance symbols",t=y,i.bitb=m,i.bitk=_,e.avail_in=b,e.total_in+=Z-e.next_in_index,e.next_in_index=Z,i.write=w,i.inflate_flush(e,t);if(p=258+(31&p)+(p>>5&31),!n||n.length<p)n=[];else for(T=0;T<p;T++)n[T]=0;m>>>=14,_-=14,a=0,r=4;case 4:for(;a<4+(s>>>10);){for(;_<3;){if(0===b)return i.bitb=m,i.bitk=_,e.avail_in=b,e.total_in+=Z-e.next_in_index,e.next_in_index=Z,i.write=w,i.inflate_flush(e,t);t=0,b--,m|=(255&e.read_byte(Z++))<<_,_+=8}n[I[a++]]=7&m,m>>>=3,_-=3}for(;a<19;)n[I[a++]]=0;if(c[0]=7,p=f.inflate_trees_bits(n,c,u,d,e),0!=p)return(t=p)==y&&(n=null,r=9),i.bitb=m,i.bitk=_,e.avail_in=b,e.total_in+=Z-e.next_in_index,e.next_in_index=Z,i.write=w,i.inflate_flush(e,t);a=0,r=5;case 5:for(;p=s,!(a>=258+(31&p)+(p>>5&31));){let o,l;for(p=c[0];_<p;){if(0===b)return i.bitb=m,i.bitk=_,e.avail_in=b,e.total_in+=Z-e.next_in_index,e.next_in_index=Z,i.write=w,i.inflate_flush(e,t);t=0,b--,m|=(255&e.read_byte(Z++))<<_,_+=8}if(p=d[3*(u[0]+(m&A[p]))+1],l=d[3*(u[0]+(m&A[p]))+2],l<16)m>>>=p,_-=p,n[a++]=l;else{for(T=18==l?7:l-14,o=18==l?11:3;_<p+T;){if(0===b)return i.bitb=m,i.bitk=_,e.avail_in=b,e.total_in+=Z-e.next_in_index,e.next_in_index=Z,i.write=w,i.inflate_flush(e,t);t=0,b--,m|=(255&e.read_byte(Z++))<<_,_+=8}if(m>>>=p,_-=p,o+=m&A[T],m>>>=T,_-=T,T=a,p=s,T+o>258+(31&p)+(p>>5&31)||16==l&&T<1)return n=null,r=9,e.msg="invalid bit length repeat",t=y,i.bitb=m,i.bitk=_,e.avail_in=b,e.total_in+=Z-e.next_in_index,e.next_in_index=Z,i.write=w,i.inflate_flush(e,t);l=16==l?n[T-1]:0;do{n[T++]=l}while(0!=--o);a=T}}if(u[0]=-1,D=[],P=[],R=[],B=[],D[0]=9,P[0]=6,p=s,p=f.inflate_trees_dynamic(257+(31&p),1+(p>>5&31),n,D,P,R,B,d,e),0!=p)return p==y&&(n=null,r=9),t=p,i.bitb=m,i.bitk=_,e.avail_in=b,e.total_in+=Z-e.next_in_index,e.next_in_index=Z,i.write=w,i.inflate_flush(e,t);l.init(D[0],P[0],d,R[0],d,B[0]),r=6;case 6:if(i.bitb=m,i.bitk=_,e.avail_in=b,e.total_in+=Z-e.next_in_index,e.next_in_index=Z,i.write=w,1!=(t=l.proc(i,e,t)))return i.inflate_flush(e,t);if(t=0,l.free(e),Z=e.next_in_index,b=e.avail_in,m=i.bitb,_=i.bitk,w=i.write,v=w<i.read?i.read-w-1:i.end-w,0===h){r=0;break}r=7;case 7:if(i.write=w,t=i.inflate_flush(e,t),w=i.write,v=w<i.read?i.read-w-1:i.end-w,i.read!=i.write)return i.bitb=m,i.bitk=_,e.avail_in=b,e.total_in+=Z-e.next_in_index,e.next_in_index=Z,i.write=w,i.inflate_flush(e,t);r=8;case 8:return t=1,i.bitb=m,i.bitk=_,e.avail_in=b,e.total_in+=Z-e.next_in_index,e.next_in_index=Z,i.write=w,i.inflate_flush(e,t);case 9:return t=y,i.bitb=m,i.bitk=_,e.avail_in=b,e.total_in+=Z-e.next_in_index,e.next_in_index=Z,i.write=w,i.inflate_flush(e,t);default:return t=g,i.bitb=m,i.bitk=_,e.avail_in=b,e.total_in+=Z-e.next_in_index,e.next_in_index=Z,i.write=w,i.inflate_flush(e,t)}}},i.free=function(e){i.reset(e,null),i.window=null,d=null},i.set_dictionary=function(e,t,n){i.window.set(e.subarray(t,t+n),0),i.read=i.write=n},i.sync_point=function(){return 1==r?1:0}}const P=13,R=[0,0,255,255];function B(){const e=this;function t(e){return e&&e.istate?(e.total_in=e.total_out=0,e.msg=null,e.istate.mode=7,e.istate.blocks.reset(e,null),0):g}e.mode=0,e.method=0,e.was=[0],e.need=0,e.marker=0,e.wbits=0,e.inflateEnd=function(t){return e.blocks&&e.blocks.free(t),e.blocks=null,0},e.inflateInit=function(i,n){return i.msg=null,e.blocks=null,n<8||n>15?(e.inflateEnd(i),g):(e.wbits=n,i.istate.blocks=new D(i,1<<n),t(i),0)},e.inflate=function(e,t){let i,n;if(!e||!e.istate||!e.next_in)return g;const r=e.istate;for(t=4==t?b:0,i=b;;)switch(r.mode){case 0:if(0===e.avail_in)return i;if(i=t,e.avail_in--,e.total_in++,8!=(15&(r.method=e.read_byte(e.next_in_index++)))){r.mode=P,e.msg="unknown compression method",r.marker=5;break}if(8+(r.method>>4)>r.wbits){r.mode=P,e.msg="invalid window size",r.marker=5;break}r.mode=1;case 1:if(0===e.avail_in)return i;if(i=t,e.avail_in--,e.total_in++,n=255&e.read_byte(e.next_in_index++),((r.method<<8)+n)%31!=0){r.mode=P,e.msg="incorrect header check",r.marker=5;break}if(0==(32&n)){r.mode=7;break}r.mode=2;case 2:if(0===e.avail_in)return i;i=t,e.avail_in--,e.total_in++,r.need=(255&e.read_byte(e.next_in_index++))<<24&4278190080,r.mode=3;case 3:if(0===e.avail_in)return i;i=t,e.avail_in--,e.total_in++,r.need+=(255&e.read_byte(e.next_in_index++))<<16&16711680,r.mode=4;case 4:if(0===e.avail_in)return i;i=t,e.avail_in--,e.total_in++,r.need+=(255&e.read_byte(e.next_in_index++))<<8&65280,r.mode=5;case 5:return 0===e.avail_in?i:(i=t,e.avail_in--,e.total_in++,r.need+=255&e.read_byte(e.next_in_index++),r.mode=6,2);case 6:return r.mode=P,e.msg="need dictionary",r.marker=0,g;case 7:if(i=r.blocks.proc(e,i),i==y){r.mode=P,r.marker=0;break}if(0==i&&(i=t),1!=i)return i;i=t,r.blocks.reset(e,r.was),r.mode=12;case 12:return 1;case P:return y;default:return g}},e.inflateSetDictionary=function(e,t,i){let n=0,r=i;if(!e||!e.istate||6!=e.istate.mode)return g;const o=e.istate;return r>=1<<o.wbits&&(r=(1<<o.wbits)-1,n=i-r),o.blocks.set_dictionary(t,n,r),o.mode=7,0},e.inflateSync=function(e){let i,n,r,o,s;if(!e||!e.istate)return g;const a=e.istate;if(a.mode!=P&&(a.mode=P,a.marker=0),0===(i=e.avail_in))return b;for(n=e.next_in_index,r=a.marker;0!==i&&r<4;)e.read_byte(n)==R[r]?r++:r=0!==e.read_byte(n)?0:4-r,n++,i--;return e.total_in+=n-e.next_in_index,e.next_in_index=n,e.avail_in=i,a.marker=r,4!=r?y:(o=e.total_in,s=e.total_out,t(e),e.total_in=o,e.total_out=s,a.mode=7,0)},e.inflateSyncPoint=function(e){return e&&e.istate&&e.istate.blocks?e.istate.blocks.sync_point():g}}function M(){}M.prototype={inflateInit:function(e){const t=this;return t.istate=new B,e||(e=15),t.istate.inflateInit(t,e)},inflate:function(e){const t=this;return t.istate?t.istate.inflate(t,e):g},inflateEnd:function(){const e=this;if(!e.istate)return g;const t=e.istate.inflateEnd(e);return e.istate=null,t},inflateSync:function(){const e=this;return e.istate?e.istate.inflateSync(e):g},inflateSetDictionary:function(e,t){const i=this;return i.istate?i.istate.inflateSetDictionary(i,e,t):g},read_byte:function(e){return this.next_in[e]},read_buf:function(e,t){return this.next_in.subarray(e,e+t)}};const L={chunkSize:524288,maxWorkers:"undefined"!=typeof navigator&&navigator.hardwareConcurrency||2,terminateWorkerTimeout:5e3,useWebWorkers:!0,workerScripts:void 0},N=Object.assign({},L);function F(){return N}function k(e){if(void 0!==e.baseURL&&(N.baseURL=e.baseURL),void 0!==e.chunkSize&&(N.chunkSize=e.chunkSize),void 0!==e.maxWorkers&&(N.maxWorkers=e.maxWorkers),void 0!==e.terminateWorkerTimeout&&(N.terminateWorkerTimeout=e.terminateWorkerTimeout),void 0!==e.useWebWorkers&&(N.useWebWorkers=e.useWebWorkers),void 0!==e.Deflate&&(N.Deflate=e.Deflate),void 0!==e.Inflate&&(N.Inflate=e.Inflate),void 0!==e.workerScripts){if(e.workerScripts.deflate){if(!Array.isArray(e.workerScripts.deflate))throw new Error("workerScripts.deflate must be an array");N.workerScripts||(N.workerScripts={}),N.workerScripts.deflate=e.workerScripts.deflate}if(e.workerScripts.inflate){if(!Array.isArray(e.workerScripts.inflate))throw new Error("workerScripts.inflate must be an array");N.workerScripts||(N.workerScripts={}),N.workerScripts.inflate=e.workerScripts.inflate}}}const U="Abort error";async function V(e,t,i,n,r,o,s){const a=Math.max(o.chunkSize,64);return async function o(c=0,u=0){const l=s.signal;if(c<r){z(l,e);const h=await t.readUint8Array(c+n,Math.min(a,r-c)),d=h.length;z(l,e);const f=await e.append(h);if(z(l,e),u+=await H(i,f),s.onprogress)try{s.onprogress(c+d,r)}catch(e){}return o(c+a,u)}{const t=await e.flush();return u+=await H(i,t.data),{signature:t.signature,length:u}}}()}function z(e,t){if(e&&e.aborted)throw t.flush(),new Error(U)}async function H(e,t){return t.length&&await e.writeUint8Array(t),t.length}const G="HTTP error ",q="HTTP Range not supported",j="text/plain",W="GET";class K{constructor(){this.size=0}init(){this.initialized=!0}}class Y extends K{}class X extends K{writeUint8Array(e){this.size+=e.length}}class J extends Y{constructor(e){super(),this.blob=e,this.size=e.size}async readUint8Array(e,t){if(this.blob.arrayBuffer)return new Uint8Array(await this.blob.slice(e,e+t).arrayBuffer());{const i=new FileReader;return new Promise(((n,r)=>{i.onload=e=>n(new Uint8Array(e.target.result)),i.onerror=()=>r(i.error),i.readAsArrayBuffer(this.blob.slice(e,e+t))}))}}}class Q extends X{constructor(e){super(),this.contentType=e,this.arrayBuffers=[]}async writeUint8Array(e){super.writeUint8Array(e),this.arrayBuffers.push(e.buffer)}getData(){return this.blob||(this.blob=new Blob(this.arrayBuffers,{type:this.contentType})),this.blob}}class $ extends Y{constructor(e,t){super(),this.url=e,this.preventHeadRequest=t.preventHeadRequest,this.useRangeHeader=t.useRangeHeader,this.forceRangeRequests=t.forceRangeRequests,this.options=Object.assign({},t),delete this.options.preventHeadRequest,delete this.options.useRangeHeader,delete this.options.forceRangeRequests,delete this.options.useXHR}async init(){super.init(),await te(this,ue,oe)}async readUint8Array(e,t){return ie(this,e,t,ue,oe)}}class ee extends Y{constructor(e,t){super(),this.url=e,this.preventHeadRequest=t.preventHeadRequest,this.useRangeHeader=t.useRangeHeader,this.forceRangeRequests=t.forceRangeRequests,this.options=t}async init(){super.init(),await te(this,le,se)}async readUint8Array(e,t){return ie(this,e,t,le,se)}}async function te(e,t,i){if(function(e){if("undefined"!=typeof document){const t=document.createElement("a");return t.href=e,"http:"==t.protocol||"https:"==t.protocol}return/^https?:\/\//i.test(e)}(e.url)&&(e.useRangeHeader||e.forceRangeRequests)){const n=await t(W,e,ne(e));if(!e.forceRangeRequests&&"bytes"!=n.headers.get("Accept-Ranges"))throw new Error(q);{let r;const o=n.headers.get("Content-Range");if(o){const e=o.trim().split(/\s*\/\s*/);if(e.length){const t=e[1];t&&"*"!=t&&(r=Number(t))}}void 0===r?await ce(e,t,i):e.size=r}}else await ce(e,t,i)}async function ie(e,t,i,n,r){if(e.useRangeHeader||e.forceRangeRequests){const r=await n(W,e,ne(e,t,i));if(206!=r.status)throw new Error(q);return new Uint8Array(await r.arrayBuffer())}return e.data||await r(e,e.options),new Uint8Array(e.data.subarray(t,t+i))}function ne(e,t=0,i=1){return Object.assign({},re(e),{Range:"bytes="+t+"-"+(t+i-1)})}function re(e){let t=e.options.headers;if(t)return Symbol.iterator in t?Object.fromEntries(t):t}async function oe(e){await ae(e,ue)}async function se(e){await ae(e,le)}async function ae(e,t){const i=await t(W,e,re(e));e.data=new Uint8Array(await i.arrayBuffer()),e.size||(e.size=e.data.length)}async function ce(e,t,i){if(e.preventHeadRequest)await i(e,e.options);else{const n=(await t("HEAD",e,re(e))).headers.get("Content-Length");n?e.size=Number(n):await i(e,e.options)}}async function ue(e,{options:t,url:i},n){const r=await fetch(i,Object.assign({},t,{method:e,headers:n}));if(r.status<400)return r;throw new Error(G+(r.statusText||r.status))}function le(e,{url:t},i){return new Promise(((n,r)=>{const o=new XMLHttpRequest;if(o.addEventListener("load",(()=>{if(o.status<400){const e=[];o.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach((t=>{const i=t.trim().split(/\s*:\s*/);i[0]=i[0].trim().replace(/^[a-z]|-[a-z]/g,(e=>e.toUpperCase())),e.push(i)})),n({status:o.status,arrayBuffer:()=>o.response,headers:new Map(e)})}else r(new Error(G+(o.statusText||o.status)))}),!1),o.addEventListener("error",(e=>r(e.detail.error)),!1),o.open(e,t),i)for(const e of Object.entries(i))o.setRequestHeader(e[0],e[1]);o.responseType="arraybuffer",o.send()}))}class he extends Y{constructor(e,t={}){super(),this.url=e,t.useXHR?this.reader=new ee(e,t):this.reader=new $(e,t)}set size(e){}get size(){return this.reader.size}async init(){super.init(),await this.reader.init()}async readUint8Array(e,t){return this.reader.readUint8Array(e,t)}}const de=4294967295,fe=65535,pe=67324752,me=33639248,_e=101010256,Ze=101075792,ge=117853008,ye=21589,be=2048,Ae="/",we=new Date(2107,11,31),ve=new Date(1980,0,1),Te=[];for(let e=0;e<256;e++){let t=e;for(let e=0;e<8;e++)1&t?t=t>>>1^3988292384:t>>>=1;Te[e]=t}class Ce{constructor(e){this.crc=e||-1}append(e){let t=0|this.crc;for(let i=0,n=0|e.length;i<n;i++)t=t>>>8^Te[255&(t^e[i])];this.crc=t}get(){return~this.crc}}function Ee(e){if("undefined"==typeof TextEncoder){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let i=0;i<t.length;i++)t[i]=e.charCodeAt(i);return t}return(new TextEncoder).encode(e)}const xe={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const i=e[e.length-1],n=xe.getPartial(i);return 32===n?e.concat(t):xe._shiftRight(t,n,0|i,e.slice(0,e.length-1))},bitLength(e){const t=e.length;if(0===t)return 0;const i=e[t-1];return 32*(t-1)+xe.getPartial(i)},clamp(e,t){if(32*e.length<t)return e;const i=(e=e.slice(0,Math.ceil(t/32))).length;return t&=31,i>0&&t&&(e[i-1]=xe.partial(t,e[i-1]&2147483648>>t-1,1)),e},partial:(e,t,i)=>32===e?t:(i?0|t:t<<32-e)+1099511627776*e,getPartial:e=>Math.round(e/1099511627776)||32,_shiftRight(e,t,i,n){for(void 0===n&&(n=[]);t>=32;t-=32)n.push(i),i=0;if(0===t)return n.concat(e);for(let r=0;r<e.length;r++)n.push(i|e[r]>>>t),i=e[r]<<32-t;const r=e.length?e[e.length-1]:0,o=xe.getPartial(r);return n.push(xe.partial(t+o&31,t+o>32?i:n.pop(),1)),n}},Se={bytes:{fromBits(e){const t=xe.bitLength(e)/8,i=new Uint8Array(t);let n;for(let r=0;r<t;r++)0==(3&r)&&(n=e[r/4]),i[r]=n>>>24,n<<=8;return i},toBits(e){const t=[];let i,n=0;for(i=0;i<e.length;i++)n=n<<8|e[i],3==(3&i)&&(t.push(n),n=0);return 3&i&&t.push(xe.partial(8*(3&i),n)),t}}},Oe={sha1:function(e){e?(this._h=e._h.slice(0),this._buffer=e._buffer.slice(0),this._length=e._length):this.reset()}};Oe.sha1.prototype={blockSize:512,reset:function(){const e=this;return e._h=this._init.slice(0),e._buffer=[],e._length=0,e},update:function(e){const t=this;"string"==typeof e&&(e=Se.utf8String.toBits(e));const i=t._buffer=xe.concat(t._buffer,e),n=t._length,r=t._length=n+xe.bitLength(e);if(r>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const o=new Uint32Array(i);let s=0;for(let e=t.blockSize+n-(t.blockSize+n&t.blockSize-1);e<=r;e+=t.blockSize)t._block(o.subarray(16*s,16*(s+1))),s+=1;return i.splice(0,16*s),t},finalize:function(){const e=this;let t=e._buffer;const i=e._h;t=xe.concat(t,[xe.partial(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(Math.floor(e._length/4294967296)),t.push(0|e._length);t.length;)e._block(t.splice(0,16));return e.reset(),i},_init:[1732584193,4023233417,2562383102,271733878,3285377520],_key:[1518500249,1859775393,2400959708,3395469782],_f:function(e,t,i,n){return e<=19?t&i|~t&n:e<=39?t^i^n:e<=59?t&i|t&n|i&n:e<=79?t^i^n:void 0},_S:function(e,t){return t<<e|t>>>32-e},_block:function(e){const t=this,i=t._h,n=Array(80);for(let t=0;t<16;t++)n[t]=e[t];let r=i[0],o=i[1],s=i[2],a=i[3],c=i[4];for(let e=0;e<=79;e++){e>=16&&(n[e]=t._S(1,n[e-3]^n[e-8]^n[e-14]^n[e-16]));const i=t._S(5,r)+t._f(e,o,s,a)+c+n[e]+t._key[Math.floor(e/20)]|0;c=a,a=s,s=t._S(30,o),o=r,r=i}i[0]=i[0]+r|0,i[1]=i[1]+o|0,i[2]=i[2]+s|0,i[3]=i[3]+a|0,i[4]=i[4]+c|0}};const Ie=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const i=t._tables[0][4],n=t._tables[1],r=e.length;let o,s,a,c=1;if(4!==r&&6!==r&&8!==r)throw new Error("invalid aes key size");for(t._key=[s=e.slice(0),a=[]],o=r;o<4*r+28;o++){let e=s[o-1];(o%r==0||8===r&&o%r==4)&&(e=i[e>>>24]<<24^i[e>>16&255]<<16^i[e>>8&255]<<8^i[255&e],o%r==0&&(e=e<<8^e>>>24^c<<24,c=c<<1^283*(c>>7))),s[o]=s[o-r]^e}for(let e=0;o;e++,o--){const t=s[3&e?o:o-4];a[e]=o<=4||e<4?t:n[0][i[t>>>24]]^n[1][i[t>>16&255]]^n[2][i[t>>8&255]]^n[3][i[255&t]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],t=this._tables[1],i=e[4],n=t[4],r=[],o=[];let s,a,c,u;for(let e=0;e<256;e++)o[(r[e]=e<<1^283*(e>>7))^e]=e;for(let l=s=0;!i[l];l^=a||1,s=o[s]||1){let o=s^s<<1^s<<2^s<<3^s<<4;o=o>>8^255&o^99,i[l]=o,n[o]=l,u=r[c=r[a=r[l]]];let h=16843009*u^65537*c^257*a^16843008*l,d=257*r[o]^16843008*o;for(let i=0;i<4;i++)e[i][l]=d=d<<24^d>>>8,t[i][o]=h=h<<24^h>>>8}for(let i=0;i<5;i++)e[i]=e[i].slice(0),t[i]=t[i].slice(0)}_crypt(e,t){if(4!==e.length)throw new Error("invalid aes block size");const i=this._key[t],n=i.length/4-2,r=[0,0,0,0],o=this._tables[t],s=o[0],a=o[1],c=o[2],u=o[3],l=o[4];let h,d,f,p=e[0]^i[0],m=e[t?3:1]^i[1],_=e[2]^i[2],Z=e[t?1:3]^i[3],g=4;for(let e=0;e<n;e++)h=s[p>>>24]^a[m>>16&255]^c[_>>8&255]^u[255&Z]^i[g],d=s[m>>>24]^a[_>>16&255]^c[Z>>8&255]^u[255&p]^i[g+1],f=s[_>>>24]^a[Z>>16&255]^c[p>>8&255]^u[255&m]^i[g+2],Z=s[Z>>>24]^a[p>>16&255]^c[m>>8&255]^u[255&_]^i[g+3],g+=4,p=h,m=d,_=f;for(let e=0;e<4;e++)r[t?3&-e:e]=l[p>>>24]<<24^l[m>>16&255]<<16^l[_>>8&255]<<8^l[255&Z]^i[g++],h=p,p=m,m=_,_=Z,Z=h;return r}},De=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if(255==(e>>24&255)){let t=e>>16&255,i=e>>8&255,n=255&e;255===t?(t=0,255===i?(i=0,255===n?n=0:++n):++i):++t,e=0,e+=t<<16,e+=i<<8,e+=n}else e+=1<<24;return e}incCounter(e){0===(e[0]=this.incWord(e[0]))&&(e[1]=this.incWord(e[1]))}calculate(e,t,i){let n;if(!(n=t.length))return[];const r=xe.bitLength(t);for(let r=0;r<n;r+=4){this.incCounter(i);const n=e.encrypt(i);t[r]^=n[0],t[r+1]^=n[1],t[r+2]^=n[2],t[r+3]^=n[3]}return xe.clamp(t,r)}},Pe=class{constructor(e){const t=this,i=t._hash=Oe.sha1,n=[[],[]],r=i.prototype.blockSize/32;t._baseHash=[new i,new i],e.length>r&&(e=i.hash(e));for(let t=0;t<r;t++)n[0][t]=909522486^e[t],n[1][t]=1549556828^e[t];t._baseHash[0].update(n[0]),t._baseHash[1].update(n[1]),t._resultHash=new i(t._baseHash[0])}reset(){const e=this;e._resultHash=new e._hash(e._baseHash[0]),e._updated=!1}update(e){this._updated=!0,this._resultHash.update(e)}digest(){const e=this,t=e._resultHash.finalize(),i=new e._hash(e._baseHash[1]).update(t).finalize();return e.reset(),i}},Re="Invalid pasword",Be=16,Me={name:"PBKDF2"},Le=Object.assign({hash:{name:"HMAC"}},Me),Ne=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},Me),Fe=["deriveBits"],ke=[8,12,16],Ue=[16,24,32],Ve=10,ze=[0,0,0,0],He=Se.bytes,Ge=Ie,qe=De,je=Pe;class We{constructor(e,t,i){Object.assign(this,{password:e,signed:t,strength:i-1,pendingInput:new Uint8Array(0)})}async append(e){const t=this;if(t.password){const i=Qe(e,0,ke[t.strength]+2);await async function(e,t,i){await Xe(e,i,Qe(t,0,ke[e.strength]));const n=Qe(t,ke[e.strength]),r=e.keys.passwordVerification;if(r[0]!=n[0]||r[1]!=n[1])throw new Error(Re)}(t,i,t.password),t.password=null,t.aesCtrGladman=new qe(new Ge(t.keys.key),Array.from(ze)),t.hmac=new je(t.keys.authentication),e=Qe(e,ke[t.strength]+2)}return Ye(t,e,new Uint8Array(e.length-Ve-(e.length-Ve)%Be),0,Ve,!0)}flush(){const e=this,t=e.pendingInput,i=Qe(t,0,t.length-Ve),n=Qe(t,t.length-Ve);let r=new Uint8Array(0);if(i.length){const t=He.toBits(i);e.hmac.update(t);const n=e.aesCtrGladman.update(t);r=He.fromBits(n)}let o=!0;if(e.signed){const t=Qe(He.fromBits(e.hmac.digest()),0,Ve);for(let e=0;e<Ve;e++)t[e]!=n[e]&&(o=!1)}return{valid:o,data:r}}}class Ke{constructor(e,t){Object.assign(this,{password:e,strength:t-1,pendingInput:new Uint8Array(0)})}async append(e){const t=this;let i=new Uint8Array(0);t.password&&(i=await async function(e,t){const i=crypto.getRandomValues(new Uint8Array(ke[e.strength]));return await Xe(e,t,i),Je(i,e.keys.passwordVerification)}(t,t.password),t.password=null,t.aesCtrGladman=new qe(new Ge(t.keys.key),Array.from(ze)),t.hmac=new je(t.keys.authentication));const n=new Uint8Array(i.length+e.length-e.length%Be);return n.set(i,0),Ye(t,e,n,i.length,0)}flush(){const e=this;let t=new Uint8Array(0);if(e.pendingInput.length){const i=e.aesCtrGladman.update(He.toBits(e.pendingInput));e.hmac.update(i),t=He.fromBits(i)}const i=Qe(He.fromBits(e.hmac.digest()),0,Ve);return{data:Je(t,i),signature:i}}}function Ye(e,t,i,n,r,o){const s=t.length-r;let a;for(e.pendingInput.length&&(t=Je(e.pendingInput,t),i=function(e,t){if(t&&t>e.length){const i=e;(e=new Uint8Array(t)).set(i,0)}return e}(i,s-s%Be)),a=0;a<=s-Be;a+=Be){const r=He.toBits(Qe(t,a,a+Be));o&&e.hmac.update(r);const s=e.aesCtrGladman.update(r);o||e.hmac.update(s),i.set(He.fromBits(s),a+n)}return e.pendingInput=Qe(t,a),i}async function Xe(e,t,i){const n=Ee(t),r=await crypto.subtle.importKey("raw",n,Le,!1,Fe),o=await crypto.subtle.deriveBits(Object.assign({salt:i},Ne),r,8*(2*Ue[e.strength]+2)),s=new Uint8Array(o);e.keys={key:He.toBits(Qe(s,0,Ue[e.strength])),authentication:He.toBits(Qe(s,Ue[e.strength],2*Ue[e.strength])),passwordVerification:Qe(s,2*Ue[e.strength])}}function Je(e,t){let i=e;return e.length+t.length&&(i=new Uint8Array(e.length+t.length),i.set(e,0),i.set(t,e.length)),i}function Qe(e,t,i){return e.subarray(t,i)}class $e{constructor(e,t){Object.assign(this,{password:e,passwordVerification:t}),nt(this,e)}append(e){const t=this;if(t.password){const i=tt(t,e.subarray(0,12));if(t.password=null,i[11]!=t.passwordVerification)throw new Error(Re);e=e.subarray(12)}return tt(t,e)}flush(){return{valid:!0,data:new Uint8Array(0)}}}class et{constructor(e,t){Object.assign(this,{password:e,passwordVerification:t}),nt(this,e)}append(e){const t=this;let i,n;if(t.password){t.password=null;const r=crypto.getRandomValues(new Uint8Array(12));r[11]=t.passwordVerification,i=new Uint8Array(e.length+r.length),i.set(it(t,r),0),n=12}else i=new Uint8Array(e.length),n=0;return i.set(it(t,e),n),i}flush(){return{data:new Uint8Array(0)}}}function tt(e,t){const i=new Uint8Array(t.length);for(let n=0;n<t.length;n++)i[n]=ot(e)^t[n],rt(e,i[n]);return i}function it(e,t){const i=new Uint8Array(t.length);for(let n=0;n<t.length;n++)i[n]=ot(e)^t[n],rt(e,t[n]);return i}function nt(e,t){e.keys=[305419896,591751049,878082192],e.crcKey0=new Ce(e.keys[0]),e.crcKey2=new Ce(e.keys[2]);for(let i=0;i<t.length;i++)rt(e,t.charCodeAt(i))}function rt(e,t){e.crcKey0.append([t]),e.keys[0]=~e.crcKey0.get(),e.keys[1]=at(e.keys[1]+st(e.keys[0])),e.keys[1]=at(Math.imul(e.keys[1],134775813)+1),e.crcKey2.append([e.keys[1]>>>24]),e.keys[2]=~e.crcKey2.get()}function ot(e){const t=2|e.keys[2];return st(Math.imul(t,1^t)>>>8)}function st(e){return 255&e}function at(e){return 4294967295&e}const ct="deflate",ut="inflate",lt="Invalid signature";class ht{constructor(e,{signature:t,password:i,signed:n,compressed:r,zipCrypto:o,passwordVerification:s,encryptionStrength:a},{chunkSize:c}){const u=Boolean(i);Object.assign(this,{signature:t,encrypted:u,signed:n,compressed:r,inflate:r&&new e({chunkSize:c}),crc32:n&&new Ce,zipCrypto:o,decrypt:u&&o?new $e(i,s):new We(i,n,a)})}async append(e){const t=this;return t.encrypted&&e.length&&(e=await t.decrypt.append(e)),t.compressed&&e.length&&(e=await t.inflate.append(e)),(!t.encrypted||t.zipCrypto)&&t.signed&&e.length&&t.crc32.append(e),e}async flush(){const e=this;let t,i=new Uint8Array(0);if(e.encrypted){const t=e.decrypt.flush();if(!t.valid)throw new Error(lt);i=t.data}if((!e.encrypted||e.zipCrypto)&&e.signed){const i=new DataView(new Uint8Array(4).buffer);if(t=e.crc32.get(),i.setUint32(0,t),e.signature!=i.getUint32(0,!1))throw new Error(lt)}return e.compressed&&(i=await e.inflate.append(i)||new Uint8Array(0),await e.inflate.flush()),{data:i,signature:t}}}class dt{constructor(e,{encrypted:t,signed:i,compressed:n,level:r,zipCrypto:o,password:s,passwordVerification:a,encryptionStrength:c},{chunkSize:u}){Object.assign(this,{encrypted:t,signed:i,compressed:n,deflate:n&&new e({level:r||5,chunkSize:u}),crc32:i&&new Ce,zipCrypto:o,encrypt:t&&o?new et(s,a):new Ke(s,c)})}async append(e){const t=this;let i=e;return t.compressed&&e.length&&(i=await t.deflate.append(e)),t.encrypted&&i.length&&(i=await t.encrypt.append(i)),(!t.encrypted||t.zipCrypto)&&t.signed&&e.length&&t.crc32.append(e),i}async flush(){const e=this;let t,i=new Uint8Array(0);if(e.compressed&&(i=await e.deflate.flush()||new Uint8Array(0)),e.encrypted){i=await e.encrypt.append(i);const n=e.encrypt.flush();t=n.signature;const r=new Uint8Array(i.length+n.data.length);r.set(i,0),r.set(n.data,i.length),i=r}return e.encrypted&&!e.zipCrypto||!e.signed||(t=e.crc32.get()),{data:i,signature:t}}}const ft="init",pt="append",mt="flush";let _t=!0;var Zt=(e,t,i,n,r,o,s)=>(Object.assign(e,{busy:!0,codecConstructor:t,options:Object.assign({},i),scripts:s,terminate(){e.worker&&!e.busy&&(e.worker.terminate(),e.interface=null)},onTaskFinished(){e.busy=!1,r(e)}}),o?function(e,t){let i;const n={type:"module"};if(!e.interface){if(_t)try{e.worker=r({},t.baseURL)}catch(i){_t=!1,e.worker=r(n,t.baseURL)}else e.worker=r(n,t.baseURL);e.worker.addEventListener("message",(function(t){const n=t.data;if(i){const t=n.error,r=n.type;if(t){const n=new Error(t.message);n.stack=t.stack,i.reject(n),i=null,e.onTaskFinished()}else if(r==ft||r==mt||r==pt){const t=n.data;r==mt?(i.resolve({data:new Uint8Array(t),signature:n.signature}),i=null,e.onTaskFinished()):i.resolve(t&&new Uint8Array(t))}}}),!1),e.interface={append:e=>o({type:pt,data:e}),flush:()=>o({type:mt})}}return e.interface;function r(t,i){let n;try{n=new URL(e.scripts[0],i)}catch(t){n=e.scripts[0]}return new Worker(n,t)}async function o(n){if(!i){const i=e.options,n=e.scripts.slice(1);await s({scripts:n,type:ft,options:i,config:{chunkSize:t.chunkSize}})}return s(n)}function s(t){const n=e.worker,r=new Promise(((e,t)=>i={resolve:e,reject:t}));try{if(t.data)try{t.data=t.data.buffer,n.postMessage(t,[t.data])}catch(e){n.postMessage(t)}else n.postMessage(t)}catch(t){i.reject(t),i=null,e.onTaskFinished()}return r}}(e,n):function(e,t){const i=function(e,t,i){return t.codecType.startsWith(ct)?new dt(e,t,i):t.codecType.startsWith(ut)?new ht(e,t,i):void 0}(e.codecConstructor,e.options,t);return{async append(t){try{return await i.append(t)}catch(t){throw e.onTaskFinished(),t}},async flush(){try{return await i.flush()}finally{e.onTaskFinished()}}}}(e,n));let gt=[],yt=[];function bt(e,t,i){const n=!(!t.compressed&&!t.signed&&!t.encrypted)&&(t.useWebWorkers||void 0===t.useWebWorkers&&i.useWebWorkers),r=n&&i.workerScripts?i.workerScripts[t.codecType]:[];if(gt.length<i.maxWorkers){const s={};return gt.push(s),Zt(s,e,t,i,o,n,r)}{const s=gt.find((e=>!e.busy));return s?(At(s),Zt(s,e,t,i,o,n,r)):new Promise((i=>yt.push({resolve:i,codecConstructor:e,options:t,webWorker:n,scripts:r})))}function o(e){if(yt.length){const[{resolve:t,codecConstructor:n,options:r,webWorker:s,scripts:a}]=yt.splice(0,1);t(Zt(e,n,r,i,o,s,a))}else e.worker?(At(e),Number.isFinite(i.terminateWorkerTimeout)&&i.terminateWorkerTimeout>=0&&(e.terminateTimeout=setTimeout((()=>{gt=gt.filter((t=>t!=e)),e.terminate()}),i.terminateWorkerTimeout))):gt=gt.filter((t=>t!=e))}}function At(e){e.terminateTimeout&&(clearTimeout(e.terminateTimeout),e.terminateTimeout=null)}const wt="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split("");async function vt(e,t){if(t&&"cp437"==t.trim().toLowerCase())return(e=>{let t="";for(let i=0;i<e.length;i++)t+=wt[e[i]];return t})(e);if("undefined"==typeof TextDecoder){const t=new FileReader;return new Promise(((i,n)=>{t.onload=e=>i(e.target.result),t.onerror=()=>n(t.error),t.readAsText(new Blob([e]))}))}return new TextDecoder(t).decode(e)}const Tt=["filename","rawFilename","directory","encrypted","compressedSize","uncompressedSize","lastModDate","rawLastModDate","comment","rawComment","signature","extraField","rawExtraField","bitFlag","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","filenameUTF8","commentUTF8","offset","zip64","compressionMethod","extraFieldNTFS","lastAccessDate","creationDate","extraFieldExtendedTimestamp","version","versionMadeBy","msDosCompatible","internalFileAttribute","externalFileAttribute"];class Ct{constructor(e){Tt.forEach((t=>this[t]=e[t]))}}const Et="File format is not recognized",xt="End of central directory not found",St="End of Zip64 central directory not found",Ot="End of Zip64 central directory locator not found",It="Central directory header not found",Dt="Local file header not found",Pt="Zip64 extra field not found",Rt="File contains encrypted entry",Bt="Encryption method not supported",Mt="Compression method not supported",Lt="utf-8",Nt="cp437",Ft=["uncompressedSize","compressedSize","offset"];class kt{constructor(e,t,i){Object.assign(this,{reader:e,config:t,options:i})}async getData(e,t,i={}){const n=this,{reader:r,offset:o,extraFieldAES:s,compressionMethod:a,config:c,bitFlag:u,signature:l,rawLastModDate:h,compressedSize:d}=n,f=n.localDirectory={};r.initialized||await r.init();let p=await Jt(r,o,30);const m=Xt(p);let _=Ht(n,i,"password");if(_=_&&_.length&&_,s&&99!=s.originalCompressionMethod)throw new Error(Mt);if(0!=a&&8!=a)throw new Error(Mt);if(Kt(m,0)!=pe)throw new Error(Dt);Ut(f,m,4),p=await Jt(r,o,30+f.filenameLength+f.extraFieldLength),f.rawExtraField=p.subarray(30+f.filenameLength),await Vt(n,f,m,4),t.lastAccessDate=f.lastAccessDate,t.creationDate=f.creationDate;const Z=n.encrypted&&f.encrypted,g=Z&&!s;if(Z){if(!g&&void 0===s.strength)throw new Error(Bt);if(!_)throw new Error(Rt)}const y=await bt(c.Inflate,{codecType:ut,password:_,zipCrypto:g,encryptionStrength:s&&s.strength,signed:Ht(n,i,"checkSignature"),passwordVerification:g&&(u.dataDescriptor?h>>>8&255:l>>>24&255),signature:l,compressed:0!=a,encrypted:Z,useWebWorkers:Ht(n,i,"useWebWorkers")},c);e.initialized||await e.init();const b=Ht(n,i,"signal"),A=o+30+f.filenameLength+f.extraFieldLength;return await V(y,r,e,A,d,c,{onprogress:i.onprogress,signal:b}),e.getData()}}function Ut(e,t,i){const n=e.rawBitFlag=Wt(t,i+2),r=1==(1&n),o=Kt(t,i+6);Object.assign(e,{encrypted:r,version:Wt(t,i),bitFlag:{level:(6&n)>>1,dataDescriptor:8==(8&n),languageEncodingFlag:(n&be)==be},rawLastModDate:o,lastModDate:Gt(o),filenameLength:Wt(t,i+22),extraFieldLength:Wt(t,i+24)})}async function Vt(e,t,i,n){const r=t.rawExtraField,o=t.extraField=new Map,s=Xt(new Uint8Array(r));let a=0;try{for(;a<r.length;){const e=Wt(s,a),t=Wt(s,a+2);o.set(e,{type:e,data:r.slice(a+4,a+4+t)}),a+=4+t}}catch(e){}const c=Wt(i,n+4);t.signature=Kt(i,n+10),t.uncompressedSize=Kt(i,n+18),t.compressedSize=Kt(i,n+14);const u=o.get(1);u&&(function(e,t){t.zip64=!0;const i=Xt(e.data);e.values=[];for(let t=0;t<Math.floor(e.data.length/8);t++)e.values.push(Yt(i,0+8*t));const n=Ft.filter((e=>t[e]==de));for(let t=0;t<n.length;t++)e[n[t]]=e.values[t];Ft.forEach((i=>{if(t[i]==de){if(void 0===e[i])throw new Error(Pt);t[i]=e[i]}}))}(u,t),t.extraFieldZip64=u);const l=o.get(28789);l&&(await zt(l,"filename","rawFilename",t,e),t.extraFieldUnicodePath=l);const h=o.get(25461);h&&(await zt(h,"comment","rawComment",t,e),t.extraFieldUnicodeComment=h);const d=o.get(39169);d?(function(e,t,i){const n=Xt(e.data);e.vendorVersion=jt(n,0),e.vendorId=jt(n,2);const r=jt(n,4);e.strength=r,e.originalCompressionMethod=i,t.compressionMethod=e.compressionMethod=Wt(n,5)}(d,t,c),t.extraFieldAES=d):t.compressionMethod=c;const f=o.get(10);f&&(function(e,t){const i=Xt(e.data);let n,r=4;try{for(;r<e.data.length&&!n;){const t=Wt(i,r),o=Wt(i,r+2);1==t&&(n=e.data.slice(r+4,r+4+o)),r+=4+o}}catch(e){}try{if(n&&24==n.length){const i=Xt(n),r=i.getBigUint64(0,!0),o=i.getBigUint64(8,!0),s=i.getBigUint64(16,!0);Object.assign(e,{rawLastModDate:r,rawLastAccessDate:o,rawCreationDate:s});const a=qt(r),c={lastModDate:a,lastAccessDate:qt(o),creationDate:qt(s)};Object.assign(e,c),Object.assign(t,c)}}catch(e){}}(f,t),t.extraFieldNTFS=f);const p=o.get(ye);p&&(function(e,t){const i=Xt(e.data),n=jt(i,0),r=[],o=[];1==(1&n)&&(r.push("lastModDate"),o.push("rawLastModDate")),2==(2&n)&&(r.push("lastAccessDate"),o.push("rawLastAccessDate")),4==(4&n)&&(r.push("creationDate"),o.push("rawCreationDate"));let s=1;r.forEach(((n,r)=>{if(e.data.length>=s+4){const a=Kt(i,s);t[n]=e[n]=new Date(1e3*a);const c=o[r];e[c]=a}s+=4}))}(p,t),t.extraFieldExtendedTimestamp=p)}async function zt(e,t,i,n,r){const o=Xt(e.data);e.version=jt(o,0),e.signature=Kt(o,1);const s=new Ce;s.append(r[i]);const a=Xt(new Uint8Array(4));a.setUint32(0,s.get(),!0),e[t]=await vt(e.data.subarray(5)),e.valid=!r.bitFlag.languageEncodingFlag&&e.signature==Kt(a,0),e.valid&&(n[t]=e[t],n[t+"UTF8"]=!0)}function Ht(e,t,i){return void 0===t[i]?e.options[i]:t[i]}function Gt(e){const t=(4294901760&e)>>16,i=65535&e;try{return new Date(1980+((65024&t)>>9),((480&t)>>5)-1,31&t,(63488&i)>>11,(2016&i)>>5,2*(31&i),0)}catch(e){}}function qt(e){return new Date(Number(e/BigInt(1e4)-BigInt(116444736e5)))}function jt(e,t){return e.getUint8(t)}function Wt(e,t){return e.getUint16(t,!0)}function Kt(e,t){return e.getUint32(t,!0)}function Yt(e,t){return Number(e.getBigUint64(t,!0))}function Xt(e){return new DataView(e.buffer)}function Jt(e,t,i){return e.readUint8Array(t,i)}const Qt="File already exists",$t="Zip file comment exceeds 64KB",ei="File entry comment exceeds 64KB",ti="File entry name exceeds 64KB",ii="Version exceeds 65535",ni="The strength must equal 1, 2, or 3",ri="Extra field type exceeds 65535",oi="Extra field data exceeds 64KB",si="Zip64 is not supported",ai=new Uint8Array([7,0,2,0,65,69,3,0,0]);let ci=0;function ui(e,t,i){if(e.arrayBuffer)return t||i?e.slice(t,i).arrayBuffer():e.arrayBuffer();{const n=new FileReader;return new Promise(((r,o)=>{n.onload=e=>r(e.target.result),n.onerror=()=>o(n.error),n.readAsArrayBuffer(t||i?e.slice(t,i):e)}))}}function li(e){if(e)return(BigInt(e.getTime())+BigInt(116444736e5))*BigInt(1e4)}function hi(e,t,i){return void 0===t[i]?e.options[i]:t[i]}function di(e,t,i){e.setUint8(t,i)}function fi(e,t,i){e.setUint16(t,i,!0)}function pi(e,t,i){e.setUint32(t,i,!0)}function mi(e,t,i){e.setBigUint64(t,i,!0)}function _i(e,t,i){e.set(t,i)}function Zi(e){return new DataView(e.buffer)}k({Deflate:function(e){const t=new Z,i=(n=e&&e.chunkSize?e.chunkSize:65536)+5*(Math.floor(n/16383)+1);var n;const r=new Uint8Array(i);let o=e?e.level:-1;void 0===o&&(o=-1),t.deflateInit(o),t.next_out=r,this.append=function(e,n){let o,s,a=0,c=0,u=0;const l=[];if(e.length){t.next_in_index=0,t.next_in=e,t.avail_in=e.length;do{if(t.next_out_index=0,t.avail_out=i,o=t.deflate(0),0!=o)throw new Error("deflating: "+t.msg);t.next_out_index&&(t.next_out_index==i?l.push(new Uint8Array(r)):l.push(r.slice(0,t.next_out_index))),u+=t.next_out_index,n&&t.next_in_index>0&&t.next_in_index!=a&&(n(t.next_in_index),a=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return l.length>1?(s=new Uint8Array(u),l.forEach((function(e){s.set(e,c),c+=e.length}))):s=l[0]||new Uint8Array(0),s}},this.flush=function(){let e,n,o=0,s=0;const a=[];do{if(t.next_out_index=0,t.avail_out=i,e=t.deflate(4),1!=e&&0!=e)throw new Error("deflating: "+t.msg);i-t.avail_out>0&&a.push(r.slice(0,t.next_out_index)),s+=t.next_out_index}while(t.avail_in>0||0===t.avail_out);return t.deflateEnd(),n=new Uint8Array(s),a.forEach((function(e){n.set(e,o),o+=e.length})),n}},Inflate:function(e){const t=new M,i=e&&e.chunkSize?Math.floor(2*e.chunkSize):131072,n=new Uint8Array(i);let r=!1;t.inflateInit(),t.next_out=n,this.append=function(e,o){const s=[];let a,c,u=0,l=0,h=0;if(0!==e.length){t.next_in_index=0,t.next_in=e,t.avail_in=e.length;do{if(t.next_out_index=0,t.avail_out=i,0!==t.avail_in||r||(t.next_in_index=0,r=!0),a=t.inflate(0),r&&a===b){if(0!==t.avail_in)throw new Error("inflating: bad input")}else if(0!==a&&1!==a)throw new Error("inflating: "+t.msg);if((r||1===a)&&t.avail_in===e.length)throw new Error("inflating: bad input");t.next_out_index&&(t.next_out_index===i?s.push(new Uint8Array(n)):s.push(n.slice(0,t.next_out_index))),h+=t.next_out_index,o&&t.next_in_index>0&&t.next_in_index!=u&&(o(t.next_in_index),u=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return s.length>1?(c=new Uint8Array(h),s.forEach((function(e){c.set(e,l),l+=e.length}))):c=s[0]||new Uint8Array(0),c}},this.flush=function(){t.inflateEnd()}}});var gi=Object.freeze({__proto__:null,configure:k,getMimeType:function(){return"application/octet-stream"},ERR_ABORT:U,Reader:Y,Writer:X,TextReader:class extends Y{constructor(e){super(),this.blobReader=new J(new Blob([e],{type:j}))}async init(){super.init(),this.blobReader.init(),this.size=this.blobReader.size}async readUint8Array(e,t){return this.blobReader.readUint8Array(e,t)}},TextWriter:class extends X{constructor(e){super(),this.encoding=e,this.blob=new Blob([],{type:j})}async writeUint8Array(e){super.writeUint8Array(e),this.blob=new Blob([this.blob,e.buffer],{type:j})}getData(){if(this.blob.text)return this.blob.text();{const e=new FileReader;return new Promise(((t,i)=>{e.onload=e=>t(e.target.result),e.onerror=()=>i(e.error),e.readAsText(this.blob,this.encoding)}))}}},Data64URIReader:class extends Y{constructor(e){super(),this.dataURI=e;let t=e.length;for(;"="==e.charAt(t-1);)t--;this.dataStart=e.indexOf(",")+1,this.size=Math.floor(.75*(t-this.dataStart))}async readUint8Array(e,t){const i=new Uint8Array(t),n=4*Math.floor(e/3),r=atob(this.dataURI.substring(n+this.dataStart,4*Math.ceil((e+t)/3)+this.dataStart)),o=e-3*Math.floor(n/4);for(let e=o;e<o+t;e++)i[e-o]=r.charCodeAt(e);return i}},Data64URIWriter:class extends X{constructor(e){super(),this.data="data:"+(e||"")+";base64,",this.pending=[]}async writeUint8Array(e){super.writeUint8Array(e);let t=0,i=this.pending;const n=this.pending.length;for(this.pending="",t=0;t<3*Math.floor((n+e.length)/3)-n;t++)i+=String.fromCharCode(e[t]);for(;t<e.length;t++)this.pending+=String.fromCharCode(e[t]);i.length>2?this.data+=btoa(i):this.pending=i}getData(){return this.data+btoa(this.pending)}},BlobReader:J,BlobWriter:Q,Uint8ArrayReader:class extends Y{constructor(e){super(),this.array=e,this.size=e.length}async readUint8Array(e,t){return this.array.slice(e,e+t)}},Uint8ArrayWriter:class extends X{constructor(){super(),this.array=new Uint8Array(0)}async writeUint8Array(e){super.writeUint8Array(e);const t=this.array;this.array=new Uint8Array(t.length+e.length),this.array.set(t),this.array.set(e,t.length)}getData(){return this.array}},HttpReader:he,HttpRangeReader:class extends he{constructor(e,t={}){t.useRangeHeader=!0,super(e,t)}},ERR_HTTP_RANGE:q,ZipReader:class{constructor(e,t={}){Object.assign(this,{reader:e,options:t,config:F()})}async getEntries(e={}){const t=this,i=t.reader;if(i.initialized||await i.init(),i.size<22)throw new Error(Et);const n=await async function(e,t,i,n,r){const o=new Uint8Array(4);Xt(o).setUint32(0,101010256,!0);return await s(22)||await s(Math.min(1048582,i));async function s(t){const n=i-t,r=await Jt(e,n,t);for(let e=r.length-22;e>=0;e--)if(r[e]==o[0]&&r[e+1]==o[1]&&r[e+2]==o[2]&&r[e+3]==o[3])return{offset:n+e,buffer:r.slice(e,e+22).buffer}}}(i,0,i.size);if(!n)throw new Error(xt);const r=Xt(n);let o=Kt(r,12),s=Kt(r,16),a=Wt(r,8),c=0;if(s==de||o==de||a==fe){const e=Xt(await Jt(i,n.offset-20,20));if(Kt(e,0)!=ge)throw new Error(St);s=Yt(e,8);let t=await Jt(i,s,56),r=Xt(t);const u=n.offset-20-56;if(Kt(r,0)!=Ze&&s!=u){const e=s;s=u,c=s-e,t=await Jt(i,s,56),r=Xt(t)}if(Kt(r,0)!=Ze)throw new Error(Ot);a=Yt(r,32),o=Yt(r,40),s-=o}if(s<0||s>=i.size)throw new Error(Et);let u=0,l=await Jt(i,s,o),h=Xt(l);if(o){const e=n.offset-o;if(Kt(h,u)!=me&&s!=e){const t=s;s=e,c=s-t,l=await Jt(i,s,o),h=Xt(l)}}if(s<0||s>=i.size)throw new Error(Et);const d=[];for(let n=0;n<a;n++){const r=new kt(i,t.config,t.options);if(Kt(h,u)!=me)throw new Error(It);Ut(r,h,u+6);const o=Boolean(r.bitFlag.languageEncodingFlag),s=u+46,f=s+r.filenameLength,p=f+r.extraFieldLength,m=Wt(h,u+4),_=0==(0&m);Object.assign(r,{versionMadeBy:m,msDosCompatible:_,compressedSize:0,uncompressedSize:0,commentLength:Wt(h,u+32),directory:_&&16==(16&jt(h,u+38)),offset:Kt(h,u+42)+c,internalFileAttribute:Kt(h,u+34),externalFileAttribute:Kt(h,u+38),rawFilename:l.subarray(s,f),filenameUTF8:o,commentUTF8:o,rawExtraField:l.subarray(f,p)});const Z=p+r.commentLength;r.rawComment=l.subarray(p,Z);const g=Ht(t,e,"filenameEncoding"),y=Ht(t,e,"commentEncoding"),[b,A]=await Promise.all([vt(r.rawFilename,r.filenameUTF8?Lt:g||Nt),vt(r.rawComment,r.commentUTF8?Lt:y||Nt)]);r.filename=b,r.comment=A,!r.directory&&r.filename.endsWith(Ae)&&(r.directory=!0),await Vt(r,r,h,u+6);const w=new Ct(r);if(w.getData=(e,t)=>r.getData(e,w,t),d.push(w),u=Z,e.onprogress)try{e.onprogress(n+1,a,new Ct(r))}catch(e){}}return d}async close(){}},ERR_BAD_FORMAT:Et,ERR_EOCDR_NOT_FOUND:xt,ERR_EOCDR_ZIP64_NOT_FOUND:St,ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND:Ot,ERR_CENTRAL_DIRECTORY_NOT_FOUND:It,ERR_LOCAL_FILE_HEADER_NOT_FOUND:Dt,ERR_EXTRAFIELD_ZIP64_NOT_FOUND:Pt,ERR_ENCRYPTED:Rt,ERR_UNSUPPORTED_ENCRYPTION:Bt,ERR_UNSUPPORTED_COMPRESSION:Mt,ERR_INVALID_SIGNATURE:lt,ERR_INVALID_PASSWORD:Re,ZipWriter:class{constructor(e,t={}){Object.assign(this,{writer:e,options:t,config:F(),files:new Map,offset:e.size,pendingCompressedSize:0,pendingEntries:[]})}async add(e="",t,i={}){const n=this;if(!(ci<n.config.maxWorkers))return new Promise(((r,o)=>n.pendingEntries.push({name:e,reader:t,options:i,resolve:r,reject:o})));ci++;try{return await async function(e,t,i,n){if(t=t.trim(),n.directory&&!t.endsWith(Ae)?t+=Ae:n.directory=t.endsWith(Ae),e.files.has(t))throw new Error(Qt);const r=Ee(t);if(r.length>fe)throw new Error(ti);const o=n.comment||"",s=Ee(o);if(s.length>fe)throw new Error(ei);const a=e.options.version||n.version||0;if(a>fe)throw new Error(ii);const c=e.options.versionMadeBy||n.versionMadeBy||20;if(c>fe)throw new Error(ii);const u=hi(e,n,"lastModDate")||new Date,l=hi(e,n,"lastAccessDate"),h=hi(e,n,"creationDate"),d=hi(e,n,"password"),f=hi(e,n,"encryptionStrength")||3,p=hi(e,n,"zipCrypto");if(void 0!==d&&void 0!==f&&(f<1||f>3))throw new Error(ni);let m=new Uint8Array(0);const _=n.extraField;if(_){let e=0,t=0;_.forEach((t=>e+=4+t.length)),m=new Uint8Array(e),_.forEach(((e,i)=>{if(i>fe)throw new Error(ri);if(e.length>fe)throw new Error(oi);_i(m,new Uint16Array([i]),t),_i(m,new Uint16Array([e.length]),t+2),_i(m,e,t+4),t+=4+e.length}))}let Z=hi(e,n,"extendedTimestamp");void 0===Z&&(Z=!0);let g=0,y=hi(e,n,"keepOrder");void 0===y&&(y=!0);let b=0,A=hi(e,n,"msDosCompatible");void 0===A&&(A=!0);const w=hi(e,n,"internalFileAttribute")||0,v=hi(e,n,"externalFileAttribute")||0;i&&(i.initialized||await i.init(),b=i.size,g=function(e){return e+5*(Math.floor(e/16383)+1)}(b));let T=n.zip64||e.options.zip64||!1;if(e.offset+e.pendingCompressedSize>=de||b>=de||g>=de){if(!1===n.zip64||!1===e.options.zip64||!y)throw new Error(si);T=!0}e.pendingCompressedSize+=g,await Promise.resolve();const C=hi(e,n,"level"),E=hi(e,n,"useWebWorkers"),x=hi(e,n,"bufferedWrite");let S=hi(e,n,"dataDescriptor"),O=hi(e,n,"dataDescriptorSignature");const I=hi(e,n,"signal");void 0===S&&(S=!0),S&&void 0===O&&(O=!0);const D=await async function(e,t,i,n){const r=e.files,o=e.writer,s=Array.from(r.values()).pop();let a,c,u,l={};r.set(t,l);try{let h,d,f;if(n.keepOrder&&(h=s&&s.lock),l.lock=f=new Promise((e=>u=e)),n.bufferedWrite||e.lockWrite||!n.dataDescriptor?(d=new Q,d.init(),a=!0):(e.lockWrite=new Promise((e=>c=e)),o.initialized||await o.init(),d=o),l=await async function(e,t,i,n){const{rawFilename:r,lastAccessDate:o,creationDate:s,password:a,level:c,zip64:u,zipCrypto:l,dataDescriptor:h,dataDescriptorSignature:d,directory:f,version:p,versionMadeBy:m,rawComment:_,rawExtraField:Z,useWebWorkers:g,onprogress:y,signal:b,encryptionStrength:A,extendedTimestamp:w,msDosCompatible:v,internalFileAttribute:T,externalFileAttribute:C}=n,E=Boolean(a&&a.length),x=0!==c&&!f;let S,O,I;if(E&&!l){S=new Uint8Array(ai.length+2);const e=Zi(S);fi(e,0,39169),_i(S,ai,2),di(e,8,A)}else S=new Uint8Array(0);if(w){I=new Uint8Array(9+(o?4:0)+(s?4:0));const e=Zi(I);fi(e,0,ye),fi(e,2,I.length-4),di(e,4,1+(o?2:0)+(s?4:0)),pi(e,5,Math.floor(n.lastModDate.getTime()/1e3)),o&&pi(e,9,Math.floor(o.getTime()/1e3)),s&&pi(e,13,Math.floor(s.getTime()/1e3));try{O=new Uint8Array(36);const e=Zi(O),t=li(n.lastModDate);fi(e,0,10),fi(e,2,32),fi(e,8,1),fi(e,10,24),mi(e,12,t),mi(e,20,li(o)||t),mi(e,28,li(s)||t)}catch(e){O=new Uint8Array(0)}}else O=I=new Uint8Array(0);const D={version:p||20,versionMadeBy:m,zip64:u,directory:Boolean(f),filenameUTF8:!0,rawFilename:r,commentUTF8:!0,rawComment:_,rawExtraFieldZip64:u?new Uint8Array(28):new Uint8Array(0),rawExtraFieldExtendedTimestamp:I,rawExtraFieldNTFS:O,rawExtraFieldAES:S,rawExtraField:Z,extendedTimestamp:w,msDosCompatible:v,internalFileAttribute:T,externalFileAttribute:C};let P=D.uncompressedSize=0,R=be;h&&(R|=8);let B=0;x&&(B=8),u&&(D.version=D.version>45?D.version:45),E&&(R|=1,l||(D.version=D.version>51?D.version:51,B=99,x&&(D.rawExtraFieldAES[9]=8))),D.compressionMethod=B;const M=D.headerArray=new Uint8Array(26),L=Zi(M);fi(L,0,D.version),fi(L,2,R),fi(L,4,B);const N=new Uint32Array(1),F=Zi(N);let k;k=n.lastModDate<ve?ve:n.lastModDate>we?we:n.lastModDate,fi(F,0,(k.getHours()<<6|k.getMinutes())<<5|k.getSeconds()/2),fi(F,2,(k.getFullYear()-1980<<4|k.getMonth()+1)<<5|k.getDate());const U=N[0];pi(L,6,U),fi(L,22,r.length);const z=S.length+I.length+O.length+D.rawExtraField.length;fi(L,24,z);const H=new Uint8Array(30+r.length+z);let G;pi(Zi(H),0,pe),_i(H,M,4),_i(H,r,30),_i(H,S,30+r.length),_i(H,I,30+r.length+S.length),_i(H,O,30+r.length+S.length+I.length),_i(H,D.rawExtraField,30+r.length+S.length+I.length+O.length);let q=0;if(e){P=D.uncompressedSize=e.size;const n=await bt(i.Deflate,{codecType:ct,level:c,password:a,encryptionStrength:A,zipCrypto:E&&l,passwordVerification:E&&l&&U>>8&255,signed:!0,compressed:x,encrypted:E,useWebWorkers:g},i);await t.writeUint8Array(H),D.dataWritten=!0,G=await V(n,e,t,0,P,i,{onprogress:y,signal:b}),q=G.length}else await t.writeUint8Array(H),D.dataWritten=!0;let j,W=new Uint8Array(0),K=0;if(h&&(W=new Uint8Array(u?d?24:20:d?16:12),j=Zi(W),d&&(K=4,pi(j,0,134695760))),e){const e=G.signature;if(E&&!l||void 0===e||(pi(L,10,e),D.signature=e,h&&pi(j,K,e)),u){const e=Zi(D.rawExtraFieldZip64);fi(e,0,1),fi(e,2,24),pi(L,14,de),mi(e,12,BigInt(q)),pi(L,18,de),mi(e,4,BigInt(P)),h&&(mi(j,K+4,BigInt(q)),mi(j,K+12,BigInt(P)))}else pi(L,14,q),pi(L,18,P),h&&(pi(j,K+4,q),pi(j,K+8,P))}h&&await t.writeUint8Array(W);const Y=H.length+q+W.length;return Object.assign(D,{compressedSize:q,lastModDate:k,rawLastModDate:U,creationDate:s,lastAccessDate:o,encrypted:E,length:Y}),D}(i,d,e.config,n),l.lock=f,r.set(t,l),l.filename=t,a){let t=0;const i=d.getData();let s;await Promise.all([e.lockWrite,h]);do{s=Array.from(r.values()).find((e=>e.writingBufferedData)),s&&await s.lock}while(s&&s.lock);if(l.writingBufferedData=!0,!n.dataDescriptor){const e=26,r=await ui(i,0,e),s=new DataView(r);l.encrypted&&!n.zipCrypto||pi(s,14,l.signature),l.zip64?(pi(s,18,de),pi(s,22,de)):(pi(s,18,l.compressedSize),pi(s,22,l.uncompressedSize)),await o.writeUint8Array(new Uint8Array(r)),t=e}await async function(e,t,i=0){const n=536870912;await async function r(){if(i<t.size){const o=await ui(t,i,i+n);await e.writeUint8Array(new Uint8Array(o)),i+=n,await r()}}()}(o,i,t),delete l.writingBufferedData}if(l.offset=e.offset,l.zip64)mi(Zi(l.rawExtraFieldZip64),20,BigInt(l.offset));else if(l.offset>=de)throw new Error(si);return e.offset+=l.length,l}catch(i){throw(a&&l.writingBufferedData||!a&&l.dataWritten)&&(i.corruptedEntry=e.hasCorruptedEntries=!0,l.uncompressedSize&&(e.offset+=l.uncompressedSize)),r.delete(t),i}finally{u(),c&&c()}}(e,t,i,Object.assign({},n,{rawFilename:r,rawComment:s,version:a,versionMadeBy:c,lastModDate:u,lastAccessDate:l,creationDate:h,rawExtraField:m,zip64:T,password:d,level:C,useWebWorkers:E,encryptionStrength:f,extendedTimestamp:Z,zipCrypto:p,bufferedWrite:x,keepOrder:y,dataDescriptor:S,dataDescriptorSignature:O,signal:I,msDosCompatible:A,internalFileAttribute:w,externalFileAttribute:v}));return g&&(e.pendingCompressedSize-=g),Object.assign(D,{name:t,comment:o,extraField:_}),new Ct(D)}(n,e,t,i)}finally{ci--;const e=n.pendingEntries.shift();e&&n.add(e.name,e.reader,e.options).then(e.resolve).catch(e.reject)}}async close(e=new Uint8Array(0),t={}){return await async function(e,t,i){const n=e.writer,r=e.files;let o=0,s=0,a=e.offset,c=r.size;for(const[,e]of r)s+=46+e.rawFilename.length+e.rawComment.length+e.rawExtraFieldZip64.length+e.rawExtraFieldAES.length+e.rawExtraFieldExtendedTimestamp.length+e.rawExtraFieldNTFS.length+e.rawExtraField.length;let u=i.zip64||e.options.zip64||!1;if(a>=de||s>=de||c>=fe){if(!1===i.zip64||!1===e.options.zip64)throw new Error(si);u=!0}const l=new Uint8Array(s+(u?98:22)),h=Zi(l);if(t&&t.length){if(!(t.length<=fe))throw new Error($t);fi(h,o+20,t.length)}for(const[e,t]of Array.from(r.values()).entries()){const{rawFilename:n,rawExtraFieldZip64:s,rawExtraFieldAES:a,rawExtraField:c,rawComment:u,versionMadeBy:d,headerArray:f,directory:p,zip64:m,msDosCompatible:_,internalFileAttribute:Z,externalFileAttribute:g}=t;let y,b;if(t.extendedTimestamp){b=t.rawExtraFieldNTFS,y=new Uint8Array(9);const e=Zi(y);fi(e,0,ye),fi(e,2,y.length-4),di(e,4,1),pi(e,5,Math.floor(t.lastModDate.getTime()/1e3))}else b=y=new Uint8Array(0);const A=s.length+a.length+y.length+b.length+c.length;if(pi(h,o,me),fi(h,o+4,d),_i(l,f,o+6),fi(h,o+30,A),fi(h,o+32,u.length),pi(h,o+34,Z),g?pi(h,o+38,g):p&&_&&di(h,o+38,16),pi(h,o+42,m?de:t.offset),_i(l,n,o+46),_i(l,s,o+46+n.length),_i(l,a,o+46+n.length+s.length),_i(l,y,o+46+n.length+s.length+a.length),_i(l,b,o+46+n.length+s.length+a.length+y.length),_i(l,c,o+46+n.length+s.length+a.length+y.length+b.length),_i(l,u,o+46+n.length+A),o+=46+n.length+A+u.length,i.onprogress)try{i.onprogress(e+1,r.size,new Ct(t))}catch(e){}}u&&(pi(h,o,Ze),mi(h,o+4,BigInt(44)),fi(h,o+12,45),fi(h,o+14,45),mi(h,o+24,BigInt(c)),mi(h,o+32,BigInt(c)),mi(h,o+40,BigInt(s)),mi(h,o+48,BigInt(a)),pi(h,o+56,ge),mi(h,o+64,BigInt(a)+BigInt(s)),pi(h,o+72,1),c=fe,a=de,s=de,o+=76),pi(h,o,_e),fi(h,o+8,c),fi(h,o+10,c),pi(h,o+12,s),pi(h,o+16,a),await n.writeUint8Array(l),t&&t.length&&await n.writeUint8Array(t)}(this,e,t),this.writer.getData()}},ERR_DUPLICATED_NAME:Qt,ERR_INVALID_COMMENT:$t,ERR_INVALID_ENTRY_NAME:ti,ERR_INVALID_ENTRY_COMMENT:ei,ERR_INVALID_VERSION:ii,ERR_INVALID_EXTRAFIELD_TYPE:ri,ERR_INVALID_EXTRAFIELD_DATA:oi,ERR_INVALID_ENCRYPTION_STRENGTH:ni,ERR_UNSUPPORTED_FORMAT:si})},841650:(e,t,i)=>{"use strict";i.d(t,{Z:()=>O});var n=i(545125),r=i(426468),o=i(54879),s=i(446938),a=i(78320),c=i(264280);const u="http://www.w3.org/2000/svg",l="http://www.w3.org/1999/xlink";let h;const d=n.Z.fromCssColorString("rgba(247,250,255,0.384)"),f=n.Z.fromCssColorString("rgba(143,191,255,0.216)"),p=n.Z.fromCssColorString("rgba(153,197,255,0.098)"),m=n.Z.fromCssColorString("rgba(255,255,255,0.086)"),_=n.Z.fromCssColorString("rgba(255,255,255,0.267)"),Z=n.Z.fromCssColorString("rgba(255,255,255,0)"),g=n.Z.fromCssColorString("rgba(66,67,68,0.3)"),y=n.Z.fromCssColorString("rgba(0,0,0,0.5)");function b(e){return n.Z.fromCssColorString(window.getComputedStyle(e).getPropertyValue("color"))}const A={animation_pathReset:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M24.316,5.318,9.833,13.682,9.833,5.5,5.5,5.5,5.5,25.5,9.833,25.5,9.833,17.318,24.316,25.682z"},animation_pathPause:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M13,5.5,7.5,5.5,7.5,25.5,13,25.5zM24.5,5.5,19,5.5,19,25.5,24.5,25.5z"},animation_pathPlay:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M6.684,25.682L24.316,15.5L6.684,5.318V25.682z"},animation_pathPlayReverse:{tagName:"path",transform:"translate(16,16) scale(-0.85,0.85) translate(-16,-16)",d:"M6.684,25.682L24.316,15.5L6.684,5.318V25.682z"},animation_pathLoop:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M24.249,15.499c-0.009,4.832-3.918,8.741-8.75,8.75c-2.515,0-4.768-1.064-6.365-2.763l2.068-1.442l-7.901-3.703l0.744,8.694l2.193-1.529c2.244,2.594,5.562,4.242,9.26,4.242c6.767,0,12.249-5.482,12.249-12.249H24.249zM15.499,6.75c2.516,0,4.769,1.065,6.367,2.764l-2.068,1.443l7.901,3.701l-0.746-8.693l-2.192,1.529c-2.245-2.594-5.562-4.245-9.262-4.245C8.734,3.25,3.25,8.734,3.249,15.499H6.75C6.758,10.668,10.668,6.758,15.499,6.75z"},animation_pathClock:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-15.5)",d:"M15.5,2.374C8.251,2.375,2.376,8.251,2.374,15.5C2.376,22.748,8.251,28.623,15.5,28.627c7.249-0.004,13.124-5.879,13.125-13.127C28.624,8.251,22.749,2.375,15.5,2.374zM15.5,25.623C9.909,25.615,5.385,21.09,5.375,15.5C5.385,9.909,9.909,5.384,15.5,5.374c5.59,0.01,10.115,4.535,10.124,10.125C25.615,21.09,21.091,25.615,15.5,25.623zM8.625,15.5c-0.001-0.552-0.448-0.999-1.001-1c-0.553,0-1,0.448-1,1c0,0.553,0.449,1,1,1C8.176,16.5,8.624,16.053,8.625,15.5zM8.179,18.572c-0.478,0.277-0.642,0.889-0.365,1.367c0.275,0.479,0.889,0.641,1.365,0.365c0.479-0.275,0.643-0.887,0.367-1.367C9.27,18.461,8.658,18.297,8.179,18.572zM9.18,10.696c-0.479-0.276-1.09-0.112-1.366,0.366s-0.111,1.09,0.365,1.366c0.479,0.276,1.09,0.113,1.367-0.366C9.821,11.584,9.657,10.973,9.18,10.696zM22.822,12.428c0.478-0.275,0.643-0.888,0.366-1.366c-0.275-0.478-0.89-0.642-1.366-0.366c-0.479,0.278-0.642,0.89-0.366,1.367C21.732,12.54,22.344,12.705,22.822,12.428zM12.062,21.455c-0.478-0.275-1.089-0.111-1.366,0.367c-0.275,0.479-0.111,1.09,0.366,1.365c0.478,0.277,1.091,0.111,1.365-0.365C12.704,22.344,12.54,21.732,12.062,21.455zM12.062,9.545c0.479-0.276,0.642-0.888,0.366-1.366c-0.276-0.478-0.888-0.642-1.366-0.366s-0.642,0.888-0.366,1.366C10.973,9.658,11.584,9.822,12.062,9.545zM22.823,18.572c-0.48-0.275-1.092-0.111-1.367,0.365c-0.275,0.479-0.112,1.092,0.367,1.367c0.477,0.275,1.089,0.113,1.365-0.365C23.464,19.461,23.3,18.848,22.823,18.572zM19.938,7.813c-0.477-0.276-1.091-0.111-1.365,0.366c-0.275,0.48-0.111,1.091,0.366,1.367s1.089,0.112,1.366-0.366C20.581,8.702,20.418,8.089,19.938,7.813zM23.378,14.5c-0.554,0.002-1.001,0.45-1.001,1c0.001,0.552,0.448,1,1.001,1c0.551,0,1-0.447,1-1C24.378,14.949,23.929,14.5,23.378,14.5zM15.501,6.624c-0.552,0-1,0.448-1,1l-0.466,7.343l-3.004,1.96c-0.478,0.277-0.642,0.889-0.365,1.365c0.275,0.479,0.889,0.643,1.365,0.367l3.305-1.676C15.39,16.99,15.444,17,15.501,17c0.828,0,1.5-0.671,1.5-1.5l-0.5-7.876C16.501,7.072,16.053,6.624,15.501,6.624zM15.501,22.377c-0.552,0-1,0.447-1,1s0.448,1,1,1s1-0.447,1-1S16.053,22.377,15.501,22.377zM18.939,21.455c-0.479,0.277-0.643,0.889-0.366,1.367c0.275,0.477,0.888,0.643,1.366,0.365c0.478-0.275,0.642-0.889,0.366-1.365C20.028,21.344,19.417,21.18,18.939,21.455z"},animation_pathWingButton:{tagName:"path",d:"m 4.5,0.5 c -2.216,0 -4,1.784 -4,4 l 0,24 c 0,2.216 1.784,4 4,4 l 13.71875,0 C 22.478584,27.272785 27.273681,22.511272 32.5,18.25 l 0,-13.75 c 0,-2.216 -1.784,-4 -4,-4 l -24,0 z"},animation_pathPointer:{tagName:"path",d:"M-15,-65,-15,-55,15,-55,15,-65,0,-95z"},animation_pathSwooshFX:{tagName:"path",d:"m 85,0 c 0,16.617 -4.813944,35.356 -13.131081,48.4508 h 6.099803 c 8.317138,-13.0948 13.13322,-28.5955 13.13322,-45.2124 0,-46.94483 -38.402714,-85.00262 -85.7743869,-85.00262 -1.0218522,0 -2.0373001,0.0241 -3.0506131,0.0589 45.958443,1.59437 82.723058,35.77285 82.723058,81.70532 z"}};function w(e){const t=document.createElementNS(u,e.tagName);for(const i in e)if(e.hasOwnProperty(i)&&"tagName"!==i)if("children"===i){const i=e.children.length;for(let n=0;n<i;++n)t.appendChild(w(e.children[n]))}else 0===i.indexOf("xlink:")?t.setAttributeNS(l,i.substring(6),e[i]):"textContent"===i?t.textContent=e[i]:t.setAttribute(i,e[i]);return t}function v(e,t,i){const n=document.createElementNS(u,"text");n.setAttribute("x",e),n.setAttribute("y",t),n.setAttribute("class","cesium-animation-svgText");const r=document.createElementNS(u,"tspan");return r.textContent=i,n.appendChild(r),n}const T=new n.Z;function C(e,t){const i=t.alpha,n=1-i;return T.red=e.red*n+t.red*i,T.green=e.green*n+t.green*i,T.blue=e.blue*n+t.blue*i,T.toCssColorString()}function E(e,t,i){const n=A[i];return w({tagName:"g",class:"cesium-animation-rectButton",transform:"translate("+e+","+t+")",children:[{tagName:"rect",class:"cesium-animation-buttonGlow",width:32,height:32,rx:2,ry:2},{tagName:"rect",class:"cesium-animation-buttonMain",width:32,height:32,rx:4,ry:4},{class:"cesium-animation-buttonPath",id:i,tagName:n.tagName,transform:n.transform,d:n.d},{tagName:"title",textContent:""}]})}function x(e,t){this._viewModel=t,this.svgElement=e,this._enabled=void 0,this._toggled=void 0;const i=this;this._clickFunction=function(){const e=i._viewModel.command;e.canExecute&&e()},e.addEventListener("click",this._clickFunction,!0),this._subscriptions=[(0,c.Z)(t,"toggled",this.setToggled,this),(0,c.Z)(t,"tooltip",this.setTooltip,this),(0,c.Z)(t.command,"canExecute",this.setEnabled,this)]}function S(e,t){if(!(0,r.Z)(e))throw new s.Z("container is required.");if(!(0,r.Z)(t))throw new s.Z("viewModel is required.");e=(0,a.Z)(e),this._viewModel=t,this._container=e,this._centerX=0,this._centerY=0,this._defsElement=void 0,this._svgNode=void 0,this._topG=void 0,this._lastHeight=void 0,this._lastWidth=void 0;const i=e.ownerDocument,n=document.createElement("style");n.textContent=".cesium-animation-rectButton .cesium-animation-buttonGlow { filter: url(#animation_blurred); }.cesium-animation-rectButton .cesium-animation-buttonMain { fill: url(#animation_buttonNormal); }.cesium-animation-buttonToggled .cesium-animation-buttonMain { fill: url(#animation_buttonToggled); }.cesium-animation-rectButton:hover .cesium-animation-buttonMain { fill: url(#animation_buttonHovered); }.cesium-animation-buttonDisabled .cesium-animation-buttonMain { fill: url(#animation_buttonDisabled); }.cesium-animation-shuttleRingG .cesium-animation-shuttleRingSwoosh { fill: url(#animation_shuttleRingSwooshGradient); }.cesium-animation-shuttleRingG:hover .cesium-animation-shuttleRingSwoosh { fill: url(#animation_shuttleRingSwooshHovered); }.cesium-animation-shuttleRingPointer { fill: url(#animation_shuttleRingPointerGradient); }.cesium-animation-shuttleRingPausePointer { fill: url(#animation_shuttleRingPointerPaused); }.cesium-animation-knobOuter { fill: url(#animation_knobOuter); }.cesium-animation-knobInner { fill: url(#animation_knobInner); }",i.head.insertBefore(n,i.head.childNodes[0]);const o=document.createElement("div");o.className="cesium-animation-theme",o.innerHTML='<div class="cesium-animation-themeNormal"></div><div class="cesium-animation-themeHover"></div><div class="cesium-animation-themeSelect"></div><div class="cesium-animation-themeDisabled"></div><div class="cesium-animation-themeKnob"></div><div class="cesium-animation-themePointer"></div><div class="cesium-animation-themeSwoosh"></div><div class="cesium-animation-themeSwooshHover"></div>',this._theme=o,this._themeNormal=o.childNodes[0],this._themeHover=o.childNodes[1],this._themeSelect=o.childNodes[2],this._themeDisabled=o.childNodes[3],this._themeKnob=o.childNodes[4],this._themePointer=o.childNodes[5],this._themeSwoosh=o.childNodes[6],this._themeSwooshHover=o.childNodes[7];const d=document.createElementNS(u,"svg:svg");this._svgNode=d,d.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",l);const f=document.createElementNS(u,"g");this._topG=f,this._realtimeSVG=new x(function(e,t,i){const n=A[i],r=A.animation_pathWingButton;return w({tagName:"g",class:"cesium-animation-rectButton",transform:"translate(3,4)",children:[{class:"cesium-animation-buttonGlow",id:"animation_pathWingButton",tagName:r.tagName,d:r.d},{class:"cesium-animation-buttonMain",id:"animation_pathWingButton",tagName:r.tagName,d:r.d},{class:"cesium-animation-buttonPath",id:i,tagName:n.tagName,transform:n.transform,d:n.d},{tagName:"title",textContent:""}]})}(0,0,"animation_pathClock"),t.playRealtimeViewModel),this._playReverseSVG=new x(E(44,99,"animation_pathPlayReverse"),t.playReverseViewModel),this._playForwardSVG=new x(E(124,99,"animation_pathPlay"),t.playForwardViewModel),this._pauseSVG=new x(E(84,99,"animation_pathPause"),t.pauseViewModel);const p=document.createElementNS(u,"g");p.appendChild(this._realtimeSVG.svgElement),p.appendChild(this._playReverseSVG.svgElement),p.appendChild(this._playForwardSVG.svgElement),p.appendChild(this._pauseSVG.svgElement);const m=w({tagName:"circle",class:"cesium-animation-shuttleRingBack",cx:100,cy:100,r:99});this._shuttleRingBackPanel=m;const _=A.animation_pathSwooshFX,Z=A.animation_pathPointer,g=w({tagName:"g",class:"cesium-animation-shuttleRingSwoosh",children:[{tagName:_.tagName,transform:"translate(100,97) scale(-1,1)",id:"animation_pathSwooshFX",d:_.d},{tagName:_.tagName,transform:"translate(100,97)",id:"animation_pathSwooshFX",d:_.d},{tagName:"line",x1:100,y1:8,x2:100,y2:22}]});this._shuttleRingSwooshG=g,this._shuttleRingPointer=w({class:"cesium-animation-shuttleRingPointer",id:"animation_pathPointer",tagName:Z.tagName,d:Z.d});const y=w({tagName:"g",transform:"translate(100,100)"});this._knobOuter=w({tagName:"circle",class:"cesium-animation-knobOuter",cx:0,cy:0,r:71});const b=w({tagName:"circle",class:"cesium-animation-knobInner",cx:0,cy:0,r:61});this._knobDate=v(0,-24,""),this._knobTime=v(0,-7,""),this._knobStatus=v(0,-41,"");const T=w({tagName:"circle",class:"cesium-animation-blank",cx:0,cy:0,r:61}),C=document.createElementNS(u,"g");C.setAttribute("class","cesium-animation-shuttleRingG"),e.appendChild(o),f.appendChild(C),f.appendChild(y),f.appendChild(p),C.appendChild(m),C.appendChild(g),C.appendChild(this._shuttleRingPointer),y.appendChild(this._knobOuter),y.appendChild(b),y.appendChild(this._knobDate),y.appendChild(this._knobTime),y.appendChild(this._knobStatus),y.appendChild(T),d.appendChild(f),e.appendChild(d);const S=this;function O(e){!function(e,t){const i=e._viewModel,n=i.shuttleRingDragging;if(!n||h===e)if("mousedown"===t.type||n&&"mousemove"===t.type||"touchstart"===t.type&&1===t.touches.length||n&&"touchmove"===t.type&&1===t.touches.length){const r=e._centerX,o=e._centerY,s=e._svgNode.getBoundingClientRect();let a,c;if("touchstart"===t.type||"touchmove"===t.type?(a=t.touches[0].clientX,c=t.touches[0].clientY):(a=t.clientX,c=t.clientY),!n&&(a>s.right||a<s.left||c<s.top||c>s.bottom))return;const u=e._shuttleRingPointer.getBoundingClientRect(),l=a-r-s.left,d=c-o-s.top;let f=180*Math.atan2(d,l)/Math.PI+90;f>180&&(f-=360);const p=i.shuttleRingAngle;n||a<u.right&&a>u.left&&c>u.top&&c<u.bottom?(h=e,i.shuttleRingDragging=!0,i.shuttleRingAngle=f):f<p?i.slower():f>p&&i.faster(),t.preventDefault()}else e===h&&(h=void 0),i.shuttleRingDragging=!1}(S,e)}this._mouseCallback=O,m.addEventListener("mousedown",O,!0),m.addEventListener("touchstart",O,!0),g.addEventListener("mousedown",O,!0),g.addEventListener("touchstart",O,!0),i.addEventListener("mousemove",O,!0),i.addEventListener("touchmove",O,!0),i.addEventListener("mouseup",O,!0),i.addEventListener("touchend",O,!0),i.addEventListener("touchcancel",O,!0),this._shuttleRingPointer.addEventListener("mousedown",O,!0),this._shuttleRingPointer.addEventListener("touchstart",O,!0),this._knobOuter.addEventListener("mousedown",O,!0),this._knobOuter.addEventListener("touchstart",O,!0);const I=this._knobTime.childNodes[0],D=this._knobDate.childNodes[0],P=this._knobStatus.childNodes[0];let R;this._subscriptions=[(0,c.Z)(t.pauseViewModel,"toggled",(function(e){R!==e&&(R=e,R?S._shuttleRingPointer.setAttribute("class","cesium-animation-shuttleRingPausePointer"):S._shuttleRingPointer.setAttribute("class","cesium-animation-shuttleRingPointer"))})),(0,c.Z)(t,"shuttleRingAngle",(function(e){var t,i,n;t=S._shuttleRingPointer,i=S._knobOuter,n=e,t.setAttribute("transform","translate(100,100) rotate("+n+")"),i.setAttribute("transform","rotate("+n+")")})),(0,c.Z)(t,"dateLabel",(function(e){D.textContent!==e&&(D.textContent=e)})),(0,c.Z)(t,"timeLabel",(function(e){I.textContent!==e&&(I.textContent=e)})),(0,c.Z)(t,"multiplierLabel",(function(e){P.textContent!==e&&(P.textContent=e)}))],this.applyThemeChanges(),this.resize()}x.prototype.destroy=function(){this.svgElement.removeEventListener("click",this._clickFunction,!0);const e=this._subscriptions;for(let t=0,i=e.length;t<i;t++)e[t].dispose();(0,o.Z)(this)},x.prototype.isDestroyed=function(){return!1},x.prototype.setEnabled=function(e){if(this._enabled!==e){if(this._enabled=e,!e)return void this.svgElement.setAttribute("class","cesium-animation-buttonDisabled");if(this._toggled)return void this.svgElement.setAttribute("class","cesium-animation-rectButton cesium-animation-buttonToggled");this.svgElement.setAttribute("class","cesium-animation-rectButton")}},x.prototype.setToggled=function(e){this._toggled!==e&&(this._toggled=e,this._enabled&&(e?this.svgElement.setAttribute("class","cesium-animation-rectButton cesium-animation-buttonToggled"):this.svgElement.setAttribute("class","cesium-animation-rectButton")))},x.prototype.setTooltip=function(e){this.svgElement.getElementsByTagName("title")[0].textContent=e},Object.defineProperties(S.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),S.prototype.isDestroyed=function(){return!1},S.prototype.destroy=function(){(0,r.Z)(this._observer)&&(this._observer.disconnect(),this._observer=void 0);const e=this._container.ownerDocument,t=this._mouseCallback;this._shuttleRingBackPanel.removeEventListener("mousedown",t,!0),this._shuttleRingBackPanel.removeEventListener("touchstart",t,!0),this._shuttleRingSwooshG.removeEventListener("mousedown",t,!0),this._shuttleRingSwooshG.removeEventListener("touchstart",t,!0),e.removeEventListener("mousemove",t,!0),e.removeEventListener("touchmove",t,!0),e.removeEventListener("mouseup",t,!0),e.removeEventListener("touchend",t,!0),e.removeEventListener("touchcancel",t,!0),this._shuttleRingPointer.removeEventListener("mousedown",t,!0),this._shuttleRingPointer.removeEventListener("touchstart",t,!0),this._knobOuter.removeEventListener("mousedown",t,!0),this._knobOuter.removeEventListener("touchstart",t,!0),this._container.removeChild(this._svgNode),this._container.removeChild(this._theme),this._realtimeSVG.destroy(),this._playReverseSVG.destroy(),this._playForwardSVG.destroy(),this._pauseSVG.destroy();const i=this._subscriptions;for(let e=0,t=i.length;e<t;e++)i[e].dispose();return(0,o.Z)(this)},S.prototype.resize=function(){const e=this._container.clientWidth,t=this._container.clientHeight;if(e===this._lastWidth&&t===this._lastHeight)return;const i=this._svgNode,n=200,r=132;let o=e,s=t;0===e&&0===t?(o=n,s=r):0===e?(s=t,o=n*(t/r)):0===t&&(o=e,s=r*(e/n));const a=o/n,c=s/r;i.style.cssText="width: "+o+"px; height: "+s+"px; position: absolute; bottom: 0; left: 0; overflow: hidden;",i.setAttribute("width",o),i.setAttribute("height",s),i.setAttribute("viewBox","0 0 "+o+" "+s),this._topG.setAttribute("transform","scale("+a+","+c+")"),this._centerX=Math.max(1,100*a),this._centerY=Math.max(1,100*c),this._lastHeight=e,this._lastWidth=t},S.prototype.applyThemeChanges=function(){const e=this._container.ownerDocument;if(!e.body.contains(this._container)){if((0,r.Z)(this._observer))return;const t=this;return t._observer=new MutationObserver((function(){e.body.contains(t._container)&&(t._observer.disconnect(),t._observer=void 0,t.applyThemeChanges())})),void t._observer.observe(e,{childList:!0,subtree:!0})}const t=b(this._themeNormal),i=b(this._themeHover),n=b(this._themeSelect),o=b(this._themeDisabled),s=b(this._themeKnob),a=b(this._themePointer),c=b(this._themeSwoosh),u=b(this._themeSwooshHover),l=w({tagName:"defs",children:[{id:"animation_buttonNormal",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":C(t,d)},{tagName:"stop",offset:"12%","stop-color":C(t,f)},{tagName:"stop",offset:"46%","stop-color":C(t,p)},{tagName:"stop",offset:"81%","stop-color":C(t,m)}]},{id:"animation_buttonHovered",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":C(i,d)},{tagName:"stop",offset:"12%","stop-color":C(i,f)},{tagName:"stop",offset:"46%","stop-color":C(i,p)},{tagName:"stop",offset:"81%","stop-color":C(i,m)}]},{id:"animation_buttonToggled",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":C(n,d)},{tagName:"stop",offset:"12%","stop-color":C(n,f)},{tagName:"stop",offset:"46%","stop-color":C(n,p)},{tagName:"stop",offset:"81%","stop-color":C(n,m)}]},{id:"animation_buttonDisabled",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":C(o,_)},{tagName:"stop",offset:"75%","stop-color":C(o,Z)}]},{id:"animation_blurred",tagName:"filter",width:"200%",height:"200%",x:"-50%",y:"-50%",children:[{tagName:"feGaussianBlur",stdDeviation:4,in:"SourceGraphic"}]},{id:"animation_shuttleRingSwooshGradient",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-opacity":.2,"stop-color":c.toCssColorString()},{tagName:"stop",offset:"85%","stop-opacity":.85,"stop-color":c.toCssColorString()},{tagName:"stop",offset:"95%","stop-opacity":.05,"stop-color":c.toCssColorString()}]},{id:"animation_shuttleRingSwooshHovered",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-opacity":.2,"stop-color":u.toCssColorString()},{tagName:"stop",offset:"85%","stop-opacity":.85,"stop-color":u.toCssColorString()},{tagName:"stop",offset:"95%","stop-opacity":.05,"stop-color":u.toCssColorString()}]},{id:"animation_shuttleRingPointerGradient",tagName:"linearGradient",x1:"0%",y1:"50%",x2:"100%",y2:"50%",children:[{tagName:"stop",offset:"0%","stop-color":a.toCssColorString()},{tagName:"stop",offset:"40%","stop-color":a.toCssColorString()},{tagName:"stop",offset:"60%","stop-color":C(a,y)},{tagName:"stop",offset:"100%","stop-color":C(a,y)}]},{id:"animation_shuttleRingPointerPaused",tagName:"linearGradient",x1:"0%",y1:"50%",x2:"100%",y2:"50%",children:[{tagName:"stop",offset:"0%","stop-color":"#CCC"},{tagName:"stop",offset:"40%","stop-color":"#CCC"},{tagName:"stop",offset:"60%","stop-color":"#555"},{tagName:"stop",offset:"100%","stop-color":"#555"}]},{id:"animation_knobOuter",tagName:"linearGradient",x1:"20%",y1:"0%",x2:"90%",y2:"100%",children:[{tagName:"stop",offset:"5%","stop-color":C(s,d)},{tagName:"stop",offset:"60%","stop-color":C(s,g)},{tagName:"stop",offset:"85%","stop-color":C(s,f)}]},{id:"animation_knobInner",tagName:"linearGradient",x1:"20%",y1:"0%",x2:"90%",y2:"100%",children:[{tagName:"stop",offset:"5%","stop-color":C(s,g)},{tagName:"stop",offset:"60%","stop-color":C(s,d)},{tagName:"stop",offset:"85%","stop-color":C(s,m)}]}]});(0,r.Z)(this._defsElement)?this._svgNode.replaceChild(l,this._defsElement):this._svgNode.appendChild(l),this._defsElement=l};const O=S},695453:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Z});var n=i(693465),r=i(449745),o=i(27210),s=i(426468),a=i(446938),c=i(40080),u=i(412096),l=i(264890),h=i(494741);const d=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],f=15;function p(e,t){return e-t}function m(e,t){const i=(0,n.Z)(t,e,p);return i<0?~i:i}function _(e){if(!(0,s.Z)(e))throw new a.Z("clockViewModel is required.");const t=this;this._clockViewModel=e,this._allShuttleRingTicks=[],this._dateFormatter=_.defaultDateFormatter,this._timeFormatter=_.defaultTimeFormatter,this.shuttleRingDragging=!1,this.snapToTicks=!1,u.Z.track(this,["_allShuttleRingTicks","_dateFormatter","_timeFormatter","shuttleRingDragging","snapToTicks"]),this._sortedFilteredPositiveTicks=[],this.setShuttleRingTicks(_.defaultTicks),this.timeLabel=void 0,u.Z.defineProperty(this,"timeLabel",(function(){return t._timeFormatter(t._clockViewModel.currentTime,t)})),this.dateLabel=void 0,u.Z.defineProperty(this,"dateLabel",(function(){return t._dateFormatter(t._clockViewModel.currentTime,t)})),this.multiplierLabel=void 0,u.Z.defineProperty(this,"multiplierLabel",(function(){const e=t._clockViewModel;if(e.clockStep===o.Z.SYSTEM_CLOCK)return"Today";const i=e.multiplier;return i%1==0?i.toFixed(0)+"x":i.toFixed(3).replace(/0{0,3}$/,"")+"x"})),this.shuttleRingAngle=void 0,u.Z.defineProperty(this,"shuttleRingAngle",{get:function(){return function(e,t,i){if(i.clockStep===o.Z.SYSTEM_CLOCK)return f;if(Math.abs(e)<=1)return e*f;const n=t[t.length-1];let r,s;return e>n?e=n:e<-n&&(e=-n),e>0?(r=Math.log(n),s=(r-0)/90,(Math.log(e)-0)/s+15):(r=Math.log(-t[0]),s=(r-0)/90,-((Math.log(Math.abs(e))-0)/s+15))}(e.multiplier,t._allShuttleRingTicks,e)},set:function(e){e=Math.max(Math.min(e,105),-105);const i=t._allShuttleRingTicks,n=t._clockViewModel;if(n.clockStep=o.Z.SYSTEM_CLOCK_MULTIPLIER,105===Math.abs(e))return void(n.multiplier=e>0?i[i.length-1]:i[0]);let r=function(e,t){if(Math.abs(e)<=f)return e/f;let i,n;return e>0?(i=Math.log(t[t.length-1]),n=(i-0)/90,Math.exp(0+n*(e-15))):(i=Math.log(-t[0]),n=(i-0)/90,-Math.exp(0+n*(Math.abs(e)-15)))}(e,i);if(t.snapToTicks)r=i[m(r,i)];else if(0!==r){const e=Math.abs(r);if(e>100){const t=e.toFixed(0).length-2,i=Math.pow(10,t);r=Math.round(r/i)*i|0}else e>f?r=Math.round(r):e>1?r=+r.toFixed(1):e>0&&(r=+r.toFixed(2))}n.multiplier=r}}),this._canAnimate=void 0,u.Z.defineProperty(this,"_canAnimate",(function(){const e=t._clockViewModel,i=e.clockRange;if(t.shuttleRingDragging||i===r.Z.UNBOUNDED)return!0;const n=e.multiplier,o=e.currentTime,s=e.startTime;let a=!1;if(i===r.Z.LOOP_STOP)a=c.Z.greaterThan(o,s)||o.equals(s)&&n>0;else{const t=e.stopTime;a=c.Z.greaterThan(o,s)&&c.Z.lessThan(o,t)||o.equals(s)&&n>0||o.equals(t)&&n<0}return a||(e.shouldAnimate=!1),a})),this._isSystemTimeAvailable=void 0,u.Z.defineProperty(this,"_isSystemTimeAvailable",(function(){const e=t._clockViewModel;if(e.clockRange===r.Z.UNBOUNDED)return!0;const i=e.systemTime;return c.Z.greaterThanOrEquals(i,e.startTime)&&c.Z.lessThanOrEquals(i,e.stopTime)})),this._isAnimating=void 0,u.Z.defineProperty(this,"_isAnimating",(function(){return t._clockViewModel.shouldAnimate&&(t._canAnimate||t.shuttleRingDragging)}));const i=(0,l.Z)((function(){const e=t._clockViewModel;e.shouldAnimate?e.shouldAnimate=!1:t._canAnimate&&(e.shouldAnimate=!0)}));this._pauseViewModel=new h.Z(i,{toggled:u.Z.computed((function(){return!t._isAnimating})),tooltip:"Pause"});const n=(0,l.Z)((function(){const e=t._clockViewModel,i=e.multiplier;i>0&&(e.multiplier=-i),e.shouldAnimate=!0}));this._playReverseViewModel=new h.Z(n,{toggled:u.Z.computed((function(){return t._isAnimating&&e.multiplier<0})),tooltip:"Play Reverse"});const d=(0,l.Z)((function(){const e=t._clockViewModel,i=e.multiplier;i<0&&(e.multiplier=-i),e.shouldAnimate=!0}));this._playForwardViewModel=new h.Z(d,{toggled:u.Z.computed((function(){return t._isAnimating&&e.multiplier>0&&e.clockStep!==o.Z.SYSTEM_CLOCK})),tooltip:"Play Forward"});const p=(0,l.Z)((function(){t._clockViewModel.clockStep=o.Z.SYSTEM_CLOCK}),u.Z.getObservable(this,"_isSystemTimeAvailable"));this._playRealtimeViewModel=new h.Z(p,{toggled:u.Z.computed((function(){return e.clockStep===o.Z.SYSTEM_CLOCK})),tooltip:u.Z.computed((function(){return t._isSystemTimeAvailable?"Today (real-time)":"Current time not in range"}))}),this._slower=(0,l.Z)((function(){const e=t._clockViewModel,i=t._allShuttleRingTicks,n=m(e.multiplier,i)-1;n>=0&&(e.multiplier=i[n])})),this._faster=(0,l.Z)((function(){const e=t._clockViewModel,i=t._allShuttleRingTicks,n=m(e.multiplier,i)+1;n<i.length&&(e.multiplier=i[n])}))}_.defaultDateFormatter=function(e,t){const i=c.Z.toGregorianDate(e);return d[i.month-1]+" "+i.day+" "+i.year},_.defaultTicks=[.001,.002,.005,.01,.02,.05,.1,.25,.5,1,2,5,10,15,30,60,120,300,600,900,1800,3600,7200,14400,21600,43200,86400,172800,345600,604800],_.defaultTimeFormatter=function(e,t){const i=c.Z.toGregorianDate(e),n=Math.round(i.millisecond);return Math.abs(t._clockViewModel.multiplier)<1?i.hour.toString().padStart(2,"0")+":"+i.minute.toString().padStart(2,"0")+":"+i.second.toString().padStart(2,"0")+"."+n.toString().padStart(3,"0"):i.hour.toString().padStart(2,"0")+":"+i.minute.toString().padStart(2,"0")+":"+i.second.toString().padStart(2,"0")+" UTC"},_.prototype.getShuttleRingTicks=function(){return this._sortedFilteredPositiveTicks.slice(0)},_.prototype.setShuttleRingTicks=function(e){if(!(0,s.Z)(e))throw new a.Z("positiveTicks is required.");let t,i,n;const r={},o=this._sortedFilteredPositiveTicks;for(o.length=0,t=0,i=e.length;t<i;++t)n=e[t],r.hasOwnProperty(n)||(r[n]=!0,o.push(n));o.sort(p);const c=[];for(i=o.length,t=i-1;t>=0;--t)n=o[t],0!==n&&c.push(-n);Array.prototype.push.apply(c,o),this._allShuttleRingTicks=c},Object.defineProperties(_.prototype,{slower:{get:function(){return this._slower}},faster:{get:function(){return this._faster}},clockViewModel:{get:function(){return this._clockViewModel}},pauseViewModel:{get:function(){return this._pauseViewModel}},playReverseViewModel:{get:function(){return this._playReverseViewModel}},playForwardViewModel:{get:function(){return this._playForwardViewModel}},playRealtimeViewModel:{get:function(){return this._playRealtimeViewModel}},dateFormatter:{get:function(){return this._dateFormatter},set:function(e){if("function"!=typeof e)throw new a.Z("dateFormatter must be a function");this._dateFormatter=e}},timeFormatter:{get:function(){return this._timeFormatter},set:function(e){if("function"!=typeof e)throw new a.Z("timeFormatter must be a function");this._timeFormatter=e}}}),_._maxShuttleRingAngle=105,_._realtimeShuttleRingAngle=f;const Z=_},158136:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(426468),r=i(54879),o=i(446938),s=i(488802),a=i(412096),c=i(78320),u=i(217689);function l(e,t){if(!(0,n.Z)(e))throw new o.Z("container is required.");e=(0,c.Z)(e);const i=new u.Z(t),r=document.createElement("button");r.type="button",r.className="cesium-button cesium-toolbar-button",r.setAttribute("data-bind","attr: { title: buttonTooltip },click: toggleDropDown"),e.appendChild(r);const l=document.createElement("img");l.setAttribute("draggable","false"),l.className="cesium-baseLayerPicker-selected",l.setAttribute("data-bind","attr: { src: buttonImageUrl }, visible: !!buttonImageUrl"),r.appendChild(l);const h=document.createElement("div");h.className="cesium-baseLayerPicker-dropDown",h.setAttribute("data-bind",'css: { "cesium-baseLayerPicker-dropDown-visible" : dropDownVisible }'),e.appendChild(h);const d=document.createElement("div");d.className="cesium-baseLayerPicker-sectionTitle",d.setAttribute("data-bind","visible: imageryProviderViewModels.length > 0"),d.innerHTML="Imagery",h.appendChild(d);const f=document.createElement("div");f.className="cesium-baseLayerPicker-section",f.setAttribute("data-bind","foreach: _imageryProviders"),h.appendChild(f);const p=document.createElement("div");p.className="cesium-baseLayerPicker-category",f.appendChild(p);const m=document.createElement("div");m.className="cesium-baseLayerPicker-categoryTitle",m.setAttribute("data-bind","text: name"),p.appendChild(m);const _=document.createElement("div");_.className="cesium-baseLayerPicker-choices",_.setAttribute("data-bind","foreach: providers"),p.appendChild(_);const Z=document.createElement("div");Z.className="cesium-baseLayerPicker-item",Z.setAttribute("data-bind",'css: { "cesium-baseLayerPicker-selectedItem" : $data === $parents[1].selectedImagery },attr: { title: tooltip },visible: creationCommand.canExecute,click: function($data) { $parents[1].selectedImagery = $data; }'),_.appendChild(Z);const g=document.createElement("img");g.className="cesium-baseLayerPicker-itemIcon",g.setAttribute("data-bind","attr: { src: iconUrl }"),g.setAttribute("draggable","false"),Z.appendChild(g);const y=document.createElement("div");y.className="cesium-baseLayerPicker-itemLabel",y.setAttribute("data-bind","text: name"),Z.appendChild(y);const b=document.createElement("div");b.className="cesium-baseLayerPicker-sectionTitle",b.setAttribute("data-bind","visible: terrainProviderViewModels.length > 0"),b.innerHTML="Terrain",h.appendChild(b);const A=document.createElement("div");A.className="cesium-baseLayerPicker-section",A.setAttribute("data-bind","foreach: _terrainProviders"),h.appendChild(A);const w=document.createElement("div");w.className="cesium-baseLayerPicker-category",A.appendChild(w);const v=document.createElement("div");v.className="cesium-baseLayerPicker-categoryTitle",v.setAttribute("data-bind","text: name"),w.appendChild(v);const T=document.createElement("div");T.className="cesium-baseLayerPicker-choices",T.setAttribute("data-bind","foreach: providers"),w.appendChild(T);const C=document.createElement("div");C.className="cesium-baseLayerPicker-item",C.setAttribute("data-bind",'css: { "cesium-baseLayerPicker-selectedItem" : $data === $parents[1].selectedTerrain },attr: { title: tooltip },visible: creationCommand.canExecute,click: function($data) { $parents[1].selectedTerrain = $data; }'),T.appendChild(C);const E=document.createElement("img");E.className="cesium-baseLayerPicker-itemIcon",E.setAttribute("data-bind","attr: { src: iconUrl }"),E.setAttribute("draggable","false"),C.appendChild(E);const x=document.createElement("div");x.className="cesium-baseLayerPicker-itemLabel",x.setAttribute("data-bind","text: name"),C.appendChild(x),a.Z.applyBindings(i,r),a.Z.applyBindings(i,h),this._viewModel=i,this._container=e,this._element=r,this._dropPanel=h,this._closeDropDown=function(e){r.contains(e.target)||h.contains(e.target)||(i.dropDownVisible=!1)},s.Z.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(l.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),l.prototype.isDestroyed=function(){return!1},l.prototype.destroy=function(){return s.Z.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),a.Z.cleanNode(this._element),a.Z.cleanNode(this._dropPanel),this._container.removeChild(this._element),this._container.removeChild(this._dropPanel),(0,r.Z)(this)};const h=l},217689:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(406144),r=i(426468),o=i(446938),s=i(392690),a=i(412096),c=i(264890);function u(e){const t=(e=(0,n.Z)(e,n.Z.EMPTY_OBJECT)).globe,i=(0,n.Z)(e.imageryProviderViewModels,[]),u=(0,n.Z)(e.terrainProviderViewModels,[]);if(!(0,r.Z)(t))throw new o.Z("globe is required");this._globe=t,this.imageryProviderViewModels=i.slice(0),this.terrainProviderViewModels=u.slice(0),this.dropDownVisible=!1,a.Z.track(this,["imageryProviderViewModels","terrainProviderViewModels","dropDownVisible"]);const l=a.Z.getObservable(this,"imageryProviderViewModels"),h=a.Z.pureComputed((function(){const e=l(),t={};let i;for(i=0;i<e.length;i++){const n=e[i],o=n.category;(0,r.Z)(t[o])?t[o].push(n):t[o]=[n]}const n=Object.keys(t),o=[];for(i=0;i<n.length;i++){const e=n[i];o.push({name:e,providers:t[e]})}return o}));this._imageryProviders=h;const d=a.Z.getObservable(this,"terrainProviderViewModels"),f=a.Z.pureComputed((function(){const e=d(),t={};let i;for(i=0;i<e.length;i++){const n=e[i],o=n.category;(0,r.Z)(t[o])?t[o].push(n):t[o]=[n]}const n=Object.keys(t),o=[];for(i=0;i<n.length;i++){const e=n[i];o.push({name:e,providers:t[e]})}return o}));this._terrainProviders=f,this.buttonTooltip=void 0,a.Z.defineProperty(this,"buttonTooltip",(function(){const e=this.selectedImagery,t=this.selectedTerrain,i=(0,r.Z)(e)?e.name:void 0,n=(0,r.Z)(t)?t.name:void 0;return(0,r.Z)(i)&&(0,r.Z)(n)?i+"\n"+n:(0,r.Z)(i)?i:n})),this.buttonImageUrl=void 0,a.Z.defineProperty(this,"buttonImageUrl",(function(){const e=this.selectedImagery;if((0,r.Z)(e))return e.iconUrl})),this.selectedImagery=void 0;const p=a.Z.observable();this._currentImageryProviders=[],a.Z.defineProperty(this,"selectedImagery",{get:function(){return p()},set:function(e){if(p()===e)return void(this.dropDownVisible=!1);let t;const i=this._currentImageryProviders,n=i.length,o=this._globe.imageryLayers;let s=!1;for(t=0;t<n;t++){const e=o.length;for(let n=0;n<e;n++){const e=o.get(n);if(e.imageryProvider===i[t]){o.remove(e),s=!0;break}}}if((0,r.Z)(e)){const i=e.creationCommand();if(Array.isArray(i)){for(t=i.length-1;t>=0;t--)o.addImageryProvider(i[t],0);this._currentImageryProviders=i.slice(0)}else if(this._currentImageryProviders=[i],s)o.addImageryProvider(i,0);else{const e=o.get(0);(0,r.Z)(e)&&o.remove(e),o.addImageryProvider(i,0)}}p(e),this.dropDownVisible=!1}}),this.selectedTerrain=void 0;const m=a.Z.observable();a.Z.defineProperty(this,"selectedTerrain",{get:function(){return m()},set:function(e){if(m()===e)return void(this.dropDownVisible=!1);let t;(0,r.Z)(e)&&(t=e.creationCommand()),this._globe.depthTestAgainstTerrain=!(t instanceof s.Z),this._globe.terrainProvider=t,m(e),this.dropDownVisible=!1}});const _=this;this._toggleDropDown=(0,c.Z)((function(){_.dropDownVisible=!_.dropDownVisible})),this.selectedImagery=(0,n.Z)(e.selectedImageryProviderViewModel,i[0]),this.selectedTerrain=(0,n.Z)(e.selectedTerrainProviderViewModel,u[0])}Object.defineProperties(u.prototype,{toggleDropDown:{get:function(){return this._toggleDropDown}},globe:{get:function(){return this._globe}}});const l=u},3470:(e,t,i)=>{"use strict";i.d(t,{Z:()=>u});var n=i(406144),r=i(426468),o=i(446938),s=i(412096),a=i(264890);function c(e){if(!(0,r.Z)(e.name))throw new o.Z("options.name is required.");if(!(0,r.Z)(e.tooltip))throw new o.Z("options.tooltip is required.");if(!(0,r.Z)(e.iconUrl))throw new o.Z("options.iconUrl is required.");if("function"!=typeof e.creationFunction)throw new o.Z("options.creationFunction is required.");let t=e.creationFunction;(0,r.Z)(t.canExecute)||(t=(0,a.Z)(t)),this._creationCommand=t,this.name=e.name,this.tooltip=e.tooltip,this.iconUrl=e.iconUrl,this._category=(0,n.Z)(e.category,""),s.Z.track(this,["name","tooltip","iconUrl"])}Object.defineProperties(c.prototype,{creationCommand:{get:function(){return this._creationCommand}},category:{get:function(){return this._category}}});const u=c},541296:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(913216),r=i(74173),o=i(418683),s=i(632145),a=i(382106),c=i(152736),u=i(618050),l=i(3470);const h=function(){const e=[];return e.push(new l.Z({name:"Bing Maps Aerial",iconUrl:(0,n.Z)("Widgets/Images/ImageryProviders/bingAerial.png"),tooltip:"Bing Maps aerial imagery, provided by Cesium ion",category:"Cesium ion",creationFunction:function(){return(0,o.Z)({style:a.Z.AERIAL})}})),e.push(new l.Z({name:"Bing Maps Aerial with Labels",iconUrl:(0,n.Z)("Widgets/Images/ImageryProviders/bingAerialLabels.png"),tooltip:"Bing Maps aerial imagery with labels, provided by Cesium ion",category:"Cesium ion",creationFunction:function(){return(0,o.Z)({style:a.Z.AERIAL_WITH_LABELS})}})),e.push(new l.Z({name:"Bing Maps Roads",iconUrl:(0,n.Z)("Widgets/Images/ImageryProviders/bingRoads.png"),tooltip:"Bing Maps standard road maps, provided by Cesium ion",category:"Cesium ion",creationFunction:function(){return(0,o.Z)({style:a.Z.ROAD})}})),e.push(new l.Z({name:"ESRI World Imagery",iconUrl:(0,n.Z)("Widgets/Images/ImageryProviders/esriWorldImagery.png"),tooltip:"World Imagery provides one meter or better satellite and aerial imagery in many parts of the world and lower resolution satellite imagery worldwide. The map includes NASA Blue Marble: Next Generation 500m resolution imagery at small scales (above 1:1,000,000), i-cubed 15m eSAT imagery at medium-to-large scales (down to 1:70,000) for the world, and USGS 15m Landsat imagery for Antarctica. The map features 0.3m resolution imagery in the continental United States and 0.6m resolution imagery in parts of Western Europe from DigitalGlobe. In other parts of the world, 1 meter resolution imagery is available from GeoEye IKONOS, i-cubed Nationwide Prime, Getmapping, AeroGRID, IGN Spain, and IGP Portugal. Additionally, imagery at different resolutions has been contributed by the GIS User Community.\nhttp://www.esri.com",category:"Other",creationFunction:function(){return new r.Z({url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",enablePickFeatures:!1})}})),e.push(new l.Z({name:"ESRI World Street Map",iconUrl:(0,n.Z)("Widgets/Images/ImageryProviders/esriWorldStreetMap.png"),tooltip:"This worldwide street map presents highway-level data for the world. Street-level data includes the United States; much of Canada; Japan; most countries in Europe; Australia and New Zealand; India; parts of South America including Argentina, Brazil, Chile, Colombia, and Venezuela; Ghana; and parts of southern Africa including Botswana, Lesotho, Namibia, South Africa, and Swaziland.\nhttp://www.esri.com",category:"Other",creationFunction:function(){return new r.Z({url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer",enablePickFeatures:!1})}})),e.push(new l.Z({name:"ESRI National Geographic",iconUrl:(0,n.Z)("Widgets/Images/ImageryProviders/esriNationalGeographic.png"),tooltip:"This web map contains the National Geographic World Map service. This map service is designed to be used as a general reference map for informational and educational purposes as well as a basemap by GIS professionals and other users for creating web maps and web mapping applications.\nhttp://www.esri.com",category:"Other",creationFunction:function(){return new r.Z({url:"https://services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer/",enablePickFeatures:!1})}})),e.push(new l.Z({name:"Open­Street­Map",iconUrl:(0,n.Z)("Widgets/Images/ImageryProviders/openStreetMap.png"),tooltip:"OpenStreetMap (OSM) is a collaborative project to create a free editable map of the world.\nhttp://www.openstreetmap.org",category:"Other",creationFunction:function(){return new c.Z({url:"https://a.tile.openstreetmap.org/"})}})),e.push(new l.Z({name:"Stamen Watercolor",iconUrl:(0,n.Z)("Widgets/Images/ImageryProviders/stamenWatercolor.png"),tooltip:"Reminiscent of hand drawn maps, Stamen watercolor maps apply raster effect area washes and organic edges over a paper texture to add warm pop to any map.\nhttp://maps.stamen.com",category:"Other",creationFunction:function(){return new c.Z({url:"https://stamen-tiles.a.ssl.fastly.net/watercolor/",credit:"Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA."})}})),e.push(new l.Z({name:"Stamen Toner",iconUrl:(0,n.Z)("Widgets/Images/ImageryProviders/stamenToner.png"),tooltip:"A high contrast black and white map.\nhttp://maps.stamen.com",category:"Other",creationFunction:function(){return new c.Z({url:"https://stamen-tiles.a.ssl.fastly.net/toner/",credit:"Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA."})}})),e.push(new l.Z({name:"Sentinel-2",iconUrl:(0,n.Z)("Widgets/Images/ImageryProviders/sentinel-2.png"),tooltip:"Sentinel-2 cloudless by EOX IT Services GmbH (Contains modified Copernicus Sentinel data 2016 and 2017).",category:"Cesium ion",creationFunction:function(){return new s.Z({assetId:3954})}})),e.push(new l.Z({name:"Blue Marble",iconUrl:(0,n.Z)("Widgets/Images/ImageryProviders/blueMarble.png"),tooltip:"Blue Marble Next Generation July, 2004 imagery from NASA.",category:"Cesium ion",creationFunction:function(){return new s.Z({assetId:3845})}})),e.push(new l.Z({name:"Earth at night",iconUrl:(0,n.Z)("Widgets/Images/ImageryProviders/earthAtNight.png"),tooltip:"The Earth at night, also known as The Black Marble, is a 500 meter resolution global composite imagery layer released by NASA.",category:"Cesium ion",creationFunction:function(){return new s.Z({assetId:3812})}})),e.push(new l.Z({name:"Natural Earth II",iconUrl:(0,n.Z)("Widgets/Images/ImageryProviders/naturalEarthII.png"),tooltip:"Natural Earth II, darkened for contrast.\nhttp://www.naturalearthdata.com/",category:"Cesium ion",creationFunction:function(){return new u.Z({url:(0,n.Z)("Assets/Textures/NaturalEarthII")})}})),e}},45231:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(913216),r=i(500166),o=i(392690),s=i(3470);const a=function(){const e=[];return e.push(new s.Z({name:"WGS84 Ellipsoid",iconUrl:(0,n.Z)("Widgets/Images/TerrainProviders/Ellipsoid.png"),tooltip:"WGS84 standard ellipsoid, also known as EPSG:4326",category:"Cesium ion",creationFunction:function(){return new o.Z}})),e.push(new s.Z({name:"Cesium World Terrain",iconUrl:(0,n.Z)("Widgets/Images/TerrainProviders/CesiumWorldTerrain.png"),tooltip:"High-resolution global terrain tileset curated from several datasources and hosted by Cesium ion",category:"Cesium ion",creationFunction:function(){return(0,r.Z)({requestWaterMask:!0,requestVertexNormals:!0})}})),e}},598476:(e,t,i)=>{"use strict";i.d(t,{Z:()=>p});var n=i(357299),r=i(406144),o=i(426468),s=i(54879),a=i(412096),c=i(78320),u=i(67913),l=i(123971);function h(e,t){n.Z.defined("container",e),n.Z.typeOf.object("scene",t),e=(0,c.Z)(e);const i=document.createElement("div"),r=document.createElement("div");r.setAttribute("data-bind","visible: performance");const o=new l.Z(t,r);this._viewModel=o,this._container=e,this._element=i;const s=document.createElement("div");s.textContent="3D Tiles Inspector",s.className="cesium-cesiumInspector-button",s.setAttribute("data-bind","click: toggleInspector"),i.appendChild(s),i.className="cesium-cesiumInspector cesium-3DTilesInspector",i.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),e.appendChild(i);const h=document.createElement("div");this._panel=h,h.className="cesium-cesiumInspector-dropDown",i.appendChild(h);const p=u.Z.createSection,m=u.Z.createCheckbox,_=p(h,"Tileset","tilesetVisible","toggleTileset"),Z=p(h,"Display","displayVisible","toggleDisplay"),g=p(h,"Update","updateVisible","toggleUpdate"),y=p(h,"Logging","loggingVisible","toggleLogging"),b=p(h,"Tile Debug Labels","tileDebugLabelsVisible","toggleTileDebugLabels"),A=p(h,"Style","styleVisible","toggleStyle"),w=p(h,"Optimization","optimizationVisible","toggleOptimization"),v=document.createElement("div");v.className="field-group";const T=document.createElement("label");T.className="field-label",T.appendChild(document.createTextNode("Properties: "));const C=document.createElement("div");C.setAttribute("data-bind","text: properties"),v.appendChild(T),v.appendChild(C),_.appendChild(v),_.appendChild(f("togglePickTileset","Pick Tileset","pickActive")),_.appendChild(f("trimTilesCache","Trim Tiles Cache")),_.appendChild(m("Enable Picking","picking")),Z.appendChild(m("Colorize","colorize")),Z.appendChild(m("Wireframe","wireframe")),Z.appendChild(m("Bounding Volumes","showBoundingVolumes")),Z.appendChild(m("Content Volumes","showContentBoundingVolumes")),Z.appendChild(m("Request Volumes","showRequestVolumes")),Z.appendChild(m("Point Cloud Shading","pointCloudShading"));const E=document.createElement("div");E.setAttribute("data-bind","visible: pointCloudShading"),E.appendChild(d("geometricErrorScale",0,2,.01,"Geometric Error Scale")),E.appendChild(d("maximumAttenuation",0,32,1,"Maximum Attenuation")),E.appendChild(d("baseResolution",0,1,.01,"Base Resolution")),E.appendChild(m("Eye Dome Lighting (EDL)","eyeDomeLighting")),Z.appendChild(E);const x=document.createElement("div");x.setAttribute("data-bind","visible: eyeDomeLighting"),x.appendChild(d("eyeDomeLightingStrength",0,2,.1,"EDL Strength")),x.appendChild(d("eyeDomeLightingRadius",0,4,.1,"EDL Radius")),E.appendChild(x),g.appendChild(m("Freeze Frame","freezeFrame")),g.appendChild(m("Dynamic Screen Space Error","dynamicScreenSpaceError"));const S=document.createElement("div");S.appendChild(d("maximumScreenSpaceError",0,128,1,"Maximum Screen Space Error")),g.appendChild(S);const O=document.createElement("div");O.setAttribute("data-bind","visible: dynamicScreenSpaceError"),O.appendChild(d("dynamicScreenSpaceErrorDensitySliderValue",0,1,.005,"Screen Space Error Density","dynamicScreenSpaceErrorDensity")),O.appendChild(d("dynamicScreenSpaceErrorFactor",1,10,.1,"Screen Space Error Factor")),g.appendChild(O),y.appendChild(m("Performance","performance")),y.appendChild(r),y.appendChild(m("Statistics","showStatistics"));const I=document.createElement("div");I.className="cesium-3dTilesInspector-statistics",I.setAttribute("data-bind","html: statisticsText, visible: showStatistics"),y.appendChild(I),y.appendChild(m("Pick Statistics","showPickStatistics"));const D=document.createElement("div");D.className="cesium-3dTilesInspector-statistics",D.setAttribute("data-bind","html: pickStatisticsText, visible: showPickStatistics"),y.appendChild(D);const P=document.createElement("div");A.appendChild(P),P.appendChild(document.createTextNode("Color Blend Mode: "));const R=document.createElement("select");R.setAttribute("data-bind",'options: colorBlendModes, optionsText: "text", optionsValue: "value", value: colorBlendMode'),P.appendChild(R);const B=document.createElement("textarea");B.setAttribute("data-bind","textInput: styleString, event: { keydown: styleEditorKeyPress }"),P.className="cesium-cesiumInspector-styleEditor",P.appendChild(B);const M=f("compileStyle","Compile (Ctrl+Enter)");P.appendChild(M);const L=document.createElement("div");L.className="cesium-cesiumInspector-error",L.setAttribute("data-bind","text: editorError"),P.appendChild(L),b.appendChild(m("Show Picked Only","showOnlyPickedTileDebugLabel")),b.appendChild(m("Geometric Error","showGeometricError")),b.appendChild(m("Rendering Statistics","showRenderingStatistics")),b.appendChild(m("Memory Usage (MB)","showMemoryUsage")),b.appendChild(m("Url","showUrl")),w.appendChild(m("Skip Tile LODs","skipLevelOfDetail"));const N=document.createElement("div");N.appendChild(d("skipScreenSpaceErrorFactor",1,50,1,"Skip SSE Factor")),w.appendChild(N);const F=document.createElement("div");F.appendChild(d("baseScreenSpaceError",0,4096,1,"SSE before skipping LOD")),w.appendChild(F);const k=document.createElement("div");k.appendChild(d("skipLevels",0,10,1,"Min. levels to skip")),w.appendChild(k),w.appendChild(m("Load only tiles that meet the max SSE.","immediatelyLoadDesiredLevelOfDetail")),w.appendChild(m("Load siblings of visible tiles","loadSiblings")),a.Z.applyBindings(o,i)}function d(e,t,i,n,o,s){s=(0,r.Z)(s,e);const a=document.createElement("input");a.setAttribute("data-bind","value: "+s),a.type="number";const c=document.createElement("input");c.type="range",c.min=t,c.max=i,c.step=n,c.setAttribute("data-bind",'valueUpdate: "input", value: '+e);const u=document.createElement("div");u.appendChild(c);const l=document.createElement("div");return l.className="cesium-cesiumInspector-slider",l.appendChild(document.createTextNode(o)),l.appendChild(a),l.appendChild(u),l}function f(e,t,i){const n=document.createElement("button");n.type="button",n.textContent=t,n.className="cesium-cesiumInspector-pickButton";let r="click: "+e;return(0,o.Z)(i)&&(r+=', css: {"cesium-cesiumInspector-pickButtonHighlight" : '+i+"}"),n.setAttribute("data-bind",r),n}Object.defineProperties(h.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),h.prototype.isDestroyed=function(){return!1},h.prototype.destroy=function(){return a.Z.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),(0,s.Z)(this)};const p=h},123971:(e,t,i)=>{"use strict";i.d(t,{Z:()=>E});var n=i(357299),r=i(545125),o=i(426468),s=i(54879),a=i(940263),c=i(122818),u=i(12441),l=i(268053),h=i(992722),d=i(465210),f=i(670281),p=i(12965),m=i(412096);function _(e,t){t?e._eventHandler.setInputAction((function(t){const i=e._scene.pick(t.endPosition);(0,o.Z)(i)&&i.primitive instanceof d.Z&&(e.tileset=i.primitive)}),c.Z.MOUSE_MOVE):(e._eventHandler.removeInputAction(c.Z.MOUSE_MOVE),e.picking=e.picking)}const Z={maximumFractionDigits:3};function g(e){const t=e/1048576;return t<1?t.toLocaleString(void 0,Z):Math.round(t).toLocaleString()}function y(e,t){if(!(0,o.Z)(e))return"";const i=t?e._statisticsPerPass[h.Z.PICK]:e._statisticsPerPass[h.Z.RENDER];let n='<ul class="cesium-cesiumInspector-statistics">';return n+="<li><strong>Visited: </strong>"+i.visited.toLocaleString()+"</li><li><strong>Selected: </strong>"+i.selected.toLocaleString()+"</li><li><strong>Commands: </strong>"+i.numberOfCommands.toLocaleString()+"</li>",n+="</ul>",t||(n+='<ul class="cesium-cesiumInspector-statistics">',n+="<li><strong>Requests: </strong>"+i.numberOfPendingRequests.toLocaleString()+"</li><li><strong>Attempted: </strong>"+i.numberOfAttemptedRequests.toLocaleString()+"</li><li><strong>Processing: </strong>"+i.numberOfTilesProcessing.toLocaleString()+"</li><li><strong>Content Ready: </strong>"+i.numberOfTilesWithContentReady.toLocaleString()+"</li><li><strong>Total: </strong>"+i.numberOfTilesTotal.toLocaleString()+"</li>",n+="</ul>",n+='<ul class="cesium-cesiumInspector-statistics">',n+="<li><strong>Features Selected: </strong>"+i.numberOfFeaturesSelected.toLocaleString()+"</li><li><strong>Features Loaded: </strong>"+i.numberOfFeaturesLoaded.toLocaleString()+"</li><li><strong>Points Selected: </strong>"+i.numberOfPointsSelected.toLocaleString()+"</li><li><strong>Points Loaded: </strong>"+i.numberOfPointsLoaded.toLocaleString()+"</li><li><strong>Triangles Selected: </strong>"+i.numberOfTrianglesSelected.toLocaleString()+"</li>",n+="</ul>",n+='<ul class="cesium-cesiumInspector-statistics">',n+="<li><strong>Tiles styled: </strong>"+i.numberOfTilesStyled.toLocaleString()+"</li><li><strong>Features styled: </strong>"+i.numberOfFeaturesStyled.toLocaleString()+"</li>",n+="</ul>",n+='<ul class="cesium-cesiumInspector-statistics">',n+="<li><strong>Children Union Culled: </strong>"+i.numberOfTilesCulledWithChildrenUnion.toLocaleString()+"</li>",n+="</ul>",n+='<ul class="cesium-cesiumInspector-statistics">',n+="<li><strong>Geometry Memory (MB): </strong>"+g(i.geometryByteLength)+"</li><li><strong>Texture Memory (MB): </strong>"+g(i.texturesByteLength)+"</li><li><strong>Batch Table Memory (MB): </strong>"+g(i.batchTableByteLength)+"</li>",n+="</ul>"),n}const b=[{text:"Highlight",value:u.Z.HIGHLIGHT},{text:"Replace",value:u.Z.REPLACE},{text:"Mix",value:u.Z.MIX}],A=new r.Z(1,1,0,.4),w=new r.Z,v=new r.Z;function T(e,t){n.Z.typeOf.object("scene",e),n.Z.typeOf.object("performanceContainer",t);const i=this,r=e.canvas;this._eventHandler=new a.Z(r),this._scene=e,this._performanceContainer=t,this._canvas=r,this._performanceDisplay=new p.Z({container:t}),this._statisticsText="",this._pickStatisticsText="",this._editorError="",this.performance=!1,this.showStatistics=!0,this.showPickStatistics=!0,this.inspectorVisible=!0,this.tilesetVisible=!1,this.displayVisible=!1,this.updateVisible=!1,this.loggingVisible=!1,this.styleVisible=!1,this.tileDebugLabelsVisible=!1,this.optimizationVisible=!1,this.styleString="{}",this._tileset=void 0,this._feature=void 0,this._tile=void 0,m.Z.track(this,["performance","inspectorVisible","_statisticsText","_pickStatisticsText","_editorError","showPickStatistics","showStatistics","tilesetVisible","displayVisible","updateVisible","loggingVisible","styleVisible","optimizationVisible","tileDebugLabelsVisible","styleString","_feature","_tile"]),this._properties=m.Z.observable({}),this.properties=[],m.Z.defineProperty(this,"properties",(function(){const e=[],t=i._properties();for(const i in t)t.hasOwnProperty(i)&&e.push(i);return e}));const s=m.Z.observable();m.Z.defineProperty(this,"dynamicScreenSpaceError",{get:function(){return s()},set:function(e){s(e),(0,o.Z)(i._tileset)&&(i._tileset.dynamicScreenSpaceError=e)}}),this.dynamicScreenSpaceError=!1;const h=m.Z.observable();m.Z.defineProperty(this,"colorBlendMode",{get:function(){return h()},set:function(e){h(e),(0,o.Z)(i._tileset)&&(i._tileset.colorBlendMode=e,i._scene.requestRender())}}),this.colorBlendMode=u.Z.HIGHLIGHT;const f=m.Z.observable(),Z=m.Z.observable();m.Z.defineProperty(this,"picking",{get:function(){return Z()},set:function(t){Z(t),t?i._eventHandler.setInputAction((function(t){const n=e.pick(t.endPosition);if(n instanceof l.Z?(i.feature=n,i.tile=n.content.tile):(0,o.Z)(n)&&(0,o.Z)(n.content)?(i.feature=void 0,i.tile=n.content.tile):(i.feature=void 0,i.tile=void 0),(0,o.Z)(i._tileset)){if(f&&(0,o.Z)(n)&&(0,o.Z)(n.content)){let r;e.pickPositionSupported&&(r=e.pickPosition(t.endPosition),(0,o.Z)(r)&&(i._tileset.debugPickPosition=r)),i._tileset.debugPickedTile=n.content.tile}else i._tileset.debugPickedTile=void 0;i._scene.requestRender()}}),c.Z.MOUSE_MOVE):(i.feature=void 0,i.tile=void 0,i._eventHandler.removeInputAction(c.Z.MOUSE_MOVE))}}),this.picking=!0;const g=m.Z.observable();m.Z.defineProperty(this,"colorize",{get:function(){return g()},set:function(e){g(e),(0,o.Z)(i._tileset)&&(i._tileset.debugColorizeTiles=e,i._scene.requestRender())}}),this.colorize=!1;const y=m.Z.observable();m.Z.defineProperty(this,"wireframe",{get:function(){return y()},set:function(e){y(e),(0,o.Z)(i._tileset)&&(i._tileset.debugWireframe=e,i._scene.requestRender())}}),this.wireframe=!1;const b=m.Z.observable();m.Z.defineProperty(this,"showBoundingVolumes",{get:function(){return b()},set:function(e){b(e),(0,o.Z)(i._tileset)&&(i._tileset.debugShowBoundingVolume=e,i._scene.requestRender())}}),this.showBoundingVolumes=!1;const A=m.Z.observable();m.Z.defineProperty(this,"showContentBoundingVolumes",{get:function(){return A()},set:function(e){A(e),(0,o.Z)(i._tileset)&&(i._tileset.debugShowContentBoundingVolume=e,i._scene.requestRender())}}),this.showContentBoundingVolumes=!1;const w=m.Z.observable();m.Z.defineProperty(this,"showRequestVolumes",{get:function(){return w()},set:function(e){w(e),(0,o.Z)(i._tileset)&&(i._tileset.debugShowViewerRequestVolume=e,i._scene.requestRender())}}),this.showRequestVolumes=!1;const v=m.Z.observable();m.Z.defineProperty(this,"freezeFrame",{get:function(){return v()},set:function(e){v(e),(0,o.Z)(i._tileset)&&(i._tileset.debugFreezeFrame=e,i._scene.debugShowFrustumPlanes=e,i._scene.requestRender())}}),this.freezeFrame=!1,m.Z.defineProperty(this,"showOnlyPickedTileDebugLabel",{get:function(){return f()},set:function(e){f(e),(0,o.Z)(i._tileset)&&(i._tileset.debugPickedTileLabelOnly=e,i._scene.requestRender())}}),this.showOnlyPickedTileDebugLabel=!1;const T=m.Z.observable();m.Z.defineProperty(this,"showGeometricError",{get:function(){return T()},set:function(e){T(e),(0,o.Z)(i._tileset)&&(i._tileset.debugShowGeometricError=e,i._scene.requestRender())}}),this.showGeometricError=!1;const C=m.Z.observable();m.Z.defineProperty(this,"showRenderingStatistics",{get:function(){return C()},set:function(e){C(e),(0,o.Z)(i._tileset)&&(i._tileset.debugShowRenderingStatistics=e,i._scene.requestRender())}}),this.showRenderingStatistics=!1;const E=m.Z.observable();m.Z.defineProperty(this,"showMemoryUsage",{get:function(){return E()},set:function(e){E(e),(0,o.Z)(i._tileset)&&(i._tileset.debugShowMemoryUsage=e,i._scene.requestRender())}}),this.showMemoryUsage=!1;const x=m.Z.observable();m.Z.defineProperty(this,"showUrl",{get:function(){return x()},set:function(e){x(e),(0,o.Z)(i._tileset)&&(i._tileset.debugShowUrl=e,i._scene.requestRender())}}),this.showUrl=!1;const S=m.Z.observable();m.Z.defineProperty(this,"maximumScreenSpaceError",{get:function(){return S()},set:function(e){e=Number(e),isNaN(e)||(S(e),(0,o.Z)(i._tileset)&&(i._tileset.maximumScreenSpaceError=e))}}),this.maximumScreenSpaceError=16;const O=m.Z.observable();m.Z.defineProperty(this,"dynamicScreenSpaceErrorDensity",{get:function(){return O()},set:function(e){e=Number(e),isNaN(e)||(O(e),(0,o.Z)(i._tileset)&&(i._tileset.dynamicScreenSpaceErrorDensity=e))}}),this.dynamicScreenSpaceErrorDensity=.00278,this.dynamicScreenSpaceErrorDensitySliderValue=void 0,m.Z.defineProperty(this,"dynamicScreenSpaceErrorDensitySliderValue",{get:function(){return Math.pow(O(),1/6)},set:function(e){O(Math.pow(e,6))}});const I=m.Z.observable();m.Z.defineProperty(this,"dynamicScreenSpaceErrorFactor",{get:function(){return I()},set:function(e){e=Number(e),isNaN(e)||(I(e),(0,o.Z)(i._tileset)&&(i._tileset.dynamicScreenSpaceErrorFactor=e))}}),this.dynamicScreenSpaceErrorFactor=4;const D=(P=this,function(e){const t=P._scene.pick(e.position);(0,o.Z)(t)&&t.primitive instanceof d.Z&&(P.tileset=t.primitive),P.pickActive=!1});var P;const R=m.Z.observable();m.Z.defineProperty(this,"pickActive",{get:function(){return R()},set:function(e){R(e),e?i._eventHandler.setInputAction(D,c.Z.LEFT_CLICK):i._eventHandler.removeInputAction(c.Z.LEFT_CLICK)}});const B=m.Z.observable();m.Z.defineProperty(this,"pointCloudShading",{get:function(){return B()},set:function(e){B(e),(0,o.Z)(i._tileset)&&(i._tileset.pointCloudShading.attenuation=e)}}),this.pointCloudShading=!1;const M=m.Z.observable();m.Z.defineProperty(this,"geometricErrorScale",{get:function(){return M()},set:function(e){e=Number(e),isNaN(e)||(M(e),(0,o.Z)(i._tileset)&&(i._tileset.pointCloudShading.geometricErrorScale=e))}}),this.geometricErrorScale=1;const L=m.Z.observable();m.Z.defineProperty(this,"maximumAttenuation",{get:function(){return L()},set:function(e){e=Number(e),isNaN(e)||(L(e),(0,o.Z)(i._tileset)&&(i._tileset.pointCloudShading.maximumAttenuation=0===e?void 0:e))}}),this.maximumAttenuation=0;const N=m.Z.observable();m.Z.defineProperty(this,"baseResolution",{get:function(){return N()},set:function(e){e=Number(e),isNaN(e)||(N(e),(0,o.Z)(i._tileset)&&(i._tileset.pointCloudShading.baseResolution=0===e?void 0:e))}}),this.baseResolution=0;const F=m.Z.observable();m.Z.defineProperty(this,"eyeDomeLighting",{get:function(){return F()},set:function(e){F(e),(0,o.Z)(i._tileset)&&(i._tileset.pointCloudShading.eyeDomeLighting=e)}}),this.eyeDomeLighting=!1;const k=m.Z.observable();m.Z.defineProperty(this,"eyeDomeLightingStrength",{get:function(){return k()},set:function(e){e=Number(e),isNaN(e)||(k(e),(0,o.Z)(i._tileset)&&(i._tileset.pointCloudShading.eyeDomeLightingStrength=e))}}),this.eyeDomeLightingStrength=1;const U=m.Z.observable();m.Z.defineProperty(this,"eyeDomeLightingRadius",{get:function(){return U()},set:function(e){e=Number(e),isNaN(e)||(U(e),(0,o.Z)(i._tileset)&&(i._tileset.pointCloudShading.eyeDomeLightingRadius=e))}}),this.eyeDomeLightingRadius=1,this.pickActive=!1;const V=m.Z.observable();m.Z.defineProperty(this,"skipLevelOfDetail",{get:function(){return V()},set:function(e){V(e),(0,o.Z)(i._tileset)&&(i._tileset.skipLevelOfDetail=e)}}),this.skipLevelOfDetail=!0;const z=m.Z.observable();m.Z.defineProperty(this,"skipScreenSpaceErrorFactor",{get:function(){return z()},set:function(e){e=Number(e),isNaN(e)||(z(e),(0,o.Z)(i._tileset)&&(i._tileset.skipScreenSpaceErrorFactor=e))}}),this.skipScreenSpaceErrorFactor=16;const H=m.Z.observable();m.Z.defineProperty(this,"baseScreenSpaceError",{get:function(){return H()},set:function(e){e=Number(e),isNaN(e)||(H(e),(0,o.Z)(i._tileset)&&(i._tileset.baseScreenSpaceError=e))}}),this.baseScreenSpaceError=1024;const G=m.Z.observable();m.Z.defineProperty(this,"skipLevels",{get:function(){return G()},set:function(e){e=Number(e),isNaN(e)||(G(e),(0,o.Z)(i._tileset)&&(i._tileset.skipLevels=e))}}),this.skipLevels=1;const q=m.Z.observable();m.Z.defineProperty(this,"immediatelyLoadDesiredLevelOfDetail",{get:function(){return q()},set:function(e){q(e),(0,o.Z)(i._tileset)&&(i._tileset.immediatelyLoadDesiredLevelOfDetail=e)}}),this.immediatelyLoadDesiredLevelOfDetail=!1;const j=m.Z.observable();m.Z.defineProperty(this,"loadSiblings",{get:function(){return j()},set:function(e){j(e),(0,o.Z)(i._tileset)&&(i._tileset.loadSiblings=e)}}),this.loadSiblings=!1,this._style=void 0,this._shouldStyle=!1,this._definedProperties=["properties","dynamicScreenSpaceError","colorBlendMode","picking","colorize","wireframe","showBoundingVolumes","showContentBoundingVolumes","showRequestVolumes","freezeFrame","maximumScreenSpaceError","dynamicScreenSpaceErrorDensity","baseScreenSpaceError","skipScreenSpaceErrorFactor","skipLevelOfDetail","skipLevels","immediatelyLoadDesiredLevelOfDetail","loadSiblings","dynamicScreenSpaceErrorDensitySliderValue","dynamicScreenSpaceErrorFactor","pickActive","showOnlyPickedTileDebugLabel","showGeometricError","showRenderingStatistics","showMemoryUsage","showUrl","pointCloudShading","geometricErrorScale","maximumAttenuation","baseResolution","eyeDomeLighting","eyeDomeLightingStrength","eyeDomeLightingRadius"],this._removePostRenderEvent=e.postRender.addEventListener((function(){i._update()})),(0,o.Z)(this._tileset)||_(this,!0)}function C(e){if(e.featuresLength>0)return!0;const t=e.innerContents;if((0,o.Z)(t)){const e=t.length;for(let i=0;i<e;++i)if(!C(t[i]))return!1;return!0}return!1}Object.defineProperties(T.prototype,{scene:{get:function(){return this._scene}},performanceContainer:{get:function(){return this._performanceContainer}},statisticsText:{get:function(){return this._statisticsText}},pickStatisticsText:{get:function(){return this._pickStatisticsText}},colorBlendModes:{get:function(){return b}},editorError:{get:function(){return this._editorError}},tileset:{get:function(){return this._tileset},set:function(e){if(this._tileset=e,this._style=void 0,this.styleString="{}",this.feature=void 0,this.tile=void 0,(0,o.Z)(e)){const t=this;e.readyPromise.then((function(e){t.isDestroyed()||t._properties(e.properties)}));const i=["colorize","wireframe","showBoundingVolumes","showContentBoundingVolumes","showRequestVolumes","freezeFrame","showOnlyPickedTileDebugLabel","showGeometricError","showRenderingStatistics","showMemoryUsage","showUrl"],n=i.length;for(let e=0;e<n;++e){const t=i[e];this[t]=this[t]}this.maximumScreenSpaceError=e.maximumScreenSpaceError,this.dynamicScreenSpaceError=e.dynamicScreenSpaceError,this.dynamicScreenSpaceErrorDensity=e.dynamicScreenSpaceErrorDensity,this.dynamicScreenSpaceErrorFactor=e.dynamicScreenSpaceErrorFactor,this.colorBlendMode=e.colorBlendMode,this.skipLevelOfDetail=e.skipLevelOfDetail,this.skipScreenSpaceErrorFactor=e.skipScreenSpaceErrorFactor,this.baseScreenSpaceError=e.baseScreenSpaceError,this.skipLevels=e.skipLevels,this.immediatelyLoadDesiredLevelOfDetail=e.immediatelyLoadDesiredLevelOfDetail,this.loadSiblings=e.loadSiblings;const r=e.pointCloudShading;this.pointCloudShading=r.attenuation,this.geometricErrorScale=r.geometricErrorScale,this.maximumAttenuation=r.maximumAttenuation?r.maximumAttenuation:0,this.baseResolution=r.baseResolution?r.baseResolution:0,this.eyeDomeLighting=r.eyeDomeLighting,this.eyeDomeLightingStrength=r.eyeDomeLightingStrength,this.eyeDomeLightingRadius=r.eyeDomeLightingRadius,this._scene.requestRender()}else this._properties({});this._statisticsText=y(e,!1),this._pickStatisticsText=y(e,!0),_(this,!1)}},feature:{get:function(){return this._feature},set:function(e){if(this._feature===e)return;const t=this._feature;(0,o.Z)(t)&&!t.content.isDestroyed()&&(!this.colorize&&(0,o.Z)(this._style)?t.color=(0,o.Z)(this._style.color)?this._style.color.evaluateColor(t,w):r.Z.WHITE:t.color=v,this._scene.requestRender()),(0,o.Z)(e)&&(r.Z.clone(e.color,v),e.color=A,this._scene.requestRender()),this._feature=e}},tile:{get:function(){return this._tile},set:function(e){if(this._tile===e)return;const t=this._tile;!(0,o.Z)(t)||t.isDestroyed()||C(t.content)||(t.color=v,this._scene.requestRender()),(0,o.Z)(e)&&!C(e.content)&&(r.Z.clone(e.color,v),e.color=A,this._scene.requestRender()),this._tile=e}}}),T.prototype.togglePickTileset=function(){this.pickActive=!this.pickActive},T.prototype.toggleInspector=function(){this.inspectorVisible=!this.inspectorVisible},T.prototype.toggleTileset=function(){this.tilesetVisible=!this.tilesetVisible},T.prototype.toggleDisplay=function(){this.displayVisible=!this.displayVisible},T.prototype.toggleUpdate=function(){this.updateVisible=!this.updateVisible},T.prototype.toggleLogging=function(){this.loggingVisible=!this.loggingVisible},T.prototype.toggleStyle=function(){this.styleVisible=!this.styleVisible},T.prototype.toggleTileDebugLabels=function(){this.tileDebugLabelsVisible=!this.tileDebugLabelsVisible},T.prototype.toggleOptimization=function(){this.optimizationVisible=!this.optimizationVisible},T.prototype.trimTilesCache=function(){(0,o.Z)(this._tileset)&&this._tileset.trimLoadedTiles()},T.prototype.compileStyle=function(){const e=this._tileset;if((0,o.Z)(e)&&this.styleString!==JSON.stringify(e.style)){this._editorError="";try{0===this.styleString.length&&(this.styleString="{}"),this._style=new f.Z(JSON.parse(this.styleString)),this._shouldStyle=!0,this._scene.requestRender()}catch(e){this._editorError=e.toString()}this.feature=this._feature,this.tile=this._tile}},T.prototype.styleEditorKeyPress=function(e,t){if(9===t.keyCode){t.preventDefault();const e=t.target,i=e.selectionStart,n=e.selectionEnd;let r=n;const o=e.value.slice(i,n).split("\n"),s=o.length;let a;if(t.shiftKey)for(a=0;a<s;++a)" "===o[a][0]&&(" "===o[a][1]?(o[a]=o[a].substr(2),r-=2):(o[a]=o[a].substr(1),r-=1));else for(a=0;a<s;++a)o[a]=" "+o[a],r+=2;const c=o.join("\n");e.value=e.value.slice(0,i)+c+e.value.slice(n),e.selectionStart=i!==n?i:r,e.selectionEnd=r}else!t.ctrlKey||10!==t.keyCode&&13!==t.keyCode||this.compileStyle();return!0},T.prototype._update=function(){const e=this._tileset;if(this.performance&&this._performanceDisplay.update(),(0,o.Z)(e)){if(e.isDestroyed())return this.tile=void 0,this.feature=void 0,void(this.tileset=void 0);const t=e.style;this._style!==e.style&&(this._shouldStyle?(e.style=this._style,this._shouldStyle=!1):(this._style=t,this.styleString=JSON.stringify(t.style,null," ")))}this.showStatistics&&(this._statisticsText=y(e,!1),this._pickStatisticsText=y(e,!0))},T.prototype.isDestroyed=function(){return!1},T.prototype.destroy=function(){this._eventHandler.destroy(),this._removePostRenderEvent();const e=this;return this._definedProperties.forEach((function(t){m.Z.getObservable(e,t).dispose()})),(0,s.Z)(this)},T.getStatistics=y;const E=T},964582:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(426468),r=i(54879),o=i(446938),s=i(412096),a=i(78320),c=i(67913),u=i(232300);function l(e,t){if(!(0,n.Z)(e))throw new o.Z("container is required.");if(!(0,n.Z)(t))throw new o.Z("scene is required.");e=(0,a.Z)(e);const i=document.createElement("div"),r=new u.Z(t,i);this._viewModel=r,this._container=e;const l=document.createElement("div");this._element=l;const h=document.createElement("div");h.textContent="Cesium Inspector",h.className="cesium-cesiumInspector-button",h.setAttribute("data-bind","click: toggleDropDown"),l.appendChild(h),l.className="cesium-cesiumInspector",l.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : dropDownVisible, "cesium-cesiumInspector-hidden" : !dropDownVisible }'),e.appendChild(this._element);const d=document.createElement("div");this._panel=d,d.className="cesium-cesiumInspector-dropDown",l.appendChild(d);const f=c.Z.createSection,p=c.Z.createCheckbox,m=f(d,"General","generalVisible","toggleGeneral"),_=p("Show Frustums","frustums"),Z=document.createElement("div");Z.className="cesium-cesiumInspector-frustumStatistics",Z.setAttribute("data-bind","visible: frustums, html: frustumStatisticText"),_.appendChild(Z),m.appendChild(_),m.appendChild(p("Show Frustum Planes","frustumPlanes")),m.appendChild(p("Performance Display","performance")),i.className="cesium-cesiumInspector-performanceDisplay",m.appendChild(i);const g=document.createElement("div");g.className="cesium-cesiumInspector-shaderCache",g.setAttribute("data-bind","html: shaderCacheText"),m.appendChild(g);const y=document.createElement("div");m.appendChild(y);const b=document.createElement("span");b.setAttribute("data-bind",'html: "     Frustum:"'),y.appendChild(b);const A=document.createElement("span");A.setAttribute("data-bind","text: depthFrustumText"),y.appendChild(A);const w=document.createElement("input");w.type="button",w.value="-",w.className="cesium-cesiumInspector-pickButton",w.setAttribute("data-bind","click: decrementDepthFrustum"),y.appendChild(w);const v=document.createElement("input");v.type="button",v.value="+",v.className="cesium-cesiumInspector-pickButton",v.setAttribute("data-bind","click: incrementDepthFrustum"),y.appendChild(v);const T=f(d,"Primitives","primitivesVisible","togglePrimitives"),C=document.createElement("div");C.className="cesium-cesiumInspector-pickSection",T.appendChild(C);const E=document.createElement("input");E.type="button",E.value="Pick a primitive",E.className="cesium-cesiumInspector-pickButton",E.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickPrimitiveActive}, click: pickPrimitive');let x=document.createElement("div");x.className="cesium-cesiumInspector-center",x.appendChild(E),C.appendChild(x),C.appendChild(p("Show bounding sphere","primitiveBoundingSphere","hasPickedPrimitive")),C.appendChild(p("Show reference frame","primitiveReferenceFrame","hasPickedPrimitive")),this._primitiveOnly=p("Show only selected","filterPrimitive","hasPickedPrimitive"),C.appendChild(this._primitiveOnly);const S=f(d,"Terrain","terrainVisible","toggleTerrain"),O=document.createElement("div");O.className="cesium-cesiumInspector-pickSection",S.appendChild(O);const I=document.createElement("input");I.type="button",I.value="Pick a tile",I.className="cesium-cesiumInspector-pickButton",I.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickTileActive}, click: pickTile'),x=document.createElement("div"),x.appendChild(I),x.className="cesium-cesiumInspector-center",O.appendChild(x);const D=document.createElement("div");O.appendChild(D);const P=document.createElement("input");P.type="button",P.value="Parent",P.className="cesium-cesiumInspector-pickButton",P.setAttribute("data-bind","click: selectParent");const R=document.createElement("input");R.type="button",R.value="NW",R.className="cesium-cesiumInspector-pickButton",R.setAttribute("data-bind","click: selectNW");const B=document.createElement("input");B.type="button",B.value="NE",B.className="cesium-cesiumInspector-pickButton",B.setAttribute("data-bind","click: selectNE");const M=document.createElement("input");M.type="button",M.value="SW",M.className="cesium-cesiumInspector-pickButton",M.setAttribute("data-bind","click: selectSW");const L=document.createElement("input");L.type="button",L.value="SE",L.className="cesium-cesiumInspector-pickButton",L.setAttribute("data-bind","click: selectSE");const N=document.createElement("div");N.className="cesium-cesiumInspector-tileText",D.className="cesium-cesiumInspector-frustumStatistics",D.appendChild(N),D.setAttribute("data-bind","visible: hasPickedTile"),N.setAttribute("data-bind","html: tileText");const F=document.createElement("div");F.className="cesium-cesiumInspector-relativeText",F.textContent="Select relative:",D.appendChild(F);const k=document.createElement("table"),U=document.createElement("tr"),V=document.createElement("tr"),z=document.createElement("td");z.appendChild(P);const H=document.createElement("td");H.appendChild(R);const G=document.createElement("td");G.appendChild(B),U.appendChild(z),U.appendChild(H),U.appendChild(G);const q=document.createElement("td"),j=document.createElement("td");j.appendChild(M);const W=document.createElement("td");W.appendChild(L),V.appendChild(q),V.appendChild(j),V.appendChild(W),k.appendChild(U),k.appendChild(V),D.appendChild(k),O.appendChild(p("Show bounding volume","tileBoundingSphere","hasPickedTile")),O.appendChild(p("Show only selected","filterTile","hasPickedTile")),S.appendChild(p("Wireframe","wireframe")),S.appendChild(p("Suspend LOD update","suspendUpdates")),S.appendChild(p("Show tile coordinates","tileCoordinates")),s.Z.applyBindings(r,this._element)}Object.defineProperties(l.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),l.prototype.isDestroyed=function(){return!1},l.prototype.destroy=function(){return s.Z.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),(0,r.Z)(this)};const h=l},232300:(e,t,i)=>{"use strict";i.d(t,{Z:()=>b});var n=i(919382),r=i(426468),o=i(54879),s=i(446938),a=i(24401),c=i(523501),u=i(940263),l=i(122818),h=i(692021),d=i(12965),f=i(913002),p=i(412096),m=i(264890);function _(e,t,i){let n=Math.min(i,t);return n=Math.max(n,e),n}const Z=new a.Z,g=new n.Z;function y(e,t){if(!(0,r.Z)(e))throw new s.Z("scene is required");if(!(0,r.Z)(t))throw new s.Z("performanceContainer is required");const i=this,n=e.canvas,o=new u.Z(n);this._eventHandler=o,this._scene=e,this._canvas=n,this._primitive=void 0,this._tile=void 0,this._modelMatrixPrimitive=void 0,this._performanceDisplay=void 0,this._performanceContainer=t;const a=this._scene.globe;let y;function b(e){const t=i._scene.pick({x:e.position.x,y:e.position.y});(0,r.Z)(t)&&(i.primitive=(0,r.Z)(t.collection)?t.collection:t.primitive),i._scene.requestRender(),i.pickPrimitiveActive=!1}function A(e){let t;const n=a.ellipsoid,o=i._scene.camera.getPickRay(e.position,Z),s=a.pick(o,i._scene,g);if((0,r.Z)(s)){const e=n.cartesianToCartographic(s),i=a._surface.tileProvider._tilesToRenderByTextureCount;for(let n=0;!t&&n<i.length;++n){const o=i[n];if((0,r.Z)(o))for(let i=0;!t&&i<o.length;++i){const n=o[i];c.Z.contains(n.rectangle,e)&&(t=n)}}}i.tile=t,i.pickTileActive=!1}a.depthTestAgainstTerrain=!0,this.frustums=!1,this.frustumPlanes=!1,this.performance=!1,this.shaderCacheText="",this.primitiveBoundingSphere=!1,this.primitiveReferenceFrame=!1,this.filterPrimitive=!1,this.tileBoundingSphere=!1,this.filterTile=!1,this.wireframe=!1,this.depthFrustum=1,this._numberOfFrustums=1,this.suspendUpdates=!1,this.tileCoordinates=!1,this.frustumStatisticText=!1,this.tileText="",this.hasPickedPrimitive=!1,this.hasPickedTile=!1,this.pickPrimitiveActive=!1,this.pickTileActive=!1,this.dropDownVisible=!0,this.generalVisible=!0,this.primitivesVisible=!1,this.terrainVisible=!1,this.depthFrustumText="",p.Z.track(this,["frustums","frustumPlanes","performance","shaderCacheText","primitiveBoundingSphere","primitiveReferenceFrame","filterPrimitive","tileBoundingSphere","filterTile","wireframe","depthFrustum","suspendUpdates","tileCoordinates","frustumStatisticText","tileText","hasPickedPrimitive","hasPickedTile","pickPrimitiveActive","pickTileActive","dropDownVisible","generalVisible","primitivesVisible","terrainVisible","depthFrustumText"]),this._toggleDropDown=(0,m.Z)((function(){i.dropDownVisible=!i.dropDownVisible})),this._toggleGeneral=(0,m.Z)((function(){i.generalVisible=!i.generalVisible})),this._togglePrimitives=(0,m.Z)((function(){i.primitivesVisible=!i.primitivesVisible})),this._toggleTerrain=(0,m.Z)((function(){i.terrainVisible=!i.terrainVisible})),this._frustumsSubscription=p.Z.getObservable(this,"frustums").subscribe((function(e){i._scene.debugShowFrustums=e,i._scene.requestRender()})),this._frustumPlanesSubscription=p.Z.getObservable(this,"frustumPlanes").subscribe((function(e){i._scene.debugShowFrustumPlanes=e,i._scene.requestRender()})),this._performanceSubscription=p.Z.getObservable(this,"performance").subscribe((function(e){e?i._performanceDisplay=new d.Z({container:i._performanceContainer}):i._performanceContainer.innerHTML=""})),this._showPrimitiveBoundingSphere=(0,m.Z)((function(){return i._primitive.debugShowBoundingVolume=i.primitiveBoundingSphere,i._scene.requestRender(),!0})),this._primitiveBoundingSphereSubscription=p.Z.getObservable(this,"primitiveBoundingSphere").subscribe((function(){i._showPrimitiveBoundingSphere()})),this._showPrimitiveReferenceFrame=(0,m.Z)((function(){if(i.primitiveReferenceFrame){const e=i._primitive.modelMatrix;i._modelMatrixPrimitive=new h.Z({modelMatrix:e}),i._scene.primitives.add(i._modelMatrixPrimitive)}else(0,r.Z)(i._modelMatrixPrimitive)&&(i._scene.primitives.remove(i._modelMatrixPrimitive),i._modelMatrixPrimitive=void 0);return i._scene.requestRender(),!0})),this._primitiveReferenceFrameSubscription=p.Z.getObservable(this,"primitiveReferenceFrame").subscribe((function(){i._showPrimitiveReferenceFrame()})),this._doFilterPrimitive=(0,m.Z)((function(){return i.filterPrimitive?i._scene.debugCommandFilter=function(e){return!(!(0,r.Z)(i._modelMatrixPrimitive)||e.owner!==i._modelMatrixPrimitive._primitive)||!!(0,r.Z)(i._primitive)&&(e.owner===i._primitive||e.owner===i._primitive._billboardCollection||e.owner.primitive===i._primitive)}:i._scene.debugCommandFilter=void 0,!0})),this._filterPrimitiveSubscription=p.Z.getObservable(this,"filterPrimitive").subscribe((function(){i._doFilterPrimitive(),i._scene.requestRender()})),this._wireframeSubscription=p.Z.getObservable(this,"wireframe").subscribe((function(e){a._surface.tileProvider._debug.wireframe=e,i._scene.requestRender()})),this._depthFrustumSubscription=p.Z.getObservable(this,"depthFrustum").subscribe((function(e){i._scene.debugShowDepthFrustum=e,i._scene.requestRender()})),this._incrementDepthFrustum=(0,m.Z)((function(){const e=i.depthFrustum+1;return i.depthFrustum=_(1,i._numberOfFrustums,e),i._scene.requestRender(),!0})),this._decrementDepthFrustum=(0,m.Z)((function(){const e=i.depthFrustum-1;return i.depthFrustum=_(1,i._numberOfFrustums,e),i._scene.requestRender(),!0})),this._suspendUpdatesSubscription=p.Z.getObservable(this,"suspendUpdates").subscribe((function(e){a._surface._debug.suspendLodUpdate=e,e||(i.filterTile=!1)})),this._showTileCoordinates=(0,m.Z)((function(){return i.tileCoordinates&&!(0,r.Z)(y)?y=e.imageryLayers.addImageryProvider(new f.Z({tilingScheme:e.terrainProvider.tilingScheme})):!i.tileCoordinates&&(0,r.Z)(y)&&(e.imageryLayers.remove(y),y=void 0),!0})),this._tileCoordinatesSubscription=p.Z.getObservable(this,"tileCoordinates").subscribe((function(){i._showTileCoordinates(),i._scene.requestRender()})),this._tileBoundingSphereSubscription=p.Z.getObservable(this,"tileBoundingSphere").subscribe((function(){i._showTileBoundingSphere(),i._scene.requestRender()})),this._showTileBoundingSphere=(0,m.Z)((function(){return i.tileBoundingSphere?a._surface.tileProvider._debug.boundingSphereTile=i._tile:a._surface.tileProvider._debug.boundingSphereTile=void 0,i._scene.requestRender(),!0})),this._doFilterTile=(0,m.Z)((function(){return i.filterTile?(i.suspendUpdates=!0,a._surface._tilesToRender=[],(0,r.Z)(i._tile)&&i._tile.renderable&&a._surface._tilesToRender.push(i._tile)):i.suspendUpdates=!1,!0})),this._filterTileSubscription=p.Z.getObservable(this,"filterTile").subscribe((function(){i.doFilterTile(),i._scene.requestRender()})),this._pickPrimitive=(0,m.Z)((function(){i.pickPrimitiveActive=!i.pickPrimitiveActive})),this._pickPrimitiveActiveSubscription=p.Z.getObservable(this,"pickPrimitiveActive").subscribe((function(e){e?o.setInputAction(b,l.Z.LEFT_CLICK):o.removeInputAction(l.Z.LEFT_CLICK)})),this._pickTile=(0,m.Z)((function(){i.pickTileActive=!i.pickTileActive})),this._pickTileActiveSubscription=p.Z.getObservable(this,"pickTileActive").subscribe((function(e){e?o.setInputAction(A,l.Z.LEFT_CLICK):o.removeInputAction(l.Z.LEFT_CLICK)})),this._removePostRenderEvent=e.postRender.addEventListener((function(){i._update()}))}Object.defineProperties(y.prototype,{scene:{get:function(){return this._scene}},performanceContainer:{get:function(){return this._performanceContainer}},toggleDropDown:{get:function(){return this._toggleDropDown}},showPrimitiveBoundingSphere:{get:function(){return this._showPrimitiveBoundingSphere}},showPrimitiveReferenceFrame:{get:function(){return this._showPrimitiveReferenceFrame}},doFilterPrimitive:{get:function(){return this._doFilterPrimitive}},incrementDepthFrustum:{get:function(){return this._incrementDepthFrustum}},decrementDepthFrustum:{get:function(){return this._decrementDepthFrustum}},showTileCoordinates:{get:function(){return this._showTileCoordinates}},showTileBoundingSphere:{get:function(){return this._showTileBoundingSphere}},doFilterTile:{get:function(){return this._doFilterTile}},toggleGeneral:{get:function(){return this._toggleGeneral}},togglePrimitives:{get:function(){return this._togglePrimitives}},toggleTerrain:{get:function(){return this._toggleTerrain}},pickPrimitive:{get:function(){return this._pickPrimitive}},pickTile:{get:function(){return this._pickTile}},selectParent:{get:function(){const e=this;return(0,m.Z)((function(){e.tile=e.tile.parent}))}},selectNW:{get:function(){const e=this;return(0,m.Z)((function(){e.tile=e.tile.northwestChild}))}},selectNE:{get:function(){const e=this;return(0,m.Z)((function(){e.tile=e.tile.northeastChild}))}},selectSW:{get:function(){const e=this;return(0,m.Z)((function(){e.tile=e.tile.southwestChild}))}},selectSE:{get:function(){const e=this;return(0,m.Z)((function(){e.tile=e.tile.southeastChild}))}},primitive:{get:function(){return this._primitive},set:function(e){const t=this._primitive;e!==t&&(this.hasPickedPrimitive=!0,(0,r.Z)(t)&&(t.debugShowBoundingVolume=!1),this._scene.debugCommandFilter=void 0,(0,r.Z)(this._modelMatrixPrimitive)&&(this._scene.primitives.remove(this._modelMatrixPrimitive),this._modelMatrixPrimitive=void 0),this._primitive=e,e.show=!1,setTimeout((function(){e.show=!0}),50),this.showPrimitiveBoundingSphere(),this.showPrimitiveReferenceFrame(),this.doFilterPrimitive())}},tile:{get:function(){return this._tile},set:function(e){if((0,r.Z)(e)){if(this.hasPickedTile=!0,e!==this._tile){this.tileText="L: "+e.level+" X: "+e.x+" Y: "+e.y,this.tileText+="<br>SW corner: "+e.rectangle.west+", "+e.rectangle.south,this.tileText+="<br>NE corner: "+e.rectangle.east+", "+e.rectangle.north;const t=e.data;(0,r.Z)(t)&&(0,r.Z)(t.tileBoundingRegion)?this.tileText+="<br>Min: "+t.tileBoundingRegion.minimumHeight+" Max: "+t.tileBoundingRegion.maximumHeight:this.tileText+="<br>(Tile is not loaded)"}this._tile=e,this.showTileBoundingSphere(),this.doFilterTile()}else this.hasPickedTile=!1,this._tile=void 0}}}),y.prototype._update=function(){this.frustums&&(this.frustumStatisticText=function(e){let t;if((0,r.Z)(e)){t="Command Statistics";const i=e.commandsInFrustums;for(const e in i)if(i.hasOwnProperty(e)){let n,r=parseInt(e,10);if(7===r)n="1, 2 and 3";else{const e=[];for(let t=2;t>=0;t--){const i=Math.pow(2,t);r>=i&&(e.push(t+1),r-=i)}n=e.reverse().join(" and ")}t+="<br>    "+i[e]+" in frustum "+n}t+="<br>Total: "+e.totalCommands}return t}(this._scene.debugFrustumStatistics));const e=this._scene.numberOfFrustums;this._numberOfFrustums=e,this.depthFrustum=_(1,e,this.depthFrustum),this.depthFrustumText=this.depthFrustum+" of "+e,this.performance&&this._performanceDisplay.update(),this.primitiveReferenceFrame&&(this._modelMatrixPrimitive.modelMatrix=this._primitive.modelMatrix),this.shaderCacheText="Cached shaders: "+this._scene.context.shaderCache.numberOfShaders},y.prototype.isDestroyed=function(){return!1},y.prototype.destroy=function(){return this._eventHandler.destroy(),this._removePostRenderEvent(),this._frustumsSubscription.dispose(),this._frustumPlanesSubscription.dispose(),this._performanceSubscription.dispose(),this._primitiveBoundingSphereSubscription.dispose(),this._primitiveReferenceFrameSubscription.dispose(),this._filterPrimitiveSubscription.dispose(),this._wireframeSubscription.dispose(),this._depthFrustumSubscription.dispose(),this._suspendUpdatesSubscription.dispose(),this._tileCoordinatesSubscription.dispose(),this._tileBoundingSphereSubscription.dispose(),this._filterTileSubscription.dispose(),this._pickPrimitiveActiveSubscription.dispose(),this._pickTileActiveSubscription.dispose(),(0,o.Z)(this)};const b=y},612130:(e,t,i)=>{"use strict";i.d(t,{Z:()=>I});var n=i(913216),r=i(919382),o=i(322380),s=i(406144),a=i(426468),c=i(54879),u=i(446938),l=i(253316),h=i(488802),d=i(347296),f=i(966487),p=i(940263),m=i(418683),_=i(503113),Z=i(840558),g=i(384744),y=i(506678),b=i(556198),A=i(310665),w=i(490601),v=i(657324),T=i(78320);function C(e){return(0,n.Z)("Assets/Textures/SkyBox/tycho2t3_80_"+e+".jpg")}function E(e){let t=e._useBrowserRecommendedResolution?1:window.devicePixelRatio;return t*=e._resolutionScale,(0,a.Z)(e._scene)&&(e._scene.pixelRatio=t),t}function x(e){const t=e._canvas;let i=t.clientWidth,n=t.clientHeight;const r=E(e);e._canvasClientWidth=i,e._canvasClientHeight=n,i*=r,n*=r,t.width=i,t.height=n,e._canRender=0!==i&&0!==n,e._lastDevicePixelRatio=window.devicePixelRatio}function S(e){const t=e._canvas,i=t.width,n=t.height;if(0!==i&&0!==n){const t=e._scene.camera.frustum;(0,a.Z)(t.aspectRatio)?t.aspectRatio=i/n:(t.top=t.right*(n/i),t.bottom=-t.top)}}function O(e,t){if(!(0,a.Z)(e))throw new u.Z("container is required.");e=(0,T.Z)(e),t=(0,s.Z)(t,s.Z.EMPTY_OBJECT);const i=document.createElement("div");i.className="cesium-widget",e.appendChild(i);const n=document.createElement("canvas"),c=h.Z.supportsImageRenderingPixelated();function d(){n!==n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()}this._supportsImageRenderingPixelated=c,c&&(n.style.imageRendering=h.Z.imageRenderingValue()),n.oncontextmenu=function(){return!1},n.onselectstart=function(){return!1},n.addEventListener("mousedown",d),n.addEventListener("pointerdown",d),i.appendChild(n);const f=document.createElement("div");f.className="cesium-widget-credits";const O=(0,a.Z)(t.creditContainer)?(0,T.Z)(t.creditContainer):i;O.appendChild(f);const I=(0,a.Z)(t.creditViewport)?(0,T.Z)(t.creditViewport):i,D=(0,s.Z)(t.showRenderLoopErrors,!0),P=(0,s.Z)(t.useBrowserRecommendedResolution,!0);this._element=i,this._container=e,this._canvas=n,this._canvasClientWidth=0,this._canvasClientHeight=0,this._lastDevicePixelRatio=0,this._creditViewport=I,this._creditContainer=O,this._innerCreditContainer=f,this._canRender=!1,this._renderLoopRunning=!1,this._showRenderLoopErrors=D,this._resolutionScale=1,this._useBrowserRecommendedResolution=P,this._forceResize=!1,this._clock=(0,a.Z)(t.clock)?t.clock:new o.Z,x(this);try{const e=new g.Z({canvas:n,contextOptions:t.contextOptions,creditContainer:f,creditViewport:I,mapProjection:t.mapProjection,orderIndependentTranslucency:t.orderIndependentTranslucency,scene3DOnly:(0,s.Z)(t.scene3DOnly,!1),shadows:t.shadows,mapMode2D:t.mapMode2D,requestRenderMode:t.requestRenderMode,maximumRenderTimeChange:t.maximumRenderTimeChange});this._scene=e,e.camera.constrainedAxis=r.Z.UNIT_Z,E(this),S(this);const i=(0,s.Z)(e.mapProjection.ellipsoid,l.Z.WGS84);let o=t.globe;(0,a.Z)(o)||(o=new _.Z(i)),!1!==o&&(e.globe=o,e.globe.shadows=(0,s.Z)(t.terrainShadows,b.Z.RECEIVE_ONLY));let c=t.skyBox;(0,a.Z)(c)||(c=new w.Z({sources:{positiveX:C("px"),negativeX:C("mx"),positiveY:C("py"),negativeY:C("my"),positiveZ:C("pz"),negativeZ:C("mz")}})),!1!==c&&(e.skyBox=c,e.sun=new v.Z,e.moon=new Z.Z);let u=t.skyAtmosphere;(0,a.Z)(u)||(u=new A.Z(i)),!1!==u&&(e.skyAtmosphere=u);let h=!1!==t.globe&&t.imageryProvider;(0,a.Z)(h)||(h=(0,m.Z)()),!1!==h&&e.imageryLayers.addImageryProvider(h),(0,a.Z)(t.terrainProvider)&&!1!==t.globe&&(e.terrainProvider=t.terrainProvider),this._screenSpaceEventHandler=new p.Z(n),(0,a.Z)(t.sceneMode)&&(t.sceneMode===y.Z.SCENE2D&&this._scene.morphTo2D(0),t.sceneMode===y.Z.COLUMBUS_VIEW&&this._scene.morphToColumbusView(0)),this._useDefaultRenderLoop=void 0,this.useDefaultRenderLoop=(0,s.Z)(t.useDefaultRenderLoop,!0),this._targetFrameRate=void 0,this.targetFrameRate=t.targetFrameRate;const d=this;this._onRenderError=function(e,t){if(d._useDefaultRenderLoop=!1,d._renderLoopRunning=!1,d._showRenderLoopErrors){const e="An error occurred while rendering. Rendering has stopped.";d.showErrorPanel(e,void 0,t)}},e.renderError.addEventListener(this._onRenderError)}catch(e){if(D){const t="Error constructing CesiumWidget.",i='Visit <a href="http://get.webgl.org">http://get.webgl.org</a> to verify that your web browser and hardware support WebGL. Consider trying a different web browser or updating your video drivers. Detailed error information is below:';this.showErrorPanel(t,i,e)}throw e}}Object.defineProperties(O.prototype,{container:{get:function(){return this._container}},canvas:{get:function(){return this._canvas}},creditContainer:{get:function(){return this._creditContainer}},creditViewport:{get:function(){return this._creditViewport}},scene:{get:function(){return this._scene}},imageryLayers:{get:function(){return this._scene.imageryLayers}},terrainProvider:{get:function(){return this._scene.terrainProvider},set:function(e){this._scene.terrainProvider=e}},camera:{get:function(){return this._scene.camera}},clock:{get:function(){return this._clock}},screenSpaceEventHandler:{get:function(){return this._screenSpaceEventHandler}},targetFrameRate:{get:function(){return this._targetFrameRate},set:function(e){if(e<=0)throw new u.Z("targetFrameRate must be greater than 0, or undefined.");this._targetFrameRate=e}},useDefaultRenderLoop:{get:function(){return this._useDefaultRenderLoop},set:function(e){this._useDefaultRenderLoop!==e&&(this._useDefaultRenderLoop=e,e&&!this._renderLoopRunning&&function(e){e._renderLoopRunning=!0;let t=0;(0,f.Z)((function i(n){if(!e.isDestroyed())if(e._useDefaultRenderLoop)try{const r=e._targetFrameRate;if((0,a.Z)(r)){const o=1e3/r,s=n-t;s>o&&(e.resize(),e.render(),t=n-s%o),(0,f.Z)(i)}else e.resize(),e.render(),(0,f.Z)(i)}catch(t){if(e._useDefaultRenderLoop=!1,e._renderLoopRunning=!1,e._showRenderLoopErrors){const i="An error occurred while rendering. Rendering has stopped.";e.showErrorPanel(i,void 0,t)}}else e._renderLoopRunning=!1}))}(this))}},resolutionScale:{get:function(){return this._resolutionScale},set:function(e){if(e<=0)throw new u.Z("resolutionScale must be greater than 0.");this._resolutionScale!==e&&(this._resolutionScale=e,this._forceResize=!0)}},useBrowserRecommendedResolution:{get:function(){return this._useBrowserRecommendedResolution},set:function(e){this._useBrowserRecommendedResolution!==e&&(this._useBrowserRecommendedResolution=e,this._forceResize=!0)}}}),O.prototype.showErrorPanel=function(e,t,i){const n=this._element,r=document.createElement("div");r.className="cesium-widget-errorPanel";const o=document.createElement("div");o.className="cesium-widget-errorPanel-content",r.appendChild(o);const s=document.createElement("div");s.className="cesium-widget-errorPanel-header",s.appendChild(document.createTextNode(e)),o.appendChild(s);const c=document.createElement("div");function u(){c.style.maxHeight=Math.max(Math.round(.9*n.clientHeight-100),30)+"px"}c.className="cesium-widget-errorPanel-scroll",o.appendChild(c),u(),(0,a.Z)(window.addEventListener)&&window.addEventListener("resize",u,!1);const l=(0,a.Z)(t),h=(0,a.Z)(i);if(l||h){const n=document.createElement("div");if(n.className="cesium-widget-errorPanel-message",c.appendChild(n),h){let n=(0,d.Z)(i);l||("string"==typeof i&&(i=new Error(i)),t=(0,d.Z)({name:i.name,message:i.message}),n=i.stack),"undefined"!=typeof console&&console.error(e+"\n"+t+"\n"+n);const r=document.createElement("div");r.className="cesium-widget-errorPanel-message-details collapsed";const s=document.createElement("span");s.className="cesium-widget-errorPanel-more-details",s.appendChild(document.createTextNode("See more...")),r.appendChild(s),r.onclick=function(e){r.removeChild(s),r.appendChild(document.createTextNode(n)),r.className="cesium-widget-errorPanel-message-details",o.className="cesium-widget-errorPanel-content expanded",r.onclick=void 0},c.appendChild(r)}n.innerHTML="<p>"+t+"</p>"}const f=document.createElement("div");f.className="cesium-widget-errorPanel-buttonPanel",o.appendChild(f);const p=document.createElement("button");p.setAttribute("type","button"),p.className="cesium-button",p.appendChild(document.createTextNode("OK")),p.onclick=function(){(0,a.Z)(u)&&(0,a.Z)(window.removeEventListener)&&window.removeEventListener("resize",u,!1),n.removeChild(r)},f.appendChild(p),n.appendChild(r)},O.prototype.isDestroyed=function(){return!1},O.prototype.destroy=function(){(0,a.Z)(this._scene)&&(this._scene.renderError.removeEventListener(this._onRenderError),this._scene=this._scene.destroy()),this._container.removeChild(this._element),this._creditContainer.removeChild(this._innerCreditContainer),(0,c.Z)(this)},O.prototype.resize=function(){const e=this._canvas;(this._forceResize||this._canvasClientWidth!==e.clientWidth||this._canvasClientHeight!==e.clientHeight||this._lastDevicePixelRatio!==window.devicePixelRatio)&&(this._forceResize=!1,x(this),S(this),this._scene.requestRender())},O.prototype.render=function(){if(this._canRender){this._scene.initializeFrame();const e=this._clock.tick();this._scene.render(e)}else this._clock.tick()};const I=O},57698:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(322380),r=i(426468),o=i(54879),s=i(242100),a=i(40080),c=i(412096);function u(e){(0,r.Z)(e)||(e=new n.Z),this._clock=e,this._eventHelper=new s.Z,this._eventHelper.add(e.onTick,this.synchronize,this),this.systemTime=c.Z.observable(a.Z.now()),this.systemTime.equalityComparer=a.Z.equals,this.startTime=c.Z.observable(e.startTime),this.startTime.equalityComparer=a.Z.equals,this.startTime.subscribe((function(t){e.startTime=t,this.synchronize()}),this),this.stopTime=c.Z.observable(e.stopTime),this.stopTime.equalityComparer=a.Z.equals,this.stopTime.subscribe((function(t){e.stopTime=t,this.synchronize()}),this),this.currentTime=c.Z.observable(e.currentTime),this.currentTime.equalityComparer=a.Z.equals,this.currentTime.subscribe((function(t){e.currentTime=t,this.synchronize()}),this),this.multiplier=c.Z.observable(e.multiplier),this.multiplier.subscribe((function(t){e.multiplier=t,this.synchronize()}),this),this.clockStep=c.Z.observable(e.clockStep),this.clockStep.subscribe((function(t){e.clockStep=t,this.synchronize()}),this),this.clockRange=c.Z.observable(e.clockRange),this.clockRange.subscribe((function(t){e.clockRange=t,this.synchronize()}),this),this.canAnimate=c.Z.observable(e.canAnimate),this.canAnimate.subscribe((function(t){e.canAnimate=t,this.synchronize()}),this),this.shouldAnimate=c.Z.observable(e.shouldAnimate),this.shouldAnimate.subscribe((function(t){e.shouldAnimate=t,this.synchronize()}),this),c.Z.track(this,["systemTime","startTime","stopTime","currentTime","multiplier","clockStep","clockRange","canAnimate","shouldAnimate"])}Object.defineProperties(u.prototype,{clock:{get:function(){return this._clock}}}),u.prototype.synchronize=function(){const e=this._clock;this.systemTime=a.Z.now(),this.startTime=e.startTime,this.stopTime=e.stopTime,this.currentTime=e.currentTime,this.multiplier=e.multiplier,this.clockStep=e.clockStep,this.clockRange=e.clockRange,this.canAnimate=e.canAnimate,this.shouldAnimate=e.shouldAnimate},u.prototype.isDestroyed=function(){return!1},u.prototype.destroy=function(){this._eventHelper.removeAll(),(0,o.Z)(this)};const l=u},506041:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(446938);const r=function(){this.canExecute=void 0,this.beforeExecute=void 0,this.afterExecute=void 0,n.Z.throwInstantiationError()}},605517:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(426468),r=i(54879),o=i(446938),s=i(412096),a=i(78320),c=i(615876);function u(e,t){if(!(0,n.Z)(e))throw new o.Z("container is required.");e=(0,a.Z)(e);const i=new c.Z(t,e);i._exitFullScreenPath="M 104.34375 17.5625 L 83.5 38.4375 L 83.40625 18.21875 L 76.125 25.5 L 76.09375 51.78125 L 102.3125 51.8125 L 102.3125 51.78125 L 109.625 44.5 L 89.1875 44.40625 L 110.1875 23.40625 L 104.34375 17.5625 z M 23.75 17.59375 L 17.90625 23.4375 L 38.90625 44.4375 L 18.5 44.53125 L 25.78125 51.8125 L 52 51.78125 L 51.96875 25.53125 L 44.6875 18.25 L 44.625 38.46875 L 23.75 17.59375 z M 25.6875 76.03125 L 18.375 83.3125 L 38.78125 83.40625 L 17.8125 104.40625 L 23.625 110.25 L 44.5 89.375 L 44.59375 109.59375 L 51.875 102.3125 L 51.875 76.0625 L 25.6875 76.03125 z M 102.375 76.15625 L 76.15625 76.1875 L 76.1875 102.4375 L 83.46875 109.71875 L 83.5625 89.53125 L 104.40625 110.375 L 110.25 104.53125 L 89.25 83.53125 L 109.6875 83.46875 L 102.375 76.15625 z",i._enterFullScreenPath="M 83.96875 17.5625 L 83.96875 17.59375 L 76.65625 24.875 L 97.09375 24.96875 L 76.09375 45.96875 L 81.9375 51.8125 L 102.78125 30.9375 L 102.875 51.15625 L 110.15625 43.875 L 110.1875 17.59375 L 83.96875 17.5625 z M 44.125 17.59375 L 17.90625 17.625 L 17.9375 43.90625 L 25.21875 51.1875 L 25.3125 30.96875 L 46.15625 51.8125 L 52 45.96875 L 31 25 L 51.4375 24.90625 L 44.125 17.59375 z M 46.0625 76.03125 L 25.1875 96.875 L 25.09375 76.65625 L 17.8125 83.9375 L 17.8125 110.21875 L 44 110.25 L 51.3125 102.9375 L 30.90625 102.84375 L 51.875 81.875 L 46.0625 76.03125 z M 82 76.15625 L 76.15625 82 L 97.15625 103 L 76.71875 103.0625 L 84.03125 110.375 L 110.25 110.34375 L 110.21875 84.0625 L 102.9375 76.8125 L 102.84375 97 L 82 76.15625 z";const r=document.createElement("button");r.type="button",r.className="cesium-button cesium-fullscreenButton",r.setAttribute("data-bind","attr: { title: tooltip },click: command,enable: isFullscreenEnabled,cesiumSvgPath: { path: isFullscreen ? _exitFullScreenPath : _enterFullScreenPath, width: 128, height: 128 }"),e.appendChild(r),s.Z.applyBindings(i,r),this._container=e,this._viewModel=i,this._element=r}Object.defineProperties(u.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),u.prototype.isDestroyed=function(){return!1},u.prototype.destroy=function(){return this._viewModel.destroy(),s.Z.cleanNode(this._element),this._container.removeChild(this._element),(0,r.Z)(this)};const l=u},615876:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(426468),r=i(406144),o=i(54879),s=i(446938),a=i(529850),c=i(412096),u=i(264890),l=i(78320);function h(e,t){(0,n.Z)(t)||(t=document.body),t=(0,l.Z)(t);const i=this,o=c.Z.observable(a.Z.fullscreen),s=c.Z.observable(a.Z.enabled),h=t.ownerDocument;this.isFullscreen=void 0,c.Z.defineProperty(this,"isFullscreen",{get:function(){return o()}}),this.isFullscreenEnabled=void 0,c.Z.defineProperty(this,"isFullscreenEnabled",{get:function(){return s()},set:function(e){s(e&&a.Z.enabled)}}),this.tooltip=void 0,c.Z.defineProperty(this,"tooltip",(function(){return this.isFullscreenEnabled?o()?"Exit full screen":"Full screen":"Full screen unavailable"})),this._command=(0,u.Z)((function(){a.Z.fullscreen?a.Z.exitFullscreen():a.Z.requestFullscreen(i._fullscreenElement)}),c.Z.getObservable(this,"isFullscreenEnabled")),this._fullscreenElement=(0,r.Z)((0,l.Z)(e),h.body),this._callback=function(){o(a.Z.fullscreen)},h.addEventListener(a.Z.changeEventName,this._callback)}Object.defineProperties(h.prototype,{fullscreenElement:{get:function(){return this._fullscreenElement},set:function(e){if(!(e instanceof Element))throw new s.Z("value must be a valid Element.");this._fullscreenElement=e}},command:{get:function(){return this._command}}}),h.prototype.isDestroyed=function(){return!1},h.prototype.destroy=function(){document.removeEventListener(a.Z.changeEventName,this._callback),(0,o.Z)(this)};const d=h},237354:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(426468),r=i(54879),o=i(446938),s=i(488802),a=i(412096),c=i(78320),u=i(384287);function l(e){if(!(0,n.Z)(e)||!(0,n.Z)(e.container))throw new o.Z("options.container is required.");if(!(0,n.Z)(e.scene))throw new o.Z("options.scene is required.");const t=(0,c.Z)(e.container),i=new u.Z(e);i._startSearchPath="M29.772,26.433l-7.126-7.126c0.96-1.583,1.523-3.435,1.524-5.421C24.169,8.093,19.478,3.401,13.688,3.399C7.897,3.401,3.204,8.093,3.204,13.885c0,5.789,4.693,10.481,10.484,10.481c1.987,0,3.839-0.563,5.422-1.523l7.128,7.127L29.772,26.433zM7.203,13.885c0.006-3.582,2.903-6.478,6.484-6.486c3.579,0.008,6.478,2.904,6.484,6.486c-0.007,3.58-2.905,6.476-6.484,6.484C10.106,20.361,7.209,17.465,7.203,13.885z",i._stopSearchPath="M24.778,21.419 19.276,15.917 24.777,10.415 21.949,7.585 16.447,13.087 10.945,7.585 8.117,10.415 13.618,15.917 8.116,21.419 10.946,24.248 16.447,18.746 21.948,24.248z";const r=document.createElement("form");r.setAttribute("data-bind","submit: search");const l=document.createElement("input");l.type="search",l.className="cesium-geocoder-input",l.setAttribute("placeholder","Enter an address or landmark..."),l.setAttribute("data-bind",'textInput: searchText,disable: isSearchInProgress,event: { keyup: handleKeyUp, keydown: handleKeyDown, mouseover: deselectSuggestion },css: { "cesium-geocoder-input-wide" : keepExpanded || searchText.length > 0 },hasFocus: _focusTextbox'),this._onTextBoxFocus=function(){setTimeout((function(){l.select()}),0)},l.addEventListener("focus",this._onTextBoxFocus,!1),r.appendChild(l),this._textBox=l;const h=document.createElement("span");h.className="cesium-geocoder-searchButton",h.setAttribute("data-bind","click: search,cesiumSvgPath: { path: isSearchInProgress ? _stopSearchPath : _startSearchPath, width: 32, height: 32 }"),r.appendChild(h),t.appendChild(r);const d=document.createElement("div");d.className="search-results",d.setAttribute("data-bind","visible: _suggestionsVisible");const f=document.createElement("ul");f.setAttribute("data-bind","foreach: _suggestions");const p=document.createElement("li");f.appendChild(p),p.setAttribute("data-bind","text: $data.displayName, click: $parent.activateSuggestion, event: { mouseover: $parent.handleMouseover}, css: { active: $data === $parent._selectedSuggestion }"),d.appendChild(f),t.appendChild(d),a.Z.applyBindings(i,r),a.Z.applyBindings(i,d),this._container=t,this._searchSuggestionsContainer=d,this._viewModel=i,this._form=r,this._onInputBegin=function(e){let n=e.target;"function"==typeof e.composedPath&&(n=e.composedPath()[0]),t.contains(n)||(i._focusTextbox=!1,i.hideSuggestions())},this._onInputEnd=function(e){i._focusTextbox=!0,i.showSuggestions()},s.Z.supportsPointerEvents()?(document.addEventListener("pointerdown",this._onInputBegin,!0),t.addEventListener("pointerup",this._onInputEnd,!0),t.addEventListener("pointercancel",this._onInputEnd,!0)):(document.addEventListener("mousedown",this._onInputBegin,!0),t.addEventListener("mouseup",this._onInputEnd,!0),document.addEventListener("touchstart",this._onInputBegin,!0),t.addEventListener("touchend",this._onInputEnd,!0),t.addEventListener("touchcancel",this._onInputEnd,!0))}Object.defineProperties(l.prototype,{container:{get:function(){return this._container}},searchSuggestionsContainer:{get:function(){return this._searchSuggestionsContainer}},viewModel:{get:function(){return this._viewModel}}}),l.prototype.isDestroyed=function(){return!1},l.prototype.destroy=function(){const e=this._container;return s.Z.supportsPointerEvents()?(document.removeEventListener("pointerdown",this._onInputBegin,!0),e.removeEventListener("pointerup",this._onInputEnd,!0)):(document.removeEventListener("mousedown",this._onInputBegin,!0),e.removeEventListener("mouseup",this._onInputEnd,!0),document.removeEventListener("touchstart",this._onInputBegin,!0),e.removeEventListener("touchend",this._onInputEnd,!0)),this._viewModel.destroy(),a.Z.cleanNode(this._form),a.Z.cleanNode(this._searchSuggestionsContainer),e.removeChild(this._form),e.removeChild(this._searchSuggestionsContainer),this._textBox.removeEventListener("focus",this._onTextBoxFocus,!1),(0,r.Z)(this)};const h=l},384287:(e,t,i)=>{"use strict";i.d(t,{Z:()=>C});var n=i(251652),r=i(406144),o=i(426468),s=i(446938),a=i(197685),c=i(640839),u=i(634566),l=i(362017),h=i(583917),d=i(523501),f=i(477274),p=i(648830),m=i(412096),_=i(527758),Z=i(264890),g=i(78320);function y(e){if(!(0,o.Z)(e)||!(0,o.Z)(e.scene))throw new s.Z("options.scene is required.");(0,o.Z)(e.geocoderServices)?this._geocoderServices=e.geocoderServices:this._geocoderServices=[new n.Z,new u.Z({scene:e.scene})],this._viewContainer=e.container,this._scene=e.scene,this._flightDuration=e.flightDuration,this._searchText="",this._isSearchInProgress=!1,this._geocodePromise=void 0,this._complete=new a.Z,this._suggestions=[],this._selectedSuggestion=void 0,this._showSuggestions=!0,this._handleArrowDown=A,this._handleArrowUp=b;const t=this;this._suggestionsVisible=m.Z.pureComputed((function(){const e=m.Z.getObservable(t,"_suggestions")().length>0,i=m.Z.getObservable(t,"_showSuggestions")();return e&&i})),this._searchCommand=(0,Z.Z)((function(e){if(e=(0,r.Z)(e,c.Z.SEARCH),t._focusTextbox=!1,(0,o.Z)(t._selectedSuggestion))return t.activateSuggestion(t._selectedSuggestion),!1;var i;t.hideSuggestions(),t.isSearchInProgress?((i=t)._isSearchInProgress=!1,(0,o.Z)(i._geocodePromise)&&(i._geocodePromise.cancel=!0,i._geocodePromise=void 0)):function(e,t,i){const n=e._searchText;if(v(n))return void e.showSuggestions();e._isSearchInProgress=!0;let r=_.Z.resolve();for(let e=0;e<t.length;e++)r=w(r,t[e],n,i);e._geocodePromise=r,r.then((function(t){if(r.cancel)return;e._isSearchInProgress=!1;const i=t.value;if("fulfilled"===t.state&&(0,o.Z)(i)&&i.length>0)return e._searchText=i[0].displayName,void e.destinationFound(e,i[0].destination);e._searchText=n+" (not found)"}))}(t,t._geocoderServices,e)})),this.deselectSuggestion=function(){t._selectedSuggestion=void 0},this.handleKeyDown=function(e,t){const i="ArrowDown"===t.key||"Down"===t.key||40===t.keyCode,n="ArrowUp"===t.key||"Up"===t.key||38===t.keyCode;return(i||n)&&t.preventDefault(),!0},this.handleKeyUp=function(e,i){const n="ArrowDown"===i.key||"Down"===i.key||40===i.keyCode,r="ArrowUp"===i.key||"Up"===i.key||38===i.keyCode,o="Enter"===i.key||13===i.keyCode;return r?b(t):n?A(t):o&&t._searchCommand(),!0},this.activateSuggestion=function(e){t.hideSuggestions(),t._searchText=e.displayName;const i=e.destination;T(t),t.destinationFound(t,i)},this.hideSuggestions=function(){t._showSuggestions=!1,t._selectedSuggestion=void 0},this.showSuggestions=function(){t._showSuggestions=!0},this.handleMouseover=function(e,i){e!==t._selectedSuggestion&&(t._selectedSuggestion=e)},this.keepExpanded=!1,this.autoComplete=(0,r.Z)(e.autocomplete,!0),this.destinationFound=(0,r.Z)(e.destinationFound,y.flyToDestination),this._focusTextbox=!1,m.Z.track(this,["_searchText","_isSearchInProgress","keepExpanded","_suggestions","_selectedSuggestion","_showSuggestions","_focusTextbox"]);const i=m.Z.getObservable(this,"_searchText");i.extend({rateLimit:{timeout:500}}),this._suggestionSubscription=i.subscribe((function(){y._updateSearchSuggestions(t)})),this.isSearchInProgress=void 0,m.Z.defineProperty(this,"isSearchInProgress",{get:function(){return this._isSearchInProgress}}),this.searchText=void 0,m.Z.defineProperty(this,"searchText",{get:function(){return this.isSearchInProgress?"Searching...":this._searchText},set:function(e){if("string"!=typeof e)throw new s.Z("value must be a valid string.");this._searchText=e}}),this.flightDuration=void 0,m.Z.defineProperty(this,"flightDuration",{get:function(){return this._flightDuration},set:function(e){if((0,o.Z)(e)&&e<0)throw new s.Z("value must be positive.");this._flightDuration=e}})}function b(e){if(0===e._suggestions.length)return;const t=e._suggestions.indexOf(e._selectedSuggestion);if(-1===t||0===t)return void(e._selectedSuggestion=void 0);const i=t-1;e._selectedSuggestion=e._suggestions[i],y._adjustSuggestionsScroll(e,i)}function A(e){if(0===e._suggestions.length)return;const t=e._suggestions.length,i=(e._suggestions.indexOf(e._selectedSuggestion)+1)%t;e._selectedSuggestion=e._suggestions[i],y._adjustSuggestionsScroll(e,i)}function w(e,t,i,n){return e.then((function(e){if((0,o.Z)(e)&&"fulfilled"===e.state&&e.value.length>0)return e;const r=t.geocode(i,n).then((function(e){return{state:"fulfilled",value:e}})).otherwise((function(e){return{state:"rejected",reason:e}}));return r}))}function v(e){return/^\s*$/.test(e)}function T(e){m.Z.getObservable(e,"_suggestions").removeAll()}Object.defineProperties(y.prototype,{complete:{get:function(){return this._complete}},scene:{get:function(){return this._scene}},search:{get:function(){return this._searchCommand}},selectedSuggestion:{get:function(){return this._selectedSuggestion}},suggestions:{get:function(){return this._suggestions}}}),y.prototype.destroy=function(){this._suggestionSubscription.dispose()},y.flyToDestination=function(e,t){const i=e._scene,n=i.mapProjection.ellipsoid,r=i.camera,s=i.terrainProvider;let a,c=t;t instanceof d.Z?l.Z.equalsEpsilon(t.south,t.north,l.Z.EPSILON7)&&l.Z.equalsEpsilon(t.east,t.west,l.Z.EPSILON7)?t=d.Z.center(t):a=(0,p.Z)(t,i):t=n.cartesianToCartographic(t),(0,o.Z)(a)||(a=function(e,t){const i=(0,o.Z)(t)?t.availability:void 0;return(0,o.Z)(i)?(0,f.Z)(t,[e]).then((function(t){return(e=t[0]).height+=1e3,e})):(e.height+=1e3,_.Z.resolve(e))}(t,s)),a.then((function(e){c=n.cartographicToCartesian(e)})).always((function(){r.flyTo({destination:c,complete:function(){e._complete.raiseEvent()},duration:e._flightDuration,endTransform:h.Z.IDENTITY})}))},y._updateSearchSuggestions=function(e){if(!e.autoComplete)return;const t=e._searchText;if(T(e),v(t))return;let i=_.Z.resolve([]);e._geocoderServices.forEach((function(e){i=i.then((function(i){return i.length>=5?i:e.geocode(t,c.Z.AUTOCOMPLETE).then((function(e){return i=i.concat(e)}))}))})),i.then((function(t){const i=e._suggestions;for(let e=0;e<t.length;e++)i.push(t[e])}))},y._adjustSuggestionsScroll=function(e,t){const i=(0,g.Z)(e._viewContainer),n=i.getElementsByClassName("search-results")[0],r=i.getElementsByTagName("li")[t];if(0===t)return void(n.scrollTop=0);const o=r.offsetTop;o+r.clientHeight>n.clientHeight?n.scrollTop=o+r.clientHeight:o<n.scrollTop&&(n.scrollTop=o)};const C=y},191692:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(426468),r=i(54879),o=i(446938),s=i(412096),a=i(78320),c=i(332163);function u(e,t,i){if(!(0,n.Z)(e))throw new o.Z("container is required.");e=(0,a.Z)(e);const r=new c.Z(t,i);r._svgPath="M14,4l-10,8.75h20l-4.25-3.7188v-4.6562h-2.812v2.1875l-2.938-2.5625zm-7.0938,9.906v10.094h14.094v-10.094h-14.094zm2.1876,2.313h3.3122v4.25h-3.3122v-4.25zm5.8442,1.281h3.406v6.438h-3.406v-6.438z";const u=document.createElement("button");u.type="button",u.className="cesium-button cesium-toolbar-button cesium-home-button",u.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 28, height: 28 }"),e.appendChild(u),s.Z.applyBindings(r,u),this._container=e,this._viewModel=r,this._element=u}Object.defineProperties(u.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),u.prototype.isDestroyed=function(){return!1},u.prototype.destroy=function(){return s.Z.cleanNode(this._element),this._container.removeChild(this._element),(0,r.Z)(this)};const l=u},332163:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(426468),r=i(446938),o=i(412096),s=i(264890);function a(e,t){if(!(0,n.Z)(e))throw new r.Z("scene is required.");this._scene=e,this._duration=t;const i=this;this._command=(0,s.Z)((function(){i._scene.camera.flyHome(i._duration)})),this.tooltip="View Home",o.Z.track(this,["tooltip"])}Object.defineProperties(a.prototype,{scene:{get:function(){return this._scene}},command:{get:function(){return this._command}},duration:{get:function(){return this._duration},set:function(e){if((0,n.Z)(e)&&e<0)throw new r.Z("value must be positive.");this._duration=e}}});const c=a},729058:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});var n=i(913216),r=i(357299),o=i(545125),s=i(426468),a=i(54879),c=i(412096),u=i(78320),l=i(264280),h=i(951490);function d(e){r.Z.defined("container",e),e=(0,u.Z)(e);const t=document.createElement("div");t.className="cesium-infoBox",t.setAttribute("data-bind",'css: { "cesium-infoBox-visible" : showInfo, "cesium-infoBox-bodyless" : _bodyless }'),e.appendChild(t);const i=document.createElement("div");i.className="cesium-infoBox-title",i.setAttribute("data-bind","text: titleText"),t.appendChild(i);const a=document.createElement("button");a.type="button",a.className="cesium-button cesium-infoBox-camera",a.setAttribute("data-bind",'attr: { title: "Focus camera on object" },click: function () { cameraClicked.raiseEvent(this); },enable: enableCamera,cesiumSvgPath: { path: cameraIconPath, width: 32, height: 32 }'),t.appendChild(a);const d=document.createElement("button");d.type="button",d.className="cesium-infoBox-close",d.setAttribute("data-bind","click: function () { closeClicked.raiseEvent(this); }"),d.innerHTML="×",t.appendChild(d);const f=document.createElement("iframe");f.className="cesium-infoBox-iframe",f.setAttribute("sandbox","allow-same-origin allow-popups allow-forms"),f.setAttribute("data-bind","style : { maxHeight : maxHeightOffset(40) }"),f.setAttribute("allowfullscreen",!0),t.appendChild(f);const p=new h.Z;c.Z.applyBindings(p,t),this._container=e,this._element=t,this._frame=f,this._viewModel=p,this._descriptionSubscription=void 0;const m=this;f.addEventListener("load",(function(){const e=f.contentDocument,i=e.createElement("link");i.href=(0,n.Z)("Widgets/InfoBox/InfoBoxDescription.css"),i.rel="stylesheet",i.type="text/css";const r=e.createElement("div");r.className="cesium-infoBox-description",e.head.appendChild(i),e.body.appendChild(r),m._descriptionSubscription=(0,l.Z)(p,"description",(function(e){f.style.height="5px",r.innerHTML=e;let i=null;const n=r.firstElementChild;if(null!==n&&1===r.childNodes.length){const e=window.getComputedStyle(n);if(null!==e){const t=e["background-color"],n=o.Z.fromCssColorString(t);(0,s.Z)(n)&&0!==n.alpha&&(i=e["background-color"])}}t.style["background-color"]=i;const a=r.getBoundingClientRect().height;f.style.height=a+"px"}))})),f.setAttribute("src","about:blank")}Object.defineProperties(d.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}},frame:{get:function(){return this._frame}}}),d.prototype.isDestroyed=function(){return!1},d.prototype.destroy=function(){const e=this._container;return c.Z.cleanNode(this._element),e.removeChild(this._element),(0,s.Z)(this._descriptionSubscription)&&this._descriptionSubscription.dispose(),(0,a.Z)(this)};const f=d},951490:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(426468),r=i(197685),o=i(412096);function s(){this._cameraClicked=new r.Z,this._closeClicked=new r.Z,this.maxHeight=500,this.enableCamera=!1,this.isCameraTracking=!1,this.showInfo=!1,this.titleText="",this.description="",o.Z.track(this,["showInfo","titleText","description","maxHeight","enableCamera","isCameraTracking"]),this._loadingIndicatorHtml='<div class="cesium-infoBox-loadingContainer"><span class="cesium-infoBox-loading"></span></div>',this.cameraIconPath=void 0,o.Z.defineProperty(this,"cameraIconPath",{get:function(){return!this.enableCamera||this.isCameraTracking?"M 27.34375 1.65625 L 5.28125 27.9375 L 8.09375 30.3125 L 30.15625 4.03125 L 27.34375 1.65625 z M 13.84375 7.03125 C 11.412798 7.03125 9.46875 8.975298 9.46875 11.40625 L 9.46875 11.59375 L 2.53125 7.21875 L 2.53125 24.0625 L 9.46875 19.6875 C 9.4724893 20.232036 9.5676108 20.7379 9.75 21.21875 L 21.65625 7.03125 L 13.84375 7.03125 z M 28.21875 7.71875 L 14.53125 24.0625 L 25.875 24.0625 C 28.305952 24.0625 30.28125 22.087202 30.28125 19.65625 L 30.28125 11.40625 C 30.28125 9.8371439 29.456025 8.4902779 28.21875 7.71875 z":"M 13.84375 7.03125 C 11.412798 7.03125 9.46875 8.975298 9.46875 11.40625 L 9.46875 11.59375 L 2.53125 7.21875 L 2.53125 24.0625 L 9.46875 19.6875 C 9.4853444 22.104033 11.423165 24.0625 13.84375 24.0625 L 25.875 24.0625 C 28.305952 24.0625 30.28125 22.087202 30.28125 19.65625 L 30.28125 11.40625 C 30.28125 8.975298 28.305952 7.03125 25.875 7.03125 L 13.84375 7.03125 z"}}),o.Z.defineProperty(this,"_bodyless",{get:function(){return!(0,n.Z)(this.description)||0===this.description.length}})}s.prototype.maxHeightOffset=function(e){return this.maxHeight-e+"px"},Object.defineProperties(s.prototype,{cameraClicked:{get:function(){return this._cameraClicked}},closeClicked:{get:function(){return this._closeClicked}}});const a=s},67913:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(357299),r=i(426468);const o={createCheckbox:function(e,t,i){n.Z.typeOf.string("labelText",e),n.Z.typeOf.string("checkedBinding",t);const o=document.createElement("div"),s=document.createElement("label"),a=document.createElement("input");a.type="checkbox";let c="checked: "+t;return(0,r.Z)(i)&&(c+=", enable: "+i),a.setAttribute("data-bind",c),s.appendChild(a),s.appendChild(document.createTextNode(e)),o.appendChild(s),o},createSection:function(e,t,i,r){n.Z.defined("panel",e),n.Z.typeOf.string("headerText",t),n.Z.typeOf.string("sectionVisibleBinding",i),n.Z.typeOf.string("toggleSectionVisibilityBinding",r);const o=document.createElement("div");o.className="cesium-cesiumInspector-section",o.setAttribute("data-bind",'css: { "cesium-cesiumInspector-section-collapsed": !'+i+" }"),e.appendChild(o);const s=document.createElement("h3");s.className="cesium-cesiumInspector-sectionHeader",s.appendChild(document.createTextNode(t)),s.setAttribute("data-bind","click: "+r),o.appendChild(s);const a=document.createElement("div");return a.className="cesium-cesiumInspector-sectionContent",o.appendChild(a),a}}},370422:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});var n=i(913216),r=i(406144),o=i(426468),s=i(54879),a=i(446938),c=i(488802),u=i(412096),l=i(78320),h=i(349108);function d(e){if(!(0,o.Z)(e)||!(0,o.Z)(e.container))throw new a.Z("options.container is required.");const t=(0,l.Z)(e.container),i=new h.Z,s=(0,r.Z)(e.instructionsInitiallyVisible,!1);i.showInstructions=s,i._svgPath="M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466z M17.328,24.371h-2.707v-2.596h2.707V24.371zM17.328,19.003v0.858h-2.707v-1.057c0-3.19,3.63-3.696,3.63-5.963c0-1.034-0.924-1.826-2.134-1.826c-1.254,0-2.354,0.924-2.354,0.924l-1.541-1.915c0,0,1.519-1.584,4.137-1.584c2.487,0,4.796,1.54,4.796,4.136C21.156,16.208,17.328,16.627,17.328,19.003z";const d=document.createElement("span");d.className="cesium-navigationHelpButton-wrapper",t.appendChild(d);const f=document.createElement("button");f.type="button",f.className="cesium-button cesium-toolbar-button cesium-navigation-help-button",f.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 32, height: 32 }"),d.appendChild(f);const p=document.createElement("div");p.className="cesium-navigation-help",p.setAttribute("data-bind",'css: { "cesium-navigation-help-visible" : showInstructions}'),d.appendChild(p);const m=document.createElement("button");m.type="button",m.className="cesium-navigation-button cesium-navigation-button-left",m.setAttribute("data-bind",'click: showClick, css: {"cesium-navigation-button-selected": !_touch, "cesium-navigation-button-unselected": _touch}');const _=document.createElement("img");_.src=(0,n.Z)("Widgets/Images/NavigationHelp/Mouse.svg"),_.className="cesium-navigation-button-icon",_.style.width="25px",_.style.height="25px",m.appendChild(_),m.appendChild(document.createTextNode("Mouse"));const Z=document.createElement("button");Z.type="button",Z.className="cesium-navigation-button cesium-navigation-button-right",Z.setAttribute("data-bind",'click: showTouch, css: {"cesium-navigation-button-selected": _touch, "cesium-navigation-button-unselected": !_touch}');const g=document.createElement("img");g.src=(0,n.Z)("Widgets/Images/NavigationHelp/Touch.svg"),g.className="cesium-navigation-button-icon",g.style.width="25px",g.style.height="25px",Z.appendChild(g),Z.appendChild(document.createTextNode("Touch")),p.appendChild(m),p.appendChild(Z);const y=document.createElement("div");y.className="cesium-click-navigation-help cesium-navigation-help-instructions",y.setAttribute("data-bind",'css: { "cesium-click-navigation-help-visible" : !_touch}'),y.innerHTML=' <table> <tr> <td><img src="'+(0,n.Z)("Widgets/Images/NavigationHelp/MouseLeft.svg")+'" width="48" height="48" /></td> <td> <div class="cesium-navigation-help-pan">Pan view</div> <div class="cesium-navigation-help-details">Left click + drag</div> </td> </tr> <tr> <td><img src="'+(0,n.Z)("Widgets/Images/NavigationHelp/MouseRight.svg")+'" width="48" height="48" /></td> <td> <div class="cesium-navigation-help-zoom">Zoom view</div> <div class="cesium-navigation-help-details">Right click + drag, or</div> <div class="cesium-navigation-help-details">Mouse wheel scroll</div> </td> </tr> <tr> <td><img src="'+(0,n.Z)("Widgets/Images/NavigationHelp/MouseMiddle.svg")+'" width="48" height="48" /></td> <td> <div class="cesium-navigation-help-rotate">Rotate view</div> <div class="cesium-navigation-help-details">Middle click + drag, or</div> <div class="cesium-navigation-help-details">CTRL + Left/Right click + drag</div> </td> </tr> </table>',p.appendChild(y);const b=document.createElement("div");b.className="cesium-touch-navigation-help cesium-navigation-help-instructions",b.setAttribute("data-bind",'css: { "cesium-touch-navigation-help-visible" : _touch}'),b.innerHTML=' <table> <tr> <td><img src="'+(0,n.Z)("Widgets/Images/NavigationHelp/TouchDrag.svg")+'" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-pan">Pan view</div> <div class="cesium-navigation-help-details">One finger drag</div> </td> </tr> <tr> <td><img src="'+(0,n.Z)("Widgets/Images/NavigationHelp/TouchZoom.svg")+'" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-zoom">Zoom view</div> <div class="cesium-navigation-help-details">Two finger pinch</div> </td> </tr> <tr> <td><img src="'+(0,n.Z)("Widgets/Images/NavigationHelp/TouchTilt.svg")+'" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-rotate">Tilt view</div> <div class="cesium-navigation-help-details">Two finger drag, same direction</div> </td> </tr> <tr> <td><img src="'+(0,n.Z)("Widgets/Images/NavigationHelp/TouchRotate.svg")+'" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-tilt">Rotate view</div> <div class="cesium-navigation-help-details">Two finger drag, opposite direction</div> </td> </tr> </table>',p.appendChild(b),u.Z.applyBindings(i,d),this._container=t,this._viewModel=i,this._wrapper=d,this._closeInstructions=function(e){d.contains(e.target)||(i.showInstructions=!1)},c.Z.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeInstructions,!0):(document.addEventListener("mousedown",this._closeInstructions,!0),document.addEventListener("touchstart",this._closeInstructions,!0))}Object.defineProperties(d.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),d.prototype.isDestroyed=function(){return!1},d.prototype.destroy=function(){return c.Z.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeInstructions,!0):(document.removeEventListener("mousedown",this._closeInstructions,!0),document.removeEventListener("touchstart",this._closeInstructions,!0)),u.Z.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),(0,s.Z)(this)};const f=d},349108:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(412096),r=i(264890);function o(){this.showInstructions=!1;const e=this;this._command=(0,r.Z)((function(){e.showInstructions=!e.showInstructions})),this._showClick=(0,r.Z)((function(){e._touch=!1})),this._showTouch=(0,r.Z)((function(){e._touch=!0})),this._touch=!1,this.tooltip="Navigation Instructions",n.Z.track(this,["tooltip","showInstructions","_touch"])}Object.defineProperties(o.prototype,{command:{get:function(){return this._command}},showClick:{get:function(){return this._showClick}},showTouch:{get:function(){return this._showTouch}}});const s=o},300217:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(426468),r=i(54879),o=i(446938),s=i(412096),a=i(78320),c=i(797994);function u(e){if(!(0,n.Z)(e)||!(0,n.Z)(e.container))throw new o.Z("options.container is required.");if(!(0,n.Z)(e.scene))throw new o.Z("options.scene is required.");const t=(0,a.Z)(e.container),i=new c.Z(e),r=document.createElement("div");r.className="cesium-performance-watchdog-message-area",r.setAttribute("data-bind","visible: showingLowFrameRateMessage");const u=document.createElement("button");u.setAttribute("type","button"),u.className="cesium-performance-watchdog-message-dismiss",u.innerHTML="×",u.setAttribute("data-bind","click: dismissMessage"),r.appendChild(u);const l=document.createElement("div");l.className="cesium-performance-watchdog-message",l.setAttribute("data-bind","html: lowFrameRateMessage"),r.appendChild(l),t.appendChild(r),s.Z.applyBindings(i,r),this._container=t,this._viewModel=i,this._element=r}Object.defineProperties(u.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),u.prototype.isDestroyed=function(){return!1},u.prototype.destroy=function(){return this._viewModel.destroy(),s.Z.cleanNode(this._element),this._container.removeChild(this._element),(0,r.Z)(this)};const l=u},797994:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(406144),r=i(426468),o=i(54879),s=i(446938),a=i(695089),c=i(412096),u=i(264890);function l(e){if(!(0,r.Z)(e)||!(0,r.Z)(e.scene))throw new s.Z("options.scene is required.");this._scene=e.scene,this.lowFrameRateMessage=(0,n.Z)(e.lowFrameRateMessage,"This application appears to be performing poorly on your system. Please try using a different web browser or updating your video drivers."),this.lowFrameRateMessageDismissed=!1,this.showingLowFrameRateMessage=!1,c.Z.track(this,["lowFrameRateMessage","lowFrameRateMessageDismissed","showingLowFrameRateMessage"]);const t=this;this._dismissMessage=(0,u.Z)((function(){t.showingLowFrameRateMessage=!1,t.lowFrameRateMessageDismissed=!0}));const i=a.Z.fromScene(e.scene);this._unsubscribeLowFrameRate=i.lowFrameRate.addEventListener((function(){t.lowFrameRateMessageDismissed||(t.showingLowFrameRateMessage=!0)})),this._unsubscribeNominalFrameRate=i.nominalFrameRate.addEventListener((function(){t.showingLowFrameRateMessage=!1}))}Object.defineProperties(l.prototype,{scene:{get:function(){return this._scene}},dismissMessage:{get:function(){return this._dismissMessage}}}),l.prototype.destroy=function(){return this._unsubscribeLowFrameRate(),this._unsubscribeNominalFrameRate(),(0,o.Z)(this)};const h=l},428812:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(426468),r=i(54879),o=i(446938),s=i(488802),a=i(412096),c=i(78320),u=i(477107);function l(e,t){if(!(0,n.Z)(e))throw new o.Z("container is required.");if(!(0,n.Z)(t))throw new o.Z("scene is required.");e=(0,c.Z)(e);const i=new u.Z(t);i._perspectivePath="M 28.15625,10.4375 9.125,13.21875 13.75,43.25 41.75,55.09375 50.8125,37 54.5,11.9375 z m 0.125,3 19.976451,0.394265 L 43.03125,16.875 22.6875,14.28125 z M 50.971746,15.705477 47.90625,36.03125 42.53125,46 44.84375,19.3125 z M 12.625,16.03125 l 29.15625,3.6875 -2.65625,31 L 16.4375,41.125 z",i._orthographicPath="m 31.560594,6.5254438 -20.75,12.4687502 0.1875,24.5625 22.28125,11.8125 19.5,-12 0.65625,-0.375 0,-0.75 0.0312,-23.21875 z m 0.0625,3.125 16.65625,9.5000002 -16.125,10.28125 -17.34375,-9.71875 z m 18.96875,11.1875002 0.15625,20.65625 -17.46875,10.59375 0.15625,-20.28125 z m -37.0625,1.25 17.21875,9.625 -0.15625,19.21875 -16.9375,-9 z";const r=document.createElement("span");r.className="cesium-projectionPicker-wrapper cesium-toolbar-button",e.appendChild(r);const l=document.createElement("button");l.type="button",l.className="cesium-button cesium-toolbar-button",l.setAttribute("data-bind",'css: { "cesium-projectionPicker-buttonPerspective": !_orthographic, "cesium-projectionPicker-buttonOrthographic": _orthographic, "cesium-button-disabled" : sceneMode === _sceneMode.SCENE2D || _flightInProgress, "cesium-projectionPicker-selected": dropDownVisible },attr: { title: selectedTooltip },click: toggleDropDown'),l.innerHTML='\x3c!-- ko cesiumSvgPath: { path: _perspectivePath, width: 64, height: 64, css: "cesium-projectionPicker-iconPerspective" } --\x3e\x3c!-- /ko --\x3e\x3c!-- ko cesiumSvgPath: { path: _orthographicPath, width: 64, height: 64, css: "cesium-projectionPicker-iconOrthographic" } --\x3e\x3c!-- /ko --\x3e',r.appendChild(l);const h=document.createElement("button");h.type="button",h.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",h.setAttribute("data-bind",'css: { "cesium-projectionPicker-visible" : (dropDownVisible && _orthographic), "cesium-projectionPicker-none" : !_orthographic, "cesium-projectionPicker-hidden" : !dropDownVisible },attr: { title: tooltipPerspective },click: switchToPerspective,cesiumSvgPath: { path: _perspectivePath, width: 64, height: 64 }'),r.appendChild(h);const d=document.createElement("button");d.type="button",d.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",d.setAttribute("data-bind",'css: { "cesium-projectionPicker-visible" : (dropDownVisible && !_orthographic), "cesium-projectionPicker-none" : _orthographic, "cesium-projectionPicker-hidden" : !dropDownVisible},attr: { title: tooltipOrthographic },click: switchToOrthographic,cesiumSvgPath: { path: _orthographicPath, width: 64, height: 64 }'),r.appendChild(d),a.Z.applyBindings(i,r),this._viewModel=i,this._container=e,this._wrapper=r,this._closeDropDown=function(e){r.contains(e.target)||(i.dropDownVisible=!1)},s.Z.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(l.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),l.prototype.isDestroyed=function(){return!1},l.prototype.destroy=function(){return this._viewModel.destroy(),s.Z.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),a.Z.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),(0,r.Z)(this)};const h=l},477107:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(426468),r=i(54879),o=i(446938),s=i(242100),a=i(610490),c=i(506678),u=i(412096),l=i(264890);function h(e){if(!(0,n.Z)(e))throw new o.Z("scene is required.");this._scene=e,this._orthographic=e.camera.frustum instanceof a.Z,this._flightInProgress=!1,this.dropDownVisible=!1,this.tooltipPerspective="Perspective Projection",this.tooltipOrthographic="Orthographic Projection",this.selectedTooltip=void 0,this.sceneMode=e.mode,u.Z.track(this,["_orthographic","_flightInProgress","sceneMode","dropDownVisible","tooltipPerspective","tooltipOrthographic"]);const t=this;u.Z.defineProperty(this,"selectedTooltip",(function(){return t._orthographic?t.tooltipOrthographic:t.tooltipPerspective})),this._toggleDropDown=(0,l.Z)((function(){t.sceneMode===c.Z.SCENE2D||t._flightInProgress||(t.dropDownVisible=!t.dropDownVisible)})),this._eventHelper=new s.Z,this._eventHelper.add(e.morphComplete,(function(e,i,n,r){t.sceneMode=n,t._orthographic=n===c.Z.SCENE2D||t._scene.camera.frustum instanceof a.Z})),this._eventHelper.add(e.preRender,(function(){t._flightInProgress=(0,n.Z)(e.camera._currentFlight)})),this._switchToPerspective=(0,l.Z)((function(){t.sceneMode!==c.Z.SCENE2D&&(t._scene.camera.switchToPerspectiveFrustum(),t._orthographic=!1,t.dropDownVisible=!1)})),this._switchToOrthographic=(0,l.Z)((function(){t.sceneMode!==c.Z.SCENE2D&&(t._scene.camera.switchToOrthographicFrustum(),t._orthographic=!0,t.dropDownVisible=!1)})),this._sceneMode=c.Z}Object.defineProperties(h.prototype,{scene:{get:function(){return this._scene}},toggleDropDown:{get:function(){return this._toggleDropDown}},switchToPerspective:{get:function(){return this._switchToPerspective}},switchToOrthographic:{get:function(){return this._switchToOrthographic}},isOrthographicProjection:{get:function(){return this._orthographic}}}),h.prototype.isDestroyed=function(){return!1},h.prototype.destroy=function(){this._eventHelper.removeAll(),(0,r.Z)(this)};const d=h},220440:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var n=i(426468),r=i(54879),o=i(446938),s=i(488802),a=i(412096),c=i(78320),u=i(487153);function l(e,t,i){if(!(0,n.Z)(e))throw new o.Z("container is required.");if(!(0,n.Z)(t))throw new o.Z("scene is required.");e=(0,c.Z)(e);const r=new u.Z(t,i);r._globePath="m 32.401392,4.9330437 c -7.087603,0 -14.096095,2.884602 -19.10793,7.8946843 -5.0118352,5.010083 -7.9296167,11.987468 -7.9296167,19.072999 0,7.085531 2.9177815,14.097848 7.9296167,19.107931 4.837653,4.835961 11.541408,7.631372 18.374354,7.82482 0.05712,0.01231 0.454119,0.139729 0.454119,0.139729 l 0.03493,-0.104797 c 0.08246,7.84e-4 0.162033,0.03493 0.244525,0.03493 0.08304,0 0.161515,-0.03414 0.244526,-0.03493 l 0.03493,0.104797 c 0,0 0.309474,-0.129487 0.349323,-0.139729 6.867765,-0.168094 13.582903,-2.965206 18.444218,-7.82482 2.558195,-2.5573 4.551081,-5.638134 5.903547,-8.977584 1.297191,-3.202966 2.02607,-6.661489 2.02607,-10.130347 0,-6.237309 -2.366261,-12.31219 -6.322734,-17.116794 -0.0034,-0.02316 0.0049,-0.04488 0,-0.06986 -0.01733,-0.08745 -0.104529,-0.278855 -0.104797,-0.279458 -5.31e-4,-0.0012 -0.522988,-0.628147 -0.523984,-0.62878 -3.47e-4,-2.2e-4 -0.133444,-0.03532 -0.244525,-0.06987 C 51.944299,13.447603 51.751076,13.104317 51.474391,12.827728 46.462556,7.8176457 39.488996,4.9330437 32.401392,4.9330437 z m -2.130866,3.5281554 0.104797,9.6762289 c -4.111695,-0.08361 -7.109829,-0.423664 -9.257041,-0.943171 1.198093,-2.269271 2.524531,-4.124404 3.91241,-5.414496 2.167498,-2.0147811 3.950145,-2.8540169 5.239834,-3.3185619 z m 2.794579,0 c 1.280302,0.4754953 3.022186,1.3285948 5.065173,3.2486979 1.424667,1.338973 2.788862,3.303645 3.982275,5.728886 -2.29082,0.403367 -5.381258,0.621049 -8.942651,0.698645 L 33.065105,8.4611991 z m 5.728886,0.2445256 c 4.004072,1.1230822 7.793098,3.1481363 10.724195,6.0782083 0.03468,0.03466 0.07033,0.06991 0.104797,0.104797 -0.45375,0.313891 -0.923054,0.663002 -1.956205,1.082899 -0.647388,0.263114 -1.906242,0.477396 -2.829511,0.733577 -1.382296,-2.988132 -3.027146,-5.368585 -4.785716,-7.0213781 -0.422866,-0.397432 -0.835818,-0.6453247 -1.25756,-0.9781032 z m -15.33525,0.7685092 c -0.106753,0.09503 -0.207753,0.145402 -0.31439,0.244526 -1.684973,1.5662541 -3.298068,3.8232211 -4.680919,6.5672591 -0.343797,-0.14942 -1.035052,-0.273198 -1.292493,-0.419186 -0.956528,-0.542427 -1.362964,-1.022024 -1.537018,-1.292493 -0.0241,-0.03745 -0.01868,-0.0401 -0.03493,-0.06986 2.250095,-2.163342 4.948824,-3.869984 7.859752,-5.0302421 z m -9.641296,7.0912431 c 0.464973,0.571618 0.937729,1.169056 1.956205,1.746612 0.349907,0.198425 1.107143,0.335404 1.537018,0.523983 -1.20166,3.172984 -1.998037,7.051901 -2.165798,11.772162 C 14.256557,30.361384 12.934823,30.161483 12.280427,29.90959 10.644437,29.279855 9.6888882,28.674891 9.1714586,28.267775 8.6540289,27.860658 8.6474751,27.778724 8.6474751,27.778724 l -0.069864,0.03493 C 9.3100294,23.691285 11.163248,19.798527 13.817445,16.565477 z m 37.552149,0.523984 c 2.548924,3.289983 4.265057,7.202594 4.890513,11.318043 -0.650428,0.410896 -1.756876,1.001936 -3.563088,1.606882 -1.171552,0.392383 -3.163859,0.759153 -4.960377,1.117832 -0.04367,-4.752703 -0.784809,-8.591423 -1.88634,-11.807094 0.917574,-0.263678 2.170552,-0.486495 2.864443,-0.76851 1.274693,-0.518066 2.003942,-1.001558 2.654849,-1.467153 z m -31.439008,2.619917 c 2.487341,0.672766 5.775813,1.137775 10.479669,1.222628 l 0.104797,10.689263 0,0.03493 0,0.733577 c -5.435005,-0.09059 -9.512219,-0.519044 -12.610536,-1.117831 0.106127,-4.776683 0.879334,-8.55791 2.02607,-11.562569 z m 23.264866,0.31439 c 1.073459,3.067541 1.833795,6.821314 1.816476,11.702298 -3.054474,0.423245 -7.062018,0.648559 -11.702298,0.698644 l 0,-0.838373 -0.104796,-10.654331 c 4.082416,-0.0864 7.404468,-0.403886 9.990618,-0.908238 z M 8.2632205,30.922625 c 0.7558676,0.510548 1.5529563,1.013339 3.0041715,1.57195 0.937518,0.360875 2.612202,0.647642 3.91241,0.978102 0.112814,3.85566 0.703989,7.107756 1.606883,9.920754 -1.147172,-0.324262 -2.644553,-0.640648 -3.423359,-0.978102 -1.516688,-0.657177 -2.386627,-1.287332 -2.864443,-1.71168 -0.477816,-0.424347 -0.489051,-0.489051 -0.489051,-0.489051 L 9.8002387,40.319395 C 8.791691,37.621767 8.1584238,34.769583 8.1584238,31.900727 c 0,-0.330153 0.090589,-0.648169 0.1047967,-0.978102 z m 48.2763445,0.419186 c 0.0047,0.188973 0.06986,0.36991 0.06986,0.558916 0,2.938869 -0.620228,5.873558 -1.676747,8.628261 -0.07435,0.07583 -0.06552,0.07411 -0.454119,0.349323 -0.606965,0.429857 -1.631665,1.042044 -3.318562,1.676747 -1.208528,0.454713 -3.204964,0.850894 -5.135038,1.25756 0.84593,-2.765726 1.41808,-6.005357 1.606883,-9.815957 2.232369,-0.413371 4.483758,-0.840201 5.938479,-1.327425 1.410632,-0.472457 2.153108,-0.89469 2.96924,-1.327425 z m -38.530252,2.864443 c 3.208141,0.56697 7.372279,0.898588 12.575603,0.978103 l 0.174662,9.885821 c -4.392517,-0.06139 -8.106722,-0.320566 -10.863925,-0.803441 -1.051954,-2.664695 -1.692909,-6.043794 -1.88634,-10.060483 z m 26.793022,0.31439 c -0.246298,3.923551 -0.877762,7.263679 -1.816476,9.885822 -2.561957,0.361954 -5.766249,0.560708 -9.431703,0.62878 l -0.174661,-9.815957 c 4.491734,-0.04969 8.334769,-0.293032 11.42284,-0.698645 z M 12.035901,44.860585 c 0.09977,0.04523 0.105535,0.09465 0.209594,0.139729 1.337656,0.579602 3.441099,1.058072 5.589157,1.537018 1.545042,3.399208 3.548524,5.969402 5.589157,7.789888 -3.034411,-1.215537 -5.871615,-3.007978 -8.174142,-5.309699 -1.245911,-1.245475 -2.271794,-2.662961 -3.213766,-4.156936 z m 40.69605,0 c -0.941972,1.493975 -1.967855,2.911461 -3.213765,4.156936 -2.74253,2.741571 -6.244106,4.696717 -9.955686,5.868615 0.261347,-0.241079 0.507495,-0.394491 0.768509,-0.663713 1.674841,-1.727516 3.320792,-4.181056 4.645987,-7.265904 2.962447,-0.503021 5.408965,-1.122293 7.161107,-1.781544 0.284034,-0.106865 0.337297,-0.207323 0.593848,-0.31439 z m -31.404076,2.305527 c 2.645807,0.376448 5.701178,0.649995 9.466635,0.698645 l 0.139729,7.789888 c -1.38739,-0.480844 -3.316218,-1.29837 -5.659022,-3.388427 -1.388822,-1.238993 -2.743668,-3.0113 -3.947342,-5.100106 z m 20.365491,0.104797 c -1.04872,2.041937 -2.174337,3.779068 -3.353494,4.995309 -1.853177,1.911459 -3.425515,2.82679 -4.611055,3.353494 l -0.139729,-7.789887 c 3.13091,-0.05714 5.728238,-0.278725 8.104278,-0.558916 z",r._flatMapPath="m 2.9825053,17.550598 0,1.368113 0,26.267766 0,1.368113 1.36811,0 54.9981397,0 1.36811,0 0,-1.368113 0,-26.267766 0,-1.368113 -1.36811,0 -54.9981397,0 -1.36811,0 z m 2.73623,2.736226 10.3292497,0 0,10.466063 -10.3292497,0 0,-10.466063 z m 13.0654697,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 10.32926,0 0,10.466063 -10.32926,0 0,-10.466063 z m -41.9326497,13.202288 10.3292497,0 0,10.329252 -10.3292497,0 0,-10.329252 z m 13.0654697,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 10.32926,0 0,10.329252 -10.32926,0 0,-10.329252 z",r._columbusViewPath="m 14.723969,17.675598 -0.340489,0.817175 -11.1680536,26.183638 -0.817175,1.872692 2.076986,0 54.7506996,0 2.07698,0 -0.81717,-1.872692 -11.16805,-26.183638 -0.34049,-0.817175 -0.91933,0 -32.414586,0 -0.919322,0 z m 1.838643,2.723916 6.196908,0 -2.928209,10.418977 -7.729111,0 4.460412,-10.418977 z m 9.02297,0 4.903049,0 0,10.418977 -7.831258,0 2.928209,-10.418977 z m 7.626964,0 5.584031,0 2.62176,10.418977 -8.205791,0 0,-10.418977 z m 8.410081,0 5.51593,0 4.46042,10.418977 -7.38863,0 -2.58772,-10.418977 z m -30.678091,13.142892 8.103649,0 -2.89416,10.282782 -9.6018026,0 4.3923136,-10.282782 z m 10.929711,0 8.614384,0 0,10.282782 -11.508544,0 2.89416,-10.282782 z m 11.338299,0 8.852721,0 2.58772,10.282782 -11.440441,0 0,-10.282782 z m 11.678781,0 7.86531,0 4.39231,10.282782 -9.6699,0 -2.58772,-10.282782 z";const l=document.createElement("span");l.className="cesium-sceneModePicker-wrapper cesium-toolbar-button",e.appendChild(l);const h=document.createElement("button");h.type="button",h.className="cesium-button cesium-toolbar-button",h.setAttribute("data-bind",'css: { "cesium-sceneModePicker-button2D": sceneMode === _sceneMode.SCENE2D, "cesium-sceneModePicker-button3D": sceneMode === _sceneMode.SCENE3D, "cesium-sceneModePicker-buttonColumbusView": sceneMode === _sceneMode.COLUMBUS_VIEW, "cesium-sceneModePicker-selected": dropDownVisible },attr: { title: selectedTooltip },click: toggleDropDown'),h.innerHTML='\x3c!-- ko cesiumSvgPath: { path: _globePath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon3D" } --\x3e\x3c!-- /ko --\x3e\x3c!-- ko cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon2D" } --\x3e\x3c!-- /ko --\x3e\x3c!-- ko cesiumSvgPath: { path: _columbusViewPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-iconColumbusView" } --\x3e\x3c!-- /ko --\x3e',l.appendChild(h);const d=document.createElement("button");d.type="button",d.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",d.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.SCENE3D)) || (!dropDownVisible && (sceneMode === _sceneMode.SCENE3D)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE3D, "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip3D },click: morphTo3D,cesiumSvgPath: { path: _globePath, width: 64, height: 64 }'),l.appendChild(d);const f=document.createElement("button");f.type="button",f.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",f.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.SCENE2D)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE2D, "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip2D },click: morphTo2D,cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64 }'),l.appendChild(f);const p=document.createElement("button");p.type="button",p.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",p.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.COLUMBUS_VIEW)) || (!dropDownVisible && (sceneMode === _sceneMode.COLUMBUS_VIEW)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.COLUMBUS_VIEW, "cesium-sceneModePicker-hidden" : !dropDownVisible},attr: { title: tooltipColumbusView },click: morphToColumbusView,cesiumSvgPath: { path: _columbusViewPath, width: 64, height: 64 }'),l.appendChild(p),a.Z.applyBindings(r,l),this._viewModel=r,this._container=e,this._wrapper=l,this._closeDropDown=function(e){l.contains(e.target)||(r.dropDownVisible=!1)},s.Z.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(l.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),l.prototype.isDestroyed=function(){return!1},l.prototype.destroy=function(){return this._viewModel.destroy(),s.Z.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),a.Z.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),(0,r.Z)(this)};const h=l},487153:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(406144),r=i(426468),o=i(54879),s=i(446938),a=i(242100),c=i(506678),u=i(412096),l=i(264890);function h(e,t){if(!(0,r.Z)(e))throw new s.Z("scene is required.");this._scene=e;const i=this;this._eventHelper=new a.Z,this._eventHelper.add(e.morphStart,(function(e,t,n,r){i.sceneMode=n,i.dropDownVisible=!1})),this._duration=(0,n.Z)(t,2),this.sceneMode=e.mode,this.dropDownVisible=!1,this.tooltip2D="2D",this.tooltip3D="3D",this.tooltipColumbusView="Columbus View",u.Z.track(this,["sceneMode","dropDownVisible","tooltip2D","tooltip3D","tooltipColumbusView"]),this.selectedTooltip=void 0,u.Z.defineProperty(this,"selectedTooltip",(function(){const e=i.sceneMode;return e===c.Z.SCENE2D?i.tooltip2D:e===c.Z.SCENE3D?i.tooltip3D:i.tooltipColumbusView})),this._toggleDropDown=(0,l.Z)((function(){i.dropDownVisible=!i.dropDownVisible})),this._morphTo2D=(0,l.Z)((function(){e.morphTo2D(i._duration)})),this._morphTo3D=(0,l.Z)((function(){e.morphTo3D(i._duration)})),this._morphToColumbusView=(0,l.Z)((function(){e.morphToColumbusView(i._duration)})),this._sceneMode=c.Z}Object.defineProperties(h.prototype,{scene:{get:function(){return this._scene}},duration:{get:function(){return this._duration},set:function(e){if(e<0)throw new s.Z("duration value must be positive.");this._duration=e}},toggleDropDown:{get:function(){return this._toggleDropDown}},morphTo2D:{get:function(){return this._morphTo2D}},morphTo3D:{get:function(){return this._morphTo3D}},morphToColumbusView:{get:function(){return this._morphToColumbusView}}}),h.prototype.isDestroyed=function(){return!1},h.prototype.destroy=function(){this._eventHelper.removeAll(),(0,o.Z)(this)};const d=h},240303:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(426468),r=i(54879),o=i(446938),s=i(412096),a=i(78320),c=i(332889);function u(e,t){if(!(0,n.Z)(e))throw new o.Z("container is required.");e=(0,a.Z)(e),this._container=e;const i=document.createElement("div");i.className="cesium-selection-wrapper",i.setAttribute("data-bind",'style: { "top" : _screenPositionY, "left" : _screenPositionX },css: { "cesium-selection-wrapper-visible" : isVisible }'),e.appendChild(i),this._element=i;const r="http://www.w3.org/2000/svg",u=document.createElementNS(r,"svg:svg");u.setAttribute("width",160),u.setAttribute("height",160),u.setAttribute("viewBox","0 0 160 160");const l=document.createElementNS(r,"g");l.setAttribute("transform","translate(80,80)"),u.appendChild(l);const h=document.createElementNS(r,"path");h.setAttribute("data-bind","attr: { transform: _transform }"),h.setAttribute("d","M -34 -34 L -34 -11.25 L -30 -15.25 L -30 -30 L -15.25 -30 L -11.25 -34 L -34 -34 z M 11.25 -34 L 15.25 -30 L 30 -30 L 30 -15.25 L 34 -11.25 L 34 -34 L 11.25 -34 z M -34 11.25 L -34 34 L -11.25 34 L -15.25 30 L -30 30 L -30 15.25 L -34 11.25 z M 34 11.25 L 30 15.25 L 30 30 L 15.25 30 L 11.25 34 L 34 34 L 34 11.25 z"),l.appendChild(h),i.appendChild(u);const d=new c.Z(t,this._element,this._container);this._viewModel=d,s.Z.applyBindings(this._viewModel,this._element)}Object.defineProperties(u.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),u.prototype.isDestroyed=function(){return!1},u.prototype.destroy=function(){const e=this._container;return s.Z.cleanNode(this._element),e.removeChild(this._element),(0,r.Z)(this)};const l=u},332889:(e,t,i)=>{"use strict";i.d(t,{Z:()=>f});var n=i(337968),r=i(406144),o=i(426468),s=i(446938),a=i(696047),c=i(867536),u=i(412096);const l=new n.Z,h="-1000px";function d(e,t,i){if(!(0,o.Z)(e))throw new s.Z("scene is required.");if(!(0,o.Z)(t))throw new s.Z("selectionIndicatorElement is required.");if(!(0,o.Z)(i))throw new s.Z("container is required.");this._scene=e,this._screenPositionX=h,this._screenPositionY=h,this._tweens=e.tweens,this._container=(0,r.Z)(i,document.body),this._selectionIndicatorElement=t,this._scale=1,this.position=void 0,this.showSelection=!1,u.Z.track(this,["position","_screenPositionX","_screenPositionY","_scale","showSelection"]),this.isVisible=void 0,u.Z.defineProperty(this,"isVisible",{get:function(){return this.showSelection&&(0,o.Z)(this.position)}}),u.Z.defineProperty(this,"_transform",{get:function(){return"scale("+this._scale+")"}}),this.computeScreenSpacePosition=function(t,i){return c.Z.wgs84ToWindowCoordinates(e,t,i)}}d.prototype.update=function(){if(this.showSelection&&(0,o.Z)(this.position)){const e=this.computeScreenSpacePosition(this.position,l);if((0,o.Z)(e)){const t=this._container,i=t.parentNode.clientWidth,n=t.parentNode.clientHeight,r=this._selectionIndicatorElement.clientWidth,o=.5*r;e.x=Math.min(Math.max(e.x,-r),i+r)-o,e.y=Math.min(Math.max(e.y,-r),n+r)-o,this._screenPositionX=Math.floor(e.x+.25)+"px",this._screenPositionY=Math.floor(e.y+.25)+"px"}else this._screenPositionX=h,this._screenPositionY=h}},d.prototype.animateAppear=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:2,stopValue:1,duration:.8,easingFunction:a.Z.EXPONENTIAL_OUT})},d.prototype.animateDepart=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:this._scale,stopValue:1.5,duration:.8,easingFunction:a.Z.EXPONENTIAL_OUT})},Object.defineProperties(d.prototype,{container:{get:function(){return this._container}},selectionIndicatorElement:{get:function(){return this._selectionIndicatorElement}},scene:{get:function(){return this._scene}}});const f=d},214798:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});const n="http://www.w3.org/2000/svg",r="cesium-svgPath-svg",o={register:function(e){e.bindingHandlers.cesiumSvgPath={init:function(t,i){const o=document.createElementNS(n,"svg:svg");o.setAttribute("class",r);const s=document.createElementNS(n,"path");return o.appendChild(s),e.virtualElements.setDomNodeChildren(t,[o]),e.computed({read:function(){const t=e.unwrap(i());s.setAttribute("d",e.unwrap(t.path));const n=e.unwrap(t.width),a=e.unwrap(t.height);o.setAttribute("width",n),o.setAttribute("height",a),o.setAttribute("viewBox","0 0 "+n+" "+a),t.css&&o.setAttribute("class",r+" "+e.unwrap(t.css))},disposeWhenNodeIsRemoved:t}),{controlsDescendantBindings:!0}}},e.virtualElements.allowedBindings.cesiumSvgPath=!0}}},618198:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_});var n=i(449745),r=i(426468),o=i(54879),s=i(446938),a=i(40080),c=i(78320),u=i(816850),l=i(922255);let h=1e12;const d=[.001,.002,.005,.01,.02,.05,.1,.25,.5,1,2,5,10,15,30,60,120,300,600,900,1800,3600,7200,14400,21600,43200,86400,172800,345600,604800,1296e3,2592e3,5184e3,7776e3,15552e3,31536e3,63072e3,126144e3,15768e4,31536e4,63072e4,126144e4,15768e5,31536e5,63072e5,126144e5,15768e6,31536e6],f=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function p(e,t){if(!(0,r.Z)(e))throw new s.Z("container is required.");if(!(0,r.Z)(t))throw new s.Z("clock is required.");const i=(e=(0,c.Z)(e)).ownerDocument;this.container=e;const n=i.createElement("div");var o;n.className="cesium-timeline-main",e.appendChild(n),this._topDiv=n,this._endJulian=void 0,this._epochJulian=void 0,this._lastXPos=void 0,this._scrubElement=void 0,this._startJulian=void 0,this._timeBarSecondsSpan=void 0,this._clock=t,this._scrubJulian=t.currentTime,this._mainTicSpan=-1,this._mouseMode=0,this._touchMode=0,this._touchState={centerX:0,spanX:0},this._mouseX=0,this._timelineDrag=0,this._timelineDragLocation=void 0,this._lastHeight=void 0,this._lastWidth=void 0,this._topDiv.innerHTML='<div class="cesium-timeline-bar"></div><div class="cesium-timeline-trackContainer"><canvas class="cesium-timeline-tracks" width="10" height="1"></canvas></div><div class="cesium-timeline-needle"></div><span class="cesium-timeline-ruler"></span>',this._timeBarEle=this._topDiv.childNodes[0],this._trackContainer=this._topDiv.childNodes[1],this._trackListEle=this._topDiv.childNodes[1].childNodes[0],this._needleEle=this._topDiv.childNodes[2],this._rulerEle=this._topDiv.childNodes[3],this._context=this._trackListEle.getContext("2d"),this._trackList=[],this._highlightRanges=[],this.zoomTo(t.startTime,t.stopTime),this._onMouseDown=(o=this,function(e){4!==o._mouseMode&&(0===e.button?(o._mouseMode=1,o._scrubElement&&(o._scrubElement.style.backgroundPosition="-16px 0"),o._onMouseMove(e)):(o._mouseX=e.clientX,2===e.button?o._mouseMode=3:o._mouseMode=2)),e.preventDefault()}),this._onMouseUp=function(e){return function(t){e._mouseMode=0,e._scrubElement&&(e._scrubElement.style.backgroundPosition="0 0"),e._timelineDrag=0,e._timelineDragLocation=void 0}}(this),this._onMouseMove=function(e){return function(t){let i;if(1===e._mouseMode){t.preventDefault();const i=t.clientX-e._topDiv.getBoundingClientRect().left;i<0?(e._timelineDragLocation=0,e._timelineDrag=-.01*e._timeBarSecondsSpan):i>e._topDiv.clientWidth?(e._timelineDragLocation=e._topDiv.clientWidth,e._timelineDrag=.01*e._timeBarSecondsSpan):(e._timelineDragLocation=void 0,e._setTimeBarTime(i,i*e._timeBarSecondsSpan/e._topDiv.clientWidth))}else if(2===e._mouseMode){if(i=e._mouseX-t.clientX,e._mouseX=t.clientX,0!==i){const t=i*e._timeBarSecondsSpan/e._topDiv.clientWidth;e.zoomTo(a.Z.addSeconds(e._startJulian,t,new a.Z),a.Z.addSeconds(e._endJulian,t,new a.Z))}}else 3===e._mouseMode&&(i=e._mouseX-t.clientX,e._mouseX=t.clientX,0!==i&&e.zoomFrom(Math.pow(1.01,i)))}}(this),this._onMouseWheel=function(e){return function(t){let i=t.wheelDeltaY||t.wheelDelta||-t.detail;h=Math.max(Math.min(Math.abs(i),h),1),i/=h,e.zoomFrom(Math.pow(1.05,-i))}}(this),this._onTouchStart=function(e){return function(t){const i=t.touches.length;let n,r;const o=e._topDiv.getBoundingClientRect().left;t.preventDefault(),e._mouseMode=4,1===i?(n=a.Z.secondsDifference(e._scrubJulian,e._startJulian),r=Math.round(n*e._topDiv.clientWidth/e._timeBarSecondsSpan+o),Math.abs(t.touches[0].clientX-r)<50?(e._touchMode=1,e._scrubElement&&(e._scrubElement.style.backgroundPosition=1===i?"-16px 0":"0 0")):(e._touchMode=3,e._touchState.centerX=t.touches[0].clientX-o)):2===i?(e._touchMode=2,e._touchState.centerX=.5*(t.touches[0].clientX+t.touches[1].clientX)-o,e._touchState.spanX=Math.abs(t.touches[0].clientX-t.touches[1].clientX)):e._touchMode=4}}(this),this._onTouchMove=function(e){return function(t){let i,n,o,s,c,u,l=1;const h=e._topDiv.getBoundingClientRect().left;3===e._touchMode&&(e._touchMode=2),e._mouseMode=4,1===e._touchMode?(t.preventDefault(),1===t.changedTouches.length&&(n=t.changedTouches[0].clientX-h,n>=0&&n<=e._topDiv.clientWidth&&e._setTimeBarTime(n,n*e._timeBarSecondsSpan/e._topDiv.clientWidth))):2===e._touchMode&&(o=t.touches.length,2===o?(s=.5*(t.touches[0].clientX+t.touches[1].clientX)-h,c=Math.abs(t.touches[0].clientX-t.touches[1].clientX)):1===o&&(s=t.touches[0].clientX-h,c=0),(0,r.Z)(s)&&(c>0&&e._touchState.spanX>0?(l=e._touchState.spanX/c,u=a.Z.addSeconds(e._startJulian,(e._touchState.centerX*e._timeBarSecondsSpan-s*e._timeBarSecondsSpan*l)/e._topDiv.clientWidth,new a.Z)):(i=e._touchState.centerX-s,u=a.Z.addSeconds(e._startJulian,i*e._timeBarSecondsSpan/e._topDiv.clientWidth,new a.Z)),e.zoomTo(u,a.Z.addSeconds(u,e._timeBarSecondsSpan*l,new a.Z)),e._touchState.centerX=s,e._touchState.spanX=c))}}(this),this._onTouchEnd=function(e){return function(t){const i=t.touches.length,n=e._topDiv.getBoundingClientRect().left;3===e._touchMode?(e._touchMode=1,e._onTouchMove(t)):1===e._touchMode&&e._onTouchMove(t),e._mouseMode=4,1!==i?e._touchMode=i>0?4:0:2===e._touchMode&&(e._touchState.centerX=t.touches[0].clientX-n),e._scrubElement&&(e._scrubElement.style.backgroundPosition="0 0")}}(this);const u=this._timeBarEle;i.addEventListener("mouseup",this._onMouseUp,!1),i.addEventListener("mousemove",this._onMouseMove,!1),u.addEventListener("mousedown",this._onMouseDown,!1),u.addEventListener("DOMMouseScroll",this._onMouseWheel,!1),u.addEventListener("mousewheel",this._onMouseWheel,!1),u.addEventListener("touchstart",this._onTouchStart,!1),u.addEventListener("touchmove",this._onTouchMove,!1),u.addEventListener("touchend",this._onTouchEnd,!1),u.addEventListener("touchcancel",this._onTouchEnd,!1),this._topDiv.oncontextmenu=function(){return!1},t.onTick.addEventListener(this.updateFromClock,this),this.updateFromClock()}function m(e){return e<10?"0"+e.toString():e.toString()}p.prototype.addEventListener=function(e,t,i){this._topDiv.addEventListener(e,t,i)},p.prototype.removeEventListener=function(e,t,i){this._topDiv.removeEventListener(e,t,i)},p.prototype.isDestroyed=function(){return!1},p.prototype.destroy=function(){this._clock.onTick.removeEventListener(this.updateFromClock,this);const e=this.container.ownerDocument;e.removeEventListener("mouseup",this._onMouseUp,!1),e.removeEventListener("mousemove",this._onMouseMove,!1);const t=this._timeBarEle;t.removeEventListener("mousedown",this._onMouseDown,!1),t.removeEventListener("DOMMouseScroll",this._onMouseWheel,!1),t.removeEventListener("mousewheel",this._onMouseWheel,!1),t.removeEventListener("touchstart",this._onTouchStart,!1),t.removeEventListener("touchmove",this._onTouchMove,!1),t.removeEventListener("touchend",this._onTouchEnd,!1),t.removeEventListener("touchcancel",this._onTouchEnd,!1),this.container.removeChild(this._topDiv),(0,o.Z)(this)},p.prototype.addHighlightRange=function(e,t,i){const n=new u.Z(e,t,i);return this._highlightRanges.push(n),this.resize(),n},p.prototype.addTrack=function(e,t,i,n){const r=new l.Z(e,t,i,n);return this._trackList.push(r),this._lastHeight=void 0,this.resize(),r},p.prototype.zoomTo=function(e,t){if(!(0,r.Z)(e))throw new s.Z("startTime is required.");if(!(0,r.Z)(t))throw new s.Z("stopTime is required");if(a.Z.lessThanOrEquals(t,e))throw new s.Z("Start time must come before end time.");if(this._startJulian=e,this._endJulian=t,this._timeBarSecondsSpan=a.Z.secondsDifference(t,e),this._clock&&this._clock.clockRange!==n.Z.UNBOUNDED){const e=this._clock.startTime,t=this._clock.stopTime,i=a.Z.secondsDifference(t,e),n=a.Z.secondsDifference(e,this._startJulian),r=a.Z.secondsDifference(t,this._endJulian);this._timeBarSecondsSpan>=i?(this._timeBarSecondsSpan=i,this._startJulian=this._clock.startTime,this._endJulian=this._clock.stopTime):n>0?(this._endJulian=a.Z.addSeconds(this._endJulian,n,new a.Z),this._startJulian=e,this._timeBarSecondsSpan=a.Z.secondsDifference(this._endJulian,this._startJulian)):r<0&&(this._startJulian=a.Z.addSeconds(this._startJulian,r,new a.Z),this._endJulian=t,this._timeBarSecondsSpan=a.Z.secondsDifference(this._endJulian,this._startJulian))}this._makeTics();const i=document.createEvent("Event");i.initEvent("setzoom",!0,!0),i.startJulian=this._startJulian,i.endJulian=this._endJulian,i.epochJulian=this._epochJulian,i.totalSpan=this._timeBarSecondsSpan,i.mainTicSpan=this._mainTicSpan,this._topDiv.dispatchEvent(i)},p.prototype.zoomFrom=function(e){let t=a.Z.secondsDifference(this._scrubJulian,this._startJulian);e>1||t<0||t>this._timeBarSecondsSpan?t=.5*this._timeBarSecondsSpan:t+=t-.5*this._timeBarSecondsSpan;const i=this._timeBarSecondsSpan-t;this.zoomTo(a.Z.addSeconds(this._startJulian,t-t*e,new a.Z),a.Z.addSeconds(this._endJulian,i*e-i,new a.Z))},p.prototype.makeLabel=function(e){const t=a.Z.toGregorianDate(e),i=t.millisecond;let n=" UTC";if(i>0&&this._timeBarSecondsSpan<3600){for(n=Math.floor(i).toString();n.length<3;)n="0"+n;n="."+n}return f[t.month-1]+" "+t.day+" "+t.year+" "+m(t.hour)+":"+m(t.minute)+":"+m(t.second)+n},p.prototype.smallestTicInPixels=7,p.prototype._makeTics=function(){const e=this._timeBarEle,t=a.Z.secondsDifference(this._scrubJulian,this._startJulian),i=Math.round(t*this._topDiv.clientWidth/this._timeBarSecondsSpan),n=i-8;let r;const o=this;this._needleEle.style.left=i.toString()+"px";let s="";const c=.01,u=31536e6,l=1e-10;let h=0,f=this._timeBarSecondsSpan;f<c?(f=c,this._timeBarSecondsSpan=c,this._endJulian=a.Z.addSeconds(this._startJulian,c,new a.Z)):f>u&&(f=u,this._timeBarSecondsSpan=u,this._endJulian=a.Z.addSeconds(this._startJulian,u,new a.Z));let p=this._timeBarEle.clientWidth;p<10&&(p=10);const m=this._startJulian,_=Math.min(f/p*1e-5,.4);let Z;const g=a.Z.toGregorianDate(m);Z=f>31536e4?a.Z.fromDate(new Date(Date.UTC(100*Math.floor(g.year/100),0))):f>31536e3?a.Z.fromDate(new Date(Date.UTC(10*Math.floor(g.year/10),0))):f>86400?a.Z.fromDate(new Date(Date.UTC(g.year,0))):a.Z.fromDate(new Date(Date.UTC(g.year,g.month,g.day)));const y=a.Z.secondsDifference(this._startJulian,a.Z.addSeconds(Z,_,new a.Z));let b=y+f;function A(e){return Math.floor(y/e)*e}function w(e,t){return Math.ceil(e/t+.5)*t}function v(e){return(e-y)/f}function T(e,t){return e-t*Math.round(e/t)}this._epochJulian=Z,this._rulerEle.innerHTML=this.makeLabel(a.Z.addSeconds(this._endJulian,-.01,new a.Z));let C=this._rulerEle.offsetWidth+20;C<30&&(C=180);const E=h;h-=l;const x={startTime:y,startJulian:m,epochJulian:Z,duration:f,timeBarWidth:p,getAlpha:v};this._highlightRanges.forEach((function(e){s+=e.render(x)}));let S=0,O=0,I=0,D=C/p;D>1&&(D=1),D*=this._timeBarSecondsSpan;let P=-1,R=-1;const B=d.length;let M;for(M=0;M<B;++M){const e=d[M];if(++P,S=e,e>D&&e>h)break;R<0&&p*(e/this._timeBarSecondsSpan)>=this.smallestTicInPixels&&(R=P)}if(P>0){for(;P>0;)if(--P,Math.abs(T(S,d[P]))<1e-5){d[P]>=h&&(O=d[P]);break}if(R>=0)for(;R<P;){if(Math.abs(T(O,d[R]))<1e-5&&d[R]>=h){I=d[R];break}++R}}h=E,h>l&&I<1e-5&&Math.abs(h-S)>l&&(I=h,h<=S+l&&(O=0));let L,N=-999999;if(p*(I/this._timeBarSecondsSpan)>=3)for(r=A(I);r<=b;r=w(r,I))s+='<span class="cesium-timeline-ticTiny" style="left: '+Math.round(p*v(r)).toString()+'px;"></span>';if(p*(O/this._timeBarSecondsSpan)>=3)for(r=A(O);r<=b;r=w(r,O))s+='<span class="cesium-timeline-ticSub" style="left: '+Math.round(p*v(r)).toString()+'px;"></span>';if(p*(S/this._timeBarSecondsSpan)>=2){this._mainTicSpan=S,b+=S,r=A(S);const e=a.Z.computeTaiMinusUtc(Z);for(;r<=b;){let t=a.Z.addSeconds(m,r-y,new a.Z);if(S>2.1){const i=a.Z.computeTaiMinusUtc(t);Math.abs(i-e)>.1&&(r+=i-e,t=a.Z.addSeconds(m,r-y,new a.Z))}const i=Math.round(p*v(r)),n=this.makeLabel(t);this._rulerEle.innerHTML=n,L=this._rulerEle.offsetWidth,L<10&&(L=C);const o=i-(L/2-1);o>N?(N=o+L+5,s+='<span class="cesium-timeline-ticMain" style="left: '+i.toString()+'px;"></span><span class="cesium-timeline-ticLabel" style="left: '+o.toString()+'px;">'+n+"</span>"):s+='<span class="cesium-timeline-ticSub" style="left: '+i.toString()+'px;"></span>',r=w(r,S)}}else this._mainTicSpan=-1;s+='<span class="cesium-timeline-icon16" style="left:'+n+'px;bottom:0;background-position: 0 0;"></span>',e.innerHTML=s,this._scrubElement=e.lastChild,this._context.clearRect(0,0,this._trackListEle.width,this._trackListEle.height),x.y=0,this._trackList.forEach((function(e){e.render(o._context,x),x.y+=e.height}))},p.prototype.updateFromClock=function(){this._scrubJulian=this._clock.currentTime;const e=this._scrubElement;if((0,r.Z)(this._scrubElement)){const t=a.Z.secondsDifference(this._scrubJulian,this._startJulian),i=Math.round(t*this._topDiv.clientWidth/this._timeBarSecondsSpan);this._lastXPos!==i&&(this._lastXPos=i,e.style.left=i-8+"px",this._needleEle.style.left=i+"px")}(0,r.Z)(this._timelineDragLocation)&&(this._setTimeBarTime(this._timelineDragLocation,this._timelineDragLocation*this._timeBarSecondsSpan/this._topDiv.clientWidth),this.zoomTo(a.Z.addSeconds(this._startJulian,this._timelineDrag,new a.Z),a.Z.addSeconds(this._endJulian,this._timelineDrag,new a.Z)))},p.prototype._setTimeBarTime=function(e,t){if(e=Math.round(e),this._scrubJulian=a.Z.addSeconds(this._startJulian,t,new a.Z),this._scrubElement){const t=e-8;this._scrubElement.style.left=t.toString()+"px",this._needleEle.style.left=e.toString()+"px"}const i=document.createEvent("Event");i.initEvent("settime",!0,!0),i.clientX=e,i.timeSeconds=t,i.timeJulian=this._scrubJulian,i.clock=this._clock,this._topDiv.dispatchEvent(i)},p.prototype.resize=function(){const e=this.container.clientWidth,t=this.container.clientHeight;if(e===this._lastWidth&&t===this._lastHeight)return;this._trackContainer.style.height=t+"px";let i=1;this._trackList.forEach((function(e){i+=e.height})),this._trackListEle.style.height=i.toString()+"px",this._trackListEle.width=this._trackListEle.clientWidth,this._trackListEle.height=i,this._makeTics(),this._lastXPos=void 0,this._lastWidth=e,this._lastHeight=t};const _=p},816850:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(406144),r=i(40080);function o(e,t,i){this._color=e,this._height=t,this._base=(0,n.Z)(i,0)}o.prototype.getHeight=function(){return this._height},o.prototype.getBase=function(){return this._base},o.prototype.getStartTime=function(){return this._start},o.prototype.getStopTime=function(){return this._stop},o.prototype.setRange=function(e,t){this._start=e,this._stop=t},o.prototype.render=function(e){let t="";if(this._start&&this._stop&&this._color){const i=r.Z.secondsDifference(this._start,e.epochJulian);let n=Math.round(e.timeBarWidth*e.getAlpha(i));const o=r.Z.secondsDifference(this._stop,e.epochJulian);let s=Math.round(e.timeBarWidth*e.getAlpha(o))-n;n<0&&(s+=n,n=0),n+s>e.timeBarWidth&&(s=e.timeBarWidth-n),s>0&&(t='<span class="cesium-timeline-highlight" style="left: '+n.toString()+"px; width: "+s.toString()+"px; bottom: "+this._base.toString()+"px; height: "+this._height+"px; background-color: "+this._color+';"></span>')}return t};const s=o},922255:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(545125),r=i(426468),o=i(40080);function s(e,t,i,r){this.interval=e,this.height=t,this.color=i||new n.Z(.5,.5,.5,1),this.backgroundColor=r||new n.Z(0,0,0,0)}s.prototype.render=function(e,t){const i=this.interval.start,n=this.interval.stop,s=t.startJulian,a=o.Z.addSeconds(t.startJulian,t.duration,new o.Z);if(o.Z.lessThan(i,s)&&o.Z.greaterThan(n,a))e.fillStyle=this.color.toCssColorString(),e.fillRect(0,t.y,t.timeBarWidth,this.height);else if(o.Z.lessThanOrEquals(i,a)&&o.Z.greaterThanOrEquals(n,s)){let s,a,c;for(s=0;s<t.timeBarWidth;++s){const e=o.Z.addSeconds(t.startJulian,s/t.timeBarWidth*t.duration,new o.Z);!(0,r.Z)(a)&&o.Z.greaterThanOrEquals(e,i)?a=s:!(0,r.Z)(c)&&o.Z.greaterThanOrEquals(e,n)&&(c=s)}e.fillStyle=this.backgroundColor.toCssColorString(),e.fillRect(0,t.y,t.timeBarWidth,this.height),(0,r.Z)(a)&&((0,r.Z)(c)||(c=t.timeBarWidth),e.fillStyle=this.color.toCssColorString(),e.fillRect(a,t.y,Math.max(c-a,1),this.height))}};const a=s},494741:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(406144),r=i(426468),o=i(446938),s=i(412096);function a(e,t){if(!(0,r.Z)(e))throw new o.Z("command is required.");this._command=e,t=(0,n.Z)(t,n.Z.EMPTY_OBJECT),this.toggled=(0,n.Z)(t.toggled,!1),this.tooltip=(0,n.Z)(t.tooltip,""),s.Z.track(this,["toggled","tooltip"])}Object.defineProperties(a.prototype,{command:{get:function(){return this._command}}});const c=a},203411:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l});var n=i(426468),r=i(54879),o=i(446938),s=i(412096),a=i(78320),c=i(502369);function u(e,t,i){if(!(0,n.Z)(e))throw new o.Z("container is required.");if(!(0,n.Z)(t))throw new o.Z("scene is required.");e=(0,a.Z)(e);const r=new c.Z(t,i);r._exitVRPath="M 25.770585,2.4552065 C 15.72282,13.962707 10.699956,19.704407 8.1768352,22.580207 c -1.261561,1.4379 -1.902282,2.1427 -2.21875,2.5 -0.141624,0.1599 -0.208984,0.2355 -0.25,0.2813 l 0.6875,0.75 c 10e-5,-10e-5 0.679191,0.727 0.6875,0.7187 0.01662,-0.016 0.02451,-0.024 0.03125,-0.031 0.01348,-0.014 0.04013,-0.038 0.0625,-0.062 0.04474,-0.05 0.120921,-0.1315 0.28125,-0.3126 0.320657,-0.3619 0.956139,-1.0921 2.2187499,-2.5312 2.5252219,-2.8781 7.5454589,-8.6169 17.5937499,-20.1250005 l -1.5,-1.3125 z m -20.5624998,3.9063 c -1.304375,0 -2.34375,1.0391 -2.34375,2.3437 l 0,10.8125005 c 0,1.3043 1.039375,2.375 2.34375,2.375 l 2.25,0 c 1.9518039,-2.2246 7.4710958,-8.5584 13.5624998,-15.5312005 l -15.8124998,0 z m 21.1249998,0 c -1.855467,2.1245 -2.114296,2.4005 -3.59375,4.0936995 1.767282,0.1815 3.15625,1.685301 3.15625,3.500001 0,1.9349 -1.56511,3.5 -3.5,3.5 -1.658043,0 -3.043426,-1.1411 -3.40625,-2.6875 -1.089617,1.2461 -2.647139,2.9988 -3.46875,3.9375 0.191501,-0.062 0.388502,-0.094 0.59375,-0.094 1.373338,0 2.50006,1.4614 2.5625,3.2812 l 8.3125,0 c 1.304375,0 2.34375,-1.0707 2.34375,-2.375 l 0,-10.8125005 c 0,-1.3046 -1.039375,-2.3437 -2.34375,-2.3437 l -0.65625,0 z M 9.5518351,10.423906 c 1.9348899,0 3.4999999,1.596401 3.4999999,3.531301 0,1.9349 -1.56511,3.5 -3.4999999,3.5 -1.9348899,0 -3.4999999,-1.5651 -3.4999999,-3.5 0,-1.9349 1.56511,-3.531301 3.4999999,-3.531301 z m 4.2187499,10.312601 c -0.206517,0.2356 -0.844218,0.9428 -1.03125,1.1562 l 0.8125,0 c 0.01392,-0.4081 0.107026,-0.7968 0.21875,-1.1562 z",r._enterVRPath="M 5.3125 6.375 C 4.008126 6.375 2.96875 7.4141499 2.96875 8.71875 L 2.96875 19.5 C 2.96875 20.8043 4.008126 21.875 5.3125 21.875 L 13.65625 21.875 C 13.71832 20.0547 14.845166 18.59375 16.21875 18.59375 C 17.592088 18.59375 18.71881 20.0552 18.78125 21.875 L 27.09375 21.875 C 28.398125 21.875 29.4375 20.8043 29.4375 19.5 L 29.4375 8.71875 C 29.4375 7.4141499 28.398125 6.375 27.09375 6.375 L 5.3125 6.375 z M 9.625 10.4375 C 11.55989 10.4375 13.125 12.03385 13.125 13.96875 C 13.125 15.90365 11.55989 17.46875 9.625 17.46875 C 7.69011 17.46875 6.125 15.90365 6.125 13.96875 C 6.125 12.03385 7.69011 10.4375 9.625 10.4375 z M 22.46875 10.4375 C 24.40364 10.4375 25.96875 12.03385 25.96875 13.96875 C 25.96875 15.90365 24.40364 17.46875 22.46875 17.46875 C 20.53386 17.46875 18.96875 15.90365 18.96875 13.96875 C 18.96875 12.03385 20.53386 10.4375 22.46875 10.4375 z";const u=document.createElement("button");u.type="button",u.className="cesium-button cesium-vrButton",u.setAttribute("data-bind",'css: { "cesium-button-disabled" : _isOrthographic }, attr: { title: tooltip },click: command,enable: isVREnabled,cesiumSvgPath: { path: isVRMode ? _exitVRPath : _enterVRPath, width: 32, height: 32 }'),e.appendChild(u),s.Z.applyBindings(r,u),this._container=e,this._viewModel=r,this._element=u}Object.defineProperties(u.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),u.prototype.isDestroyed=function(){return!1},u.prototype.destroy=function(){return this._viewModel.destroy(),s.Z.cleanNode(this._element),this._container.removeChild(this._element),(0,r.Z)(this)};const l=u},502369:(e,t,i)=>{"use strict";i.d(t,{Z:()=>_});var n=i(406144),r=i(426468),o=i(54879),s=i(446938),a=i(242100),c=i(529850),u=i(610490),l=i(412096),h=i(977950),d=i(264890),f=i(78320);function p(){const e=window.screen;(0,r.Z)(e)&&((0,r.Z)(e.unlockOrientation)?e.unlockOrientation():(0,r.Z)(e.mozUnlockOrientation)?e.mozUnlockOrientation():(0,r.Z)(e.msUnlockOrientation)?e.msUnlockOrientation():(0,r.Z)(e.orientation&&e.orientation.unlock)&&e.orientation.unlock())}function m(e,t){if(!(0,r.Z)(e))throw new s.Z("scene is required.");const i=this,o=l.Z.observable(c.Z.enabled),m=l.Z.observable(!1);this.isVRMode=void 0,l.Z.defineProperty(this,"isVRMode",{get:function(){return m()}}),this.isVREnabled=void 0,l.Z.defineProperty(this,"isVREnabled",{get:function(){return o()},set:function(e){o(e&&c.Z.enabled)}}),this.tooltip=void 0,l.Z.defineProperty(this,"tooltip",(function(){return o()?m()?"Exit VR mode":"Enter VR mode":"VR mode is unavailable"}));const _=l.Z.observable(!1);this._isOrthographic=void 0,l.Z.defineProperty(this,"_isOrthographic",{get:function(){return _()}}),this._eventHelper=new a.Z,this._eventHelper.add(e.preRender,(function(){_(e.camera.frustum instanceof u.Z)})),this._locked=!1,this._noSleep=new h.Z,this._command=(0,d.Z)((function(){!function(e,t,i,n){n()||(i()?(t.useWebVR=!1,e._locked&&(p(),e._locked=!1),e._noSleep.disable(),c.Z.exitFullscreen(),i(!1)):(c.Z.fullscreen||c.Z.requestFullscreen(e._vrElement),e._noSleep.enable(),e._locked||(e._locked=function(e){let t=!1;const i=window.screen;return(0,r.Z)(i)&&((0,r.Z)(i.lockOrientation)?t=i.lockOrientation(e):(0,r.Z)(i.mozLockOrientation)?t=i.mozLockOrientation(e):(0,r.Z)(i.msLockOrientation)?t=i.msLockOrientation(e):(0,r.Z)(i.orientation&&i.orientation.lock)&&(t=i.orientation.lock(e))),t}("landscape")),t.useWebVR=!0,i(!0)))}(i,e,m,_)}),l.Z.getObservable(this,"isVREnabled")),this._vrElement=(0,n.Z)((0,f.Z)(t),document.body),this._callback=function(){!c.Z.fullscreen&&m()&&(e.useWebVR=!1,i._locked&&(p(),i._locked=!1),i._noSleep.disable(),m(!1))},document.addEventListener(c.Z.changeEventName,this._callback)}Object.defineProperties(m.prototype,{vrElement:{get:function(){return this._vrElement},set:function(e){if(!(e instanceof Element))throw new s.Z("value must be a valid Element.");this._vrElement=e}},command:{get:function(){return this._command}}}),m.prototype.isDestroyed=function(){return!1},m.prototype.destroy=function(){this._eventHelper.removeAll(),document.removeEventListener(c.Z.changeEventName,this._callback),(0,o.Z)(this)};const _=m},26308:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(357299),r=i(598476);const o=function(e){n.Z.typeOf.object("viewer",e);const t=document.createElement("div");t.className="cesium-viewer-cesium3DTilesInspectorContainer",e.container.appendChild(t);const i=new r.Z(t,e.scene);Object.defineProperties(e,{cesium3DTilesInspector:{get:function(){return i}}})}},528768:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var n=i(426468),r=i(446938),o=i(964582);const s=function(e){if(!(0,n.Z)(e))throw new r.Z("viewer is required.");const t=document.createElement("div");t.className="cesium-viewer-cesiumInspectorContainer",e.container.appendChild(t);const i=new o.Z(t,e.scene);Object.defineProperties(e,{cesiumInspector:{get:function(){return i}}})}},573495:(e,t,i)=>{"use strict";i.d(t,{Z:()=>Z});var n=i(406144),r=i(426468),o=i(446938),s=i(197685),a=i(654357),c=i(744402),u=i(391222),l=i(973918),h=i(78320);function d(e){e.stopPropagation(),e.preventDefault()}function f(e,t){const i=e;(0,r.Z)(i)&&(i.removeEventListener("drop",t,!1),i.removeEventListener("dragenter",d,!1),i.removeEventListener("dragover",d,!1),i.removeEventListener("dragexit",d,!1))}function p(e,t){e.addEventListener("drop",t,!1),e.addEventListener("dragenter",d,!1),e.addEventListener("dragover",d,!1),e.addEventListener("dragexit",d,!1)}function m(e,t,i,n){const o=e.scene;return function(s){const a=t.name;try{let h;if(/\.czml$/i.test(a))h=c.Z.load(JSON.parse(s.target.result),{sourceUri:a});else if(/\.geojson$/i.test(a)||/\.json$/i.test(a)||/\.topojson$/i.test(a))h=u.Z.load(JSON.parse(s.target.result),{sourceUri:a,clampToGround:n});else{if(!/\.(kml|kmz)$/i.test(a))return void e.dropError.raiseEvent(e,a,"Unrecognized file: "+a);h=l.Z.load(t,{sourceUri:a,proxy:i,camera:o.camera,canvas:o.canvas,clampToGround:n,screenOverlayContainer:e.container})}(0,r.Z)(h)&&e.dataSources.add(h).then((function(t){e.flyToOnDrop&&e.flyTo(t)})).otherwise((function(t){e.dropError.raiseEvent(e,a,t)}))}catch(t){e.dropError.raiseEvent(e,a,t)}}}function _(e,t){return function(i){e.dropError.raiseEvent(e,t.name,i.target.error)}}const Z=function(e,t){if(!(0,r.Z)(e))throw new o.Z("viewer is required.");if(e.hasOwnProperty("dropTarget"))throw new o.Z("dropTarget is already defined by another mixin.");if(e.hasOwnProperty("dropEnabled"))throw new o.Z("dropEnabled is already defined by another mixin.");if(e.hasOwnProperty("dropError"))throw new o.Z("dropError is already defined by another mixin.");if(e.hasOwnProperty("clearOnDrop"))throw new o.Z("clearOnDrop is already defined by another mixin.");if(e.hasOwnProperty("flyToOnDrop"))throw new o.Z("flyToOnDrop is already defined by another mixin.");t=(0,n.Z)(t,n.Z.EMPTY_OBJECT);let i=!0,c=(0,n.Z)(t.flyToOnDrop,!0);const u=new s.Z;let l=(0,n.Z)(t.clearOnDrop,!0),Z=(0,n.Z)(t.dropTarget,e.container),g=(0,n.Z)(t.clampToGround,!0),y=t.proxy;function b(t){d(t),l&&(e.entities.removeAll(),e.dataSources.removeAll());const i=t.dataTransfer.files,n=i.length;for(let t=0;t<n;t++){const n=i[t],r=new FileReader;r.onload=m(e,n,y,g),r.onerror=_(e,n),r.readAsText(n)}}Z=(0,h.Z)(Z),Object.defineProperties(e,{dropTarget:{get:function(){return Z},set:function(e){if(!(0,r.Z)(e))throw new o.Z("value is required.");f(Z,b),Z=e,p(Z,b)}},dropEnabled:{get:function(){return i},set:function(e){e!==i&&(e?p(Z,b):f(Z,b),i=e)}},dropError:{get:function(){return u}},clearOnDrop:{get:function(){return l},set:function(e){l=e}},flyToOnDrop:{get:function(){return c},set:function(e){c=e}},proxy:{get:function(){return y},set:function(e){y=e}},clampToGround:{get:function(){return g},set:function(e){g=e}}}),p(Z,b),e.destroy=(0,a.Z)(e,e.destroy,(function(){e.dropEnabled=!1})),e._handleDrop=b}},416830:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(406144),r=i(426468),o=i(446938),s=i(300217);const a=function(e,t){if(!(0,r.Z)(e))throw new o.Z("viewer is required.");t=(0,n.Z)(t,n.Z.EMPTY_OBJECT);const i=new s.Z({scene:e.scene,container:e.bottomContainer,lowFrameRateMessage:t.lowFrameRateMessage});Object.defineProperties(e,{performanceWatchdog:{get:function(){return i}}})}},264890:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(406144),r=i(426468),o=i(446938),s=i(197685),a=i(412096);const c=function(e,t){if(!(0,r.Z)(e))throw new o.Z("func is required.");t=(0,n.Z)(t,!0);const i=new s.Z,c=new s.Z;function u(){if(!u.canExecute)throw new o.Z("Cannot execute command, canExecute is false.");const t={args:arguments,cancel:!1};let n;return i.raiseEvent(t),t.cancel||(n=e.apply(null,arguments),c.raiseEvent(n)),n}return u.canExecute=t,a.Z.track(u,["canExecute"]),Object.defineProperties(u,{beforeExecute:{value:i},afterExecute:{value:c}}),u}},78320:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(446938);const r=function(e){if("string"==typeof e){const t=document.getElementById(e);if(null===t)throw new n.Z('Element with id "'+e+'" does not exist in the document.');e=t}return e}},264280:(e,t,i)=>{"use strict";i.d(t,{Z:()=>r});var n=i(412096);const r=function(e,t,i,r,o){return i.call(r,e[t]),n.Z.getObservable(e,t).subscribe(i,r,o)}},399118:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(406144),r=i(426468),o=i(347296),s=i(527758);const a=function(e){let t;return function(i){const a=i.data,c=[],u={id:a.id,result:void 0,error:void 0};return(0,s.Z)(function(e,t,i){let n;try{return n=e(t,i),n}catch(e){return s.Z.reject(e)}}(e,a.parameters,c)).then((function(e){u.result=e})).otherwise((function(e){e instanceof Error?u.error={name:e.name,message:e.message,stack:e.stack}:u.error=e})).always((function(){(0,r.Z)(t)||(t=(0,n.Z)(self.webkitPostMessage,self.postMessage)),a.canTransferArrayBuffer||(c.length=0);try{t(u,c)}catch(e){u.result=void 0,u.error="postMessage failed with error: "+(0,o.Z)(e)+"\n with responseMessage: "+JSON.stringify(u),t(u)}}))}}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/30015.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt b/geonode_mapstore_client/static/mapstore/dist/js/30015.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/30015.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt rename to geonode_mapstore_client/static/mapstore/dist/js/30015.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt diff --git a/geonode_mapstore_client/static/mapstore/dist/js/30131.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/30131.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/30131.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/30131.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/30398.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/30398.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/30398.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/30398.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/30641.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/30641.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/30641.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/30641.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/30702.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/30702.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/30702.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/30702.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/30728.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/30728.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/30728.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/30728.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/30736.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/30736.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/30736.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/30736.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/30955.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/30955.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/30955.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/30955.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31041.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31041.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/31041.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/31041.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31056.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31056.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/31056.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/31056.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31082.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31082.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/31082.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/31082.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31109.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31109.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/31109.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/31109.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31120.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31120.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/31120.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/31120.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31256.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31256.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/31256.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/31256.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31351.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31351.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/31351.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/31351.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31391.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31391.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/31391.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/31391.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31476.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31476.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/31476.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/31476.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31643.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31643.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/31643.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/31643.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/3177.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/3177.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/3177.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/3177.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31818.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31818.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/31818.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/31818.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31893.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31893.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/31893.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/31893.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/31996.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/31996.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/31996.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/31996.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/32030.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/32030.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/32030.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/32030.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/32385.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/32385.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/32385.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/32385.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/32424.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/32424.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/32424.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/32424.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/32475.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/32475.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/32475.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/32475.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/32540.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/32540.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/32540.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/32540.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/32637.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/32637.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/32637.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/32637.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/32857.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/32857.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/32857.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/32857.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/32899.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/32899.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/32899.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/32899.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/33026.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/33026.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/33026.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/33026.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/33160.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/33160.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/33160.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/33160.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/33303.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/33303.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/33303.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/33303.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/33373.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/33373.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/33373.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/33373.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/33387.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/33387.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/33387.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/33387.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/33483.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/33483.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/33483.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/33483.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/33745.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/33745.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/33745.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/33745.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/33773.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/33773.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/33773.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/33773.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/33881.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/33881.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/33881.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/33881.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/33953.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/33953.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/33953.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/33953.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/33961.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/33961.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/33961.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/33961.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34001.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34001.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/34001.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/34001.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34096.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34096.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/34096.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/34096.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34099.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34099.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/34099.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/34099.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34134.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34134.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/34134.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/34134.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34188.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34188.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/34188.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/34188.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34256.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34256.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/34256.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/34256.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34319.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34319.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/34319.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/34319.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34362.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34362.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/34362.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/34362.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34410.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34410.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/34410.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/34410.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34473.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34473.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/34473.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/34473.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34559.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34559.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/34559.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/34559.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34593.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34593.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/34593.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/34593.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34714.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34714.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/34714.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/34714.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34864.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34864.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/34864.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/34864.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34903.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34903.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/34903.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/34903.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/34942.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/34942.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/34942.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/34942.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/3498.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/3498.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/3498.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/3498.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/35038.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/35038.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/35038.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/35038.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/35089.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/35089.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/35089.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/35089.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/35197.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/35197.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/35197.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/35197.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/35257.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/35257.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/35257.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/35257.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/35280.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/35280.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/35280.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/35280.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/35528.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/35528.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/35528.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/35528.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/35597.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/35597.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/35597.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/35597.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/35672.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/35672.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/35672.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/35672.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/35701.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/35701.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/35701.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/35701.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/36111.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/36111.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/36111.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/36111.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/36128.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/36128.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/36128.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/36128.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/36284.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/36284.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/36284.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/36284.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/3632.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/3632.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/3632.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/3632.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/36369.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/36369.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/36369.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/36369.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/36372.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/36372.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/36372.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/36372.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/36553.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/36553.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/36553.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/36553.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/36766.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/36766.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/36766.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/36766.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/36850.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/36850.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/36850.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/36850.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/36882.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/36882.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/36882.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/36882.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/369.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/369.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/369.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/369.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/36942.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/36942.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/36942.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/36942.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/37096.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/37096.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/37096.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/37096.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/37110.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/37110.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/37110.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/37110.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/37225.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/37225.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/37225.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/37225.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/37251.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/37251.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/37251.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/37251.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/37298.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/37298.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/37298.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/37298.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/37406.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/37406.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/37406.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/37406.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/37407.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/37407.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/37407.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/37407.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/3750.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/3750.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/3750.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/3750.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/37677.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/37677.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/37677.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/37677.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38117.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38117.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38117.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38117.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38217.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38217.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38217.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38217.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/3829.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/3829.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/3829.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/3829.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38306.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38306.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38306.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38306.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38340.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38340.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38340.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38340.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38366.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38366.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38366.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38366.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38481.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38481.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38481.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38481.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38503.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38503.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38503.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38503.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38562.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38562.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38562.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38562.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38585.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38585.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38585.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38585.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38627.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38627.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38627.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38627.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38748.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38748.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38748.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38748.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38774.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38774.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38774.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38774.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38920.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38920.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38920.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38920.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38925.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38925.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38925.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38925.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/38995.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/38995.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/38995.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/38995.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/39060.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/39060.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/39060.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/39060.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/39207.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/39207.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/39207.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/39207.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/39301.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/39301.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/39301.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/39301.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/39334.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/39334.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/39334.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/39334.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/39375.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/39375.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/39375.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/39375.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/39486.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/39486.74fb1733f89b05e9e60d.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/js/39486.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/39486.74fb1733f89b05e9e60d.chunk.js index f62ab92c8e..faab1ede21 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/39486.b32b32d2650f7cc681c9.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/39486.74fb1733f89b05e9e60d.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 39486.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt */ +/*! For license information please see 39486.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[39486],{249679:r=>{"use strict";function e(r,e,t){var a=new TypeError(r);return a.code="ERR_MOCHA_INVALID_ARG_TYPE",a.argument=e,a.expected=t,a.actual=typeof e,a}r.exports={createInvalidArgumentTypeError:e,createInvalidArgumentValueError:function(r,e,t,a){var n=new TypeError(r);return n.code="ERR_MOCHA_INVALID_ARG_VALUE",n.argument=e,n.value=t,n.reason=void 0!==a?a:"is invalid",n},createInvalidExceptionError:function(r,e){var t=new Error(r);return t.code="ERR_MOCHA_INVALID_EXCEPTION",t.valueType=typeof e,t.value=e,t},createInvalidInterfaceError:function(r,e){var t=new Error(r);return t.code="ERR_MOCHA_INVALID_INTERFACE",t.interface=e,t},createInvalidReporterError:function(r,e){var t=new TypeError(r);return t.code="ERR_MOCHA_INVALID_REPORTER",t.reporter=e,t},createMissingArgumentError:function(r,t,a){return e(r,t,a)},createNoFilesMatchPatternError:function(r,e){var t=new Error(r);return t.code="ERR_MOCHA_NO_FILES_MATCH_PATTERN",t.pattern=e,t},createUnsupportedError:function(r){var e=new Error(r);return e.code="ERR_MOCHA_UNSUPPORTED",e}}},327244:(r,e,t)=>{"use strict";var a=t(348764).Buffer,n=t(212993),o=t(601386),s=t(389539),i=t(178699),c=t(186492),u=t(249679),l=u.createNoFilesMatchPatternError,p=u.createMissingArgumentError,d=e.assign=t(826668).getPolyfill();function f(r){return!~["node_modules",".git"].indexOf(r)}function h(r,e){switch(e){case"function":return"[Function]";case"object":return"{}";case"array":return"[]";default:return r.toString()}}e.inherits=s.inherits,e.escape=function(r){return c.encode(String(r),{useNamedReferences:!1})},e.isString=function(r){return"string"==typeof r},e.watch=function(r,e){var a={interval:100},o=t(964291)("mocha:watch");r.forEach((function(r){o("file %s",r),n.watchFile(r,a,(function(t,a){a.mtime<t.mtime&&e(r)}))}))},e.files=function(r,t,a){return a=a||[],t=t||["js"],n.readdirSync(r).filter(f).forEach((function(s){var i=o.join(r,s);n.lstatSync(i).isDirectory()?e.files(i,t,a):b(i,t)&&a.push(i)})),a},e.slug=function(r){return r.toLowerCase().replace(/ +/g,"-").replace(/[^-\w]/g,"")},e.clean=function(r){var e=(r=r.replace(/\r\n?|[\n\u2028\u2029]/g,"\n").replace(/^\uFEFF/,"").replace(/^function(?:\s*|\s+[^(]*)\([^)]*\)\s*\{((?:.|\n)*?)\s*\}$|^\([^)]*\)\s*=>\s*(?:\{((?:.|\n)*?)\s*\}|((?:.|\n)*))$/,"$1$2$3")).match(/^\n?( *)/)[1].length,t=r.match(/^\n?(\t*)/)[1].length,a=new RegExp("^\n?"+(t?"\t":" ")+"{"+(t||e)+"}","gm");return(r=r.replace(a,"")).trim()},e.parseQuery=function(r){return r.replace("?","").split("&").reduce((function(r,e){var t=e.indexOf("="),a=e.slice(0,t),n=e.slice(++t);return r[a]=decodeURIComponent(n.replace(/\+/g,"%20")),r}),{})},e.highlightTags=function(r){for(var e=document.getElementById("mocha").getElementsByTagName(r),t=0,a=e.length;t<a;++t)e[t].innerHTML=e[t].innerHTML.replace(/</g,"<").replace(/>/g,">").replace(/\/\/(.*)/gm,'<span class="comment">//$1</span>').replace(/('.*?')/gm,'<span class="string">$1</span>').replace(/(\d+\.\d+)/gm,'<span class="number">$1</span>').replace(/(\d+)/gm,'<span class="number">$1</span>').replace(/\bnew[ \t]+(\w+)/gm,'<span class="keyword">new</span> <span class="init">$1</span>').replace(/\b(function|new|throw|return|var|if|else)\b/gm,'<span class="keyword">$1</span>')};var g=e.type=function(r){return void 0===r?"undefined":null===r?"null":a.isBuffer(r)?"buffer":Object.prototype.toString.call(r).replace(/^\[.+\s(.+?)]$/,"$1").toLowerCase()};function m(r,e,t){if(void 0===e)return c(r);var a=e*(t=t||1),n=Array.isArray(r)?"[":"{",o=Array.isArray(r)?"]":"}",s="number"==typeof r.length?r.length:Object.keys(r).length;function i(r,e){return new Array(e).join(r)}function c(r){switch(g(r)){case"null":case"undefined":r="["+r+"]";break;case"array":case"object":r=m(r,e,t+1);break;case"boolean":case"regexp":case"symbol":case"number":r=0===r&&1/r==-1/0?"-0":r.toString();break;case"date":var a=isNaN(r.getTime())?r.toString():r.toISOString();r="[Date: "+a+"]";break;case"buffer":var n=r.toJSON();r="[Buffer: "+m(n=n.data&&n.type?n.data:n,2,t+1)+"]";break;default:r="[Function]"===r||"[Circular]"===r?r:JSON.stringify(r)}return r}for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(--s,n+="\n "+i(" ",a)+(Array.isArray(r)?"":'"'+u+'": ')+c(r[u])+(s?",":""));return n+(1!==n.length?"\n"+i(" ",--a)+o:o)}function b(r,e){var t=o.extname(r).slice(1);return e.some((function(r){return t===r}))}function y(r,e){process.emitWarning?process.emitWarning(r,e):process.nextTick((function(){console.warn(e+": "+r)}))}e.stringify=function(r){var t=g(r);if(!~["object","array","function"].indexOf(t)){if("buffer"===t){var n=a.prototype.toJSON.call(r);return m(n.data&&n.type?n.data:n,2).replace(/,(\n|$)/g,"$1")}if("string"!==t||"object"!=typeof r)return m(r);r=r.split("").reduce((function(r,e,t){return r[t]=e,r}),{}),t="object"}for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o))return m(e.canonicalize(r,null,t),2).replace(/,(\n|$)/g,"$1");return h(r,t)},e.canonicalize=function(r,t,a){var n,o;function s(r,e){t.push(r),e(),t.pop()}if(a=a||g(r),-1!==(t=t||[]).indexOf(r))return"[Circular]";switch(a){case"undefined":case"buffer":case"null":n=r;break;case"array":s(r,(function(){n=r.map((function(r){return e.canonicalize(r,t)}))}));break;case"function":for(o in r){n={};break}if(!n){n=h(r,a);break}case"object":n=n||{},s(r,(function(){Object.keys(r).sort().forEach((function(a){n[a]=e.canonicalize(r[a],t)}))}));break;case"date":case"number":case"regexp":case"boolean":case"symbol":n=r;break;default:n=r+""}return n},e.lookupFiles=function r(t,a,c){a=a||[],c=c||!1;var u=[];if(!n.existsSync(t)){var d;if(i.hasMagic(t))d=t;else{var f=a.map((function(r){return"."+r})).join("|");d=t+"+("+f+")"}if(!(u=i.sync(d,{nodir:!0})).length)throw l("Cannot find any files matching pattern "+e.dQuote(t),t);return u}try{if(n.statSync(t).isFile())return t}catch(r){return}return n.readdirSync(t).forEach((function(i){var l,d=o.join(t,i);try{if((l=n.statSync(d)).isDirectory())return void(c&&(u=u.concat(r(d,a,c))))}catch(r){return}if(!a.length)throw p(s.format("Argument %s required when argument %s is a directory",e.sQuote("extensions"),e.sQuote("filepath")),"extensions","array");l.isFile()&&b(d,a)&&!function(r){return"."===o.basename(r)[0]}(d)&&u.push(d)})),u},e.deprecate=function r(e){(e=String(e))&&!r.cache[e]&&(r.cache[e]=!0,y(e,"DeprecationWarning"))},e.deprecate.cache={},e.warn=function(r){r&&y(r)},e.stackTraceFilter=function(){var r,e="undefined"==typeof document?{node:!0}:{browser:!0},t=o.sep;return e.node?r=process.cwd()+t:(r=("undefined"==typeof location?window.location:location).href.replace(/\/[^/]*$/,"/"),t="/"),function(a){return(a=(a=a.split("\n")).reduce((function(a,n){return function(r){return~r.indexOf("node_modules"+t+"mocha"+t)||~r.indexOf(t+"mocha.js")||~r.indexOf(t+"mocha.min.js")}(n)||e.node&&function(r){return~r.indexOf("(timers.js:")||~r.indexOf("(events.js:")||~r.indexOf("(node.js:")||~r.indexOf("(module.js:")||~r.indexOf("GeneratorFunctionPrototype.next (native)")||!1}(n)||(/:\d+:\d+\)?$/.test(n)&&(n=n.replace("("+r,"(")),a.push(n)),a}),[])).join("\n")}},e.isPromise=function(r){return"object"==typeof r&&null!==r&&"function"==typeof r.then},e.clamp=function(r,e){return Math.min(Math.max(r,e[0]),e[1])},e.sQuote=function(r){return"'"+r+"'"},e.dQuote=function(r){return'"'+r+'"'},e.ngettext=function(r,e,t){if("number"==typeof r&&r>=0)return 1===r?e:t},e.noop=function(){},e.createMap=function(r){return d.apply(null,[Object.create(null)].concat(Array.prototype.slice.call(arguments)))},e.defineConstants=function(r){if("object"!==g(r)||!Object.keys(r).length)throw new TypeError("Invalid argument; expected a non-empty object");return Object.freeze(e.createMap(r))}},964291:(r,e,t)=>{"use strict";function a(r){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},a(r)}e.log=function(){var r;return"object"===("undefined"==typeof console?"undefined":a(console))&&console.log&&(r=console).log.apply(r,arguments)},e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+r.exports.humanize(this.diff),this.useColors){var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var a=0,n=0;e[0].replace(/%[a-zA-Z%]/g,(function(r){"%%"!==r&&(a++,"%c"===r&&(n=a))})),e.splice(n,0,t)}},e.save=function(r){try{r?e.storage.setItem("debug",r):e.storage.removeItem("debug")}catch(r){}},e.load=function(){var r;try{r=e.storage.getItem("debug")}catch(r){}return!r&&"undefined"!=typeof process&&"env"in process&&(r={NODE_ENV:"production"}.DEBUG),r},e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch(r){}}(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],r.exports=t(646438)(e),r.exports.formatters.j=function(r){try{return JSON.stringify(r)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}}},646438:(r,e,t)=>{"use strict";r.exports=function(r){function e(r){for(var e=0,t=0;t<r.length;t++)e=(e<<5)-e+r.charCodeAt(t),e|=0;return a.colors[Math.abs(e)%a.colors.length]}function a(r){var t;function s(){if(s.enabled){for(var r=arguments.length,e=new Array(r),n=0;n<r;n++)e[n]=arguments[n];var o=s,i=Number(new Date),c=i-(t||i);o.diff=c,o.prev=t,o.curr=i,t=i,e[0]=a.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");var u=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(function(r,t){if("%%"===r)return r;u++;var n=a.formatters[t];if("function"==typeof n){var s=e[u];r=n.call(o,s),e.splice(u,1),u--}return r})),a.formatArgs.call(o,e);var l=o.log||a.log;l.apply(o,e)}}return s.namespace=r,s.enabled=a.enabled(r),s.useColors=a.useColors(),s.color=e(r),s.destroy=n,s.extend=o,"function"==typeof a.init&&a.init(s),a.instances.push(s),s}function n(){var r=a.instances.indexOf(this);return-1!==r&&(a.instances.splice(r,1),!0)}function o(r,e){return a(this.namespace+(void 0===e?":":e)+r)}return a.debug=a,a.default=a,a.coerce=function(r){return r instanceof Error?r.stack||r.message:r},a.disable=function(){a.enable("")},a.enable=function(r){var e;a.save(r),a.names=[],a.skips=[];var t=("string"==typeof r?r:"").split(/[\s,]+/),n=t.length;for(e=0;e<n;e++)t[e]&&("-"===(r=t[e].replace(/\*/g,".*?"))[0]?a.skips.push(new RegExp("^"+r.substr(1)+"$")):a.names.push(new RegExp("^"+r+"$")));for(e=0;e<a.instances.length;e++){var o=a.instances[e];o.enabled=a.enabled(o.namespace)}},a.enabled=function(r){if("*"===r[r.length-1])return!0;var e,t;for(e=0,t=a.skips.length;e<t;e++)if(a.skips[e].test(r))return!1;for(e=0,t=a.names.length;e<t;e++)if(a.names[e].test(r))return!0;return!1},a.humanize=t(165595),Object.keys(r).forEach((function(e){a[e]=r[e]})),a.instances=[],a.names=[],a.skips=[],a.formatters={},a.selectColor=e,a.enable(a.load()),a}},165595:r=>{var e=1e3,t=60*e,a=60*t,n=24*a;function o(r,e,t,a){var n=e>=1.5*t;return Math.round(r/t)+" "+a+(n?"s":"")}r.exports=function(r,s){s=s||{};var i,c,u=typeof r;if("string"===u&&r.length>0)return function(r){if(!((r=String(r)).length>100)){var o=/^((?:\d+)?\-?\d?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(r);if(o){var s=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*n;case"hours":case"hour":case"hrs":case"hr":case"h":return s*a;case"minutes":case"minute":case"mins":case"min":case"m":return s*t;case"seconds":case"second":case"secs":case"sec":case"s":return s*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(r);if("number"===u&&!1===isNaN(r))return s.long?(i=r,(c=Math.abs(i))>=n?o(i,c,n,"day"):c>=a?o(i,c,a,"hour"):c>=t?o(i,c,t,"minute"):c>=e?o(i,c,e,"second"):i+" ms"):function(r){var o=Math.abs(r);return o>=n?Math.round(r/n)+"d":o>=a?Math.round(r/a)+"h":o>=t?Math.round(r/t)+"m":o>=e?Math.round(r/e)+"s":r+"ms"}(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))}},453877:(r,e,t)=>{"use strict";var a=t(482215),n=t(158612),o=function(r){return null!=r},s=t(455419)(),i=Object,c=n.call(Function.call,Array.prototype.push),u=n.call(Function.call,Object.prototype.propertyIsEnumerable),l=s?Object.getOwnPropertySymbols:null;r.exports=function(r,e){if(!o(r))throw new TypeError("target must be an object");var t,n,p,d,f,h,g,m=i(r);for(t=1;t<arguments.length;++t){n=i(arguments[t]),d=a(n);var b=s&&(Object.getOwnPropertySymbols||l);if(b)for(f=b(n),p=0;p<f.length;++p)g=f[p],u(n,g)&&c(d,g);for(p=0;p<d.length;++p)h=n[g=d[p]],u(n,g)&&(m[g]=h)}return m}},826668:(r,e,t)=>{"use strict";var a=t(404289),n=t(453877),o=t(379983),s=t(900239),i=o();a(i,{getPolyfill:o,implementation:n,shim:s}),r.exports=i},379983:(r,e,t)=>{"use strict";var a=t(453877);r.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var r="abcdefghijklmnopqrst",e=r.split(""),t={},a=0;a<e.length;++a)t[e[a]]=e[a];var n=Object.assign({},t),o="";for(var s in n)o+=s;return r!==o}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var r=Object.preventExtensions({1:2});try{Object.assign(r,"xy")}catch(e){return"y"===r[1]}return!1}()?a:Object.assign:a}},900239:(r,e,t)=>{"use strict";var a=t(404289),n=t(379983);r.exports=function(){var r=n();return a(Object,{assign:r},{assign:function(){return Object.assign!==r}}),r}},562651:(r,e,t)=>{const a=t(854412).E2,n={isfn:function(r,e){return r.hasOwnProperty(e)&&"function"==typeof r[e]},unknown:function(r){throw ReferenceError("Unknown function: "+r+"()")},coerceArray:function(r){return Array.isArray(r)?r:[r]},coerceBoolean:function(r){return"boolean"==typeof r?+r:r},isSubset:function(r,e){const t=n.coerceArray(r),a=n.coerceArray(e);return+t.every((r=>a.includes(r)))},buildString:function(r,e){r=String(r)[0];let t="";if((e=String(e))[0]!==r||e[e.length-1]!==r)throw new Error("Unexpected internal error: String literal doesn't begin/end with the right quotation mark.");for(let a=1;a<e.length-1;a++)if("\\"===e[a]){if(a++,a>=e.length-1)throw new Error("Unexpected internal error: Unescaped backslash at the end of string literal.");if("\\"===e[a])t+="\\";else{if(e[a]!==r)throw new Error(`Unexpected internal error: Invalid escaped character in string literal: ${e[a]}`);t+=r}}else{if(e[a]===r)throw new Error("Unexpected internal error: String literal contains unescaped quotation mark.");t+=e[a]}return JSON.stringify(t)}};a.yy=Object.create(n),e.U=function(r,e){if(arguments.length>2)throw new TypeError("Too many arguments.");e="object"==typeof e?e:{};let{extraFunctions:t,customProp:o}=e;for(let r of Object.getOwnPropertyNames(e))if("extraFunctions"!==r&&"customProp"!==r)throw new TypeError(`Unknown option: ${r}`);let s={abs:Math.abs,ceil:Math.ceil,floor:Math.floor,log:Math.log,max:Math.max,min:Math.min,random:Math.random,round:Math.round,sqrt:Math.sqrt};if(t)for(var i in t)t.hasOwnProperty(i)&&(s[i]=t[i]);let c=a.parse(r),u=[];function l(r){Array.isArray(r)?r.forEach(l):u.push(r)}function p(r,e){return Object.prototype.hasOwnProperty.call(e||{},r)?e[r]:void 0}function d(r){return function(e){return Object.prototype.hasOwnProperty.call(r||{},e)?r[e]:void 0}}u.push("return "),c.forEach(l),u.push(";"),"function"==typeof o&&(p=(r,e)=>n.coerceBoolean(o(r,d(e),e)));let f=new Function("fns","std","prop","data",u.join(""));return function(r){try{return f(s,n,p,r)}catch(r){return r}}}},854412:(r,e)=>{var t=function(){var r={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,"+":6,"-":7,"*":8,"/":9,"%":10,"^":11,and:12,or:13,not:14,"==":15,"!=":16,"~=":17,"<":18,"<=":19,">":20,">=":21,"?":22,":":23,"(":24,")":25,array:26,",":27,NUMBER:28,STRING:29,SYMBOL:30,of:31,argsList:32,in:33,inSet:34,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"+",7:"-",8:"*",9:"/",10:"%",11:"^",12:"and",13:"or",14:"not",15:"==",16:"!=",17:"~=",18:"<",19:"<=",20:">",21:">=",22:"?",23:":",24:"(",25:")",27:",",28:"NUMBER",29:"STRING",30:"SYMBOL",31:"of",33:"in"},productions_:[0,[3,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,2],[4,3],[4,3],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,5],[4,3],[4,5],[4,1],[4,1],[4,1],[4,3],[4,3],[4,4],[4,3],[4,4],[32,1],[32,3],[34,1],[34,3],[26,1],[26,3]],performAction:function(r,e,t,a,n,o,s){var i=o.length-1;switch(n){case 1:return o[i-1];case 2:this.$=["(",o[i-2],"+",o[i],")"];break;case 3:this.$=["(",o[i-2],"-",o[i],")"];break;case 4:this.$=["(",o[i-2],"*",o[i],")"];break;case 5:this.$=["(",o[i-2],"/",o[i],")"];break;case 6:this.$=["(",o[i-2],"%",o[i],")"];break;case 7:this.$=["(","Math.pow(",o[i-2],",",o[i],")",")"];break;case 8:this.$=["(","-",o[i],")"];break;case 9:this.$=["(","Number(",o[i-2],"&&",o[i],")",")"];break;case 10:this.$=["(","Number(",o[i-2],"||",o[i],")",")"];break;case 11:this.$=["(","Number(!",o[i],")",")"];break;case 12:this.$=["(","Number(",o[i-2],"==",o[i],")",")"];break;case 13:this.$=["(","Number(",o[i-2],"!=",o[i],")",")"];break;case 14:this.$=["(","Number(RegExp(",o[i],").test(",o[i-2],"))",")"];break;case 15:this.$=["(","Number(",o[i-2],"<",o[i],")",")"];break;case 16:this.$=["(","Number(",o[i-2],"<=",o[i],")",")"];break;case 17:this.$=["(","Number(",o[i-2],"> ",o[i],")",")"];break;case 18:this.$=["(","Number(",o[i-2],">=",o[i],")",")"];break;case 19:this.$=["(",o[i-4],"?",o[i-2],":",o[i],")"];break;case 20:this.$=["(",o[i-1],")"];break;case 21:this.$=["(","[",o[i-3],",",o[i-1],"]",")"];break;case 22:case 23:case 34:this.$=["(",o[i],")"];break;case 24:this.$=["(","prop(",o[i],", data)",")"];break;case 25:this.$=["(","prop(",o[i-2],",",o[i],")",")"];break;case 26:this.$=["(","(std.isfn(fns, ",o[i-2],") ? fns[",o[i-2],"]() : std.unknown(",o[i-2],"))",")"];break;case 27:this.$=["(","(std.isfn(fns, ",o[i-3],") ? fns[",o[i-3],"](",o[i-1],") : std.unknown(",o[i-3],"))",")"];break;case 28:this.$=["(","std.isSubset(",o[i-2],", ",o[i],")",")"];break;case 29:this.$=["(","+!std.isSubset(",o[i-3],", ",o[i],")",")"];break;case 30:this.$=[o[i]];break;case 31:case 35:this.$=[o[i-2],",",o[i]];break;case 32:this.$=["o ==",o[i]];break;case 33:this.$=[o[i-2],"|| o ==",o[i]]}},table:[{3:1,4:2,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{1:[3]},{5:[1,9],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[1,16],13:[1,17],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[1,25],33:[1,26]},{4:28,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:29,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:30,7:[1,3],14:[1,4],24:[1,5],26:31,28:[1,6],29:[1,7],30:[1,8]},{5:[2,22],6:[2,22],7:[2,22],8:[2,22],9:[2,22],10:[2,22],11:[2,22],12:[2,22],13:[2,22],14:[2,22],15:[2,22],16:[2,22],17:[2,22],18:[2,22],19:[2,22],20:[2,22],21:[2,22],22:[2,22],23:[2,22],25:[2,22],27:[2,22],33:[2,22]},{5:[2,23],6:[2,23],7:[2,23],8:[2,23],9:[2,23],10:[2,23],11:[2,23],12:[2,23],13:[2,23],14:[2,23],15:[2,23],16:[2,23],17:[2,23],18:[2,23],19:[2,23],20:[2,23],21:[2,23],22:[2,23],23:[2,23],25:[2,23],27:[2,23],33:[2,23]},{5:[2,24],6:[2,24],7:[2,24],8:[2,24],9:[2,24],10:[2,24],11:[2,24],12:[2,24],13:[2,24],14:[2,24],15:[2,24],16:[2,24],17:[2,24],18:[2,24],19:[2,24],20:[2,24],21:[2,24],22:[2,24],23:[2,24],24:[1,33],25:[2,24],27:[2,24],31:[1,32],33:[2,24]},{1:[2,1]},{4:34,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:35,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:36,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:37,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:38,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:39,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:40,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:41,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:42,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:43,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:44,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:45,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:46,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:47,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:48,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:49,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:50,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{33:[1,51]},{5:[2,8],6:[2,8],7:[2,8],8:[2,8],9:[2,8],10:[2,8],11:[2,8],12:[2,8],13:[2,8],14:[2,8],15:[2,8],16:[2,8],17:[2,8],18:[2,8],19:[2,8],20:[2,8],21:[2,8],22:[2,8],23:[2,8],25:[2,8],27:[2,8],33:[2,8]},{5:[2,11],6:[2,11],7:[2,11],8:[2,11],9:[2,11],10:[2,11],11:[2,11],12:[2,11],13:[2,11],14:[2,11],15:[2,11],16:[2,11],17:[2,11],18:[2,11],19:[2,11],20:[2,11],21:[2,11],22:[2,11],23:[2,11],25:[2,11],27:[2,11],33:[2,11]},{6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[1,16],13:[1,17],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[1,25],25:[1,52],27:[2,34],33:[1,26]},{27:[1,53]},{4:54,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:57,7:[1,3],14:[1,4],24:[1,5],25:[1,55],28:[1,6],29:[1,7],30:[1,8],32:56},{5:[2,2],6:[2,2],7:[2,2],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,2],13:[2,2],14:[1,27],15:[2,2],16:[2,2],17:[2,2],18:[2,2],19:[2,2],20:[2,2],21:[2,2],22:[2,2],23:[2,2],25:[2,2],27:[2,2],33:[2,2]},{5:[2,3],6:[2,3],7:[2,3],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,3],13:[2,3],14:[1,27],15:[2,3],16:[2,3],17:[2,3],18:[2,3],19:[2,3],20:[2,3],21:[2,3],22:[2,3],23:[2,3],25:[2,3],27:[2,3],33:[2,3]},{5:[2,4],6:[2,4],7:[2,4],8:[2,4],9:[2,4],10:[2,4],11:[1,15],12:[2,4],13:[2,4],14:[1,27],15:[2,4],16:[2,4],17:[2,4],18:[2,4],19:[2,4],20:[2,4],21:[2,4],22:[2,4],23:[2,4],25:[2,4],27:[2,4],33:[2,4]},{5:[2,5],6:[2,5],7:[2,5],8:[2,5],9:[2,5],10:[2,5],11:[1,15],12:[2,5],13:[2,5],14:[1,27],15:[2,5],16:[2,5],17:[2,5],18:[2,5],19:[2,5],20:[2,5],21:[2,5],22:[2,5],23:[2,5],25:[2,5],27:[2,5],33:[2,5]},{5:[2,6],6:[2,6],7:[2,6],8:[2,6],9:[2,6],10:[2,6],11:[1,15],12:[2,6],13:[2,6],14:[1,27],15:[2,6],16:[2,6],17:[2,6],18:[2,6],19:[2,6],20:[2,6],21:[2,6],22:[2,6],23:[2,6],25:[2,6],27:[2,6],33:[2,6]},{5:[2,7],6:[2,7],7:[2,7],8:[2,7],9:[2,7],10:[2,7],11:[2,7],12:[2,7],13:[2,7],14:[1,27],15:[2,7],16:[2,7],17:[2,7],18:[2,7],19:[2,7],20:[2,7],21:[2,7],22:[2,7],23:[2,7],25:[2,7],27:[2,7],33:[2,7]},{5:[2,9],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,9],13:[2,9],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[2,9],23:[2,9],25:[2,9],27:[2,9],33:[1,26]},{5:[2,10],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[1,16],13:[2,10],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[2,10],23:[2,10],25:[2,10],27:[2,10],33:[1,26]},{5:[2,12],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,12],13:[2,12],14:[1,27],15:[2,12],16:[2,12],17:[2,12],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[2,12],23:[2,12],25:[2,12],27:[2,12],33:[2,12]},{5:[2,13],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,13],13:[2,13],14:[1,27],15:[2,13],16:[2,13],17:[2,13],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[2,13],23:[2,13],25:[2,13],27:[2,13],33:[2,13]},{5:[2,14],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,14],13:[2,14],14:[1,27],15:[2,14],16:[2,14],17:[2,14],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[2,14],23:[2,14],25:[2,14],27:[2,14],33:[2,14]},{5:[2,15],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,15],13:[2,15],14:[1,27],15:[2,15],16:[2,15],17:[2,15],18:[2,15],19:[2,15],20:[2,15],21:[2,15],22:[2,15],23:[2,15],25:[2,15],27:[2,15],33:[2,15]},{5:[2,16],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,16],13:[2,16],14:[1,27],15:[2,16],16:[2,16],17:[2,16],18:[2,16],19:[2,16],20:[2,16],21:[2,16],22:[2,16],23:[2,16],25:[2,16],27:[2,16],33:[2,16]},{5:[2,17],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,17],13:[2,17],14:[1,27],15:[2,17],16:[2,17],17:[2,17],18:[2,17],19:[2,17],20:[2,17],21:[2,17],22:[2,17],23:[2,17],25:[2,17],27:[2,17],33:[2,17]},{5:[2,18],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,18],13:[2,18],14:[1,27],15:[2,18],16:[2,18],17:[2,18],18:[2,18],19:[2,18],20:[2,18],21:[2,18],22:[2,18],23:[2,18],25:[2,18],27:[2,18],33:[2,18]},{6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[1,16],13:[1,17],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[1,25],23:[1,58],33:[1,26]},{5:[2,28],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,28],13:[2,28],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[2,28],23:[2,28],25:[2,28],27:[2,28],33:[2,28]},{4:59,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{5:[2,20],6:[2,20],7:[2,20],8:[2,20],9:[2,20],10:[2,20],11:[2,20],12:[2,20],13:[2,20],14:[2,20],15:[2,20],16:[2,20],17:[2,20],18:[2,20],19:[2,20],20:[2,20],21:[2,20],22:[2,20],23:[2,20],25:[2,20],27:[2,20],33:[2,20]},{4:60,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{5:[2,25],6:[2,25],7:[2,25],8:[2,25],9:[2,25],10:[2,25],11:[2,25],12:[2,25],13:[2,25],14:[2,25],15:[2,25],16:[2,25],17:[2,25],18:[2,25],19:[2,25],20:[2,25],21:[2,25],22:[2,25],23:[2,25],25:[2,25],27:[2,25],33:[2,25]},{5:[2,26],6:[2,26],7:[2,26],8:[2,26],9:[2,26],10:[2,26],11:[2,26],12:[2,26],13:[2,26],14:[2,26],15:[2,26],16:[2,26],17:[2,26],18:[2,26],19:[2,26],20:[2,26],21:[2,26],22:[2,26],23:[2,26],25:[2,26],27:[2,26],33:[2,26]},{25:[1,61],27:[1,62]},{6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[1,16],13:[1,17],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[1,25],25:[2,30],27:[2,30],33:[1,26]},{4:63,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{5:[2,29],6:[2,29],7:[2,29],8:[2,29],9:[2,29],10:[2,29],11:[2,29],12:[2,29],13:[2,29],14:[2,29],15:[2,29],16:[2,29],17:[2,29],18:[2,29],19:[2,29],20:[2,29],21:[2,29],22:[2,29],23:[2,29],25:[2,29],27:[2,29],33:[2,29]},{6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[1,16],13:[1,17],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[1,25],25:[1,64],27:[2,35],33:[1,26]},{5:[2,27],6:[2,27],7:[2,27],8:[2,27],9:[2,27],10:[2,27],11:[2,27],12:[2,27],13:[2,27],14:[2,27],15:[2,27],16:[2,27],17:[2,27],18:[2,27],19:[2,27],20:[2,27],21:[2,27],22:[2,27],23:[2,27],25:[2,27],27:[2,27],33:[2,27]},{4:65,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{5:[2,19],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[1,16],13:[1,17],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[2,19],23:[2,19],25:[2,19],27:[2,19],33:[1,26]},{5:[2,21],6:[2,21],7:[2,21],8:[2,21],9:[2,21],10:[2,21],11:[2,21],12:[2,21],13:[2,21],14:[2,21],15:[2,21],16:[2,21],17:[2,21],18:[2,21],19:[2,21],20:[2,21],21:[2,21],22:[2,21],23:[2,21],25:[2,21],27:[2,21],33:[2,21]},{6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[1,16],13:[1,17],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[1,25],25:[2,31],27:[2,31],33:[1,26]}],defaultActions:{9:[2,1]},parseError:function(r,e){throw new Error(r)},parse:function(r){var e=this,t=[0],a=[null],n=[],o=this.table,s="",i=0,c=0,u=0;this.lexer.setInput(r),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var l=this.lexer.yylloc;n.push(l);var p=this.lexer.options&&this.lexer.options.ranges;function d(){var r;return"number"!=typeof(r=e.lexer.lex()||1)&&(r=e.symbols_[r]||r),r}"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var f,h,g,m,b,y,v,w,q,E={};;){if(g=t[t.length-1],this.defaultActions[g]?m=this.defaultActions[g]:(null==f&&(f=d()),m=o[g]&&o[g][f]),void 0===m||!m.length||!m[0]){var D="";if(!u){for(y in q=[],o[g])this.terminals_[y]&&y>2&&q.push("'"+this.terminals_[y]+"'");D=this.lexer.showPosition?"Parse error on line "+(i+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+q.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(i+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(D,{text:this.lexer.match,token:this.terminals_[f]||f,line:this.lexer.yylineno,loc:l,expected:q})}if(3==u){if(1==f)throw new Error(D||"Parsing halted.");c=this.lexer.yyleng,s=this.lexer.yytext,i=this.lexer.yylineno,l=this.lexer.yylloc,f=d()}for(;!(2..toString()in o[g]);){if(0===g)throw new Error(D||"Parsing halted.");1,t.length=t.length-2,a.length=a.length-1,n.length=n.length-1,g=t[t.length-1]}h=2==f?null:f,f=2,m=o[g=t[t.length-1]]&&o[g][2],u=3}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+f);switch(m[0]){case 1:t.push(f),a.push(this.lexer.yytext),n.push(this.lexer.yylloc),t.push(m[1]),f=null,h?(f=h,h=null):(c=this.lexer.yyleng,s=this.lexer.yytext,i=this.lexer.yylineno,l=this.lexer.yylloc,u>0&&u--);break;case 2:if(v=this.productions_[m[1]][1],E.$=a[a.length-v],E._$={first_line:n[n.length-(v||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(v||1)].first_column,last_column:n[n.length-1].last_column},p&&(E._$.range=[n[n.length-(v||1)].range[0],n[n.length-1].range[1]]),void 0!==(b=this.performAction.call(E,s,c,i,this.yy,m[1],a,n)))return b;v&&(t=t.slice(0,-1*v*2),a=a.slice(0,-1*v),n=n.slice(0,-1*v)),t.push(this.productions_[m[1]][0]),a.push(E.$),n.push(E._$),w=o[t[t.length-2]][t[t.length-1]],t.push(w);break;case 3:return!0}}return!0}},e={EOF:1,parseError:function(r,e){if(!this.yy.parser)throw new Error(r);this.yy.parser.parseError(r,e)},setInput:function(r){return this._input=r,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];return this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r,r.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var e=r.length,t=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e-1),this.offset-=e;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),t.length-1&&(this.yylineno-=t.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:t?(t.length===a.length?this.yylloc.first_column:0)+a[a.length-t.length].length-t[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this},more:function(){return this._more=!0,this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),e=new Array(r.length+1).join("-");return r+this.upcomingInput()+"\n"+e+"^"},next:function(){if(this.done)return this.EOF;var r,e,t,a,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),s=0;s<o.length&&(!(t=this._input.match(this.rules[o[s]]))||e&&!(t[0].length>e[0].length)||(e=t,a=s,this.options.flex));s++);return e?((n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,o[a],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return void 0!==r?r:this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(r){this.begin(r)},options:{},performAction:function(r,e,t,a){switch(t){case 0:return"*";case 1:return"/";case 2:return"-";case 3:return"+";case 4:return"^";case 5:return"%";case 6:return"(";case 7:return")";case 8:return",";case 9:return"==";case 10:return"!=";case 11:return"~=";case 12:return">=";case 13:return"<=";case 14:return"<";case 15:return">";case 16:return"?";case 17:return":";case 18:return"and";case 19:return"or";case 20:return"not";case 21:return"in";case 22:return"of";case 23:break;case 24:return"NUMBER";case 25:return e.yytext=JSON.stringify(e.yytext),"SYMBOL";case 26:return e.yytext=r.buildString("'",e.yytext),"SYMBOL";case 27:return e.yytext=r.buildString('"',e.yytext),"STRING";case 28:return"EOF"}},rules:[/^(?:\*)/,/^(?:\/)/,/^(?:-)/,/^(?:\+)/,/^(?:\^)/,/^(?:\%)/,/^(?:\()/,/^(?:\))/,/^(?:\,)/,/^(?:==)/,/^(?:\!=)/,/^(?:\~=)/,/^(?:>=)/,/^(?:<=)/,/^(?:<)/,/^(?:>)/,/^(?:\?)/,/^(?:\:)/,/^(?:and[^\w])/,/^(?:or[^\w])/,/^(?:not[^\w])/,/^(?:in[^\w])/,/^(?:of[^\w])/,/^(?:\s+)/,/^(?:[0-9]+(?:\.[0-9]+)?\b)/,/^(?:[a-zA-Z$_][\.a-zA-Z0-9$_]*)/,/^(?:'(?:\\'|\\\\|[^'\\])*')/,/^(?:"(?:\\"|\\\\|[^"\\])*")/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28],inclusive:!0}}};function t(){this.yy={}}return r.lexer=e,t.prototype=r,r.Parser=t,new t}();e.E2=t,t.Parser},186492:function(r,e,t){var a;r=t.nmd(r),function(n){var o=(r&&r.exports,"object"==typeof t.g&&t.g);o.global!==o&&o.window;var s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,i=/[\x01-\x7F]/g,c=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,u=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,l={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon",ˆ:"circ",ˇ:"caron","°":"deg","©":"copy","®":"reg","℗":"copysr",℘:"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78",𝒶:"ascr",𝕒:"aopf",𝔞:"afr",𝔸:"Aopf",𝔄:"Afr",𝒜:"Ascr",ª:"ordf",á:"aacute",Á:"Aacute",à:"agrave",À:"Agrave",ă:"abreve",Ă:"Abreve",â:"acirc",Â:"Acirc",å:"aring",Å:"angst",ä:"auml",Ä:"Auml",ã:"atilde",Ã:"Atilde",ą:"aogon",Ą:"Aogon",ā:"amacr",Ā:"Amacr",æ:"aelig",Æ:"AElig",𝒷:"bscr",𝕓:"bopf",𝔟:"bfr",𝔹:"Bopf",ℬ:"Bscr",𝔅:"Bfr",𝔠:"cfr",𝒸:"cscr",𝕔:"copf",ℭ:"Cfr",𝒞:"Cscr",ℂ:"Copf",ć:"cacute",Ć:"Cacute",ĉ:"ccirc",Ĉ:"Ccirc",č:"ccaron",Č:"Ccaron",ċ:"cdot",Ċ:"Cdot",ç:"ccedil",Ç:"Ccedil","℅":"incare",𝔡:"dfr",ⅆ:"dd",𝕕:"dopf",𝒹:"dscr",𝒟:"Dscr",𝔇:"Dfr",ⅅ:"DD",𝔻:"Dopf",ď:"dcaron",Ď:"Dcaron",đ:"dstrok",Đ:"Dstrok",ð:"eth",Ð:"ETH",ⅇ:"ee",ℯ:"escr",𝔢:"efr",𝕖:"eopf",ℰ:"Escr",𝔈:"Efr",𝔼:"Eopf",é:"eacute",É:"Eacute",è:"egrave",È:"Egrave",ê:"ecirc",Ê:"Ecirc",ě:"ecaron",Ě:"Ecaron",ë:"euml",Ë:"Euml",ė:"edot",Ė:"Edot",ę:"eogon",Ę:"Eogon",ē:"emacr",Ē:"Emacr",𝔣:"ffr",𝕗:"fopf",𝒻:"fscr",𝔉:"Ffr",𝔽:"Fopf",ℱ:"Fscr",ff:"fflig",ffi:"ffilig",ffl:"ffllig",fi:"filig",fj:"fjlig",fl:"fllig",ƒ:"fnof",ℊ:"gscr",𝕘:"gopf",𝔤:"gfr",𝒢:"Gscr",𝔾:"Gopf",𝔊:"Gfr",ǵ:"gacute",ğ:"gbreve",Ğ:"Gbreve",ĝ:"gcirc",Ĝ:"Gcirc",ġ:"gdot",Ġ:"Gdot",Ģ:"Gcedil",𝔥:"hfr",ℎ:"planckh",𝒽:"hscr",𝕙:"hopf",ℋ:"Hscr",ℌ:"Hfr",ℍ:"Hopf",ĥ:"hcirc",Ĥ:"Hcirc",ℏ:"hbar",ħ:"hstrok",Ħ:"Hstrok",𝕚:"iopf",𝔦:"ifr",𝒾:"iscr",ⅈ:"ii",𝕀:"Iopf",ℐ:"Iscr",ℑ:"Im",í:"iacute",Í:"Iacute",ì:"igrave",Ì:"Igrave",î:"icirc",Î:"Icirc",ï:"iuml",Ï:"Iuml",ĩ:"itilde",Ĩ:"Itilde",İ:"Idot",į:"iogon",Į:"Iogon",ī:"imacr",Ī:"Imacr",ij:"ijlig",IJ:"IJlig",ı:"imath",𝒿:"jscr",𝕛:"jopf",𝔧:"jfr",𝒥:"Jscr",𝔍:"Jfr",𝕁:"Jopf",ĵ:"jcirc",Ĵ:"Jcirc",ȷ:"jmath",𝕜:"kopf",𝓀:"kscr",𝔨:"kfr",𝒦:"Kscr",𝕂:"Kopf",𝔎:"Kfr",ķ:"kcedil",Ķ:"Kcedil",𝔩:"lfr",𝓁:"lscr",ℓ:"ell",𝕝:"lopf",ℒ:"Lscr",𝔏:"Lfr",𝕃:"Lopf",ĺ:"lacute",Ĺ:"Lacute",ľ:"lcaron",Ľ:"Lcaron",ļ:"lcedil",Ļ:"Lcedil",ł:"lstrok",Ł:"Lstrok",ŀ:"lmidot",Ŀ:"Lmidot",𝔪:"mfr",𝕞:"mopf",𝓂:"mscr",𝔐:"Mfr",𝕄:"Mopf",ℳ:"Mscr",𝔫:"nfr",𝕟:"nopf",𝓃:"nscr",ℕ:"Nopf",𝒩:"Nscr",𝔑:"Nfr",ń:"nacute",Ń:"Nacute",ň:"ncaron",Ň:"Ncaron",ñ:"ntilde",Ñ:"Ntilde",ņ:"ncedil",Ņ:"Ncedil","№":"numero",ŋ:"eng",Ŋ:"ENG",𝕠:"oopf",𝔬:"ofr",ℴ:"oscr",𝒪:"Oscr",𝔒:"Ofr",𝕆:"Oopf",º:"ordm",ó:"oacute",Ó:"Oacute",ò:"ograve",Ò:"Ograve",ô:"ocirc",Ô:"Ocirc",ö:"ouml",Ö:"Ouml",ő:"odblac",Ő:"Odblac",õ:"otilde",Õ:"Otilde",ø:"oslash",Ø:"Oslash",ō:"omacr",Ō:"Omacr",œ:"oelig",Œ:"OElig",𝔭:"pfr",𝓅:"pscr",𝕡:"popf",ℙ:"Popf",𝔓:"Pfr",𝒫:"Pscr",𝕢:"qopf",𝔮:"qfr",𝓆:"qscr",𝒬:"Qscr",𝔔:"Qfr",ℚ:"Qopf",ĸ:"kgreen",𝔯:"rfr",𝕣:"ropf",𝓇:"rscr",ℛ:"Rscr",ℜ:"Re",ℝ:"Ropf",ŕ:"racute",Ŕ:"Racute",ř:"rcaron",Ř:"Rcaron",ŗ:"rcedil",Ŗ:"Rcedil",𝕤:"sopf",𝓈:"sscr",𝔰:"sfr",𝕊:"Sopf",𝔖:"Sfr",𝒮:"Sscr","Ⓢ":"oS",ś:"sacute",Ś:"Sacute",ŝ:"scirc",Ŝ:"Scirc",š:"scaron",Š:"Scaron",ş:"scedil",Ş:"Scedil",ß:"szlig",𝔱:"tfr",𝓉:"tscr",𝕥:"topf",𝒯:"Tscr",𝔗:"Tfr",𝕋:"Topf",ť:"tcaron",Ť:"Tcaron",ţ:"tcedil",Ţ:"Tcedil","™":"trade",ŧ:"tstrok",Ŧ:"Tstrok",𝓊:"uscr",𝕦:"uopf",𝔲:"ufr",𝕌:"Uopf",𝔘:"Ufr",𝒰:"Uscr",ú:"uacute",Ú:"Uacute",ù:"ugrave",Ù:"Ugrave",ŭ:"ubreve",Ŭ:"Ubreve",û:"ucirc",Û:"Ucirc",ů:"uring",Ů:"Uring",ü:"uuml",Ü:"Uuml",ű:"udblac",Ű:"Udblac",ũ:"utilde",Ũ:"Utilde",ų:"uogon",Ų:"Uogon",ū:"umacr",Ū:"Umacr",𝔳:"vfr",𝕧:"vopf",𝓋:"vscr",𝔙:"Vfr",𝕍:"Vopf",𝒱:"Vscr",𝕨:"wopf",𝓌:"wscr",𝔴:"wfr",𝒲:"Wscr",𝕎:"Wopf",𝔚:"Wfr",ŵ:"wcirc",Ŵ:"Wcirc",𝔵:"xfr",𝓍:"xscr",𝕩:"xopf",𝕏:"Xopf",𝔛:"Xfr",𝒳:"Xscr",𝔶:"yfr",𝓎:"yscr",𝕪:"yopf",𝒴:"Yscr",𝔜:"Yfr",𝕐:"Yopf",ý:"yacute",Ý:"Yacute",ŷ:"ycirc",Ŷ:"Ycirc",ÿ:"yuml",Ÿ:"Yuml",𝓏:"zscr",𝔷:"zfr",𝕫:"zopf",ℨ:"Zfr",ℤ:"Zopf",𝒵:"Zscr",ź:"zacute",Ź:"Zacute",ž:"zcaron",Ž:"Zcaron",ż:"zdot",Ż:"Zdot",Ƶ:"imped",þ:"thorn",Þ:"THORN",ʼn:"napos",α:"alpha",Α:"Alpha",β:"beta",Β:"Beta",γ:"gamma",Γ:"Gamma",δ:"delta",Δ:"Delta",ε:"epsi",ϵ:"epsiv",Ε:"Epsilon",ϝ:"gammad",Ϝ:"Gammad",ζ:"zeta",Ζ:"Zeta",η:"eta",Η:"Eta",θ:"theta",ϑ:"thetav",Θ:"Theta",ι:"iota",Ι:"Iota",κ:"kappa",ϰ:"kappav",Κ:"Kappa",λ:"lambda",Λ:"Lambda",μ:"mu",µ:"micro",Μ:"Mu",ν:"nu",Ν:"Nu",ξ:"xi",Ξ:"Xi",ο:"omicron",Ο:"Omicron",π:"pi",ϖ:"piv",Π:"Pi",ρ:"rho",ϱ:"rhov",Ρ:"Rho",σ:"sigma",Σ:"Sigma",ς:"sigmaf",τ:"tau",Τ:"Tau",υ:"upsi",Υ:"Upsilon",ϒ:"Upsi",φ:"phi",ϕ:"phiv",Φ:"Phi",χ:"chi",Χ:"Chi",ψ:"psi",Ψ:"Psi",ω:"omega",Ω:"ohm",а:"acy",А:"Acy",б:"bcy",Б:"Bcy",в:"vcy",В:"Vcy",г:"gcy",Г:"Gcy",ѓ:"gjcy",Ѓ:"GJcy",д:"dcy",Д:"Dcy",ђ:"djcy",Ђ:"DJcy",е:"iecy",Е:"IEcy",ё:"iocy",Ё:"IOcy",є:"jukcy",Є:"Jukcy",ж:"zhcy",Ж:"ZHcy",з:"zcy",З:"Zcy",ѕ:"dscy",Ѕ:"DScy",и:"icy",И:"Icy",і:"iukcy",І:"Iukcy",ї:"yicy",Ї:"YIcy",й:"jcy",Й:"Jcy",ј:"jsercy",Ј:"Jsercy",к:"kcy",К:"Kcy",ќ:"kjcy",Ќ:"KJcy",л:"lcy",Л:"Lcy",љ:"ljcy",Љ:"LJcy",м:"mcy",М:"Mcy",н:"ncy",Н:"Ncy",њ:"njcy",Њ:"NJcy",о:"ocy",О:"Ocy",п:"pcy",П:"Pcy",р:"rcy",Р:"Rcy",с:"scy",С:"Scy",т:"tcy",Т:"Tcy",ћ:"tshcy",Ћ:"TSHcy",у:"ucy",У:"Ucy",ў:"ubrcy",Ў:"Ubrcy",ф:"fcy",Ф:"Fcy",х:"khcy",Х:"KHcy",ц:"tscy",Ц:"TScy",ч:"chcy",Ч:"CHcy",џ:"dzcy",Џ:"DZcy",ш:"shcy",Ш:"SHcy",щ:"shchcy",Щ:"SHCHcy",ъ:"hardcy",Ъ:"HARDcy",ы:"ycy",Ы:"Ycy",ь:"softcy",Ь:"SOFTcy",э:"ecy",Э:"Ecy",ю:"yucy",Ю:"YUcy",я:"yacy",Я:"YAcy",ℵ:"aleph",ℶ:"beth",ℷ:"gimel",ℸ:"daleth"},p=/["&'<>`]/g,d={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},f=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,h=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,g=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,m={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},b={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},y={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},v=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],w=String.fromCharCode,q={}.hasOwnProperty,E=function(r,e){return q.call(r,e)},D=function(r,e){if(!r)return e;var t,a={};for(t in e)a[t]=E(r,t)?r[t]:e[t];return a},A=function(r,e){var t="";return r>=55296&&r<=57343||r>1114111?(e&&C("character reference outside the permissible Unicode range"),"�"):E(y,r)?(e&&C("disallowed character reference"),y[r]):(e&&function(r,e){for(var t=-1,a=r.length;++t<a;)if(r[t]==e)return!0;return!1}(v,r)&&C("disallowed character reference"),r>65535&&(t+=w((r-=65536)>>>10&1023|55296),r=56320|1023&r),t+=w(r))},x=function(r){return"&#x"+r.toString(16).toUpperCase()+";"},k=function(r){return"&#"+r+";"},C=function(r){throw Error("Parse error: "+r)},S=function(r,e){(e=D(e,S.options)).strict&&h.test(r)&&C("forbidden code point");var t=e.encodeEverything,a=e.useNamedReferences,n=e.allowUnsafeSymbols,o=e.decimal?k:x,d=function(r){return o(r.charCodeAt(0))};return t?(r=r.replace(i,(function(r){return a&&E(l,r)?"&"+l[r]+";":d(r)})),a&&(r=r.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),a&&(r=r.replace(u,(function(r){return"&"+l[r]+";"})))):a?(n||(r=r.replace(p,(function(r){return"&"+l[r]+";"}))),r=(r=r.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(u,(function(r){return"&"+l[r]+";"}))):n||(r=r.replace(p,d)),r.replace(s,(function(r){var e=r.charCodeAt(0),t=r.charCodeAt(1);return o(1024*(e-55296)+t-56320+65536)})).replace(c,d)};S.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var L=function(r,e){var t=(e=D(e,L.options)).strict;return t&&f.test(r)&&C("malformed character reference"),r.replace(g,(function(r,a,n,o,s,i,c,u,l){var p,d,f,h,g,y;return a?m[g=a]:n?(g=n,(y=o)&&e.isAttributeValue?(t&&"="==y&&C("`&` did not start a character reference"),r):(t&&C("named character reference was not terminated by a semicolon"),b[g]+(y||""))):s?(f=s,d=i,t&&!d&&C("character reference was not terminated by a semicolon"),p=parseInt(f,10),A(p,t)):c?(h=c,d=u,t&&!d&&C("character reference was not terminated by a semicolon"),p=parseInt(h,16),A(p,t)):(t&&C("named character reference was not terminated by a semicolon"),r)}))};L.options={isAttributeValue:!1,strict:!1};var F={version:"1.2.0",encode:S,decode:L,escape:function(r){return r.replace(p,(function(r){return d[r]}))},unescape:L};void 0===(a=function(){return F}.call(e,t,e,r))||(r.exports=a)}()},769877:r=>{var e=Math.floor,t=Math.random;r.exports=function(r,a){return r+e(t()*(a-r+1))}},683608:(r,e,t)=>{var a=t(769877),n=t(816612),o=t(418601),s=parseFloat,i=Math.min,c=Math.random;r.exports=function(r,e,t){if(t&&"boolean"!=typeof t&&n(r,e,t)&&(e=t=void 0),void 0===t&&("boolean"==typeof e?(t=e,e=void 0):"boolean"==typeof r&&(t=r,r=void 0)),void 0===r&&void 0===e?(r=0,e=1):(r=o(r),void 0===e?(e=r,r=0):e=o(e)),r>e){var u=r;r=e,e=u}if(t||r%1||e%1){var l=c();return i(r+l*(e-r+s("1e-"+((l+"").length-1))),e)}return a(r,e)}},524568:(r,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=t[a])}return r},n=function(){function r(r,e){for(var t=0;t<e.length;t++){var a=e[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}return function(e,t,a){return t&&r(e.prototype,t),a&&r(e,a),e}}(),o=f(t(124852)),s=f(t(675263)),i=f(t(532593)),c=f(t(174112)),u=f(t(853228)),l=f(t(822673)),p=f(t(681413)),d=t(915597);function f(r){return r&&r.__esModule?r:{default:r}}function h(r,e){return r.scrollWidth-1<=e}function g(r,e){return r.scrollHeight-1<=e}var m=function(r){function e(r){!function(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?r:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r));return t.state={fontSize:null,ready:!1},t.handleWindowResize=function(){t.process()},"perfectFit"in r&&console.warn("TextFit property perfectFit has been removed."),t}return function(r,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}(e,r),n(e,[{key:"componentWillMount",value:function(){this.handleWindowResize=(0,l.default)(this.handleWindowResize,this.props.throttle)}},{key:"componentDidMount",value:function(){this.props.autoResize&&window.addEventListener("resize",this.handleWindowResize),this.process()}},{key:"componentDidUpdate",value:function(r){this.state.ready&&((0,i.default)(this.props,r)||this.process())}},{key:"componentWillUnmount",value:function(){this.props.autoResize&&window.removeEventListener("resize",this.handleWindowResize),this.pid=(0,p.default)()}},{key:"process",value:function(){var r=this,e=this.props,t=e.min,a=e.max,n=e.mode,o=e.forceSingleModeWidth,s=e.onReady,i=this._parent,l=this._child,f=(0,d.innerWidth)(i),m=(0,d.innerHeight)(i);if(m<=0||isNaN(m))console.warn("Can not process element without height. Make sure the element is displayed and has a static height.");else if(f<=0||isNaN(f))console.warn("Can not process element without width. Make sure the element is displayed and has a static width.");else{var b=(0,p.default)();this.pid=b;var y=function(){return b!==r.pid},v="multi"===n?function(){return g(l,m)}:function(){return h(l,f)},w="multi"===n?function(){return h(l,f)}:function(){return g(l,m)},q=void 0,E=t,D=a;this.setState({ready:!1}),(0,c.default)([function(e){return(0,u.default)((function(){return E<=D}),(function(e){if(y())return e(!0);q=parseInt((E+D)/2,10),r.setState({fontSize:q},(function(){return y()?e(!0):(v()?E=q+1:D=q-1,e())}))}),e)},function(e){return"single"===n&&o||w()?e():(E=t,D=q,(0,u.default)((function(){return E<D}),(function(e){if(y())return e(!0);q=parseInt((E+D)/2,10),r.setState({fontSize:q},(function(){return b!==r.pid?e(!0):(w()?E=q+1:D=q-1,e())}))}),e))},function(e){if(q=Math.min(E,D),q=Math.max(q,t),q=Math.min(q,a),q=Math.max(q,0),y())return e(!0);r.setState({fontSize:q},e)}],(function(e){e||y()||r.setState({ready:!0},(function(){return s(q)}))}))}}},{key:"render",value:function(){var r=this,e=this.props,t=e.children,n=e.text,s=e.style,i=(e.min,e.max,e.mode),c=(e.forceWidth,e.forceSingleModeWidth,e.throttle,e.autoResize,e.onReady,function(r,e){var t={};for(var a in r)e.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a]);return t}(e,["children","text","style","min","max","mode","forceWidth","forceSingleModeWidth","throttle","autoResize","onReady"])),u=this.state,l=u.fontSize,p=u.ready,d=a({},s,{fontSize:l}),f={display:p?"block":"inline-block"};return"single"===i&&(f.whiteSpace="nowrap"),o.default.createElement("div",a({ref:function(e){return r._parent=e},style:d},c),o.default.createElement("div",{ref:function(e){return r._child=e},style:f},n&&"function"==typeof t?p?t(n):n:t))}}]),e}(o.default.Component);m.propTypes={children:s.default.node,text:s.default.string,min:s.default.number,max:s.default.number,mode:s.default.oneOf(["single","multi"]),forceSingleModeWidth:s.default.bool,throttle:s.default.number,onReady:s.default.func},m.defaultProps={min:1,max:100,mode:"multi",forceSingleModeWidth:!0,throttle:50,autoResize:!0,onReady:function(){}},e.default=m},23195:(r,e,t)=>{"use strict";e.iF=void 0;var a,n=(a=t(524568))&&a.__esModule?a:{default:a};e.iF=n.default,n.default},915597:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.innerHeight=function(r){var e=window.getComputedStyle(r,null);return r.clientHeight-parseInt(e.getPropertyValue("padding-top"),10)-parseInt(e.getPropertyValue("padding-bottom"),10)},e.innerWidth=function(r){var e=window.getComputedStyle(r,null);return r.clientWidth-parseInt(e.getPropertyValue("padding-left"),10)-parseInt(e.getPropertyValue("padding-right"),10)}},174112:(r,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r,e){var t=[],a=0,o=!0;function s(r){function a(){e&&e(r,t)}o?n.default.nextTick(a):a()}r.length>0?r[0]((function e(n,o){t.push(o),++a>=r.length||n?s(n):r[a](e)})):s(null),o=!1};var a,n=(a=t(130488))&&a.__esModule?a:{default:a}},532593:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r,e){if(r===e)return!0;var t=Object.keys(r),a=Object.keys(e);if(t.length!==a.length)return!1;for(var n=Object.prototype.hasOwnProperty,o=0;o<t.length;o++)if(!n.call(e,t[o])||r[t[o]]!==e[t[o]])return!1;return!0}},822673:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r,e){var t=void 0,a=void 0,n=void 0,o=void 0,s=0;function i(){o=0,s=+new Date,n=r.apply(t,a),t=null,a=null}return function(){t=this,a=arguments;var r=new Date-s;return o||(r>=e?i():o=setTimeout(i,e-r)),n}}},681413:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return t++};var t=0},853228:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;r()?e((function t(n){for(var o=arguments.length,s=Array(o>1?o-1:0),i=1;i<o;i++)s[i-1]=arguments[i];n?a(n):r.apply(this,s)?e(t):a(null)})):a(null)};var t=function(){}},130488:r=>{var e,t,a=r.exports={};function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(r){if(e===setTimeout)return setTimeout(r,0);if((e===n||!e)&&setTimeout)return e=setTimeout,setTimeout(r,0);try{return e(r,0)}catch(t){try{return e.call(null,r,0)}catch(t){return e.call(this,r,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:n}catch(r){e=n}try{t="function"==typeof clearTimeout?clearTimeout:o}catch(r){t=o}}();var i,c=[],u=!1,l=-1;function p(){u&&i&&(u=!1,i.length?c=i.concat(c):l=-1,c.length&&d())}function d(){if(!u){var r=s(p);u=!0;for(var e=c.length;e;){for(i=c,c=[];++l<e;)i&&i[l].run();l=-1,e=c.length}i=null,u=!1,function(r){if(t===clearTimeout)return clearTimeout(r);if((t===o||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(r);try{t(r)}catch(e){try{return t.call(null,r)}catch(e){return t.call(this,r)}}}(r)}}function f(r,e){this.fun=r,this.array=e}function h(){}a.nextTick=function(r){var e=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)e[t-1]=arguments[t];c.push(new f(r,e)),1!==c.length||u||s(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=h,a.addListener=h,a.once=h,a.off=h,a.removeListener=h,a.removeAllListeners=h,a.emit=h,a.prependListener=h,a.prependOnceListener=h,a.listeners=function(r){return[]},a.binding=function(r){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(r){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/39486.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt b/geonode_mapstore_client/static/mapstore/dist/js/39486.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/39486.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt rename to geonode_mapstore_client/static/mapstore/dist/js/39486.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt diff --git a/geonode_mapstore_client/static/mapstore/dist/js/39736.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/39736.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/39736.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/39736.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/39830.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/39830.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/39830.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/39830.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/39862.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/39862.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/39862.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/39862.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/39898.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/39898.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/39898.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/39898.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/39988.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/39988.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/39988.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/39988.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/40026.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/40026.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/40026.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/40026.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/40105.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/40105.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/40105.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/40105.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/40353.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/40353.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/40353.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/40353.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/40483.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/40483.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/40483.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/40483.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4050.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4050.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4050.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4050.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/406.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/406.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/406.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/406.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/40722.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/40722.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/40722.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/40722.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/40812.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/40812.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/40812.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/40812.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/40869.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/40869.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/40869.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/40869.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41090.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41090.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41090.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41090.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41105.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41105.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41105.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41105.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41142.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41142.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41142.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41142.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41263.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41263.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41263.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41263.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41472.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41472.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41472.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41472.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41480.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41480.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41480.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41480.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41504.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41504.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41504.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41504.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41523.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41523.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41523.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41523.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41692.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41692.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41692.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41692.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41745.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41745.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41745.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41745.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4181.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4181.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4181.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4181.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41857.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41857.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41857.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41857.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4187.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4187.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4187.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4187.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41876.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41876.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41876.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41876.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/41932.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/41932.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/41932.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/41932.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/42007.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/42007.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/42007.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/42007.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/42039.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/42039.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/42039.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/42039.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/42043.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/42043.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/42043.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/42043.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/42081.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/42081.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/42081.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/42081.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/42379.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/42379.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/42379.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/42379.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/42531.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/42531.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/42531.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/42531.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/42542.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/42542.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/42542.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/42542.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/42803.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/42803.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/42803.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/42803.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/42860.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/42860.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/42860.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/42860.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4294.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4294.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4294.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4294.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43009.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43009.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43009.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43009.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43109.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43109.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43109.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43109.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43122.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43122.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43122.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43122.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43129.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43129.74fb1733f89b05e9e60d.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/js/43129.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43129.74fb1733f89b05e9e60d.chunk.js index 6b4f8aebd1..4ee4ad0f7b 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/43129.b32b32d2650f7cc681c9.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/43129.74fb1733f89b05e9e60d.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 43129.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt */ +/*! For license information please see 43129.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[43129],{743129:(e,t,u)=>{"use strict";u.d(t,{ZP:()=>Z});var n=u(366680),o=u(294184),s=u.n(o),i=u(675263),r=u.n(i),a=u(124852),l=u.n(a),p=u(180307),c=function(e){var t=e.onMouseDown;return l().createElement("span",{className:"Select-arrow",onMouseDown:t})};c.propTypes={onMouseDown:r().func};var h=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],d=function(e){for(var t=0;t<h.length;t++)e=e.replace(h[t].letters,h[t].base);return e},f=function(e){return null!=e&&""!==e},v=function(e,t,u,n){return n.ignoreAccents&&(t=d(t)),n.ignoreCase&&(t=t.toLowerCase()),n.trimFilter&&(t=t.replace(/^\s+|\s+$/g,"")),u&&(u=u.map((function(e){return e[n.valueKey]}))),e.filter((function(e){if(u&&u.indexOf(e[n.valueKey])>-1)return!1;if(n.filterOption)return n.filterOption.call(void 0,e,t);if(!t)return!0;var o=e[n.valueKey],s=e[n.labelKey],i=f(o),r=f(s);if(!i&&!r)return!1;var a=i?String(o):null,l=r?String(s):null;return n.ignoreAccents&&(a&&"label"!==n.matchProp&&(a=d(a)),l&&"value"!==n.matchProp&&(l=d(l))),n.ignoreCase&&(a&&"label"!==n.matchProp&&(a=a.toLowerCase()),l&&"value"!==n.matchProp&&(l=l.toLowerCase())),"start"===n.matchPos?a&&"label"!==n.matchProp&&a.substr(0,t.length)===t||l&&"value"!==n.matchProp&&l.substr(0,t.length)===t:a&&"label"!==n.matchProp&&a.indexOf(t)>=0||l&&"value"!==n.matchProp&&l.indexOf(t)>=0}))},E=function(e){var t=e.focusedOption,u=e.focusOption,n=e.inputValue,o=e.instancePrefix,i=e.onFocus,r=e.onOptionRef,a=e.onSelect,p=e.optionClassName,c=e.optionComponent,h=e.optionRenderer,d=e.options,f=e.removeValue,v=e.selectValue,E=e.valueArray,b=e.valueKey,y=c;return d.map((function(e,c){var d=E&&E.some((function(t){return t[b]===e[b]})),g=e===t,m=s()(p,{"Select-option":!0,"is-selected":d,"is-focused":g,"is-disabled":e.disabled});return l().createElement(y,{className:m,focusOption:u,inputValue:n,instancePrefix:o,isDisabled:e.disabled,isFocused:g,isSelected:d,key:"option-"+c+"-"+e[b],onFocus:i,onSelect:a,option:e,optionIndex:c,ref:function(e){r(e,g)},removeValue:f,selectValue:v},h(e,c,n))}))};E.propTypes={focusOption:r().func,focusedOption:r().object,inputValue:r().string,instancePrefix:r().string,onFocus:r().func,onOptionRef:r().func,onSelect:r().func,optionClassName:r().string,optionComponent:r().func,optionRenderer:r().func,options:r().array,removeValue:r().func,selectValue:r().func,valueArray:r().array,valueKey:r().string};var b=function(e){e.preventDefault(),e.stopPropagation(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href,e.target.target):window.location.href=e.target.href)},y="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=(function(){function e(e){this.value=e}function t(t){var u,n;function o(u,n){try{var i=t[u](n),r=i.value;r instanceof e?Promise.resolve(r.value).then((function(e){o("next",e)}),(function(e){o("throw",e)})):s(i.done?"return":"normal",i.value)}catch(e){s("throw",e)}}function s(e,t){switch(e){case"return":u.resolve({value:t,done:!0});break;case"throw":u.reject(t);break;default:u.resolve({value:t,done:!1})}(u=u.next)?o(u.key,u.arg):n=null}this._invoke=function(e,t){return new Promise((function(s,i){var r={key:e,arg:t,resolve:s,reject:i,next:null};n?n=n.next=r:(u=n=r,o(e,t))}))},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),m=function(){function e(e,t){for(var u=0;u<t.length;u++){var n=t[u];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,u,n){return u&&e(t.prototype,u),n&&e(t,n),t}}(),C=function(e,t,u){return t in e?Object.defineProperty(e,t,{value:u,enumerable:!0,configurable:!0,writable:!0}):e[t]=u,e},F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var u=arguments[t];for(var n in u)Object.prototype.hasOwnProperty.call(u,n)&&(e[n]=u[n])}return e},O=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)},A=function(e,t){var u={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(u[n]=e[n]);return u},D=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},k=function(e){function t(e){g(this,t);var u=D(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return u.handleMouseDown=u.handleMouseDown.bind(u),u.handleMouseEnter=u.handleMouseEnter.bind(u),u.handleMouseMove=u.handleMouseMove.bind(u),u.handleTouchStart=u.handleTouchStart.bind(u),u.handleTouchEnd=u.handleTouchEnd.bind(u),u.handleTouchMove=u.handleTouchMove.bind(u),u.onFocus=u.onFocus.bind(u),u}return O(t,e),m(t,[{key:"handleMouseDown",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onSelect(this.props.option,e)}},{key:"handleMouseEnter",value:function(e){this.onFocus(e)}},{key:"handleMouseMove",value:function(e){this.onFocus(e)}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"onFocus",value:function(e){this.props.isFocused||this.props.onFocus(this.props.option,e)}},{key:"render",value:function(){var e=this.props,t=e.option,u=e.instancePrefix,n=e.optionIndex,o=s()(this.props.className,t.className);return t.disabled?l().createElement("div",{className:o,onMouseDown:b,onClick:b},this.props.children):l().createElement("div",{className:o,style:t.style,role:"option","aria-label":t.label,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,id:u+"-option-"+n,title:t.title},this.props.children)}}]),t}(l().Component);k.propTypes={children:r().node,className:r().string,instancePrefix:r().string.isRequired,isDisabled:r().bool,isFocused:r().bool,isSelected:r().bool,onFocus:r().func,onSelect:r().func,onUnfocus:r().func,option:r().object.isRequired,optionIndex:r().number};var S=function(e){function t(e){g(this,t);var u=D(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return u.handleMouseDown=u.handleMouseDown.bind(u),u.onRemove=u.onRemove.bind(u),u.handleTouchEndRemove=u.handleTouchEndRemove.bind(u),u.handleTouchMove=u.handleTouchMove.bind(u),u.handleTouchStart=u.handleTouchStart.bind(u),u}return O(t,e),m(t,[{key:"handleMouseDown",value:function(e){if("mousedown"!==e.type||0===e.button)return this.props.onClick?(e.stopPropagation(),void this.props.onClick(this.props.value,e)):void(this.props.value.href&&e.stopPropagation())}},{key:"onRemove",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onRemove(this.props.value)}},{key:"handleTouchEndRemove",value:function(e){this.dragging||this.onRemove(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"renderRemoveIcon",value:function(){if(!this.props.disabled&&this.props.onRemove)return l().createElement("span",{className:"Select-value-icon","aria-hidden":"true",onMouseDown:this.onRemove,onTouchEnd:this.handleTouchEndRemove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove},"×")}},{key:"renderLabel",value:function(){var e="Select-value-label";return this.props.onClick||this.props.value.href?l().createElement("a",{className:e,href:this.props.value.href,target:this.props.value.target,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},this.props.children):l().createElement("span",{className:e,role:"option","aria-selected":"true",id:this.props.id},this.props.children)}},{key:"render",value:function(){return l().createElement("div",{className:s()("Select-value",this.props.value.disabled?"Select-value-disabled":"",this.props.value.className),style:this.props.value.style,title:this.props.value.title},this.renderRemoveIcon(),this.renderLabel())}}]),t}(l().Component);S.propTypes={children:r().node,disabled:r().bool,id:r().string,onClick:r().func,onRemove:r().func,value:r().object.isRequired};var w=function(e){return"string"==typeof e?e:null!==e&&JSON.stringify(e)||""},V=r().oneOfType([r().string,r().node]),T=r().oneOfType([r().string,r().number]),P=1,I=function(e,t){var u=void 0===e?"undefined":y(e);if("string"!==u&&"number"!==u&&"boolean"!==u)return e;var n=t.options,o=t.valueKey;if(n)for(var s=0;s<n.length;s++)if(String(n[s][o])===String(e))return n[s]},R=function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},B=function(e){function t(e){g(this,t);var u=D(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return["clearValue","focusOption","getOptionLabel","handleInputBlur","handleInputChange","handleInputFocus","handleInputValueChange","handleKeyDown","handleMenuScroll","handleMouseDown","handleMouseDownOnArrow","handleMouseDownOnMenu","handleTouchEnd","handleTouchEndClearValue","handleTouchMove","handleTouchOutside","handleTouchStart","handleValueClick","onOptionRef","removeValue","selectValue"].forEach((function(e){return u[e]=u[e].bind(u)})),u.state={inputValue:"",isFocused:!1,isOpen:!1,isPseudoFocused:!1,required:!1},u}return O(t,e),m(t,[{key:"componentWillMount",value:function(){this._instancePrefix="react-select-"+(this.props.instanceId||++P)+"-";var e=this.getValueArray(this.props.value);this.props.required&&this.setState({required:R(e[0],this.props.multi)})}},{key:"componentDidMount",value:function(){void 0!==this.props.autofocus&&"undefined"!=typeof console&&console.warn("Warning: The autofocus prop has changed to autoFocus, support will be removed after react-select@1.0"),(this.props.autoFocus||this.props.autofocus)&&this.focus()}},{key:"componentWillReceiveProps",value:function(e){var t=this.getValueArray(e.value,e);e.required?this.setState({required:R(t[0],e.multi)}):this.props.required&&this.setState({required:!1}),this.state.inputValue&&this.props.value!==e.value&&e.onSelectResetsInput&&this.setState({inputValue:this.handleInputValueChange("")})}},{key:"componentDidUpdate",value:function(e,t){if(this.menu&&this.focused&&this.state.isOpen&&!this.hasScrolledToOption){var u=(0,p.findDOMNode)(this.focused),n=(0,p.findDOMNode)(this.menu),o=n.scrollTop,s=o+n.offsetHeight,i=u.offsetTop,r=i+u.offsetHeight;(o>i||s<r)&&(n.scrollTop=u.offsetTop),this.hasScrolledToOption=!0}else this.state.isOpen||(this.hasScrolledToOption=!1);if(this._scrollToFocusedOptionOnUpdate&&this.focused&&this.menu){this._scrollToFocusedOptionOnUpdate=!1;var a=(0,p.findDOMNode)(this.focused),l=(0,p.findDOMNode)(this.menu),c=a.getBoundingClientRect(),h=l.getBoundingClientRect();c.bottom>h.bottom?l.scrollTop=a.offsetTop+a.clientHeight-l.offsetHeight:c.top<h.top&&(l.scrollTop=a.offsetTop)}if(this.props.scrollMenuIntoView&&this.menuContainer){var d=this.menuContainer.getBoundingClientRect();window.innerHeight<d.bottom+this.props.menuBuffer&&window.scrollBy(0,d.bottom+this.props.menuBuffer-window.innerHeight)}if(e.disabled!==this.props.disabled&&(this.setState({isFocused:!1}),this.closeMenu()),t.isOpen!==this.state.isOpen){this.toggleTouchOutsideEvent(this.state.isOpen);var f=this.state.isOpen?this.props.onOpen:this.props.onClose;f&&f()}}},{key:"componentWillUnmount",value:function(){this.toggleTouchOutsideEvent(!1)}},{key:"toggleTouchOutsideEvent",value:function(e){var t=e?document.addEventListener?"addEventListener":"attachEvent":document.removeEventListener?"removeEventListener":"detachEvent",u=document.addEventListener?"":"on";document[t](u+"touchstart",this.handleTouchOutside),document[t](u+"mousedown",this.handleTouchOutside)}},{key:"handleTouchOutside",value:function(e){this.wrapper&&!this.wrapper.contains(e.target)&&this.closeMenu()}},{key:"focus",value:function(){this.input&&this.input.focus()}},{key:"blurInput",value:function(){this.input&&this.input.blur()}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchEndClearValue",value:function(e){this.dragging||this.clearValue(e)}},{key:"handleMouseDown",value:function(e){if(!(this.props.disabled||"mousedown"===e.type&&0!==e.button))if("INPUT"!==e.target.tagName){if(e.preventDefault(),!this.props.searchable)return this.focus(),this.setState({isOpen:!this.state.isOpen,focusedOption:null});if(this.state.isFocused){this.focus();var t=this.input,u=!0;"function"==typeof t.getInput&&(t=t.getInput()),t.value="",this._focusAfterClear&&(u=!1,this._focusAfterClear=!1),this.setState({isOpen:u,isPseudoFocused:!1,focusedOption:null})}else this._openAfterFocus=this.props.openOnClick,this.focus(),this.setState({focusedOption:null})}else this.state.isFocused?this.state.isOpen||this.setState({isOpen:!0,isPseudoFocused:!1,focusedOption:null}):(this._openAfterFocus=this.props.openOnClick,this.focus())}},{key:"handleMouseDownOnArrow",value:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||(this.state.isOpen?(e.stopPropagation(),e.preventDefault(),this.closeMenu()):this.setState({isOpen:!0}))}},{key:"handleMouseDownOnMenu",value:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this._openAfterFocus=!0,this.focus())}},{key:"closeMenu",value:function(){this.props.onCloseResetsInput?this.setState({inputValue:this.handleInputValueChange(""),isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi}):this.setState({isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi}),this.hasScrolledToOption=!1}},{key:"handleInputFocus",value:function(e){if(!this.props.disabled){var t=this.state.isOpen||this._openAfterFocus||this.props.openOnFocus;t=!this._focusAfterClear&&t,this.props.onFocus&&this.props.onFocus(e),this.setState({isFocused:!0,isOpen:!!t}),this._focusAfterClear=!1,this._openAfterFocus=!1}}},{key:"handleInputBlur",value:function(e){if(!this.menu||this.menu!==document.activeElement&&!this.menu.contains(document.activeElement)){this.props.onBlur&&this.props.onBlur(e);var t={isFocused:!1,isOpen:!1,isPseudoFocused:!1};this.props.onBlurResetsInput&&(t.inputValue=this.handleInputValueChange("")),this.setState(t)}else this.focus()}},{key:"handleInputChange",value:function(e){var t=e.target.value;this.state.inputValue!==e.target.value&&(t=this.handleInputValueChange(t)),this.setState({inputValue:t,isOpen:!0,isPseudoFocused:!1})}},{key:"setInputValue",value:function(e){if(this.props.onInputChange){var t=this.props.onInputChange(e);null!=t&&"object"!==(void 0===t?"undefined":y(t))&&(e=""+t)}this.setState({inputValue:e})}},{key:"handleInputValueChange",value:function(e){if(this.props.onInputChange){var t=this.props.onInputChange(e);null!=t&&"object"!==(void 0===t?"undefined":y(t))&&(e=""+t)}return e}},{key:"handleKeyDown",value:function(e){if(!(this.props.disabled||"function"==typeof this.props.onInputKeyDown&&(this.props.onInputKeyDown(e),e.defaultPrevented)))switch(e.keyCode){case 8:!this.state.inputValue&&this.props.backspaceRemoves&&(e.preventDefault(),this.popValue());break;case 9:if(e.shiftKey||!this.state.isOpen||!this.props.tabSelectsValue)break;e.preventDefault(),this.selectFocusedOption();break;case 13:e.preventDefault(),e.stopPropagation(),this.state.isOpen?this.selectFocusedOption():this.focusNextOption();break;case 27:e.preventDefault(),this.state.isOpen?(this.closeMenu(),e.stopPropagation()):this.props.clearable&&this.props.escapeClearsValue&&(this.clearValue(e),e.stopPropagation());break;case 32:if(this.props.searchable)break;if(e.preventDefault(),!this.state.isOpen){this.focusNextOption();break}e.stopPropagation(),this.selectFocusedOption();break;case 38:e.preventDefault(),this.focusPreviousOption();break;case 40:e.preventDefault(),this.focusNextOption();break;case 33:e.preventDefault(),this.focusPageUpOption();break;case 34:e.preventDefault(),this.focusPageDownOption();break;case 35:if(e.shiftKey)break;e.preventDefault(),this.focusEndOption();break;case 36:if(e.shiftKey)break;e.preventDefault(),this.focusStartOption();break;case 46:!this.state.inputValue&&this.props.deleteRemoves&&(e.preventDefault(),this.popValue())}}},{key:"handleValueClick",value:function(e,t){this.props.onValueClick&&this.props.onValueClick(e,t)}},{key:"handleMenuScroll",value:function(e){if(this.props.onMenuScrollToBottom){var t=e.target;t.scrollHeight>t.offsetHeight&&t.scrollHeight-t.offsetHeight-t.scrollTop<=0&&this.props.onMenuScrollToBottom()}}},{key:"getOptionLabel",value:function(e){return e[this.props.labelKey]}},{key:"getValueArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,u="object"===(void 0===t?"undefined":y(t))?t:this.props;if(u.multi){if("string"==typeof e&&(e=e.split(u.delimiter)),!Array.isArray(e)){if(null==e)return[];e=[e]}return e.map((function(e){return I(e,u)})).filter((function(e){return e}))}var n=I(e,u);return n?[n]:[]}},{key:"setValue",value:function(e){var t=this;if(this.props.autoBlur&&this.blurInput(),this.props.required){var u=R(e,this.props.multi);this.setState({required:u})}this.props.simpleValue&&e&&(e=this.props.multi?e.map((function(e){return e[t.props.valueKey]})).join(this.props.delimiter):e[this.props.valueKey]),this.props.onChange&&this.props.onChange(e)}},{key:"selectValue",value:function(e){var t=this;this.props.closeOnSelect&&(this.hasScrolledToOption=!1);var u=this.props.onSelectResetsInput?"":this.state.inputValue;this.props.multi?this.setState({focusedIndex:null,inputValue:this.handleInputValueChange(u),isOpen:!this.props.closeOnSelect},(function(){t.getValueArray(t.props.value).some((function(u){return u[t.props.valueKey]===e[t.props.valueKey]}))?t.removeValue(e):t.addValue(e)})):this.setState({inputValue:this.handleInputValueChange(u),isOpen:!this.props.closeOnSelect,isPseudoFocused:this.state.isFocused},(function(){t.setValue(e)}))}},{key:"addValue",value:function(e){var t=this.getValueArray(this.props.value),u=this._visibleOptions.filter((function(e){return!e.disabled})),n=u.indexOf(e);this.setValue(t.concat(e)),this.props.closeOnSelect&&(u.length-1===n?this.focusOption(u[n-1]):u.length>n&&this.focusOption(u[n+1]))}},{key:"popValue",value:function(){var e=this.getValueArray(this.props.value);e.length&&!1!==e[e.length-1].clearableValue&&this.setValue(this.props.multi?e.slice(0,e.length-1):null)}},{key:"removeValue",value:function(e){var t=this,u=this.getValueArray(this.props.value);this.setValue(u.filter((function(u){return u[t.props.valueKey]!==e[t.props.valueKey]}))),this.focus()}},{key:"clearValue",value:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.preventDefault(),this.setValue(this.getResetValue()),this.setState({inputValue:this.handleInputValueChange(""),isOpen:!1},this.focus),this._focusAfterClear=!0)}},{key:"getResetValue",value:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null}},{key:"focusOption",value:function(e){this.setState({focusedOption:e})}},{key:"focusNextOption",value:function(){this.focusAdjacentOption("next")}},{key:"focusPreviousOption",value:function(){this.focusAdjacentOption("previous")}},{key:"focusPageUpOption",value:function(){this.focusAdjacentOption("page_up")}},{key:"focusPageDownOption",value:function(){this.focusAdjacentOption("page_down")}},{key:"focusStartOption",value:function(){this.focusAdjacentOption("start")}},{key:"focusEndOption",value:function(){this.focusAdjacentOption("end")}},{key:"focusAdjacentOption",value:function(e){var t=this._visibleOptions.map((function(e,t){return{option:e,index:t}})).filter((function(e){return!e.option.disabled}));if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen){var u={focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null),isOpen:!0};return this.props.onSelectResetsInput&&(u.inputValue=""),void this.setState(u)}if(t.length){for(var n=-1,o=0;o<t.length;o++)if(this._focusedOption===t[o].option){n=o;break}if("next"===e&&-1!==n)n=(n+1)%t.length;else if("previous"===e)n>0?n-=1:n=t.length-1;else if("start"===e)n=0;else if("end"===e)n=t.length-1;else if("page_up"===e){var s=n-this.props.pageSize;n=s<0?0:s}else if("page_down"===e){var i=n+this.props.pageSize;n=i>t.length-1?t.length-1:i}-1===n&&(n=0),this.setState({focusedIndex:t[n].index,focusedOption:t[n].option})}}},{key:"getFocusedOption",value:function(){return this._focusedOption}},{key:"selectFocusedOption",value:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)}},{key:"renderLoading",value:function(){if(this.props.isLoading)return l().createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},l().createElement("span",{className:"Select-loading"}))}},{key:"renderValue",value:function(e,t){var u=this,n=this.props.valueRenderer||this.getOptionLabel,o=this.props.valueComponent;if(!e.length){var s=function(e,t,u){var n=e.inputValue,o=e.isPseudoFocused,s=e.isFocused,i=t.onSelectResetsInput;return!n||!i&&!u&&!o&&!s}(this.state,this.props,t);return s?l().createElement("div",{className:"Select-placeholder"},this.props.placeholder):null}var i,r,a,p,c,h,d=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map((function(t,s){return l().createElement(o,{disabled:u.props.disabled||!1===t.clearableValue,id:u._instancePrefix+"-value-"+s,instancePrefix:u._instancePrefix,key:"value-"+s+"-"+t[u.props.valueKey],onClick:d,onRemove:u.removeValue,placeholder:u.props.placeholder,value:t,values:e},n(t,s),l().createElement("span",{className:"Select-aria-only"}," "))})):(i=this.state,r=this.props,a=i.inputValue,p=i.isPseudoFocused,c=i.isFocused,h=r.onSelectResetsInput,a&&(h||!c&&p||c&&!p)?void 0:(t&&(d=null),l().createElement(o,{disabled:this.props.disabled,id:this._instancePrefix+"-value-item",instancePrefix:this._instancePrefix,onClick:d,placeholder:this.props.placeholder,value:e[0]},n(e[0]))))}},{key:"renderInput",value:function(e,t){var u,o=this,i=s()("Select-input",this.props.inputProps.className),r=this.state.isOpen,a=s()((C(u={},this._instancePrefix+"-list",r),C(u,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),u)),p=this.state.inputValue;!p||this.props.onSelectResetsInput||this.state.isFocused||(p="");var c=F({},this.props.inputProps,{"aria-activedescendant":r?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-expanded":""+r,"aria-haspopup":""+r,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-owns":a,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return o.input=e},role:"combobox",required:this.state.required,tabIndex:this.props.tabIndex,value:p});if(this.props.inputRenderer)return this.props.inputRenderer(c);if(this.props.disabled||!this.props.searchable){var h=A(this.props.inputProps,[]),d=s()(C({},this._instancePrefix+"-list",r));return l().createElement("div",F({},h,{"aria-expanded":r,"aria-owns":d,"aria-activedescendant":r?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-disabled":""+this.props.disabled,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],className:i,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return o.input=e},role:"combobox",style:{border:0,width:1,display:"inline-block"},tabIndex:this.props.tabIndex||0}))}return this.props.autosize?l().createElement(n.Z,F({id:this.props.id},c,{className:i,minWidth:"5"})):l().createElement("div",{className:i,key:"input-wrap",style:{display:"inline-block"}},l().createElement("input",F({id:this.props.id},c)))}},{key:"renderClear",value:function(){var e=this.getValueArray(this.props.value);if(this.props.clearable&&e.length&&!this.props.disabled&&!this.props.isLoading){var t=this.props.multi?this.props.clearAllText:this.props.clearValueText,u=this.props.clearRenderer();return l().createElement("span",{"aria-label":t,className:"Select-clear-zone",onMouseDown:this.clearValue,onTouchEnd:this.handleTouchEndClearValue,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,title:t},u)}}},{key:"renderArrow",value:function(){if(this.props.arrowRenderer){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,u=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return u?l().createElement("span",{className:"Select-arrow-zone",onMouseDown:e},u):null}}},{key:"filterOptions",value:function(e){var t=this.state.inputValue,u=this.props.options||[];return this.props.filterOptions?("function"==typeof this.props.filterOptions?this.props.filterOptions:v)(u,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,trimFilter:this.props.trimFilter,valueKey:this.props.valueKey}):u}},{key:"onOptionRef",value:function(e,t){t&&(this.focused=e)}},{key:"renderMenu",value:function(e,t,u){return e&&e.length?this.props.menuRenderer({focusedOption:u,focusOption:this.focusOption,inputValue:this.state.inputValue,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onOptionRef:this.onOptionRef,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,removeValue:this.removeValue,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey}):this.props.noResultsText?l().createElement("div",{className:"Select-noresults"},this.props.noResultsText):null}},{key:"renderHiddenField",value:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var u=e.map((function(e){return w(e[t.props.valueKey])})).join(this.props.delimiter);return l().createElement("input",{disabled:this.props.disabled,name:this.props.name,ref:function(e){return t.value=e},type:"hidden",value:u})}return e.map((function(e,u){return l().createElement("input",{disabled:t.props.disabled,key:"hidden."+u,name:t.props.name,ref:"value"+u,type:"hidden",value:w(e[t.props.valueKey])})}))}}},{key:"getFocusableOptionIndex",value:function(e){var t=this._visibleOptions;if(!t.length)return null;var u=this.props.valueKey,n=this.state.focusedOption||e;if(n&&!n.disabled){var o=-1;if(t.some((function(e,t){var s=e[u]===n[u];return s&&(o=t),s})),-1!==o)return o}for(var s=0;s<t.length;s++)if(!t[s].disabled)return s;return null}},{key:"renderOuter",value:function(e,t,u){var n=this,o=this.renderMenu(e,t,u);return o?l().createElement("div",{ref:function(e){return n.menuContainer=e},className:"Select-menu-outer",style:this.props.menuContainerStyle},l().createElement("div",{className:"Select-menu",id:this._instancePrefix+"-list",onMouseDown:this.handleMouseDownOnMenu,onScroll:this.handleMenuScroll,ref:function(e){return n.menu=e},role:"listbox",style:this.props.menuStyle,tabIndex:-1},o)):null}},{key:"render",value:function(){var e=this,t=this.getValueArray(this.props.value),u=this._visibleOptions=this.filterOptions(this.props.multi&&this.props.removeSelected?t:null),n=this.state.isOpen;this.props.multi&&!u.length&&t.length&&!this.state.inputValue&&(n=!1);var o,i=this.getFocusableOptionIndex(t[0]);o=this._focusedOption=null!==i?u[i]:null;var r=s()("Select",this.props.className,{"has-value":t.length,"is-clearable":this.props.clearable,"is-disabled":this.props.disabled,"is-focused":this.state.isFocused,"is-loading":this.props.isLoading,"is-open":n,"is-pseudo-focused":this.state.isPseudoFocused,"is-searchable":this.props.searchable,"Select--multi":this.props.multi,"Select--rtl":this.props.rtl,"Select--single":!this.props.multi}),a=null;return this.props.multi&&!this.props.disabled&&t.length&&!this.state.inputValue&&this.state.isFocused&&this.props.backspaceRemoves&&(a=l().createElement("span",{id:this._instancePrefix+"-backspace-remove-message",className:"Select-aria-only","aria-live":"assertive"},this.props.backspaceToRemoveMessage.replace("{label}",t[t.length-1][this.props.labelKey]))),l().createElement("div",{ref:function(t){return e.wrapper=t},className:r,style:this.props.wrapperStyle},this.renderHiddenField(t),l().createElement("div",{ref:function(t){return e.control=t},className:"Select-control",onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleTouchEnd,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,style:this.props.style},l().createElement("div",{className:"Select-multi-value-wrapper",id:this._instancePrefix+"-value"},this.renderValue(t,n),this.renderInput(t,i)),a,this.renderLoading(),this.renderClear(),this.renderArrow()),n?this.renderOuter(u,t,o):null)}}]),t}(l().Component);B.propTypes={"aria-describedby":r().string,"aria-label":r().string,"aria-labelledby":r().string,arrowRenderer:r().func,autoBlur:r().bool,autoFocus:r().bool,autofocus:r().bool,autosize:r().bool,backspaceRemoves:r().bool,backspaceToRemoveMessage:r().string,className:r().string,clearAllText:V,clearRenderer:r().func,clearValueText:V,clearable:r().bool,closeOnSelect:r().bool,deleteRemoves:r().bool,delimiter:r().string,disabled:r().bool,escapeClearsValue:r().bool,filterOption:r().func,filterOptions:r().any,id:r().string,ignoreAccents:r().bool,ignoreCase:r().bool,inputProps:r().object,inputRenderer:r().func,instanceId:r().string,isLoading:r().bool,joinValues:r().bool,labelKey:r().string,matchPos:r().string,matchProp:r().string,menuBuffer:r().number,menuContainerStyle:r().object,menuRenderer:r().func,menuStyle:r().object,multi:r().bool,name:r().string,noResultsText:V,onBlur:r().func,onBlurResetsInput:r().bool,onChange:r().func,onClose:r().func,onCloseResetsInput:r().bool,onFocus:r().func,onInputChange:r().func,onInputKeyDown:r().func,onMenuScrollToBottom:r().func,onOpen:r().func,onSelectResetsInput:r().bool,onValueClick:r().func,openOnClick:r().bool,openOnFocus:r().bool,optionClassName:r().string,optionComponent:r().func,optionRenderer:r().func,options:r().array,pageSize:r().number,placeholder:V,removeSelected:r().bool,required:r().bool,resetValue:r().any,rtl:r().bool,scrollMenuIntoView:r().bool,searchable:r().bool,simpleValue:r().bool,style:r().object,tabIndex:T,tabSelectsValue:r().bool,trimFilter:r().bool,value:r().any,valueComponent:r().func,valueKey:r().string,valueRenderer:r().func,wrapperStyle:r().object},B.defaultProps={arrowRenderer:c,autosize:!0,backspaceRemoves:!0,backspaceToRemoveMessage:"Press backspace to remove {label}",clearable:!0,clearAllText:"Clear all",clearRenderer:function(){return l().createElement("span",{className:"Select-clear",dangerouslySetInnerHTML:{__html:"×"}})},clearValueText:"Clear value",closeOnSelect:!0,deleteRemoves:!0,delimiter:",",disabled:!1,escapeClearsValue:!0,filterOptions:v,ignoreAccents:!0,ignoreCase:!0,inputProps:{},isLoading:!1,joinValues:!1,labelKey:"label",matchPos:"any",matchProp:"any",menuBuffer:0,menuRenderer:E,multi:!1,noResultsText:"No results found",onBlurResetsInput:!0,onCloseResetsInput:!0,onSelectResetsInput:!0,openOnClick:!0,optionComponent:k,pageSize:5,placeholder:"Select...",removeSelected:!0,required:!1,rtl:!1,scrollMenuIntoView:!0,searchable:!0,simpleValue:!1,tabSelectsValue:!0,trimFilter:!0,valueComponent:S,valueKey:"value"};var _={autoload:r().bool.isRequired,cache:r().any,children:r().func.isRequired,ignoreAccents:r().bool,ignoreCase:r().bool,loadOptions:r().func.isRequired,loadingPlaceholder:r().oneOfType([r().string,r().node]),multi:r().bool,noResultsText:r().oneOfType([r().string,r().node]),onChange:r().func,onInputChange:r().func,options:r().array.isRequired,placeholder:r().oneOfType([r().string,r().node]),searchPromptText:r().oneOfType([r().string,r().node]),value:r().any},M={},x={autoload:!0,cache:M,children:function(e){return l().createElement(B,e)},ignoreAccents:!0,ignoreCase:!0,loadingPlaceholder:"Loading...",options:[],searchPromptText:"Type to search"},N=function(e){function t(e,u){g(this,t);var n=D(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,u));return n._cache=e.cache===M?{}:e.cache,n.state={inputValue:"",isLoading:!1,options:e.options},n.onInputChange=n.onInputChange.bind(n),n}return O(t,e),m(t,[{key:"componentDidMount",value:function(){this.props.autoload&&this.loadOptions("")}},{key:"componentWillReceiveProps",value:function(e){e.options!==this.props.options&&this.setState({options:e.options})}},{key:"componentWillUnmount",value:function(){this._callback=null}},{key:"loadOptions",value:function(e){var t=this,u=this.props.loadOptions,n=this._cache;if(n&&Object.prototype.hasOwnProperty.call(n,e))return this._callback=null,void this.setState({isLoading:!1,options:n[e]});var o=function u(o,s){var i=s&&s.options||[];n&&(n[e]=i),u===t._callback&&(t._callback=null,t.setState({isLoading:!1,options:i}))};this._callback=o;var s=u(e,o);s&&s.then((function(e){return o(0,e)}),(function(e){return o()})),this._callback&&!this.state.isLoading&&this.setState({isLoading:!0})}},{key:"onInputChange",value:function(e){var t=this.props,u=t.ignoreAccents,n=t.ignoreCase,o=t.onInputChange,s=e;if(o){var i=o(s);null!=i&&"object"!==(void 0===i?"undefined":y(i))&&(s=""+i)}var r=s;return u&&(r=d(r)),n&&(r=r.toLowerCase()),this.setState({inputValue:s}),this.loadOptions(r),s}},{key:"noResultsText",value:function(){var e=this.props,t=e.loadingPlaceholder,u=e.noResultsText,n=e.searchPromptText,o=this.state,s=o.inputValue;return o.isLoading?t:s&&u?u:n}},{key:"focus",value:function(){this.select.focus()}},{key:"render",value:function(){var e=this,t=this.props,u=t.children,n=t.loadingPlaceholder,o=t.placeholder,s=this.state,i=s.isLoading,r=s.options,a={noResultsText:this.noResultsText(),placeholder:i?n:o,options:i&&n?[]:r,ref:function(t){return e.select=t}};return u(F({},this.props,a,{isLoading:i,onInputChange:this.onInputChange}))}}]),t}(a.Component);N.propTypes=_,N.defaultProps=x;var K=function(e){function t(e,u){g(this,t);var n=D(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,u));return n.filterOptions=n.filterOptions.bind(n),n.menuRenderer=n.menuRenderer.bind(n),n.onInputKeyDown=n.onInputKeyDown.bind(n),n.onInputChange=n.onInputChange.bind(n),n.onOptionSelect=n.onOptionSelect.bind(n),n}return O(t,e),m(t,[{key:"createNewOption",value:function(){var e=this.props,t=e.isValidNewOption,u=e.newOptionCreator,n=e.onNewOptionClick,o=e.options,s=void 0===o?[]:o;if(t({label:this.inputValue})){var i=u({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey});this.isOptionUnique({option:i,options:s})&&(n?n(i):(s.unshift(i),this.select.selectValue(i)))}}},{key:"filterOptions",value:function(){var e=this.props,t=e.filterOptions,u=e.isValidNewOption,n=e.promptTextCreator,o=e.showNewOptionAtTop,s=(arguments.length<=2?void 0:arguments[2])||[],i=t.apply(void 0,arguments)||[];if(u({label:this.inputValue})){var r=this.props.newOptionCreator,a=r({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),l=this.isOptionUnique({option:a,options:s.concat(i)});if(l){var p=n(this.inputValue);this._createPlaceholderOption=r({label:p,labelKey:this.labelKey,valueKey:this.valueKey}),o?i.unshift(this._createPlaceholderOption):i.push(this._createPlaceholderOption)}}return i}},{key:"isOptionUnique",value:function(e){var t=e.option,u=e.options,n=this.props.isOptionUnique;return u=u||this.props.options,n({labelKey:this.labelKey,option:t,options:u,valueKey:this.valueKey})}},{key:"menuRenderer",value:function(e){return(0,this.props.menuRenderer)(F({},e,{onSelect:this.onOptionSelect,selectValue:this.onOptionSelect}))}},{key:"onInputChange",value:function(e){var t=this.props.onInputChange;return this.inputValue=e,t&&(this.inputValue=t(e)),this.inputValue}},{key:"onInputKeyDown",value:function(e){var t=this.props,u=t.shouldKeyDownEventCreateNewOption,n=t.onInputKeyDown,o=this.select.getFocusedOption();o&&o===this._createPlaceholderOption&&u(e)?(this.createNewOption(),e.preventDefault()):n&&n(e)}},{key:"onOptionSelect",value:function(e){e===this._createPlaceholderOption?this.createNewOption():this.select.selectValue(e)}},{key:"focus",value:function(){this.select.focus()}},{key:"render",value:function(){var e=this,t=this.props,u=t.ref,n=A(t,["ref"]),o=this.props.children;return o||(o=j),o(F({},n,{allowCreate:!0,filterOptions:this.filterOptions,menuRenderer:this.menuRenderer,onInputChange:this.onInputChange,onInputKeyDown:this.onInputKeyDown,ref:function(t){e.select=t,t&&(e.labelKey=t.props.labelKey,e.valueKey=t.props.valueKey),u&&u(t)}}))}}]),t}(l().Component),j=function(e){return l().createElement(B,e)},W=function(e){var t=e.option,u=e.options,n=e.labelKey,o=e.valueKey;return!u||!u.length||0===u.filter((function(e){return e[n]===t[n]||e[o]===t[o]})).length},L=function(e){return!!e.label},z=function(e){var t=e.label,u=e.labelKey,n={};return n[e.valueKey]=t,n[u]=t,n.className="Select-create-option-placeholder",n},q=function(e){return'Create option "'+e+'"'},U=function(e){switch(e.keyCode){case 9:case 13:case 188:return!0;default:return!1}};K.isOptionUnique=W,K.isValidNewOption=L,K.newOptionCreator=z,K.promptTextCreator=q,K.shouldKeyDownEventCreateNewOption=U,K.defaultProps={filterOptions:v,isOptionUnique:W,isValidNewOption:L,menuRenderer:E,newOptionCreator:z,promptTextCreator:q,shouldKeyDownEventCreateNewOption:U,showNewOptionAtTop:!0},K.propTypes={children:r().func,filterOptions:r().any,isOptionUnique:r().func,isValidNewOption:r().func,menuRenderer:r().any,newOptionCreator:r().func,onInputChange:r().func,onInputKeyDown:r().func,onNewOptionClick:r().func,options:r().array,promptTextCreator:r().func,ref:r().func,shouldKeyDownEventCreateNewOption:r().func,showNewOptionAtTop:r().bool};var H=function(e){function t(){return g(this,t),D(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),m(t,[{key:"focus",value:function(){this.select.focus()}},{key:"render",value:function(){var e=this;return l().createElement(N,this.props,(function(t){var u=t.ref,n=A(t,["ref"]),o=u;return l().createElement(K,n,(function(t){var u=t.ref,n=A(t,["ref"]),s=u;return e.props.children(F({},n,{ref:function(t){s(t),o(t),e.select=t}}))}))}))}}]),t}(l().Component);H.propTypes={children:r().func.isRequired},H.defaultProps={children:function(e){return l().createElement(B,e)}},B.Async=N,B.AsyncCreatable=H,B.Creatable=K,B.Value=S,B.Option=k;const Z=B},366680:(e,t,u)=>{"use strict";var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var u=arguments[t];for(var n in u)Object.prototype.hasOwnProperty.call(u,n)&&(e[n]=u[n])}return e},o=function(){function e(e,t){for(var u=0;u<t.length;u++){var n=t[u];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,u,n){return u&&e(t.prototype,u),n&&e(t,n),t}}(),s=u(124852),i=a(s),r=a(u(675263));function a(e){return e&&e.__esModule?e:{default:e}}var l={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},p=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],c=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},h=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),d=function(){return h?"_"+Math.random().toString(36).substr(2,12):void 0},f=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 u=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 u.inputRef=function(e){u.input=e,"function"==typeof u.props.inputRef&&u.props.inputRef(e)},u.placeHolderSizerRef=function(e){u.placeHolderSizer=e},u.sizerRef=function(e){u.sizer=e},u.state={inputWidth:e.minWidth,inputId:e.id||d()},u}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:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||d()})}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(c(e,this.sizer),this.placeHolderSizer&&c(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return h&&e?i.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=n({},this.props.style);t.display||(t.display="inline-block");var u=n({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=function(e,t){var u={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(u[n]=e[n]);return u}(this.props,[]);return function(e){p.forEach((function(t){return delete e[t]}))}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=u,i.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),i.default.createElement("input",n({},o,{ref:this.inputRef})),i.default.createElement("div",{ref:this.sizerRef,style:l},e),this.props.placeholder?i.default.createElement("div",{ref:this.placeHolderSizerRef,style:l},this.props.placeholder):null)}}]),t}(s.Component);f.propTypes={className:r.default.string,defaultValue:r.default.any,extraWidth:r.default.oneOfType([r.default.number,r.default.string]),id:r.default.string,injectStyles:r.default.bool,inputClassName:r.default.string,inputRef:r.default.func,inputStyle:r.default.object,minWidth:r.default.oneOfType([r.default.number,r.default.string]),onAutosize:r.default.func,onChange:r.default.func,placeholder:r.default.string,placeholderIsMinWidth:r.default.bool,style:r.default.object,value:r.default.any},f.defaultProps={minWidth:1,injectStyles:!0},t.Z=f}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43129.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt b/geonode_mapstore_client/static/mapstore/dist/js/43129.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43129.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt rename to geonode_mapstore_client/static/mapstore/dist/js/43129.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43137.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43137.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43137.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43137.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43157.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43157.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43157.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43157.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43193.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43193.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43193.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43193.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4331.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4331.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4331.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4331.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4333.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4333.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4333.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4333.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43468.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43468.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43468.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43468.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43471.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43471.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43471.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43471.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43518.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43518.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43518.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43518.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43581.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43581.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43581.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43581.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43697.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43697.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43697.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43697.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43784.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43784.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43784.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43784.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/43853.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/43853.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/43853.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/43853.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4400.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4400.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4400.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4400.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44017.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44017.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44017.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44017.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44067.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44067.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44067.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44067.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44071.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44071.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44071.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44071.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44113.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44113.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44113.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44113.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44148.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44148.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44148.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44148.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44154.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44154.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44154.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44154.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44192.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44192.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44192.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44192.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44194.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44194.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44194.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44194.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44251.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44251.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44251.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44251.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44496.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44496.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44496.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44496.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44515.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44515.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44515.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44515.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4455.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4455.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4455.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4455.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44704.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44704.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44704.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44704.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44839.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44839.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44839.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44839.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44887.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44887.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44887.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44887.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/44976.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/44976.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/44976.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/44976.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4503.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4503.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4503.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4503.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45322.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45322.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45322.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45322.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45357.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45357.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45357.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45357.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45405.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45405.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45405.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45405.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45447.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45447.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45447.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45447.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45453.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45453.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45453.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45453.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45459.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45459.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45459.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45459.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45477.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45477.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45477.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45477.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45522.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45522.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45522.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45522.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45531.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45531.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45531.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45531.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45612.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45612.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45612.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45612.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45649.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45649.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45649.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45649.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45675.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45675.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45675.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45675.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45678.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45678.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45678.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45678.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/45914.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/45914.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/45914.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/45914.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/46067.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/46067.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/46067.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/46067.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/46130.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/46130.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/46130.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/46130.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/46222.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/46222.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/46222.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/46222.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/46230.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/46230.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/46230.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/46230.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/46284.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/46284.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/46284.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/46284.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/46879.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/46879.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/46879.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/46879.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/46971.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/46971.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/46971.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/46971.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/47017.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/47017.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/47017.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/47017.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/47042.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/47042.74fb1733f89b05e9e60d.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/js/47042.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/47042.74fb1733f89b05e9e60d.chunk.js index 93d6ed9e06..27a1434c22 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/47042.b32b32d2650f7cc681c9.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/47042.74fb1733f89b05e9e60d.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 47042.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt */ +/*! For license information please see 47042.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[47042],{379958:(e,t,r)=>{e.exports=function e(t,r,n){function a(o,l){if(!r[o]){if(!t[o]){if(i)return i(o,!0);var s=new Error("Cannot find module '"+o+"'");throw s.code="MODULE_NOT_FOUND",s}var c=r[o]={exports:{}};t[o][0].call(c.exports,(function(e){return a(t[o][1][e]||e)}),c,c.exports,e,t,r,n)}return r[o].exports}for(var i=void 0,o=0;o<n.length;o++)a(n[o]);return a}({1:[function(e,t,r){"use strict";var n=e("../src/lib"),a={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .select-outline":"fill:none;stroke-width:1;shape-rendering:crispEdges;","X .select-outline-1":"stroke:#fff;","X .select-outline-2":"stroke:#000;stroke-dasharray:2px 2px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var i in a){var o=i.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");n.addStyleRule(o,a[i])}},{"../src/lib":287}],2:[function(e,t,r){"use strict";t.exports=e("../src/transforms/aggregate")},{"../src/transforms/aggregate":544}],3:[function(e,t,r){"use strict";t.exports=e("../src/traces/bar")},{"../src/traces/bar":394}],4:[function(e,t,r){"use strict";t.exports=e("../src/traces/box")},{"../src/traces/box":409}],5:[function(e,t,r){"use strict";t.exports=e("../src/components/calendars")},{"../src/components/calendars":155}],6:[function(e,t,r){"use strict";t.exports=e("../src/traces/contour")},{"../src/traces/contour":429}],7:[function(e,t,r){"use strict";t.exports=e("../src/core")},{"../src/core":269}],8:[function(e,t,r){"use strict";t.exports=e("../src/transforms/filter")},{"../src/transforms/filter":545}],9:[function(e,t,r){"use strict";t.exports=e("../src/transforms/groupby")},{"../src/transforms/groupby":546}],10:[function(e,t,r){"use strict";t.exports=e("../src/traces/heatmap")},{"../src/traces/heatmap":445}],11:[function(e,t,r){"use strict";t.exports=e("../src/traces/histogram")},{"../src/traces/histogram":463}],12:[function(e,t,r){"use strict";t.exports=e("../src/traces/histogram2d")},{"../src/traces/histogram2d":469}],13:[function(e,t,r){"use strict";t.exports=e("../src/traces/histogram2dcontour")},{"../src/traces/histogram2dcontour":473}],14:[function(e,t,r){"use strict";t.exports=e("../src/traces/image")},{"../src/traces/image":481}],15:[function(e,t,r){"use strict";var n=e("./core");n.register([e("./bar"),e("./box"),e("./heatmap"),e("./histogram"),e("./histogram2d"),e("./histogram2dcontour"),e("./contour"),e("./scatterternary"),e("./violin"),e("./image"),e("./pie"),e("./aggregate"),e("./filter"),e("./groupby"),e("./sort"),e("./calendars")]),t.exports=n},{"./aggregate":2,"./bar":3,"./box":4,"./calendars":5,"./contour":6,"./core":7,"./filter":8,"./groupby":9,"./heatmap":10,"./histogram":11,"./histogram2d":12,"./histogram2dcontour":13,"./image":14,"./pie":16,"./scatterternary":17,"./sort":18,"./violin":19}],16:[function(e,t,r){"use strict";t.exports=e("../src/traces/pie")},{"../src/traces/pie":490}],17:[function(e,t,r){"use strict";t.exports=e("../src/traces/scatterternary")},{"../src/traces/scatterternary":531}],18:[function(e,t,r){"use strict";t.exports=e("../src/transforms/sort")},{"../src/transforms/sort":548}],19:[function(e,t,r){"use strict";t.exports=e("../src/traces/violin")},{"../src/traces/violin":539}],20:[function(e,t,r){(function(){var e={version:"3.8.0"},r=[].slice,n=function(e){return r.call(e)},a=self.document;function i(e){return e&&(e.ownerDocument||e.document||e).documentElement}function o(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(a)try{n(a.documentElement.childNodes)[0].nodeType}catch(e){n=function(e){for(var t=e.length,r=new Array(t);t--;)r[t]=e[t];return r}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(e){var l=this.Element.prototype,s=l.setAttribute,c=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(e,t){s.call(this,e,t+"")},l.setAttributeNS=function(e,t,r){c.call(this,e,t,r+"")},u.setProperty=function(e,t,r){f.call(this,e,t+"",r)}}function d(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function p(e){return null===e?NaN:+e}function h(e){return!isNaN(e)}function m(e){return{left:function(t,r,n,a){for(arguments.length<3&&(n=0),arguments.length<4&&(a=t.length);n<a;){var i=n+a>>>1;e(t[i],r)<0?n=i+1:a=i}return n},right:function(t,r,n,a){for(arguments.length<3&&(n=0),arguments.length<4&&(a=t.length);n<a;){var i=n+a>>>1;e(t[i],r)>0?a=i:n=i+1}return n}}}e.ascending=d,e.descending=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},e.min=function(e,t){var r,n,a=-1,i=e.length;if(1===arguments.length){for(;++a<i;)if(null!=(n=e[a])&&n>=n){r=n;break}for(;++a<i;)null!=(n=e[a])&&r>n&&(r=n)}else{for(;++a<i;)if(null!=(n=t.call(e,e[a],a))&&n>=n){r=n;break}for(;++a<i;)null!=(n=t.call(e,e[a],a))&&r>n&&(r=n)}return r},e.max=function(e,t){var r,n,a=-1,i=e.length;if(1===arguments.length){for(;++a<i;)if(null!=(n=e[a])&&n>=n){r=n;break}for(;++a<i;)null!=(n=e[a])&&n>r&&(r=n)}else{for(;++a<i;)if(null!=(n=t.call(e,e[a],a))&&n>=n){r=n;break}for(;++a<i;)null!=(n=t.call(e,e[a],a))&&n>r&&(r=n)}return r},e.extent=function(e,t){var r,n,a,i=-1,o=e.length;if(1===arguments.length){for(;++i<o;)if(null!=(n=e[i])&&n>=n){r=a=n;break}for(;++i<o;)null!=(n=e[i])&&(r>n&&(r=n),a<n&&(a=n))}else{for(;++i<o;)if(null!=(n=t.call(e,e[i],i))&&n>=n){r=a=n;break}for(;++i<o;)null!=(n=t.call(e,e[i],i))&&(r>n&&(r=n),a<n&&(a=n))}return[r,a]},e.sum=function(e,t){var r,n=0,a=e.length,i=-1;if(1===arguments.length)for(;++i<a;)h(r=+e[i])&&(n+=r);else for(;++i<a;)h(r=+t.call(e,e[i],i))&&(n+=r);return n},e.mean=function(e,t){var r,n=0,a=e.length,i=-1,o=a;if(1===arguments.length)for(;++i<a;)h(r=p(e[i]))?n+=r:--o;else for(;++i<a;)h(r=p(t.call(e,e[i],i)))?n+=r:--o;if(o)return n/o},e.quantile=function(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),a=+e[n-1],i=r-n;return i?a+i*(e[n]-a):a},e.median=function(t,r){var n,a=[],i=t.length,o=-1;if(1===arguments.length)for(;++o<i;)h(n=p(t[o]))&&a.push(n);else for(;++o<i;)h(n=p(r.call(t,t[o],o)))&&a.push(n);if(a.length)return e.quantile(a.sort(d),.5)},e.variance=function(e,t){var r,n,a=e.length,i=0,o=0,l=-1,s=0;if(1===arguments.length)for(;++l<a;)h(r=p(e[l]))&&(o+=(n=r-i)*(r-(i+=n/++s)));else for(;++l<a;)h(r=p(t.call(e,e[l],l)))&&(o+=(n=r-i)*(r-(i+=n/++s)));if(s>1)return o/(s-1)},e.deviation=function(){var t=e.variance.apply(this,arguments);return t?Math.sqrt(t):t};var y=m(d);function g(e){return e.length}e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(e){return m(1===e.length?function(t,r){return d(e(t),r)}:e)},e.shuffle=function(e,t,r){(i=arguments.length)<3&&(r=e.length,i<2&&(t=0));for(var n,a,i=r-t;i;)a=Math.random()*i--|0,n=e[i+t],e[i+t]=e[a+t],e[a+t]=n;return e},e.permute=function(e,t){for(var r=t.length,n=new Array(r);r--;)n[r]=e[t[r]];return n},e.pairs=function(e){for(var t=0,r=e.length-1,n=e[0],a=new Array(r<0?0:r);t<r;)a[t]=[n,n=e[++t]];return a},e.transpose=function(t){if(!(i=t.length))return[];for(var r=-1,n=e.min(t,g),a=new Array(n);++r<n;)for(var i,o=-1,l=a[r]=new Array(i);++o<i;)l[o]=t[o][r];return a},e.zip=function(){return e.transpose(arguments)},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t},e.values=function(e){var t=[];for(var r in e)t.push(e[r]);return t},e.entries=function(e){var t=[];for(var r in e)t.push({key:r,value:e[r]});return t},e.merge=function(e){for(var t,r,n,a=e.length,i=-1,o=0;++i<a;)o+=e[i].length;for(r=new Array(o);--a>=0;)for(t=(n=e[a]).length;--t>=0;)r[--o]=n[t];return r};var v=Math.abs;function x(e){for(var t=1;e*t%1;)t*=10;return t}function b(e,t){for(var r in t)Object.defineProperty(e.prototype,r,{value:t[r],enumerable:!1})}function _(){this._=Object.create(null)}e.range=function(e,t,r){if(arguments.length<3&&(r=1,arguments.length<2&&(t=e,e=0)),(t-e)/r==1/0)throw new Error("infinite range");var n,a=[],i=x(v(r)),o=-1;if(e*=i,t*=i,(r*=i)<0)for(;(n=e+r*++o)>t;)a.push(n/i);else for(;(n=e+r*++o)<t;)a.push(n/i);return a},e.map=function(e,t){var r=new _;if(e instanceof _)e.forEach((function(e,t){r.set(e,t)}));else if(Array.isArray(e)){var n,a=-1,i=e.length;if(1===arguments.length)for(;++a<i;)r.set(a,e[a]);else for(;++a<i;)r.set(t.call(e,n=e[a],a),n)}else for(var o in e)r.set(o,e[o]);return r};function w(e){return"__proto__"==(e+="")||"\0"===e[0]?"\0"+e:e}function T(e){return"\0"===(e+="")[0]?e.slice(1):e}function M(e){return w(e)in this._}function k(e){return(e=w(e))in this._&&delete this._[e]}function A(){var e=[];for(var t in this._)e.push(T(t));return e}function L(){var e=0;for(var t in this._)++e;return e}function S(){for(var e in this._)return!1;return!0}function O(){this._=Object.create(null)}function D(e){return e}function C(e,t,r){return function(){var n=r.apply(t,arguments);return n===t?e:n}}function E(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var r=0,n=P.length;r<n;++r){var a=P[r]+t;if(a in e)return a}}b(_,{has:M,get:function(e){return this._[w(e)]},set:function(e,t){return this._[w(e)]=t},remove:k,keys:A,values:function(){var e=[];for(var t in this._)e.push(this._[t]);return e},entries:function(){var e=[];for(var t in this._)e.push({key:T(t),value:this._[t]});return e},size:L,empty:S,forEach:function(e){for(var t in this._)e.call(this,T(t),this._[t])}}),e.nest=function(){var t,r,n={},a=[],i=[];function o(e,i,l){if(l>=a.length)return r?r.call(n,i):t?i.sort(t):i;for(var s,c,u,f,d=-1,p=i.length,h=a[l++],m=new _;++d<p;)(f=m.get(s=h(c=i[d])))?f.push(c):m.set(s,[c]);return e?(c=e(),u=function(t,r){c.set(t,o(e,r,l))}):(c={},u=function(t,r){c[t]=o(e,r,l)}),m.forEach(u),c}function l(e,t){if(t>=a.length)return e;var r=[],n=i[t++];return e.forEach((function(e,n){r.push({key:e,values:l(n,t)})})),n?r.sort((function(e,t){return n(e.key,t.key)})):r}return n.map=function(e,t){return o(t,e,0)},n.entries=function(t){return l(o(e.map,t,0),0)},n.key=function(e){return a.push(e),n},n.sortKeys=function(e){return i[a.length-1]=e,n},n.sortValues=function(e){return t=e,n},n.rollup=function(e){return r=e,n},n},e.set=function(e){var t=new O;if(e)for(var r=0,n=e.length;r<n;++r)t.add(e[r]);return t},b(O,{has:M,add:function(e){return this._[w(e+="")]=!0,e},remove:k,values:A,size:L,empty:S,forEach:function(e){for(var t in this._)e.call(this,T(t))}}),e.behavior={},e.rebind=function(e,t){for(var r,n=1,a=arguments.length;++n<a;)e[r=arguments[n]]=C(e,t,t[r]);return e};var P=["webkit","ms","moz","Moz","o","O"];function R(){}function z(){}function I(e){var t=[],r=new _;function n(){for(var r,n=t,a=-1,i=n.length;++a<i;)(r=n[a].on)&&r.apply(this,arguments);return e}return n.on=function(n,a){var i,o=r.get(n);return arguments.length<2?o&&o.on:(o&&(o.on=null,t=t.slice(0,i=t.indexOf(o)).concat(t.slice(i+1)),r.remove(n)),a&&t.push(r.set(n,{on:a})),e)},n}function N(){e.event.preventDefault()}function F(){for(var t,r=e.event;t=r.sourceEvent;)r=t;return r}function j(t){for(var r=new z,n=0,a=arguments.length;++n<a;)r[arguments[n]]=I(r);return r.of=function(n,a){return function(i){try{var o=i.sourceEvent=e.event;i.target=t,e.event=i,r[i.type].apply(n,a)}finally{e.event=o}}},r}e.dispatch=function(){for(var e=new z,t=-1,r=arguments.length;++t<r;)e[arguments[t]]=I(e);return e},z.prototype.on=function(e,t){var r=e.indexOf("."),n="";if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e)return arguments.length<2?this[e].on(n):this[e].on(n,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(n,null);return this}},e.event=null,e.requote=function(e){return e.replace(B,"\\$&")};var B=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,H={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)e[r]=t[r]};function U(e){return H(e,G),e}var Y=function(e,t){return t.querySelector(e)},q=function(e,t){return t.querySelectorAll(e)},V=function(e,t){var r=e.matches||e[E(e,"matchesSelector")];return V=function(e,t){return r.call(e,t)},V(e,t)};"function"==typeof Sizzle&&(Y=function(e,t){return Sizzle(e,t)[0]||null},q=Sizzle,V=Sizzle.matchesSelector),e.selection=function(){return e.select(a.documentElement)};var G=e.selection.prototype=[];function Z(e){return"function"==typeof e?e:function(){return Y(e,this)}}function W(e){return"function"==typeof e?e:function(){return q(e,this)}}G.select=function(e){var t,r,n,a,i=[];e=Z(e);for(var o=-1,l=this.length;++o<l;){i.push(t=[]),t.parentNode=(n=this[o]).parentNode;for(var s=-1,c=n.length;++s<c;)(a=n[s])?(t.push(r=e.call(a,a.__data__,s,o)),r&&"__data__"in a&&(r.__data__=a.__data__)):t.push(null)}return U(i)},G.selectAll=function(e){var t,r,a=[];e=W(e);for(var i=-1,o=this.length;++i<o;)for(var l=this[i],s=-1,c=l.length;++s<c;)(r=l[s])&&(a.push(t=n(e.call(r,r.__data__,s,i))),t.parentNode=r);return U(a)};var X="http://www.w3.org/1999/xhtml",J={svg:"http://www.w3.org/2000/svg",xhtml:X,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function K(t,r){return t=e.ns.qualify(t),null==r?t.local?function(){this.removeAttributeNS(t.space,t.local)}:function(){this.removeAttribute(t)}:"function"==typeof r?t.local?function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}:function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}:t.local?function(){this.setAttributeNS(t.space,t.local,r)}:function(){this.setAttribute(t,r)}}function Q(e){return e.trim().replace(/\s+/g," ")}function $(t){return new RegExp("(?:^|\\s+)"+e.requote(t)+"(?:\\s+|$)","g")}function ee(e){return(e+"").trim().split(/^|\s+/)}function te(e,t){var r=(e=ee(e).map(re)).length;return"function"==typeof t?function(){for(var n=-1,a=t.apply(this,arguments);++n<r;)e[n](this,a)}:function(){for(var n=-1;++n<r;)e[n](this,t)}}function re(e){var t=$(e);return function(r,n){if(a=r.classList)return n?a.add(e):a.remove(e);var a=r.getAttribute("class")||"";n?(t.lastIndex=0,t.test(a)||r.setAttribute("class",Q(a+" "+e))):r.setAttribute("class",Q(a.replace(t," ")))}}function ne(e,t,r){return null==t?function(){this.style.removeProperty(e)}:"function"==typeof t?function(){var n=t.apply(this,arguments);null==n?this.style.removeProperty(e):this.style.setProperty(e,n,r)}:function(){this.style.setProperty(e,t,r)}}function ae(e,t){return null==t?function(){delete this[e]}:"function"==typeof t?function(){var r=t.apply(this,arguments);null==r?delete this[e]:this[e]=r}:function(){this[e]=t}}function ie(t){return"function"==typeof t?t:(t=e.ns.qualify(t)).local?function(){return this.ownerDocument.createElementNS(t.space,t.local)}:function(){var e=this.ownerDocument,r=this.namespaceURI;return r===X&&e.documentElement.namespaceURI===X?e.createElement(t):e.createElementNS(r,t)}}function oe(){var e=this.parentNode;e&&e.removeChild(this)}function le(e){return{__data__:e}}function se(e){return function(){return V(this,e)}}function ce(e){return arguments.length||(e=d),function(t,r){return t&&r?e(t.__data__,r.__data__):!t-!r}}function ue(e,t){for(var r=0,n=e.length;r<n;r++)for(var a,i=e[r],o=0,l=i.length;o<l;o++)(a=i[o])&&t(a,o,r);return e}function fe(e){return H(e,de),e}e.ns={prefix:J,qualify:function(e){var t=e.indexOf(":"),r=e;return t>=0&&"xmlns"!==(r=e.slice(0,t))&&(e=e.slice(t+1)),J.hasOwnProperty(r)?{space:J[r],local:e}:e}},G.attr=function(t,r){if(arguments.length<2){if("string"==typeof t){var n=this.node();return(t=e.ns.qualify(t)).local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}for(r in t)this.each(K(r,t[r]));return this}return this.each(K(t,r))},G.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var r=this.node(),n=(e=ee(e)).length,a=-1;if(t=r.classList){for(;++a<n;)if(!t.contains(e[a]))return!1}else for(t=r.getAttribute("class");++a<n;)if(!$(e[a]).test(t))return!1;return!0}for(t in e)this.each(te(t,e[t]));return this}return this.each(te(e,t))},G.style=function(e,t,r){var n=arguments.length;if(n<3){if("string"!=typeof e){for(r in n<2&&(t=""),e)this.each(ne(r,e[r],t));return this}if(n<2){var a=this.node();return o(a).getComputedStyle(a,null).getPropertyValue(e)}r=""}return this.each(ne(e,t,r))},G.property=function(e,t){if(arguments.length<2){if("string"==typeof e)return this.node()[e];for(t in e)this.each(ae(t,e[t]));return this}return this.each(ae(e,t))},G.text=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}:null==e?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent},G.html=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}:null==e?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML},G.append=function(e){return e=ie(e),this.select((function(){return this.appendChild(e.apply(this,arguments))}))},G.insert=function(e,t){return e=ie(e),t=Z(t),this.select((function(){return this.insertBefore(e.apply(this,arguments),t.apply(this,arguments)||null)}))},G.remove=function(){return this.each(oe)},G.data=function(e,t){var r,n,a=-1,i=this.length;if(!arguments.length){for(e=new Array(i=(r=this[0]).length);++a<i;)(n=r[a])&&(e[a]=n.__data__);return e}function o(e,r){var n,a,i,o=e.length,u=r.length,f=Math.min(o,u),d=new Array(u),p=new Array(u),h=new Array(o);if(t){var m,y=new _,g=new Array(o);for(n=-1;++n<o;)(a=e[n])&&(y.has(m=t.call(a,a.__data__,n))?h[n]=a:y.set(m,a),g[n]=m);for(n=-1;++n<u;)(a=y.get(m=t.call(r,i=r[n],n)))?!0!==a&&(d[n]=a,a.__data__=i):p[n]=le(i),y.set(m,!0);for(n=-1;++n<o;)n in g&&!0!==y.get(g[n])&&(h[n]=e[n])}else{for(n=-1;++n<f;)a=e[n],i=r[n],a?(a.__data__=i,d[n]=a):p[n]=le(i);for(;n<u;++n)p[n]=le(r[n]);for(;n<o;++n)h[n]=e[n]}p.update=d,p.parentNode=d.parentNode=h.parentNode=e.parentNode,l.push(p),s.push(d),c.push(h)}var l=fe([]),s=U([]),c=U([]);if("function"==typeof e)for(;++a<i;)o(r=this[a],e.call(r,r.parentNode.__data__,a));else for(;++a<i;)o(r=this[a],e);return s.enter=function(){return l},s.exit=function(){return c},s},G.datum=function(e){return arguments.length?this.property("__data__",e):this.property("__data__")},G.filter=function(e){var t,r,n,a=[];"function"!=typeof e&&(e=se(e));for(var i=0,o=this.length;i<o;i++){a.push(t=[]),t.parentNode=(r=this[i]).parentNode;for(var l=0,s=r.length;l<s;l++)(n=r[l])&&e.call(n,n.__data__,l,i)&&t.push(n)}return U(a)},G.order=function(){for(var e=-1,t=this.length;++e<t;)for(var r,n=this[e],a=n.length-1,i=n[a];--a>=0;)(r=n[a])&&(i&&i!==r.nextSibling&&i.parentNode.insertBefore(r,i),i=r);return this},G.sort=function(e){e=ce.apply(this,arguments);for(var t=-1,r=this.length;++t<r;)this[t].sort(e);return this.order()},G.each=function(e){return ue(this,(function(t,r,n){e.call(t,t.__data__,r,n)}))},G.call=function(e){var t=n(arguments);return e.apply(t[0]=this,t),this},G.empty=function(){return!this.node()},G.node=function(){for(var e=0,t=this.length;e<t;e++)for(var r=this[e],n=0,a=r.length;n<a;n++){var i=r[n];if(i)return i}return null},G.size=function(){var e=0;return ue(this,(function(){++e})),e};var de=[];function pe(e){var t,r;return function(n,a,i){var o,l=e[i].update,s=l.length;for(i!=r&&(r=i,t=0),a>=t&&(t=a+1);!(o=l[t])&&++t<s;);return o}}function he(t,r,a){var i="__on"+t,o=t.indexOf("."),l=ye;o>0&&(t=t.slice(0,o));var s=me.get(t);function c(){var e=this[i];e&&(this.removeEventListener(t,e,e.$),delete this[i])}return s&&(t=s,l=ge),o?r?function(){var e=l(r,n(arguments));c.call(this),this.addEventListener(t,this[i]=e,e.$=a),e._=r}:c:r?R:function(){var r,n=new RegExp("^__on([^.]+)"+e.requote(t)+"$");for(var a in this)if(r=a.match(n)){var i=this[a];this.removeEventListener(r[1],i,i.$),delete this[a]}}}e.selection.enter=fe,e.selection.enter.prototype=de,de.append=G.append,de.empty=G.empty,de.node=G.node,de.call=G.call,de.size=G.size,de.select=function(e){for(var t,r,n,a,i,o=[],l=-1,s=this.length;++l<s;){n=(a=this[l]).update,o.push(t=[]),t.parentNode=a.parentNode;for(var c=-1,u=a.length;++c<u;)(i=a[c])?(t.push(n[c]=r=e.call(a.parentNode,i.__data__,c,l)),r.__data__=i.__data__):t.push(null)}return U(o)},de.insert=function(e,t){return arguments.length<2&&(t=pe(this)),G.insert.call(this,e,t)},e.select=function(e){var t;return"string"==typeof e?(t=[Y(e,a)]).parentNode=a.documentElement:(t=[e]).parentNode=i(e),U([t])},e.selectAll=function(e){var t;return"string"==typeof e?(t=n(q(e,a))).parentNode=a.documentElement:(t=n(e)).parentNode=null,U([t])},G.on=function(e,t,r){var n=arguments.length;if(n<3){if("string"!=typeof e){for(r in n<2&&(t=!1),e)this.each(he(r,e[r],t));return this}if(n<2)return(n=this.node()["__on"+e])&&n._;r=!1}return this.each(he(e,t,r))};var me=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});function ye(t,r){return function(n){var a=e.event;e.event=n,r[0]=this.__data__;try{t.apply(this,r)}finally{e.event=a}}}function ge(e,t){var r=ye(e,t);return function(e){var t=this,n=e.relatedTarget;n&&(n===t||8&n.compareDocumentPosition(t))||r.call(t,e)}}a&&me.forEach((function(e){"on"+e in a&&me.remove(e)}));var ve,xe=0;function be(t){var r=".dragsuppress-"+ ++xe,n="click"+r,a=e.select(o(t)).on("touchmove"+r,N).on("dragstart"+r,N).on("selectstart"+r,N);if(null==ve&&(ve=!("onselectstart"in t)&&E(t.style,"userSelect")),ve){var l=i(t).style,s=l[ve];l[ve]="none"}return function(e){if(a.on(r,null),ve&&(l[ve]=s),e){var t=function(){a.on(n,null)};a.on(n,(function(){N(),t()}),!0),setTimeout(t,0)}}}e.mouse=function(e){return we(e,F())};var _e=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function we(t,r){r.changedTouches&&(r=r.changedTouches[0]);var n=t.ownerSVGElement||t;if(n.createSVGPoint){var a=n.createSVGPoint();if(_e<0){var i=o(t);if(i.scrollX||i.scrollY){var l=(n=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important"))[0][0].getScreenCTM();_e=!(l.f||l.e),n.remove()}}return _e?(a.x=r.pageX,a.y=r.pageY):(a.x=r.clientX,a.y=r.clientY),[(a=a.matrixTransform(t.getScreenCTM().inverse())).x,a.y]}var s=t.getBoundingClientRect();return[r.clientX-s.left-t.clientLeft,r.clientY-s.top-t.clientTop]}function Te(){return e.event.changedTouches[0].identifier}e.touch=function(e,t,r){if(arguments.length<3&&(r=t,t=F().changedTouches),t)for(var n,a=0,i=t.length;a<i;++a)if((n=t[a]).identifier===r)return we(e,n)},e.behavior.drag=function(){var t=j(i,"drag","dragstart","dragend"),r=null,n=l(R,e.mouse,o,"mousemove","mouseup"),a=l(Te,e.touch,D,"touchmove","touchend");function i(){this.on("mousedown.drag",n).on("touchstart.drag",a)}function l(n,a,i,o,l){return function(){var s,c=this,u=e.event.target.correspondingElement||e.event.target,f=c.parentNode,d=t.of(c,arguments),p=0,h=n(),m=".drag"+(null==h?"":"-"+h),y=e.select(i(u)).on(o+m,x).on(l+m,b),g=be(u),v=a(f,h);function x(){var e,t,r=a(f,h);r&&(e=r[0]-v[0],t=r[1]-v[1],p|=e|t,v=r,d({type:"drag",x:r[0]+s[0],y:r[1]+s[1],dx:e,dy:t}))}function b(){a(f,h)&&(y.on(o+m,null).on(l+m,null),g(p),d({type:"dragend"}))}s=r?[(s=r.apply(c,arguments)).x-v[0],s.y-v[1]]:[0,0],d({type:"dragstart"})}}return i.origin=function(e){return arguments.length?(r=e,i):r},e.rebind(i,t,"on")},e.touches=function(e,t){return arguments.length<2&&(t=F().touches),t?n(t).map((function(t){var r=we(e,t);return r.identifier=t.identifier,r})):[]};var Me=1e-6,ke=Math.PI,Ae=2*ke,Le=Ae-Me,Se=ke/2,Oe=ke/180,De=180/ke;function Ce(e){return e>1?Se:e<-1?-Se:Math.asin(e)}function Ee(e){return((e=Math.exp(e))+1/e)/2}var Pe=Math.SQRT2;e.interpolateZoom=function(e,t){var r,n,a=e[0],i=e[1],o=e[2],l=t[0],s=t[1],c=t[2],u=l-a,f=s-i,d=u*u+f*f;if(d<1e-12)n=Math.log(c/o)/Pe,r=function(e){return[a+e*u,i+e*f,o*Math.exp(Pe*e*n)]};else{var p=Math.sqrt(d),h=(c*c-o*o+4*d)/(2*o*2*p),m=(c*c-o*o-4*d)/(2*c*2*p),y=Math.log(Math.sqrt(h*h+1)-h),g=Math.log(Math.sqrt(m*m+1)-m);n=(g-y)/Pe,r=function(e){var t,r=e*n,l=Ee(y),s=o/(2*p)*(l*(t=Pe*r+y,((t=Math.exp(2*t))-1)/(t+1))-function(e){return((e=Math.exp(e))-1/e)/2}(y));return[a+s*u,i+s*f,o*l/Ee(Pe*r+y)]}}return r.duration=1e3*n,r},e.behavior.zoom=function(){var t,r,n,i,l,s,c,u,f,d={x:0,y:0,k:1},p=[960,500],h=Ie,m=250,y=0,g="mousedown.zoom",v="mousemove.zoom",x="mouseup.zoom",b="touchstart.zoom",_=j(w,"zoomstart","zoom","zoomend");function w(e){e.on(g,C).on(ze+".zoom",P).on("dblclick.zoom",R).on(b,E)}function T(e){return[(e[0]-d.x)/d.k,(e[1]-d.y)/d.k]}function M(e){d.k=Math.max(h[0],Math.min(h[1],e))}function k(e,t){t=function(e){return[e[0]*d.k+d.x,e[1]*d.k+d.y]}(t),d.x+=e[0]-t[0],d.y+=e[1]-t[1]}function A(t,n,a,i){t.__chart__={x:d.x,y:d.y,k:d.k},M(Math.pow(2,i)),k(r=n,a),t=e.select(t),m>0&&(t=t.transition().duration(m)),t.call(w.event)}function L(){c&&c.domain(s.range().map((function(e){return(e-d.x)/d.k})).map(s.invert)),f&&f.domain(u.range().map((function(e){return(e-d.y)/d.k})).map(u.invert))}function S(e){y++||e({type:"zoomstart"})}function O(e){L(),e({type:"zoom",scale:d.k,translate:[d.x,d.y]})}function D(e){--y||(e({type:"zoomend"}),r=null)}function C(){var t=this,r=_.of(t,arguments),n=0,a=e.select(o(t)).on(v,s).on(x,c),i=T(e.mouse(t)),l=be(t);function s(){n=1,k(e.mouse(t),i),O(r)}function c(){a.on(v,null).on(x,null),l(n),D(r)}Wa.call(t),S(r)}function E(){var t,r=this,n=_.of(r,arguments),a={},i=0,o=".zoom-"+e.event.changedTouches[0].identifier,s="touchmove"+o,c="touchend"+o,u=[],f=e.select(r),p=be(r);function h(){var n=e.touches(r);return t=d.k,n.forEach((function(e){e.identifier in a&&(a[e.identifier]=T(e))})),n}function m(){var t=e.event.target;e.select(t).on(s,y).on(c,v),u.push(t);for(var n=e.event.changedTouches,o=0,f=n.length;o<f;++o)a[n[o].identifier]=null;var p=h(),m=Date.now();if(1===p.length){if(m-l<500){var g=p[0];A(r,g,a[g.identifier],Math.floor(Math.log(d.k)/Math.LN2)+1),N()}l=m}else if(p.length>1){g=p[0];var x=p[1],b=g[0]-x[0],_=g[1]-x[1];i=b*b+_*_}}function y(){var o,s,c,u,f=e.touches(r);Wa.call(r);for(var d=0,p=f.length;d<p;++d,u=null)if(c=f[d],u=a[c.identifier]){if(s)break;o=c,s=u}if(u){var h=(h=c[0]-o[0])*h+(h=c[1]-o[1])*h,m=i&&Math.sqrt(h/i);o=[(o[0]+c[0])/2,(o[1]+c[1])/2],s=[(s[0]+u[0])/2,(s[1]+u[1])/2],M(m*t)}l=null,k(o,s),O(n)}function v(){if(e.event.touches.length){for(var t=e.event.changedTouches,r=0,i=t.length;r<i;++r)delete a[t[r].identifier];for(var l in a)return void h()}e.selectAll(u).on(o,null),f.on(g,C).on(b,E),p(),D(n)}m(),S(n),f.on(g,null).on(b,m)}function P(){var a=_.of(this,arguments);i?clearTimeout(i):(Wa.call(this),t=T(r=n||e.mouse(this)),S(a)),i=setTimeout((function(){i=null,D(a)}),50),N(),M(Math.pow(2,.002*Re())*d.k),k(r,t),O(a)}function R(){var t=e.mouse(this),r=Math.log(d.k)/Math.LN2;A(this,t,T(t),e.event.shiftKey?Math.ceil(r)-1:Math.floor(r)+1)}return ze||(ze="onwheel"in a?(Re=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(Re=function(){return e.event.wheelDelta},"mousewheel"):(Re=function(){return-e.event.detail},"MozMousePixelScroll")),w.event=function(t){t.each((function(){var t=_.of(this,arguments),n=d;Ka?e.select(this).transition().each("start.zoom",(function(){d=this.__chart__||{x:0,y:0,k:1},S(t)})).tween("zoom:zoom",(function(){var a=p[0],i=p[1],o=r?r[0]:a/2,l=r?r[1]:i/2,s=e.interpolateZoom([(o-d.x)/d.k,(l-d.y)/d.k,a/d.k],[(o-n.x)/n.k,(l-n.y)/n.k,a/n.k]);return function(e){var r=s(e),n=a/r[2];this.__chart__=d={x:o-r[0]*n,y:l-r[1]*n,k:n},O(t)}})).each("interrupt.zoom",(function(){D(t)})).each("end.zoom",(function(){D(t)})):(this.__chart__=d,S(t),O(t),D(t))}))},w.translate=function(e){return arguments.length?(d={x:+e[0],y:+e[1],k:d.k},L(),w):[d.x,d.y]},w.scale=function(e){return arguments.length?(d={x:d.x,y:d.y,k:null},M(+e),L(),w):d.k},w.scaleExtent=function(e){return arguments.length?(h=null==e?Ie:[+e[0],+e[1]],w):h},w.center=function(e){return arguments.length?(n=e&&[+e[0],+e[1]],w):n},w.size=function(e){return arguments.length?(p=e&&[+e[0],+e[1]],w):p},w.duration=function(e){return arguments.length?(m=+e,w):m},w.x=function(e){return arguments.length?(c=e,s=e.copy(),d={x:0,y:0,k:1},w):c},w.y=function(e){return arguments.length?(f=e,u=e.copy(),d={x:0,y:0,k:1},w):f},e.rebind(w,_,"on")};var Re,ze,Ie=[0,1/0];function Ne(){}function Fe(e,t,r){return this instanceof Fe?(this.h=+e,this.s=+t,void(this.l=+r)):arguments.length<2?e instanceof Fe?new Fe(e.h,e.s,e.l):it(""+e,ot,Fe):new Fe(e,t,r)}e.color=Ne,Ne.prototype.toString=function(){return this.rgb()+""},e.hsl=Fe;var je=Fe.prototype=new Ne;function Be(e,t,r){var n,a;function i(e){return Math.round(255*function(e){return e>360?e-=360:e<0&&(e+=360),e<60?n+(a-n)*e/60:e<180?a:e<240?n+(a-n)*(240-e)/60:n}(e))}return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)||t<0?0:t>1?1:t,n=2*(r=r<0?0:r>1?1:r)-(a=r<=.5?r*(1+t):r+t-r*t),new et(i(e+120),i(e),i(e-120))}function He(t,r,n){return this instanceof He?(this.h=+t,this.c=+r,void(this.l=+n)):arguments.length<2?t instanceof He?new He(t.h,t.c,t.l):Je(t instanceof qe?t.l:(t=lt((t=e.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new He(t,r,n)}je.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new Fe(this.h,this.s,this.l/e)},je.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new Fe(this.h,this.s,e*this.l)},je.rgb=function(){return Be(this.h,this.s,this.l)},e.hcl=He;var Ue=He.prototype=new Ne;function Ye(e,t,r){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new qe(r,Math.cos(e*=Oe)*t,Math.sin(e)*t)}function qe(e,t,r){return this instanceof qe?(this.l=+e,this.a=+t,void(this.b=+r)):arguments.length<2?e instanceof qe?new qe(e.l,e.a,e.b):e instanceof He?Ye(e.h,e.c,e.l):lt((e=et(e)).r,e.g,e.b):new qe(e,t,r)}Ue.brighter=function(e){return new He(this.h,this.c,Math.min(100,this.l+Ve*(arguments.length?e:1)))},Ue.darker=function(e){return new He(this.h,this.c,Math.max(0,this.l-Ve*(arguments.length?e:1)))},Ue.rgb=function(){return Ye(this.h,this.c,this.l).rgb()},e.lab=qe;var Ve=18,Ge=.95047,Ze=1.08883,We=qe.prototype=new Ne;function Xe(e,t,r){var n=(e+16)/116,a=n+t/500,i=n-r/200;return new et($e(3.2404542*(a=Ke(a)*Ge)-1.5371385*(n=1*Ke(n))-.4985314*(i=Ke(i)*Ze)),$e(-.969266*a+1.8760108*n+.041556*i),$e(.0556434*a-.2040259*n+1.0572252*i))}function Je(e,t,r){return e>0?new He(Math.atan2(r,t)*De,Math.sqrt(t*t+r*r),e):new He(NaN,NaN,e)}function Ke(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function Qe(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function $e(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function et(e,t,r){return this instanceof et?(this.r=~~e,this.g=~~t,void(this.b=~~r)):arguments.length<2?e instanceof et?new et(e.r,e.g,e.b):it(""+e,et,Be):new et(e,t,r)}function tt(e){return new et(e>>16,e>>8&255,255&e)}function rt(e){return tt(e)+""}We.brighter=function(e){return new qe(Math.min(100,this.l+Ve*(arguments.length?e:1)),this.a,this.b)},We.darker=function(e){return new qe(Math.max(0,this.l-Ve*(arguments.length?e:1)),this.a,this.b)},We.rgb=function(){return Xe(this.l,this.a,this.b)},e.rgb=et;var nt=et.prototype=new Ne;function at(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function it(e,t,r){var n,a,i,o=0,l=0,s=0;if(n=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(a=n[2].split(","),n[1]){case"hsl":return r(parseFloat(a[0]),parseFloat(a[1])/100,parseFloat(a[2])/100);case"rgb":return t(ct(a[0]),ct(a[1]),ct(a[2]))}return(i=ut.get(e))?t(i.r,i.g,i.b):(null==e||"#"!==e.charAt(0)||isNaN(i=parseInt(e.slice(1),16))||(4===e.length?(o=(3840&i)>>4,o|=o>>4,l=240&i,l|=l>>4,s=15&i,s|=s<<4):7===e.length&&(o=(16711680&i)>>16,l=(65280&i)>>8,s=255&i)),t(o,l,s))}function ot(e,t,r){var n,a,i=Math.min(e/=255,t/=255,r/=255),o=Math.max(e,t,r),l=o-i,s=(o+i)/2;return l?(a=s<.5?l/(o+i):l/(2-o-i),n=e==o?(t-r)/l+(t<r?6:0):t==o?(r-e)/l+2:(e-t)/l+4,n*=60):(n=NaN,a=s>0&&s<1?0:n),new Fe(n,a,s)}function lt(e,t,r){var n=Qe((.4124564*(e=st(e))+.3575761*(t=st(t))+.1804375*(r=st(r)))/Ge),a=Qe((.2126729*e+.7151522*t+.072175*r)/1);return qe(116*a-16,500*(n-a),200*(a-Qe((.0193339*e+.119192*t+.9503041*r)/Ze)))}function st(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ct(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}nt.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,r=this.g,n=this.b,a=30;return t||r||n?(t&&t<a&&(t=a),r&&r<a&&(r=a),n&&n<a&&(n=a),new et(Math.min(255,t/e),Math.min(255,r/e),Math.min(255,n/e))):new et(a,a,a)},nt.darker=function(e){return new et((e=Math.pow(.7,arguments.length?e:1))*this.r,e*this.g,e*this.b)},nt.hsl=function(){return ot(this.r,this.g,this.b)},nt.toString=function(){return"#"+at(this.r)+at(this.g)+at(this.b)};var ut=e.map({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 ft(e){return"function"==typeof e?e:function(){return e}}function dt(e){return function(t,r,n){return 2===arguments.length&&"function"==typeof r&&(n=r,r=null),pt(t,r,e,n)}}function pt(t,r,a,i){var o={},l=e.dispatch("beforesend","progress","load","error"),s={},c=new XMLHttpRequest,u=null;function f(){var e,t=c.status;if(!t&&function(e){var t=e.responseType;return t&&"text"!==t?e.response:e.responseText}(c)||t>=200&&t<300||304===t){try{e=a.call(o,c)}catch(e){return void l.error.call(o,e)}l.load.call(o,e)}else l.error.call(o,c)}return self.XDomainRequest&&!("withCredentials"in c)&&/^(http(s)?:)?\/\//.test(t)&&(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=f:c.onreadystatechange=function(){c.readyState>3&&f()},c.onprogress=function(t){var r=e.event;e.event=t;try{l.progress.call(o,c)}finally{e.event=r}},o.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s[e]:(null==t?delete s[e]:s[e]=t+"",o)},o.mimeType=function(e){return arguments.length?(r=null==e?null:e+"",o):r},o.responseType=function(e){return arguments.length?(u=e,o):u},o.response=function(e){return a=e,o},["get","post"].forEach((function(e){o[e]=function(){return o.send.apply(o,[e].concat(n(arguments)))}})),o.send=function(e,n,a){if(2===arguments.length&&"function"==typeof n&&(a=n,n=null),c.open(e,t,!0),null==r||"accept"in s||(s.accept=r+",*/*"),c.setRequestHeader)for(var i in s)c.setRequestHeader(i,s[i]);return null!=r&&c.overrideMimeType&&c.overrideMimeType(r),null!=u&&(c.responseType=u),null!=a&&o.on("error",a).on("load",(function(e){a(null,e)})),l.beforesend.call(o,c),c.send(null==n?null:n),o},o.abort=function(){return c.abort(),o},e.rebind(o,l,"on"),null==i?o:o.get(function(e){return 1===e.length?function(t,r){e(null==t?r:null)}:e}(i))}ut.forEach((function(e,t){ut.set(e,tt(t))})),e.functor=ft,e.xhr=dt(D),e.dsv=function(e,t){var r=new RegExp('["'+e+"\n]"),n=e.charCodeAt(0);function a(e,r,n){arguments.length<3&&(n=r,r=null);var a=pt(e,t,null==r?i:o(r),n);return a.row=function(e){return arguments.length?a.response(null==(r=e)?i:o(e)):r},a}function i(e){return a.parse(e.responseText)}function o(e){return function(t){return a.parse(t.responseText,e)}}function l(t){return t.map(s).join(e)}function s(e){return r.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}return a.parse=function(e,t){var r;return a.parseRows(e,(function(e,n){if(r)return r(e,n-1);var a=function(t){for(var r={},n=e.length,a=0;a<n;++a)r[e[a]]=t[a];return r};r=t?function(e,r){return t(a(e),r)}:a}))},a.parseRows=function(e,t){var r,a,i={},o={},l=[],s=e.length,c=0,u=0;function f(){if(c>=s)return o;if(a)return a=!1,i;var t=c;if(34===e.charCodeAt(t)){for(var r=t;r++<s;)if(34===e.charCodeAt(r)){if(34!==e.charCodeAt(r+1))break;++r}return c=r+2,13===(l=e.charCodeAt(r+1))?(a=!0,10===e.charCodeAt(r+2)&&++c):10===l&&(a=!0),e.slice(t+1,r).replace(/""/g,'"')}for(;c<s;){var l,u=1;if(10===(l=e.charCodeAt(c++)))a=!0;else if(13===l)a=!0,10===e.charCodeAt(c)&&(++c,++u);else if(l!==n)continue;return e.slice(t,c-u)}return e.slice(t)}for(;(r=f())!==o;){for(var d=[];r!==i&&r!==o;)d.push(r),r=f();t&&null==(d=t(d,u++))||l.push(d)}return l},a.format=function(t){if(Array.isArray(t[0]))return a.formatRows(t);var r=new O,n=[];return t.forEach((function(e){for(var t in e)r.has(t)||n.push(r.add(t))})),[n.map(s).join(e)].concat(t.map((function(t){return n.map((function(e){return s(t[e])})).join(e)}))).join("\n")},a.formatRows=function(e){return e.map(l).join("\n")},a},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv("\t","text/tab-separated-values");var ht,mt,yt,gt,vt=this[E(this,"requestAnimationFrame")]||function(e){setTimeout(e,17)};function xt(e,t,r){var n=arguments.length;n<2&&(t=0),n<3&&(r=Date.now());var a={c:e,t:r+t,n:null};return mt?mt.n=a:ht=a,mt=a,yt||(gt=clearTimeout(gt),yt=1,vt(bt)),a}function bt(){var e=_t(),t=wt()-e;t>24?(isFinite(t)&&(clearTimeout(gt),gt=setTimeout(bt,t)),yt=0):(yt=1,vt(bt))}function _t(){for(var e=Date.now(),t=ht;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function wt(){for(var e,t=ht,r=1/0;t;)t.c?(t.t<r&&(r=t.t),t=(e=t).n):t=e?e.n=t.n:ht=t.n;return mt=e,r}function Tt(e){return e[0]}function Mt(e){return e[1]}function kt(e){for(var t=e.length,r=[0,1],n=2,a=2;a<t;a++){for(;n>1&&(i=e[r[n-2]],o=e[r[n-1]],l=e[a],(o[0]-i[0])*(l[1]-i[1])-(o[1]-i[1])*(l[0]-i[0])<=0);)--n;r[n++]=a}var i,o,l;return r.slice(0,n)}function At(e,t){return e[0]-t[0]||e[1]-t[1]}e.timer=function(){xt.apply(this,arguments)},e.timer.flush=function(){_t(),wt()},e.round=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},e.geom={},e.geom.hull=function(e){var t=Tt,r=Mt;if(arguments.length)return n(e);function n(e){if(e.length<3)return[];var n,a=ft(t),i=ft(r),o=e.length,l=[],s=[];for(n=0;n<o;n++)l.push([+a.call(this,e[n],n),+i.call(this,e[n],n),n]);for(l.sort(At),n=0;n<o;n++)s.push([l[n][0],-l[n][1]]);var c=kt(l),u=kt(s),f=u[0]===c[0],d=u[u.length-1]===c[c.length-1],p=[];for(n=c.length-1;n>=0;--n)p.push(e[l[c[n]][2]]);for(n=+f;n<u.length-d;++n)p.push(e[l[u[n]][2]]);return p}return n.x=function(e){return arguments.length?(t=e,n):t},n.y=function(e){return arguments.length?(r=e,n):r},n},e.geom.polygon=function(e){return H(e,Lt),e};var Lt=e.geom.polygon.prototype=[];function St(e,t,r){return(r[0]-t[0])*(e[1]-t[1])<(r[1]-t[1])*(e[0]-t[0])}function Ot(e,t,r,n){var a=e[0],i=r[0],o=t[0]-a,l=n[0]-i,s=e[1],c=r[1],u=t[1]-s,f=n[1]-c,d=(l*(s-c)-f*(a-i))/(f*o-l*u);return[a+d*o,s+d*u]}function Dt(e){var t=e[0],r=e[e.length-1];return!(t[0]-r[0]||t[1]-r[1])}Lt.area=function(){for(var e,t=-1,r=this.length,n=this[r-1],a=0;++t<r;)e=n,n=this[t],a+=e[1]*n[0]-e[0]*n[1];return.5*a},Lt.centroid=function(e){var t,r,n=-1,a=this.length,i=0,o=0,l=this[a-1];for(arguments.length||(e=-1/(6*this.area()));++n<a;)t=l,l=this[n],r=t[0]*l[1]-l[0]*t[1],i+=(t[0]+l[0])*r,o+=(t[1]+l[1])*r;return[i*e,o*e]},Lt.clip=function(e){for(var t,r,n,a,i,o,l=Dt(e),s=-1,c=this.length-Dt(this),u=this[c-1];++s<c;){for(t=e.slice(),e.length=0,a=this[s],i=t[(n=t.length-l)-1],r=-1;++r<n;)St(o=t[r],u,a)?(St(i,u,a)||e.push(Ot(i,o,u,a)),e.push(o)):St(i,u,a)&&e.push(Ot(i,o,u,a)),i=o;l&&e.push(e[0]),u=a}return e};var Ct,Et,Pt,Rt,zt,It=[],Nt=[];function Ft(){rr(this),this.edge=this.site=this.circle=null}function jt(e){var t=It.pop()||new Ft;return t.site=e,t}function Bt(e){Xt(e),Pt.remove(e),It.push(e),rr(e)}function Ht(e){var t=e.circle,r=t.x,n=t.cy,a={x:r,y:n},i=e.P,o=e.N,l=[e];Bt(e);for(var s=i;s.circle&&v(r-s.circle.x)<Me&&v(n-s.circle.cy)<Me;)i=s.P,l.unshift(s),Bt(s),s=i;l.unshift(s),Xt(s);for(var c=o;c.circle&&v(r-c.circle.x)<Me&&v(n-c.circle.cy)<Me;)o=c.N,l.push(c),Bt(c),c=o;l.push(c),Xt(c);var u,f=l.length;for(u=1;u<f;++u)c=l[u],s=l[u-1],$t(c.edge,s.site,c.site,a);s=l[0],(c=l[f-1]).edge=Qt(s.site,c.site,null,a),Wt(s),Wt(c)}function Ut(e){for(var t,r,n,a,i=e.x,o=e.y,l=Pt._;l;)if((n=Yt(l,o)-i)>Me)l=l.L;else{if(!((a=i-qt(l,o))>Me)){n>-Me?(t=l.P,r=l):a>-Me?(t=l,r=l.N):t=r=l;break}if(!l.R){t=l;break}l=l.R}var s=jt(e);if(Pt.insert(t,s),t||r){if(t===r)return Xt(t),r=jt(t.site),Pt.insert(s,r),s.edge=r.edge=Qt(t.site,s.site),Wt(t),void Wt(r);if(r){Xt(t),Xt(r);var c=t.site,u=c.x,f=c.y,d=e.x-u,p=e.y-f,h=r.site,m=h.x-u,y=h.y-f,g=2*(d*y-p*m),v=d*d+p*p,x=m*m+y*y,b={x:(y*v-p*x)/g+u,y:(d*x-m*v)/g+f};$t(r.edge,c,h,b),s.edge=Qt(c,e,null,b),r.edge=Qt(e,h,null,b),Wt(t),Wt(r)}else s.edge=Qt(t.site,s.site)}}function Yt(e,t){var r=e.site,n=r.x,a=r.y,i=a-t;if(!i)return n;var o=e.P;if(!o)return-1/0;var l=(r=o.site).x,s=r.y,c=s-t;if(!c)return l;var u=l-n,f=1/i-1/c,d=u/c;return f?(-d+Math.sqrt(d*d-2*f*(u*u/(-2*c)-s+c/2+a-i/2)))/f+n:(n+l)/2}function qt(e,t){var r=e.N;if(r)return Yt(r,t);var n=e.site;return n.y===t?n.x:1/0}function Vt(e){this.site=e,this.edges=[]}function Gt(e,t){return t.angle-e.angle}function Zt(){rr(this),this.x=this.y=this.arc=this.site=this.cy=null}function Wt(e){var t=e.P,r=e.N;if(t&&r){var n=t.site,a=e.site,i=r.site;if(n!==i){var o=a.x,l=a.y,s=n.x-o,c=n.y-l,u=i.x-o,f=2*(s*(y=i.y-l)-c*u);if(!(f>=-1e-12)){var d=s*s+c*c,p=u*u+y*y,h=(y*d-c*p)/f,m=(s*p-u*d)/f,y=m+l,g=Nt.pop()||new Zt;g.arc=e,g.site=a,g.x=h+o,g.y=y+Math.sqrt(h*h+m*m),g.cy=y,e.circle=g;for(var v=null,x=zt._;x;)if(g.y<x.y||g.y===x.y&&g.x<=x.x){if(!x.L){v=x.P;break}x=x.L}else{if(!x.R){v=x;break}x=x.R}zt.insert(v,g),v||(Rt=g)}}}}function Xt(e){var t=e.circle;t&&(t.P||(Rt=t.N),zt.remove(t),Nt.push(t),rr(t),e.circle=null)}function Jt(e,t){var r=e.b;if(r)return!0;var n,a,i=e.a,o=t[0][0],l=t[1][0],s=t[0][1],c=t[1][1],u=e.l,f=e.r,d=u.x,p=u.y,h=f.x,m=f.y,y=(d+h)/2,g=(p+m)/2;if(m===p){if(y<o||y>=l)return;if(d>h){if(i){if(i.y>=c)return}else i={x:y,y:s};r={x:y,y:c}}else{if(i){if(i.y<s)return}else i={x:y,y:c};r={x:y,y:s}}}else if(a=g-(n=(d-h)/(m-p))*y,n<-1||n>1)if(d>h){if(i){if(i.y>=c)return}else i={x:(s-a)/n,y:s};r={x:(c-a)/n,y:c}}else{if(i){if(i.y<s)return}else i={x:(c-a)/n,y:c};r={x:(s-a)/n,y:s}}else if(p<m){if(i){if(i.x>=l)return}else i={x:o,y:n*o+a};r={x:l,y:n*l+a}}else{if(i){if(i.x<o)return}else i={x:l,y:n*l+a};r={x:o,y:n*o+a}}return e.a=i,e.b=r,!0}function Kt(e,t){this.l=e,this.r=t,this.a=this.b=null}function Qt(e,t,r,n){var a=new Kt(e,t);return Ct.push(a),r&&$t(a,e,t,r),n&&$t(a,t,e,n),Et[e.i].edges.push(new er(a,e,t)),Et[t.i].edges.push(new er(a,t,e)),a}function $t(e,t,r,n){e.a||e.b?e.l===r?e.b=n:e.a=n:(e.a=n,e.l=t,e.r=r)}function er(e,t,r){var n=e.a,a=e.b;this.edge=e,this.site=t,this.angle=r?Math.atan2(r.y-t.y,r.x-t.x):e.l===t?Math.atan2(a.x-n.x,n.y-a.y):Math.atan2(n.x-a.x,a.y-n.y)}function tr(){this._=null}function rr(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function nr(e,t){var r=t,n=t.R,a=r.U;a?a.L===r?a.L=n:a.R=n:e._=n,n.U=a,r.U=n,r.R=n.L,r.R&&(r.R.U=r),n.L=r}function ar(e,t){var r=t,n=t.L,a=r.U;a?a.L===r?a.L=n:a.R=n:e._=n,n.U=a,r.U=n,r.L=n.R,r.L&&(r.L.U=r),n.R=r}function ir(e){for(;e.L;)e=e.L;return e}function or(e,t){var r,n,a,i=e.sort(lr).pop();for(Ct=[],Et=new Array(e.length),Pt=new tr,zt=new tr;;)if(a=Rt,i&&(!a||i.y<a.y||i.y===a.y&&i.x<a.x))i.x===r&&i.y===n||(Et[i.i]=new Vt(i),Ut(i),r=i.x,n=i.y),i=e.pop();else{if(!a)break;Ht(a.arc)}t&&(function(e){for(var t,r=Ct,n=function(e,t,r,n){return function(a){var i,o=a.a,l=a.b,s=o.x,c=o.y,u=0,f=1,d=l.x-s,p=l.y-c;if(i=e-s,d||!(i>0)){if(i/=d,d<0){if(i<u)return;i<f&&(f=i)}else if(d>0){if(i>f)return;i>u&&(u=i)}if(i=r-s,d||!(i<0)){if(i/=d,d<0){if(i>f)return;i>u&&(u=i)}else if(d>0){if(i<u)return;i<f&&(f=i)}if(i=t-c,p||!(i>0)){if(i/=p,p<0){if(i<u)return;i<f&&(f=i)}else if(p>0){if(i>f)return;i>u&&(u=i)}if(i=n-c,p||!(i<0)){if(i/=p,p<0){if(i>f)return;i>u&&(u=i)}else if(p>0){if(i<u)return;i<f&&(f=i)}return u>0&&(a.a={x:s+u*d,y:c+u*p}),f<1&&(a.b={x:s+f*d,y:c+f*p}),a}}}}}}(e[0][0],e[0][1],e[1][0],e[1][1]),a=r.length;a--;)(!Jt(t=r[a],e)||!n(t)||v(t.a.x-t.b.x)<Me&&v(t.a.y-t.b.y)<Me)&&(t.a=t.b=null,r.splice(a,1))}(t),function(e){for(var t,r,n,a,i,o,l,s,c,u,f=e[0][0],d=e[1][0],p=e[0][1],h=e[1][1],m=Et,y=m.length;y--;)if((i=m[y])&&i.prepare())for(s=(l=i.edges).length,o=0;o<s;)n=(u=l[o].end()).x,a=u.y,t=(c=l[++o%s].start()).x,r=c.y,(v(n-t)>Me||v(a-r)>Me)&&(l.splice(o,0,new er((g=i.site,x=u,b=v(n-f)<Me&&h-a>Me?{x:f,y:v(t-f)<Me?r:h}:v(a-h)<Me&&d-n>Me?{x:v(r-h)<Me?t:d,y:h}:v(n-d)<Me&&a-p>Me?{x:d,y:v(t-d)<Me?r:p}:v(a-p)<Me&&n-f>Me?{x:v(r-p)<Me?t:f,y:p}:null,_=void 0,(_=new Kt(g,null)).a=x,_.b=b,Ct.push(_),_),i.site,null)),++s);var g,x,b,_}(t));var o={cells:Et,edges:Ct};return Pt=zt=Ct=Et=null,o}function lr(e,t){return t.y-e.y||t.x-e.x}Vt.prototype.prepare=function(){for(var e,t=this.edges,r=t.length;r--;)(e=t[r].edge).b&&e.a||t.splice(r,1);return t.sort(Gt),t.length},er.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},tr.prototype={insert:function(e,t){var r,n,a;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;r=e}else this._?(e=ir(this._),t.P=null,t.N=e,e.P=e.L=t,r=e):(t.P=t.N=null,this._=t,r=null);for(t.L=t.R=null,t.U=r,t.C=!0,e=t;r&&r.C;)r===(n=r.U).L?(a=n.R)&&a.C?(r.C=a.C=!1,n.C=!0,e=n):(e===r.R&&(nr(this,r),r=(e=r).U),r.C=!1,n.C=!0,ar(this,n)):(a=n.L)&&a.C?(r.C=a.C=!1,n.C=!0,e=n):(e===r.L&&(ar(this,r),r=(e=r).U),r.C=!1,n.C=!0,nr(this,n)),r=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,r,n,a=e.U,i=e.L,o=e.R;if(r=i?o?ir(o):i:o,a?a.L===e?a.L=r:a.R=r:this._=r,i&&o?(n=r.C,r.C=e.C,r.L=i,i.U=r,r!==o?(a=r.U,r.U=e.U,e=r.R,a.L=e,r.R=o,o.U=r):(r.U=a,a=r,e=r.R)):(n=e.C,e=r),e&&(e.U=a),!n)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===a.L){if((t=a.R).C&&(t.C=!1,a.C=!0,nr(this,a),t=a.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,ar(this,t),t=a.R),t.C=a.C,a.C=t.R.C=!1,nr(this,a),e=this._;break}}else if((t=a.L).C&&(t.C=!1,a.C=!0,ar(this,a),t=a.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,nr(this,t),t=a.L),t.C=a.C,a.C=t.L.C=!1,ar(this,a),e=this._;break}t.C=!0,e=a,a=a.U}while(!e.C);e&&(e.C=!1)}}},e.geom.voronoi=function(e){var t=Tt,r=Mt,n=t,a=r,i=sr;if(e)return o(e);function o(e){var t=new Array(e.length),r=i[0][0],n=i[0][1],a=i[1][0],o=i[1][1];return or(l(e),i).cells.forEach((function(i,l){var s=i.edges,c=i.site;(t[l]=s.length?s.map((function(e){var t=e.start();return[t.x,t.y]})):c.x>=r&&c.x<=a&&c.y>=n&&c.y<=o?[[r,o],[a,o],[a,n],[r,n]]:[]).point=e[l]})),t}function l(e){return e.map((function(e,t){return{x:Math.round(n(e,t)/Me)*Me,y:Math.round(a(e,t)/Me)*Me,i:t}}))}return o.links=function(e){return or(l(e)).edges.filter((function(e){return e.l&&e.r})).map((function(t){return{source:e[t.l.i],target:e[t.r.i]}}))},o.triangles=function(e){var t=[];return or(l(e)).cells.forEach((function(r,n){for(var a,i=r.site,o=r.edges.sort(Gt),l=-1,s=o.length,c=o[s-1].edge,u=c.l===i?c.r:c.l;++l<s;)a=u,u=(c=o[l].edge).l===i?c.r:c.l,n<a.i&&n<u.i&&(d=a,p=u,((f=i).x-p.x)*(d.y-f.y)-(f.x-d.x)*(p.y-f.y)<0)&&t.push([e[n],e[a.i],e[u.i]]);var f,d,p})),t},o.x=function(e){return arguments.length?(n=ft(t=e),o):t},o.y=function(e){return arguments.length?(a=ft(r=e),o):r},o.clipExtent=function(e){return arguments.length?(i=null==e?sr:e,o):i===sr?null:i},o.size=function(e){return arguments.length?o.clipExtent(e&&[[0,0],e]):i===sr?null:i&&i[1]},o};var sr=[[-1e6,-1e6],[1e6,1e6]];function cr(e){return e.x}function ur(e){return e.y}function fr(e,t,r,n,a,i){if(!e(t,r,n,a,i)){var o=.5*(r+a),l=.5*(n+i),s=t.nodes;s[0]&&fr(e,s[0],r,n,o,l),s[1]&&fr(e,s[1],o,n,a,l),s[2]&&fr(e,s[2],r,l,o,i),s[3]&&fr(e,s[3],o,l,a,i)}}function dr(e,t,r,n,a,i,o){var l,s=1/0;return function e(c,u,f,d,p){if(!(u>i||f>o||d<n||p<a)){if(h=c.point){var h,m=t-c.x,y=r-c.y,g=m*m+y*y;if(g<s){var v=Math.sqrt(s=g);n=t-v,a=r-v,i=t+v,o=r+v,l=h}}for(var x=c.nodes,b=.5*(u+d),_=.5*(f+p),w=(r>=_)<<1|t>=b,T=w+4;w<T;++w)if(c=x[3&w])switch(3&w){case 0:e(c,u,f,b,_);break;case 1:e(c,b,f,d,_);break;case 2:e(c,u,_,b,p);break;case 3:e(c,b,_,d,p)}}}(e,n,a,i,o),l}function pr(t,r){t=e.rgb(t),r=e.rgb(r);var n=t.r,a=t.g,i=t.b,o=r.r-n,l=r.g-a,s=r.b-i;return function(e){return"#"+at(Math.round(n+o*e))+at(Math.round(a+l*e))+at(Math.round(i+s*e))}}function hr(e,t){var r,n={},a={};for(r in e)r in t?n[r]=xr(e[r],t[r]):a[r]=e[r];for(r in t)r in e||(a[r]=t[r]);return function(e){for(r in n)a[r]=n[r](e);return a}}function mr(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function yr(e,t){var r,n,a,i=gr.lastIndex=vr.lastIndex=0,o=-1,l=[],s=[];for(e+="",t+="";(r=gr.exec(e))&&(n=vr.exec(t));)(a=n.index)>i&&(a=t.slice(i,a),l[o]?l[o]+=a:l[++o]=a),(r=r[0])===(n=n[0])?l[o]?l[o]+=n:l[++o]=n:(l[++o]=null,s.push({i:o,x:mr(r,n)})),i=vr.lastIndex;return i<t.length&&(a=t.slice(i),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?(t=s[0].x,function(e){return t(e)+""}):function(){return t}:(t=s.length,function(e){for(var r,n=0;n<t;++n)l[(r=s[n]).i]=r.x(e);return l.join("")})}e.geom.delaunay=function(t){return e.geom.voronoi().triangles(t)},e.geom.quadtree=function(e,t,r,n,a){var i,o=Tt,l=Mt;if(i=arguments.length)return o=cr,l=ur,3===i&&(a=r,n=t,r=t=0),s(e);function s(e){var s,c,u,f,d,p,h,m,y,g=ft(o),x=ft(l);if(null!=t)p=t,h=r,m=n,y=a;else if(m=y=-(p=h=1/0),c=[],u=[],d=e.length,i)for(f=0;f<d;++f)(s=e[f]).x<p&&(p=s.x),s.y<h&&(h=s.y),s.x>m&&(m=s.x),s.y>y&&(y=s.y),c.push(s.x),u.push(s.y);else for(f=0;f<d;++f){var b=+g(s=e[f],f),_=+x(s,f);b<p&&(p=b),_<h&&(h=_),b>m&&(m=b),_>y&&(y=_),c.push(b),u.push(_)}var w=m-p,T=y-h;function M(e,t,r,n,a,i,o,l){if(!isNaN(r)&&!isNaN(n))if(e.leaf){var s=e.x,c=e.y;if(null!=s)if(v(s-r)+v(c-n)<.01)k(e,t,r,n,a,i,o,l);else{var u=e.point;e.x=e.y=e.point=null,k(e,u,s,c,a,i,o,l),k(e,t,r,n,a,i,o,l)}else e.x=r,e.y=n,e.point=t}else k(e,t,r,n,a,i,o,l)}function k(e,t,r,n,a,i,o,l){var s=.5*(a+o),c=.5*(i+l),u=r>=s,f=n>=c,d=f<<1|u;e.leaf=!1,u?a=s:o=s,f?i=c:l=c,M(e=e.nodes[d]||(e.nodes[d]={leaf:!0,nodes:[],point:null,x:null,y:null}),t,r,n,a,i,o,l)}w>T?y=h+w:m=p+T;var A={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){M(A,e,+g(e,++f),+x(e,f),p,h,m,y)},visit:function(e){fr(e,A,p,h,m,y)},find:function(e){return dr(A,e[0],e[1],p,h,m,y)}};if(f=-1,null==t){for(;++f<d;)M(A,e[f],c[f],u[f],p,h,m,y);--f}else e.forEach(A.add);return c=u=e=s=null,A}return s.x=function(e){return arguments.length?(o=e,s):o},s.y=function(e){return arguments.length?(l=e,s):l},s.extent=function(e){return arguments.length?(null==e?t=r=n=a=null:(t=+e[0][0],r=+e[0][1],n=+e[1][0],a=+e[1][1]),s):null==t?null:[[t,r],[n,a]]},s.size=function(e){return arguments.length?(null==e?t=r=n=a=null:(t=r=0,n=+e[0],a=+e[1]),s):null==t?null:[n-t,a-r]},s},e.interpolateRgb=pr,e.interpolateObject=hr,e.interpolateNumber=mr,e.interpolateString=yr;var gr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vr=new RegExp(gr.source,"g");function xr(t,r){for(var n,a=e.interpolators.length;--a>=0&&!(n=e.interpolators[a](t,r)););return n}function br(e,t){var r,n=[],a=[],i=e.length,o=t.length,l=Math.min(e.length,t.length);for(r=0;r<l;++r)n.push(xr(e[r],t[r]));for(;r<i;++r)a[r]=e[r];for(;r<o;++r)a[r]=t[r];return function(e){for(r=0;r<l;++r)a[r]=n[r](e);return a}}e.interpolate=xr,e.interpolators=[function(e,t){var r=typeof t;return("string"===r?ut.has(t.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(t)?pr:yr:t instanceof Ne?pr:Array.isArray(t)?br:"object"===r&&isNaN(t)?hr:mr)(e,t)}],e.interpolateArray=br;var _r=function(){return D},wr=e.map({linear:_r,poly:function(e){return function(t){return Math.pow(t,e)}},quad:function(){return Lr},cubic:function(){return Sr},sin:function(){return Dr},exp:function(){return Cr},circle:function(){return Er},elastic:function(e,t){var r;return arguments.length<2&&(t=.45),arguments.length?r=t/Ae*Math.asin(1/e):(e=1,r=t/4),function(n){return 1+e*Math.pow(2,-10*n)*Math.sin((n-r)*Ae/t)}},back:function(e){return e||(e=1.70158),function(t){return t*t*((e+1)*t-e)}},bounce:function(){return Pr}}),Tr=e.map({in:D,out:kr,"in-out":Ar,"out-in":function(e){return Ar(kr(e))}});function Mr(e){return function(t){return t<=0?0:t>=1?1:e(t)}}function kr(e){return function(t){return 1-e(1-t)}}function Ar(e){return function(t){return.5*(t<.5?e(2*t):2-e(2-2*t))}}function Lr(e){return e*e}function Sr(e){return e*e*e}function Or(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,r=t*e;return 4*(e<.5?r:3*(e-t)+r-.75)}function Dr(e){return 1-Math.cos(e*Se)}function Cr(e){return Math.pow(2,10*(e-1))}function Er(e){return 1-Math.sqrt(1-e*e)}function Pr(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function Rr(e,t){return t-=e,function(r){return Math.round(e+t*r)}}function zr(e){var t,r,n,a=[e.a,e.b],i=[e.c,e.d],o=Nr(a),l=Ir(a,i),s=Nr(((t=i)[0]+=(n=-l)*(r=a)[0],t[1]+=n*r[1],t))||0;a[0]*i[1]<i[0]*a[1]&&(a[0]*=-1,a[1]*=-1,o*=-1,l*=-1),this.rotate=(o?Math.atan2(a[1],a[0]):Math.atan2(-i[0],i[1]))*De,this.translate=[e.e,e.f],this.scale=[o,s],this.skew=s?Math.atan2(l,s)*De:0}function Ir(e,t){return e[0]*t[0]+e[1]*t[1]}function Nr(e){var t=Math.sqrt(Ir(e,e));return t&&(e[0]/=t,e[1]/=t),t}e.ease=function(e){var t=e.indexOf("-"),n=t>=0?e.slice(0,t):e,a=t>=0?e.slice(t+1):"in";return n=wr.get(n)||_r,Mr((a=Tr.get(a)||D)(n.apply(null,r.call(arguments,1))))},e.interpolateHcl=function(t,r){t=e.hcl(t),r=e.hcl(r);var n=t.h,a=t.c,i=t.l,o=r.h-n,l=r.c-a,s=r.l-i;return isNaN(l)&&(l=0,a=isNaN(a)?r.c:a),isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o>180?o-=360:o<-180&&(o+=360),function(e){return Ye(n+o*e,a+l*e,i+s*e)+""}},e.interpolateHsl=function(t,r){t=e.hsl(t),r=e.hsl(r);var n=t.h,a=t.s,i=t.l,o=r.h-n,l=r.s-a,s=r.l-i;return isNaN(l)&&(l=0,a=isNaN(a)?r.s:a),isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o>180?o-=360:o<-180&&(o+=360),function(e){return Be(n+o*e,a+l*e,i+s*e)+""}},e.interpolateLab=function(t,r){t=e.lab(t),r=e.lab(r);var n=t.l,a=t.a,i=t.b,o=r.l-n,l=r.a-a,s=r.b-i;return function(e){return Xe(n+o*e,a+l*e,i+s*e)+""}},e.interpolateRound=Rr,e.transform=function(t){var r=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(e){if(null!=e){r.setAttribute("transform",e);var t=r.transform.baseVal.consolidate()}return new zr(t?t.matrix:Fr)})(t)},zr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var Fr={a:1,b:0,c:0,d:1,e:0,f:0};function jr(e){return e.length?e.pop()+",":""}function Br(t,r){var n=[],a=[];return t=e.transform(t),r=e.transform(r),function(e,t,r,n){if(e[0]!==t[0]||e[1]!==t[1]){var a=r.push("translate(",null,",",null,")");n.push({i:a-4,x:mr(e[0],t[0])},{i:a-2,x:mr(e[1],t[1])})}else(t[0]||t[1])&&r.push("translate("+t+")")}(t.translate,r.translate,n,a),function(e,t,r,n){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),n.push({i:r.push(jr(r)+"rotate(",null,")")-2,x:mr(e,t)})):t&&r.push(jr(r)+"rotate("+t+")")}(t.rotate,r.rotate,n,a),function(e,t,r,n){e!==t?n.push({i:r.push(jr(r)+"skewX(",null,")")-2,x:mr(e,t)}):t&&r.push(jr(r)+"skewX("+t+")")}(t.skew,r.skew,n,a),function(e,t,r,n){if(e[0]!==t[0]||e[1]!==t[1]){var a=r.push(jr(r)+"scale(",null,",",null,")");n.push({i:a-4,x:mr(e[0],t[0])},{i:a-2,x:mr(e[1],t[1])})}else 1===t[0]&&1===t[1]||r.push(jr(r)+"scale("+t+")")}(t.scale,r.scale,n,a),t=r=null,function(e){for(var t,r=-1,i=a.length;++r<i;)n[(t=a[r]).i]=t.x(e);return n.join("")}}function Hr(e,t){return t=(t-=e=+e)||1/t,function(r){return(r-e)/t}}function Ur(e,t){return t=(t-=e=+e)||1/t,function(r){return Math.max(0,Math.min(1,(r-e)/t))}}function Yr(e){for(var t=e.source,r=e.target,n=function(e,t){if(e===t)return e;for(var r=qr(e),n=qr(t),a=r.pop(),i=n.pop(),o=null;a===i;)o=a,a=r.pop(),i=n.pop();return o}(t,r),a=[t];t!==n;)t=t.parent,a.push(t);for(var i=a.length;r!==n;)a.splice(i,0,r),r=r.parent;return a}function qr(e){for(var t=[],r=e.parent;null!=r;)t.push(e),e=r,r=r.parent;return t.push(e),t}function Vr(e){e.fixed|=2}function Gr(e){e.fixed&=-7}function Zr(e){e.fixed|=4,e.px=e.x,e.py=e.y}function Wr(e){e.fixed&=-5}function Xr(e,t,r){var n=0,a=0;if(e.charge=0,!e.leaf)for(var i,o=e.nodes,l=o.length,s=-1;++s<l;)null!=(i=o[s])&&(Xr(i,t,r),e.charge+=i.charge,n+=i.charge*i.cx,a+=i.charge*i.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var c=t*r[e.point.index];e.charge+=e.pointCharge=c,n+=c*e.point.x,a+=c*e.point.y}e.cx=n/e.charge,e.cy=a/e.charge}e.interpolateTransform=Br,e.layout={},e.layout.bundle=function(){return function(e){for(var t=[],r=-1,n=e.length;++r<n;)t.push(Yr(e[r]));return t}},e.layout.chord=function(){var t,r,n,a,i,o,l,s={},c=0;function u(){var s,u,d,p,h,m={},y=[],g=e.range(a),v=[];for(t=[],r=[],s=0,p=-1;++p<a;){for(u=0,h=-1;++h<a;)u+=n[p][h];y.push(u),v.push(e.range(a)),s+=u}for(i&&g.sort((function(e,t){return i(y[e],y[t])})),o&&v.forEach((function(e,t){e.sort((function(e,r){return o(n[t][e],n[t][r])}))})),s=(Ae-c*a)/s,u=0,p=-1;++p<a;){for(d=u,h=-1;++h<a;){var x=g[p],b=v[x][h],_=n[x][b],w=u,T=u+=_*s;m[x+"-"+b]={index:x,subindex:b,startAngle:w,endAngle:T,value:_}}r[x]={index:x,startAngle:d,endAngle:u,value:y[x]},u+=c}for(p=-1;++p<a;)for(h=p-1;++h<a;){var M=m[p+"-"+h],k=m[h+"-"+p];(M.value||k.value)&&t.push(M.value<k.value?{source:k,target:M}:{source:M,target:k})}l&&f()}function f(){t.sort((function(e,t){return l((e.source.value+e.target.value)/2,(t.source.value+t.target.value)/2)}))}return s.matrix=function(e){return arguments.length?(a=(n=e)&&n.length,t=r=null,s):n},s.padding=function(e){return arguments.length?(c=e,t=r=null,s):c},s.sortGroups=function(e){return arguments.length?(i=e,t=r=null,s):i},s.sortSubgroups=function(e){return arguments.length?(o=e,t=null,s):o},s.sortChords=function(e){return arguments.length?(l=e,t&&f(),s):l},s.chords=function(){return t||u(),t},s.groups=function(){return r||u(),r},s},e.layout.force=function(){var t,r,n,a,i,o,l={},s=e.dispatch("start","tick","end"),c=[1,1],u=.9,f=Jr,d=Kr,p=-30,h=Qr,m=.1,y=.64,g=[],v=[];function x(e){return function(t,r,n,a){if(t.point!==e){var i=t.cx-e.x,o=t.cy-e.y,l=a-r,s=i*i+o*o;if(l*l/y<s){if(s<h){var c=t.charge/s;e.px-=i*c,e.py-=o*c}return!0}t.point&&s&&s<h&&(c=t.pointCharge/s,e.px-=i*c,e.py-=o*c)}return!t.charge}}function b(t){t.px=e.event.x,t.py=e.event.y,l.resume()}return l.tick=function(){if((n*=.99)<.005)return t=null,s.end({type:"end",alpha:n=0}),!0;var r,l,f,d,h,y,b,_,w,T=g.length,M=v.length;for(l=0;l<M;++l)d=(f=v[l]).source,(y=(_=(h=f.target).x-d.x)*_+(w=h.y-d.y)*w)&&(_*=y=n*i[l]*((y=Math.sqrt(y))-a[l])/y,w*=y,h.x-=_*(b=d.weight+h.weight?d.weight/(d.weight+h.weight):.5),h.y-=w*b,d.x+=_*(b=1-b),d.y+=w*b);if((b=n*m)&&(_=c[0]/2,w=c[1]/2,l=-1,b))for(;++l<T;)(f=g[l]).x+=(_-f.x)*b,f.y+=(w-f.y)*b;if(p)for(Xr(r=e.geom.quadtree(g),n,o),l=-1;++l<T;)(f=g[l]).fixed||r.visit(x(f));for(l=-1;++l<T;)(f=g[l]).fixed?(f.x=f.px,f.y=f.py):(f.x-=(f.px-(f.px=f.x))*u,f.y-=(f.py-(f.py=f.y))*u);s.tick({type:"tick",alpha:n})},l.nodes=function(e){return arguments.length?(g=e,l):g},l.links=function(e){return arguments.length?(v=e,l):v},l.size=function(e){return arguments.length?(c=e,l):c},l.linkDistance=function(e){return arguments.length?(f="function"==typeof e?e:+e,l):f},l.distance=l.linkDistance,l.linkStrength=function(e){return arguments.length?(d="function"==typeof e?e:+e,l):d},l.friction=function(e){return arguments.length?(u=+e,l):u},l.charge=function(e){return arguments.length?(p="function"==typeof e?e:+e,l):p},l.chargeDistance=function(e){return arguments.length?(h=e*e,l):Math.sqrt(h)},l.gravity=function(e){return arguments.length?(m=+e,l):m},l.theta=function(e){return arguments.length?(y=e*e,l):Math.sqrt(y)},l.alpha=function(e){return arguments.length?(e=+e,n?e>0?n=e:(t.c=null,t.t=NaN,t=null,s.end({type:"end",alpha:n=0})):e>0&&(s.start({type:"start",alpha:n=e}),t=xt(l.tick)),l):n},l.start=function(){var e,t,r,n=g.length,s=v.length,u=c[0],h=c[1];for(e=0;e<n;++e)(r=g[e]).index=e,r.weight=0;for(e=0;e<s;++e)"number"==typeof(r=v[e]).source&&(r.source=g[r.source]),"number"==typeof r.target&&(r.target=g[r.target]),++r.source.weight,++r.target.weight;for(e=0;e<n;++e)r=g[e],isNaN(r.x)&&(r.x=m("x",u)),isNaN(r.y)&&(r.y=m("y",h)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(a=[],"function"==typeof f)for(e=0;e<s;++e)a[e]=+f.call(this,v[e],e);else for(e=0;e<s;++e)a[e]=f;if(i=[],"function"==typeof d)for(e=0;e<s;++e)i[e]=+d.call(this,v[e],e);else for(e=0;e<s;++e)i[e]=d;if(o=[],"function"==typeof p)for(e=0;e<n;++e)o[e]=+p.call(this,g[e],e);else for(e=0;e<n;++e)o[e]=p;function m(r,a){if(!t){for(t=new Array(n),c=0;c<n;++c)t[c]=[];for(c=0;c<s;++c){var i=v[c];t[i.source.index].push(i.target),t[i.target.index].push(i.source)}}for(var o,l=t[e],c=-1,u=l.length;++c<u;)if(!isNaN(o=l[c][r]))return o;return Math.random()*a}return l.resume()},l.resume=function(){return l.alpha(.1)},l.stop=function(){return l.alpha(0)},l.drag=function(){if(r||(r=e.behavior.drag().origin(D).on("dragstart.force",Vr).on("drag.force",b).on("dragend.force",Gr)),!arguments.length)return r;this.on("mouseover.force",Zr).on("mouseout.force",Wr).call(r)},e.rebind(l,s,"on")};var Jr=20,Kr=1,Qr=1/0;function $r(t,r){return e.rebind(t,r,"sort","children","value"),t.nodes=t,t.links=on,t}function en(e,t){for(var r=[e];null!=(e=r.pop());)if(t(e),(a=e.children)&&(n=a.length))for(var n,a;--n>=0;)r.push(a[n])}function tn(e,t){for(var r=[e],n=[];null!=(e=r.pop());)if(n.push(e),(i=e.children)&&(a=i.length))for(var a,i,o=-1;++o<a;)r.push(i[o]);for(;null!=(e=n.pop());)t(e)}function rn(e){return e.children}function nn(e){return e.value}function an(e,t){return t.value-e.value}function on(t){return e.merge(t.map((function(e){return(e.children||[]).map((function(t){return{source:e,target:t}}))})))}e.layout.hierarchy=function(){var e=an,t=rn,r=nn;function n(a){var i,o=[a],l=[];for(a.depth=0;null!=(i=o.pop());)if(l.push(i),(c=t.call(n,i,i.depth))&&(s=c.length)){for(var s,c,u;--s>=0;)o.push(u=c[s]),u.parent=i,u.depth=i.depth+1;r&&(i.value=0),i.children=c}else r&&(i.value=+r.call(n,i,i.depth)||0),delete i.children;return tn(a,(function(t){var n,a;e&&(n=t.children)&&n.sort(e),r&&(a=t.parent)&&(a.value+=t.value)})),l}return n.sort=function(t){return arguments.length?(e=t,n):e},n.children=function(e){return arguments.length?(t=e,n):t},n.value=function(e){return arguments.length?(r=e,n):r},n.revalue=function(e){return r&&(en(e,(function(e){e.children&&(e.value=0)})),tn(e,(function(e){var t;e.children||(e.value=+r.call(n,e,e.depth)||0),(t=e.parent)&&(t.value+=e.value)}))),e},n},e.layout.partition=function(){var t=e.layout.hierarchy(),r=[1,1];function n(e,t,r,a){var i=e.children;if(e.x=t,e.y=e.depth*a,e.dx=r,e.dy=a,i&&(o=i.length)){var o,l,s,c=-1;for(r=e.value?r/e.value:0;++c<o;)n(l=i[c],t,s=l.value*r,a),t+=s}}function a(e){var t=e.children,r=0;if(t&&(n=t.length))for(var n,i=-1;++i<n;)r=Math.max(r,a(t[i]));return 1+r}function i(e,i){var o=t.call(this,e,i);return n(o[0],0,r[0],r[1]/a(o[0])),o}return i.size=function(e){return arguments.length?(r=e,i):r},$r(i,t)},e.layout.pie=function(){var t=Number,r=ln,n=0,a=Ae,i=0;function o(l){var s,c=l.length,u=l.map((function(e,r){return+t.call(o,e,r)})),f=+("function"==typeof n?n.apply(this,arguments):n),d=("function"==typeof a?a.apply(this,arguments):a)-f,p=Math.min(Math.abs(d)/c,+("function"==typeof i?i.apply(this,arguments):i)),h=p*(d<0?-1:1),m=e.sum(u),y=m?(d-c*h)/m:0,g=e.range(c),v=[];return null!=r&&g.sort(r===ln?function(e,t){return u[t]-u[e]}:function(e,t){return r(l[e],l[t])}),g.forEach((function(e){v[e]={data:l[e],value:s=u[e],startAngle:f,endAngle:f+=s*y+h,padAngle:p}})),v}return o.value=function(e){return arguments.length?(t=e,o):t},o.sort=function(e){return arguments.length?(r=e,o):r},o.startAngle=function(e){return arguments.length?(n=e,o):n},o.endAngle=function(e){return arguments.length?(a=e,o):a},o.padAngle=function(e){return arguments.length?(i=e,o):i},o};var ln={};function sn(e){return e.x}function cn(e){return e.y}function un(e,t,r){e.y0=t,e.y=r}e.layout.stack=function(){var t=D,r=pn,n=hn,a=un,i=sn,o=cn;function l(s,c){if(!(p=s.length))return s;var u=s.map((function(e,r){return t.call(l,e,r)})),f=u.map((function(e){return e.map((function(e,t){return[i.call(l,e,t),o.call(l,e,t)]}))})),d=r.call(l,f,c);u=e.permute(u,d),f=e.permute(f,d);var p,h,m,y,g=n.call(l,f,c),v=u[0].length;for(m=0;m<v;++m)for(a.call(l,u[0][m],y=g[m],f[0][m][1]),h=1;h<p;++h)a.call(l,u[h][m],y+=f[h-1][m][1],f[h][m][1]);return s}return l.values=function(e){return arguments.length?(t=e,l):t},l.order=function(e){return arguments.length?(r="function"==typeof e?e:fn.get(e)||pn,l):r},l.offset=function(e){return arguments.length?(n="function"==typeof e?e:dn.get(e)||hn,l):n},l.x=function(e){return arguments.length?(i=e,l):i},l.y=function(e){return arguments.length?(o=e,l):o},l.out=function(e){return arguments.length?(a=e,l):a},l};var fn=e.map({"inside-out":function(t){var r,n,a=t.length,i=t.map(mn),o=t.map(yn),l=e.range(a).sort((function(e,t){return i[e]-i[t]})),s=0,c=0,u=[],f=[];for(r=0;r<a;++r)n=l[r],s<c?(s+=o[n],u.push(n)):(c+=o[n],f.push(n));return f.reverse().concat(u)},reverse:function(t){return e.range(t.length).reverse()},default:pn}),dn=e.map({silhouette:function(e){var t,r,n,a=e.length,i=e[0].length,o=[],l=0,s=[];for(r=0;r<i;++r){for(t=0,n=0;t<a;t++)n+=e[t][r][1];n>l&&(l=n),o.push(n)}for(r=0;r<i;++r)s[r]=(l-o[r])/2;return s},wiggle:function(e){var t,r,n,a,i,o,l,s,c,u=e.length,f=e[0],d=f.length,p=[];for(p[0]=s=c=0,r=1;r<d;++r){for(t=0,a=0;t<u;++t)a+=e[t][r][1];for(t=0,i=0,l=f[r][0]-f[r-1][0];t<u;++t){for(n=0,o=(e[t][r][1]-e[t][r-1][1])/(2*l);n<t;++n)o+=(e[n][r][1]-e[n][r-1][1])/l;i+=o*e[t][r][1]}p[r]=s-=a?i/a*l:0,s<c&&(c=s)}for(r=0;r<d;++r)p[r]-=c;return p},expand:function(e){var t,r,n,a=e.length,i=e[0].length,o=1/a,l=[];for(r=0;r<i;++r){for(t=0,n=0;t<a;t++)n+=e[t][r][1];if(n)for(t=0;t<a;t++)e[t][r][1]/=n;else for(t=0;t<a;t++)e[t][r][1]=o}for(r=0;r<i;++r)l[r]=0;return l},zero:hn});function pn(t){return e.range(t.length)}function hn(e){for(var t=-1,r=e[0].length,n=[];++t<r;)n[t]=0;return n}function mn(e){for(var t,r=1,n=0,a=e[0][1],i=e.length;r<i;++r)(t=e[r][1])>a&&(n=r,a=t);return n}function yn(e){return e.reduce(gn,0)}function gn(e,t){return e+t[1]}function vn(e,t){return xn(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function xn(e,t){for(var r=-1,n=+e[0],a=(e[1]-n)/t,i=[];++r<=t;)i[r]=a*r+n;return i}function bn(t){return[e.min(t),e.max(t)]}function _n(e,t){return e.value-t.value}function wn(e,t){var r=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=r,r._pack_prev=t}function Tn(e,t){e._pack_next=t,t._pack_prev=e}function Mn(e,t){var r=t.x-e.x,n=t.y-e.y,a=e.r+t.r;return.999*a*a>r*r+n*n}function kn(e){if((t=e.children)&&(s=t.length)){var t,r,n,a,i,o,l,s,c=1/0,u=-1/0,f=1/0,d=-1/0;if(t.forEach(An),(r=t[0]).x=-r.r,r.y=0,x(r),s>1&&((n=t[1]).x=n.r,n.y=0,x(n),s>2))for(On(r,n,a=t[2]),x(a),wn(r,a),r._pack_prev=a,wn(a,n),n=r._pack_next,i=3;i<s;i++){On(r,n,a=t[i]);var p=0,h=1,m=1;for(o=n._pack_next;o!==n;o=o._pack_next,h++)if(Mn(o,a)){p=1;break}if(1==p)for(l=r._pack_prev;l!==o._pack_prev&&!Mn(l,a);l=l._pack_prev,m++);p?(h<m||h==m&&n.r<r.r?Tn(r,n=o):Tn(r=l,n),i--):(wn(r,a),n=a,x(a))}var y=(c+u)/2,g=(f+d)/2,v=0;for(i=0;i<s;i++)(a=t[i]).x-=y,a.y-=g,v=Math.max(v,a.r+Math.sqrt(a.x*a.x+a.y*a.y));e.r=v,t.forEach(Ln)}function x(e){c=Math.min(e.x-e.r,c),u=Math.max(e.x+e.r,u),f=Math.min(e.y-e.r,f),d=Math.max(e.y+e.r,d)}}function An(e){e._pack_next=e._pack_prev=e}function Ln(e){delete e._pack_next,delete e._pack_prev}function Sn(e,t,r,n){var a=e.children;if(e.x=t+=n*e.x,e.y=r+=n*e.y,e.r*=n,a)for(var i=-1,o=a.length;++i<o;)Sn(a[i],t,r,n)}function On(e,t,r){var n=e.r+r.r,a=t.x-e.x,i=t.y-e.y;if(n&&(a||i)){var o=t.r+r.r,l=a*a+i*i,s=.5+((n*=n)-(o*=o))/(2*l),c=Math.sqrt(Math.max(0,2*o*(n+l)-(n-=l)*n-o*o))/(2*l);r.x=e.x+s*a+c*i,r.y=e.y+s*i-c*a}else r.x=e.x+n,r.y=e.y}function Dn(e,t){return e.parent==t.parent?1:2}function Cn(e){var t=e.children;return t.length?t[0]:e.t}function En(e){var t,r=e.children;return(t=r.length)?r[t-1]:e.t}function Pn(e,t,r){var n=r/(t.i-e.i);t.c-=n,t.s+=r,e.c+=n,t.z+=r,t.m+=r}function Rn(e,t,r){return e.a.parent===t.parent?e.a:r}function zn(e){var t=e.children;return t&&t.length?zn(t[0]):e}function In(e){var t,r=e.children;return r&&(t=r.length)?In(r[t-1]):e}function Nn(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function Fn(e,t){var r=e.x+t[3],n=e.y+t[0],a=e.dx-t[1]-t[3],i=e.dy-t[0]-t[2];return a<0&&(r+=a/2,a=0),i<0&&(n+=i/2,i=0),{x:r,y:n,dx:a,dy:i}}function jn(e){var t=e[0],r=e[e.length-1];return t<r?[t,r]:[r,t]}function Bn(e){return e.rangeExtent?e.rangeExtent():jn(e.range())}function Hn(e,t,r,n){var a=r(e[0],e[1]),i=n(t[0],t[1]);return function(e){return i(a(e))}}function Un(e,t){var r,n=0,a=e.length-1,i=e[n],o=e[a];return o<i&&(r=n,n=a,a=r,r=i,i=o,o=r),e[n]=t.floor(i),e[a]=t.ceil(o),e}function Yn(e){return e?{floor:function(t){return Math.floor(t/e)*e},ceil:function(t){return Math.ceil(t/e)*e}}:qn}e.layout.histogram=function(){var t=!0,r=Number,n=bn,a=vn;function i(i,o){for(var l,s,c=[],u=i.map(r,this),f=n.call(this,u,o),d=a.call(this,f,u,o),p=(o=-1,u.length),h=d.length-1,m=t?1:1/p;++o<h;)(l=c[o]=[]).dx=d[o+1]-(l.x=d[o]),l.y=0;if(h>0)for(o=-1;++o<p;)(s=u[o])>=f[0]&&s<=f[1]&&((l=c[e.bisect(d,s,1,h)-1]).y+=m,l.push(i[o]));return c}return i.value=function(e){return arguments.length?(r=e,i):r},i.range=function(e){return arguments.length?(n=ft(e),i):n},i.bins=function(e){return arguments.length?(a="number"==typeof e?function(t){return xn(t,e)}:ft(e),i):a},i.frequency=function(e){return arguments.length?(t=!!e,i):t},i},e.layout.pack=function(){var t,r=e.layout.hierarchy().sort(_n),n=0,a=[1,1];function i(e,i){var o=r.call(this,e,i),l=o[0],s=a[0],c=a[1],u=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(l.x=l.y=0,tn(l,(function(e){e.r=+u(e.value)})),tn(l,kn),n){var f=n*(t?1:Math.max(2*l.r/s,2*l.r/c))/2;tn(l,(function(e){e.r+=f})),tn(l,kn),tn(l,(function(e){e.r-=f}))}return Sn(l,s/2,c/2,t?1:1/Math.max(2*l.r/s,2*l.r/c)),o}return i.size=function(e){return arguments.length?(a=e,i):a},i.radius=function(e){return arguments.length?(t=null==e||"function"==typeof e?e:+e,i):t},i.padding=function(e){return arguments.length?(n=+e,i):n},$r(i,r)},e.layout.tree=function(){var t=e.layout.hierarchy().sort(null).value(null),r=Dn,n=[1,1],a=null;function i(e,i){var c=t.call(this,e,i),u=c[0],f=function(e){for(var t,r={A:null,children:[e]},n=[r];null!=(t=n.pop());)for(var a,i=t.children,o=0,l=i.length;o<l;++o)n.push((i[o]=a={_:i[o],parent:t,children:(a=i[o].children)&&a.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=a);return r.children[0]}(u);if(tn(f,o),f.parent.m=-f.z,en(f,l),a)en(u,s);else{var d=u,p=u,h=u;en(u,(function(e){e.x<d.x&&(d=e),e.x>p.x&&(p=e),e.depth>h.depth&&(h=e)}));var m=r(d,p)/2-d.x,y=n[0]/(p.x+r(p,d)/2+m),g=n[1]/(h.depth||1);en(u,(function(e){e.x=(e.x+m)*y,e.y=e.depth*g}))}return c}function o(e){var t=e.children,n=e.parent.children,a=e.i?n[e.i-1]:null;if(t.length){!function(e){for(var t,r=0,n=0,a=e.children,i=a.length;--i>=0;)(t=a[i]).z+=r,t.m+=r,r+=t.s+(n+=t.c)}(e);var i=(t[0].z+t[t.length-1].z)/2;a?(e.z=a.z+r(e._,a._),e.m=e.z-i):e.z=i}else a&&(e.z=a.z+r(e._,a._));e.parent.A=function(e,t,n){if(t){for(var a,i=e,o=e,l=t,s=i.parent.children[0],c=i.m,u=o.m,f=l.m,d=s.m;l=En(l),i=Cn(i),l&&i;)s=Cn(s),(o=En(o)).a=e,(a=l.z+f-i.z-c+r(l._,i._))>0&&(Pn(Rn(l,e,n),e,a),c+=a,u+=a),f+=l.m,c+=i.m,d+=s.m,u+=o.m;l&&!En(o)&&(o.t=l,o.m+=f-u),i&&!Cn(s)&&(s.t=i,s.m+=c-d,n=e)}return n}(e,a,e.parent.A||n[0])}function l(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=n[0],e.y=e.depth*n[1]}return i.separation=function(e){return arguments.length?(r=e,i):r},i.size=function(e){return arguments.length?(a=null==(n=e)?s:null,i):a?null:n},i.nodeSize=function(e){return arguments.length?(a=null==(n=e)?null:s,i):a?n:null},$r(i,t)},e.layout.cluster=function(){var t=e.layout.hierarchy().sort(null).value(null),r=Dn,n=[1,1],a=!1;function i(i,o){var l,s=t.call(this,i,o),c=s[0],u=0;tn(c,(function(t){var n=t.children;n&&n.length?(t.x=function(e){return e.reduce((function(e,t){return e+t.x}),0)/e.length}(n),t.y=function(t){return 1+e.max(t,(function(e){return e.y}))}(n)):(t.x=l?u+=r(t,l):0,t.y=0,l=t)}));var f=zn(c),d=In(c),p=f.x-r(f,d)/2,h=d.x+r(d,f)/2;return tn(c,a?function(e){e.x=(e.x-c.x)*n[0],e.y=(c.y-e.y)*n[1]}:function(e){e.x=(e.x-p)/(h-p)*n[0],e.y=(1-(c.y?e.y/c.y:1))*n[1]}),s}return i.separation=function(e){return arguments.length?(r=e,i):r},i.size=function(e){return arguments.length?(a=null==(n=e),i):a?null:n},i.nodeSize=function(e){return arguments.length?(a=null!=(n=e),i):a?n:null},$r(i,t)},e.layout.treemap=function(){var t,r=e.layout.hierarchy(),n=Math.round,a=[1,1],i=null,o=Nn,l=!1,s="squarify",c=.5*(1+Math.sqrt(5));function u(e,t){for(var r,n,a=-1,i=e.length;++a<i;)n=(r=e[a]).value*(t<0?0:t),r.area=isNaN(n)||n<=0?0:n}function f(e){var t=e.children;if(t&&t.length){var r,n,a,i=o(e),l=[],c=t.slice(),d=1/0,m="slice"===s?i.dx:"dice"===s?i.dy:"slice-dice"===s?1&e.depth?i.dy:i.dx:Math.min(i.dx,i.dy);for(u(c,i.dx*i.dy/e.value),l.area=0;(a=c.length)>0;)l.push(r=c[a-1]),l.area+=r.area,"squarify"!==s||(n=p(l,m))<=d?(c.pop(),d=n):(l.area-=l.pop().area,h(l,m,i,!1),m=Math.min(i.dx,i.dy),l.length=l.area=0,d=1/0);l.length&&(h(l,m,i,!0),l.length=l.area=0),t.forEach(f)}}function d(e){var t=e.children;if(t&&t.length){var r,n=o(e),a=t.slice(),i=[];for(u(a,n.dx*n.dy/e.value),i.area=0;r=a.pop();)i.push(r),i.area+=r.area,null!=r.z&&(h(i,r.z?n.dx:n.dy,n,!a.length),i.length=i.area=0);t.forEach(d)}}function p(e,t){for(var r,n=e.area,a=0,i=1/0,o=-1,l=e.length;++o<l;)(r=e[o].area)&&(r<i&&(i=r),r>a&&(a=r));return t*=t,(n*=n)?Math.max(t*a*c/n,n/(t*i*c)):1/0}function h(e,t,r,a){var i,o=-1,l=e.length,s=r.x,c=r.y,u=t?n(e.area/t):0;if(t==r.dx){for((a||u>r.dy)&&(u=r.dy);++o<l;)(i=e[o]).x=s,i.y=c,i.dy=u,s+=i.dx=Math.min(r.x+r.dx-s,u?n(i.area/u):0);i.z=!0,i.dx+=r.x+r.dx-s,r.y+=u,r.dy-=u}else{for((a||u>r.dx)&&(u=r.dx);++o<l;)(i=e[o]).x=s,i.y=c,i.dx=u,c+=i.dy=Math.min(r.y+r.dy-c,u?n(i.area/u):0);i.z=!1,i.dy+=r.y+r.dy-c,r.x+=u,r.dx-=u}}function m(e){var n=t||r(e),i=n[0];return i.x=i.y=0,i.value?(i.dx=a[0],i.dy=a[1]):i.dx=i.dy=0,t&&r.revalue(i),u([i],i.dx*i.dy/i.value),(t?d:f)(i),l&&(t=n),n}return m.size=function(e){return arguments.length?(a=e,m):a},m.padding=function(e){if(!arguments.length)return i;function t(t){var r=e.call(m,t,t.depth);return null==r?Nn(t):Fn(t,"number"==typeof r?[r,r,r,r]:r)}function r(t){return Fn(t,e)}var n;return o=null==(i=e)?Nn:"function"==(n=typeof e)?t:"number"===n?(e=[e,e,e,e],r):r,m},m.round=function(e){return arguments.length?(n=e?Math.round:Number,m):n!=Number},m.sticky=function(e){return arguments.length?(l=e,t=null,m):l},m.ratio=function(e){return arguments.length?(c=e,m):c},m.mode=function(e){return arguments.length?(s=e+"",m):s},$r(m,r)},e.random={normal:function(e,t){var r=arguments.length;return r<2&&(t=1),r<1&&(e=0),function(){var r,n,a;do{a=(r=2*Math.random()-1)*r+(n=2*Math.random()-1)*n}while(!a||a>1);return e+t*r*Math.sqrt(-2*Math.log(a)/a)}},logNormal:function(){var t=e.random.normal.apply(e,arguments);return function(){return Math.exp(t())}},bates:function(t){var r=e.random.irwinHall(t);return function(){return r()/t}},irwinHall:function(e){return function(){for(var t=0,r=0;r<e;r++)t+=Math.random();return t}}},e.scale={};var qn={floor:D,ceil:D};function Vn(t,r,n,a){var i=[],o=[],l=0,s=Math.min(t.length,r.length)-1;for(t[s]<t[0]&&(t=t.slice().reverse(),r=r.slice().reverse());++l<=s;)i.push(n(t[l-1],t[l])),o.push(a(r[l-1],r[l]));return function(r){var n=e.bisect(t,r,1,s)-1;return o[n](i[n](r))}}function Gn(e,t,r,n){var a,i;function o(){var o=Math.min(e.length,t.length)>2?Vn:Hn,s=n?Ur:Hr;return a=o(e,t,s,r),i=o(t,e,s,xr),l}function l(e){return a(e)}return l.invert=function(e){return i(e)},l.domain=function(t){return arguments.length?(e=t.map(Number),o()):e},l.range=function(e){return arguments.length?(t=e,o()):t},l.rangeRound=function(e){return l.range(e).interpolate(Rr)},l.clamp=function(e){return arguments.length?(n=e,o()):n},l.interpolate=function(e){return arguments.length?(r=e,o()):r},l.ticks=function(t){return Jn(e,t)},l.tickFormat=function(t,r){return d3_scale_linearTickFormat(e,t,r)},l.nice=function(t){return Wn(e,t),o()},l.copy=function(){return Gn(e,t,r,n)},o()}function Zn(t,r){return e.rebind(t,r,"range","rangeRound","interpolate","clamp")}function Wn(e,t){return Un(e,Yn(Xn(e,t)[2])),Un(e,Yn(Xn(e,t)[2])),e}function Xn(e,t){null==t&&(t=10);var r=jn(e),n=r[1]-r[0],a=Math.pow(10,Math.floor(Math.log(n/t)/Math.LN10)),i=t/n*a;return i<=.15?a*=10:i<=.35?a*=5:i<=.75&&(a*=2),r[0]=Math.ceil(r[0]/a)*a,r[1]=Math.floor(r[1]/a)*a+.5*a,r[2]=a,r}function Jn(t,r){return e.range.apply(e,Xn(t,r))}function Kn(e,t,r,n){function a(e){return(r?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(t)}function i(e){return r?Math.pow(t,e):-Math.pow(t,-e)}function o(t){return e(a(t))}return o.invert=function(t){return i(e.invert(t))},o.domain=function(t){return arguments.length?(r=t[0]>=0,e.domain((n=t.map(Number)).map(a)),o):n},o.base=function(r){return arguments.length?(t=+r,e.domain(n.map(a)),o):t},o.nice=function(){var t=Un(n.map(a),r?Math:Qn);return e.domain(t),n=t.map(i),o},o.ticks=function(){var e=jn(n),o=[],l=e[0],s=e[1],c=Math.floor(a(l)),u=Math.ceil(a(s)),f=t%1?2:t;if(isFinite(u-c)){if(r){for(;c<u;c++)for(var d=1;d<f;d++)o.push(i(c)*d);o.push(i(c))}else for(o.push(i(c));c++<u;)for(d=f-1;d>0;d--)o.push(i(c)*d);for(c=0;o[c]<l;c++);for(u=o.length;o[u-1]>s;u--);o=o.slice(c,u)}return o},o.copy=function(){return Kn(e.copy(),t,r,n)},Zn(o,e)}e.scale.linear=function(){return Gn([0,1],[0,1],xr,!1)},e.scale.log=function(){return Kn(e.scale.linear().domain([0,1]),10,!0,[1,10])};var Qn={floor:function(e){return-Math.ceil(-e)},ceil:function(e){return-Math.floor(-e)}};function $n(e,t,r){var n=ea(t),a=ea(1/t);function i(t){return e(n(t))}return i.invert=function(t){return a(e.invert(t))},i.domain=function(t){return arguments.length?(e.domain((r=t.map(Number)).map(n)),i):r},i.ticks=function(e){return Jn(r,e)},i.tickFormat=function(e,t){return d3_scale_linearTickFormat(r,e,t)},i.nice=function(e){return i.domain(Wn(r,e))},i.exponent=function(o){return arguments.length?(n=ea(t=o),a=ea(1/t),e.domain(r.map(n)),i):t},i.copy=function(){return $n(e.copy(),t,r)},Zn(i,e)}function ea(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ta(t,r){var n,a,i;function o(e){return a[((n.get(e)||("range"===r.t?n.set(e,t.push(e)):NaN))-1)%a.length]}function l(r,n){return e.range(t.length).map((function(e){return r+n*e}))}return o.domain=function(e){if(!arguments.length)return t;t=[],n=new _;for(var a,i=-1,l=e.length;++i<l;)n.has(a=e[i])||n.set(a,t.push(a));return o[r.t].apply(o,r.a)},o.range=function(e){return arguments.length?(a=e,i=0,r={t:"range",a:arguments},o):a},o.rangePoints=function(e,n){arguments.length<2&&(n=0);var s=e[0],c=e[1],u=t.length<2?(s=(s+c)/2,0):(c-s)/(t.length-1+n);return a=l(s+u*n/2,u),i=0,r={t:"rangePoints",a:arguments},o},o.rangeRoundPoints=function(e,n){arguments.length<2&&(n=0);var s=e[0],c=e[1],u=t.length<2?(s=c=Math.round((s+c)/2),0):(c-s)/(t.length-1+n)|0;return a=l(s+Math.round(u*n/2+(c-s-(t.length-1+n)*u)/2),u),i=0,r={t:"rangeRoundPoints",a:arguments},o},o.rangeBands=function(e,n,s){arguments.length<2&&(n=0),arguments.length<3&&(s=n);var c=e[1]<e[0],u=e[c-0],f=(e[1-c]-u)/(t.length-n+2*s);return a=l(u+f*s,f),c&&a.reverse(),i=f*(1-n),r={t:"rangeBands",a:arguments},o},o.rangeRoundBands=function(e,n,s){arguments.length<2&&(n=0),arguments.length<3&&(s=n);var c=e[1]<e[0],u=e[c-0],f=e[1-c],d=Math.floor((f-u)/(t.length-n+2*s));return a=l(u+Math.round((f-u-(t.length-n)*d)/2),d),c&&a.reverse(),i=Math.round(d*(1-n)),r={t:"rangeRoundBands",a:arguments},o},o.rangeBand=function(){return i},o.rangeExtent=function(){return jn(r.a[0])},o.copy=function(){return ta(t,r)},o.domain(t)}e.scale.pow=function(){return $n(e.scale.linear(),1,[0,1])},e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return ta([],{t:"range",a:[[]]})},e.scale.category10=function(){return e.scale.ordinal().range(ra)},e.scale.category20=function(){return e.scale.ordinal().range(na)},e.scale.category20b=function(){return e.scale.ordinal().range(aa)},e.scale.category20c=function(){return e.scale.ordinal().range(ia)};var ra=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(rt),na=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(rt),aa=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(rt),ia=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(rt);function oa(t,r){var n;function a(){var a=0,o=r.length;for(n=[];++a<o;)n[a-1]=e.quantile(t,a/o);return i}function i(t){if(!isNaN(t=+t))return r[e.bisect(n,t)]}return i.domain=function(e){return arguments.length?(t=e.map(p).filter(h).sort(d),a()):t},i.range=function(e){return arguments.length?(r=e,a()):r},i.quantiles=function(){return n},i.invertExtent=function(e){return(e=r.indexOf(e))<0?[NaN,NaN]:[e>0?n[e-1]:t[0],e<n.length?n[e]:t[t.length-1]]},i.copy=function(){return oa(t,r)},a()}function la(e,t,r){var n,a;function i(t){return r[Math.max(0,Math.min(a,Math.floor(n*(t-e))))]}function o(){return n=r.length/(t-e),a=r.length-1,i}return i.domain=function(r){return arguments.length?(e=+r[0],t=+r[r.length-1],o()):[e,t]},i.range=function(e){return arguments.length?(r=e,o()):r},i.invertExtent=function(t){return[t=(t=r.indexOf(t))<0?NaN:t/n+e,t+1/n]},i.copy=function(){return la(e,t,r)},o()}function sa(t,r){function n(n){if(n<=n)return r[e.bisect(t,n)]}return n.domain=function(e){return arguments.length?(t=e,n):t},n.range=function(e){return arguments.length?(r=e,n):r},n.invertExtent=function(e){return e=r.indexOf(e),[t[e-1],t[e]]},n.copy=function(){return sa(t,r)},n}function ca(e){function t(e){return+e}return t.invert=t,t.domain=t.range=function(r){return arguments.length?(e=r.map(t),t):e},t.ticks=function(t){return Jn(e,t)},t.tickFormat=function(t,r){return d3_scale_linearTickFormat(e,t,r)},t.copy=function(){return ca(e)},t}function ua(){return 0}e.scale.quantile=function(){return oa([],[])},e.scale.quantize=function(){return la(0,1,[0,1])},e.scale.threshold=function(){return sa([.5],[0,1])},e.scale.identity=function(){return ca([0,1])},e.svg={},e.svg.arc=function(){var e=da,t=pa,r=ua,n=fa,a=ha,i=ma,o=ya;function l(){var l=Math.max(0,+e.apply(this,arguments)),c=Math.max(0,+t.apply(this,arguments)),u=a.apply(this,arguments)-Se,f=i.apply(this,arguments)-Se,d=Math.abs(f-u),p=u>f?0:1;if(c<l&&(h=c,c=l,l=h),d>=Le)return s(c,p)+(l?s(l,1-p):"")+"Z";var h,m,y,g,v,x,b,_,w,T,M,k,A=0,L=0,S=[];if((g=(+o.apply(this,arguments)||0)/2)&&(y=n===fa?Math.sqrt(l*l+c*c):+n.apply(this,arguments),p||(L*=-1),c&&(L=Ce(y/c*Math.sin(g))),l&&(A=Ce(y/l*Math.sin(g)))),c){v=c*Math.cos(u+L),x=c*Math.sin(u+L),b=c*Math.cos(f-L),_=c*Math.sin(f-L);var O=Math.abs(f-u-2*L)<=ke?0:1;if(L&&ga(v,x,b,_)===p^O){var D=(u+f)/2;v=c*Math.cos(D),x=c*Math.sin(D),b=_=null}}else v=x=0;if(l){w=l*Math.cos(f-A),T=l*Math.sin(f-A),M=l*Math.cos(u+A),k=l*Math.sin(u+A);var C=Math.abs(u-f+2*A)<=ke?0:1;if(A&&ga(w,T,M,k)===1-p^C){var E=(u+f)/2;w=l*Math.cos(E),T=l*Math.sin(E),M=k=null}}else w=T=0;if(d>Me&&(h=Math.min(Math.abs(c-l)/2,+r.apply(this,arguments)))>.001){m=l<c^p?0:1;var P=h,R=h;if(d<ke){var z=null==M?[w,T]:null==b?[v,x]:Ot([v,x],[M,k],[b,_],[w,T]),I=v-z[0],N=x-z[1],F=b-z[0],j=_-z[1],B=1/Math.sin(Math.acos((I*F+N*j)/(Math.sqrt(I*I+N*N)*Math.sqrt(F*F+j*j)))/2),H=Math.sqrt(z[0]*z[0]+z[1]*z[1]);R=Math.min(h,(l-H)/(B-1)),P=Math.min(h,(c-H)/(B+1))}if(null!=b){var U=va(null==M?[w,T]:[M,k],[v,x],c,P,p),Y=va([b,_],[w,T],c,P,p);h===P?S.push("M",U[0],"A",P,",",P," 0 0,",m," ",U[1],"A",c,",",c," 0 ",1-p^ga(U[1][0],U[1][1],Y[1][0],Y[1][1]),",",p," ",Y[1],"A",P,",",P," 0 0,",m," ",Y[0]):S.push("M",U[0],"A",P,",",P," 0 1,",m," ",Y[0])}else S.push("M",v,",",x);if(null!=M){var q=va([v,x],[M,k],l,-R,p),V=va([w,T],null==b?[v,x]:[b,_],l,-R,p);h===R?S.push("L",V[0],"A",R,",",R," 0 0,",m," ",V[1],"A",l,",",l," 0 ",p^ga(V[1][0],V[1][1],q[1][0],q[1][1]),",",1-p," ",q[1],"A",R,",",R," 0 0,",m," ",q[0]):S.push("L",V[0],"A",R,",",R," 0 0,",m," ",q[0])}else S.push("L",w,",",T)}else S.push("M",v,",",x),null!=b&&S.push("A",c,",",c," 0 ",O,",",p," ",b,",",_),S.push("L",w,",",T),null!=M&&S.push("A",l,",",l," 0 ",C,",",1-p," ",M,",",k);return S.push("Z"),S.join("")}function s(e,t){return"M0,"+e+"A"+e+","+e+" 0 1,"+t+" 0,"+-e+"A"+e+","+e+" 0 1,"+t+" 0,"+e}return l.innerRadius=function(t){return arguments.length?(e=ft(t),l):e},l.outerRadius=function(e){return arguments.length?(t=ft(e),l):t},l.cornerRadius=function(e){return arguments.length?(r=ft(e),l):r},l.padRadius=function(e){return arguments.length?(n=e==fa?fa:ft(e),l):n},l.startAngle=function(e){return arguments.length?(a=ft(e),l):a},l.endAngle=function(e){return arguments.length?(i=ft(e),l):i},l.padAngle=function(e){return arguments.length?(o=ft(e),l):o},l.centroid=function(){var r=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,n=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-Se;return[Math.cos(n)*r,Math.sin(n)*r]},l};var fa="auto";function da(e){return e.innerRadius}function pa(e){return e.outerRadius}function ha(e){return e.startAngle}function ma(e){return e.endAngle}function ya(e){return e&&e.padAngle}function ga(e,t,r,n){return(e-r)*t-(t-n)*e>0?0:1}function va(e,t,r,n,a){var i=e[0]-t[0],o=e[1]-t[1],l=(a?n:-n)/Math.sqrt(i*i+o*o),s=l*o,c=-l*i,u=e[0]+s,f=e[1]+c,d=t[0]+s,p=t[1]+c,h=(u+d)/2,m=(f+p)/2,y=d-u,g=p-f,v=y*y+g*g,x=r-n,b=u*p-d*f,_=(g<0?-1:1)*Math.sqrt(Math.max(0,x*x*v-b*b)),w=(b*g-y*_)/v,T=(-b*y-g*_)/v,M=(b*g+y*_)/v,k=(-b*y+g*_)/v,A=w-h,L=T-m,S=M-h,O=k-m;return A*A+L*L>S*S+O*O&&(w=M,T=k),[[w-s,T-c],[w*r/x,T*r/x]]}function xa(){return!0}function ba(e){var t=Tt,r=Mt,n=xa,a=wa,i=a.key,o=.7;function l(i){var l,s=[],c=[],u=-1,f=i.length,d=ft(t),p=ft(r);function h(){s.push("M",a(e(c),o))}for(;++u<f;)n.call(this,l=i[u],u)?c.push([+d.call(this,l,u),+p.call(this,l,u)]):c.length&&(h(),c=[]);return c.length&&h(),s.length?s.join(""):null}return l.x=function(e){return arguments.length?(t=e,l):t},l.y=function(e){return arguments.length?(r=e,l):r},l.defined=function(e){return arguments.length?(n=e,l):n},l.interpolate=function(e){return arguments.length?(i="function"==typeof e?a=e:(a=_a.get(e)||wa).key,l):i},l.tension=function(e){return arguments.length?(o=e,l):o},l}e.svg.line=function(){return ba(D)};var _a=e.map({linear:wa,"linear-closed":Ta,step:function(e){for(var t=0,r=e.length,n=e[0],a=[n[0],",",n[1]];++t<r;)a.push("H",(n[0]+(n=e[t])[0])/2,"V",n[1]);return r>1&&a.push("H",n[0]),a.join("")},"step-before":Ma,"step-after":ka,basis:Sa,"basis-open":function(e){if(e.length<4)return wa(e);for(var t,r=[],n=-1,a=e.length,i=[0],o=[0];++n<3;)t=e[n],i.push(t[0]),o.push(t[1]);for(r.push(Oa(Ea,i)+","+Oa(Ea,o)),--n;++n<a;)t=e[n],i.shift(),i.push(t[0]),o.shift(),o.push(t[1]),Pa(r,i,o);return r.join("")},"basis-closed":function(e){for(var t,r,n=-1,a=e.length,i=a+4,o=[],l=[];++n<4;)r=e[n%a],o.push(r[0]),l.push(r[1]);for(t=[Oa(Ea,o),",",Oa(Ea,l)],--n;++n<i;)r=e[n%a],o.shift(),o.push(r[0]),l.shift(),l.push(r[1]),Pa(t,o,l);return t.join("")},bundle:function(e,t){var r=e.length-1;if(r)for(var n,a,i=e[0][0],o=e[0][1],l=e[r][0]-i,s=e[r][1]-o,c=-1;++c<=r;)a=c/r,(n=e[c])[0]=t*n[0]+(1-t)*(i+a*l),n[1]=t*n[1]+(1-t)*(o+a*s);return Sa(e)},cardinal:function(e,t){return e.length<3?wa(e):e[0]+Aa(e,La(e,t))},"cardinal-open":function(e,t){return e.length<4?wa(e):e[1]+Aa(e.slice(1,-1),La(e,t))},"cardinal-closed":function(e,t){return e.length<3?Ta(e):e[0]+Aa((e.push(e[0]),e),La([e[e.length-2]].concat(e,[e[1]]),t))},monotone:function(e){return e.length<3?wa(e):e[0]+Aa(e,function(e){for(var t,r,n,a,i=[],o=function(e){for(var t=0,r=e.length-1,n=[],a=e[0],i=e[1],o=n[0]=Ra(a,i);++t<r;)n[t]=(o+(o=Ra(a=i,i=e[t+1])))/2;return n[t]=o,n}(e),l=-1,s=e.length-1;++l<s;)t=Ra(e[l],e[l+1]),v(t)<Me?o[l]=o[l+1]=0:(a=(r=o[l]/t)*r+(n=o[l+1]/t)*n)>9&&(a=3*t/Math.sqrt(a),o[l]=a*r,o[l+1]=a*n);for(l=-1;++l<=s;)a=(e[Math.min(s,l+1)][0]-e[Math.max(0,l-1)][0])/(6*(1+o[l]*o[l])),i.push([a||0,o[l]*a||0]);return i}(e))}});function wa(e){return e.length>1?e.join("L"):e+"Z"}function Ta(e){return e.join("L")+"Z"}function Ma(e){for(var t=0,r=e.length,n=e[0],a=[n[0],",",n[1]];++t<r;)a.push("V",(n=e[t])[1],"H",n[0]);return a.join("")}function ka(e){for(var t=0,r=e.length,n=e[0],a=[n[0],",",n[1]];++t<r;)a.push("H",(n=e[t])[0],"V",n[1]);return a.join("")}function Aa(e,t){if(t.length<1||e.length!=t.length&&e.length!=t.length+2)return wa(e);var r=e.length!=t.length,n="",a=e[0],i=e[1],o=t[0],l=o,s=1;if(r&&(n+="Q"+(i[0]-2*o[0]/3)+","+(i[1]-2*o[1]/3)+","+i[0]+","+i[1],a=e[1],s=2),t.length>1){l=t[1],i=e[s],s++,n+="C"+(a[0]+o[0])+","+(a[1]+o[1])+","+(i[0]-l[0])+","+(i[1]-l[1])+","+i[0]+","+i[1];for(var c=2;c<t.length;c++,s++)i=e[s],l=t[c],n+="S"+(i[0]-l[0])+","+(i[1]-l[1])+","+i[0]+","+i[1]}if(r){var u=e[s];n+="Q"+(i[0]+2*l[0]/3)+","+(i[1]+2*l[1]/3)+","+u[0]+","+u[1]}return n}function La(e,t){for(var r,n=[],a=(1-t)/2,i=e[0],o=e[1],l=1,s=e.length;++l<s;)r=i,i=o,o=e[l],n.push([a*(o[0]-r[0]),a*(o[1]-r[1])]);return n}function Sa(e){if(e.length<3)return wa(e);var t=1,r=e.length,n=e[0],a=n[0],i=n[1],o=[a,a,a,(n=e[1])[0]],l=[i,i,i,n[1]],s=[a,",",i,"L",Oa(Ea,o),",",Oa(Ea,l)];for(e.push(e[r-1]);++t<=r;)n=e[t],o.shift(),o.push(n[0]),l.shift(),l.push(n[1]),Pa(s,o,l);return e.pop(),s.push("L",n),s.join("")}function Oa(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}_a.forEach((function(e,t){t.key=e,t.closed=/-closed$/.test(e)}));var Da=[0,2/3,1/3,0],Ca=[0,1/3,2/3,0],Ea=[0,1/6,2/3,1/6];function Pa(e,t,r){e.push("C",Oa(Da,t),",",Oa(Da,r),",",Oa(Ca,t),",",Oa(Ca,r),",",Oa(Ea,t),",",Oa(Ea,r))}function Ra(e,t){return(t[1]-e[1])/(t[0]-e[0])}function za(e){for(var t,r,n,a=-1,i=e.length;++a<i;)r=(t=e[a])[0],n=t[1]-Se,t[0]=r*Math.cos(n),t[1]=r*Math.sin(n);return e}function Ia(e){var t=Tt,r=Tt,n=0,a=Mt,i=xa,o=wa,l=o.key,s=o,c="L",u=.7;function f(l){var f,d,p,h=[],m=[],y=[],g=-1,v=l.length,x=ft(t),b=ft(n),_=t===r?function(){return d}:ft(r),w=n===a?function(){return p}:ft(a);function T(){h.push("M",o(e(y),u),c,s(e(m.reverse()),u),"Z")}for(;++g<v;)i.call(this,f=l[g],g)?(m.push([d=+x.call(this,f,g),p=+b.call(this,f,g)]),y.push([+_.call(this,f,g),+w.call(this,f,g)])):m.length&&(T(),m=[],y=[]);return m.length&&T(),h.length?h.join(""):null}return f.x=function(e){return arguments.length?(t=r=e,f):r},f.x0=function(e){return arguments.length?(t=e,f):t},f.x1=function(e){return arguments.length?(r=e,f):r},f.y=function(e){return arguments.length?(n=a=e,f):a},f.y0=function(e){return arguments.length?(n=e,f):n},f.y1=function(e){return arguments.length?(a=e,f):a},f.defined=function(e){return arguments.length?(i=e,f):i},f.interpolate=function(e){return arguments.length?(l="function"==typeof e?o=e:(o=_a.get(e)||wa).key,s=o.reverse||o,c=o.closed?"M":"L",f):l},f.tension=function(e){return arguments.length?(u=e,f):u},f}function Na(e){return e.source}function Fa(e){return e.target}function ja(e){return e.radius}function Ba(e){return[e.x,e.y]}function Ha(e){return function(){var t=e.apply(this,arguments),r=t[0],n=t[1]-Se;return[r*Math.cos(n),r*Math.sin(n)]}}function Ua(){return 64}function Ya(){return"circle"}function qa(e){var t=Math.sqrt(e/ke);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}e.svg.line.radial=function(){var e=ba(za);return e.radius=e.x,delete e.x,e.angle=e.y,delete e.y,e},Ma.reverse=ka,ka.reverse=Ma,e.svg.area=function(){return Ia(D)},e.svg.area.radial=function(){var e=Ia(za);return e.radius=e.x,delete e.x,e.innerRadius=e.x0,delete e.x0,e.outerRadius=e.x1,delete e.x1,e.angle=e.y,delete e.y,e.startAngle=e.y0,delete e.y0,e.endAngle=e.y1,delete e.y1,e},e.svg.chord=function(){var e=Na,t=Fa,r=ja,n=ha,a=ma;function i(r,n){var a,i,c=o(this,e,r,n),u=o(this,t,r,n);return"M"+c.p0+l(c.r,c.p1,c.a1-c.a0)+(i=u,((a=c).a0==i.a0&&a.a1==i.a1?s(c.r,c.p1,c.r,c.p0):s(c.r,c.p1,u.r,u.p0)+l(u.r,u.p1,u.a1-u.a0)+s(u.r,u.p1,c.r,c.p0))+"Z")}function o(e,t,i,o){var l=t.call(e,i,o),s=r.call(e,l,o),c=n.call(e,l,o)-Se,u=a.call(e,l,o)-Se;return{r:s,a0:c,a1:u,p0:[s*Math.cos(c),s*Math.sin(c)],p1:[s*Math.cos(u),s*Math.sin(u)]}}function l(e,t,r){return"A"+e+","+e+" 0 "+ +(r>ke)+",1 "+t}function s(e,t,r,n){return"Q 0,0 "+n}return i.radius=function(e){return arguments.length?(r=ft(e),i):r},i.source=function(t){return arguments.length?(e=ft(t),i):e},i.target=function(e){return arguments.length?(t=ft(e),i):t},i.startAngle=function(e){return arguments.length?(n=ft(e),i):n},i.endAngle=function(e){return arguments.length?(a=ft(e),i):a},i},e.svg.diagonal=function(){var e=Na,t=Fa,r=Ba;function n(n,a){var i=e.call(this,n,a),o=t.call(this,n,a),l=(i.y+o.y)/2,s=[i,{x:i.x,y:l},{x:o.x,y:l},o];return"M"+(s=s.map(r))[0]+"C"+s[1]+" "+s[2]+" "+s[3]}return n.source=function(t){return arguments.length?(e=ft(t),n):e},n.target=function(e){return arguments.length?(t=ft(e),n):t},n.projection=function(e){return arguments.length?(r=e,n):r},n},e.svg.diagonal.radial=function(){var t=e.svg.diagonal(),r=Ba,n=t.projection;return t.projection=function(e){return arguments.length?n(Ha(r=e)):r},t},e.svg.symbol=function(){var e=Ya,t=Ua;function r(r,n){return(Va.get(e.call(this,r,n))||qa)(t.call(this,r,n))}return r.type=function(t){return arguments.length?(e=ft(t),r):e},r.size=function(e){return arguments.length?(t=ft(e),r):t},r};var Va=e.map({circle:qa,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*Za)),r=t*Za;return"M0,"+-t+"L"+r+",0 0,"+t+" "+-r+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/Ga),r=t*Ga/2;return"M0,"+r+"L"+t+","+-r+" "+-t+","+-r+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/Ga),r=t*Ga/2;return"M0,"+-r+"L"+t+","+r+" "+-t+","+r+"Z"}});e.svg.symbolTypes=Va.keys();var Ga=Math.sqrt(3),Za=Math.tan(30*Oe);G.transition=function(e){for(var t,r,n=Ka||++ei,a=ni(e),i=[],o=Qa||{time:Date.now(),ease:Or,delay:0,duration:250},l=-1,s=this.length;++l<s;){i.push(t=[]);for(var c=this[l],u=-1,f=c.length;++u<f;)(r=c[u])&&ai(r,u,a,n,o),t.push(r)}return Ja(i,a,n)},G.interrupt=function(e){return this.each(null==e?Wa:Xa(ni(e)))};var Wa=Xa(ni());function Xa(e){return function(){var t,r,n;(t=this[e])&&(n=t[r=t.active])&&(n.timer.c=null,n.timer.t=NaN,--t.count?delete t[r]:delete this[e],t.active+=.5,n.event&&n.event.interrupt.call(this,this.__data__,n.index))}}function Ja(e,t,r){return H(e,$a),e.namespace=t,e.id=r,e}var Ka,Qa,$a=[],ei=0;function ti(e,t,r,n){var a=e.id,i=e.namespace;return ue(e,"function"==typeof r?function(e,o,l){e[i][a].tween.set(t,n(r.call(e,e.__data__,o,l)))}:(r=n(r),function(e){e[i][a].tween.set(t,r)}))}function ri(e){return null==e&&(e=""),function(){this.textContent=e}}function ni(e){return null==e?"__transition__":"__transition_"+e+"__"}function ai(e,t,r,n,a){var i,o,l,s,c,u=e[r]||(e[r]={active:0,count:0}),f=u[n];function d(r){var a=u.active,d=u[a];for(var h in d&&(d.timer.c=null,d.timer.t=NaN,--u.count,delete u[a],d.event&&d.event.interrupt.call(e,e.__data__,d.index)),u)if(+h<n){var m=u[h];m.timer.c=null,m.timer.t=NaN,--u.count,delete u[h]}o.c=p,xt((function(){return o.c&&p(r||1)&&(o.c=null,o.t=NaN),1}),0,i),u.active=n,f.event&&f.event.start.call(e,e.__data__,t),c=[],f.tween.forEach((function(r,n){(n=n.call(e,e.__data__,t))&&c.push(n)})),s=f.ease,l=f.duration}function p(a){for(var i=a/l,o=s(i),d=c.length;d>0;)c[--d].call(e,o);if(i>=1)return f.event&&f.event.end.call(e,e.__data__,t),--u.count?delete u[n]:delete e[r],1}f||(i=a.time,o=xt((function(e){var t=f.delay;if(o.t=t+i,t<=e)return d(e-t);o.c=d}),0,i),f=u[n]={tween:new _,time:i,timer:o,delay:a.delay,duration:a.duration,ease:a.ease,index:t},a=null,++u.count)}$a.call=G.call,$a.empty=G.empty,$a.node=G.node,$a.size=G.size,e.transition=function(t,r){return t&&t.transition?Ka?t.transition(r):t:e.selection().transition(t)},e.transition.prototype=$a,$a.select=function(e){var t,r,n,a=this.id,i=this.namespace,o=[];e=Z(e);for(var l=-1,s=this.length;++l<s;){o.push(t=[]);for(var c=this[l],u=-1,f=c.length;++u<f;)(n=c[u])&&(r=e.call(n,n.__data__,u,l))?("__data__"in n&&(r.__data__=n.__data__),ai(r,u,i,a,n[i][a]),t.push(r)):t.push(null)}return Ja(o,i,a)},$a.selectAll=function(e){var t,r,n,a,i,o=this.id,l=this.namespace,s=[];e=W(e);for(var c=-1,u=this.length;++c<u;)for(var f=this[c],d=-1,p=f.length;++d<p;)if(n=f[d]){i=n[l][o],r=e.call(n,n.__data__,d,c),s.push(t=[]);for(var h=-1,m=r.length;++h<m;)(a=r[h])&&ai(a,h,l,o,i),t.push(a)}return Ja(s,l,o)},$a.filter=function(e){var t,r,n=[];"function"!=typeof e&&(e=se(e));for(var a=0,i=this.length;a<i;a++){n.push(t=[]);for(var o,l=0,s=(o=this[a]).length;l<s;l++)(r=o[l])&&e.call(r,r.__data__,l,a)&&t.push(r)}return Ja(n,this.namespace,this.id)},$a.tween=function(e,t){var r=this.id,n=this.namespace;return arguments.length<2?this.node()[n][r].tween.get(e):ue(this,null==t?function(t){t[n][r].tween.remove(e)}:function(a){a[n][r].tween.set(e,t)})},$a.attr=function(t,r){if(arguments.length<2){for(r in t)this.attr(r,t[r]);return this}var n="transform"==t?Br:xr,a=e.ns.qualify(t);function i(){this.removeAttribute(a)}function o(){this.removeAttributeNS(a.space,a.local)}function l(e){return null==e?i:(e+="",function(){var t,r=this.getAttribute(a);return r!==e&&(t=n(r,e),function(e){this.setAttribute(a,t(e))})})}function s(e){return null==e?o:(e+="",function(){var t,r=this.getAttributeNS(a.space,a.local);return r!==e&&(t=n(r,e),function(e){this.setAttributeNS(a.space,a.local,t(e))})})}return ti(this,"attr."+t,r,a.local?s:l)},$a.attrTween=function(t,r){var n=e.ns.qualify(t);return this.tween("attr."+t,n.local?function(e,t){var a=r.call(this,e,t,this.getAttributeNS(n.space,n.local));return a&&function(e){this.setAttributeNS(n.space,n.local,a(e))}}:function(e,t){var a=r.call(this,e,t,this.getAttribute(n));return a&&function(e){this.setAttribute(n,a(e))}})},$a.style=function(e,t,r){var n=arguments.length;if(n<3){if("string"!=typeof e){for(r in n<2&&(t=""),e)this.style(r,e[r],t);return this}r=""}function a(){this.style.removeProperty(e)}function i(t){return null==t?a:(t+="",function(){var n,a=o(this).getComputedStyle(this,null).getPropertyValue(e);return a!==t&&(n=xr(a,t),function(t){this.style.setProperty(e,n(t),r)})})}return ti(this,"style."+e,t,i)},$a.styleTween=function(e,t,r){function n(n,a){var i=t.call(this,n,a,o(this).getComputedStyle(this,null).getPropertyValue(e));return i&&function(t){this.style.setProperty(e,i(t),r)}}return arguments.length<3&&(r=""),this.tween("style."+e,n)},$a.text=function(e){return ti(this,"text",e,ri)},$a.remove=function(){var e=this.namespace;return this.each("end.transition",(function(){var t;this[e].count<2&&(t=this.parentNode)&&t.removeChild(this)}))},$a.ease=function(t){var r=this.id,n=this.namespace;return arguments.length<1?this.node()[n][r].ease:("function"!=typeof t&&(t=e.ease.apply(e,arguments)),ue(this,(function(e){e[n][r].ease=t})))},$a.delay=function(e){var t=this.id,r=this.namespace;return arguments.length<1?this.node()[r][t].delay:ue(this,"function"==typeof e?function(n,a,i){n[r][t].delay=+e.call(n,n.__data__,a,i)}:(e=+e,function(n){n[r][t].delay=e}))},$a.duration=function(e){var t=this.id,r=this.namespace;return arguments.length<1?this.node()[r][t].duration:ue(this,"function"==typeof e?function(n,a,i){n[r][t].duration=Math.max(1,e.call(n,n.__data__,a,i))}:(e=Math.max(1,e),function(n){n[r][t].duration=e}))},$a.each=function(t,r){var n=this.id,a=this.namespace;if(arguments.length<2){var i=Qa,o=Ka;try{Ka=n,ue(this,(function(e,r,i){Qa=e[a][n],t.call(e,e.__data__,r,i)}))}finally{Qa=i,Ka=o}}else ue(this,(function(i){var o=i[a][n];(o.event||(o.event=e.dispatch("start","end","interrupt"))).on(t,r)}));return this},$a.transition=function(){for(var e,t,r,n=this.id,a=++ei,i=this.namespace,o=[],l=0,s=this.length;l<s;l++){o.push(e=[]);for(var c,u=0,f=(c=this[l]).length;u<f;u++)(t=c[u])&&ai(t,u,i,a,{time:(r=t[i][n]).time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration}),e.push(t)}return Ja(o,i,a)},e.svg.axis=function(){var t,r=e.scale.linear(),a=ii,i=6,o=6,l=3,s=[10],c=null;function u(n){n.each((function(){var n,u=e.select(this),f=this.__chart__||r,d=this.__chart__=r.copy(),p=null==c?d.ticks?d.ticks.apply(d,s):d.domain():c,h=null==t?d.tickFormat?d.tickFormat.apply(d,s):D:t,m=u.selectAll(".tick").data(p,d),y=m.enter().insert("g",".domain").attr("class","tick").style("opacity",Me),g=e.transition(m.exit()).style("opacity",Me).remove(),v=e.transition(m.order()).style("opacity",1),x=Math.max(i,0)+l,b=Bn(d),_=u.selectAll(".domain").data([0]),w=(_.enter().append("path").attr("class","domain"),e.transition(_));y.append("line"),y.append("text");var T,M,k,A,L=y.select("line"),S=v.select("line"),O=m.select("text").text(h),C=y.select("text"),E=v.select("text"),P="top"===a||"left"===a?-1:1;if("bottom"===a||"top"===a?(n=li,T="x",k="y",M="x2",A="y2",O.attr("dy",P<0?"0em":".71em").style("text-anchor","middle"),w.attr("d","M"+b[0]+","+P*o+"V0H"+b[1]+"V"+P*o)):(n=si,T="y",k="x",M="y2",A="x2",O.attr("dy",".32em").style("text-anchor",P<0?"end":"start"),w.attr("d","M"+P*o+","+b[0]+"H0V"+b[1]+"H"+P*o)),L.attr(A,P*i),C.attr(k,P*x),S.attr(M,0).attr(A,P*i),E.attr(T,0).attr(k,P*x),d.rangeBand){var R=d,z=R.rangeBand()/2;f=d=function(e){return R(e)+z}}else f.rangeBand?f=d:g.call(n,d,f);y.call(n,f,d),v.call(n,d,d)}))}return u.scale=function(e){return arguments.length?(r=e,u):r},u.orient=function(e){return arguments.length?(a=e in oi?e+"":ii,u):a},u.ticks=function(){return arguments.length?(s=n(arguments),u):s},u.tickValues=function(e){return arguments.length?(c=e,u):c},u.tickFormat=function(e){return arguments.length?(t=e,u):t},u.tickSize=function(e){var t=arguments.length;return t?(i=+e,o=+arguments[t-1],u):i},u.innerTickSize=function(e){return arguments.length?(i=+e,u):i},u.outerTickSize=function(e){return arguments.length?(o=+e,u):o},u.tickPadding=function(e){return arguments.length?(l=+e,u):l},u.tickSubdivide=function(){return arguments.length&&u},u};var ii="bottom",oi={top:1,right:1,bottom:1,left:1};function li(e,t,r){e.attr("transform",(function(e){var n=t(e);return"translate("+(isFinite(n)?n:r(e))+",0)"}))}function si(e,t,r){e.attr("transform",(function(e){var n=t(e);return"translate(0,"+(isFinite(n)?n:r(e))+")"}))}e.svg.brush=function(){var t,r,n=j(d,"brushstart","brush","brushend"),a=null,i=null,l=[0,0],s=[0,0],c=!0,u=!0,f=ui[0];function d(t){t.each((function(){var t=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",y).on("touchstart.brush",y),r=t.selectAll(".background").data([0]);r.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),t.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var n=t.selectAll(".resize").data(f,D);n.exit().remove(),n.enter().append("g").attr("class",(function(e){return"resize "+e})).style("cursor",(function(e){return ci[e]})).append("rect").attr("x",(function(e){return/[ew]$/.test(e)?-3:null})).attr("y",(function(e){return/^[ns]/.test(e)?-3:null})).attr("width",6).attr("height",6).style("visibility","hidden"),n.style("display",d.empty()?"none":null);var o,l=e.transition(t),s=e.transition(r);a&&(o=Bn(a),s.attr("x",o[0]).attr("width",o[1]-o[0]),h(l)),i&&(o=Bn(i),s.attr("y",o[0]).attr("height",o[1]-o[0]),m(l)),p(l)}))}function p(e){e.selectAll(".resize").attr("transform",(function(e){return"translate("+l[+/e$/.test(e)]+","+s[+/^s/.test(e)]+")"}))}function h(e){e.select(".extent").attr("x",l[0]),e.selectAll(".extent,.n>rect,.s>rect").attr("width",l[1]-l[0])}function m(e){e.select(".extent").attr("y",s[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",s[1]-s[0])}function y(){var f,y,g=this,v=e.select(e.event.target),x=n.of(g,arguments),b=e.select(g),_=v.datum(),w=!/^(n|s)$/.test(_)&&a,T=!/^(e|w)$/.test(_)&&i,M=v.classed("extent"),k=be(g),A=e.mouse(g),L=e.select(o(g)).on("keydown.brush",D).on("keyup.brush",C);if(e.event.changedTouches?L.on("touchmove.brush",E).on("touchend.brush",R):L.on("mousemove.brush",E).on("mouseup.brush",R),b.interrupt().selectAll("*").interrupt(),M)A[0]=l[0]-A[0],A[1]=s[0]-A[1];else if(_){var S=+/w$/.test(_),O=+/^n/.test(_);y=[l[1-S]-A[0],s[1-O]-A[1]],A[0]=l[S],A[1]=s[O]}else e.event.altKey&&(f=A.slice());function D(){32==e.event.keyCode&&(M||(f=null,A[0]-=l[1],A[1]-=s[1],M=2),N())}function C(){32==e.event.keyCode&&2==M&&(A[0]+=l[1],A[1]+=s[1],M=0,N())}function E(){var t=e.mouse(g),r=!1;y&&(t[0]+=y[0],t[1]+=y[1]),M||(e.event.altKey?(f||(f=[(l[0]+l[1])/2,(s[0]+s[1])/2]),A[0]=l[+(t[0]<f[0])],A[1]=s[+(t[1]<f[1])]):f=null),w&&P(t,a,0)&&(h(b),r=!0),T&&P(t,i,1)&&(m(b),r=!0),r&&(p(b),x({type:"brush",mode:M?"move":"resize"}))}function P(e,n,a){var i,o,d=Bn(n),p=d[0],h=d[1],m=A[a],y=a?s:l,g=y[1]-y[0];if(M&&(p-=m,h-=g+m),i=(a?u:c)?Math.max(p,Math.min(h,e[a])):e[a],M?o=(i+=m)+g:(f&&(m=Math.max(p,Math.min(h,2*f[a]-i))),m<i?(o=i,i=m):o=m),y[0]!=i||y[1]!=o)return a?r=null:t=null,y[0]=i,y[1]=o,!0}function R(){E(),b.style("pointer-events","all").selectAll(".resize").style("display",d.empty()?"none":null),e.select("body").style("cursor",null),L.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),k(),x({type:"brushend"})}b.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",v.style("cursor")),x({type:"brushstart"}),E()}return d.event=function(a){a.each((function(){var a=n.of(this,arguments),i={x:l,y:s,i:t,j:r},o=this.__chart__||i;this.__chart__=i,Ka?e.select(this).transition().each("start.brush",(function(){t=o.i,r=o.j,l=o.x,s=o.y,a({type:"brushstart"})})).tween("brush:brush",(function(){var e=br(l,i.x),n=br(s,i.y);return t=r=null,function(t){l=i.x=e(t),s=i.y=n(t),a({type:"brush",mode:"resize"})}})).each("end.brush",(function(){t=i.i,r=i.j,a({type:"brush",mode:"resize"}),a({type:"brushend"})})):(a({type:"brushstart"}),a({type:"brush",mode:"resize"}),a({type:"brushend"}))}))},d.x=function(e){return arguments.length?(f=ui[!(a=e)<<1|!i],d):a},d.y=function(e){return arguments.length?(f=ui[!a<<1|!(i=e)],d):i},d.clamp=function(e){return arguments.length?(a&&i?(c=!!e[0],u=!!e[1]):a?c=!!e:i&&(u=!!e),d):a&&i?[c,u]:a?c:i?u:null},d.extent=function(e){var n,o,c,u,f;return arguments.length?(a&&(n=e[0],o=e[1],i&&(n=n[0],o=o[0]),t=[n,o],a.invert&&(n=a(n),o=a(o)),o<n&&(f=n,n=o,o=f),n==l[0]&&o==l[1]||(l=[n,o])),i&&(c=e[0],u=e[1],a&&(c=c[1],u=u[1]),r=[c,u],i.invert&&(c=i(c),u=i(u)),u<c&&(f=c,c=u,u=f),c==s[0]&&u==s[1]||(s=[c,u])),d):(a&&(t?(n=t[0],o=t[1]):(n=l[0],o=l[1],a.invert&&(n=a.invert(n),o=a.invert(o)),o<n&&(f=n,n=o,o=f))),i&&(r?(c=r[0],u=r[1]):(c=s[0],u=s[1],i.invert&&(c=i.invert(c),u=i.invert(u)),u<c&&(f=c,c=u,u=f))),a&&i?[[n,c],[o,u]]:a?[n,o]:i&&[c,u])},d.clear=function(){return d.empty()||(l=[0,0],s=[0,0],t=r=null),d},d.empty=function(){return!!a&&l[0]==l[1]||!!i&&s[0]==s[1]},e.rebind(d,n,"on")};var ci={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},ui=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];function fi(e){return JSON.parse(e.responseText)}function di(e){var t=a.createRange();return t.selectNode(a.body),t.createContextualFragment(e.responseText)}e.text=dt((function(e){return e.responseText})),e.json=function(e,t){return pt(e,"application/json",fi,t)},e.html=function(e,t){return pt(e,"text/html",di,t)},e.xml=dt((function(e){return e.responseXML})),"object"==typeof t&&t.exports?t.exports=e:this.d3=e}).apply(self)},{}],21:[function(e,t,n){(function(r){(function(){"use strict";var n=e("object-assign");function a(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,a=0,i=Math.min(r,n);a<i;++a)if(e[a]!==t[a]){r=e[a],n=t[a];break}return r<n?-1:n<r?1:0}function i(e){return r.Buffer&&"function"==typeof r.Buffer.isBuffer?r.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var o=e("util/"),l=Object.prototype.hasOwnProperty,s=Array.prototype.slice,c="foo"===function(){}.name;function u(e){return Object.prototype.toString.call(e)}function f(e){return!i(e)&&"function"==typeof r.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer)))}var d=t.exports=v,p=/\s*function\s+([^\(\s]*)\s*/;function h(e){if(o.isFunction(e)){if(c)return e.name;var t=e.toString().match(p);return t&&t[1]}}function m(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function y(e){if(c||!o.isFunction(e))return o.inspect(e);var t=h(e);return"[Function"+(t?": "+t:"")+"]"}function g(e,t,r,n,a){throw new d.AssertionError({message:r,actual:e,expected:t,operator:n,stackStartFunction:a})}function v(e,t){e||g(e,!0,t,"==",d.ok)}function x(e,t,r,n){if(e===t)return!0;if(i(e)&&i(t))return 0===a(e,t);if(o.isDate(e)&&o.isDate(t))return e.getTime()===t.getTime();if(o.isRegExp(e)&&o.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(f(e)&&f(t)&&u(e)===u(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===a(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(i(e)!==i(t))return!1;var l=(n=n||{actual:[],expected:[]}).actual.indexOf(e);return-1!==l&&l===n.expected.indexOf(t)||(n.actual.push(e),n.expected.push(t),function(e,t,r,n){if(null==e||null==t)return!1;if(o.isPrimitive(e)||o.isPrimitive(t))return e===t;if(r&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var a=b(e),i=b(t);if(a&&!i||!a&&i)return!1;if(a)return x(e=s.call(e),t=s.call(t),r);var l,c,u=T(e),f=T(t);if(u.length!==f.length)return!1;for(u.sort(),f.sort(),c=u.length-1;c>=0;c--)if(u[c]!==f[c])return!1;for(c=u.length-1;c>=0;c--)if(!x(e[l=u[c]],t[l],r,n))return!1;return!0}(e,t,r,n))}return r?e===t:e==t}function b(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function _(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function w(e,t,r,n){var a;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),a=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!a&&g(a,r,"Missing expected exception"+n);var i="string"==typeof n,l=!e&&a&&!r;if((!e&&o.isError(a)&&i&&_(a,r)||l)&&g(a,r,"Got unwanted exception"+n),e&&a&&r&&!_(a,r)||!e&&a)throw a}d.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return m(y(e.actual),128)+" "+e.operator+" "+m(y(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,a=h(t),i=n.indexOf("\n"+a);if(i>=0){var o=n.indexOf("\n",i+1);n=n.substring(o+1)}this.stack=n}}},o.inherits(d.AssertionError,Error),d.fail=g,d.ok=v,d.equal=function(e,t,r){e!=t&&g(e,t,r,"==",d.equal)},d.notEqual=function(e,t,r){e==t&&g(e,t,r,"!=",d.notEqual)},d.deepEqual=function(e,t,r){x(e,t,!1)||g(e,t,r,"deepEqual",d.deepEqual)},d.deepStrictEqual=function(e,t,r){x(e,t,!0)||g(e,t,r,"deepStrictEqual",d.deepStrictEqual)},d.notDeepEqual=function(e,t,r){x(e,t,!1)&&g(e,t,r,"notDeepEqual",d.notDeepEqual)},d.notDeepStrictEqual=function e(t,r,n){x(t,r,!0)&&g(t,r,n,"notDeepStrictEqual",e)},d.strictEqual=function(e,t,r){e!==t&&g(e,t,r,"===",d.strictEqual)},d.notStrictEqual=function(e,t,r){e===t&&g(e,t,r,"!==",d.notStrictEqual)},d.throws=function(e,t,r){w(!0,e,t,r)},d.doesNotThrow=function(e,t,r){w(!1,e,t,r)},d.ifError=function(e){if(e)throw e},d.strict=n((function e(t,r){t||g(t,!0,r,"==",e)}),d,{equal:d.strictEqual,deepEqual:d.deepStrictEqual,notEqual:d.notStrictEqual,notDeepEqual:d.notDeepStrictEqual}),d.strict.strict=d.strict;var T=Object.keys||function(e){var t=[];for(var r in e)l.call(e,r)&&t.push(r);return t}}).call(this)}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"object-assign":73,"util/":24}],22:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],23:[function(e,t,r){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],24:[function(e,t,n){(function(t,r){(function(){var a=/%[sdj%]/g;n.format=function(e){if(!g(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(l(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,i=n.length,o=String(e).replace(a,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),s=n[r];r<i;s=n[++r])m(s)||!b(s)?o+=" "+s:o+=" "+l(s);return o},n.deprecate=function(e,a){if(v(r.process))return function(){return n.deprecate(e,a).apply(this,arguments)};if(!0===t.noDeprecation)return e;var i=!1;return function(){if(!i){if(t.throwDeprecation)throw new Error(a);t.traceDeprecation?console.trace(a):console.error(a),i=!0}return e.apply(this,arguments)}};var i,o={};function l(e,t){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(t)?r.showHidden=t:t&&n._extend(r,t),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=s),u(r,e,r.depth)}function s(e,t){var r=l.styles[t];return r?"["+l.colors[r][0]+"m"+e+"["+l.colors[r][1]+"m":e}function c(e,t){return e}function u(e,t,r){if(e.customInspect&&t&&T(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var a=t.inspect(r,e);return g(a)||(a=u(e,a,r)),a}var i=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(g(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return y(t)?e.stylize(""+t,"number"):h(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}(e,t);if(i)return i;var o=Object.keys(t),l=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),w(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return f(t);if(0===o.length){if(T(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(x(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(_(t))return e.stylize(Date.prototype.toString.call(t),"date");if(w(t))return f(t)}var c,b="",M=!1,k=["{","}"];return p(t)&&(M=!0,k=["[","]"]),T(t)&&(b=" [Function"+(t.name?": "+t.name:"")+"]"),x(t)&&(b=" "+RegExp.prototype.toString.call(t)),_(t)&&(b=" "+Date.prototype.toUTCString.call(t)),w(t)&&(b=" "+f(t)),0!==o.length||M&&0!=t.length?r<0?x(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=M?function(e,t,r,n,a){for(var i=[],o=0,l=t.length;o<l;++o)S(t,String(o))?i.push(d(e,t,r,n,String(o),!0)):i.push("");return a.forEach((function(a){a.match(/^\d+$/)||i.push(d(e,t,r,n,a,!0))})),i}(e,t,r,l,o):o.map((function(n){return d(e,t,r,l,n,M)})),e.seen.pop(),function(e,t,r){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(c,b,k)):k[0]+b+k[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,a,i){var o,l,s;if((s=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]}).get?l=s.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):s.set&&(l=e.stylize("[Setter]","special")),S(n,a)||(o="["+a+"]"),l||(e.seen.indexOf(s.value)<0?(l=m(r)?u(e,s.value,null):u(e,s.value,r-1)).indexOf("\n")>-1&&(l=i?l.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+l.split("\n").map((function(e){return" "+e})).join("\n")):l=e.stylize("[Circular]","special")),v(o)){if(i&&a.match(/^\d+$/))return l;(o=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function p(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function m(e){return null===e}function y(e){return"number"==typeof e}function g(e){return"string"==typeof e}function v(e){return void 0===e}function x(e){return b(e)&&"[object RegExp]"===M(e)}function b(e){return"object"==typeof e&&null!==e}function _(e){return b(e)&&"[object Date]"===M(e)}function w(e){return b(e)&&("[object Error]"===M(e)||e instanceof Error)}function T(e){return"function"==typeof e}function M(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(v(i)&&(i=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var r=t.pid;o[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else o[e]=function(){};return o[e]},n.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=p,n.isBoolean=h,n.isNull=m,n.isNullOrUndefined=function(e){return null==e},n.isNumber=y,n.isString=g,n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=v,n.isRegExp=x,n.isObject=b,n.isDate=_,n.isError=w,n.isFunction=T,n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e("./support/isBuffer");var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function L(){var e=new Date,t=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":");return[e.getDate(),A[e.getMonth()],t].join(" ")}function S(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){console.log("%s - %s",L(),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!b(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this)}).call(this,e("_process"),void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":23,_process:98,inherits:22}],25:[function(e,t,r){"use strict";r.byteLength=function(e){var t=c(e),r=t[0],n=t[1];return 3*(r+n)/4-n},r.toByteArray=function(e){var t,r,n=c(e),o=n[0],l=n[1],s=new i(function(e,t,r){return 3*(t+r)/4-r}(0,o,l)),u=0,f=l>0?o-4:o;for(r=0;r<f;r+=4)t=a[e.charCodeAt(r)]<<18|a[e.charCodeAt(r+1)]<<12|a[e.charCodeAt(r+2)]<<6|a[e.charCodeAt(r+3)],s[u++]=t>>16&255,s[u++]=t>>8&255,s[u++]=255&t;return 2===l&&(t=a[e.charCodeAt(r)]<<2|a[e.charCodeAt(r+1)]>>4,s[u++]=255&t),1===l&&(t=a[e.charCodeAt(r)]<<10|a[e.charCodeAt(r+1)]<<4|a[e.charCodeAt(r+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t),s},r.fromByteArray=function(e){for(var t,r=e.length,a=r%3,i=[],o=16383,l=0,s=r-a;l<s;l+=o)i.push(u(e,l,l+o>s?s:l+o));return 1===a?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")};for(var n=[],a=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,s=o.length;l<s;++l)n[l]=o[l],a[o.charCodeAt(l)]=l;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function u(e,t,r){for(var a,i=[],o=t;o<r;o+=3)a=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(n[(l=a)>>18&63]+n[l>>12&63]+n[l>>6&63]+n[63&l]);var l;return i.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},{}],26:[function(e,t,r){},{}],27:[function(e,t,r){"use strict";var n,a="object"==typeof Reflect?Reflect:null,i=a&&"function"==typeof a.apply?a.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}t.exports=l,t.exports.once=function(e,t){return new Promise((function(r,n){function a(){void 0!==i&&e.removeListener("error",i),r([].slice.call(arguments))}var i;"error"!==t&&(i=function(r){e.removeListener(t,a),n(r)},e.once("error",i)),e.once(t,a)}))},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var s=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function f(e,t,r,n){var a,i,o,l;if(c(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),o=i[t]),void 0===o)o=i[t]=r,++e._eventsCount;else if("function"==typeof o?o=i[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(a=u(e))>0&&o.length>a&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,l=s,console&&console.warn&&console.warn(l)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=d.bind(n);return a.listener=r,n.wrapFn=a,a}function h(e,t,r){var n=e._events;if(void 0===n)return[];var a=n[t];return void 0===a?[]:"function"==typeof a?r?[a.listener||a]:[a]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(a):y(a,a.length)}function m(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function y(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},l.prototype.getMaxListeners=function(){return u(this)},l.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,a=this._events;if(void 0!==a)n=n&&void 0===a.error;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=a[e];if(void 0===s)return!1;if("function"==typeof s)i(s,this,t);else{var c=s.length,u=y(s,c);for(r=0;r<c;++r)i(u[r],this,t)}return!0},l.prototype.addListener=function(e,t){return f(this,e,t,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(e,t){return f(this,e,t,!0)},l.prototype.once=function(e,t){return c(t),this.on(e,p(this,e,t)),this},l.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,p(this,e,t)),this},l.prototype.removeListener=function(e,t){var r,n,a,i,o;if(c(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(a=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){o=r[i].listener,a=i;break}if(a<0)return this;0===a?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,a),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var a,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(a=i[n])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},l.prototype.listeners=function(e){return h(this,e,!0)},l.prototype.rawListeners=function(e){return h(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},l.prototype.listenerCount=m,l.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},{}],28:[function(e,t,r){(function(t){(function(){"use strict";var t=e("base64-js"),n=e("ieee754");r.Buffer=o,r.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},r.INSPECT_MAX_BYTES=50;var a=2147483647;function i(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=o.prototype,t}function o(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!o.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|d(e,t),n=i(r),a=n.write(e,t);return a!==r&&(n=n.slice(0,a)),n}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r)).__proto__=o.prototype,n}(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return o.from(n,t,r);var a=function(e){if(o.isBuffer(e)){var t=0|f(e.length),r=i(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||B(e.length)?i(0):u(e):"Buffer"===e.type&&Array.isArray(e.data)?u(e.data):void 0}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function s(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 c(e){return s(e),i(e<0?0:0|f(e))}function u(e){for(var t=e.length<0?0:0|f(e.length),r=i(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function f(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function d(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(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);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return I(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return N(e).length;default:if(a)return n?-1:I(e).length;t=(""+t).toLowerCase(),a=!0}}function p(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return S(this,t,r);case"utf8":case"utf-8":return M(this,t,r);case"ascii":return A(this,t,r);case"latin1":case"binary":return L(this,t,r);case"base64":return T(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function h(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,a){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),B(r=+r)&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0){if(!a)return-1;r=0}if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,a);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,a);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,a){var i,o=1,l=e.length,s=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,l/=2,s/=2,r/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var u=-1;for(i=r;i<l;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===s)return u*o}else-1!==u&&(i-=i-u),u=-1}else for(r+s>l&&(r=l-s),i=r;i>=0;i--){for(var f=!0,d=0;d<s;d++)if(c(e,i+d)!==c(t,d)){f=!1;break}if(f)return i}return-1}function g(e,t,r,n){r=Number(r)||0;var a=e.length-r;n?(n=Number(n))>a&&(n=a):n=a;var i=t.length;n>i/2&&(n=i/2);for(var o=0;o<n;++o){var l=parseInt(t.substr(2*o,2),16);if(B(l))return o;e[r+o]=l}return o}function v(e,t,r,n){return F(I(t,e.length-r),e,r,n)}function x(e,t,r,n){return F(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function b(e,t,r,n){return x(e,t,r,n)}function _(e,t,r,n){return F(N(t),e,r,n)}function w(e,t,r,n){return F(function(e,t){for(var r,n,a,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,a=r%256,i.push(a),i.push(n);return i}(t,e.length-r),e,r,n)}function T(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function M(e,t,r){r=Math.min(e.length,r);for(var n=[],a=t;a<r;){var i,o,l,s,c=e[a],u=null,f=c>239?4:c>223?3:c>191?2:1;if(a+f<=r)switch(f){case 1:c<128&&(u=c);break;case 2:128==(192&(i=e[a+1]))&&(s=(31&c)<<6|63&i)>127&&(u=s);break;case 3:i=e[a+1],o=e[a+2],128==(192&i)&&128==(192&o)&&(s=(15&c)<<12|(63&i)<<6|63&o)>2047&&(s<55296||s>57343)&&(u=s);break;case 4:i=e[a+1],o=e[a+2],l=e[a+3],128==(192&i)&&128==(192&o)&&128==(192&l)&&(s=(15&c)<<18|(63&i)<<12|(63&o)<<6|63&l)>65535&&s<1114112&&(u=s)}null===u?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),a+=f}return function(e){var t=e.length;if(t<=k)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=k));return r}(n)}r.kMaxLength=a,o.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),o.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(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),o.poolSize=8192,o.from=function(e,t,r){return l(e,t,r)},o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,o.alloc=function(e,t,r){return function(e,t,r){return s(e),e<=0?i(e):void 0!==t?"string"==typeof r?i(e).fill(t,r):i(e).fill(t):i(e)}(e,t,r)},o.allocUnsafe=function(e){return c(e)},o.allocUnsafeSlow=function(e){return c(e)},o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(j(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),j(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,a=0,i=Math.min(r,n);a<i;++a)if(e[a]!==t[a]){r=e[a],n=t[a];break}return r<n?-1:n<r?1:0},o.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}},o.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=o.allocUnsafe(t),a=0;for(r=0;r<e.length;++r){var i=e[r];if(j(i,Uint8Array)&&(i=o.from(i)),!o.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,a),a+=i.length}return n},o.byteLength=d,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)h(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)h(this,t,t+3),h(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},o.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?M(this,0,e):p.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},o.prototype.compare=function(e,t,r,n,a){if(j(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.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===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(a>>>=0)-(n>>>=0),l=(r>>>=0)-(t>>>=0),s=Math.min(i,l),c=this.slice(n,a),u=e.slice(t,r),f=0;f<s;++f)if(c[f]!==u[f]){i=c[f],l=u[f];break}return i<l?-1:l<i?1:0},o.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},o.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},o.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},o.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var a=this.length-t;if((void 0===r||r>a)&&(r=a),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return g(this,e,t,r);case"utf8":case"utf-8":return v(this,e,t,r);case"ascii":return x(this,e,t,r);case"latin1":case"binary":return b(this,e,t,r);case"base64":return _(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function A(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(127&e[a]);return n}function L(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(e[a]);return n}function S(e,t,r){var n,a=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>a)&&(r=a);for(var i="",o=t;o<r;++o)i+=(n=e[o])<16?"0"+n.toString(16):n.toString(16);return i}function O(e,t,r){for(var n=e.slice(t,r),a="",i=0;i<n.length;i+=2)a+=String.fromCharCode(n[i]+256*n[i+1]);return a}function D(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function C(e,t,r,n,a,i){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function E(e,t,r,n,a,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function P(e,t,r,a,i){return t=+t,r>>>=0,i||E(e,0,r,4),n.write(e,t,r,a,23,4),r+4}function R(e,t,r,a,i){return t=+t,r>>>=0,i||E(e,0,r,8),n.write(e,t,r,a,52,8),r+8}o.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return n.__proto__=o.prototype,n},o.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);for(var n=this[e],a=1,i=0;++i<t&&(a*=256);)n+=this[e+i]*a;return n},o.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);for(var n=this[e+--t],a=1;t>0&&(a*=256);)n+=this[e+--t]*a;return n},o.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);for(var n=this[e],a=1,i=0;++i<t&&(a*=256);)n+=this[e+i]*a;return n>=(a*=128)&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);for(var n=t,a=1,i=this[e+--n];n>0&&(a*=256);)i+=this[e+--n]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},o.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),n.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),n.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),n.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),n.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||C(this,e,t,r,Math.pow(2,8*r)-1,0);var a=1,i=0;for(this[t]=255&e;++i<r&&(a*=256);)this[t+i]=e/a&255;return t+r},o.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||C(this,e,t,r,Math.pow(2,8*r)-1,0);var a=r-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+r},o.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(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},o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(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},o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var a=Math.pow(2,8*r-1);C(this,e,t,r,a-1,-a)}var i=0,o=1,l=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===l&&0!==this[t+i-1]&&(l=1),this[t+i]=(e/o>>0)-l&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var a=Math.pow(2,8*r-1);C(this,e,t,r,a-1,-a)}var i=r-1,o=1,l=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/o>>0)-l&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(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},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(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},o.prototype.writeFloatLE=function(e,t,r){return P(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return P(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return R(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return R(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(!o.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var a=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var i=a-1;i>=0;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return a},o.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!o.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var a=e.charCodeAt(0);("utf8"===n&&a<128||"latin1"===n)&&(e=a)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var l=o.isBuffer(e)?e:o.from(e,n),s=l.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=l[i%s]}return this};var z=/[^+/0-9A-Za-z-_]/g;function I(e,t){var r;t=t||1/0;for(var n=e.length,a=null,i=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!a){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&i.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),a=r;continue}r=65536+(a-55296<<10|r-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function N(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function F(e,t,r,n){for(var a=0;a<n&&!(a+r>=t.length||a>=e.length);++a)t[a+r]=e[a];return a}function j(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function B(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":25,buffer:28,ieee754:66}],29:[function(e,t,r){var n,a;n=this,a=function(e){"use strict";function t(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function r(e){return(e=t(Math.abs(e)))?e[1]:NaN}var n,a=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(e){if(!(t=a.exec(e)))throw new Error("invalid format: "+e);var t;return new o({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 o(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 l(e,r){var n=t(e,r);if(!n)return e+"";var a=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+a:a.length>i+1?a.slice(0,i+1)+"."+a.slice(i+1):a+new Array(i-a.length+2).join("0")}i.prototype=o.prototype,o.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};var s={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return l(100*e,t)},r:l,s:function(e,r){var a=t(e,r);if(!a)return e+"";var i=a[0],o=a[1],l=o-(n=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return l===s?i:l>s?i+new Array(l-s+1).join("0"):l>0?i.slice(0,l)+"."+i.slice(l):"0."+new Array(1-l).join("0")+t(e,Math.max(0,r+l-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function c(e){return e}var u,f=Array.prototype.map,d=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function p(e){var t,a,o=void 0===e.grouping||void 0===e.thousands?c:(t=f.call(e.grouping,Number),a=e.thousands+"",function(e,r){for(var n=e.length,i=[],o=0,l=t[0],s=0;n>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),i.push(e.substring(n-=l,n+l)),!((s+=l+1)>r));)l=t[o=(o+1)%t.length];return i.reverse().join(a)}),l=void 0===e.currency?"":e.currency[0]+"",u=void 0===e.currency?"":e.currency[1]+"",p=void 0===e.decimal?".":e.decimal+"",h=void 0===e.numerals?c:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(f.call(e.numerals,String)),m=void 0===e.percent?"%":e.percent+"",y=void 0===e.minus?"-":e.minus+"",g=void 0===e.nan?"NaN":e.nan+"";function v(e){var t=(e=i(e)).fill,r=e.align,a=e.sign,c=e.symbol,f=e.zero,v=e.width,x=e.comma,b=e.precision,_=e.trim,w=e.type;"n"===w?(x=!0,w="g"):s[w]||(void 0===b&&(b=12),_=!0,w="g"),(f||"0"===t&&"="===r)&&(f=!0,t="0",r="=");var T="$"===c?l:"#"===c&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",M="$"===c?u:/[%p]/.test(w)?m:"",k=s[w],A=/[defgprs%]/.test(w);function L(e){var i,l,s,c=T,u=M;if("c"===w)u=k(e)+u,e="";else{var m=(e=+e)<0||1/e<0;if(e=isNaN(e)?g:k(Math.abs(e),b),_&&(e=function(e){e:for(var t,r=e.length,n=1,a=-1;n<r;++n)switch(e[n]){case".":a=t=n;break;case"0":0===a&&(a=n),t=n;break;default:if(!+e[n])break e;a>0&&(a=0)}return a>0?e.slice(0,a)+e.slice(t+1):e}(e)),m&&0==+e&&"+"!==a&&(m=!1),c=(m?"("===a?a:y:"-"===a||"("===a?"":a)+c,u=("s"===w?d[8+n/3]:"")+u+(m&&"("===a?")":""),A)for(i=-1,l=e.length;++i<l;)if(48>(s=e.charCodeAt(i))||s>57){u=(46===s?p+e.slice(i+1):e.slice(i))+u,e=e.slice(0,i);break}}x&&!f&&(e=o(e,1/0));var L=c.length+e.length+u.length,S=L<v?new Array(v-L+1).join(t):"";switch(x&&f&&(e=o(S+e,S.length?v-u.length:1/0),S=""),r){case"<":e=c+e+u+S;break;case"=":e=c+S+e+u;break;case"^":e=S.slice(0,L=S.length>>1)+c+e+u+S.slice(L);break;default:e=S+c+e+u}return h(e)}return b=void 0===b?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),L.toString=function(){return e+""},L}return{format:v,formatPrefix:function(e,t){var n=v(((e=i(e)).type="f",e)),a=3*Math.max(-8,Math.min(8,Math.floor(r(t)/3))),o=Math.pow(10,-a),l=d[8+a/3];return function(e){return n(o*e)+l}}}}function h(t){return u=p(t),e.format=u.format,e.formatPrefix=u.formatPrefix,u}h({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),e.FormatSpecifier=o,e.formatDefaultLocale=h,e.formatLocale=p,e.formatSpecifier=i,e.precisionFixed=function(e){return Math.max(0,-r(Math.abs(e)))},e.precisionPrefix=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(r(t)/3)))-r(Math.abs(e)))},e.precisionRound=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,r(t)-r(e))+1},Object.defineProperty(e,"__esModule",{value:!0})},a("object"==typeof r&&void 0!==t?r:(n="undefined"!=typeof globalThis?globalThis:n||self).d3=n.d3||{})},{}],30:[function(e,t,r){var n,a;n=this,a=function(e,t){"use strict";function r(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 n(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 a(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function i(e){var i=e.dateTime,o=e.date,s=e.time,c=e.periods,u=e.days,f=e.shortDays,d=e.months,ve=e.shortMonths,xe=p(c),be=h(c),_e=p(u),we=h(u),Te=p(f),Me=h(f),ke=p(d),Ae=h(d),Le=p(ve),Se=h(ve),Oe={a:function(e){return f[e.getDay()]},A:function(e){return u[e.getDay()]},b:function(e){return ve[e.getMonth()]},B:function(e){return d[e.getMonth()]},c:null,d:z,e:z,f:B,H:I,I:N,j:F,L:j,m:H,M:U,p:function(e){return c[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:ye,s:ge,S:Y,u:q,U:V,V:G,w:Z,W,x:null,X:null,y:X,Y:J,Z:K,"%":me},De={a:function(e){return f[e.getUTCDay()]},A:function(e){return u[e.getUTCDay()]},b:function(e){return ve[e.getUTCMonth()]},B:function(e){return d[e.getUTCMonth()]},c:null,d:Q,e:Q,f:ne,H:$,I:ee,j:te,L:re,m:ae,M:ie,p:function(e){return c[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:ye,s:ge,S:oe,u:le,U:se,V:ce,w:ue,W:fe,x:null,X:null,y:de,Y:pe,Z:he,"%":me},Ce={a:function(e,t,r){var n=Te.exec(t.slice(r));return n?(e.w=Me[n[0].toLowerCase()],r+n[0].length):-1},A:function(e,t,r){var n=_e.exec(t.slice(r));return n?(e.w=we[n[0].toLowerCase()],r+n[0].length):-1},b:function(e,t,r){var n=Le.exec(t.slice(r));return n?(e.m=Se[n[0].toLowerCase()],r+n[0].length):-1},B:function(e,t,r){var n=ke.exec(t.slice(r));return n?(e.m=Ae[n[0].toLowerCase()],r+n[0].length):-1},c:function(e,t,r){return Re(e,i,t,r)},d:k,e:k,f:C,H:L,I:L,j:A,L:D,m:M,M:S,p:function(e,t,r){var n=xe.exec(t.slice(r));return n?(e.p=be[n[0].toLowerCase()],r+n[0].length):-1},q:T,Q:P,s:R,S:O,u:y,U:g,V:v,w:m,W:x,x:function(e,t,r){return Re(e,o,t,r)},X:function(e,t,r){return Re(e,s,t,r)},y:_,Y:b,Z:w,"%":E};function Ee(e,t){return function(r){var n,a,i,o=[],s=-1,c=0,u=e.length;for(r instanceof Date||(r=new Date(+r));++s<u;)37===e.charCodeAt(s)&&(o.push(e.slice(c,s)),null!=(a=l[n=e.charAt(++s)])?n=e.charAt(++s):a="e"===n?" ":"0",(i=t[n])&&(n=i(r,a)),o.push(n),c=s+1);return o.push(e.slice(c,s)),o.join("")}}function Pe(e,i){return function(o){var l,s,c=a(1900,void 0,1);if(Re(c,e,o+="",0)!=o.length)return null;if("Q"in c)return new Date(c.Q);if("s"in c)return new Date(1e3*c.s+("L"in c?c.L:0));if(i&&!("Z"in c)&&(c.Z=0),"p"in c&&(c.H=c.H%12+12*c.p),void 0===c.m&&(c.m="q"in c?c.q:0),"V"in c){if(c.V<1||c.V>53)return null;"w"in c||(c.w=1),"Z"in c?(s=(l=n(a(c.y,0,1))).getUTCDay(),l=s>4||0===s?t.utcMonday.ceil(l):t.utcMonday(l),l=t.utcDay.offset(l,7*(c.V-1)),c.y=l.getUTCFullYear(),c.m=l.getUTCMonth(),c.d=l.getUTCDate()+(c.w+6)%7):(s=(l=r(a(c.y,0,1))).getDay(),l=s>4||0===s?t.timeMonday.ceil(l):t.timeMonday(l),l=t.timeDay.offset(l,7*(c.V-1)),c.y=l.getFullYear(),c.m=l.getMonth(),c.d=l.getDate()+(c.w+6)%7)}else("W"in c||"U"in c)&&("w"in c||(c.w="u"in c?c.u%7:"W"in c?1:0),s="Z"in c?n(a(c.y,0,1)).getUTCDay():r(a(c.y,0,1)).getDay(),c.m=0,c.d="W"in c?(c.w+6)%7+7*c.W-(s+5)%7:c.w+7*c.U-(s+6)%7);return"Z"in c?(c.H+=c.Z/100|0,c.M+=c.Z%100,n(c)):r(c)}}function Re(e,t,r,n){for(var a,i,o=0,s=t.length,c=r.length;o<s;){if(n>=c)return-1;if(37===(a=t.charCodeAt(o++))){if(a=t.charAt(o++),!(i=Ce[a in l?t.charAt(o++):a])||(n=i(e,r,n))<0)return-1}else if(a!=r.charCodeAt(n++))return-1}return n}return Oe.x=Ee(o,Oe),Oe.X=Ee(s,Oe),Oe.c=Ee(i,Oe),De.x=Ee(o,De),De.X=Ee(s,De),De.c=Ee(i,De),{format:function(e){var t=Ee(e+="",Oe);return t.toString=function(){return e},t},parse:function(e){var t=Pe(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=Ee(e+="",De);return t.toString=function(){return e},t},utcParse:function(e){var t=Pe(e+="",!0);return t.toString=function(){return e},t}}}var o,l={"-":"",_:" ",0:"0"},s=/^\s*\d+/,c=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i<r?new Array(r-i+1).join(t)+a:a)}function d(e){return e.replace(u,"\\$&")}function p(e){return new RegExp("^(?:"+e.map(d).join("|")+")","i")}function h(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t}function m(e,t,r){var n=s.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function y(e,t,r){var n=s.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function g(e,t,r){var n=s.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function v(e,t,r){var n=s.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function x(e,t,r){var n=s.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function b(e,t,r){var n=s.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function _(e,t,r){var n=s.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function w(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function T(e,t,r){var n=s.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function M(e,t,r){var n=s.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function k(e,t,r){var n=s.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function A(e,t,r){var n=s.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function L(e,t,r){var n=s.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function S(e,t,r){var n=s.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function O(e,t,r){var n=s.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function D(e,t,r){var n=s.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function C(e,t,r){var n=s.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function E(e,t,r){var n=c.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function P(e,t,r){var n=s.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function R(e,t,r){var n=s.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function z(e,t){return f(e.getDate(),t,2)}function I(e,t){return f(e.getHours(),t,2)}function N(e,t){return f(e.getHours()%12||12,t,2)}function F(e,r){return f(1+t.timeDay.count(t.timeYear(e),e),r,3)}function j(e,t){return f(e.getMilliseconds(),t,3)}function B(e,t){return j(e,t)+"000"}function H(e,t){return f(e.getMonth()+1,t,2)}function U(e,t){return f(e.getMinutes(),t,2)}function Y(e,t){return f(e.getSeconds(),t,2)}function q(e){var t=e.getDay();return 0===t?7:t}function V(e,r){return f(t.timeSunday.count(t.timeYear(e)-1,e),r,2)}function G(e,r){var n=e.getDay();return e=n>=4||0===n?t.timeThursday(e):t.timeThursday.ceil(e),f(t.timeThursday.count(t.timeYear(e),e)+(4===t.timeYear(e).getDay()),r,2)}function Z(e){return e.getDay()}function W(e,r){return f(t.timeMonday.count(t.timeYear(e)-1,e),r,2)}function X(e,t){return f(e.getFullYear()%100,t,2)}function J(e,t){return f(e.getFullYear()%1e4,t,4)}function K(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+f(t/60|0,"0",2)+f(t%60,"0",2)}function Q(e,t){return f(e.getUTCDate(),t,2)}function $(e,t){return f(e.getUTCHours(),t,2)}function ee(e,t){return f(e.getUTCHours()%12||12,t,2)}function te(e,r){return f(1+t.utcDay.count(t.utcYear(e),e),r,3)}function re(e,t){return f(e.getUTCMilliseconds(),t,3)}function ne(e,t){return re(e,t)+"000"}function ae(e,t){return f(e.getUTCMonth()+1,t,2)}function ie(e,t){return f(e.getUTCMinutes(),t,2)}function oe(e,t){return f(e.getUTCSeconds(),t,2)}function le(e){var t=e.getUTCDay();return 0===t?7:t}function se(e,r){return f(t.utcSunday.count(t.utcYear(e)-1,e),r,2)}function ce(e,r){var n=e.getUTCDay();return e=n>=4||0===n?t.utcThursday(e):t.utcThursday.ceil(e),f(t.utcThursday.count(t.utcYear(e),e)+(4===t.utcYear(e).getUTCDay()),r,2)}function ue(e){return e.getUTCDay()}function fe(e,r){return f(t.utcMonday.count(t.utcYear(e)-1,e),r,2)}function de(e,t){return f(e.getUTCFullYear()%100,t,2)}function pe(e,t){return f(e.getUTCFullYear()%1e4,t,4)}function he(){return"+0000"}function me(){return"%"}function ye(e){return+e}function ge(e){return Math.floor(+e/1e3)}function ve(t){return o=i(t),e.timeFormat=o.format,e.timeParse=o.parse,e.utcFormat=o.utcFormat,e.utcParse=o.utcParse,o}ve({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"]});var xe="%Y-%m-%dT%H:%M:%S.%LZ";var be=Date.prototype.toISOString?function(e){return e.toISOString()}:e.utcFormat(xe);var _e=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:e.utcParse(xe);e.isoFormat=be,e.isoParse=_e,e.timeFormatDefaultLocale=ve,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof r&&void 0!==t?a(r,e("d3-time")):a((n=n||self).d3=n.d3||{},n.d3)},{"d3-time":31}],31:[function(e,t,r){var n,a;n=this,a=function(e){"use strict";var t=new Date,r=new Date;function n(e,a,i,o){function l(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return l.floor=function(t){return e(t=new Date(+t)),t},l.ceil=function(t){return e(t=new Date(t-1)),a(t,1),e(t),t},l.round=function(e){var t=l(e),r=l.ceil(e);return e-t<r-e?t:r},l.offset=function(e,t){return a(e=new Date(+e),null==t?1:Math.floor(t)),e},l.range=function(t,r,n){var i,o=[];if(t=l.ceil(t),n=null==n?1:Math.floor(n),!(t<r&&n>0))return o;do{o.push(i=new Date(+t)),a(t,n),e(t)}while(i<t&&t<r);return o},l.filter=function(t){return n((function(r){if(r>=r)for(;e(r),!t(r);)r.setTime(r-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;a(e,-1),!t(e););else for(;--r>=0;)for(;a(e,1),!t(e););}))},i&&(l.count=function(n,a){return t.setTime(+n),r.setTime(+a),e(t),e(r),Math.floor(i(t,r))},l.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?l.filter(o?function(t){return o(t)%e==0}:function(t){return l.count(0,t)%e==0}):l:null}),l}var a=n((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));a.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?n((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,r){t.setTime(+t+r*e)}),(function(t,r){return(r-t)/e})):a:null};var i=a.range,o=1e3,l=6e4,s=36e5,c=864e5,u=6048e5,f=n((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*o)}),(function(e,t){return(t-e)/o}),(function(e){return e.getUTCSeconds()})),d=f.range,p=n((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*o)}),(function(e,t){e.setTime(+e+t*l)}),(function(e,t){return(t-e)/l}),(function(e){return e.getMinutes()})),h=p.range,m=n((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*o-e.getMinutes()*l)}),(function(e,t){e.setTime(+e+t*s)}),(function(e,t){return(t-e)/s}),(function(e){return e.getHours()})),y=m.range,g=n((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*l)/c}),(function(e){return e.getDate()-1})),v=g.range;function x(e){return n((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*l)/u}))}var b=x(0),_=x(1),w=x(2),T=x(3),M=x(4),k=x(5),A=x(6),L=b.range,S=_.range,O=w.range,D=T.range,C=M.range,E=k.range,P=A.range,R=n((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})),z=R.range,I=n((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));I.every=function(e){return isFinite(e=Math.floor(e))&&e>0?n((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,r){t.setFullYear(t.getFullYear()+r*e)})):null};var N=I.range,F=n((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*l)}),(function(e,t){return(t-e)/l}),(function(e){return e.getUTCMinutes()})),j=F.range,B=n((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*s)}),(function(e,t){return(t-e)/s}),(function(e){return e.getUTCHours()})),H=B.range,U=n((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/c}),(function(e){return e.getUTCDate()-1})),Y=U.range;function q(e){return n((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/u}))}var V=q(0),G=q(1),Z=q(2),W=q(3),X=q(4),J=q(5),K=q(6),Q=V.range,$=G.range,ee=Z.range,te=W.range,re=X.range,ne=J.range,ae=K.range,ie=n((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})),oe=ie.range,le=n((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));le.every=function(e){return isFinite(e=Math.floor(e))&&e>0?n((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})):null};var se=le.range;e.timeDay=g,e.timeDays=v,e.timeFriday=k,e.timeFridays=E,e.timeHour=m,e.timeHours=y,e.timeInterval=n,e.timeMillisecond=a,e.timeMilliseconds=i,e.timeMinute=p,e.timeMinutes=h,e.timeMonday=_,e.timeMondays=S,e.timeMonth=R,e.timeMonths=z,e.timeSaturday=A,e.timeSaturdays=P,e.timeSecond=f,e.timeSeconds=d,e.timeSunday=b,e.timeSundays=L,e.timeThursday=M,e.timeThursdays=C,e.timeTuesday=w,e.timeTuesdays=O,e.timeWednesday=T,e.timeWednesdays=D,e.timeWeek=b,e.timeWeeks=L,e.timeYear=I,e.timeYears=N,e.utcDay=U,e.utcDays=Y,e.utcFriday=J,e.utcFridays=ne,e.utcHour=B,e.utcHours=H,e.utcMillisecond=a,e.utcMilliseconds=i,e.utcMinute=F,e.utcMinutes=j,e.utcMonday=G,e.utcMondays=$,e.utcMonth=ie,e.utcMonths=oe,e.utcSaturday=K,e.utcSaturdays=ae,e.utcSecond=f,e.utcSeconds=d,e.utcSunday=V,e.utcSundays=Q,e.utcThursday=X,e.utcThursdays=re,e.utcTuesday=Z,e.utcTuesdays=ee,e.utcWednesday=W,e.utcWednesdays=te,e.utcWeek=V,e.utcWeeks=Q,e.utcYear=le,e.utcYears=se,Object.defineProperty(e,"__esModule",{value:!0})},a("object"==typeof r&&void 0!==t?r:(n=n||self).d3=n.d3||{})},{}],32:[function(e,t,r){arguments[4][31][0].apply(r,arguments)},{dup:31}],33:[function(e,t,r){"use strict";var n=e("is-string-blank");t.exports=function(e){var t=typeof e;if("string"===t){var r=e;if(0==(e=+e)&&n(r))return!1}else if("number"!==t)return!1;return e-e<1}},{"is-string-blank":70}],34:[function(e,t,r){t.exports=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],l=t[5],s=t[6],c=t[7],u=t[8],f=t[9],d=t[10],p=t[11],h=t[12],m=t[13],y=t[14],g=t[15];return e[0]=l*(d*g-p*y)-f*(s*g-c*y)+m*(s*p-c*d),e[1]=-(n*(d*g-p*y)-f*(a*g-i*y)+m*(a*p-i*d)),e[2]=n*(s*g-c*y)-l*(a*g-i*y)+m*(a*c-i*s),e[3]=-(n*(s*p-c*d)-l*(a*p-i*d)+f*(a*c-i*s)),e[4]=-(o*(d*g-p*y)-u*(s*g-c*y)+h*(s*p-c*d)),e[5]=r*(d*g-p*y)-u*(a*g-i*y)+h*(a*p-i*d),e[6]=-(r*(s*g-c*y)-o*(a*g-i*y)+h*(a*c-i*s)),e[7]=r*(s*p-c*d)-o*(a*p-i*d)+u*(a*c-i*s),e[8]=o*(f*g-p*m)-u*(l*g-c*m)+h*(l*p-c*f),e[9]=-(r*(f*g-p*m)-u*(n*g-i*m)+h*(n*p-i*f)),e[10]=r*(l*g-c*m)-o*(n*g-i*m)+h*(n*c-i*l),e[11]=-(r*(l*p-c*f)-o*(n*p-i*f)+u*(n*c-i*l)),e[12]=-(o*(f*y-d*m)-u*(l*y-s*m)+h*(l*d-s*f)),e[13]=r*(f*y-d*m)-u*(n*y-a*m)+h*(n*d-a*f),e[14]=-(r*(l*y-s*m)-o*(n*y-a*m)+h*(n*s-a*l)),e[15]=r*(l*d-s*f)-o*(n*d-a*f)+u*(n*s-a*l),e}},{}],35:[function(e,t,r){t.exports=function(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},{}],36:[function(e,t,r){t.exports=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},{}],37:[function(e,t,r){t.exports=function(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},{}],38:[function(e,t,r){t.exports=function(e){var t=e[0],r=e[1],n=e[2],a=e[3],i=e[4],o=e[5],l=e[6],s=e[7],c=e[8],u=e[9],f=e[10],d=e[11],p=e[12],h=e[13],m=e[14],y=e[15];return(t*o-r*i)*(f*y-d*m)-(t*l-n*i)*(u*y-d*h)+(t*s-a*i)*(u*m-f*h)+(r*l-n*o)*(c*y-d*p)-(r*s-a*o)*(c*m-f*p)+(n*s-a*l)*(c*h-u*p)}},{}],39:[function(e,t,r){t.exports=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=r+r,l=n+n,s=a+a,c=r*o,u=n*o,f=n*l,d=a*o,p=a*l,h=a*s,m=i*o,y=i*l,g=i*s;return e[0]=1-f-h,e[1]=u+g,e[2]=d-y,e[3]=0,e[4]=u-g,e[5]=1-c-h,e[6]=p+m,e[7]=0,e[8]=d+y,e[9]=p-m,e[10]=1-c-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},{}],40:[function(e,t,r){t.exports=function(e,t,r){var n,a,i,o=r[0],l=r[1],s=r[2],c=Math.sqrt(o*o+l*l+s*s);return Math.abs(c)<1e-6?null:(o*=c=1/c,l*=c,s*=c,n=Math.sin(t),i=1-(a=Math.cos(t)),e[0]=o*o*i+a,e[1]=l*o*i+s*n,e[2]=s*o*i-l*n,e[3]=0,e[4]=o*l*i-s*n,e[5]=l*l*i+a,e[6]=s*l*i+o*n,e[7]=0,e[8]=o*s*i+l*n,e[9]=l*s*i-o*n,e[10]=s*s*i+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}},{}],41:[function(e,t,r){t.exports=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],l=n+n,s=a+a,c=i+i,u=n*l,f=n*s,d=n*c,p=a*s,h=a*c,m=i*c,y=o*l,g=o*s,v=o*c;return e[0]=1-(p+m),e[1]=f+v,e[2]=d-g,e[3]=0,e[4]=f-v,e[5]=1-(u+m),e[6]=h+y,e[7]=0,e[8]=d+g,e[9]=h-y,e[10]=1-(u+p),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}},{}],42:[function(e,t,r){t.exports=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},{}],43:[function(e,t,r){t.exports=function(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}},{}],44:[function(e,t,r){t.exports=function(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},{}],45:[function(e,t,r){t.exports=function(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},{}],46:[function(e,t,r){t.exports=function(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},{}],47:[function(e,t,r){t.exports=function(e,t,r,n,a,i,o){var l=1/(r-t),s=1/(a-n),c=1/(i-o);return e[0]=2*i*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*i*s,e[6]=0,e[7]=0,e[8]=(r+t)*l,e[9]=(a+n)*s,e[10]=(o+i)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*c,e[15]=0,e}},{}],48:[function(e,t,r){t.exports=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},{}],49:[function(e,t,r){t.exports={create:e("./create"),clone:e("./clone"),copy:e("./copy"),identity:e("./identity"),transpose:e("./transpose"),invert:e("./invert"),adjoint:e("./adjoint"),determinant:e("./determinant"),multiply:e("./multiply"),translate:e("./translate"),scale:e("./scale"),rotate:e("./rotate"),rotateX:e("./rotateX"),rotateY:e("./rotateY"),rotateZ:e("./rotateZ"),fromRotation:e("./fromRotation"),fromRotationTranslation:e("./fromRotationTranslation"),fromScaling:e("./fromScaling"),fromTranslation:e("./fromTranslation"),fromXRotation:e("./fromXRotation"),fromYRotation:e("./fromYRotation"),fromZRotation:e("./fromZRotation"),fromQuat:e("./fromQuat"),frustum:e("./frustum"),perspective:e("./perspective"),perspectiveFromFieldOfView:e("./perspectiveFromFieldOfView"),ortho:e("./ortho"),lookAt:e("./lookAt"),str:e("./str")}},{"./adjoint":34,"./clone":35,"./copy":36,"./create":37,"./determinant":38,"./fromQuat":39,"./fromRotation":40,"./fromRotationTranslation":41,"./fromScaling":42,"./fromTranslation":43,"./fromXRotation":44,"./fromYRotation":45,"./fromZRotation":46,"./frustum":47,"./identity":48,"./invert":50,"./lookAt":51,"./multiply":52,"./ortho":53,"./perspective":54,"./perspectiveFromFieldOfView":55,"./rotate":56,"./rotateX":57,"./rotateY":58,"./rotateZ":59,"./scale":60,"./str":61,"./translate":62,"./transpose":63}],50:[function(e,t,r){t.exports=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],l=t[5],s=t[6],c=t[7],u=t[8],f=t[9],d=t[10],p=t[11],h=t[12],m=t[13],y=t[14],g=t[15],v=r*l-n*o,x=r*s-a*o,b=r*c-i*o,_=n*s-a*l,w=n*c-i*l,T=a*c-i*s,M=u*m-f*h,k=u*y-d*h,A=u*g-p*h,L=f*y-d*m,S=f*g-p*m,O=d*g-p*y,D=v*O-x*S+b*L+_*A-w*k+T*M;return D?(D=1/D,e[0]=(l*O-s*S+c*L)*D,e[1]=(a*S-n*O-i*L)*D,e[2]=(m*T-y*w+g*_)*D,e[3]=(d*w-f*T-p*_)*D,e[4]=(s*A-o*O-c*k)*D,e[5]=(r*O-a*A+i*k)*D,e[6]=(y*b-h*T-g*x)*D,e[7]=(u*T-d*b+p*x)*D,e[8]=(o*S-l*A+c*M)*D,e[9]=(n*A-r*S-i*M)*D,e[10]=(h*w-m*b+g*v)*D,e[11]=(f*b-u*w-p*v)*D,e[12]=(l*k-o*L-s*M)*D,e[13]=(r*L-n*k+a*M)*D,e[14]=(m*x-h*_-y*v)*D,e[15]=(u*_-f*x+d*v)*D,e):null}},{}],51:[function(e,t,r){var n=e("./identity");t.exports=function(e,t,r,a){var i,o,l,s,c,u,f,d,p,h,m=t[0],y=t[1],g=t[2],v=a[0],x=a[1],b=a[2],_=r[0],w=r[1],T=r[2];return Math.abs(m-_)<1e-6&&Math.abs(y-w)<1e-6&&Math.abs(g-T)<1e-6?n(e):(f=m-_,d=y-w,p=g-T,i=x*(p*=h=1/Math.sqrt(f*f+d*d+p*p))-b*(d*=h),o=b*(f*=h)-v*p,l=v*d-x*f,(h=Math.sqrt(i*i+o*o+l*l))?(i*=h=1/h,o*=h,l*=h):(i=0,o=0,l=0),s=d*l-p*o,c=p*i-f*l,u=f*o-d*i,(h=Math.sqrt(s*s+c*c+u*u))?(s*=h=1/h,c*=h,u*=h):(s=0,c=0,u=0),e[0]=i,e[1]=s,e[2]=f,e[3]=0,e[4]=o,e[5]=c,e[6]=d,e[7]=0,e[8]=l,e[9]=u,e[10]=p,e[11]=0,e[12]=-(i*m+o*y+l*g),e[13]=-(s*m+c*y+u*g),e[14]=-(f*m+d*y+p*g),e[15]=1,e)}},{"./identity":48}],52:[function(e,t,r){t.exports=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],l=t[4],s=t[5],c=t[6],u=t[7],f=t[8],d=t[9],p=t[10],h=t[11],m=t[12],y=t[13],g=t[14],v=t[15],x=r[0],b=r[1],_=r[2],w=r[3];return e[0]=x*n+b*l+_*f+w*m,e[1]=x*a+b*s+_*d+w*y,e[2]=x*i+b*c+_*p+w*g,e[3]=x*o+b*u+_*h+w*v,x=r[4],b=r[5],_=r[6],w=r[7],e[4]=x*n+b*l+_*f+w*m,e[5]=x*a+b*s+_*d+w*y,e[6]=x*i+b*c+_*p+w*g,e[7]=x*o+b*u+_*h+w*v,x=r[8],b=r[9],_=r[10],w=r[11],e[8]=x*n+b*l+_*f+w*m,e[9]=x*a+b*s+_*d+w*y,e[10]=x*i+b*c+_*p+w*g,e[11]=x*o+b*u+_*h+w*v,x=r[12],b=r[13],_=r[14],w=r[15],e[12]=x*n+b*l+_*f+w*m,e[13]=x*a+b*s+_*d+w*y,e[14]=x*i+b*c+_*p+w*g,e[15]=x*o+b*u+_*h+w*v,e}},{}],53:[function(e,t,r){t.exports=function(e,t,r,n,a,i,o){var l=1/(t-r),s=1/(n-a),c=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+r)*l,e[13]=(a+n)*s,e[14]=(o+i)*c,e[15]=1,e}},{}],54:[function(e,t,r){t.exports=function(e,t,r,n,a){var i=1/Math.tan(t/2),o=1/(n-a);return e[0]=i/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*n*o,e[15]=0,e}},{}],55:[function(e,t,r){t.exports=function(e,t,r,n){var a=Math.tan(t.upDegrees*Math.PI/180),i=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),l=Math.tan(t.rightDegrees*Math.PI/180),s=2/(o+l),c=2/(a+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=c,e[6]=0,e[7]=0,e[8]=-(o-l)*s*.5,e[9]=(a-i)*c*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}},{}],56:[function(e,t,r){t.exports=function(e,t,r,n){var a,i,o,l,s,c,u,f,d,p,h,m,y,g,v,x,b,_,w,T,M,k,A,L,S=n[0],O=n[1],D=n[2],C=Math.sqrt(S*S+O*O+D*D);return Math.abs(C)<1e-6?null:(S*=C=1/C,O*=C,D*=C,a=Math.sin(r),o=1-(i=Math.cos(r)),l=t[0],s=t[1],c=t[2],u=t[3],f=t[4],d=t[5],p=t[6],h=t[7],m=t[8],y=t[9],g=t[10],v=t[11],x=S*S*o+i,b=O*S*o+D*a,_=D*S*o-O*a,w=S*O*o-D*a,T=O*O*o+i,M=D*O*o+S*a,k=S*D*o+O*a,A=O*D*o-S*a,L=D*D*o+i,e[0]=l*x+f*b+m*_,e[1]=s*x+d*b+y*_,e[2]=c*x+p*b+g*_,e[3]=u*x+h*b+v*_,e[4]=l*w+f*T+m*M,e[5]=s*w+d*T+y*M,e[6]=c*w+p*T+g*M,e[7]=u*w+h*T+v*M,e[8]=l*k+f*A+m*L,e[9]=s*k+d*A+y*L,e[10]=c*k+p*A+g*L,e[11]=u*k+h*A+v*L,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}},{}],57:[function(e,t,r){t.exports=function(e,t,r){var n=Math.sin(r),a=Math.cos(r),i=t[4],o=t[5],l=t[6],s=t[7],c=t[8],u=t[9],f=t[10],d=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=i*a+c*n,e[5]=o*a+u*n,e[6]=l*a+f*n,e[7]=s*a+d*n,e[8]=c*a-i*n,e[9]=u*a-o*n,e[10]=f*a-l*n,e[11]=d*a-s*n,e}},{}],58:[function(e,t,r){t.exports=function(e,t,r){var n=Math.sin(r),a=Math.cos(r),i=t[0],o=t[1],l=t[2],s=t[3],c=t[8],u=t[9],f=t[10],d=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*a-c*n,e[1]=o*a-u*n,e[2]=l*a-f*n,e[3]=s*a-d*n,e[8]=i*n+c*a,e[9]=o*n+u*a,e[10]=l*n+f*a,e[11]=s*n+d*a,e}},{}],59:[function(e,t,r){t.exports=function(e,t,r){var n=Math.sin(r),a=Math.cos(r),i=t[0],o=t[1],l=t[2],s=t[3],c=t[4],u=t[5],f=t[6],d=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*a+c*n,e[1]=o*a+u*n,e[2]=l*a+f*n,e[3]=s*a+d*n,e[4]=c*a-i*n,e[5]=u*a-o*n,e[6]=f*a-l*n,e[7]=d*a-s*n,e}},{}],60:[function(e,t,r){t.exports=function(e,t,r){var n=r[0],a=r[1],i=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},{}],61:[function(e,t,r){t.exports=function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}},{}],62:[function(e,t,r){t.exports=function(e,t,r){var n,a,i,o,l,s,c,u,f,d,p,h,m=r[0],y=r[1],g=r[2];return t===e?(e[12]=t[0]*m+t[4]*y+t[8]*g+t[12],e[13]=t[1]*m+t[5]*y+t[9]*g+t[13],e[14]=t[2]*m+t[6]*y+t[10]*g+t[14],e[15]=t[3]*m+t[7]*y+t[11]*g+t[15]):(n=t[0],a=t[1],i=t[2],o=t[3],l=t[4],s=t[5],c=t[6],u=t[7],f=t[8],d=t[9],p=t[10],h=t[11],e[0]=n,e[1]=a,e[2]=i,e[3]=o,e[4]=l,e[5]=s,e[6]=c,e[7]=u,e[8]=f,e[9]=d,e[10]=p,e[11]=h,e[12]=n*m+l*y+f*g+t[12],e[13]=a*m+s*y+d*g+t[13],e[14]=i*m+c*y+p*g+t[14],e[15]=o*m+u*y+h*g+t[15]),e}},{}],63:[function(e,t,r){t.exports=function(e,t){if(e===t){var r=t[1],n=t[2],a=t[3],i=t[6],o=t[7],l=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=i,e[11]=t[14],e[12]=a,e[13]=o,e[14]=l}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}},{}],64:[function(e,t,n){(function(r){(function(){"use strict";var n,a=e("is-browser");n="function"==typeof r.matchMedia?!r.matchMedia("(hover: none)").matches:a,t.exports=n}).call(this)}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"is-browser":68}],65:[function(e,t,r){"use strict";var n=e("is-browser");t.exports=n&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){e=!1}return e}()},{"is-browser":68}],66:[function(e,t,r){r.read=function(e,t,r,n,a){var i,o,l=8*a-n-1,s=(1<<l)-1,c=s>>1,u=-7,f=r?a-1:0,d=r?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-u)-1,p>>=-u,u+=l;u>0;i=256*i+e[t+f],f+=d,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=n;u>0;o=256*o+e[t+f],f+=d,u-=8);if(0===i)i=1-c;else{if(i===s)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),i-=c}return(p?-1:1)*o*Math.pow(2,i-n)},r.write=function(e,t,r,n,a,i){var o,l,s,c=8*i-a-1,u=(1<<c)-1,f=u>>1,d=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),(t+=o+f>=1?d/s:d*Math.pow(2,1-f))*s>=2&&(o++,s/=2),o+f>=u?(l=0,o=u):o+f>=1?(l=(t*s-1)*Math.pow(2,a),o+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,a),o=0));a>=8;e[r+p]=255&l,p+=h,l/=256,a-=8);for(o=o<<a|l,c+=a;c>0;e[r+p]=255&o,p+=h,o/=256,c-=8);e[r+p-h]|=128*m}},{}],67:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},{}],68:[function(e,t,r){t.exports=!0},{}],69:[function(e,t,r){"use strict";t.exports=i,t.exports.isMobile=i,t.exports.default=i;var n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,a=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function i(e){e||(e={});var t=e.ua;if(t||"undefined"==typeof navigator||(t=navigator.userAgent),t&&t.headers&&"string"==typeof t.headers["user-agent"]&&(t=t.headers["user-agent"]),"string"!=typeof t)return!1;var r=e.tablet?a.test(t):n.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==t.indexOf("Macintosh")&&-1!==t.indexOf("Safari")&&(r=!0),r}},{}],70:[function(e,t,r){"use strict";t.exports=function(e){for(var t,r=e.length,n=0;n<r;n++)if(((t=e.charCodeAt(n))<9||t>13)&&32!==t&&133!==t&&160!==t&&5760!==t&&6158!==t&&(t<8192||t>8205)&&8232!==t&&8233!==t&&8239!==t&&8287!==t&&8288!==t&&12288!==t&&65279!==t)return!1;return!0}},{}],71:[function(e,t,r){var n={left:0,top:0};t.exports=function(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var a,i=e.clientX||0,o=e.clientY||0,l=(a=t)===window||a===document||a===document.body?n:a.getBoundingClientRect();return r[0]=i-l.left,r[1]=o-l.top,r}},{}],72:[function(e,t,n){(function(e,r){(function(){var n,a,i;i=function(){"use strict";var e,t,n,a=Object.prototype.toString,i=void 0!==r?function(e){return r(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(t){e=function(e,t,r){return e[t]=r,e}}function o(e,r){n.add(e,r),t||(t=i(n.drain))}function l(e){var t,r=typeof e;return null==e||"object"!=r&&"function"!=r||(t=e.then),"function"==typeof t&&t}function s(){for(var e=0;e<this.chain.length;e++)c(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function c(e,t,r){var n,a;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(a=l(n))?a.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}function u(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=l(e))?o((function(){var n=new p(r);try{t.call(e,(function(){u.apply(n,arguments)}),(function(){f.apply(n,arguments)}))}catch(e){f.call(n,e)}})):(r.msg=e,r.state=1,r.chain.length>0&&o(s,r))}catch(e){f.call(new p(r),e)}}}function f(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&o(s,t))}function d(e,t,r,n){for(var a=0;a<t.length;a++)!function(a){e.resolve(t[a]).then((function(e){r(a,e)}),n)}(a)}function p(e){this.def=e,this.triggered=!1}function h(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function m(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new h(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor((function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t})),t.chain.push(n),0!==t.state&&o(s,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,(function(e){u.call(t,e)}),(function(e){f.call(t,e)}))}catch(e){f.call(t,e)}}n=function(){var e,r,n;function a(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,i){n=new a(t,i),r?r.next=n:e=n,r=n,n=void 0},drain:function(){var n=e;for(e=r=t=void 0;n;)n.fn.call(n.self),n=n.next}}}();var y=e({},"constructor",m,!1);return m.prototype=y,e(y,"__NPO__",0,!1),e(m,"resolve",(function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this((function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)}))})),e(m,"reject",(function(e){return new this((function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)}))})),e(m,"all",(function(e){var t=this;return"[object Array]"!=a.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var a=e.length,i=Array(a),o=0;d(t,e,(function(e,t){i[e]=t,++o===a&&r(i)}),n)}))})),e(m,"race",(function(e){var t=this;return"[object Array]"!=a.call(e)?t.reject(TypeError("Not an array")):new t((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");d(t,e,(function(e,t){r(t)}),n)}))})),m},(a=void 0!==e?e:this)[n="Promise"]=a[n]||i(),void 0!==t&&t.exports&&(t.exports=a[n])}).call(this)}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{timers:120}],73:[function(e,t,r){"use strict";var n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}t.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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,l,s=o(e),c=1;c<arguments.length;c++){for(var u in r=Object(arguments[c]))a.call(r,u)&&(s[u]=r[u]);if(n){l=n(r);for(var f=0;f<l.length;f++)i.call(r,l[f])&&(s[l[f]]=r[l[f]])}}return s}},{}],74:[function(e,t,r){t.exports=function(e){var t=[];return e.replace(a,(function(e,r,a){var o=r.toLowerCase();for(a=function(e){var t=e.match(i);return t?t.map(Number):[]}(a),"m"==o&&a.length>2&&(t.push([r].concat(a.splice(0,2))),o="l",r="m"==r?"l":"L");;){if(a.length==n[o])return a.unshift(r),t.push(a);if(a.length<n[o])throw new Error("malformed path data");t.push([r].concat(a.splice(0,n[o])))}})),t};var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},a=/([astvzqmhlc])([^astvzqmhlc]*)/gi;var i=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi},{}],75:[function(e,t,r){var n,a=e("./lib/build-log"),i=e("./lib/epsilon"),o=e("./lib/intersecter"),l=e("./lib/segment-chainer"),s=e("./lib/segment-selector"),c=e("./lib/geojson"),u=!1,f=i();function d(e,t,r){var a=n.segments(e),i=n.segments(t),o=r(n.combine(a,i));return n.polygon(o)}n={buildLog:function(e){return!0===e?u=a():!1===e&&(u=!1),!1!==u&&u.list},epsilon:function(e){return f.epsilon(e)},segments:function(e){var t=o(!0,f,u);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){return{combined:o(!1,f,u).calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:s.union(e.combined,u),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:s.intersect(e.combined,u),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:s.difference(e.combined,u),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:s.differenceRev(e.combined,u),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:s.xor(e.combined,u),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:l(e.segments,f,u),inverted:e.inverted}},polygonFromGeoJSON:function(e){return c.toPolygon(n,e)},polygonToGeoJSON:function(e){return c.fromPolygon(n,f,e)},union:function(e,t){return d(e,t,n.selectUnion)},intersect:function(e,t){return d(e,t,n.selectIntersect)},difference:function(e,t){return d(e,t,n.selectDifference)},differenceRev:function(e,t){return d(e,t,n.selectDifferenceRev)},xor:function(e,t){return d(e,t,n.selectXor)}},"object"==typeof window&&(window.PolyBool=n),t.exports=n},{"./lib/build-log":76,"./lib/epsilon":77,"./lib/geojson":78,"./lib/intersecter":79,"./lib/segment-chainer":81,"./lib/segment-selector":82}],76:[function(e,t,r){t.exports=function(){var e,t=0,r=!1;function n(t,r){return e.list.push({type:t,data:r?JSON.parse(JSON.stringify(r)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(e,t){return n("check",{seg1:e,seg2:t})},segmentChop:function(e,t){return n("div_seg",{seg:e,pt:t}),n("chop",{seg:e,pt:t})},statusRemove:function(e){return n("pop_seg",{seg:e})},segmentUpdate:function(e){return n("seg_update",{seg:e})},segmentNew:function(e,t){return n("new_seg",{seg:e,primary:t})},segmentRemove:function(e){return n("rem_seg",{seg:e})},tempStatus:function(e,t,r){return n("temp_status",{seg:e,above:t,below:r})},rewind:function(e){return n("rewind",{seg:e})},status:function(e,t,r){return n("status",{seg:e,above:t,below:r})},vert:function(t){return t===r?e:(r=t,n("vert",{x:t}))},log:function(e){return"string"!=typeof e&&(e=JSON.stringify(e,!1," ")),n("log",{txt:e})},reset:function(){return n("reset")},selected:function(e){return n("selected",{segs:e})},chainStart:function(e){return n("chain_start",{seg:e})},chainRemoveHead:function(e,t){return n("chain_rem_head",{index:e,pt:t})},chainRemoveTail:function(e,t){return n("chain_rem_tail",{index:e,pt:t})},chainNew:function(e,t){return n("chain_new",{pt1:e,pt2:t})},chainMatch:function(e){return n("chain_match",{index:e})},chainClose:function(e){return n("chain_close",{index:e})},chainAddHead:function(e,t){return n("chain_add_head",{index:e,pt:t})},chainAddTail:function(e,t){return n("chain_add_tail",{index:e,pt:t})},chainConnect:function(e,t){return n("chain_con",{index1:e,index2:t})},chainReverse:function(e){return n("chain_rev",{index:e})},chainJoin:function(e,t){return n("chain_join",{index1:e,index2:t})},done:function(){return n("done")}}}},{}],77:[function(e,t,r){t.exports=function(e){"number"!=typeof e&&(e=1e-10);var t={epsilon:function(t){return"number"==typeof t&&(e=t),e},pointAboveOrOnLine:function(t,r,n){var a=r[0],i=r[1],o=n[0],l=n[1],s=t[0];return(o-a)*(t[1]-i)-(l-i)*(s-a)>=-e},pointBetween:function(t,r,n){var a=t[1]-r[1],i=n[0]-r[0],o=t[0]-r[0],l=n[1]-r[1],s=o*i+a*l;return!(s<e||s-(i*i+l*l)>-e)},pointsSameX:function(t,r){return Math.abs(t[0]-r[0])<e},pointsSameY:function(t,r){return Math.abs(t[1]-r[1])<e},pointsSame:function(e,r){return t.pointsSameX(e,r)&&t.pointsSameY(e,r)},pointsCompare:function(e,r){return t.pointsSameX(e,r)?t.pointsSameY(e,r)?0:e[1]<r[1]?-1:1:e[0]<r[0]?-1:1},pointsCollinear:function(t,r,n){var a=t[0]-r[0],i=t[1]-r[1],o=r[0]-n[0],l=r[1]-n[1];return Math.abs(a*l-o*i)<e},linesIntersect:function(t,r,n,a){var i=r[0]-t[0],o=r[1]-t[1],l=a[0]-n[0],s=a[1]-n[1],c=i*s-o*l;if(Math.abs(c)<e)return!1;var u=t[0]-n[0],f=t[1]-n[1],d=(l*f-s*u)/c,p=(i*f-o*u)/c,h={alongA:0,alongB:0,pt:[t[0]+d*i,t[1]+d*o]};return h.alongA=d<=-e?-2:d<e?-1:d-1<=-e?0:d-1<e?1:2,h.alongB=p<=-e?-2:p<e?-1:p-1<=-e?0:p-1<e?1:2,h},pointInsideRegion:function(t,r){for(var n=t[0],a=t[1],i=r[r.length-1][0],o=r[r.length-1][1],l=!1,s=0;s<r.length;s++){var c=r[s][0],u=r[s][1];u-a>e!=o-a>e&&(i-c)*(a-u)/(o-u)+c-n>e&&(l=!l),i=c,o=u}return l}};return t}},{}],78:[function(e,t,r){var n={toPolygon:function(e,t){function r(t){if(t.length<=0)return e.segments({inverted:!1,regions:[]});function r(t){var r=t.slice(0,t.length-1);return e.segments({inverted:!1,regions:[r]})}for(var n=r(t[0]),a=1;a<t.length;a++)n=e.selectDifference(e.combine(n,r(t[a])));return n}if("Polygon"===t.type)return e.polygon(r(t.coordinates));if("MultiPolygon"===t.type){for(var n=e.segments({inverted:!1,regions:[]}),a=0;a<t.coordinates.length;a++)n=e.selectUnion(e.combine(n,r(t.coordinates[a])));return e.polygon(n)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,t,r){function n(e,r){return t.pointInsideRegion([.5*(e[0][0]+e[1][0]),.5*(e[0][1]+e[1][1])],r)}function a(e){return{region:e,children:[]}}r=e.polygon(e.segments(r));var i=a(null);function o(e,t){for(var r=0;r<e.children.length;r++)if(n(t,(l=e.children[r]).region))return void o(l,t);var i=a(t);for(r=0;r<e.children.length;r++){var l;n((l=e.children[r]).region,t)&&(i.children.push(l),e.children.splice(r,1),r--)}e.children.push(i)}for(var l=0;l<r.regions.length;l++){var s=r.regions[l];s.length<3||o(i,s)}function c(e,t){for(var r=0,n=e[e.length-1][0],a=e[e.length-1][1],i=[],o=0;o<e.length;o++){var l=e[o][0],s=e[o][1];i.push([l,s]),r+=s*n-l*a,n=l,a=s}return r<0!==t&&i.reverse(),i.push([i[0][0],i[0][1]]),i}var u=[];function f(e){var t=[c(e.region,!1)];u.push(t);for(var r=0;r<e.children.length;r++)t.push(d(e.children[r]))}function d(e){for(var t=0;t<e.children.length;t++)f(e.children[t]);return c(e.region,!0)}for(l=0;l<i.children.length;l++)f(i.children[l]);return u.length<=0?{type:"Polygon",coordinates:[]}:1==u.length?{type:"Polygon",coordinates:u[0]}:{type:"MultiPolygon",coordinates:u}}};t.exports=n},{}],79:[function(e,t,r){var n=e("./linked-list");t.exports=function(e,t,r){function a(e,t,n){return{id:r?r.segmentId():-1,start:e,end:t,myFill:{above:n.myFill.above,below:n.myFill.below},otherFill:null}}var i=n.create();function o(e,r){i.insertBefore(e,(function(n){return a=e.isStart,i=e.pt,o=r,l=n.isStart,s=n.pt,c=n.other.pt,(0!==(u=t.pointsCompare(i,s))?u:t.pointsSame(o,c)?0:a!==l?a?1:-1:t.pointAboveOrOnLine(o,l?s:c,l?c:s)?1:-1)<0;var a,i,o,l,s,c,u}))}function l(e,t){var r=function(e,t){var r=n.node({isStart:!0,pt:e.start,seg:e,primary:t,other:null,status:null});return o(r,e.end),r}(e,t);return function(e,t,r){var a=n.node({isStart:!1,pt:t.end,seg:t,primary:r,other:e,status:null});e.other=a,o(a,e.pt)}(r,e,t),r}function s(e,t){var n=a(t,e.seg.end,e.seg);return function(e,t){r&&r.segmentChop(e.seg,t),e.other.remove(),e.seg.end=t,e.other.pt=t,o(e.other,e.pt)}(e,t),l(n,e.primary)}function c(a,o){var l=n.create();function c(e){return l.findTransition((function(r){return n=e,a=r.ev,i=n.seg.start,o=n.seg.end,l=a.seg.start,s=a.seg.end,(t.pointsCollinear(i,l,s)?t.pointsCollinear(o,l,s)||t.pointAboveOrOnLine(o,l,s)?1:-1:t.pointAboveOrOnLine(i,l,s)?1:-1)>0;var n,a,i,o,l,s}))}function u(e,n){var a=e.seg,i=n.seg,o=a.start,l=a.end,c=i.start,u=i.end;r&&r.checkIntersection(a,i);var f=t.linesIntersect(o,l,c,u);if(!1===f){if(!t.pointsCollinear(o,l,c))return!1;if(t.pointsSame(o,u)||t.pointsSame(l,c))return!1;var d=t.pointsSame(o,c),p=t.pointsSame(l,u);if(d&&p)return n;var h=!d&&t.pointBetween(o,c,u),m=!p&&t.pointBetween(l,c,u);if(d)return m?s(n,l):s(e,u),n;h&&(p||(m?s(n,l):s(e,u)),s(n,o))}else 0===f.alongA&&(-1===f.alongB?s(e,c):0===f.alongB?s(e,f.pt):1===f.alongB&&s(e,u)),0===f.alongB&&(-1===f.alongA?s(n,o):0===f.alongA?s(n,f.pt):1===f.alongA&&s(n,l));return!1}for(var f=[];!i.isEmpty();){var d=i.getHead();if(r&&r.vert(d.pt[0]),d.isStart){r&&r.segmentNew(d.seg,d.primary);var p=c(d),h=p.before?p.before.ev:null,m=p.after?p.after.ev:null;function y(){if(h){var e=u(d,h);if(e)return e}return!!m&&u(d,m)}r&&r.tempStatus(d.seg,!!h&&h.seg,!!m&&m.seg);var g,v,x=y();if(x&&(e?(v=null===d.seg.myFill.below||d.seg.myFill.above!==d.seg.myFill.below)&&(x.seg.myFill.above=!x.seg.myFill.above):x.seg.otherFill=d.seg.myFill,r&&r.segmentUpdate(x.seg),d.other.remove(),d.remove()),i.getHead()!==d){r&&r.rewind(d.seg);continue}e?(v=null===d.seg.myFill.below||d.seg.myFill.above!==d.seg.myFill.below,d.seg.myFill.below=m?m.seg.myFill.above:a,d.seg.myFill.above=v?!d.seg.myFill.below:d.seg.myFill.below):null===d.seg.otherFill&&(g=m?d.primary===m.primary?m.seg.otherFill.above:m.seg.myFill.above:d.primary?o:a,d.seg.otherFill={above:g,below:g}),r&&r.status(d.seg,!!h&&h.seg,!!m&&m.seg),d.other.status=p.insert(n.node({ev:d}))}else{var b=d.status;if(null===b)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(l.exists(b.prev)&&l.exists(b.next)&&u(b.prev.ev,b.next.ev),r&&r.statusRemove(b.ev.seg),b.remove(),!d.primary){var _=d.seg.myFill;d.seg.myFill=d.seg.otherFill,d.seg.otherFill=_}f.push(d.seg)}i.getHead().remove()}return r&&r.done(),f}return e?{addRegion:function(e){for(var n,a=e[e.length-1],i=0;i<e.length;i++){n=a,a=e[i];var o=t.pointsCompare(n,a);0!==o&&l((s=o<0?n:a,c=o<0?a:n,{id:r?r.segmentId():-1,start:s,end:c,myFill:{above:null,below:null},otherFill:null}),!0)}var s,c},calculate:function(e){return c(e,!1)}}:{calculate:function(e,t,r,n){return e.forEach((function(e){l(a(e.start,e.end,e),!0)})),r.forEach((function(e){l(a(e.start,e.end,e),!1)})),c(t,n)}}}},{"./linked-list":80}],80:[function(e,t,r){t.exports={create:function(){var e={root:{root:!0,next:null},exists:function(t){return null!==t&&t!==e.root},isEmpty:function(){return null===e.root.next},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,a=e.root.next;null!==a;){if(r(a))return t.prev=a.prev,t.next=a,a.prev.next=t,void(a.prev=t);n=a,a=a.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;null!==n&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(e){return e.prev=r,e.next=n,r.next=e,null!==n&&(n.prev=e),e}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}}},{}],81:[function(e,t,r){t.exports=function(e,t,r){var n=[],a=[];return e.forEach((function(e){var i=e.start,o=e.end;if(t.pointsSame(i,o))console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");else{r&&r.chainStart(e);for(var l={index:0,matches_head:!1,matches_pt1:!1},s={index:0,matches_head:!1,matches_pt1:!1},c=l,u=0;u<n.length;u++){var f=(y=n[u])[0],d=(y[1],y[y.length-1]);if(y[y.length-2],t.pointsSame(f,i)){if(M(u,!0,!0))break}else if(t.pointsSame(f,o)){if(M(u,!0,!1))break}else if(t.pointsSame(d,i)){if(M(u,!1,!0))break}else if(t.pointsSame(d,o)&&M(u,!1,!1))break}if(c===l)return n.push([i,o]),void(r&&r.chainNew(i,o));if(c===s){r&&r.chainMatch(l.index);var p=l.index,h=l.matches_pt1?o:i,m=l.matches_head,y=n[p],g=m?y[0]:y[y.length-1],v=m?y[1]:y[y.length-2],x=m?y[y.length-1]:y[0],b=m?y[y.length-2]:y[1];return t.pointsCollinear(v,g,h)&&(m?(r&&r.chainRemoveHead(l.index,h),y.shift()):(r&&r.chainRemoveTail(l.index,h),y.pop()),g=v),t.pointsSame(x,h)?(n.splice(p,1),t.pointsCollinear(b,x,g)&&(m?(r&&r.chainRemoveTail(l.index,g),y.pop()):(r&&r.chainRemoveHead(l.index,g),y.shift())),r&&r.chainClose(l.index),void a.push(y)):void(m?(r&&r.chainAddHead(l.index,h),y.unshift(h)):(r&&r.chainAddTail(l.index,h),y.push(h)))}var _=l.index,w=s.index;r&&r.chainConnect(_,w);var T=n[_].length<n[w].length;l.matches_head?s.matches_head?T?(k(_),A(_,w)):(k(w),A(w,_)):A(w,_):s.matches_head?A(_,w):T?(k(_),A(w,_)):(k(w),A(_,w))}function M(e,t,r){return c.index=e,c.matches_head=t,c.matches_pt1=r,c===l?(c=s,!1):(c=null,!0)}function k(e){r&&r.chainReverse(e),n[e].reverse()}function A(e,a){var i=n[e],o=n[a],l=i[i.length-1],s=i[i.length-2],c=o[0],u=o[1];t.pointsCollinear(s,l,c)&&(r&&r.chainRemoveTail(e,l),i.pop(),l=s),t.pointsCollinear(l,c,u)&&(r&&r.chainRemoveHead(a,c),o.shift()),r&&r.chainJoin(e,a),n[e]=i.concat(o),n.splice(a,1)}})),a}},{}],82:[function(e,t,r){function n(e,t,r){var n=[];return e.forEach((function(e){var a=(e.myFill.above?8:0)+(e.myFill.below?4:0)+(e.otherFill&&e.otherFill.above?2:0)+(e.otherFill&&e.otherFill.below?1:0);0!==t[a]&&n.push({id:r?r.segmentId():-1,start:e.start,end:e.end,myFill:{above:1===t[a],below:2===t[a]},otherFill:null})})),r&&r.selected(n),n}var a={union:function(e,t){return n(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return n(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return n(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return n(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return n(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};t.exports=a},{}],83:[function(e,t,r){"use strict";var n=e("stream").Transform,a=e("stream-parser");function i(){n.call(this,{readableObjectMode:!0})}function o(e,t,r){Error.call(this),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.message=e,t&&(this.code=t),r&&(this.statusCode=r)}i.prototype=Object.create(n.prototype),i.prototype.constructor=i,a(i.prototype),r.ParserStream=i,r.sliceEq=function(e,t,r){for(var n=t,a=0;a<r.length;)if(e[n++]!==r[a++])return!1;return!0},r.str2arr=function(e,t){var r=[],n=0;if(t&&"hex"===t)for(;n<e.length;)r.push(parseInt(e.slice(n,n+2),16)),n+=2;else for(;n<e.length;n++)r.push(255&e.charCodeAt(n));return r},r.readUInt16LE=function(e,t){return e[t]|e[t+1]<<8},r.readUInt16BE=function(e,t){return e[t+1]|e[t]<<8},r.readUInt32LE=function(e,t){return e[t]|e[t+1]<<8|e[t+2]<<16|16777216*e[t+3]},r.readUInt32BE=function(e,t){return e[t+3]|e[t+2]<<8|e[t+1]<<16|16777216*e[t]},o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,r.ProbeError=o},{stream:100,"stream-parser":116}],84:[function(e,t,r){"use strict";function n(e,t){var r=new Error(e);return r.code=t,r}function a(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}function i(e,t,r){this.input=e.subarray(t,r),this.start=t;var a=String.fromCharCode.apply(null,this.input.subarray(0,4));if("II*\0"!==a&&"MM\0*"!==a)throw n("invalid TIFF signature","EBADDATA");this.big_endian="M"===a[0]}i.prototype.each=function(e){this.aborted=!1;var t=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:t}];this.ifds_to_read.length>0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,e)}},i.prototype.read_uint16=function(e){var t=this.input;if(e+2>t.length)throw n("unexpected EOF","EBADDATA");return this.big_endian?256*t[e]+t[e+1]:t[e]+256*t[e+1]},i.prototype.read_uint32=function(e){var t=this.input;if(e+4>t.length)throw n("unexpected EOF","EBADDATA");return this.big_endian?16777216*t[e]+65536*t[e+1]+256*t[e+2]+t[e+3]:t[e]+256*t[e+1]+65536*t[e+2]+16777216*t[e+3]},i.prototype.is_subifd_link=function(e,t){return 0===e&&34665===t||0===e&&34853===t||34665===e&&40965===t},i.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},i.prototype.exif_format_read=function(e,t){var r;switch(e){case 1:case 2:return this.input[t];case 6:return(r=this.input[t])|33554430*(128&r);case 3:return this.read_uint16(t);case 8:return(r=this.read_uint16(t))|131070*(32768&r);case 4:return this.read_uint32(t);case 9:return 0|this.read_uint32(t);default:return null}},i.prototype.scan_ifd=function(e,t,r){var i=this.read_uint16(t);t+=2;for(var o=0;o<i;o++){var l=this.read_uint16(t),s=this.read_uint16(t+2),c=this.read_uint32(t+4),u=this.exif_format_length(s),f=c*u,d=f<=4?t+8:this.read_uint32(t+8),p=!1;if(d+f>this.input.length)throw n("unexpected EOF","EBADDATA");for(var h=[],m=d,y=0;y<c;y++,m+=u){var g=this.exif_format_read(s,m);if(null===g){h=null;break}h.push(g)}if(Array.isArray(h)&&2===s&&(h=a(String.fromCharCode.apply(null,h)))&&"\0"===h[h.length-1]&&(h=h.slice(0,-1)),this.is_subifd_link(e,l)&&Array.isArray(h)&&Number.isInteger(h[0])&&h[0]>0&&(this.ifds_to_read.push({id:l,offset:h[0]}),p=!0),!1===r({is_big_endian:this.big_endian,ifd:e,tag:l,format:s,count:c,entry_offset:t+this.start,data_length:f,data_offset:d+this.start,value:h,is_subifd_link:p}))return void(this.aborted=!0);t+=12}0===e&&this.ifds_to_read.push({id:1,offset:this.read_uint32(t)})},t.exports.ExifParser=i,t.exports.get_orientation=function(e){var t=0;try{return new i(e,0,e.length).each((function(e){if(0===e.ifd&&274===e.tag&&Array.isArray(e.value))return t=e.value[0],!1})),t}catch(e){return-1}}},{}],85:[function(e,t,r){"use strict";var n=e("./common").readUInt16BE,a=e("./common").readUInt32BE;function i(e,t){if(e.length<4+t)return null;var r=a(e,t);return e.length<r+t||r<8?null:{boxtype:String.fromCharCode.apply(null,e.slice(t+4,t+8)),data:e.slice(t+8,t+r),end:t+r}}function o(e,t){for(var r=0;;){var n=i(e,r);if(!n)break;switch(n.boxtype){case"ispe":t.sizes.push({width:a(n.data,4),height:a(n.data,8)});break;case"irot":t.transforms.push({type:"irot",value:3&n.data[0]});break;case"imir":t.transforms.push({type:"imir",value:1&n.data[0]})}r=n.end}}function l(e,t,r){for(var n=0,a=0;a<r;a++)n=256*n+(e[t+a]||0);return n}function s(e,t){for(var r=e[4]>>4&15,a=15&e[4],i=e[5]>>4&15,o=n(e,6),s=8,c=0;c<o;c++){var u=n(e,s),f=n(e,s+=2),d=l(e,s+=2,i),p=n(e,s+=i);if(s+=2,0===f&&1===p){var h=l(e,s,r),m=l(e,s+r,a);t.item_loc[u]={length:m,offset:h+d}}s+=p*(r+a)}}function c(e,t){for(var r=n(e,4),a=6,o=0;o<r;o++){var l=i(e,a);if(!l)break;if("infe"===l.boxtype){for(var s=n(l.data,4),c="",u=8;u<l.data.length&&l.data[u];u++)c+=String.fromCharCode(l.data[u]);t.item_inf[c]=s}a=l.end}}function u(e,t){for(var r=0;;){var n=i(e,r);if(!n)break;"ipco"===n.boxtype&&o(n.data,t),r=n.end}}t.exports.unbox=i,t.exports.readSizeFromMeta=function(e){var t,r,n,a={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(function(e,t){for(var r=4;;){var n=i(e,r);if(!n)break;"iprp"===n.boxtype&&u(n.data,t),"iloc"===n.boxtype&&s(n.data,t),"iinf"===n.boxtype&&c(n.data,t),r=n.end}}(e,a),a.sizes.length){var o=(t=a.sizes,r=t.reduce((function(e,t){return e.width>t.width||e.width===t.width&&e.height>t.height?e:t})),n=t.reduce((function(e,t){return e.height>t.height||e.height===t.height&&e.width>t.width?e:t})),r.width>n.height||r.width===n.height&&r.height>n.width?r:n),l=1;a.transforms.forEach((function(e){var t={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},r={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if("imir"===e.type&&(l=0===e.value?r[l]:t[l=t[l=r[l]]]),"irot"===e.type)for(var n=0;n<e.value;n++)l=t[l]}));var f=null;return a.item_inf.Exif&&(f=a.item_loc[a.item_inf.Exif]),{width:o.width,height:o.height,orientation:a.transforms.length?l:null,variants:a.sizes,exif_location:f}}},t.exports.getMimeType=function(e){var t=String.fromCharCode.apply(null,e.slice(0,4)),r={};r[t]=!0;for(var n=8;n<e.length;n+=4)r[String.fromCharCode.apply(null,e.slice(n,n+4))]=!0;if(r.mif1||r.msf1||r.miaf)return"avif"===t||"avis"===t||"avio"===t?{type:"avif",mime:"image/avif"}:"heic"===t||"heix"===t?{type:"heic",mime:"image/heic"}:"hevc"===t||"hevx"===t?{type:"heic",mime:"image/heic-sequence"}:r.avif||r.avis?{type:"avif",mime:"image/avif"}:r.heic||r.heix||r.hevc||r.hevx||r.heis?r.msf1?{type:"heif",mime:"image/heif-sequence"}:{type:"heif",mime:"image/heif"}:{type:"avif",mime:"image/avif"}}},{"./common":83}],86:[function(e,t,r){"use strict";var n=e("../common").str2arr,a=e("../common").sliceEq,i=e("../common").readUInt32BE,o=e("../miaf_utils"),l=e("../exif_utils"),s=n("ftyp");t.exports=function(e){if(a(e,4,s)){var t=o.unbox(e,0);if(t){var r=o.getMimeType(t.data);if(r){for(var n,c=t.end;;){var u=o.unbox(e,c);if(!u)break;if(c=u.end,"mdat"===u.boxtype)return;if("meta"===u.boxtype){n=u.data;break}}if(n){var f=o.readSizeFromMeta(n);if(f){var d={width:f.width,height:f.height,type:r.type,mime:r.mime,wUnits:"px",hUnits:"px"};if(f.variants.length>1&&(d.variants=f.variants),f.orientation&&(d.orientation=f.orientation),f.exif_location&&f.exif_location.offset+f.exif_location.length<=e.length){var p=i(e,f.exif_location.offset),h=e.slice(f.exif_location.offset+p+4,f.exif_location.offset+f.exif_location.length),m=l.get_orientation(h);m>0&&(d.orientation=m)}return d}}}}}}},{"../common":83,"../exif_utils":84,"../miaf_utils":85}],87:[function(e,t,r){"use strict";var n=e("../common").str2arr,a=e("../common").sliceEq,i=e("../common").readUInt16LE,o=n("BM");t.exports=function(e){if(!(e.length<26)&&a(e,0,o))return{width:i(e,18),height:i(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}},{"../common":83}],88:[function(e,t,r){"use strict";var n=e("../common").str2arr,a=e("../common").sliceEq,i=e("../common").readUInt16LE,o=n("GIF87a"),l=n("GIF89a");t.exports=function(e){if(!(e.length<10)&&(a(e,0,o)||a(e,0,l)))return{width:i(e,6),height:i(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}},{"../common":83}],89:[function(e,t,r){"use strict";var n=e("../common").readUInt16LE;t.exports=function(e){var t=n(e,0),r=n(e,2),a=n(e,4);if(0===t&&1===r&&a){for(var i=[],o={width:0,height:0},l=0;l<a;l++){var s=e[6+16*l]||256,c=e[6+16*l+1]||256,u={width:s,height:c};i.push(u),(s>o.width||c>o.height)&&(o=u)}return{width:o.width,height:o.height,variants:i,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}},{"../common":83}],90:[function(e,t,r){"use strict";var n=e("../common").readUInt16BE,a=e("../common").str2arr,i=e("../common").sliceEq,o=e("../exif_utils"),l=a("Exif\0\0");t.exports=function(e){if(!(e.length<2)&&255===e[0]&&216===e[1])for(var t=2;;){if(e.length-t<2)return;if(255!==e[t++])return;for(var r,a,s=e[t++];255===s;)s=e[t++];if(208<=s&&s<=217||1===s)r=0;else{if(!(192<=s&&s<=254))return;if(e.length-t<2)return;r=n(e,t)-2,t+=2}if(217===s||218===s)return;if(225===s&&r>=10&&i(e,t,l)&&(a=o.get_orientation(e.slice(t+6,t+r))),r>=5&&192<=s&&s<=207&&196!==s&&200!==s&&204!==s){if(e.length-t<r)return;var c={width:n(e,t+3),height:n(e,t+1),type:"jpg",mime:"image/jpeg",wUnits:"px",hUnits:"px"};return a>0&&(c.orientation=a),c}t+=r}}},{"../common":83,"../exif_utils":84}],91:[function(e,t,r){"use strict";var n=e("../common").str2arr,a=e("../common").sliceEq,i=e("../common").readUInt32BE,o=n("‰PNG\r\n\n"),l=n("IHDR");t.exports=function(e){if(!(e.length<24)&&a(e,0,o)&&a(e,12,l))return{width:i(e,16),height:i(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}},{"../common":83}],92:[function(e,t,r){"use strict";var n=e("../common").str2arr,a=e("../common").sliceEq,i=e("../common").readUInt32BE,o=n("8BPS\0");t.exports=function(e){if(!(e.length<22)&&a(e,0,o))return{width:i(e,18),height:i(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}},{"../common":83}],93:[function(e,t,r){"use strict";function n(e){return"number"==typeof e&&isFinite(e)&&e>0}var a=/<[-_.:a-zA-Z0-9][^>]*>/,i=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,o=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,l=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,s=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,c=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function u(e){return c.test(e)?e.match(c)[0]:"px"}t.exports=function(e){if(function(e){var t,r=0,n=e.length;for(239===e[0]&&187===e[1]&&191===e[2]&&(r=3);r<n&&(32===(t=e[r])||9===t||13===t||10===t);)r++;return r!==n&&60===e[r]}(e)){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);var c=(t.match(a)||[""])[0];if(i.test(c)){var f=function(e){var t=e.match(o),r=e.match(l),n=e.match(s);return{width:t&&(t[1]||t[2]),height:r&&(r[1]||r[2]),viewbox:n&&(n[1]||n[2])}}(c),d=parseFloat(f.width),p=parseFloat(f.height);if(f.width&&f.height){if(!n(d)||!n(p))return;return{width:d,height:p,type:"svg",mime:"image/svg+xml",wUnits:u(f.width),hUnits:u(f.height)}}var h=(f.viewbox||"").split(" "),m={width:h[2],height:h[3]},y=parseFloat(m.width),g=parseFloat(m.height);if(n(y)&&n(g)&&u(m.width)===u(m.height)){var v=y/g;if(f.width){if(!n(d))return;return{width:d,height:d/v,type:"svg",mime:"image/svg+xml",wUnits:u(f.width),hUnits:u(f.width)}}if(f.height){if(!n(p))return;return{width:p*v,height:p,type:"svg",mime:"image/svg+xml",wUnits:u(f.height),hUnits:u(f.height)}}return{width:y,height:g,type:"svg",mime:"image/svg+xml",wUnits:u(m.width),hUnits:u(m.height)}}}}}},{}],94:[function(e,t,r){"use strict";var n=e("../common").str2arr,a=e("../common").sliceEq,i=e("../common").readUInt16LE,o=e("../common").readUInt16BE,l=e("../common").readUInt32LE,s=e("../common").readUInt32BE,c=n("II*\0"),u=n("MM\0*");function f(e,t,r){return r?o(e,t):i(e,t)}function d(e,t,r){return r?s(e,t):l(e,t)}function p(e,t,r){var n=f(e,t+2,r);return 1!==d(e,t+4,r)||3!==n&&4!==n?null:3===n?f(e,t+8,r):d(e,t+8,r)}t.exports=function(e){if(!(e.length<8)&&(a(e,0,c)||a(e,0,u))){var t=77===e[0],r=d(e,4,t)-8;if(!(r<0)){var n=r+8;if(!(e.length-n<2)){var i=12*f(e,n+0,t);if(!(i<=0||(n+=2,e.length-n<i))){var o,l,s,h;for(o=0;o<i;o+=12)256===(h=f(e,n+o,t))?l=p(e,n+o,t):257===h&&(s=p(e,n+o,t));return l&&s?{width:l,height:s,type:"tiff",mime:"image/tiff",wUnits:"px",hUnits:"px"}:void 0}}}}}},{"../common":83}],95:[function(e,t,r){"use strict";var n=e("../common").str2arr,a=e("../common").sliceEq,i=e("../common").readUInt16LE,o=e("../common").readUInt32LE,l=e("../exif_utils"),s=n("RIFF"),c=n("WEBP");function u(e,t){if(157===e[t+3]&&1===e[t+4]&&42===e[t+5])return{width:16383&i(e,t+6),height:16383&i(e,t+8),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function f(e,t){if(47===e[t]){var r=o(e,t+1);return{width:1+(16383&r),height:1+(r>>14&16383),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function d(e,t){return{width:1+(e[t+6]<<16|e[t+5]<<8|e[t+4]),height:1+(e[t+9]<<t|e[t+8]<<8|e[t+7]),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}t.exports=function(e){if(!(e.length<16)&&(a(e,0,s)||a(e,8,c))){var t=12,r=null,n=0,i=o(e,4)+8;if(!(i>e.length)){for(;t+8<i;)if(0!==e[t]){var p=String.fromCharCode.apply(null,e.slice(t,t+4)),h=o(e,t+4);"VP8 "===p&&h>=10?r=r||u(e,t+8):"VP8L"===p&&h>=9?r=r||f(e,t+8):"VP8X"===p&&h>=10?r=r||d(e,t+8):"EXIF"===p&&(n=l.get_orientation(e.slice(t+8,t+8+h)),t=1/0),t+=8+h}else t++;if(r)return n>0&&(r.orientation=n),r}}}},{"../common":83,"../exif_utils":84}],96:[function(e,t,r){"use strict";t.exports={avif:e("./parse_sync/avif"),bmp:e("./parse_sync/bmp"),gif:e("./parse_sync/gif"),ico:e("./parse_sync/ico"),jpeg:e("./parse_sync/jpeg"),png:e("./parse_sync/png"),psd:e("./parse_sync/psd"),svg:e("./parse_sync/svg"),tiff:e("./parse_sync/tiff"),webp:e("./parse_sync/webp")}},{"./parse_sync/avif":86,"./parse_sync/bmp":87,"./parse_sync/gif":88,"./parse_sync/ico":89,"./parse_sync/jpeg":90,"./parse_sync/png":91,"./parse_sync/psd":92,"./parse_sync/svg":93,"./parse_sync/tiff":94,"./parse_sync/webp":95}],97:[function(e,t,r){"use strict";var n=e("./lib/parsers_sync");t.exports=function(e){return function(e){for(var t=Object.keys(n),r=0;r<t.length;r++){var a=n[t[r]](e);if(a)return a}return null}(e)},t.exports.parsers=n},{"./lib/parsers_sync":96}],98:[function(e,t,r){var n,a,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{a="function"==typeof clearTimeout?clearTimeout:l}catch(e){a=l}}();var c,u=[],f=!1,d=-1;function p(){f&&c&&(f=!1,c.length?u=c.concat(u):d=-1,u.length&&h())}function h(){if(!f){var e=s(p);f=!0;for(var t=u.length;t;){for(c=u,u=[];++d<t;)c&&c[d].run();d=-1,t=u.length}c=null,f=!1,function(e){if(a===clearTimeout)return clearTimeout(e);if((a===l||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(e);try{a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function y(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new m(e,t)),1!==u.length||f||s(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],99:[function(e,t,r){var n=e("buffer"),a=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return a(e,t,r)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?t.exports=n:(i(n,r),r.Buffer=o),o.prototype=Object.create(a.prototype),i(a,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=a(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:28}],100:[function(e,t,r){t.exports=a;var n=e("events").EventEmitter;function a(){n.call(this)}e("inherits")(a,n),a.Readable=e("readable-stream/lib/_stream_readable.js"),a.Writable=e("readable-stream/lib/_stream_writable.js"),a.Duplex=e("readable-stream/lib/_stream_duplex.js"),a.Transform=e("readable-stream/lib/_stream_transform.js"),a.PassThrough=e("readable-stream/lib/_stream_passthrough.js"),a.finished=e("readable-stream/lib/internal/streams/end-of-stream.js"),a.pipeline=e("readable-stream/lib/internal/streams/pipeline.js"),a.Stream=a,a.prototype.pipe=function(e,t){var r=this;function a(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",a),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",l),r.on("close",s));var o=!1;function l(){o||(o=!0,e.end())}function s(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(u(),0===n.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",a),e.removeListener("drain",i),r.removeListener("end",l),r.removeListener("close",s),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("error",c),e.on("error",c),r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}},{events:27,inherits:67,"readable-stream/lib/_stream_duplex.js":102,"readable-stream/lib/_stream_passthrough.js":103,"readable-stream/lib/_stream_readable.js":104,"readable-stream/lib/_stream_transform.js":105,"readable-stream/lib/_stream_writable.js":106,"readable-stream/lib/internal/streams/end-of-stream.js":110,"readable-stream/lib/internal/streams/pipeline.js":112}],101:[function(e,t,r){"use strict";var n={};function a(e,t,r){r||(r=Error);var a=function(e){function r(r,n,a){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,a))||this}return a=e,(n=r).prototype=Object.create(a.prototype),n.prototype.constructor=n,n.__proto__=a,r;var n,a}(r);a.prototype.name=r.name,a.prototype.code=e,n[e]=a}function i(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}a("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),a("ERR_INVALID_ARG_TYPE",(function(e,t,r){var n,a,o,l;if("string"==typeof t&&(o="not ",t.substr(!l||l<0?0:+l,o.length)===o)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))a="The ".concat(e," ").concat(n," ").concat(i(t,"type"));else{var s=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(n," ").concat(i(t,"type"))}return a+". Received type ".concat(typeof r)}),TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},{}],102:[function(e,t,r){(function(r){(function(){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=c;var a=e("./_stream_readable"),i=e("./_stream_writable");e("inherits")(c,a);for(var o=n(i.prototype),l=0;l<o.length;l++){var s=o[l];c.prototype[s]||(c.prototype[s]=i.prototype[s])}function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||r.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this)}).call(this,e("_process"))},{"./_stream_readable":104,"./_stream_writable":106,_process:98,inherits:67}],103:[function(e,t,r){"use strict";t.exports=a;var n=e("./_stream_transform");function a(e){if(!(this instanceof a))return new a(e);n.call(this,e)}e("inherits")(a,n),a.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":105,inherits:67}],104:[function(e,t,n){(function(r,n){(function(){"use strict";var a;t.exports=k,k.ReadableState=M,e("events").EventEmitter;var i=function(e,t){return e.listeners(t).length},o=e("./internal/streams/stream"),l=e("buffer").Buffer,s=n.Uint8Array||function(){};var c,u=e("util");c=u&&u.debuglog?u.debuglog("stream"):function(){};var f,d,p,h=e("./internal/streams/buffer_list"),m=e("./internal/streams/destroy"),y=e("./internal/streams/state").getHighWaterMark,g=e("../errors").codes,v=g.ERR_INVALID_ARG_TYPE,x=g.ERR_STREAM_PUSH_AFTER_EOF,b=g.ERR_METHOD_NOT_IMPLEMENTED,_=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(k,o);var w=m.errorOrDestroy,T=["error","close","destroy","pause","resume"];function M(t,r,n){a=a||e("./_stream_duplex"),t=t||{},"boolean"!=typeof n&&(n=r instanceof a),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=y(this,t,"readableHighWaterMark",n),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(f||(f=e("string_decoder/").StringDecoder),this.decoder=new f(t.encoding),this.encoding=t.encoding)}function k(t){if(a=a||e("./_stream_duplex"),!(this instanceof k))return new k(t);var r=this instanceof a;this._readableState=new M(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),o.call(this)}function A(e,t,r,n,a){c("readableAddChunk",t);var i,o=e._readableState;if(null===t)o.reading=!1,function(e,t){if(c("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?D(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,C(e)))}}(e,o);else if(a||(i=function(e,t){var r;return n=t,l.isBuffer(n)||n instanceof s||"string"==typeof t||void 0===t||e.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],t)),r;var n}(o,t)),i)w(e,i);else if(o.objectMode||t&&t.length>0)if("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),n)o.endEmitted?w(e,new _):L(e,o,t,!0);else if(o.ended)w(e,new x);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?L(e,o,t,!1):E(e,o)):L(e,o,t,!1)}else n||(o.reading=!1,E(e,o));return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function L(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&D(e)),E(e,t)}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),k.prototype.destroy=m.destroy,k.prototype._undestroy=m.undestroy,k.prototype._destroy=function(e,t){t(e)},k.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=l.from(e,t),t=""),r=!0),A(this,e,t,!1,r)},k.prototype.unshift=function(e){return A(this,e,null,!0,!1)},k.prototype.isPaused=function(){return!1===this._readableState.flowing},k.prototype.setEncoding=function(t){f||(f=e("string_decoder/").StringDecoder);var r=new f(t);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,a="";null!==n;)a+=r.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==a&&this._readableState.buffer.push(a),this._readableState.length=a.length,this};var S=1073741824;function O(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function D(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(C,e))}function C(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,N(e)}function E(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(c("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function R(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function z(e){c("readable nexttick read 0"),e.read(0)}function I(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),N(e),t.flowing&&!t.reading&&e.read(0)}function N(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function F(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function j(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(B,t,e))}function B(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function H(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}k.prototype.read=function(e){c("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?j(this):D(this),null;if(0===(e=O(e,t))&&t.ended)return 0===t.length&&j(this),null;var n,a=t.needReadable;return c("need readable",a),(0===t.length||t.length-e<t.highWaterMark)&&c("length less than watermark",a=!0),t.ended||t.reading?c("reading or ended",a=!1):a&&(c("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=O(r,t))),null===(n=e>0?F(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&j(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(e){w(this,new b("_read()"))},k.prototype.pipe=function(e,t){var n=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,c("pipe count=%d opts=%j",a.pipesCount,t);var o=t&&!1===t.end||e===r.stdout||e===r.stderr?y:s;function l(t,r){c("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,c("cleanup"),e.removeListener("close",h),e.removeListener("finish",m),e.removeListener("drain",u),e.removeListener("error",p),e.removeListener("unpipe",l),n.removeListener("end",s),n.removeListener("end",y),n.removeListener("data",d),f=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function s(){c("onend"),e.end()}a.endEmitted?r.nextTick(o):n.once("end",o),e.on("unpipe",l);var u=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,N(e))}}(n);e.on("drain",u);var f=!1;function d(t){c("ondata");var r=e.write(t);c("dest.write",r),!1===r&&((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==H(a.pipes,e))&&!f&&(c("false write response, pause",a.awaitDrain),a.awaitDrain++),n.pause())}function p(t){c("onerror",t),y(),e.removeListener("error",p),0===i(e,"error")&&w(e,t)}function h(){e.removeListener("finish",m),y()}function m(){c("onfinish"),e.removeListener("close",h),y()}function y(){c("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",p),e.once("close",h),e.once("finish",m),e.emit("pipe",n),a.flowing||(c("pipe resume"),n.resume()),e},k.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<a;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var o=H(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},k.prototype.on=function(e,t){var n=o.prototype.on.call(this,e,t),a=this._readableState;return"data"===e?(a.readableListening=this.listenerCount("readable")>0,!1!==a.flowing&&this.resume()):"readable"===e&&(a.endEmitted||a.readableListening||(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,c("on readable",a.length,a.reading),a.length?D(this):a.reading||r.nextTick(z,this))),n},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(e,t){var n=o.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(R,this),n},k.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(R,this),t},k.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(I,e,t))}(this,e)),e.paused=!1,this},k.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},k.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var a in e.on("end",(function(){if(c("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(a){c("wrapped data"),r.decoder&&(a=r.decoder.write(a)),r.objectMode&&null==a||(r.objectMode||a&&a.length)&&(t.push(a)||(n=!0,e.pause()))})),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var i=0;i<T.length;i++)e.on(T[i],this.emit.bind(this,T[i]));return this._read=function(t){c("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(k.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=e("./internal/streams/async_iterator")),d(this)}),Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(k.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(k.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),k._fromList=F,Object.defineProperty(k.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(k.from=function(t,r){return void 0===p&&(p=e("./internal/streams/from")),p(k,t,r)})}).call(this)}).call(this,e("_process"),void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":101,"./_stream_duplex":102,"./internal/streams/async_iterator":107,"./internal/streams/buffer_list":108,"./internal/streams/destroy":109,"./internal/streams/from":111,"./internal/streams/state":113,"./internal/streams/stream":114,_process:98,buffer:28,events:27,inherits:67,"string_decoder/":115,util:26}],105:[function(e,t,r){"use strict";t.exports=u;var n=e("../errors").codes,a=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,l=n.ERR_TRANSFORM_WITH_LENGTH_0,s=e("./_stream_duplex");function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);s.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,r){d(e,t,r)}))}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new l;if(e._transformState.transforming)throw new o;return e.push(null)}e("inherits")(u,s),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,r){r(new a("_transform()"))},u.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var a=this._readableState;(n.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){s.prototype._destroy.call(this,e,(function(e){t(e)}))}},{"../errors":101,"./_stream_duplex":102,inherits:67}],106:[function(e,t,n){(function(r,n){(function(){"use strict";function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var a=n.callback;t.pendingcb--,a(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;t.exports=k,k.WritableState=M;var o={deprecate:e("util-deprecate")},l=e("./internal/streams/stream"),s=e("buffer").Buffer,c=n.Uint8Array||function(){};var u,f=e("./internal/streams/destroy"),d=e("./internal/streams/state").getHighWaterMark,p=e("../errors").codes,h=p.ERR_INVALID_ARG_TYPE,m=p.ERR_METHOD_NOT_IMPLEMENTED,y=p.ERR_MULTIPLE_CALLBACK,g=p.ERR_STREAM_CANNOT_PIPE,v=p.ERR_STREAM_DESTROYED,x=p.ERR_STREAM_NULL_VALUES,b=p.ERR_STREAM_WRITE_AFTER_END,_=p.ERR_UNKNOWN_ENCODING,w=f.errorOrDestroy;function T(){}function M(t,n,o){i=i||e("./_stream_duplex"),t=t||{},"boolean"!=typeof o&&(o=n instanceof i),this.objectMode=!!t.objectMode,o&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=d(this,t,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===t.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,a=n.sync,i=n.writecb;if("function"!=typeof i)throw new y;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,a,i){--t.pendingcb,n?(r.nextTick(i,a),r.nextTick(E,e,t),e._writableState.errorEmitted=!0,w(e,a)):(i(a),e._writableState.errorEmitted=!0,w(e,a),E(e,t))}(e,n,a,t,i);else{var o=D(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||O(e,n),a?r.nextTick(S,e,n,o,i):S(e,n,o,i)}}(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function k(t){var r=this instanceof(i=i||e("./_stream_duplex"));if(!r&&!u.call(k,this))return new k(t);this._writableState=new M(t,this,r),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),l.call(this)}function A(e,t,r,n,a,i){if(!r){var o=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=s.from(t,r)),t}(t,n,a);n!==o&&(r=!0,a="buffer",n=o)}var l=t.objectMode?1:n.length;t.length+=l;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:a,isBuf:r,callback:i,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else L(e,t,!1,l,n,a,i);return c}function L(e,t,r,n,a,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):r?e._writev(a,t.onwrite):e._write(a,i,t.onwrite),t.sync=!1}function S(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),E(e,t)}function O(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var l=0,s=!0;r;)i[l]=r,r.isBuf||(s=!1),r=r.next,l+=1;i.allBuffers=s,L(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,f=r.callback;if(L(e,t,!1,t.objectMode?1:c.length,c,u,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function D(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final((function(r){t.pendingcb--,r&&w(e,r),t.prefinished=!0,e.emit("prefinish"),E(e,t)}))}function E(e,t){var n=D(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(C,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var a=e._readableState;(!a||a.autoDestroy&&a.endEmitted)&&e.destroy()}return n}e("inherits")(k,l),M.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(M.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===k&&e&&e._writableState instanceof M}})):u=function(e){return e instanceof this},k.prototype.pipe=function(){w(this,new g)},k.prototype.write=function(e,t,n){var a,i=this._writableState,o=!1,l=!i.objectMode&&(a=e,s.isBuffer(a)||a instanceof c);return l&&!s.isBuffer(e)&&(e=function(e){return s.from(e)}(e)),"function"==typeof t&&(n=t,t=null),l?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=T),i.ending?function(e,t){var n=new b;w(e,n),r.nextTick(t,n)}(this,n):(l||function(e,t,n,a){var i;return null===n?i=new x:"string"==typeof n||t.objectMode||(i=new h("chunk",["string","Buffer"],n)),!i||(w(e,i),r.nextTick(a,i),!1)}(this,i,e,n))&&(i.pendingcb++,o=A(this,i,l,e,t,n)),o},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||O(this,e))},k.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new m("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,n){var a=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),a.corked&&(a.corked=1,this.uncork()),a.ending||function(e,t,n){t.ending=!0,E(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,a,n),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=f.destroy,k.prototype._undestroy=f.undestroy,k.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"),void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":101,"./_stream_duplex":102,"./internal/streams/destroy":109,"./internal/streams/state":113,"./internal/streams/stream":114,_process:98,buffer:28,inherits:67,"util-deprecate":122}],107:[function(e,t,r){(function(r){(function(){"use strict";var n;function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=e("./end-of-stream"),o=Symbol("lastResolve"),l=Symbol("lastReject"),s=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function p(e,t){return{value:e,done:t}}function h(e){var t=e[o];if(null!==t){var r=e[d].read();null!==r&&(e[u]=null,e[o]=null,e[l]=null,t(p(r,!1)))}}function m(e){r.nextTick(h,e)}var y=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((a(n={get stream(){return this[d]},next:function(){var e=this,t=this[s];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise((function(t,n){r.nextTick((function(){e[s]?n(e[s]):t(p(void 0,!0))}))}));var n,a=this[u];if(a)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[c]?r(p(void 0,!0)):t[f](r,n)}),n)}}(a,this));else{var i=this[d].read();if(null!==i)return Promise.resolve(p(i,!1));n=new Promise(this[f])}return this[u]=n,n}},Symbol.asyncIterator,(function(){return this})),a(n,"return",(function(){var e=this;return new Promise((function(t,r){e[d].destroy(null,(function(e){e?r(e):t(p(void 0,!0))}))}))})),n),y);t.exports=function(e){var t,r=Object.create(g,(a(t={},d,{value:e,writable:!0}),a(t,o,{value:null,writable:!0}),a(t,l,{value:null,writable:!0}),a(t,s,{value:null,writable:!0}),a(t,c,{value:e._readableState.endEmitted,writable:!0}),a(t,f,{value:function(e,t){var n=r[d].read();n?(r[u]=null,r[o]=null,r[l]=null,e(p(n,!1))):(r[o]=e,r[l]=t)},writable:!0}),t));return r[u]=null,i(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[l];return null!==t&&(r[u]=null,r[o]=null,r[l]=null,t(e)),void(r[s]=e)}var n=r[o];null!==n&&(r[u]=null,r[o]=null,r[l]=null,n(p(void 0,!0))),r[c]=!0})),e.on("readable",m.bind(null,r)),r}}).call(this)}).call(this,e("_process"))},{"./end-of-stream":110,_process:98}],108:[function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=e("buffer").Buffer,l=e("util").inspect,s=l&&l.custom||"inspect";t.exports=function(){function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.head=null,this.tail=null,this.length=0}return t=e,r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t=o.allocUnsafe(e>>>0),r=this.head,n=0;r;)a=r.data,i=t,l=n,o.prototype.copy.call(a,i,l),n+=r.data.length,r=r.next;var a,i,l;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var a=t.data,i=e>a.length?a.length:e;if(i===a.length?n+=a:n+=a.slice(0,e),0==(e-=i)){i===a.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=a.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var a=r.data,i=e>a.length?a.length:e;if(a.copy(t,t.length-e,0,i),0==(e-=i)){i===a.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=a.slice(i));break}++n}return this.length-=n,t}},{key:s,value:function(e,t){return l(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}],r&&i(t.prototype,r),c&&i(t,c),e;var t,r,c}()},{buffer:28,util:26}],109:[function(e,t,r){(function(e){(function(){"use strict";function r(e,t){a(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function a(e,t){e.emit("error",t)}t.exports={destroy:function(t,i){var o=this,l=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return l||s?(i?i(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(a,this,t)):e.nextTick(a,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!i&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(n,o):(o._writableState.errorEmitted=!0,e.nextTick(r,o,t)):e.nextTick(r,o,t):i?(e.nextTick(n,o),i(t)):e.nextTick(n,o)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,e("_process"))},{_process:98}],110:[function(e,t,r){"use strict";var n=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function a(){}t.exports=function e(t,r,i){if("function"==typeof r)return e(t,null,r);r||(r={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];e.apply(this,n)}}}(i||a);var o=r.readable||!1!==r.readable&&t.readable,l=r.writable||!1!==r.writable&&t.writable,s=function(){t.writable||u()},c=t._writableState&&t._writableState.finished,u=function(){l=!1,c=!0,o||i.call(t)},f=t._readableState&&t._readableState.endEmitted,d=function(){o=!1,f=!0,l||i.call(t)},p=function(e){i.call(t,e)},h=function(){var e;return o&&!f?(t._readableState&&t._readableState.ended||(e=new n),i.call(t,e)):l&&!c?(t._writableState&&t._writableState.ended||(e=new n),i.call(t,e)):void 0},m=function(){t.req.on("finish",u)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",u),t.on("abort",h),t.req?m():t.on("request",m)):l&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",d),t.on("finish",u),!1!==r.error&&t.on("error",p),t.on("close",h),function(){t.removeListener("complete",u),t.removeListener("abort",h),t.removeListener("request",m),t.req&&t.req.removeListener("finish",u),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",u),t.removeListener("end",d),t.removeListener("error",p),t.removeListener("close",h)}}},{"../../../errors":101}],111:[function(e,t,r){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],112:[function(e,t,r){"use strict";var n;var a=e("../../../errors").codes,i=a.ERR_MISSING_ARGS,o=a.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function s(t,r,a,i){i=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(i);var l=!1;t.on("close",(function(){l=!0})),void 0===n&&(n=e("./end-of-stream")),n(t,{readable:r,writable:a},(function(e){if(e)return i(e);l=!0,i()}));var s=!1;return function(e){if(!l&&!s)return s=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void i(e||new o("pipe"))}}function c(e){e()}function u(e,t){return e.pipe(t)}function f(e){return e.length?"function"!=typeof e[e.length-1]?l:e.pop():l}t.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,a=f(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new i("streams");var o=t.map((function(e,r){var i=r<t.length-1;return s(e,i,r>0,(function(e){n||(n=e),e&&o.forEach(c),i||(o.forEach(c),a(n))}))}));return t.reduce(u)}},{"../../../errors":101,"./end-of-stream":110}],113:[function(e,t,r){"use strict";var n=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,a){var i=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,a,r);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new n(a?r:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}}},{"../../../errors":101}],114:[function(e,t,r){t.exports=e("events").EventEmitter},{events:27}],115:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,a=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=s,this.end=c,t=4;break;case"utf8":this.fillLast=l,t=4;break;case"base64":this.text=u,this.end=f,t=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function l(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function s(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function u(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}r.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},i.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var a=o(t[n]);return a>=0?(a>0&&(e.lastNeed=a-1),a):--n<r||-2===a?0:(a=o(t[n]))>=0?(a>0&&(e.lastNeed=a-2),a):--n<r||-2===a?0:(a=o(t[n]))>=0?(a>0&&(2===a?a=0:e.lastNeed=a-3),a):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":99}],116:[function(e,t,r){(function(r,n){(function(){var r=e("assert"),a=e("debug")("stream-parser");t.exports=function(e){var t=e&&"function"==typeof e._transform,r=e&&"function"==typeof e._write;if(!t&&!r)throw new Error("must pass a Writable or Transform stream in");a("extending Parser into stream"),e._bytes=o,e._skipBytes=l,t&&(e._passthrough=s),t?e._transform=u:e._write=c};function i(e){a("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=-1,e._parserCallback=null,"function"==typeof e.push&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function o(e,t){r(!this._parserCallback,'there is already a "callback" set!'),r(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||i(this),a("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=0}function l(e,t){r(!this._parserCallback,'there is already a "callback" set!'),r(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||i(this),a("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=1}function s(e,t){r(!this._parserCallback,'There is already a "callback" set!'),r(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||i(this),a("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=2}function c(e,t,r){this._parserInit||i(this),a("write(%o bytes)",e.length),"function"==typeof t&&(r=t),d(this,e,null,r)}function u(e,t,r){this._parserInit||i(this),a("transform(%o bytes)",e.length),"function"!=typeof t&&(t=this._parserOutput),d(this,e,t,r)}function f(e,t,r,i){if(e._parserBytesLeft-=t.length,a("%o bytes left for stream piece",e._parserBytesLeft),0===e._parserState?(e._parserBuffers.push(t),e._parserBuffered+=t.length):2===e._parserState&&r(t),0!==e._parserBytesLeft)return i;var o=e._parserCallback;if(o&&0===e._parserState&&e._parserBuffers.length>1&&(t=n.concat(e._parserBuffers,e._parserBuffered)),0!==e._parserState&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=-1,e._parserBuffers.splice(0),o){var l=[];t&&l.push(t),r&&l.push(r);var s=o.length>l.length;s&&l.push(p(i));var c=o.apply(e,l);if(!s||i===c)return i}}var d=p((function e(t,r,n,a){return t._parserBytesLeft<=0?a(new Error("got data but not currently parsing anything")):r.length<=t._parserBytesLeft?function(){return f(t,r,n,a)}:function(){var i=r.slice(0,t._parserBytesLeft);return f(t,i,n,(function(o){return o?a(o):r.length>i.length?function(){return e(t,r.slice(i.length),n,a)}:void 0}))}}));function p(e){return function(){for(var t=e.apply(this,arguments);"function"==typeof t;)t=t();return t}}}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{_process:98,assert:21,buffer:28,debug:117}],117:[function(e,t,r){(function(n){(function(){function a(){var e;try{e=r.storage.debug}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e}(r=t.exports=e("./debug")).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},r.formatArgs=function(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+r.humanize(this.diff),t){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var a=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(a++,"%c"===e&&(i=a))})),e.splice(i,0,n)}},r.save=function(e){try{null==e?r.storage.removeItem("debug"):r.storage.debug=e}catch(e){}},r.load=a,r.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},r.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),r.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],r.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},r.enable(a())}).call(this)}).call(this,e("_process"))},{"./debug":118,_process:98}],118:[function(e,t,r){var n;function a(e){function t(){if(t.enabled){var e=t,a=+new Date,i=a-(n||a);e.diff=i,e.prev=n,e.curr=a,n=a;for(var o=new Array(arguments.length),l=0;l<o.length;l++)o[l]=arguments[l];o[0]=r.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var s=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,(function(t,n){if("%%"===t)return t;s++;var a=r.formatters[n];if("function"==typeof a){var i=o[s];t=a.call(e,i),o.splice(s,1),s--}return t})),r.formatArgs.call(e,o),(t.log||r.log||console.log.bind(console)).apply(e,o)}}return t.namespace=e,t.enabled=r.enabled(e),t.useColors=r.useColors(),t.color=function(e){var t,n=0;for(t in e)n=(n<<5)-n+e.charCodeAt(t),n|=0;return r.colors[Math.abs(n)%r.colors.length]}(e),"function"==typeof r.init&&r.init(t),t}(r=t.exports=a.debug=a.default=a).coerce=function(e){return e instanceof Error?e.stack||e.message:e},r.disable=function(){r.enable("")},r.enable=function(e){r.save(e),r.names=[],r.skips=[];for(var t=("string"==typeof e?e:"").split(/[\s,]+/),n=t.length,a=0;a<n;a++)t[a]&&("-"===(e=t[a].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")))},r.enabled=function(e){var t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=e("ms"),r.names=[],r.skips=[],r.formatters={}},{ms:119}],119:[function(e,t,r){var n=1e3,a=60*n,i=60*a,o=24*i;function l(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}t.exports=function(e,t){t=t||{};var r,s=typeof e;if("string"===s&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"days":case"day":case"d":return r*o;case"hours":case"hour":case"hrs":case"hr":case"h":return r*i;case"minutes":case"minute":case"mins":case"min":case"m":return r*a;case"seconds":case"second":case"secs":case"sec":case"s":return r*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===s&&!1===isNaN(e))return t.long?l(r=e,o,"day")||l(r,i,"hour")||l(r,a,"minute")||l(r,n,"second")||r+" ms":function(e){return e>=o?Math.round(e/o)+"d":e>=i?Math.round(e/i)+"h":e>=a?Math.round(e/a)+"m":e>=n?Math.round(e/n)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},{}],120:[function(e,t,r){(function(t,n){(function(){var a=e("process/browser.js").nextTick,i=Function.prototype.apply,o=Array.prototype.slice,l={},s=0;function c(e,t){this._id=e,this._clearFn=t}r.setTimeout=function(){return new c(i.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new c(i.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},r.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},r._unrefActive=r.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r.setImmediate="function"==typeof t?t:function(e){var t=s++,n=!(arguments.length<2)&&o.call(arguments,1);return l[t]=!0,a((function(){l[t]&&(n?e.apply(null,n):e.call(null),r.clearImmediate(t))})),t},r.clearImmediate="function"==typeof n?n:function(e){delete l[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":98,timers:120}],121:[function(e,t,r){!function(e){var r=/^\s+/,n=/\s+$/,a=0,i=e.round,o=e.min,l=e.max,s=e.random;function c(t,s){if(s=s||{},(t=t||"")instanceof c)return t;if(!(this instanceof c))return new c(t,s);var u=function(t){var a={r:0,g:0,b:0},i=1,s=null,c=null,u=null,f=!1,d=!1;return"string"==typeof t&&(t=function(e){e=e.replace(r,"").replace(n,"").toLowerCase();var t,a=!1;if(L[e])e=L[e],a=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=B.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=B.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=B.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=B.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=B.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=B.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=B.hex8.exec(e))?{r:E(t[1]),g:E(t[2]),b:E(t[3]),a:I(t[4]),format:a?"name":"hex8"}:(t=B.hex6.exec(e))?{r:E(t[1]),g:E(t[2]),b:E(t[3]),format:a?"name":"hex"}:(t=B.hex4.exec(e))?{r:E(t[1]+""+t[1]),g:E(t[2]+""+t[2]),b:E(t[3]+""+t[3]),a:I(t[4]+""+t[4]),format:a?"name":"hex8"}:!!(t=B.hex3.exec(e))&&{r:E(t[1]+""+t[1]),g:E(t[2]+""+t[2]),b:E(t[3]+""+t[3]),format:a?"name":"hex"}}(t)),"object"==typeof t&&(H(t.r)&&H(t.g)&&H(t.b)?(p=t.r,h=t.g,m=t.b,a={r:255*D(p,255),g:255*D(h,255),b:255*D(m,255)},f=!0,d="%"===String(t.r).substr(-1)?"prgb":"rgb"):H(t.h)&&H(t.s)&&H(t.v)?(s=R(t.s),c=R(t.v),a=function(t,r,n){t=6*D(t,360),r=D(r,100),n=D(n,100);var a=e.floor(t),i=t-a,o=n*(1-r),l=n*(1-i*r),s=n*(1-(1-i)*r),c=a%6;return{r:255*[n,l,o,o,s,n][c],g:255*[s,n,n,l,o,o][c],b:255*[o,o,s,n,n,l][c]}}(t.h,s,c),f=!0,d="hsv"):H(t.h)&&H(t.s)&&H(t.l)&&(s=R(t.s),u=R(t.l),a=function(e,t,r){var n,a,i;function o(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=D(e,360),t=D(t,100),r=D(r,100),0===t)n=a=i=r;else{var l=r<.5?r*(1+t):r+t-r*t,s=2*r-l;n=o(s,l,e+1/3),a=o(s,l,e),i=o(s,l,e-1/3)}return{r:255*n,g:255*a,b:255*i}}(t.h,s,u),f=!0,d="hsl"),t.hasOwnProperty("a")&&(i=t.a)),i=O(i),{ok:f,format:t.format||d,r:o(255,l(a.r,0)),g:o(255,l(a.g,0)),b:o(255,l(a.b,0)),a:i};var p,h,m}(t);this._originalInput=t,this._r=u.r,this._g=u.g,this._b=u.b,this._a=u.a,this._roundA=i(100*this._a)/100,this._format=s.format||u.format,this._gradientType=s.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=u.ok,this._tc_id=a++}function u(e,t,r){e=D(e,255),t=D(t,255),r=D(r,255);var n,a,i=l(e,t,r),s=o(e,t,r),c=(i+s)/2;if(i==s)n=a=0;else{var u=i-s;switch(a=c>.5?u/(2-i-s):u/(i+s),i){case e:n=(t-r)/u+(t<r?6:0);break;case t:n=(r-e)/u+2;break;case r:n=(e-t)/u+4}n/=6}return{h:n,s:a,l:c}}function f(e,t,r){e=D(e,255),t=D(t,255),r=D(r,255);var n,a,i=l(e,t,r),s=o(e,t,r),c=i,u=i-s;if(a=0===i?0:u/i,i==s)n=0;else{switch(i){case e:n=(t-r)/u+(t<r?6:0);break;case t:n=(r-e)/u+2;break;case r:n=(e-t)/u+4}n/=6}return{h:n,s:a,v:c}}function d(e,t,r,n){var a=[P(i(e).toString(16)),P(i(t).toString(16)),P(i(r).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function p(e,t,r,n){return[P(z(n)),P(i(e).toString(16)),P(i(t).toString(16)),P(i(r).toString(16))].join("")}function h(e,t){t=0===t?0:t||10;var r=c(e).toHsl();return r.s-=t/100,r.s=C(r.s),c(r)}function m(e,t){t=0===t?0:t||10;var r=c(e).toHsl();return r.s+=t/100,r.s=C(r.s),c(r)}function y(e){return c(e).desaturate(100)}function g(e,t){t=0===t?0:t||10;var r=c(e).toHsl();return r.l+=t/100,r.l=C(r.l),c(r)}function v(e,t){t=0===t?0:t||10;var r=c(e).toRgb();return r.r=l(0,o(255,r.r-i(-t/100*255))),r.g=l(0,o(255,r.g-i(-t/100*255))),r.b=l(0,o(255,r.b-i(-t/100*255))),c(r)}function x(e,t){t=0===t?0:t||10;var r=c(e).toHsl();return r.l-=t/100,r.l=C(r.l),c(r)}function b(e,t){var r=c(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,c(r)}function _(e){var t=c(e).toHsl();return t.h=(t.h+180)%360,c(t)}function w(e){var t=c(e).toHsl(),r=t.h;return[c(e),c({h:(r+120)%360,s:t.s,l:t.l}),c({h:(r+240)%360,s:t.s,l:t.l})]}function T(e){var t=c(e).toHsl(),r=t.h;return[c(e),c({h:(r+90)%360,s:t.s,l:t.l}),c({h:(r+180)%360,s:t.s,l:t.l}),c({h:(r+270)%360,s:t.s,l:t.l})]}function M(e){var t=c(e).toHsl(),r=t.h;return[c(e),c({h:(r+72)%360,s:t.s,l:t.l}),c({h:(r+216)%360,s:t.s,l:t.l})]}function k(e,t,r){t=t||6,r=r||30;var n=c(e).toHsl(),a=360/r,i=[c(e)];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(c(n));return i}function A(e,t){t=t||6;for(var r=c(e).toHsv(),n=r.h,a=r.s,i=r.v,o=[],l=1/t;t--;)o.push(c({h:n,s:a,v:i})),i=(i+l)%1;return o}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var t,r,n,a=this.toRgb();return t=a.r/255,r=a.g/255,n=a.b/255,.2126*(t<=.03928?t/12.92:e.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:e.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:e.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=O(e),this._roundA=i(100*this._a)/100,this},toHsv:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=f(this._r,this._g,this._b),t=i(360*e.h),r=i(100*e.s),n=i(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=u(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=u(this._r,this._g,this._b),t=i(360*e.h),r=i(100*e.s),n=i(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return d(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,a){var o=[P(i(e).toString(16)),P(i(t).toString(16)),P(i(r).toString(16)),P(z(n))];return a&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(100*D(this._r,255))+"%",g:i(100*D(this._g,255))+"%",b:i(100*D(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+i(100*D(this._r,255))+"%, "+i(100*D(this._g,255))+"%, "+i(100*D(this._b,255))+"%)":"rgba("+i(100*D(this._r,255))+"%, "+i(100*D(this._g,255))+"%, "+i(100*D(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(S[d(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+p(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=c(e);r="#"+p(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(g,arguments)},brighten:function(){return this._applyModification(v,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(h,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(M,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},c.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:R(e[n]));e=r}return c(e,t)},c.equals=function(e,t){return!(!e||!t)&&c(e).toRgbString()==c(t).toRgbString()},c.random=function(){return c.fromRatio({r:s(),g:s(),b:s()})},c.mix=function(e,t,r){r=0===r?0:r||50;var n=c(e).toRgb(),a=c(t).toRgb(),i=r/100;return c({r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a})},c.readability=function(t,r){var n=c(t),a=c(r);return(e.max(n.getLuminance(),a.getLuminance())+.05)/(e.min(n.getLuminance(),a.getLuminance())+.05)},c.isReadable=function(e,t,r){var n,a,i,o,l,s=c.readability(e,t);switch(a=!1,(i=r,"AA"!==(o=((i=i||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==o&&(o="AA"),"small"!==(l=(i.size||"small").toLowerCase())&&"large"!==l&&(l="small"),n={level:o,size:l}).level+n.size){case"AAsmall":case"AAAlarge":a=s>=4.5;break;case"AAlarge":a=s>=3;break;case"AAAsmall":a=s>=7}return a},c.mostReadable=function(e,t,r){var n,a,i,o,l=null,s=0;a=(r=r||{}).includeFallbackColors,i=r.level,o=r.size;for(var u=0;u<t.length;u++)(n=c.readability(e,t[u]))>s&&(s=n,l=c(t[u]));return c.isReadable(e,l,{level:i,size:o})||!a?l:(r.includeFallbackColors=!1,c.mostReadable(e,["#fff","#000"],r))};var L=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},S=c.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(L);function O(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function D(t,r){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(t)&&(t="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(t);return t=o(r,l(0,parseFloat(t))),n&&(t=parseInt(t*r,10)/100),e.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function C(e){return o(1,l(0,e))}function E(e){return parseInt(e,16)}function P(e){return 1==e.length?"0"+e:""+e}function R(e){return e<=1&&(e=100*e+"%"),e}function z(t){return e.round(255*parseFloat(t)).toString(16)}function I(e){return E(e)/255}var N,F,j,B=(F="[\\s|\\(]+("+(N="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",j="[\\s|\\(]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",{CSS_UNIT:new RegExp(N),rgb:new RegExp("rgb"+F),rgba:new RegExp("rgba"+j),hsl:new RegExp("hsl"+F),hsla:new RegExp("hsla"+j),hsv:new RegExp("hsv"+F),hsva:new RegExp("hsva"+j),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function H(e){return!!B.CSS_UNIT.exec(e)}void 0!==t&&t.exports?t.exports=c:window.tinycolor=c}(Math)},{}],122:[function(e,t,n){(function(e){(function(){function r(t){try{if(!e.localStorage)return!1}catch(e){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],123:[function(e,t,r){var n=e("../main"),a=e("object-assign"),i=n.instance();function o(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}o.prototype=new n.baseCalendar,a(o.prototype,{name:"Chinese",jdEpoch:1721425.5,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if("string"==typeof e){var r=e.match(s);return r?r[0]:""}var n=this._validateYear(e),a=e.month(),i=""+this.toChineseMonth(n,a);return t&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(n,a)&&(i+="i"),i},monthNames:function(e){if("string"==typeof e){var t=e.match(c);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),a=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&&(a="闰"+a),a},monthNamesShort:function(e){if("string"==typeof e){var t=e.match(u);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),a=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&&(a="闰"+a),a},parseMonth:function(e,t){e=this._validateYear(e);var r,n=parseInt(t);if(isNaN(n))"闰"===t[0]&&(r=!0,t=t.substring(1)),"月"===t[t.length-1]&&(t=t.substring(0,t.length-1)),n=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(t);else{var a=t[t.length-1];r="i"===a||"I"===a}return this.toMonthIndex(e,n,r)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),"number"!=typeof e||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var a=this.intercalaryMonth(e);if(r&&t!==a||t<1||t>12)throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return a?!r&&t<=a?t-1:t:t-1},toChineseMonth:function(e,t){e.year&&(t=(e=e.year()).month());var r=this.intercalaryMonth(e);if(t<0||t>(r?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r?t<r?t+1:t:t+1},intercalaryMonth:function(e){return e=this._validateYear(e),f[e-f[0]]>>13},isIntercalaryMonth:function(e,t){e.year&&(t=(e=e.year()).month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return 0!==this.intercalaryMonth(e)},weekOfYear:function(e,t,r){var a,o=this._validateYear(e,n.local.invalidyear),l=d[o-d[0]],s=l>>9&4095,c=l>>5&15,u=31&l;(a=i.newDate(s,c,u)).add(4-(a.dayOfWeek()||7),"d");var f=this.toJD(e,t,r)-a.toJD();return 1+Math.floor(f/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=f[e-f[0]];if(t>(r>>13?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r&1<<12-t?30:29},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,l,r,n.local.invalidDate);e=this._validateYear(a.year()),t=a.month(),r=a.day();var o=this.isIntercalaryMonth(e,t),l=this.toChineseMonth(e,t),s=function(e,t,r,n,a){var i,o,l;if("object"==typeof e)o=e,i=t||{};else{var s;if(!("number"==typeof e&&e>=1888&&e<=2111))throw new Error("Lunar year outside range 1888-2111");if(!("number"==typeof t&&t>=1&&t<=12))throw new Error("Lunar month outside range 1 - 12");if(!("number"==typeof r&&r>=1&&r<=30))throw new Error("Lunar day outside range 1 - 30");"object"==typeof n?(s=!1,i=n):(s=!!n,i=a||{}),o={year:e,month:t,day:r,isIntercalary:s}}l=o.day-1;var c,u=f[o.year-f[0]],p=u>>13;c=p&&(o.month>p||o.isIntercalary)?o.month:o.month-1;for(var h=0;h<c;h++)l+=u&1<<12-h?30:29;var m=d[o.year-d[0]],y=new Date(m>>9&4095,(m>>5&15)-1,(31&m)+l);return i.year=y.getFullYear(),i.month=1+y.getMonth(),i.day=y.getDate(),i}(e,l,r,o);return i.toJD(s.year,s.month,s.day)},fromJD:function(e){var t=i.fromJD(e),r=function(e,t,r,n){var a,i;if("object"==typeof e)a=e,i=t||{};else{if(!("number"==typeof e&&e>=1888&&e<=2111))throw new Error("Solar year outside range 1888-2111");if(!("number"==typeof t&&t>=1&&t<=12))throw new Error("Solar month outside range 1 - 12");if(!("number"==typeof r&&r>=1&&r<=31))throw new Error("Solar day outside range 1 - 31");a={year:e,month:t,day:r},i=n||{}}var o=d[a.year-d[0]],l=a.year<<9|a.month<<5|a.day;i.year=l>=o?a.year:a.year-1,o=d[i.year-d[0]];var s,c=new Date(o>>9&4095,(o>>5&15)-1,31&o),u=new Date(a.year,a.month-1,a.day);s=Math.round((u-c)/864e5);var p,h=f[i.year-f[0]];for(p=0;p<13;p++){var m=h&1<<12-p?30:29;if(s<m)break;s-=m}var y=h>>13;return!y||p<y?(i.isIntercalary=!1,i.month=1+p):p===y?(i.isIntercalary=!0,i.month=p):(i.isIntercalary=!1,i.month=p),i.day=1+s,i}(t.year(),t.month(),t.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(e){var t=e.match(l),r=this._validateYear(+t[1]),n=+t[2],a=!!t[3],i=this.toMonthIndex(r,n,a),o=+t[4];return this.newDate(r,i,o)},add:function(e,t,r){var n=e.year(),a=e.month(),i=this.isIntercalaryMonth(n,a),l=this.toChineseMonth(n,a),s=Object.getPrototypeOf(o.prototype).add.call(this,e,t,r);if("y"===r){var c=s.year(),u=s.month(),f=this.isIntercalaryMonth(c,l),d=i&&f?this.toMonthIndex(c,l,!0):this.toMonthIndex(c,l,!1);d!==u&&s.month(d)}return s}});var l=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,s=/^\d?\d[iI]?/m,c=/^闰?十?[一二三四五六七八九]?月/m,u=/^闰?十?[一二三四五六七八九]?/m;n.calendars.chinese=o;var f=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],d=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},{"../main":137,"object-assign":73}],124:[function(e,t,r){var n=e("../main"),a=e("object-assign");function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Coptic",jdEpoch:1825029.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return(e=t.year()+(t.year()<0?1:0))%4==3||e%4==-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return(e=a.year())<0&&e++,a.day()+30*(a.month()-1)+365*(e-1)+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,a=t-30*(n-1)+1;return this.newDate(r,n,a)}}),n.calendars.coptic=i},{"../main":137,"object-assign":73}],125:[function(e,t,r){var n=e("../main"),a=e("object-assign");function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Discworld",jdEpoch:1721425.5,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),400},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){return(this._validate(e,t,r,n.local.invalidDate).day()+1)%8},weekDay:function(e,t,r){var n=this.dayOfWeek(e,t,r);return n>=2&&n<=6},extraInfo:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return{century:o[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return e=a.year()+(a.year()<0?1:0),t=a.month(),(r=a.day())+(t>1?16:0)+(t>2?32*(t-2):0)+400*(e-1)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=400*(t-1),e+=e>15?16:0;var r=Math.floor(e/32)+1,n=e-32*(r-1)+1;return this.newDate(t<=0?t-1:t,r,n)}});var o={20:"Fruitbat",21:"Anchovy"};n.calendars.discworld=i},{"../main":137,"object-assign":73}],126:[function(e,t,r){var n=e("../main"),a=e("object-assign");function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Ethiopian",jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return(e=t.year()+(t.year()<0?1:0))%4==3||e%4==-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return(e=a.year())<0&&e++,a.day()+30*(a.month()-1)+365*(e-1)+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,a=t-30*(n-1)+1;return this.newDate(r,n,a)}}),n.calendars.ethiopian=i},{"../main":137,"object-assign":73}],127:[function(e,t,r){var n=e("../main"),a=e("object-assign");function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function o(e,t){return e-t*Math.floor(e/t)}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return o(7*(e=e<0?e+1:e)+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return e=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear).year(),this.toJD(-1===e?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,n.local.invalidMonth),12===t&&this.leapYear(e)||8===t&&5===o(this.daysInYear(e),10)?30:9===t&&3===o(this.daysInYear(e),10)?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return 6!==this.dayOfWeek(e,t,r)},extraInfo:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);e=a.year(),t=a.month(),r=a.day();var i=e<=0?e+1:e,o=this.jdEpoch+this._delay1(i)+this._delay2(i)+r+1;if(t<7){for(var l=7;l<=this.monthsInYear(e);l++)o+=this.daysInMonth(e,l);for(l=1;l<t;l++)o+=this.daysInMonth(e,l)}else for(l=7;l<t;l++)o+=this.daysInMonth(e,l);return o},_delay1:function(e){var t=Math.floor((235*e-234)/19),r=12084+13753*t,n=29*t+Math.floor(r/25920);return o(3*(n+1),7)<3&&n++,n},_delay2:function(e){var t=this._delay1(e-1),r=this._delay1(e);return this._delay1(e+1)-r==356?2:r-t==382?1:0},fromJD:function(e){e=Math.floor(e)+.5;for(var t=Math.floor(98496*(e-this.jdEpoch)/35975351)-1;e>=this.toJD(-1===t?1:t+1,7,1);)t++;for(var r=e<this.toJD(t,1,1)?7:1;e>this.toJD(t,r,this.daysInMonth(t,r));)r++;var n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}}),n.calendars.hebrew=i},{"../main":137,"object-assign":73}],128:[function(e,t,r){var n=e("../main"),a=e("object-assign");function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Islamic",jdEpoch:1948439.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){return(11*this._validate(e,this.minMonth,this.minDay,n.local.invalidYear).year()+14)%30<11},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return 5!==this.dayOfWeek(e,t,r)},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return e=a.year(),t=a.month(),e=e<=0?e+1:e,(r=a.day())+Math.ceil(29.5*(t-1))+354*(e-1)+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}}),n.calendars.islamic=i},{"../main":137,"object-assign":73}],129:[function(e,t,r){var n=e("../main"),a=e("object-assign");function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Julian",jdEpoch:1721423.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return(e=t.year()<0?t.year()+1:t.year())%4==0},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return e=a.year(),t=a.month(),r=a.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5)+1524,r=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*r),a=Math.floor((t-n)/30.6001),i=a-Math.floor(a<14?1:13),o=r-Math.floor(i>2?4716:4715),l=t-n-Math.floor(30.6001*a);return o<=0&&o--,this.newDate(o,i,l)}}),n.calendars.julian=i},{"../main":137,"object-assign":73}],130:[function(e,t,r){var n=e("../main"),a=e("object-assign");function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function o(e,t){return e-t*Math.floor(e/t)}function l(e,t){return o(e-1,t)+1}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),!1},formatYear:function(e){e=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear).year();var t=Math.floor(e/400);return e%=400,e+=e<0?400:0,t+"."+Math.floor(e/20)+"."+e%20},forYear:function(e){if((e=e.split(".")).length<3)throw"Invalid Mayan year";for(var t=0,r=0;r<e.length;r++){var n=parseInt(e[r],10);if(Math.abs(n)>19||r>0&&n<0)throw"Invalid Mayan year";t=20*t+n}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,n.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,n.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,n.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){return this._validate(e,t,r,n.local.invalidDate).day()},weekDay:function(e,t,r){return this._validate(e,t,r,n.local.invalidDate),!0},extraInfo:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate).toJD(),i=this._toHaab(a),o=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){var t=o(8+(e-=this.jdEpoch)+340,365);return[Math.floor(t/20)+1,o(t,20)]},_toTzolkin:function(e){return[l(20+(e-=this.jdEpoch),20),l(e+4,13)]},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return a.day()+20*a.month()+360*a.year()+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e%=360,e+=e<0?360:0;var r=Math.floor(e/20),n=e%20;return this.newDate(t,r,n)}}),n.calendars.mayan=i},{"../main":137,"object-assign":73}],131:[function(e,t,r){var n=e("../main"),a=e("object-assign");function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar;var o=n.instance("gregorian");a(i.prototype,{name:"Nanakshahi",jdEpoch:2257673.5,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[""].invalidYear);return o.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidMonth);(e=a.year())<0&&e++;for(var i=a.day(),l=1;l<a.month();l++)i+=this.daysPerMonth[l-1];return i+o.toJD(e+1468,3,13)},fromJD:function(e){e=Math.floor(e+.5);for(var t=Math.floor((e-(this.jdEpoch-1))/366);e>=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,n=1;r>this.daysInMonth(t,n);)r-=this.daysInMonth(t,n),n++;return this.newDate(t,n,r)}}),n.calendars.nanakshahi=i},{"../main":137,"object-assign":73}],132:[function(e,t,r){var n=e("../main"),a=e("object-assign");function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Nepali",jdEpoch:1700709.5,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){if(e=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear).year(),void 0===this.NEPALI_CALENDAR_DATA[e])return this.daysPerYear;for(var t=0,r=this.minMonth;r<=12;r++)t+=this.NEPALI_CALENDAR_DATA[e][r];return t},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,n.local.invalidMonth),void 0===this.NEPALI_CALENDAR_DATA[e]?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return 6!==this.dayOfWeek(e,t,r)},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);e=a.year(),t=a.month(),r=a.day();var i=n.instance(),o=0,l=t,s=e;this._createMissingCalendarData(e);var c=e-(l>9||9===l&&r>=this.NEPALI_CALENDAR_DATA[s][0]?56:57);for(9!==t&&(o=r,l--);9!==l;)l<=0&&(l=12,s--),o+=this.NEPALI_CALENDAR_DATA[s][l],l--;return 9===t?(o+=r-this.NEPALI_CALENDAR_DATA[s][0])<0&&(o+=i.daysInYear(c)):o+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],i.newDate(c,1,1).add(o,"d").toJD()},fromJD:function(e){var t=n.instance().fromJD(e),r=t.year(),a=t.dayOfYear(),i=r+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;a>s;)++o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var c=this.NEPALI_CALENDAR_DATA[i][o]-(s-a);return this.newDate(i,o,c)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r<e+2;r++)void 0===this.NEPALI_CALENDAR_DATA[r]&&(this.NEPALI_CALENDAR_DATA[r]=t)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),n.calendars.nepali=i},{"../main":137,"object-assign":73}],133:[function(e,t,r){var n=e("../main"),a=e("object-assign");function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function o(e,t){return e-t*Math.floor(e/t)}i.prototype=new n.baseCalendar,a(i.prototype,{name:"Persian",jdEpoch:1948320.5,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return 682*((t.year()-(t.year()>0?474:473))%2820+474+38)%2816<682},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-(n.dayOfWeek()+1)%7,"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return 5!==this.dayOfWeek(e,t,r)},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);e=a.year(),t=a.month(),r=a.day();var i=e-(e>=0?474:473),l=474+o(i,2820);return r+(t<=7?31*(t-1):30*(t-1)+6)+Math.floor((682*l-110)/2816)+365*(l-1)+1029983*Math.floor(i/2820)+this.jdEpoch-1},fromJD:function(e){var t=(e=Math.floor(e)+.5)-this.toJD(475,1,1),r=Math.floor(t/1029983),n=o(t,1029983),a=2820;if(1029982!==n){var i=Math.floor(n/366),l=o(n,366);a=Math.floor((2134*i+2816*l+2815)/1028522)+i+1}var s=a+2820*r+474;s=s<=0?s-1:s;var c=e-this.toJD(s,1,1)+1,u=c<=186?Math.ceil(c/31):Math.ceil((c-6)/30),f=e-this.toJD(s,u,1)+1;return this.newDate(s,u,f)}}),n.calendars.persian=i,n.calendars.jalali=i},{"../main":137,"object-assign":73}],134:[function(e,t,r){var n=e("../main"),a=e("object-assign"),i=n.instance();function o(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}o.prototype=new n.baseCalendar,a(o.prototype,{name:"Taiwan",jdEpoch:2419402.5,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return e=this._t2gYear(t.year()),i.leapYear(e)},weekOfYear:function(e,t,r){var a=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return e=this._t2gYear(a.year()),i.weekOfYear(e,a.month(),a.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return e=this._t2gYear(a.year()),i.toJD(e,a.month(),a.day())},fromJD:function(e){var t=i.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}}),n.calendars.taiwan=o},{"../main":137,"object-assign":73}],135:[function(e,t,r){var n=e("../main"),a=e("object-assign"),i=n.instance();function o(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}o.prototype=new n.baseCalendar,a(o.prototype,{name:"Thai",jdEpoch:1523098.5,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return e=this._t2gYear(t.year()),i.leapYear(e)},weekOfYear:function(e,t,r){var a=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return e=this._t2gYear(a.year()),i.weekOfYear(e,a.month(),a.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate);return e=this._t2gYear(a.year()),i.toJD(e,a.month(),a.day())},fromJD:function(e){var t=i.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}}),n.calendars.thai=o},{"../main":137,"object-assign":73}],136:[function(e,t,r){var n=e("../main"),a=e("object-assign");function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new n.baseCalendar,a(i.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,n.local.invalidYear);return 355===this.daysInYear(t.year())},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,n.local.invalidMonth).toJD()-24e5+.5,a=0,i=0;i<o.length;i++){if(o[i]>r)return o[a]-o[a-1];a++}return 30},weekDay:function(e,t,r){return 5!==this.dayOfWeek(e,t,r)},toJD:function(e,t,r){var a=this._validate(e,t,r,n.local.invalidDate),i=12*(a.year()-1)+a.month()-15292;return a.day()+o[i-1]-1+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,n=0;n<o.length&&!(o[n]>t);n++)r++;var a=r+15292,i=Math.floor((a-1)/12),l=i+1,s=a-12*i,c=t-o[r-1]+1;return this.newDate(l,s,c)},isValid:function(e,t,r){var a=n.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(a=(e=null!=e.year?e.year:e)>=1276&&e<=1500),a},_validate:function(e,t,r,a){var i=n.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw a.replace(/\{0\}/,this.local.name);return i}}),n.calendars.ummalqura=i;var o=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},{"../main":137,"object-assign":73}],137:[function(e,t,r){var n=e("object-assign");function a(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function i(e,t,r,n){if(this._calendar=e,this._year=t,this._month=r,this._day=n,0===this._calendar._validateLevel&&!this._calendar.isValid(this._year,this._month,this._day))throw(c.local.invalidDate||c.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function o(e,t){return"000000".substring(0,t-(e=""+e).length)+e}function l(){this.shortYearCutoff="+10"}function s(e){this.local=this.regionalOptions[e]||this.regionalOptions[""]}n(a.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,n,a){return(n=(null!=e&&e.year?e.calendar():"string"==typeof n?this.instance(n,a):n)||this.instance()).newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,(function(t){return e[t]}))}},substituteChineseDigits:function(e,t){return function(r){for(var n="",a=0;r>0;){var i=r%10;n=(0===i?"":e[i]+t[a])+n,a++,r=Math.floor(r/10)}return 0===n.indexOf(e[1]+t[1])&&(n=n.substr(1)),n||e[0]}}}),n(i.prototype,{newDate:function(e,t,r){return this._calendar.newDate(null==e?this:e,t,r)},year:function(e){return 0===arguments.length?this._year:this.set(e,"y")},month:function(e){return 0===arguments.length?this._month:this.set(e,"m")},day:function(e){return 0===arguments.length?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(c.local.invalidDate||c.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(c.local.differentCalendars||c.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return 0===t?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+o(Math.abs(this.year()),4)+"-"+o(this.month(),2)+"-"+o(this.day(),2)}}),n(l.prototype,{_validateLevel:0,newDate:function(e,t,r){return null==e?this.today():(e.year&&(this._validate(e,t,r,c.local.invalidDate||c.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new i(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){return this._validate(e,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+o(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,c.local.invalidMonth||c.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,c.local.invalidMonth||c.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var n=this._validate(e,t,r,c.local.invalidDate||c.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,c.local.invalidDate||c.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,c.local.invalidDate||c.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,"d"===r||"w"===r){var n=e.toJD()+t*("w"===r?this.daysInWeek():1),a=e.calendar().fromJD(n);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var i=e.year()+("y"===r?t:0),o=e.monthOfYear()+("m"===r?t:0),l=(a=e.day(),function(e){for(;o<e.minMonth;)i--,o+=e.monthsInYear(i);for(var t=e.monthsInYear(i);o>t-1+e.minMonth;)i++,o-=t,t=e.monthsInYear(i)});"y"===r?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),a=Math.min(a,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):"m"===r&&(l(this),a=Math.min(a,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),a];return this._validateLevel--,s}catch(e){throw this._validateLevel--,e}},_correctAdd:function(e,t,r,n){if(!(this.hasYearZero||"y"!==n&&"m"!==n||0!==t[0]&&e.year()>0==t[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],i=r<0?-1:1;t=this._add(e,r*a[0]+i*a[1],a[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[""].invalidDate);var n="y"===r?t:e.year(),a="m"===r?t:e.month(),i="d"===r?t:e.day();return"y"!==r&&"m"!==r||(i=Math.min(i,this.daysInMonth(n,a))),e.date(n,a,i)},isValid:function(e,t,r){this._validateLevel++;var n=this.hasYearZero||0!==e;if(n){var a=this.newDate(e,t,this.minDay);n=t>=this.minMonth&&t-this.minMonth<this.monthsInYear(a)&&r>=this.minDay&&r-this.minDay<this.daysInMonth(a)}return this._validateLevel--,n},toJSDate:function(e,t,r){var n=this._validate(e,t,r,c.local.invalidDate||c.regionalOptions[""].invalidDate);return c.instance().fromJD(this.toJD(n)).toJSDate()},fromJSDate:function(e){return this.fromJD(c.instance().fromJSDate(e).toJD())},_validate:function(e,t,r,n){if(e.year){if(0===this._validateLevel&&this.name!==e.calendar().name)throw(c.local.differentCalendars||c.regionalOptions[""].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,e.calendar().local.name);return e}try{if(this._validateLevel++,1===this._validateLevel&&!this.isValid(e,t,r))throw n.replace(/\{0\}/,this.local.name);var a=this.newDate(e,t,r);return this._validateLevel--,a}catch(e){throw this._validateLevel--,e}}}),s.prototype=new l,n(s.prototype,{name:"Gregorian",jdEpoch:1721425.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Gregorian",epochs:["BCE","CE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear);return(e=t.year()+(t.year()<0?1:0))%4==0&&(e%100!=0||e%400==0)},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,c.local.invalidMonth||c.regionalOptions[""].invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,c.local.invalidDate||c.regionalOptions[""].invalidDate);e=n.year(),t=n.month(),r=n.day(),e<0&&e++,t<3&&(t+=12,e--);var a=Math.floor(e/100),i=2-a+Math.floor(a/4);return Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r+i-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=Math.floor((t-1867216.25)/36524.25),n=1524+(r=t+1+r-Math.floor(r/4)),a=Math.floor((n-122.1)/365.25),i=Math.floor(365.25*a),o=Math.floor((n-i)/30.6001),l=n-i-Math.floor(30.6001*o),s=o-(o>13.5?13:1),c=a-(s>2.5?4716:4715);return c<=0&&c--,this.newDate(c,s,l)},toJSDate:function(e,t,r){var n=this._validate(e,t,r,c.local.invalidDate||c.regionalOptions[""].invalidDate),a=new Date(n.year(),n.month()-1,n.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var c=t.exports=new a;c.cdate=i,c.baseCalendar=l,c.calendars.gregorian=s},{"object-assign":73}],138:[function(e,t,r){var n=e("object-assign"),a=e("./main");n(a.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),a.local=a.regionalOptions[""],n(a.cdate.prototype,{formatDate:function(e,t){return"string"!=typeof e&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}}),n(a.baseCalendar.prototype,{UNIX_EPOCH:a.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:a.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,r){if("string"!=typeof e&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw a.local.invalidFormat||a.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat;for(var n=(r=r||{}).dayNamesShort||this.local.dayNamesShort,i=r.dayNames||this.local.dayNames,o=r.monthNumbers||this.local.monthNumbers,l=r.monthNamesShort||this.local.monthNamesShort,s=r.monthNames||this.local.monthNames,c=(r.calculateWeek||this.local.calculateWeek,function(t,r){for(var n=1;v+n<e.length&&e.charAt(v+n)===t;)n++;return v+=n-1,Math.floor(n/(r||1))>1}),u=function(e,t,r,n){var a=""+t;if(c(e,n))for(;a.length<r;)a="0"+a;return a},f=this,d=function(e){return"function"==typeof o?o.call(f,e,c("m")):m(u("m",e.month(),2))},p=function(e,t){return t?"function"==typeof s?s.call(f,e):s[e.month()-f.minMonth]:"function"==typeof l?l.call(f,e):l[e.month()-f.minMonth]},h=this.local.digits,m=function(e){return r.localNumbers&&h?h(e):e},y="",g=!1,v=0;v<e.length;v++)if(g)"'"!==e.charAt(v)||c("'")?y+=e.charAt(v):g=!1;else switch(e.charAt(v)){case"d":y+=m(u("d",t.day(),2));break;case"D":y+=(x="D",b=t.dayOfWeek(),_=n,w=i,c(x)?w[b]:_[b]);break;case"o":y+=u("o",t.dayOfYear(),3);break;case"w":y+=u("w",t.weekOfYear(),2);break;case"m":y+=d(t);break;case"M":y+=p(t,c("M"));break;case"y":y+=c("y",2)?t.year():(t.year()%100<10?"0":"")+t.year()%100;break;case"Y":c("Y",2),y+=t.formatYear();break;case"J":y+=t.toJD();break;case"@":y+=(t.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":y+=(t.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":c("'")?y+="'":g=!0;break;default:y+=e.charAt(v)}var x,b,_,w;return y},parseDate:function(e,t,r){if(null==t)throw a.local.invalidArguments||a.regionalOptions[""].invalidArguments;if(""===(t="object"==typeof t?t.toString():t+""))return null;e=e||this.local.dateFormat;var n=(r=r||{}).shortYearCutoff||this.shortYearCutoff;n="string"!=typeof n?n:this.today().year()%100+parseInt(n,10);for(var i=r.dayNamesShort||this.local.dayNamesShort,o=r.dayNames||this.local.dayNames,l=r.parseMonth||this.local.parseMonth,s=r.monthNumbers||this.local.monthNumbers,c=r.monthNamesShort||this.local.monthNamesShort,u=r.monthNames||this.local.monthNames,f=-1,d=-1,p=-1,h=-1,m=-1,y=!1,g=!1,v=function(t,r){for(var n=1;A+n<e.length&&e.charAt(A+n)===t;)n++;return A+=n-1,Math.floor(n/(r||1))>1},x=function(e,r){var n=v(e,r),i=[2,3,n?4:2,n?4:2,10,11,20]["oyYJ@!".indexOf(e)+1],o=new RegExp("^-?\\d{1,"+i+"}"),l=t.substring(k).match(o);if(!l)throw(a.local.missingNumberAt||a.regionalOptions[""].missingNumberAt).replace(/\{0\}/,k);return k+=l[0].length,parseInt(l[0],10)},b=this,_=function(){if("function"==typeof s){v("m");var e=s.call(b,t.substring(k));return k+=e.length,e}return x("m")},w=function(e,r,n,i){for(var o=v(e,i)?n:r,l=0;l<o.length;l++)if(t.substr(k,o[l].length).toLowerCase()===o[l].toLowerCase())return k+=o[l].length,l+b.minMonth;throw(a.local.unknownNameAt||a.regionalOptions[""].unknownNameAt).replace(/\{0\}/,k)},T=function(){if("function"==typeof u){var e=v("M")?u.call(b,t.substring(k)):c.call(b,t.substring(k));return k+=e.length,e}return w("M",c,u)},M=function(){if(t.charAt(k)!==e.charAt(A))throw(a.local.unexpectedLiteralAt||a.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,k);k++},k=0,A=0;A<e.length;A++)if(g)"'"!==e.charAt(A)||v("'")?M():g=!1;else switch(e.charAt(A)){case"d":h=x("d");break;case"D":w("D",i,o);break;case"o":m=x("o");break;case"w":x("w");break;case"m":p=_();break;case"M":p=T();break;case"y":var L=A;y=!v("y",2),A=L,d=x("y",2);break;case"Y":d=x("Y",2);break;case"J":f=x("J")+.5,"."===t.charAt(k)&&(k++,x("J"));break;case"@":f=x("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":f=x("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":k=t.length;break;case"'":v("'")?M():g=!0;break;default:M()}if(k<t.length)throw a.local.unexpectedText||a.regionalOptions[""].unexpectedText;if(-1===d?d=this.today().year():d<100&&y&&(d+=-1===n?1900:this.today().year()-this.today().year()%100-(d<=n?0:100)),"string"==typeof p&&(p=l.call(this,d,p)),m>-1){p=1,h=m;for(var S=this.daysInMonth(d,p);h>S;S=this.daysInMonth(d,p))p++,h-=S}return f>-1?this.fromJD(f):this.newDate(d,p,h)},determineDate:function(e,t,r,n,a){r&&"object"!=typeof r&&(a=n,n=r,r=null),"string"!=typeof n&&(a=n,n="");var i=this;return t=t?t.newDate():null,null==e?t:"string"==typeof e?function(e){try{return i.parseDate(n,e,a)}catch(e){}for(var t=((e=e.toLowerCase()).match(/^c/)&&r?r.newDate():null)||i.today(),o=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,l=o.exec(e);l;)t.add(parseInt(l[1],10),l[2]||"d"),l=o.exec(e);return t}(e):"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?t:i.today().add(e,"d"):i.newDate(e)}})},{"./main":137,"object-assign":73}],139:[function(e,t,r){"use strict";t.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},{}],140:[function(e,t,r){"use strict";var n=e("./arrow_paths"),a=e("../../plots/font_attributes"),i=e("../../plots/cartesian/constants"),o=e("../../plot_api/plot_template").templatedArray;e("../../constants/axis_placeable_objects"),t.exports=o("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:a({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:n.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:n.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",i.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",i.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:a({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},{"../../constants/axis_placeable_objects":263,"../../plot_api/plot_template":323,"../../plots/cartesian/constants":341,"../../plots/font_attributes":363,"./arrow_paths":139}],141:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../plots/cartesian/axes"),i=e("./draw").draw;function o(e){var t=e._fullLayout;n.filterVisible(t.annotations).forEach((function(t){var r=a.getFromId(e,t.xref),n=a.getFromId(e,t.yref),i=a.getRefType(t.xref),o=a.getRefType(t.yref);t._extremes={},"range"===i&&l(t,r),"range"===o&&l(t,n)}))}function l(e,t){var r,n=t._id,i=n.charAt(0),o=e[i],l=e["a"+i],s=e[i+"ref"],c=e["a"+i+"ref"],u=e["_"+i+"padplus"],f=e["_"+i+"padminus"],d={x:1,y:-1}[i]*e[i+"shift"],p=3*e.arrowsize*e.arrowwidth||0,h=p+d,m=p-d,y=3*e.startarrowsize*e.arrowwidth||0,g=y+d,v=y-d;if(c===s){var x=a.findExtremes(t,[t.r2c(o)],{ppadplus:h,ppadminus:m}),b=a.findExtremes(t,[t.r2c(l)],{ppadplus:Math.max(u,g),ppadminus:Math.max(f,v)});r={min:[x.min[0],b.min[0]],max:[x.max[0],b.max[0]]}}else g=l?g+l:g,v=l?v-l:v,r=a.findExtremes(t,[t.r2c(o)],{ppadplus:Math.max(u,h,g),ppadminus:Math.max(f,m,v)});e._extremes[n]=r}t.exports=function(e){var t=e._fullLayout;if(n.filterVisible(t.annotations).length&&e._fullData.length)return n.syncOrAsync([i,o],e)}},{"../../lib":287,"../../plots/cartesian/axes":334,"./draw":146}],142:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../registry"),i=e("../../plot_api/plot_template").arrayEditor;function o(e,t){var r,n,a,i,o,s,c,u=e._fullLayout.annotations,f=[],d=[],p=[],h=(t||[]).length;for(r=0;r<u.length;r++)if(i=(a=u[r]).clicktoshow){for(n=0;n<h;n++)if(s=(o=t[n]).xaxis,c=o.yaxis,s._id===a.xref&&c._id===a.yref&&s.d2r(o.x)===l(a._xclick,s)&&c.d2r(o.y)===l(a._yclick,c)){(a.visible?"onout"===i?d:p:f).push(r);break}n===h&&a.visible&&"onout"===i&&d.push(r)}return{on:f,off:d,explicitOff:p}}function l(e,t){return"log"===t.type?t.l2r(e):t.d2r(e)}t.exports={hasClickToShow:function(e,t){var r=o(e,t);return r.on.length>0||r.explicitOff.length>0},onClick:function(e,t){var r,l,s=o(e,t),c=s.on,u=s.off.concat(s.explicitOff),f={},d=e._fullLayout.annotations;if(c.length||u.length){for(r=0;r<c.length;r++)(l=i(e.layout,"annotations",d[c[r]])).modifyItem("visible",!0),n.extendFlat(f,l.getUpdateObj());for(r=0;r<u.length;r++)(l=i(e.layout,"annotations",d[u[r]])).modifyItem("visible",!1),n.extendFlat(f,l.getUpdateObj());return a.call("update",e,{},f)}}}},{"../../lib":287,"../../plot_api/plot_template":323,"../../registry":376}],143:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../color");t.exports=function(e,t,r,i){i("opacity");var o=i("bgcolor"),l=i("bordercolor"),s=a.opacity(l);i("borderpad");var c=i("borderwidth"),u=i("showarrow");if(i("text",u?" ":r._dfltTitle.annotation),i("textangle"),n.coerceFont(i,"font",r.font),i("width"),i("align"),i("height")&&i("valign"),u){var f,d,p=i("arrowside");-1!==p.indexOf("end")&&(f=i("arrowhead"),d=i("arrowsize")),-1!==p.indexOf("start")&&(i("startarrowhead",f),i("startarrowsize",d)),i("arrowcolor",s?t.bordercolor:a.defaultLine),i("arrowwidth",2*(s&&c||1)),i("standoff"),i("startstandoff")}var h=i("hovertext"),m=r.hoverlabel||{};if(h){var y=i("hoverlabel.bgcolor",m.bgcolor||(a.opacity(o)?a.rgb(o):a.defaultLine)),g=i("hoverlabel.bordercolor",m.bordercolor||a.contrast(y));n.coerceFont(i,"hoverlabel.font",{family:m.font.family,size:m.font.size,color:m.font.color||g})}i("captureevents",!!h)}},{"../../lib":287,"../color":157}],144:[function(e,t,r){"use strict";var n=e("fast-isnumeric"),a=e("../../lib/to_log_range");t.exports=function(e,t,r,i){t=t||{};var o="log"===r&&"linear"===t.type,l="linear"===r&&"log"===t.type;if(o||l)for(var s,c,u=e._fullLayout.annotations,f=t._id.charAt(0),d=0;d<u.length;d++)s=u[d],c="annotations["+d+"].",s[f+"ref"]===t._id&&p(f),s["a"+f+"ref"]===t._id&&p("a"+f);function p(e){var r=s[e],l=null;l=o?a(r,t.range):Math.pow(10,r),n(l)||(l=null),i(c+e,l)}}},{"../../lib/to_log_range":312,"fast-isnumeric":33}],145:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../plots/cartesian/axes"),i=e("../../plots/array_container_defaults"),o=e("./common_defaults"),l=e("./attributes");function s(e,t,r){function i(r,a){return n.coerce(e,t,l,r,a)}var s=i("visible"),c=i("clicktoshow");if(s||c){o(e,t,r,i);for(var u=t.showarrow,f=["x","y"],d=[-10,-30],p={_fullLayout:r},h=0;h<2;h++){var m=f[h],y=a.coerceRef(e,t,p,m,"","paper");if("paper"!==y&&a.getFromId(p,y)._annIndices.push(t._index),a.coercePosition(t,p,i,y,m,.5),u){var g="a"+m,v=a.coerceRef(e,t,p,g,"pixel",["pixel","paper"]);"pixel"!==v&&v!==y&&(v=t[g]="pixel");var x="pixel"===v?d[h]:.4;a.coercePosition(t,p,i,v,g,x)}i(m+"anchor"),i(m+"shift")}if(n.noneOrAll(e,t,["x","y"]),u&&n.noneOrAll(e,t,["ax","ay"]),c){var b=i("xclick"),_=i("yclick");t._xclick=void 0===b?t.x:a.cleanPosition(b,p,t.xref),t._yclick=void 0===_?t.y:a.cleanPosition(_,p,t.yref)}}}t.exports=function(e,t){i(e,t,{name:"annotations",handleItemDefaults:s})}},{"../../lib":287,"../../plots/array_container_defaults":329,"../../plots/cartesian/axes":334,"./attributes":140,"./common_defaults":143}],146:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../../registry"),i=e("../../plots/plots"),o=e("../../lib"),l=o.strTranslate,s=e("../../plots/cartesian/axes"),c=e("../color"),u=e("../drawing"),f=e("../fx"),d=e("../../lib/svg_text_utils"),p=e("../../lib/setcursor"),h=e("../dragelement"),m=e("../../plot_api/plot_template").arrayEditor,y=e("./draw_arrow_head");function g(e,t){var r=e._fullLayout.annotations[t]||{},n=s.getFromId(e,r.xref),a=s.getFromId(e,r.yref);n&&n.setScale(),a&&a.setScale(),x(e,r,t,!1,n,a)}function v(e,t,r,n,a){var i=a[r],o=a[r+"ref"],l=-1!==r.indexOf("y"),c="domain"===s.getRefType(o),u=l?n.h:n.w;return e?c?i+(l?-t:t)/e._length:e.p2r(e.r2p(i)+t):i+(l?-t:t)/u}function x(e,t,r,i,g,x){var b,_,w=e._fullLayout,T=e._fullLayout._size,M=e._context.edits;i?(b="annotation-"+i,_=i+".annotations"):(b="annotation",_="annotations");var k=m(e.layout,_,t),A=k.modifyBase,L=k.modifyItem,S=k.getUpdateObj;w._infolayer.selectAll("."+b+'[data-index="'+r+'"]').remove();var O="clip"+w._uid+"_ann"+r;if(t._input&&!1!==t.visible){var D={x:{},y:{}},C=+t.textangle||0,E=w._infolayer.append("g").classed(b,!0).attr("data-index",String(r)).style("opacity",t.opacity),P=E.append("g").classed("annotation-text-g",!0),R=M[t.showarrow?"annotationTail":"annotationPosition"],z=t.captureevents||M.annotationText||R,I=P.append("g").style("pointer-events",z?"all":null).call(p,"pointer").on("click",(function(){e._dragging=!1,e.emit("plotly_clickannotation",G(n.event))}));t.hovertext&&I.on("mouseover",(function(){var r=t.hoverlabel,n=r.font,a=this.getBoundingClientRect(),i=e.getBoundingClientRect();f.loneHover({x0:a.left-i.left,x1:a.right-i.left,y:(a.top+a.bottom)/2-i.top,text:t.hovertext,color:r.bgcolor,borderColor:r.bordercolor,fontFamily:n.family,fontSize:n.size,fontColor:n.color},{container:w._hoverlayer.node(),outerContainer:w._paper.node(),gd:e})})).on("mouseout",(function(){f.loneUnhover(w._hoverlayer.node())}));var N=t.borderwidth,F=t.borderpad,j=N+F,B=I.append("rect").attr("class","bg").style("stroke-width",N+"px").call(c.stroke,t.bordercolor).call(c.fill,t.bgcolor),H=t.width||t.height,U=w._topclips.selectAll("#"+O).data(H?[0]:[]);U.enter().append("clipPath").classed("annclip",!0).attr("id",O).append("rect"),U.exit().remove();var Y=t.font,q=w._meta?o.templateString(t.text,w._meta):t.text,V=I.append("text").classed("annotation-text",!0).text(q);M.annotationText?V.call(d.makeEditable,{delegate:I,gd:e}).call(Z).on("edit",(function(r){t.text=r,this.call(Z),L("text",r),g&&g.autorange&&A(g._name+".autorange",!0),x&&x.autorange&&A(x._name+".autorange",!0),a.call("_guiRelayout",e,S())})):V.call(Z)}else n.selectAll("#"+O).remove();function G(e){var n={index:r,annotation:t._input,fullAnnotation:t,event:e};return i&&(n.subplotId=i),n}function Z(r){return r.call(u.font,Y).attr({"text-anchor":{left:"start",right:"end"}[t.align]||"middle"}),d.convertToTspans(r,e,W),r}function W(){var r=V.selectAll("a");1===r.size()&&r.text()===V.text()&&I.insert("a",":first-child").attr({"xlink:xlink:href":r.attr("xlink:href"),"xlink:xlink:show":r.attr("xlink:show")}).style({cursor:"pointer"}).node().appendChild(B.node());var n=I.select(".annotation-text-math-group"),f=!n.empty(),m=u.bBox((f?n:V).node()),b=m.width,_=m.height,k=t.width||b,z=t.height||_,F=Math.round(k+2*j),Y=Math.round(z+2*j);function q(e,t){return"auto"===t&&(t=e<1/3?"left":e>2/3?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[t]}for(var Z=!1,W=["x","y"],X=0;X<W.length;X++){var J,K,Q,$,ee,te=W[X],re=t[te+"ref"]||te,ne=t["a"+te+"ref"],ae={x:g,y:x}[te],ie=(C+("x"===te?0:-90))*Math.PI/180,oe=F*Math.cos(ie),le=Y*Math.sin(ie),se=Math.abs(oe)+Math.abs(le),ce=t[te+"anchor"],ue=t[te+"shift"]*("x"===te?1:-1),fe=D[te],de=s.getRefType(re);if(ae&&"domain"!==de){var pe=ae.r2fraction(t[te]);(pe<0||pe>1)&&(ne===re?((pe=ae.r2fraction(t["a"+te]))<0||pe>1)&&(Z=!0):Z=!0),J=ae._offset+ae.r2p(t[te]),$=.5}else{var he="domain"===de;"x"===te?(Q=t[te],J=he?ae._offset+ae._length*Q:J=T.l+T.w*Q):(Q=1-t[te],J=he?ae._offset+ae._length*Q:J=T.t+T.h*Q),$=t.showarrow?.5:Q}if(t.showarrow){fe.head=J;var me=t["a"+te];if(ee=oe*q(.5,t.xanchor)-le*q(.5,t.yanchor),ne===re){var ye=s.getRefType(ne);"domain"===ye?("y"===te&&(me=1-me),fe.tail=ae._offset+ae._length*me):"paper"===ye?"y"===te?(me=1-me,fe.tail=T.t+T.h*me):fe.tail=T.l+T.w*me:fe.tail=ae._offset+ae.r2p(me),K=ee}else fe.tail=J+me,K=ee+me;fe.text=fe.tail+ee;var ge=w["x"===te?"width":"height"];if("paper"===re&&(fe.head=o.constrain(fe.head,1,ge-1)),"pixel"===ne){var ve=-Math.max(fe.tail-3,fe.text),xe=Math.min(fe.tail+3,fe.text)-ge;ve>0?(fe.tail+=ve,fe.text+=ve):xe>0&&(fe.tail-=xe,fe.text-=xe)}fe.tail+=ue,fe.head+=ue}else K=ee=se*q($,ce),fe.text=J+ee;fe.text+=ue,ee+=ue,K+=ue,t["_"+te+"padplus"]=se/2+K,t["_"+te+"padminus"]=se/2-K,t["_"+te+"size"]=se,t["_"+te+"shift"]=ee}if(Z)I.remove();else{var be=0,_e=0;if("left"!==t.align&&(be=(k-b)*("center"===t.align?.5:1)),"top"!==t.valign&&(_e=(z-_)*("middle"===t.valign?.5:1)),f)n.select("svg").attr({x:j+be-1,y:j+_e}).call(u.setClipUrl,H?O:null,e);else{var we=j+_e-m.top,Te=j+be-m.left;V.call(d.positionText,Te,we).call(u.setClipUrl,H?O:null,e)}U.select("rect").call(u.setRect,j,j,k,z),B.call(u.setRect,N/2,N/2,F-N,Y-N),I.call(u.setTranslate,Math.round(D.x.text-F/2),Math.round(D.y.text-Y/2)),P.attr({transform:"rotate("+C+","+D.x.text+","+D.y.text+")"});var Me,ke=function(r,n){E.selectAll(".annotation-arrow-g").remove();var s=D.x.head,f=D.y.head,d=D.x.tail+r,p=D.y.tail+n,m=D.x.text+r,b=D.y.text+n,_=o.rotationXYMatrix(C,m,b),w=o.apply2DTransform(_),k=o.apply2DTransform2(_),O=+B.attr("width"),R=+B.attr("height"),z=m-.5*O,N=z+O,F=b-.5*R,j=F+R,H=[[z,F,z,j],[z,j,N,j],[N,j,N,F],[N,F,z,F]].map(k);if(!H.reduce((function(e,t){return e^!!o.segmentsIntersect(s,f,s+1e6,f+1e6,t[0],t[1],t[2],t[3])}),!1)){H.forEach((function(e){var t=o.segmentsIntersect(d,p,s,f,e[0],e[1],e[2],e[3]);t&&(d=t.x,p=t.y)}));var U=t.arrowwidth,Y=t.arrowcolor,q=t.arrowside,V=E.append("g").style({opacity:c.opacity(Y)}).classed("annotation-arrow-g",!0),G=V.append("path").attr("d","M"+d+","+p+"L"+s+","+f).style("stroke-width",U+"px").call(c.stroke,c.rgb(Y));if(y(G,q,t),M.annotationPosition&&G.node().parentNode&&!i){var Z=s,W=f;if(t.standoff){var X=Math.sqrt(Math.pow(s-d,2)+Math.pow(f-p,2));Z+=t.standoff*(d-s)/X,W+=t.standoff*(p-f)/X}var J,K,Q=V.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(d-Z)+","+(p-W),transform:l(Z,W)}).style("stroke-width",U+6+"px").call(c.stroke,"rgba(0,0,0,0)").call(c.fill,"rgba(0,0,0,0)");h.init({element:Q.node(),gd:e,prepFn:function(){var e=u.getTranslate(I);J=e.x,K=e.y,g&&g.autorange&&A(g._name+".autorange",!0),x&&x.autorange&&A(x._name+".autorange",!0)},moveFn:function(e,r){var n=w(J,K),a=n[0]+e,i=n[1]+r;I.call(u.setTranslate,a,i),L("x",v(g,e,"x",T,t)),L("y",v(x,r,"y",T,t)),t.axref===t.xref&&L("ax",v(g,e,"ax",T,t)),t.ayref===t.yref&&L("ay",v(x,r,"ay",T,t)),V.attr("transform",l(e,r)),P.attr({transform:"rotate("+C+","+a+","+i+")"})},doneFn:function(){a.call("_guiRelayout",e,S());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}};t.showarrow&&ke(0,0),R&&h.init({element:I.node(),gd:e,prepFn:function(){Me=P.attr("transform")},moveFn:function(e,r){var n="pointer";if(t.showarrow)t.axref===t.xref?L("ax",v(g,e,"ax",T,t)):L("ax",t.ax+e),t.ayref===t.yref?L("ay",v(x,r,"ay",T.w,t)):L("ay",t.ay+r),ke(e,r);else{if(i)return;var a,o;if(g)a=v(g,e,"x",T,t);else{var s=t._xsize/T.w,c=t.x+(t._xshift-t.xshift)/T.w-s/2;a=h.align(c+e/T.w,s,0,1,t.xanchor)}if(x)o=v(x,r,"y",T,t);else{var u=t._ysize/T.h,f=t.y-(t._yshift+t.yshift)/T.h-u/2;o=h.align(f-r/T.h,u,0,1,t.yanchor)}L("x",a),L("y",o),g&&x||(n=h.getCursor(g?.5:a,x?.5:o,t.xanchor,t.yanchor))}P.attr({transform:l(e,r)+Me}),p(I,n)},clickFn:function(r,n){t.captureevents&&e.emit("plotly_clickannotation",G(n))},doneFn:function(){p(I),a.call("_guiRelayout",e,S());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}}t.exports={draw:function(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r<t.annotations.length;r++)t.annotations[r].visible&&g(e,r);return i.previousPromises(e)},drawOne:g,drawRaw:x}},{"../../lib":287,"../../lib/setcursor":307,"../../lib/svg_text_utils":310,"../../plot_api/plot_template":323,"../../plots/cartesian/axes":334,"../../plots/plots":369,"../../registry":376,"../color":157,"../dragelement":176,"../drawing":179,"../fx":197,"./draw_arrow_head":147,"@plotly/d3":20}],147:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../color"),i=e("./arrow_paths"),o=e("../../lib"),l=o.strScale,s=o.strRotate,c=o.strTranslate;t.exports=function(e,t,r){var o,u,f,d,p=e.node(),h=i[r.arrowhead||0],m=i[r.startarrowhead||0],y=(r.arrowwidth||1)*(r.arrowsize||1),g=(r.arrowwidth||1)*(r.startarrowsize||1),v=t.indexOf("start")>=0,x=t.indexOf("end")>=0,b=h.backoff*y+r.standoff,_=m.backoff*g+r.startstandoff;if("line"===p.nodeName){o={x:+e.attr("x1"),y:+e.attr("y1")},u={x:+e.attr("x2"),y:+e.attr("y2")};var w=o.x-u.x,T=o.y-u.y;if(d=(f=Math.atan2(T,w))+Math.PI,b&&_&&b+_>Math.sqrt(w*w+T*T))return void R();if(b){if(b*b>w*w+T*T)return void R();var M=b*Math.cos(f),k=b*Math.sin(f);u.x+=M,u.y+=k,e.attr({x2:u.x,y2:u.y})}if(_){if(_*_>w*w+T*T)return void R();var A=_*Math.cos(f),L=_*Math.sin(f);o.x-=A,o.y-=L,e.attr({x1:o.x,y1:o.y})}}else if("path"===p.nodeName){var S=p.getTotalLength(),O="";if(S<b+_)return void R();var D=p.getPointAtLength(0),C=p.getPointAtLength(.1);f=Math.atan2(D.y-C.y,D.x-C.x),o=p.getPointAtLength(Math.min(_,S)),O="0px,"+_+"px,";var E=p.getPointAtLength(S),P=p.getPointAtLength(S-.1);d=Math.atan2(E.y-P.y,E.x-P.x),u=p.getPointAtLength(Math.max(0,S-b)),O+=S-(O?_+b:b)+"px,"+S+"px",e.style("stroke-dasharray",O)}function R(){e.style("stroke-dasharray","0px,100px")}function z(t,i,o,u){t.path&&(t.noRotate&&(o=0),n.select(p.parentNode).append("path").attr({class:e.attr("class"),d:t.path,transform:c(i.x,i.y)+s(180*o/Math.PI)+l(u)}).style({fill:a.rgb(r.arrowcolor),"stroke-width":0}))}v&&z(m,o,f,g),x&&z(h,u,d,y)}},{"../../lib":287,"../color":157,"./arrow_paths":139,"@plotly/d3":20}],148:[function(e,t,r){"use strict";var n=e("./draw"),a=e("./click");t.exports={moduleType:"component",name:"annotations",layoutAttributes:e("./attributes"),supplyLayoutDefaults:e("./defaults"),includeBasePlot:e("../../plots/cartesian/include_components")("annotations"),calcAutorange:e("./calc_autorange"),draw:n.draw,drawOne:n.drawOne,drawRaw:n.drawRaw,hasClickToShow:a.hasClickToShow,onClick:a.onClick,convertCoords:e("./convert_coords")}},{"../../plots/cartesian/include_components":347,"./attributes":140,"./calc_autorange":141,"./click":142,"./convert_coords":144,"./defaults":145,"./draw":146}],149:[function(e,t,r){"use strict";var n=e("../annotations/attributes"),a=e("../../plot_api/edit_types").overrideAll,i=e("../../plot_api/plot_template").templatedArray;t.exports=a(i("annotation",{visible:n.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:n.xanchor,xshift:n.xshift,yanchor:n.yanchor,yshift:n.yshift,text:n.text,textangle:n.textangle,font:n.font,width:n.width,height:n.height,opacity:n.opacity,align:n.align,valign:n.valign,bgcolor:n.bgcolor,bordercolor:n.bordercolor,borderpad:n.borderpad,borderwidth:n.borderwidth,showarrow:n.showarrow,arrowcolor:n.arrowcolor,arrowhead:n.arrowhead,startarrowhead:n.startarrowhead,arrowside:n.arrowside,arrowsize:n.arrowsize,startarrowsize:n.startarrowsize,arrowwidth:n.arrowwidth,standoff:n.standoff,startstandoff:n.startstandoff,hovertext:n.hovertext,hoverlabel:n.hoverlabel,captureevents:n.captureevents}),"calc","from-root")},{"../../plot_api/edit_types":316,"../../plot_api/plot_template":323,"../annotations/attributes":140}],150:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../plots/cartesian/axes");function i(e,t){var r=t.fullSceneLayout.domain,i=t.fullLayout._size,o={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};e._xa={},n.extendFlat(e._xa,o),a.setConvert(e._xa),e._xa._offset=i.l+r.x[0]*i.w,e._xa.l2p=function(){return.5*(1+e._pdata[0]/e._pdata[3])*i.w*(r.x[1]-r.x[0])},e._ya={},n.extendFlat(e._ya,o),a.setConvert(e._ya),e._ya._offset=i.t+(1-r.y[1])*i.h,e._ya.l2p=function(){return.5*(1-e._pdata[1]/e._pdata[3])*i.h*(r.y[1]-r.y[0])}}t.exports=function(e){for(var t=e.fullSceneLayout.annotations,r=0;r<t.length;r++)i(t[r],e);e.fullLayout._infolayer.selectAll(".annotation-"+e.id).remove()}},{"../../lib":287,"../../plots/cartesian/axes":334}],151:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../plots/cartesian/axes"),i=e("../../plots/array_container_defaults"),o=e("../annotations/common_defaults"),l=e("./attributes");function s(e,t,r,i){function s(r,a){return n.coerce(e,t,l,r,a)}function c(e){var n=e+"axis",i={_fullLayout:{}};return i._fullLayout[n]=r[n],a.coercePosition(t,i,s,e,e,.5)}s("visible")&&(o(e,t,i.fullLayout,s),c("x"),c("y"),c("z"),n.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",s("xanchor"),s("yanchor"),s("xshift"),s("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",s("ax",-10),s("ay",-30),n.noneOrAll(e,t,["ax","ay"])))}t.exports=function(e,t,r){i(e,t,{name:"annotations",handleItemDefaults:s,fullLayout:r.fullLayout})}},{"../../lib":287,"../../plots/array_container_defaults":329,"../../plots/cartesian/axes":334,"../annotations/common_defaults":143,"./attributes":149}],152:[function(e,t,r){"use strict";var n=e("../annotations/draw").drawRaw,a=e("../../plots/gl3d/project"),i=["x","y","z"];t.exports=function(e){for(var t=e.fullSceneLayout,r=e.dataScale,o=t.annotations,l=0;l<o.length;l++){for(var s=o[l],c=!1,u=0;u<3;u++){var f=i[u],d=s[f],p=t[f+"axis"].r2fraction(d);if(p<0||p>1){c=!0;break}}c?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+l+'"]').remove():(s._pdata=a(e.glplot.cameraParams,[t.xaxis.r2l(s.x)*r[0],t.yaxis.r2l(s.y)*r[1],t.zaxis.r2l(s.z)*r[2]]),n(e.graphDiv,s,l,e.id,s._xa,s._ya))}}},{"../../plots/gl3d/project":366,"../annotations/draw":146}],153:[function(e,t,r){"use strict";var n=e("../../registry"),a=e("../../lib");t.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:e("./attributes")}}},layoutAttributes:e("./attributes"),handleDefaults:e("./defaults"),includeBasePlot:function(e,t){var r=n.subplotsRegistry.gl3d;if(r)for(var i=r.attrRegex,o=Object.keys(e),l=0;l<o.length;l++){var s=o[l];i.test(s)&&(e[s].annotations||[]).length&&(a.pushUnique(t._basePlotModules,r),a.pushUnique(t._subplots.gl3d,s))}},convert:e("./convert"),draw:e("./draw")}},{"../../lib":287,"../../registry":376,"./attributes":149,"./convert":150,"./defaults":151,"./draw":152}],154:[function(e,t,r){"use strict";t.exports=e("world-calendars/dist/main"),e("world-calendars/dist/plus"),e("world-calendars/dist/calendars/chinese"),e("world-calendars/dist/calendars/coptic"),e("world-calendars/dist/calendars/discworld"),e("world-calendars/dist/calendars/ethiopian"),e("world-calendars/dist/calendars/hebrew"),e("world-calendars/dist/calendars/islamic"),e("world-calendars/dist/calendars/julian"),e("world-calendars/dist/calendars/mayan"),e("world-calendars/dist/calendars/nanakshahi"),e("world-calendars/dist/calendars/nepali"),e("world-calendars/dist/calendars/persian"),e("world-calendars/dist/calendars/taiwan"),e("world-calendars/dist/calendars/thai"),e("world-calendars/dist/calendars/ummalqura")},{"world-calendars/dist/calendars/chinese":123,"world-calendars/dist/calendars/coptic":124,"world-calendars/dist/calendars/discworld":125,"world-calendars/dist/calendars/ethiopian":126,"world-calendars/dist/calendars/hebrew":127,"world-calendars/dist/calendars/islamic":128,"world-calendars/dist/calendars/julian":129,"world-calendars/dist/calendars/mayan":130,"world-calendars/dist/calendars/nanakshahi":131,"world-calendars/dist/calendars/nepali":132,"world-calendars/dist/calendars/persian":133,"world-calendars/dist/calendars/taiwan":134,"world-calendars/dist/calendars/thai":135,"world-calendars/dist/calendars/ummalqura":136,"world-calendars/dist/main":137,"world-calendars/dist/plus":138}],155:[function(e,t,r){"use strict";var n=e("./calendars"),a=e("../../lib"),i=e("../../constants/numerical"),o=i.EPOCHJD,l=i.ONEDAY,s={valType:"enumerated",values:a.sortObjectKeys(n.calendars),editType:"calc",dflt:"gregorian"},c=function(e,t,r,n){var i={};return i[r]=s,a.coerce(e,t,i,r,n)},u="##",f={d:{0:"dd","-":"d"},e:{0:"d","-":"d"},a:{0:"D","-":"D"},A:{0:"DD","-":"DD"},j:{0:"oo","-":"o"},W:{0:"ww","-":"w"},m:{0:"mm","-":"m"},b:{0:"M","-":"M"},B:{0:"MM","-":"MM"},y:{0:"yy","-":"yy"},Y:{0:"yyyy","-":"yyyy"},U:u,w:u,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}};var d={};function p(e){var t=d[e];return t||(d[e]=n.instance(e))}function h(e){return a.extendFlat({},s,{description:e})}function m(e){return"Sets the calendar system to use with `"+e+"` date data."}var y={xcalendar:h(m("x"))},g=a.extendFlat({},y,{ycalendar:h(m("y"))}),v=a.extendFlat({},g,{zcalendar:h(m("z"))}),x=h(["Sets the calendar system to use for `range` and `tick0`","if this is a date axis. This does not set the calendar for","interpreting data on this axis, that's specified in the trace","or via the global `layout.calendar`"].join(" "));t.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:g,bar:g,box:g,heatmap:g,contour:g,histogram:g,histogram2d:g,histogram2dcontour:g,scatter3d:v,surface:v,mesh3d:v,scattergl:g,ohlc:y,candlestick:y},layout:{calendar:h(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:x},yaxis:{calendar:x},scene:{xaxis:{calendar:x},yaxis:{calendar:x},zaxis:{calendar:x}},polar:{radialaxis:{calendar:x}}},transforms:{filter:{valuecalendar:h(["WARNING: All transforms are deprecated and may be removed from the API in next major version.","Sets the calendar system to use for `value`, if it is a date."].join(" ")),targetcalendar:h(["WARNING: All transforms are deprecated and may be removed from the API in next major version.","Sets the calendar system to use for `target`, if it is an","array of dates. If `target` is a string (eg *x*) we use the","corresponding trace attribute (eg `xcalendar`) if it exists,","even if `targetcalendar` is provided."].join(" "))}}},layoutAttributes:s,handleDefaults:c,handleTraceDefaults:function(e,t,r,n){for(var a=0;a<r.length;a++)c(e,t,r[a]+"calendar",n.calendar)},CANONICAL_SUNDAY:{chinese:"2000-01-02",coptic:"2000-01-03",discworld:"2000-01-03",ethiopian:"2000-01-05",hebrew:"5000-01-01",islamic:"1000-01-02",julian:"2000-01-03",mayan:"5000-01-01",nanakshahi:"1000-01-05",nepali:"2000-01-05",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-04",thai:"2000-01-04",ummalqura:"1400-01-06"},CANONICAL_TICK:{chinese:"2000-01-01",coptic:"2000-01-01",discworld:"2000-01-01",ethiopian:"2000-01-01",hebrew:"5000-01-01",islamic:"1000-01-01",julian:"2000-01-01",mayan:"5000-01-01",nanakshahi:"1000-01-01",nepali:"2000-01-01",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-01",thai:"2000-01-01",ummalqura:"1400-01-01"},DFLTRANGE:{chinese:["2000-01-01","2001-01-01"],coptic:["1700-01-01","1701-01-01"],discworld:["1800-01-01","1801-01-01"],ethiopian:["2000-01-01","2001-01-01"],hebrew:["5700-01-01","5701-01-01"],islamic:["1400-01-01","1401-01-01"],julian:["2000-01-01","2001-01-01"],mayan:["5200-01-01","5201-01-01"],nanakshahi:["0500-01-01","0501-01-01"],nepali:["2000-01-01","2001-01-01"],persian:["1400-01-01","1401-01-01"],jalali:["1400-01-01","1401-01-01"],taiwan:["0100-01-01","0101-01-01"],thai:["2500-01-01","2501-01-01"],ummalqura:["1400-01-01","1401-01-01"]},getCal:p,worldCalFmt:function(e,t,r){for(var n,a,i,s,c,d=Math.floor((t+.05)/l)+o,h=p(r).fromJD(d),m=0;-1!==(m=e.indexOf("%",m));)"0"===(n=e.charAt(m+1))||"-"===n||"_"===n?(i=3,a=e.charAt(m+2),"_"===n&&(n="-")):(a=n,n="0",i=2),(s=f[a])?(c=s===u?u:h.formatDate(s[n]),e=e.substr(0,m)+c+e.substr(m+i),m+=c.length):m+=i;return e}}},{"../../constants/numerical":267,"../../lib":287,"./calendars":154}],156:[function(e,t,r){"use strict";r.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],r.defaultLine="#444",r.lightLine="#eee",r.background="#fff",r.borderLine="#BEC8D9",r.lightFraction=1e3/11},{}],157:[function(e,t,r){"use strict";var n=e("tinycolor2"),a=e("fast-isnumeric"),i=e("../../lib/array").isTypedArray,o=t.exports={},l=e("./attributes");o.defaults=l.defaults;var s=o.defaultLine=l.defaultLine;o.lightLine=l.lightLine;var c=o.background=l.background;function u(e){if(a(e)||"string"!=typeof e)return e;var t=e.trim();if("rgb"!==t.substr(0,3))return e;var r=t.match(/^rgba?\s*\(([^()]*)\)$/);if(!r)return e;var n=r[1].trim().split(/\s*[\s,]\s*/),i="a"===t.charAt(3)&&4===n.length;if(!i&&3!==n.length)return e;for(var o=0;o<n.length;o++){if(!n[o].length)return e;if(n[o]=Number(n[o]),!(n[o]>=0))return e;if(3===o)n[o]>1&&(n[o]=1);else if(n[o]>=1)return e}var l=Math.round(255*n[0])+", "+Math.round(255*n[1])+", "+Math.round(255*n[2]);return i?"rgba("+l+", "+n[3]+")":"rgb("+l+")"}o.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"},o.rgb=function(e){return o.tinyRGB(n(e))},o.opacity=function(e){return e?n(e).getAlpha():0},o.addOpacity=function(e,t){var r=n(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"},o.combine=function(e,t){var r=n(e).toRgb();if(1===r.a)return n(e).toRgbString();var a=n(t||c).toRgb(),i=1===a.a?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},o={r:i.r*(1-r.a)+r.r*r.a,g:i.g*(1-r.a)+r.g*r.a,b:i.b*(1-r.a)+r.b*r.a};return n(o).toRgbString()},o.contrast=function(e,t,r){var a=n(e);return 1!==a.getAlpha()&&(a=n(o.combine(e,c))),(a.isDark()?t?a.lighten(t):c:r?a.darken(r):s).toString()},o.stroke=function(e,t){var r=n(t);e.style({stroke:o.tinyRGB(r),"stroke-opacity":r.getAlpha()})},o.fill=function(e,t){var r=n(t);e.style({fill:o.tinyRGB(r),"fill-opacity":r.getAlpha()})},o.clean=function(e){if(e&&"object"==typeof e){var t,r,n,a,l=Object.keys(e);for(t=0;t<l.length;t++)if(a=e[n=l[t]],"color"===n.substr(n.length-5))if(Array.isArray(a))for(r=0;r<a.length;r++)a[r]=u(a[r]);else e[n]=u(a);else if("colorscale"===n.substr(n.length-10)&&Array.isArray(a))for(r=0;r<a.length;r++)Array.isArray(a[r])&&(a[r][1]=u(a[r][1]));else if(Array.isArray(a)){var s=a[0];if(!Array.isArray(s)&&s&&"object"==typeof s)for(r=0;r<a.length;r++)o.clean(a[r])}else a&&"object"==typeof a&&!i(a)&&o.clean(a)}}},{"../../lib/array":273,"./attributes":156,"fast-isnumeric":33,tinycolor2:121}],158:[function(e,t,r){"use strict";var n=e("../../plots/cartesian/layout_attributes"),a=e("../../plots/font_attributes"),i=e("../../lib/extend").extendFlat,o=e("../../plot_api/edit_types").overrideAll;t.exports=o({thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",dflt:1.02,min:-2,max:3},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number",dflt:.5,min:-2,max:3},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle"},ypad:{valType:"number",min:0,dflt:10},outlinecolor:n.linecolor,outlinewidth:n.linewidth,bordercolor:n.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:n.tickmode,nticks:n.nticks,tick0:n.tick0,dtick:n.dtick,tickvals:n.tickvals,ticktext:n.ticktext,ticks:i({},n.ticks,{dflt:""}),ticklabeloverflow:i({},n.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside bottom","inside bottom"],dflt:"outside"},ticklen:n.ticklen,tickwidth:n.tickwidth,tickcolor:n.tickcolor,showticklabels:n.showticklabels,tickfont:a({}),tickangle:n.tickangle,tickformat:n.tickformat,tickformatstops:n.tickformatstops,tickprefix:n.tickprefix,showtickprefix:n.showtickprefix,ticksuffix:n.ticksuffix,showticksuffix:n.showticksuffix,separatethousands:n.separatethousands,exponentformat:n.exponentformat,minexponent:n.minexponent,showexponent:n.showexponent,title:{text:{valType:"string"},font:a({}),side:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}},_deprecated:{title:{valType:"string"},titlefont:a({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")},{"../../lib/extend":281,"../../plot_api/edit_types":316,"../../plots/cartesian/layout_attributes":349,"../../plots/font_attributes":363}],159:[function(e,t,r){"use strict";t.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}},{}],160:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../plot_api/plot_template"),i=e("../../plots/cartesian/tick_value_defaults"),o=e("../../plots/cartesian/tick_mark_defaults"),l=e("../../plots/cartesian/tick_label_defaults"),s=e("./attributes");t.exports=function(e,t,r){var c=a.newContainer(t,"colorbar"),u=e.colorbar||{};function f(e,t){return n.coerce(u,c,s,e,t)}var d=f("thicknessmode");f("thickness","fraction"===d?30/(r.width-r.margin.l-r.margin.r):30);var p=f("lenmode");f("len","fraction"===p?1:r.height-r.margin.t-r.margin.b),f("x"),f("xanchor"),f("xpad"),f("y"),f("yanchor"),f("ypad"),n.noneOrAll(u,c,["x","y"]),f("outlinecolor"),f("outlinewidth"),f("bordercolor"),f("borderwidth"),f("bgcolor");var h=f("ticklabelposition");f("ticklabeloverflow",-1!==h.indexOf("inside")?"hide past domain":"hide past div"),i(u,c,f,"linear");var m=r.font,y={outerTicks:!1,font:m};-1!==h.indexOf("inside")&&(y.bgColor="black"),l(u,c,f,"linear",y),o(u,c,f,"linear",y),f("title.text",r._dfltTitle.colorbar);var g=c.tickfont,v=n.extendFlat({},g,{color:m.color,size:n.bigFont(g.size)});n.coerceFont(f,"title.font",v),f("title.side")}},{"../../lib":287,"../../plot_api/plot_template":323,"../../plots/cartesian/tick_label_defaults":356,"../../plots/cartesian/tick_mark_defaults":357,"../../plots/cartesian/tick_value_defaults":358,"./attributes":158}],161:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("tinycolor2"),i=e("../../plots/plots"),o=e("../../registry"),l=e("../../plots/cartesian/axes"),s=e("../dragelement"),c=e("../../lib"),u=c.strTranslate,f=e("../../lib/extend").extendFlat,d=e("../../lib/setcursor"),p=e("../drawing"),h=e("../color"),m=e("../titles"),y=e("../../lib/svg_text_utils"),g=e("../colorscale/helpers").flipScale,v=e("../../plots/cartesian/axis_defaults"),x=e("../../plots/cartesian/position_defaults"),b=e("../../plots/cartesian/layout_attributes"),_=e("../../constants/alignment"),w=_.LINE_SPACING,T=_.FROM_TL,M=_.FROM_BR,k=e("./constants").cn;t.exports={draw:function(e){var t=e._fullLayout._infolayer.selectAll("g."+k.colorbar).data(function(e){var t,r,n,a,i=e._fullLayout,o=e.calcdata,l=[];function s(e){return f(e,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function c(){"function"==typeof a.calc?a.calc(e,n,t):(t._fillgradient=r.reversescale?g(r.colorscale):r.colorscale,t._zrange=[r[a.min],r[a.max]])}for(var u=0;u<o.length;u++){var d=o[u],p=(n=d[0].trace)._module.colorbar;if(!0===n.visible&&p)for(var h=Array.isArray(p),m=h?p:[p],y=0;y<m.length;y++){var v=(a=m[y]).container;(r=v?n[v]:n)&&r.showscale&&((t=s(r.colorbar))._id="cb"+n.uid+(h&&v?"-"+v:""),t._traceIndex=n.index,t._propPrefix=(v?v+".":"")+"colorbar.",t._meta=n._meta,c(),l.push(t))}}for(var x in i._colorAxes)if((r=i[x]).showscale){var b=i._colorAxes[x];(t=s(r.colorbar))._id="cb"+x,t._propPrefix=x+".colorbar.",t._meta=i._meta,a={min:"cmin",max:"cmax"},"heatmap"!==b[0]&&(n=b[1],a.calc=n._module.colorbar.calc),c(),l.push(t)}return l}(e),(function(e){return e._id}));t.enter().append("g").attr("class",(function(e){return e._id})).classed(k.colorbar,!0),t.each((function(t){var r=n.select(this);c.ensureSingle(r,"rect",k.cbbg),c.ensureSingle(r,"g",k.cbfills),c.ensureSingle(r,"g",k.cblines),c.ensureSingle(r,"g",k.cbaxis,(function(e){e.classed(k.crisp,!0)})),c.ensureSingle(r,"g",k.cbtitleunshift,(function(e){e.append("g").classed(k.cbtitle,!0)})),c.ensureSingle(r,"rect",k.cboutline);var g=function(e,t,r){var o=r._fullLayout,s=o._size,d=t._fillcolor,g=t._line,_=t.title,A=_.side,L=t._zrange||n.extent(("function"==typeof d?d:g.color).domain()),S="function"==typeof g.color?g.color:function(){return g.color},O="function"==typeof d?d:function(){return d},D=t._levels,C=function(e,t,r){var n,a,i=t._levels,o=[],l=[],s=i.end+i.size/100,c=i.size,u=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(a=0;a<1e5&&(n=i.start+a*c,!(c>0?n>=s:n<=s));a++)n>u&&n<f&&o.push(n);if(t._fillgradient)l=[0];else if("function"==typeof t._fillcolor){var d=t._filllevels;if(d)for(s=d.end+d.size/100,c=d.size,a=0;a<1e5&&(n=d.start+a*c,!(c>0?n>=s:n<=s));a++)n>r[0]&&n<r[1]&&l.push(n);else(l=o.map((function(e){return e-i.size/2}))).push(l[l.length-1]+i.size)}else t._fillcolor&&"string"==typeof t._fillcolor&&(l=[0]);return i.size<0&&(o.reverse(),l.reverse()),{line:o,fill:l}}(0,t,L),E=C.fill,P=C.line,R=Math.round(t.thickness*("fraction"===t.thicknessmode?s.w:1)),z=R/s.w,I=Math.round(t.len*("fraction"===t.lenmode?s.h:1)),N=I/s.h,F=t.xpad/s.w,j=(t.borderwidth+t.outlinewidth)/2,B=t.ypad/s.h,H=Math.round(t.x*s.w+t.xpad),U=t.x-z*({middle:.5,right:1}[t.xanchor]||0),Y=t.y+N*(({top:-.5,bottom:.5}[t.yanchor]||0)-.5),q=Math.round(s.h*(1-Y)),V=q-I;t._lenFrac=N,t._thickFrac=z,t._xLeftFrac=U,t._yBottomFrac=Y;var G=t._axis=function(e,t,r){var n=e._fullLayout,a={type:"linear",range:r,tickmode:t.tickmode,nticks:t.nticks,tick0:t.tick0,dtick:t.dtick,tickvals:t.tickvals,ticktext:t.ticktext,ticks:t.ticks,ticklen:t.ticklen,tickwidth:t.tickwidth,tickcolor:t.tickcolor,showticklabels:t.showticklabels,ticklabelposition:t.ticklabelposition,ticklabeloverflow:t.ticklabeloverflow,tickfont:t.tickfont,tickangle:t.tickangle,tickformat:t.tickformat,exponentformat:t.exponentformat,minexponent:t.minexponent,separatethousands:t.separatethousands,showexponent:t.showexponent,showtickprefix:t.showtickprefix,tickprefix:t.tickprefix,showticksuffix:t.showticksuffix,ticksuffix:t.ticksuffix,title:t.title,showline:!0,anchor:"free",side:"right",position:1},i={type:"linear",_id:"y"+t._id},o={letter:"y",font:n.font,noHover:!0,noTickson:!0,noTicklabelmode:!0,calendar:n.calendar};function l(e,t){return c.coerce(a,i,b,e,t)}return v(a,i,l,o,n),x(a,i,l,o),i}(r,t,L);if(G.position=t.x+F+z,-1!==["top","bottom"].indexOf(A)&&(G.title.side=A,G.titlex=t.x+F,G.titley=Y+("top"===_.side?N-B:B)),g.color&&"auto"===t.tickmode){G.tickmode="linear",G.tick0=D.start;var Z=D.size,W=c.constrain((q-V)/50,4,15)+1,X=(L[1]-L[0])/((t.nticks||W)*Z);if(X>1){var J=Math.pow(10,Math.floor(Math.log(X)/Math.LN10));Z*=J*c.roundUp(X/J,[2,5,10]),(Math.abs(D.start)/D.size+1e-6)%1<2e-6&&(G.tick0=0)}G.dtick=Z}G.domain=[Y+B,Y+N-B],G.setScale(),e.attr("transform",u(Math.round(s.l),Math.round(s.t)));var K,Q=e.select("."+k.cbtitleunshift).attr("transform",u(-Math.round(s.l),-Math.round(s.t))),$=e.select("."+k.cbaxis),ee=0;function te(n,a){var i={propContainer:G,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:o._dfltTitle.colorbar,containerGroup:e.select("."+k.cbtitle)},l="h"===n.charAt(0)?n.substr(1):"h"+n;e.selectAll("."+l+",."+l+"-math-group").remove(),m.draw(r,n,f(i,a||{}))}function re(){if(-1!==["top","bottom"].indexOf(A)){var e,r=s.l+(t.x+F)*s.w,n=G.title.font.size;e="top"===A?(1-(Y+N-B))*s.h+s.t+3+.75*n:(1-(Y+B))*s.h+s.t-3-.25*n,te(G._id+"title",{attributes:{x:r,y:e,"text-anchor":"start"}})}}function ne(){if(-1===["top","bottom"].indexOf(A)){var e=G.title.font.size,t=G._offset+G._length/2,a=s.l+(G.position||0)*s.w+("right"===G.side?10+e*(G.showticklabels?1:.5):-10-e*(G.showticklabels?.5:0));te("h"+G._id+"title",{avoid:{selection:n.select(r).selectAll("g."+G._id+"tick"),side:A,offsetLeft:s.l,offsetTop:0,maxShift:o.width},attributes:{x:a,y:t,"text-anchor":"middle"},transform:{rotate:"-90",offset:0}})}}function ae(){if(-1!==["top","bottom"].indexOf(A)){var i=e.select("."+k.cbtitle),o=i.select("text"),f=[-t.outlinewidth/2,t.outlinewidth/2],d=i.select(".h"+G._id+"title-math-group").node(),h=15.6;if(o.node()&&(h=parseInt(o.node().style.fontSize,10)*w),d?(ee=p.bBox(d).height)>h&&(f[1]-=(ee-h)/2):o.node()&&!o.classed(k.jsPlaceholder)&&(ee=p.bBox(o.node()).height),ee){if(ee+=5,"top"===A)G.domain[1]-=ee/s.h,f[1]*=-1;else{G.domain[0]+=ee/s.h;var m=y.lineCount(o);f[1]+=(1-m)*h}i.attr("transform",u(f[0],f[1])),G.setScale()}}e.selectAll("."+k.cbfills+",."+k.cblines).attr("transform",u(0,Math.round(s.h*(1-G.domain[1])))),$.attr("transform",u(0,Math.round(-s.t)));var v=e.select("."+k.cbfills).selectAll("rect."+k.cbfill).attr("style","").data(E);v.enter().append("rect").classed(k.cbfill,!0).style("stroke","none"),v.exit().remove();var x=L.map(G.c2p).map(Math.round).sort((function(e,t){return e-t}));v.each((function(e,i){var o=[0===i?L[0]:(E[i]+E[i-1])/2,i===E.length-1?L[1]:(E[i]+E[i+1])/2].map(G.c2p).map(Math.round);o[1]=c.constrain(o[1]+(o[1]>o[0])?1:-1,x[0],x[1]);var l=n.select(this).attr({x:H,width:Math.max(R,2),y:n.min(o),height:Math.max(n.max(o)-n.min(o),2)});if(t._fillgradient)p.gradient(l,r,t._id,"vertical",t._fillgradient,"fill");else{var s=O(e).replace("e-","");l.attr("fill",a(s).toHexString())}}));var b=e.select("."+k.cblines).selectAll("path."+k.cbline).data(g.color&&g.width?P:[]);b.enter().append("path").classed(k.cbline,!0),b.exit().remove(),b.each((function(e){n.select(this).attr("d","M"+H+","+(Math.round(G.c2p(e))+g.width/2%1)+"h"+R).call(p.lineGroupStyle,g.width,S(e),g.dash)})),$.selectAll("g."+G._id+"tick,path").remove();var _=H+R+(t.outlinewidth||0)/2-("outside"===t.ticks?1:0),T=l.calcTicks(G),M=l.getTickSigns(G)[2];return l.drawTicks(r,G,{vals:"inside"===G.ticks?l.clipEnds(G,T):T,layer:$,path:l.makeTickPath(G,_,M),transFn:l.makeTransTickFn(G)}),l.drawLabels(r,G,{vals:T,layer:$,transFn:l.makeTransTickLabelFn(G),labelFns:l.makeLabelFns(G,_)})}function ie(){var n=R+t.outlinewidth/2;if(-1===G.ticklabelposition.indexOf("inside")&&(n+=p.bBox($.node()).width),(K=Q.select("text")).node()&&!K.classed(k.jsPlaceholder)){var a,o=Q.select(".h"+G._id+"title-math-group").node();a=o&&-1!==["top","bottom"].indexOf(A)?p.bBox(o).width:p.bBox(Q.node()).right-H-s.l,n=Math.max(n,a)}var l=2*t.xpad+n+t.borderwidth+t.outlinewidth/2,c=q-V;e.select("."+k.cbbg).attr({x:H-t.xpad-(t.borderwidth+t.outlinewidth)/2,y:V-j,width:Math.max(l,2),height:Math.max(c+2*j,2)}).call(h.fill,t.bgcolor).call(h.stroke,t.bordercolor).style("stroke-width",t.borderwidth),e.selectAll("."+k.cboutline).attr({x:H,y:V+t.ypad+("top"===A?ee:0),width:Math.max(R,2),height:Math.max(c-2*t.ypad-ee,2)}).call(h.stroke,t.outlinecolor).style({fill:"none","stroke-width":t.outlinewidth});var f=({center:.5,right:1}[t.xanchor]||0)*l;e.attr("transform",u(s.l-f,s.t));var d={},m=T[t.yanchor],y=M[t.yanchor];"pixels"===t.lenmode?(d.y=t.y,d.t=c*m,d.b=c*y):(d.t=d.b=0,d.yt=t.y+t.len*m,d.yb=t.y-t.len*y);var g=T[t.xanchor],v=M[t.xanchor];if("pixels"===t.thicknessmode)d.x=t.x,d.l=l*g,d.r=l*v;else{var x=l-R;d.l=x*g,d.r=x*v,d.xl=t.x-t.thickness*g,d.xr=t.x+t.thickness*v}i.autoMargin(r,t._id,d)}return c.syncOrAsync([i.previousPromises,re,ae,ne,i.previousPromises,ie],r)}(r,t,e);g&&g.then&&(e._promises||[]).push(g),e._context.edits.colorbarPosition&&function(e,t,r){var n,a,i,l=r._fullLayout._size;s.init({element:e.node(),gd:r,prepFn:function(){n=e.attr("transform"),d(e)},moveFn:function(r,o){e.attr("transform",n+u(r,o)),a=s.align(t._xLeftFrac+r/l.w,t._thickFrac,0,1,t.xanchor),i=s.align(t._yBottomFrac-o/l.h,t._lenFrac,0,1,t.yanchor);var c=s.getCursor(a,i,t.xanchor,t.yanchor);d(e,c)},doneFn:function(){if(d(e),void 0!==a&&void 0!==i){var n={};n[t._propPrefix+"x"]=a,n[t._propPrefix+"y"]=i,void 0!==t._traceIndex?o.call("_guiRestyle",r,n,t._traceIndex):o.call("_guiRelayout",r,n)}}})}(r,t,e)})),t.exit().each((function(t){i.autoMargin(e,t._id)})).remove(),t.order()}}},{"../../constants/alignment":262,"../../lib":287,"../../lib/extend":281,"../../lib/setcursor":307,"../../lib/svg_text_utils":310,"../../plots/cartesian/axes":334,"../../plots/cartesian/axis_defaults":336,"../../plots/cartesian/layout_attributes":349,"../../plots/cartesian/position_defaults":352,"../../plots/plots":369,"../../registry":376,"../color":157,"../colorscale/helpers":168,"../dragelement":176,"../drawing":179,"../titles":255,"./constants":159,"@plotly/d3":20,tinycolor2:121}],162:[function(e,t,r){"use strict";var n=e("../../lib");t.exports=function(e){return n.isPlainObject(e.colorbar)}},{"../../lib":287}],163:[function(e,t,r){"use strict";t.exports={moduleType:"component",name:"colorbar",attributes:e("./attributes"),supplyDefaults:e("./defaults"),draw:e("./draw").draw,hasColorbar:e("./has_colorbar")}},{"./attributes":158,"./defaults":160,"./draw":161,"./has_colorbar":162}],164:[function(e,t,r){"use strict";var n=e("../colorbar/attributes"),a=e("../../lib/regex").counter,i=e("../../lib/sort_object_keys"),o=e("./scales.js").scales;function l(e){return"`"+e+"`"}i(o),t.exports=function(e,t){e=e||"";var r,i=(t=t||{}).cLetter||"c",s=("onlyIfNumerical"in t?t.onlyIfNumerical:Boolean(e),"noScale"in t?t.noScale:"marker.line"===e),c="showScaleDflt"in t?t.showScaleDflt:"z"===i,u="string"==typeof t.colorscaleDflt?o[t.colorscaleDflt]:null,f=t.editTypeOverride||"",d=e?e+".":"";"colorAttr"in t?(r=t.colorAttr,t.colorAttr):l(d+(r={z:"z",c:"color"}[i]));var p=i+"auto",h=i+"min",m=i+"max",y=i+"mid",g=(l(d+p),l(d+h),l(d+m),{});g[h]=g[m]=void 0;var v={};v[p]=!1;var x={};return"color"===r&&(x.color={valType:"color",arrayOk:!0,editType:f||"style"},t.anim&&(x.color.anim=!0)),x[p]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:g},x[h]={valType:"number",dflt:null,editType:f||"plot",impliedEdits:v},x[m]={valType:"number",dflt:null,editType:f||"plot",impliedEdits:v},x[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:g},x.colorscale={valType:"colorscale",editType:"calc",dflt:u,impliedEdits:{autocolorscale:!1}},x.autocolorscale={valType:"boolean",dflt:!1!==t.autoColorDflt,editType:"calc",impliedEdits:{colorscale:void 0}},x.reversescale={valType:"boolean",dflt:!1,editType:"plot"},s||(x.showscale={valType:"boolean",dflt:c,editType:"calc"},x.colorbar=n),t.noColorAxis||(x.coloraxis={valType:"subplotid",regex:a("coloraxis"),dflt:null,editType:"calc"}),x}},{"../../lib/regex":303,"../../lib/sort_object_keys":308,"../colorbar/attributes":158,"./scales.js":172}],165:[function(e,t,r){"use strict";var n=e("fast-isnumeric"),a=e("../../lib"),i=e("./helpers").extractOpts;t.exports=function(e,t,r){var o,l=e._fullLayout,s=r.vals,c=r.containerStr,u=c?a.nestedProperty(t,c).get():t,f=i(u),d=!1!==f.auto,p=f.min,h=f.max,m=f.mid,y=function(){return a.aggNums(Math.min,null,s)},g=function(){return a.aggNums(Math.max,null,s)};void 0===p?p=y():d&&(p=u._colorAx&&n(p)?Math.min(p,y()):y()),void 0===h?h=g():d&&(h=u._colorAx&&n(h)?Math.max(h,g()):g()),d&&void 0!==m&&(h-m>m-p?p=m-(h-m):h-m<m-p&&(h=m+(m-p))),p===h&&(p-=.5,h+=.5),f._sync("min",p),f._sync("max",h),f.autocolorscale&&(o=p*h<0?l.colorscale.diverging:p>=0?l.colorscale.sequential:l.colorscale.sequentialminus,f._sync("colorscale",o))}},{"../../lib":287,"./helpers":168,"fast-isnumeric":33}],166:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("./helpers").hasColorscale,i=e("./helpers").extractOpts;t.exports=function(e,t){function r(e,t){var r=e["_"+t];void 0!==r&&(e[t]=r)}function o(e,a){var o=a.container?n.nestedProperty(e,a.container).get():e;if(o)if(o.coloraxis)o._colorAx=t[o.coloraxis];else{var l=i(o),s=l.auto;(s||void 0===l.min)&&r(o,a.min),(s||void 0===l.max)&&r(o,a.max),l.autocolorscale&&r(o,"colorscale")}}for(var l=0;l<e.length;l++){var s=e[l],c=s._module.colorbar;if(c)if(Array.isArray(c))for(var u=0;u<c.length;u++)o(s,c[u]);else o(s,c);a(s,"marker.line")&&o(s,{container:"marker.line",min:"cmin",max:"cmax"})}for(var f in t._colorAxes)o(t[f],{min:"cmin",max:"cmax"})}},{"../../lib":287,"./helpers":168}],167:[function(e,t,r){"use strict";var n=e("fast-isnumeric"),a=e("../../lib"),i=e("../colorbar/has_colorbar"),o=e("../colorbar/defaults"),l=e("./scales").isValid,s=e("../../registry").traceIs;function c(e,t){var r=t.slice(0,t.length-1);return t?a.nestedProperty(e,r).get()||{}:e}t.exports=function e(t,r,u,f,d){var p=d.prefix,h=d.cLetter,m="_module"in r,y=c(t,p),g=c(r,p),v=c(r._template||{},p)||{},x=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,u,f,d)};if(m){var b=u._colorAxes||{},_=f(p+"coloraxis");if(_){var w=s(r,"contour")&&a.nestedProperty(r,"contours.coloring").get()||"heatmap",T=b[_];return void(T?(T[2].push(x),T[0]!==w&&(T[0]=!1,a.warn(["Ignoring coloraxis:",_,"setting","as it is linked to incompatible colorscales."].join(" ")))):b[_]=[w,r,[x]])}}var M=y[h+"min"],k=y[h+"max"],A=n(M)&&n(k)&&M<k;f(p+h+"auto",!A)?f(p+h+"mid"):(f(p+h+"min"),f(p+h+"max"));var L,S,O=y.colorscale,D=v.colorscale;void 0!==O&&(L=!l(O)),void 0!==D&&(L=!l(D)),f(p+"autocolorscale",L),f(p+"colorscale"),f(p+"reversescale"),"marker.line."!==p&&(p&&m&&(S=i(y)),f(p+"showscale",S)&&(p&&v&&(g._template=v),o(y,g,u)))}},{"../../lib":287,"../../registry":376,"../colorbar/defaults":160,"../colorbar/has_colorbar":162,"./scales":172,"fast-isnumeric":33}],168:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("tinycolor2"),i=e("fast-isnumeric"),o=e("../../lib"),l=e("../color"),s=e("./scales").isValid;var c=["showscale","autocolorscale","colorscale","reversescale","colorbar"],u=["min","max","mid","auto"];function f(e){var t,r,n,a=e._colorAx,i=a||e,o={};for(r=0;r<c.length;r++)o[n=c[r]]=i[n];if(a)for(t="c",r=0;r<u.length;r++)o[n=u[r]]=i["c"+n];else{var l;for(r=0;r<u.length;r++)((l="c"+(n=u[r]))in i||(l="z"+n)in i)&&(o[n]=i[l]);t=l.charAt(0)}return o._sync=function(e,r){var n=-1!==u.indexOf(e)?t+e:e;i[n]=i["_"+n]=r},o}function d(e){for(var t=f(e),r=t.min,n=t.max,a=t.reversescale?p(t.colorscale):t.colorscale,i=a.length,o=new Array(i),l=new Array(i),s=0;s<i;s++){var c=a[s];o[s]=r+c[0]*(n-r),l[s]=c[1]}return{domain:o,range:l}}function p(e){for(var t=e.length,r=new Array(t),n=t-1,a=0;n>=0;n--,a++){var i=e[n];r[a]=[1-i[0],i[1]]}return r}function h(e,t){t=t||{};for(var r=e.domain,o=e.range,s=o.length,c=new Array(s),u=0;u<s;u++){var f=a(o[u]).toRgb();c[u]=[f.r,f.g,f.b,f.a]}var d,p=n.scale.linear().domain(r).range(c).clamp(!0),h=t.noNumericCheck,y=t.returnArray;return(d=h&&y?p:h?function(e){return m(p(e))}:y?function(e){return i(e)?p(e):a(e).isValid()?e:l.defaultLine}:function(e){return i(e)?m(p(e)):a(e).isValid()?e:l.defaultLine}).domain=p.domain,d.range=function(){return o},d}function m(e){var t={r:e[0],g:e[1],b:e[2],a:e[3]};return a(t).toRgbString()}t.exports={hasColorscale:function(e,t,r){var n=t?o.nestedProperty(e,t).get()||{}:e,a=n[r||"color"],l=!1;if(o.isArrayOrTypedArray(a))for(var c=0;c<a.length;c++)if(i(a[c])){l=!0;break}return o.isPlainObject(n)&&(l||!0===n.showscale||i(n.cmin)&&i(n.cmax)||s(n.colorscale)||o.isPlainObject(n.colorbar))},extractOpts:f,extractScale:d,flipScale:p,makeColorScaleFunc:h,makeColorScaleFuncFromTrace:function(e,t){return h(d(e),t)}}},{"../../lib":287,"../color":157,"./scales":172,"@plotly/d3":20,"fast-isnumeric":33,tinycolor2:121}],169:[function(e,t,r){"use strict";var n=e("./scales"),a=e("./helpers");t.exports={moduleType:"component",name:"colorscale",attributes:e("./attributes"),layoutAttributes:e("./layout_attributes"),supplyLayoutDefaults:e("./layout_defaults"),handleDefaults:e("./defaults"),crossTraceDefaults:e("./cross_trace_defaults"),calc:e("./calc"),scales:n.scales,defaultScale:n.defaultScale,getScale:n.get,isValidScale:n.isValid,hasColorscale:a.hasColorscale,extractOpts:a.extractOpts,extractScale:a.extractScale,flipScale:a.flipScale,makeColorScaleFunc:a.makeColorScaleFunc,makeColorScaleFuncFromTrace:a.makeColorScaleFuncFromTrace}},{"./attributes":164,"./calc":165,"./cross_trace_defaults":166,"./defaults":167,"./helpers":168,"./layout_attributes":170,"./layout_defaults":171,"./scales":172}],170:[function(e,t,r){"use strict";var n=e("../../lib/extend").extendFlat,a=e("./attributes"),i=e("./scales").scales;t.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:i.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:i.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:i.RdBu,editType:"calc"}},coloraxis:n({_isSubplotObj:!0,editType:"calc"},a("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}},{"../../lib/extend":281,"./attributes":164,"./scales":172}],171:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../plot_api/plot_template"),i=e("./layout_attributes"),o=e("./defaults");t.exports=function(e,t){function r(r,a){return n.coerce(e,t,i,r,a)}r("colorscale.sequential"),r("colorscale.sequentialminus"),r("colorscale.diverging");var l,s,c=t._colorAxes;function u(e,t){return n.coerce(l,s,i.coloraxis,e,t)}for(var f in c){var d=c[f];if(d[0])l=e[f]||{},(s=a.newContainer(t,f,"coloraxis"))._name=f,o(l,s,t,u,{prefix:"",cLetter:"c"});else{for(var p=0;p<d[2].length;p++)d[2][p]();delete t._colorAxes[f]}}}},{"../../lib":287,"../../plot_api/plot_template":323,"./defaults":167,"./layout_attributes":170}],172:[function(e,t,r){"use strict";var n=e("tinycolor2"),a={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},i=a.RdBu;function o(e){var t=0;if(!Array.isArray(e)||e.length<2)return!1;if(!e[0]||!e[e.length-1])return!1;if(0!=+e[0][0]||1!=+e[e.length-1][0])return!1;for(var r=0;r<e.length;r++){var a=e[r];if(2!==a.length||+a[0]<t||!n(a[1]).isValid())return!1;t=+a[0]}return!0}t.exports={scales:a,defaultScale:i,get:function(e,t){if(t||(t=i),!e)return t;function r(){try{e=a[e]||JSON.parse(e)}catch(r){e=t}}return"string"==typeof e&&(r(),"string"==typeof e&&r()),o(e)?e:t},isValid:function(e){return void 0!==a[e]||o(e)}}},{tinycolor2:121}],173:[function(e,t,r){"use strict";t.exports=function(e,t,r,n,a){var i=(e-r)/(n-r),o=i+t/(n-r),l=(i+o)/2;return"left"===a||"bottom"===a?i:"center"===a||"middle"===a?l:"right"===a||"top"===a?o:i<2/3-l?i:o>4/3-l?o:l}},{}],174:[function(e,t,r){"use strict";var n=e("../../lib"),a=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];t.exports=function(e,t,r,i){return e="left"===r?0:"center"===r?1:"right"===r?2:n.constrain(Math.floor(3*e),0,2),t="bottom"===i?0:"middle"===i?1:"top"===i?2:n.constrain(Math.floor(3*t),0,2),a[t][e]}},{"../../lib":287}],175:[function(e,t,r){"use strict";r.selectMode=function(e){return"lasso"===e||"select"===e},r.drawMode=function(e){return"drawclosedpath"===e||"drawopenpath"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},r.openMode=function(e){return"drawline"===e||"drawopenpath"===e},r.rectMode=function(e){return"select"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},r.freeMode=function(e){return"lasso"===e||"drawclosedpath"===e||"drawopenpath"===e},r.selectingOrDrawing=function(e){return r.freeMode(e)||r.rectMode(e)}},{}],176:[function(e,t,r){"use strict";var n=e("mouse-event-offset"),a=e("has-hover"),i=e("has-passive-events"),o=e("../../lib").removeElement,l=e("../../plots/cartesian/constants"),s=t.exports={};s.align=e("./align"),s.getCursor=e("./cursor");var c=e("./unhover");function u(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}function f(e){return n(e.changedTouches?e.changedTouches[0]:e,document.body)}s.unhover=c.wrapped,s.unhoverRaw=c.raw,s.init=function(e){var t,r,n,c,d,p,h,m,y=e.gd,g=1,v=y._context.doubleClickDelay,x=e.element;y._mouseDownTime||(y._mouseDownTime=0),x.style.pointerEvents="all",x.onmousedown=_,i?(x._ontouchstart&&x.removeEventListener("touchstart",x._ontouchstart),x._ontouchstart=_,x.addEventListener("touchstart",_,{passive:!1})):x.ontouchstart=_;var b=e.clampFn||function(e,t,r){return Math.abs(e)<r&&(e=0),Math.abs(t)<r&&(t=0),[e,t]};function _(i){y._dragged=!1,y._dragging=!0;var o=f(i);t=o[0],r=o[1],h=i.target,p=i,m=2===i.buttons||i.ctrlKey,void 0===i.clientX&&void 0===i.clientY&&(i.clientX=t,i.clientY=r),(n=(new Date).getTime())-y._mouseDownTime<v?g+=1:(g=1,y._mouseDownTime=n),e.prepFn&&e.prepFn(i,t,r),a&&!m?(d=u()).style.cursor=window.getComputedStyle(x).cursor:a||(d=document,c=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(x).cursor),document.addEventListener("mouseup",T),document.addEventListener("touchend",T),!1!==e.dragmode&&(i.preventDefault(),document.addEventListener("mousemove",w),document.addEventListener("touchmove",w,{passive:!1}))}function w(n){n.preventDefault();var a=f(n),i=e.minDrag||l.MINDRAG,o=b(a[0]-t,a[1]-r,i),c=o[0],u=o[1];(c||u)&&(y._dragged=!0,s.unhover(y,n)),y._dragged&&e.moveFn&&!m&&(y._dragdata={element:x,dx:c,dy:u},e.moveFn(c,u))}function T(t){if(delete y._dragdata,!1!==e.dragmode&&(t.preventDefault(),document.removeEventListener("mousemove",w),document.removeEventListener("touchmove",w)),document.removeEventListener("mouseup",T),document.removeEventListener("touchend",T),a?o(d):c&&(d.documentElement.style.cursor=c,c=null),y._dragging){if(y._dragging=!1,(new Date).getTime()-y._mouseDownTime>v&&(g=Math.max(g-1,1)),y._dragged)e.doneFn&&e.doneFn();else if(e.clickFn&&e.clickFn(g,p),!m){var r;try{r=new MouseEvent("click",t)}catch(e){var n=f(t);(r=document.createEvent("MouseEvents")).initMouseEvent("click",t.bubbles,t.cancelable,t.view,t.detail,t.screenX,t.screenY,n[0],n[1],t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget)}h.dispatchEvent(r)}y._dragging=!1,y._dragged=!1}else y._dragged=!1}},s.coverSlip=u},{"../../lib":287,"../../plots/cartesian/constants":341,"./align":173,"./cursor":174,"./unhover":177,"has-hover":64,"has-passive-events":65,"mouse-event-offset":71}],177:[function(e,t,r){"use strict";var n=e("../../lib/events"),a=e("../../lib/throttle"),i=e("../../lib/dom").getGraphDiv,o=e("../fx/constants"),l=t.exports={};l.wrapped=function(e,t,r){(e=i(e))._fullLayout&&a.clear(e._fullLayout._uid+o.HOVERID),l.raw(e,t,r)},l.raw=function(e,t){var r=e._fullLayout,a=e._hoverdata;t||(t={}),t.target&&!e._dragged&&!1===n.triggerHandler(e,"plotly_beforehover",t)||(r._hoverlayer.selectAll("g").remove(),r._hoverlayer.selectAll("line").remove(),r._hoverlayer.selectAll("circle").remove(),e._hoverdata=void 0,t.target&&a&&e.emit("plotly_unhover",{event:t,points:a}))}},{"../../lib/dom":279,"../../lib/events":280,"../../lib/throttle":311,"../fx/constants":191}],178:[function(e,t,r){"use strict";r.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},r.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},{}],179:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../../lib"),i=a.numberFormat,o=e("fast-isnumeric"),l=e("tinycolor2"),s=e("../../registry"),c=e("../color"),u=e("../colorscale"),f=a.strTranslate,d=e("../../lib/svg_text_utils"),p=e("../../constants/xmlns_namespaces"),h=e("../../constants/alignment").LINE_SPACING,m=e("../../constants/interactions").DESELECTDIM,y=e("../../traces/scatter/subtypes"),g=e("../../traces/scatter/make_bubble_size_func"),v=e("../../components/fx/helpers").appendArrayPointValue,x=t.exports={};x.font=function(e,t,r,n){a.isPlainObject(t)&&(n=t.color,r=t.size,t=t.family),t&&e.style("font-family",t),r+1&&e.style("font-size",r+"px"),n&&e.call(c.fill,n)},x.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)},x.setSize=function(e,t,r){e.attr("width",t).attr("height",r)},x.setRect=function(e,t,r,n,a){e.call(x.setPosition,t,r).call(x.setSize,n,a)},x.translatePoint=function(e,t,r,n){var a=r.c2p(e.x),i=n.c2p(e.y);return!!(o(a)&&o(i)&&t.node())&&("text"===t.node().nodeName?t.attr("x",a).attr("y",i):t.attr("transform",f(a,i)),!0)},x.translatePoints=function(e,t,r){e.each((function(e){var a=n.select(this);x.translatePoint(e,a,t,r)}))},x.hideOutsideRangePoint=function(e,t,r,n,a,i){t.attr("display",r.isPtWithinRange(e,a)&&n.isPtWithinRange(e,i)?null:"none")},x.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,a=t.yaxis;e.each((function(t){var i=t[0].trace,o=i.xcalendar,l=i.ycalendar,c=s.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(c).each((function(e){x.hideOutsideRangePoint(e,n.select(this),r,a,o,l)}))}))}},x.crispRound=function(e,t,r){return t&&o(t)?e._context.staticPlot?t:t<1?1:Math.round(t):r||0},x.singleLineStyle=function(e,t,r,n,a){t.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";c.stroke(t,n||i.color),x.dashLine(t,l,o)},x.lineGroupStyle=function(e,t,r,a){e.style("fill","none").each((function(e){var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=a||i.dash||"";n.select(this).call(c.stroke,r||i.color).call(x.dashLine,l,o)}))},x.dashLine=function(e,t,r){r=+r||0,t=x.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})},x.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return"solid"===e?e="":"dot"===e?e=r+"px,"+r+"px":"dash"===e?e=3*r+"px,"+3*r+"px":"longdash"===e?e=5*r+"px,"+5*r+"px":"dashdot"===e?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":"longdashdot"===e&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e},x.singleFillStyle=function(e){var t=(((n.select(e.node()).data()[0]||[])[0]||{}).trace||{}).fillcolor;t&&e.call(c.fill,t)},x.fillGroupStyle=function(e){e.style("stroke-width",0).each((function(e){var t=n.select(this);e[0].trace&&t.call(c.fill,e[0].trace.fillcolor)}))};var b=e("./symbol_defs");x.symbolNames=[],x.symbolFuncs=[],x.symbolNeedLines={},x.symbolNoDot={},x.symbolNoFill={},x.symbolList=[],Object.keys(b).forEach((function(e){var t=b[e],r=t.n;x.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),x.symbolNames[r]=e,x.symbolFuncs[r]=t.f,t.needLine&&(x.symbolNeedLines[r]=!0),t.noDot?x.symbolNoDot[r]=!0:x.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(x.symbolNoFill[r]=!0)}));var _=x.symbolNames.length;function w(e,t){var r=e%100;return x.symbolFuncs[r](t)+(e>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}x.symbolNumber=function(e){if(o(e))e=+e;else if("string"==typeof e){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),(e=x.symbolNames.indexOf(e))>=0&&(e+=t)}return e%100>=_||e>=400?0:Math.floor(Math.max(e,0))};var T={x1:1,x2:0,y1:0,y2:0},M={x1:0,x2:0,y1:1,y2:0},k=i("~f"),A={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:T},horizontalreversed:{node:"linearGradient",attrs:T,reversed:!0},vertical:{node:"linearGradient",attrs:M},verticalreversed:{node:"linearGradient",attrs:M,reversed:!0}};x.gradient=function(e,t,r,i,o,s){for(var u=o.length,f=A[i],d=new Array(u),p=0;p<u;p++)f.reversed?d[u-1-p]=[k(100*(1-o[p][0])),o[p][1]]:d[p]=[k(100*o[p][0]),o[p][1]];var h=t._fullLayout,m="g"+h._uid+"-"+r,y=h._defs.select(".gradients").selectAll("#"+m).data([i+d.join(";")],a.identity);y.exit().remove(),y.enter().append(f.node).each((function(){var e=n.select(this);f.attrs&&e.attr(f.attrs),e.attr("id",m);var t=e.selectAll("stop").data(d);t.exit().remove(),t.enter().append("stop"),t.each((function(e){var t=l(e[1]);n.select(this).attr({offset:e[0]+"%","stop-color":c.tinyRGB(t),"stop-opacity":t.getAlpha()})}))})),e.style(s,z(m,t)).style(s+"-opacity",null);var g=function(e){return"."+e.attr("class").replace(/\s/g,".")},v=g(n.select(e.node().parentNode))+">"+g(e);h._gradientUrlQueryParts[v]=1},x.pattern=function(e,t,r,i,o,l,s,u,f,d,p,h){var m="legend"===t;u&&("overlay"===f?(d=u,p=c.contrast(d)):(d=void 0,p=u));var y,g,v,x,b,_,w,T,M,k,A,L=r._fullLayout,S="p"+L._uid+"-"+i,O={};switch(o){case"/":y=l*Math.sqrt(2),g=l*Math.sqrt(2),_="path",O={d:v="M-"+y/4+","+g/4+"l"+y/2+",-"+g/2+"M0,"+g+"L"+y+",0M"+y/4*3+","+g/4*5+"l"+y/2+",-"+g/2,opacity:h,stroke:p,"stroke-width":(x=s*l)+"px"};break;case"\\":y=l*Math.sqrt(2),g=l*Math.sqrt(2),_="path",O={d:v="M"+y/4*3+",-"+g/4+"l"+y/2+","+g/2+"M0,0L"+y+","+g+"M-"+y/4+","+g/4*3+"l"+y/2+","+g/2,opacity:h,stroke:p,"stroke-width":(x=s*l)+"px"};break;case"x":y=l*Math.sqrt(2),g=l*Math.sqrt(2),v="M-"+y/4+","+g/4+"l"+y/2+",-"+g/2+"M0,"+g+"L"+y+",0M"+y/4*3+","+g/4*5+"l"+y/2+",-"+g/2+"M"+y/4*3+",-"+g/4+"l"+y/2+","+g/2+"M0,0L"+y+","+g+"M-"+y/4+","+g/4*3+"l"+y/2+","+g/2,x=l-l*Math.sqrt(1-s),_="path",O={d:v,opacity:h,stroke:p,"stroke-width":x+"px"};break;case"|":_="path",_="path",O={d:v="M"+(y=l)/2+",0L"+y/2+","+(g=l),opacity:h,stroke:p,"stroke-width":(x=s*l)+"px"};break;case"-":_="path",_="path",O={d:v="M0,"+(g=l)/2+"L"+(y=l)+","+g/2,opacity:h,stroke:p,"stroke-width":(x=s*l)+"px"};break;case"+":_="path",v="M"+(y=l)/2+",0L"+y/2+","+(g=l)+"M0,"+g/2+"L"+y+","+g/2,x=l-l*Math.sqrt(1-s),_="path",O={d:v,opacity:h,stroke:p,"stroke-width":x+"px"};break;case".":y=l,g=l,b=s<Math.PI/4?Math.sqrt(s*l*l/Math.PI):(w=s,T=Math.PI/4,M=1,k=l/2,A=l/Math.sqrt(2),k+(A-k)*(w-T)/(M-T)),_="circle",O={cx:y/2,cy:g/2,r:b,opacity:h,fill:p}}var D=[o||"noSh",d||"noBg",p||"noFg",l,s].join(";"),C=L._defs.select(".patterns").selectAll("#"+S).data([D],a.identity);C.exit().remove(),C.enter().append("pattern").each((function(){var e=n.select(this);if(e.attr({id:S,width:y+"px",height:g+"px",patternUnits:"userSpaceOnUse",patternTransform:m?"scale(0.8)":""}),d){var t=e.selectAll("rect").data([0]);t.exit().remove(),t.enter().append("rect").attr({width:y+"px",height:g+"px",fill:d})}var r=e.selectAll(_).data([0]);r.exit().remove(),r.enter().append(_).attr(O)})),e.style("fill",z(S,r)).style("fill-opacity",null),e.classed("pattern_filled",!0);var E="."+n.select(e.node().parentNode).attr("class").replace(/\s/g,".")+">.pattern_filled";L._patternUrlQueryParts[E]=1},x.initGradients=function(e){var t=e._fullLayout;a.ensureSingle(t._defs,"g","gradients").selectAll("linearGradient,radialGradient").remove(),t._gradientUrlQueryParts={}},x.initPatterns=function(e){var t=e._fullLayout;a.ensureSingle(t._defs,"g","patterns").selectAll("pattern").remove(),t._patternUrlQueryParts={}},x.getPatternAttr=function(e,t,r){return e&&a.isArrayOrTypedArray(e)?t<e.length?e[t]:r:e},x.pointStyle=function(e,t,r){if(e.size()){var a=x.makePointStyleFns(t);e.each((function(e){x.singlePointStyle(e,n.select(this),t,a,r)}))}},x.singlePointStyle=function(e,t,r,n,i){var o=r.marker,l=o.line;if(t.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):void 0===e.mo?o.opacity:e.mo),n.ms2mrc){var s;s="various"===e.ms||"various"===o.size?3:n.ms2mrc(e.ms),e.mrc=s,n.selectedSizeFn&&(s=e.mrc=n.selectedSizeFn(e));var u=x.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100,t.attr("d",w(u,s))}var f,d,p,h=!1;if(e.so)p=l.outlierwidth,d=l.outliercolor,f=o.outliercolor;else{var m=(l||{}).width;p=(e.mlw+1||m+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,d="mlc"in e?e.mlcc=n.lineScale(e.mlc):a.isArrayOrTypedArray(l.color)?c.defaultLine:l.color,a.isArrayOrTypedArray(o.color)&&(f=c.defaultLine,h=!0),f="mc"in e?e.mcc=n.markerScale(e.mc):o.color||"rgba(0,0,0,0)",n.selectedColorFn&&(f=n.selectedColorFn(e))}if(e.om)t.call(c.stroke,f).style({"stroke-width":(p||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:p)+"px");var y=o.gradient,g=e.mgt;g?h=!0:g=y&&y.type,a.isArrayOrTypedArray(g)&&(g=g[0],A[g]||(g=0));var v=o.pattern,b=v&&x.getPatternAttr(v.shape,e.i,"");if(g&&"none"!==g){var _=e.mgc;_?h=!0:_=y.color;var T=r.uid;h&&(T+="-"+e.i),x.gradient(t,i,T,g,[[0,_],[1,f]],"fill")}else if(b){var M=x.getPatternAttr(v.bgcolor,e.i,null),k=x.getPatternAttr(v.fgcolor,e.i,null),L=v.fgopacity,S=x.getPatternAttr(v.size,e.i,8),O=x.getPatternAttr(v.solidity,e.i,.3),D=e.mcc||a.isArrayOrTypedArray(v.shape)||a.isArrayOrTypedArray(v.bgcolor)||a.isArrayOrTypedArray(v.size)||a.isArrayOrTypedArray(v.solidity),C=r.uid;D&&(C+="-"+e.i),x.pattern(t,"point",i,C,b,S,O,e.mcc,v.fillmode,M,k,L)}else c.fill(t,f);p&&c.stroke(t,d)}},x.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=x.tryColorscale(r,""),t.lineScale=x.tryColorscale(r,"line"),s.traceIs(e,"symbols")&&(t.ms2mrc=y.isBubble(e)?g(e):function(){return(r.size||6)/2}),e.selectedpoints&&a.extendFlat(t,x.makeSelectedPointStyleFns(e)),t},x.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.marker||{},o=r.marker||{},l=n.marker||{},c=i.opacity,u=o.opacity,f=l.opacity,d=void 0!==u,p=void 0!==f;(a.isArrayOrTypedArray(c)||d||p)&&(t.selectedOpacityFn=function(e){var t=void 0===e.mo?i.opacity:e.mo;return e.selected?d?u:t:p?f:m*t});var h=i.color,y=o.color,g=l.color;(y||g)&&(t.selectedColorFn=function(e){var t=e.mcc||h;return e.selected?y||t:g||t});var v=i.size,x=o.size,b=l.size,_=void 0!==x,w=void 0!==b;return s.traceIs(e,"symbols")&&(_||w)&&(t.selectedSizeFn=function(e){var t=e.mrc||v/2;return e.selected?_?x/2:t:w?b/2:t}),t},x.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},a=e.textfont||{},i=r.textfont||{},o=n.textfont||{},l=a.color,s=i.color,u=o.color;return t.selectedTextColorFn=function(e){var t=e.tc||l;return e.selected?s||t:u||(s?t:c.addOpacity(t,m))},t},x.selectedPointStyle=function(e,t){if(e.size()&&t.selectedpoints){var r=x.makeSelectedPointStyleFns(t),a=t.marker||{},i=[];r.selectedOpacityFn&&i.push((function(e,t){e.style("opacity",r.selectedOpacityFn(t))})),r.selectedColorFn&&i.push((function(e,t){c.fill(e,r.selectedColorFn(t))})),r.selectedSizeFn&&i.push((function(e,t){var n=t.mx||a.symbol||0,i=r.selectedSizeFn(t);e.attr("d",w(x.symbolNumber(n),i)),t.mrc2=i})),i.length&&e.each((function(e){for(var t=n.select(this),r=0;r<i.length;r++)i[r](t,e)}))}},x.tryColorscale=function(e,t){var r=t?a.nestedProperty(e,t).get():e;if(r){var n=r.color;if((r.colorscale||r._colorAx)&&a.isArrayOrTypedArray(n))return u.makeColorScaleFuncFromTrace(r)}return a.identity};var L={start:1,end:-1,middle:0,bottom:1,top:-1};function S(e,t,r,a){var i=n.select(e.node().parentNode),o=-1!==t.indexOf("top")?"top":-1!==t.indexOf("bottom")?"bottom":"middle",l=-1!==t.indexOf("left")?"end":-1!==t.indexOf("right")?"start":"middle",s=a?a/.8+1:0,c=(d.lineCount(e)-1)*h+1,u=L[l]*s,p=.75*r+L[o]*s+(L[o]-1)*c*r/2;e.attr("text-anchor",l),i.attr("transform",f(u,p))}function O(e,t){var r=e.ts||t.textfont.size;return o(r)&&r>0?r:0}x.textPointStyle=function(e,t,r){if(e.size()){var i;if(t.selectedpoints){var o=x.makeSelectedTextStyleFns(t);i=o.selectedTextColorFn}var l=t.texttemplate,s=r._fullLayout;e.each((function(e){var o=n.select(this),c=l?a.extractOption(e,t,"txt","texttemplate"):a.extractOption(e,t,"tx","text");if(c||0===c){if(l){var u=t._module.formatLabels,f=u?u(e,t,s):{},p={};v(p,t,e.i);var h=t._meta||{};c=a.texttemplateString(c,f,s._d3locale,p,e,h)}var m=e.tp||t.textposition,y=O(e,t),g=i?i(e):e.tc||t.textfont.color;o.call(x.font,e.tf||t.textfont.family,y,g).text(c).call(d.convertToTspans,r).call(S,m,y,e.mrc)}else o.remove()}))}},x.selectedTextStyle=function(e,t){if(e.size()&&t.selectedpoints){var r=x.makeSelectedTextStyleFns(t);e.each((function(e){var a=n.select(this),i=r.selectedTextColorFn(e),o=e.tp||t.textposition,l=O(e,t);c.fill(a,i),S(a,o,l,e.mrc2||e.mrc)}))}};function D(e,t,r,a){var i=e[0]-t[0],o=e[1]-t[1],l=r[0]-t[0],s=r[1]-t[1],c=Math.pow(i*i+o*o,.25),u=Math.pow(l*l+s*s,.25),f=(u*u*i-c*c*l)*a,d=(u*u*o-c*c*s)*a,p=3*u*(c+u),h=3*c*(c+u);return[[n.round(t[0]+(p&&f/p),2),n.round(t[1]+(p&&d/p),2)],[n.round(t[0]-(h&&f/h),2),n.round(t[1]-(h&&d/h),2)]]}x.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r,n="M"+e[0],a=[];for(r=1;r<e.length-1;r++)a.push(D(e[r-1],e[r],e[r+1],t));for(n+="Q"+a[0][0]+" "+e[1],r=2;r<e.length-1;r++)n+="C"+a[r-2][1]+" "+a[r-1][0]+" "+e[r];return n+"Q"+a[e.length-3][1]+" "+e[e.length-1]},x.smoothclosed=function(e,t){if(e.length<3)return"M"+e.join("L")+"Z";var r,n="M"+e[0],a=e.length-1,i=[D(e[a],e[0],e[1],t)];for(r=1;r<a;r++)i.push(D(e[r-1],e[r],e[r+1],t));for(i.push(D(e[a-1],e[a],e[0],t)),r=1;r<=a;r++)n+="C"+i[r-1][1]+" "+i[r][0]+" "+e[r];return n+"C"+i[a][1]+" "+i[0][0]+" "+e[0]+"Z"};var C={hv:function(e,t){return"H"+n.round(t[0],2)+"V"+n.round(t[1],2)},vh:function(e,t){return"V"+n.round(t[1],2)+"H"+n.round(t[0],2)},hvh:function(e,t){return"H"+n.round((e[0]+t[0])/2,2)+"V"+n.round(t[1],2)+"H"+n.round(t[0],2)},vhv:function(e,t){return"V"+n.round((e[1]+t[1])/2,2)+"H"+n.round(t[0],2)+"V"+n.round(t[1],2)}},E=function(e,t){return"L"+n.round(t[0],2)+","+n.round(t[1],2)};x.steps=function(e){var t=C[e]||E;return function(e){for(var r="M"+n.round(e[0][0],2)+","+n.round(e[0][1],2),a=1;a<e.length;a++)r+=t(e[a-1],e[a]);return r}},x.makeTester=function(){var e=a.ensureSingleById(n.select("body"),"svg","js-plotly-tester",(function(e){e.attr(p.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})})),t=a.ensureSingle(e,"path","js-reference-point",(function(e){e.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})}));x.tester=e,x.testref=t},x.savedBBoxes={};var P=0;function R(e){var t=e.getAttribute("data-unformatted");if(null!==t)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}function z(e,t){if(!e)return null;var r=t._context,n=r._exportedPlot?"":r._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}x.bBox=function(e,t,r){var i,o,l;if(r||(r=R(e)),r){if(i=x.savedBBoxes[r])return a.extendFlat({},i)}else if(1===e.childNodes.length){var s=e.childNodes[0];if(r=R(s)){var c=+s.getAttribute("x")||0,u=+s.getAttribute("y")||0,f=s.getAttribute("transform");if(!f){var p=x.bBox(s,!1,r);return c&&(p.left+=c,p.right+=c),u&&(p.top+=u,p.bottom+=u),p}if(r+="~"+c+"~"+u+"~"+f,i=x.savedBBoxes[r])return a.extendFlat({},i)}}t?o=e:(l=x.tester.node(),o=e.cloneNode(!0),l.appendChild(o)),n.select(o).attr("transform",null).call(d.positionText,0,0);var h=o.getBoundingClientRect(),m=x.testref.node().getBoundingClientRect();t||l.removeChild(o);var y={height:h.height,width:h.width,left:h.left-m.left,top:h.top-m.top,right:h.right-m.left,bottom:h.bottom-m.top};return P>=1e4&&(x.savedBBoxes={},P=0),r&&(x.savedBBoxes[r]=y),P++,a.extendFlat({},y)},x.setClipUrl=function(e,t,r){e.attr("clip-path",z(t,r))},x.getTranslate=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,(function(e,t,r){return[t,r].join(" ")})).split(" ");return{x:+t[0]||0,y:+t[1]||0}},x.setTranslate=function(e,t,r){var n=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",i=e[n]("transform")||"";return t=t||0,r=r||0,i=i.replace(/(\btranslate\(.*?\);?)/,"").trim(),i=(i+=f(t,r)).trim(),e[a]("transform",i),i},x.getScale=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,(function(e,t,r){return[t,r].join(" ")})).split(" ");return{x:+t[0]||1,y:+t[1]||1}},x.setScale=function(e,t,r){var n=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",i=e[n]("transform")||"";return t=t||1,r=r||1,i=i.replace(/(\bscale\(.*?\);?)/,"").trim(),i=(i+="scale("+t+","+r+")").trim(),e[a]("transform",i),i};var I=/\s*sc.*/;x.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,e){var n=1===t&&1===r?"":"scale("+t+","+r+")";e.each((function(){var e=(this.getAttribute("transform")||"").replace(I,"");e=(e+=n).trim(),this.setAttribute("transform",e)}))}};var N=/translate\([^)]*\)\s*$/;x.setTextPointsScale=function(e,t,r){e&&e.each((function(){var e,a=n.select(this),i=a.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(a.attr("transform")||"").match(N);e=1===t&&1===r?[]:[f(o,l),"scale("+t+","+r+")",f(-o,-l)],s&&e.push(s),a.attr("transform",e.join(""))}}))}},{"../../components/fx/helpers":193,"../../constants/alignment":262,"../../constants/interactions":266,"../../constants/xmlns_namespaces":268,"../../lib":287,"../../lib/svg_text_utils":310,"../../registry":376,"../../traces/scatter/make_bubble_size_func":514,"../../traces/scatter/subtypes":522,"../color":157,"../colorscale":169,"./symbol_defs":180,"@plotly/d3":20,"fast-isnumeric":33,tinycolor2:121}],180:[function(e,t,r){"use strict";var n=e("@plotly/d3");t.exports={circle:{n:0,f:function(e){var t=n.round(e,2);return"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"}},square:{n:1,f:function(e){var t=n.round(e,2);return"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"}},diamond:{n:2,f:function(e){var t=n.round(1.3*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"Z"}},cross:{n:3,f:function(e){var t=n.round(.4*e,2),r=n.round(1.2*e,2);return"M"+r+","+t+"H"+t+"V"+r+"H-"+t+"V"+t+"H-"+r+"V-"+t+"H-"+t+"V-"+r+"H"+t+"V-"+t+"H"+r+"Z"}},x:{n:4,f:function(e){var t=n.round(.8*e/Math.sqrt(2),2),r="l"+t+","+t,a="l"+t+",-"+t,i="l-"+t+",-"+t,o="l-"+t+","+t;return"M0,"+t+r+a+i+a+i+o+i+o+r+o+r+"Z"}},"triangle-up":{n:5,f:function(e){var t=n.round(2*e/Math.sqrt(3),2);return"M-"+t+","+n.round(e/2,2)+"H"+t+"L0,-"+n.round(e,2)+"Z"}},"triangle-down":{n:6,f:function(e){var t=n.round(2*e/Math.sqrt(3),2);return"M-"+t+",-"+n.round(e/2,2)+"H"+t+"L0,"+n.round(e,2)+"Z"}},"triangle-left":{n:7,f:function(e){var t=n.round(2*e/Math.sqrt(3),2);return"M"+n.round(e/2,2)+",-"+t+"V"+t+"L-"+n.round(e,2)+",0Z"}},"triangle-right":{n:8,f:function(e){var t=n.round(2*e/Math.sqrt(3),2);return"M-"+n.round(e/2,2)+",-"+t+"V"+t+"L"+n.round(e,2)+",0Z"}},"triangle-ne":{n:9,f:function(e){var t=n.round(.6*e,2),r=n.round(1.2*e,2);return"M-"+r+",-"+t+"H"+t+"V"+r+"Z"}},"triangle-se":{n:10,f:function(e){var t=n.round(.6*e,2),r=n.round(1.2*e,2);return"M"+t+",-"+r+"V"+t+"H-"+r+"Z"}},"triangle-sw":{n:11,f:function(e){var t=n.round(.6*e,2),r=n.round(1.2*e,2);return"M"+r+","+t+"H-"+t+"V-"+r+"Z"}},"triangle-nw":{n:12,f:function(e){var t=n.round(.6*e,2),r=n.round(1.2*e,2);return"M-"+t+","+r+"V-"+t+"H"+r+"Z"}},pentagon:{n:13,f:function(e){var t=n.round(.951*e,2),r=n.round(.588*e,2),a=n.round(-e,2),i=n.round(-.309*e,2);return"M"+t+","+i+"L"+r+","+n.round(.809*e,2)+"H-"+r+"L-"+t+","+i+"L0,"+a+"Z"}},hexagon:{n:14,f:function(e){var t=n.round(e,2),r=n.round(e/2,2),a=n.round(e*Math.sqrt(3)/2,2);return"M"+a+",-"+r+"V"+r+"L0,"+t+"L-"+a+","+r+"V-"+r+"L0,-"+t+"Z"}},hexagon2:{n:15,f:function(e){var t=n.round(e,2),r=n.round(e/2,2),a=n.round(e*Math.sqrt(3)/2,2);return"M-"+r+","+a+"H"+r+"L"+t+",0L"+r+",-"+a+"H-"+r+"L-"+t+",0Z"}},octagon:{n:16,f:function(e){var t=n.round(.924*e,2),r=n.round(.383*e,2);return"M-"+r+",-"+t+"H"+r+"L"+t+",-"+r+"V"+r+"L"+r+","+t+"H-"+r+"L-"+t+","+r+"V-"+r+"Z"}},star:{n:17,f:function(e){var t=1.4*e,r=n.round(.225*t,2),a=n.round(.951*t,2),i=n.round(.363*t,2),o=n.round(.588*t,2),l=n.round(-t,2),s=n.round(-.309*t,2),c=n.round(.118*t,2),u=n.round(.809*t,2);return"M"+r+","+s+"H"+a+"L"+i+","+c+"L"+o+","+u+"L0,"+n.round(.382*t,2)+"L-"+o+","+u+"L-"+i+","+c+"L-"+a+","+s+"H-"+r+"L0,"+l+"Z"}},hexagram:{n:18,f:function(e){var t=n.round(.66*e,2),r=n.round(.38*e,2),a=n.round(.76*e,2);return"M-"+a+",0l-"+r+",-"+t+"h"+a+"l"+r+",-"+t+"l"+r+","+t+"h"+a+"l-"+r+","+t+"l"+r+","+t+"h-"+a+"l-"+r+","+t+"l-"+r+",-"+t+"h-"+a+"Z"}},"star-triangle-up":{n:19,f:function(e){var t=n.round(e*Math.sqrt(3)*.8,2),r=n.round(.8*e,2),a=n.round(1.6*e,2),i=n.round(4*e,2),o="A "+i+","+i+" 0 0 1 ";return"M-"+t+","+r+o+t+","+r+o+"0,-"+a+o+"-"+t+","+r+"Z"}},"star-triangle-down":{n:20,f:function(e){var t=n.round(e*Math.sqrt(3)*.8,2),r=n.round(.8*e,2),a=n.round(1.6*e,2),i=n.round(4*e,2),o="A "+i+","+i+" 0 0 1 ";return"M"+t+",-"+r+o+"-"+t+",-"+r+o+"0,"+a+o+t+",-"+r+"Z"}},"star-square":{n:21,f:function(e){var t=n.round(1.1*e,2),r=n.round(2*e,2),a="A "+r+","+r+" 0 0 1 ";return"M-"+t+",-"+t+a+"-"+t+","+t+a+t+","+t+a+t+",-"+t+a+"-"+t+",-"+t+"Z"}},"star-diamond":{n:22,f:function(e){var t=n.round(1.4*e,2),r=n.round(1.9*e,2),a="A "+r+","+r+" 0 0 1 ";return"M-"+t+",0"+a+"0,"+t+a+t+",0"+a+"0,-"+t+a+"-"+t+",0Z"}},"diamond-tall":{n:23,f:function(e){var t=n.round(.7*e,2),r=n.round(1.4*e,2);return"M0,"+r+"L"+t+",0L0,-"+r+"L-"+t+",0Z"}},"diamond-wide":{n:24,f:function(e){var t=n.round(1.4*e,2),r=n.round(.7*e,2);return"M0,"+r+"L"+t+",0L0,-"+r+"L-"+t+",0Z"}},hourglass:{n:25,f:function(e){var t=n.round(e,2);return"M"+t+","+t+"H-"+t+"L"+t+",-"+t+"H-"+t+"Z"},noDot:!0},bowtie:{n:26,f:function(e){var t=n.round(e,2);return"M"+t+","+t+"V-"+t+"L-"+t+","+t+"V-"+t+"Z"},noDot:!0},"circle-cross":{n:27,f:function(e){var t=n.round(e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e){var t=n.round(e,2),r=n.round(e/Math.sqrt(2),2);return"M"+r+","+r+"L-"+r+",-"+r+"M"+r+",-"+r+"L-"+r+","+r+"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e){var t=n.round(e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e){var t=n.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t+"M"+t+",-"+t+"L-"+t+","+t+"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e){var t=n.round(1.3*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM0,-"+t+"V"+t+"M-"+t+",0H"+t},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e){var t=n.round(1.3*e,2),r=n.round(.65*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM-"+r+",-"+r+"L"+r+","+r+"M-"+r+","+r+"L"+r+",-"+r},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e){var t=n.round(1.4*e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e){var t=n.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t+"M"+t+",-"+t+"L-"+t+","+t},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e){var t=n.round(1.2*e,2),r=n.round(.85*e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+r+","+r+"L-"+r+",-"+r+"M"+r+",-"+r+"L-"+r+","+r},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e){var t=n.round(e/2,2),r=n.round(e,2);return"M"+t+","+r+"V-"+r+"m-"+r+",0V"+r+"M"+r+","+t+"H-"+r+"m0,-"+r+"H"+r},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e){var t=n.round(1.2*e,2),r=n.round(1.6*e,2),a=n.round(.8*e,2);return"M-"+t+","+a+"L0,0M"+t+","+a+"L0,0M0,-"+r+"L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e){var t=n.round(1.2*e,2),r=n.round(1.6*e,2),a=n.round(.8*e,2);return"M-"+t+",-"+a+"L0,0M"+t+",-"+a+"L0,0M0,"+r+"L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e){var t=n.round(1.2*e,2),r=n.round(1.6*e,2),a=n.round(.8*e,2);return"M"+a+","+t+"L0,0M"+a+",-"+t+"L0,0M-"+r+",0L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e){var t=n.round(1.2*e,2),r=n.round(1.6*e,2),a=n.round(.8*e,2);return"M-"+a+","+t+"L0,0M-"+a+",-"+t+"L0,0M"+r+",0L0,0"},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e){var t=n.round(1.4*e,2);return"M"+t+",0H-"+t},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e){var t=n.round(1.4*e,2);return"M0,"+t+"V-"+t},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e){var t=n.round(e,2);return"M"+t+",-"+t+"L-"+t+","+t},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e){var t=n.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e){var t=n.round(e,2);return"M0,0L-"+t+","+n.round(2*e,2)+"H"+t+"Z"},noDot:!0},"arrow-down":{n:46,f:function(e){var t=n.round(e,2);return"M0,0L-"+t+",-"+n.round(2*e,2)+"H"+t+"Z"},noDot:!0},"arrow-left":{n:47,f:function(e){var t=n.round(2*e,2),r=n.round(e,2);return"M0,0L"+t+",-"+r+"V"+r+"Z"},noDot:!0},"arrow-right":{n:48,f:function(e){var t=n.round(2*e,2),r=n.round(e,2);return"M0,0L-"+t+",-"+r+"V"+r+"Z"},noDot:!0},"arrow-bar-up":{n:49,f:function(e){var t=n.round(e,2);return"M-"+t+",0H"+t+"M0,0L-"+t+","+n.round(2*e,2)+"H"+t+"Z"},needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e){var t=n.round(e,2);return"M-"+t+",0H"+t+"M0,0L-"+t+",-"+n.round(2*e,2)+"H"+t+"Z"},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e){var t=n.round(2*e,2),r=n.round(e,2);return"M0,-"+r+"V"+r+"M0,0L"+t+",-"+r+"V"+r+"Z"},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e){var t=n.round(2*e,2),r=n.round(e,2);return"M0,-"+r+"V"+r+"M0,0L-"+t+",-"+r+"V"+r+"Z"},needLine:!0,noDot:!0}}},{"@plotly/d3":20}],181:[function(e,t,r){"use strict";t.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style"}}}},{}],182:[function(e,t,r){"use strict";var n=e("fast-isnumeric"),a=e("../../registry"),i=e("../../plots/cartesian/axes"),o=e("../../lib"),l=e("./compute_error");function s(e,t,r,a){var s=t["error_"+a]||{},c=[];if(s.visible&&-1!==["linear","log"].indexOf(r.type)){for(var u=l(s),f=0;f<e.length;f++){var d=e[f],p=d.i;if(void 0===p)p=f;else if(null===p)continue;var h=d[a];if(n(r.c2l(h))){var m=u(h,p);if(n(m[0])&&n(m[1])){var y=d[a+"s"]=h-m[0],g=d[a+"h"]=h+m[1];c.push(y,g)}}}var v=r._id,x=t._extremes[v],b=i.findExtremes(r,c,o.extendFlat({tozero:x.opts.tozero},{padded:!0}));x.min=x.min.concat(b.min),x.max=x.max.concat(b.max)}}t.exports=function(e){for(var t=e.calcdata,r=0;r<t.length;r++){var n=t[r],o=n[0].trace;if(!0===o.visible&&a.traceIs(o,"errorBarsOK")){var l=i.getFromId(e,o.xaxis),c=i.getFromId(e,o.yaxis);s(n,o,l,"x"),s(n,o,c,"y")}}}},{"../../lib":287,"../../plots/cartesian/axes":334,"../../registry":376,"./compute_error":183,"fast-isnumeric":33}],183:[function(e,t,r){"use strict";function n(e,t){return"percent"===e?function(e){return Math.abs(e*t/100)}:"constant"===e?function(){return Math.abs(t)}:"sqrt"===e?function(e){return Math.sqrt(Math.abs(e))}:void 0}t.exports=function(e){var t=e.type,r=e.symmetric;if("data"===t){var a=e.array||[];if(r)return function(e,t){var r=+a[t];return[r,r]};var i=e.arrayminus||[];return function(e,t){var r=+a[t],n=+i[t];return isNaN(r)&&isNaN(n)?[NaN,NaN]:[n||0,r||0]}}var o=n(t,e.value),l=n(t,e.valueminus);return r||void 0===e.valueminus?function(e){var t=o(e);return[t,t]}:function(e){return[l(e),o(e)]}}},{}],184:[function(e,t,r){"use strict";var n=e("fast-isnumeric"),a=e("../../registry"),i=e("../../lib"),o=e("../../plot_api/plot_template"),l=e("./attributes");t.exports=function(e,t,r,s){var c="error_"+s.axis,u=o.newContainer(t,c),f=e[c]||{};function d(e,t){return i.coerce(f,u,l,e,t)}if(!1!==d("visible",void 0!==f.array||void 0!==f.value||"sqrt"===f.type)){var p=d("type","array"in f?"data":"percent"),h=!0;"sqrt"!==p&&(h=d("symmetric",!(("data"===p?"arrayminus":"valueminus")in f))),"data"===p?(d("array"),d("traceref"),h||(d("arrayminus"),d("tracerefminus"))):"percent"!==p&&"constant"!==p||(d("value"),h||d("valueminus"));var m="copy_"+s.inherit+"style";s.inherit&&(t["error_"+s.inherit]||{}).visible&&d(m,!(f.color||n(f.thickness)||n(f.width))),s.inherit&&u[m]||(d("color",r),d("thickness"),d("width",a.traceIs(t,"gl3d")?0:4))}}},{"../../lib":287,"../../plot_api/plot_template":323,"../../registry":376,"./attributes":181,"fast-isnumeric":33}],185:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../plot_api/edit_types").overrideAll,i=e("./attributes"),o={error_x:n.extendFlat({},i),error_y:n.extendFlat({},i)};delete o.error_x.copy_zstyle,delete o.error_y.copy_zstyle,delete o.error_y.copy_ystyle;var l={error_x:n.extendFlat({},i),error_y:n.extendFlat({},i),error_z:n.extendFlat({},i)};delete l.error_x.copy_ystyle,delete l.error_y.copy_ystyle,delete l.error_z.copy_ystyle,delete l.error_z.copy_zstyle,t.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:o,bar:o,histogram:o,scatter3d:a(l,"calc","nested"),scattergl:a(o,"calc","nested")}},supplyDefaults:e("./defaults"),calc:e("./calc"),makeComputeError:e("./compute_error"),plot:e("./plot"),style:e("./style"),hoverInfo:function(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}}},{"../../lib":287,"../../plot_api/edit_types":316,"./attributes":181,"./calc":182,"./compute_error":183,"./defaults":184,"./plot":186,"./style":187}],186:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("fast-isnumeric"),i=e("../drawing"),o=e("../../traces/scatter/subtypes");t.exports=function(e,t,r,l){var s=r.xaxis,c=r.yaxis,u=l&&l.duration>0;t.each((function(t){var f,d=t[0].trace,p=d.error_x||{},h=d.error_y||{};d.ids&&(f=function(e){return e.id});var m=o.hasMarkers(d)&&d.marker.maxdisplayed>0;h.visible||p.visible||(t=[]);var y=n.select(this).selectAll("g.errorbar").data(t,f);if(y.exit().remove(),t.length){p.visible||y.selectAll("path.xerror").remove(),h.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var g=y.enter().append("g").classed("errorbar",!0);u&&g.style("opacity",0).transition().duration(l.duration).style("opacity",1),i.setClipUrl(y,r.layerClipId,e),y.each((function(e){var t=n.select(this),r=function(e,t,r){var n={x:t.c2p(e.x),y:r.c2p(e.y)};return void 0!==e.yh&&(n.yh=r.c2p(e.yh),n.ys=r.c2p(e.ys),a(n.ys)||(n.noYS=!0,n.ys=r.c2p(e.ys,!0))),void 0!==e.xh&&(n.xh=t.c2p(e.xh),n.xs=t.c2p(e.xs),a(n.xs)||(n.noXS=!0,n.xs=t.c2p(e.xs,!0))),n}(e,s,c);if(!m||e.vis){var i,o=t.select("path.yerror");if(h.visible&&a(r.x)&&a(r.yh)&&a(r.ys)){var f=h.width;i="M"+(r.x-f)+","+r.yh+"h"+2*f+"m-"+f+",0V"+r.ys,r.noYS||(i+="m-"+f+",0h"+2*f),o.size()?u&&(o=o.transition().duration(l.duration).ease(l.easing)):o=t.append("path").style("vector-effect","non-scaling-stroke").classed("yerror",!0),o.attr("d",i)}else o.remove();var d=t.select("path.xerror");if(p.visible&&a(r.y)&&a(r.xh)&&a(r.xs)){var y=(p.copy_ystyle?h:p).width;i="M"+r.xh+","+(r.y-y)+"v"+2*y+"m0,-"+y+"H"+r.xs,r.noXS||(i+="m0,-"+y+"v"+2*y),d.size()?u&&(d=d.transition().duration(l.duration).ease(l.easing)):d=t.append("path").style("vector-effect","non-scaling-stroke").classed("xerror",!0),d.attr("d",i)}else d.remove()}}))}}))}},{"../../traces/scatter/subtypes":522,"../drawing":179,"@plotly/d3":20,"fast-isnumeric":33}],187:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../color");t.exports=function(e){e.each((function(e){var t=e[0].trace,r=t.error_y||{},i=t.error_x||{},o=n.select(this);o.selectAll("path.yerror").style("stroke-width",r.thickness+"px").call(a.stroke,r.color),i.copy_ystyle&&(i=r),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(a.stroke,i.color)}))}},{"../color":157,"@plotly/d3":20}],188:[function(e,t,r){"use strict";var n=e("../../plots/font_attributes"),a=e("./layout_attributes").hoverlabel,i=e("../../lib/extend").extendFlat;t.exports={hoverlabel:{bgcolor:i({},a.bgcolor,{arrayOk:!0}),bordercolor:i({},a.bordercolor,{arrayOk:!0}),font:n({arrayOk:!0,editType:"none"}),align:i({},a.align,{arrayOk:!0}),namelength:i({},a.namelength,{arrayOk:!0}),editType:"none"}}},{"../../lib/extend":281,"../../plots/font_attributes":363,"./layout_attributes":198}],189:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../registry");function i(e,t,r,a){a=a||n.identity,Array.isArray(e)&&(t[0][r]=a(e))}t.exports=function(e){var t=e.calcdata,r=e._fullLayout;function o(e){return function(t){return n.coerceHoverinfo({hoverinfo:t},{_module:e._module},r)}}for(var l=0;l<t.length;l++){var s=t[l],c=s[0].trace;if(!a.traceIs(c,"pie-like")){var u=a.traceIs(c,"2dMap")?i:n.fillArray;u(c.hoverinfo,s,"hi",o(c)),c.hovertemplate&&u(c.hovertemplate,s,"ht"),c.hoverlabel&&(u(c.hoverlabel.bgcolor,s,"hbg"),u(c.hoverlabel.bordercolor,s,"hbc"),u(c.hoverlabel.font.size,s,"hts"),u(c.hoverlabel.font.color,s,"htc"),u(c.hoverlabel.font.family,s,"htf"),u(c.hoverlabel.namelength,s,"hnl"),u(c.hoverlabel.align,s,"hta"))}}}},{"../../lib":287,"../../registry":376}],190:[function(e,t,r){"use strict";var n=e("../../registry"),a=e("./hover").hover;t.exports=function(e,t,r){var i=n.getComponentMethod("annotations","onClick")(e,e._hoverdata);function o(){e.emit("plotly_click",{points:e._hoverdata,event:t})}void 0!==r&&a(e,t,r,!0),e._hoverdata&&t&&t.target&&(i&&i.then?i.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}},{"../../registry":376,"./hover":194}],191:[function(e,t,r){"use strict";t.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}},{}],192:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("./attributes"),i=e("./hoverlabel_defaults");t.exports=function(e,t,r,o){var l=n.extendFlat({},o.hoverlabel);t.hovertemplate&&(l.namelength=-1),i(e,t,(function(r,i){return n.coerce(e,t,a,r,i)}),l)}},{"../../lib":287,"./attributes":188,"./hoverlabel_defaults":195}],193:[function(e,t,r){"use strict";var n=e("../../lib");r.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo},r.isTraceInSubplots=function(e,t){if("splom"===e.type){for(var n=e.xaxes||[],a=e.yaxes||[],i=0;i<n.length;i++)for(var o=0;o<a.length;o++)if(-1!==t.indexOf(n[i]+a[o]))return!0;return!1}return-1!==t.indexOf(r.getSubplot(e))},r.flat=function(e,t){for(var r=new Array(e.length),n=0;n<e.length;n++)r[n]=t;return r},r.p2c=function(e,t){for(var r=new Array(e.length),n=0;n<e.length;n++)r[n]=e[n].p2c(t);return r},r.getDistanceFunction=function(e,t,n,a){return"closest"===e?a||r.quadrature(t,n):"x"===e.charAt(0)?t:n},r.getClosest=function(e,t,r){if(!1!==r.index)r.index>=0&&r.index<e.length?r.distance=0:r.index=!1;else for(var n=0;n<e.length;n++){var a=t(e[n]);a<=r.distance&&(r.index=n,r.distance=a)}return r},r.inbox=function(e,t,r){return e*t<0||0===e?r:1/0},r.quadrature=function(e,t){return function(r){var n=e(r),a=t(r);return Math.sqrt(n*n+a*a)}},r.makeEventData=function(e,t,n){var a="index"in e?e.index:e.pointNumber,i={data:t._input,fullData:t,curveNumber:t.index,pointNumber:a};if(t._indexToPoints){var o=t._indexToPoints[a];1===o.length?i.pointIndex=o[0]:i.pointIndices=o}else i.pointIndex=a;return t._module.eventData?i=t._module.eventData(i,e,t,n,a):("xVal"in e?i.x=e.xVal:"x"in e&&(i.x=e.x),"yVal"in e?i.y=e.yVal:"y"in e&&(i.y=e.y),e.xa&&(i.xaxis=e.xa),e.ya&&(i.yaxis=e.ya),void 0!==e.zLabelVal&&(i.z=e.zLabelVal)),r.appendArrayPointValue(i,t,a),i},r.appendArrayPointValue=function(e,t,r){var a=t._arrayAttrs;if(a)for(var l=0;l<a.length;l++){var s=a[l],c=i(s);if(void 0===e[c]){var u=o(n.nestedProperty(t,s).get(),r);void 0!==u&&(e[c]=u)}}},r.appendArrayMultiPointValues=function(e,t,r){var a=t._arrayAttrs;if(a)for(var l=0;l<a.length;l++){var s=a[l],c=i(s);if(void 0===e[c]){for(var u=n.nestedProperty(t,s).get(),f=new Array(r.length),d=0;d<r.length;d++)f[d]=o(u,r[d]);e[c]=f}}};var a={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function i(e){return a[e]||e}function o(e,t){return Array.isArray(t)?Array.isArray(e)&&Array.isArray(e[t[0]])?e[t[0]][t[1]]:void 0:e[t]}var l={x:!0,y:!0},s={"x unified":!0,"y unified":!0};r.isUnifiedHover=function(e){return"string"==typeof e&&!!s[e]},r.isXYhover=function(e){return"string"==typeof e&&!!l[e]}},{"../../lib":287}],194:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("fast-isnumeric"),i=e("tinycolor2"),o=e("../../lib"),l=o.strTranslate,s=o.strRotate,c=e("../../lib/events"),u=e("../../lib/svg_text_utils"),f=e("../../lib/override_cursor"),d=e("../drawing"),p=e("../color"),h=e("../dragelement"),m=e("../../plots/cartesian/axes"),y=e("../../registry"),g=e("./helpers"),v=e("./constants"),x=e("../legend/defaults"),b=e("../legend/draw"),_=v.YANGLE,w=Math.PI*_/180,T=1/Math.sin(w),M=Math.cos(w),k=Math.sin(w),A=v.HOVERARROWSIZE,L=v.HOVERTEXTPAD,S={box:!0,ohlc:!0,violin:!0,candlestick:!0},O={scatter:!0,scattergl:!0,splom:!0};function D(e,t,r,i){r||(r="xy");var l=Array.isArray(r)?r:[r],s=e._fullLayout,u=s._plots||[],d=u[r],m=s._has("cartesian");if(d){var v=d.overlays.map((function(e){return e.id}));l=l.concat(v)}for(var x=l.length,b=new Array(x),_=new Array(x),w=!1,M=0;M<x;M++){var k=l[M];if(u[k])w=!0,b[M]=u[k].xaxis,_[M]=u[k].yaxis;else{if(!s[k]||!s[k]._subplot)return void o.warn("Unrecognized subplot: "+k);var A=s[k]._subplot;b[M]=A.xaxis,_[M]=A.yaxis}}var L=t.hovermode||s.hovermode;if(L&&!w&&(L="closest"),-1===["x","y","closest","x unified","y unified"].indexOf(L)||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return h.unhoverRaw(e,t);var D=s.hoverdistance;-1===D&&(D=1/0);var E=s.spikedistance;-1===E&&(E=1/0);var R,j,Y,q,V,G,Z,W,X,J,K,Q,$,ee=[],te=[],re={hLinePoint:null,vLinePoint:null},ne=!1;if(Array.isArray(t))for(L="array",Y=0;Y<t.length;Y++)(V=e.calcdata[t[Y].curveNumber||0])&&(G=V[0].trace,"skip"!==V[0].trace.hoverinfo&&(te.push(V),"h"===G.orientation&&(ne=!0)));else{for(q=0;q<e.calcdata.length;q++)V=e.calcdata[q],"skip"!==(G=V[0].trace).hoverinfo&&g.isTraceInSubplots(G,l)&&(te.push(V),"h"===G.orientation&&(ne=!0));var ae,ie;if(t.target){if(!1===c.triggerHandler(e,"plotly_beforehover",t))return;var oe=t.composedPath&&t.composedPath()[0];oe||(oe=t.target);var le=oe.getBoundingClientRect();ae=t.clientX-le.left,ie=t.clientY-le.top,s._calcInverseTransform(e);var se=o.apply3DTransform(s._invTransform)(ae,ie);if(ae=se[0],ie=se[1],ae<0||ae>b[0]._length||ie<0||ie>_[0]._length)return h.unhoverRaw(e,t)}else ae="xpx"in t?t.xpx:b[0]._length/2,ie="ypx"in t?t.ypx:_[0]._length/2;if(t.pointerX=ae+b[0]._offset,t.pointerY=ie+_[0]._offset,R="xval"in t?g.flat(l,t.xval):g.p2c(b,ae),j="yval"in t?g.flat(l,t.yval):g.p2c(_,ie),!a(R[0])||!a(j[0]))return o.warn("Fx.hover failed",t,e),h.unhoverRaw(e,t)}var ce=1/0;function ue(e,r){for(q=0;q<te.length;q++)if((V=te[q])&&V[0]&&V[0].trace&&!0===(G=V[0].trace).visible&&0!==G._length&&-1===["carpet","contourcarpet"].indexOf(G._module.name)){if("splom"===G.type?Z=l[W=0]:(Z=g.getSubplot(G),W=l.indexOf(Z)),X=L,g.isUnifiedHover(X)&&(X=X.charAt(0)),Q={cd:V,trace:G,xa:b[W],ya:_[W],maxHoverDistance:D,maxSpikeDistance:E,index:!1,distance:Math.min(ce,D),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:p.defaultLine,name:G.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},s[Z]&&(Q.subplot=s[Z]._subplot),s._splomScenes&&s._splomScenes[G.uid]&&(Q.scene=s._splomScenes[G.uid]),$=ee.length,"array"===X){var n=t[q];"pointNumber"in n?(Q.index=n.pointNumber,X="closest"):(X="","xval"in n&&(J=n.xval,X="x"),"yval"in n&&(K=n.yval,X=X?"closest":"y"))}else void 0!==e&&void 0!==r?(J=e,K=r):(J=R[W],K=j[W]);if(0!==D)if(G._module&&G._module.hoverPoints){var i=G._module.hoverPoints(Q,J,K,X,{finiteRange:!0,hoverLayer:s._hoverlayer});if(i)for(var c,u=0;u<i.length;u++)c=i[u],a(c.x0)&&a(c.y0)&&ee.push(I(c,L))}else o.log("Unrecognized trace type in hover:",G);if("closest"===L&&ee.length>$&&(ee.splice(0,$),ce=ee[0].distance),m&&0!==E&&0===ee.length){Q.distance=E,Q.index=!1;var f=G._module.hoverPoints(Q,J,K,"closest",{hoverLayer:s._hoverlayer});if(f&&(f=f.filter((function(e){return e.spikeDistance<=E}))),f&&f.length){var d,h=f.filter((function(e){return e.xa.showspikes&&"hovered data"!==e.xa.spikesnap}));if(h.length){var y=h[0];a(y.x0)&&a(y.y0)&&(d=de(y),(!re.vLinePoint||re.vLinePoint.spikeDistance>d.spikeDistance)&&(re.vLinePoint=d))}var v=f.filter((function(e){return e.ya.showspikes&&"hovered data"!==e.ya.spikesnap}));if(v.length){var x=v[0];a(x.x0)&&a(x.y0)&&(d=de(x),(!re.hLinePoint||re.hLinePoint.spikeDistance>d.spikeDistance)&&(re.hLinePoint=d))}}}}}function fe(e,t,r){for(var n,a=null,i=1/0,o=0;o<e.length;o++)n=e[o].spikeDistance,r&&0===o&&(n=-1/0),n<=i&&n<=t&&(a=e[o],i=n);return a}function de(e){return e?{xa:e.xa,ya:e.ya,x:void 0!==e.xSpike?e.xSpike:(e.x0+e.x1)/2,y:void 0!==e.ySpike?e.ySpike:(e.y0+e.y1)/2,distance:e.distance,spikeDistance:e.spikeDistance,curveNumber:e.trace.index,color:e.color,pointNumber:e.index}:null}ue();var pe={fullLayout:s,container:s._hoverlayer,event:t},he=e._spikepoints,me={vLinePoint:re.vLinePoint,hLinePoint:re.hLinePoint};e._spikepoints=me;var ye=function(){ee.sort((function(e,t){return e.distance-t.distance})),ee=function(e,t){for(var r=t.charAt(0),n=[],a=[],i=[],o=0;o<e.length;o++){var l=e[o];y.traceIs(l.trace,"bar-like")||y.traceIs(l.trace,"box-violin")?i.push(l):l.trace[r+"period"]?a.push(l):n.push(l)}return n.concat(a).concat(i)}(ee,L)};ye();var ge=L.charAt(0),ve=("x"===ge||"y"===ge)&&ee[0]&&O[ee[0].trace.type];if(m&&0!==E&&0!==ee.length){var xe=fe(ee.filter((function(e){return e.ya.showspikes})),E,ve);re.hLinePoint=de(xe);var be=fe(ee.filter((function(e){return e.xa.showspikes})),E,ve);re.vLinePoint=de(be)}if(0===ee.length){var _e=h.unhoverRaw(e,t);return!m||null===re.hLinePoint&&null===re.vLinePoint||F(he)&&N(e,re,pe),_e}if(m&&F(he)&&N(e,re,pe),g.isXYhover(X)&&0!==ee[0].length&&"splom"!==ee[0].trace.type){var we=ee[0],Te=(ee=S[we.trace.type]?ee.filter((function(e){return e.trace.index===we.trace.index})):[we]).length;ue(B("x",we,s),B("y",we,s));var Me,ke=[],Ae={},Le=0,Se=function(e){var t=S[e.trace.type]?C(e):e.trace.index;if(Ae[t]){var r=Ae[t]-1,n=ke[r];r>0&&Math.abs(e.distance)<Math.abs(n.distance)&&(ke[r]=e)}else Le++,Ae[t]=Le,ke.push(e)};for(Me=0;Me<Te;Me++)Se(ee[Me]);for(Me=ee.length-1;Me>Te-1;Me--)Se(ee[Me]);ee=ke,ye()}var Oe=e._hoverdata,De=[],Ce=H(e),Ee=U(e);for(Y=0;Y<ee.length;Y++){var Pe=ee[Y],Re=g.makeEventData(Pe,Pe.trace,Pe.cd);if(!1!==Pe.hovertemplate){var ze=!1;Pe.cd[Pe.index]&&Pe.cd[Pe.index].ht&&(ze=Pe.cd[Pe.index].ht),Pe.hovertemplate=ze||Pe.trace.hovertemplate||!1}if(Pe.xa&&Pe.ya){var Ie=Pe.x0+Pe.xa._offset,Ne=Pe.x1+Pe.xa._offset,Fe=Pe.y0+Pe.ya._offset,je=Pe.y1+Pe.ya._offset,Be=Math.min(Ie,Ne),He=Math.max(Ie,Ne),Ue=Math.min(Fe,je),Ye=Math.max(Fe,je);Re.bbox={x0:Be+Ee,x1:He+Ee,y0:Ue+Ce,y1:Ye+Ce}}Pe.eventData=[Re],De.push(Re)}e._hoverdata=De;var qe="y"===L&&(te.length>1||ee.length>1)||"closest"===L&&ne&&ee.length>1,Ve=p.combine(s.plot_bgcolor||p.background,s.paper_bgcolor),Ge=P(ee,{gd:e,hovermode:L,rotateLabels:qe,bgColor:Ve,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance});if(g.isUnifiedHover(L)||(function(e,t,r){var n,a,i,o,l,s,c,u=0,f=1,d=e.size(),p=new Array(d),h=0;function m(e){var t=e[0],r=e[e.length-1];if(a=t.pmin-t.pos-t.dp+t.size,i=r.pos+r.dp+r.size-t.pmax,a>.01){for(l=e.length-1;l>=0;l--)e[l].dp+=a;n=!1}if(!(i<.01)){if(a<-.01){for(l=e.length-1;l>=0;l--)e[l].dp-=i;n=!1}if(n){var c=0;for(o=0;o<e.length;o++)(s=e[o]).pos+s.dp+s.size>t.pmax&&c++;for(o=e.length-1;o>=0&&!(c<=0);o--)(s=e[o]).pos>t.pmax-1&&(s.del=!0,c--);for(o=0;o<e.length&&!(c<=0);o++)if((s=e[o]).pos<t.pmin+1)for(s.del=!0,c--,i=2*s.size,l=e.length-1;l>=0;l--)e[l].dp-=i;for(o=e.length-1;o>=0&&!(c<=0);o--)(s=e[o]).pos+s.dp+s.size>t.pmax&&(s.del=!0,c--)}}}for(e.each((function(e){var n=e[t],a="x"===n._id.charAt(0),i=n.range;0===h&&i&&i[0]>i[1]!==a&&(f=-1),p[h++]=[{datum:e,traceIndex:e.trace.index,dp:0,pos:e.pos,posref:e.posref,size:e.by*(a?T:1)/2,pmin:0,pmax:a?r.width:r.height}]})),p.sort((function(e,t){return e[0].posref-t[0].posref||f*(t[0].traceIndex-e[0].traceIndex)}));!n&&u<=d;){for(u++,n=!0,o=0;o<p.length-1;){var y=p[o],g=p[o+1],v=y[y.length-1],x=g[0];if((a=v.pos+v.dp+v.size-x.pos-x.dp+x.size)>.01&&v.pmin===x.pmin&&v.pmax===x.pmax){for(l=g.length-1;l>=0;l--)g[l].dp+=a;for(y.push.apply(y,g),p.splice(o+1,1),c=0,l=y.length-1;l>=0;l--)c+=y[l].dp;for(i=c/y.length,l=y.length-1;l>=0;l--)y[l].dp-=i;n=!1}else o++}p.forEach(m)}for(o=p.length-1;o>=0;o--){var b=p[o];for(l=b.length-1;l>=0;l--){var _=b[l],w=_.datum;w.offset=_.dp,w.del=_.del}}}(Ge,qe?"xa":"ya",s),z(Ge,qe,s._invScaleX,s._invScaleY)),t.target&&t.target.tagName){var Ze=y.getComponentMethod("annotations","hasClickToShow")(e,De);f(n.select(t.target),Ze?"pointer":"")}t.target&&!i&&function(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var a=r[n],i=e._hoverdata[n];if(a.curveNumber!==i.curveNumber||String(a.pointNumber)!==String(i.pointNumber)||String(a.pointNumbers)!==String(i.pointNumbers))return!0}return!1}(e,0,Oe)&&(Oe&&e.emit("plotly_unhover",{event:t,points:Oe}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:b,yaxes:_,xvals:R,yvals:j}))}function C(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}r.hover=function(e,t,r,n){e=o.getGraphDiv(e),o.throttle(e._fullLayout._uid+v.HOVERID,v.HOVERMINTIME,(function(){D(e,t,r,n)}))},r.loneHover=function(e,t){var r=!0;Array.isArray(e)||(r=!1,e=[e]);var a=t.gd,i=H(a),o=U(a),l=P(e.map((function(e){var r=e._x0||e.x0||e.x||0,n=e._x1||e.x1||e.x||0,l=e._y0||e.y0||e.y||0,s=e._y1||e.y1||e.y||0,c=e.eventData;if(c){var u=Math.min(r,n),f=Math.max(r,n),d=Math.min(l,s),h=Math.max(l,s),m=e.trace;if(y.traceIs(m,"gl3d")){var g=a._fullLayout[m.scene]._scene.container,v=g.offsetLeft,x=g.offsetTop;u+=v,f+=v,d+=x,h+=x}c.bbox={x0:u+o,x1:f+o,y0:d+i,y1:h+i},t.inOut_bbox&&t.inOut_bbox.push(c.bbox)}else c=!1;return{color:e.color||p.defaultLine,x0:e.x0||e.x||0,x1:e.x1||e.x||0,y0:e.y0||e.y||0,y1:e.y1||e.y||0,xLabel:e.xLabel,yLabel:e.yLabel,zLabel:e.zLabel,text:e.text,name:e.name,idealAlign:e.idealAlign,borderColor:e.borderColor,fontFamily:e.fontFamily,fontSize:e.fontSize,fontColor:e.fontColor,nameLength:e.nameLength,textAlign:e.textAlign,trace:e.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:e.hovertemplate||!1,hovertemplateLabels:e.hovertemplateLabels||!1,eventData:c}})),{gd:a,hovermode:"closest",rotateLabels:false,bgColor:t.bgColor||p.background,container:n.select(t.container),outerContainer:t.outerContainer||t.container}),s=0,c=0;return l.sort((function(e,t){return e.y0-t.y0})).each((function(e,r){var n=e.y0-e.by/2;e.offset=n-5<s?s-n+5:0,s=n+e.by+e.offset,r===t.anchorIndex&&(c=e.offset)})).each((function(e){e.offset-=c})),z(l,false,a._fullLayout._invScaleX,a._fullLayout._invScaleY),r?l:l.node()};var E=/<extra>([\s\S]*)<\/extra>/;function P(e,t){var r=t.gd,a=r._fullLayout,i=t.hovermode,c=t.rotateLabels,f=t.bgColor,h=t.container,m=t.outerContainer,w=t.commonLabelOpts||{},T=t.fontFamily||v.HOVERFONT,M=t.fontSize||v.HOVERFONTSIZE,k=e[0],S=k.xa,O=k.ya,D=i.charAt(0),E=k[D+"Label"],P=Y(r,m),z=P.top,I=P.width,N=P.height,F=void 0!==E&&k.distance<=t.hoverdistance&&("x"===i||"y"===i);if(F){var j,B,H=!0;for(j=0;j<e.length;j++)if(H&&void 0===e[j].zLabel&&(H=!1),B=e[j].hoverinfo||e[j].trace.hoverinfo){var U=Array.isArray(B)?B:B.split("+");if(-1===U.indexOf("all")&&-1===U.indexOf(i)){F=!1;break}}H&&(F=!1)}var q=h.selectAll("g.axistext").data(F?[0]:[]);if(q.enter().append("g").classed("axistext",!0),q.exit().remove(),q.each((function(){var e=n.select(this),t=o.ensureSingle(e,"path","",(function(e){e.style({"stroke-width":"1px"})})),s=o.ensureSingle(e,"text","",(function(e){e.attr("data-notex",1)})),c=w.bgcolor||p.defaultLine,f=w.bordercolor||p.contrast(c),h=p.contrast(c),m={family:w.font.family||T,size:w.font.size||M,color:w.font.color||h};t.style({fill:c,stroke:f}),s.text(E).call(d.font,m).call(u.positionText,0,0).call(u.convertToTspans,r),e.attr("transform","");var y,g,v=Y(r,s.node());if("x"===i){var x="top"===S.side?"-":"";s.attr("text-anchor","middle").call(u.positionText,0,"top"===S.side?z-v.bottom-A-L:z-v.top+A+L),y=S._offset+(k.x0+k.x1)/2,g=O._offset+("top"===S.side?0:O._length);var b=v.width/2+L;y<b?(y=b,t.attr("d","M-"+(b-A)+",0L-"+(b-2*A)+","+x+A+"H"+(L+v.width/2)+"v"+x+(2*L+v.height)+"H-"+b+"V"+x+A+"Z")):y>a.width-b?(y=a.width-b,t.attr("d","M"+(b-A)+",0L"+b+","+x+A+"v"+x+(2*L+v.height)+"H-"+b+"V"+x+A+"H"+(b-2*A)+"Z")):t.attr("d","M0,0L"+A+","+x+A+"H"+(L+v.width/2)+"v"+x+(2*L+v.height)+"H-"+(L+v.width/2)+"V"+x+A+"H-"+A+"Z")}else{var _,D,C;"right"===O.side?(_="start",D=1,C="",y=S._offset+S._length):(_="end",D=-1,C="-",y=S._offset),g=O._offset+(k.y0+k.y1)/2,s.attr("text-anchor",_),t.attr("d","M0,0L"+C+A+","+A+"V"+(L+v.height/2)+"h"+C+(2*L+v.width)+"V-"+(L+v.height/2)+"H"+C+A+"V-"+A+"Z");var P,R=v.height/2,I=z-v.top-R,N="clip"+a._uid+"commonlabel"+O._id;if(y<v.width+2*L+A){P="M-"+(A+L)+"-"+R+"h-"+(v.width-L)+"V"+R+"h"+(v.width-L)+"Z";var F=v.width-y+L;u.positionText(s,F,I),"end"===_&&s.selectAll("tspan").each((function(){var e=n.select(this),t=d.tester.append("text").text(e.text()).call(d.font,m),a=Y(r,t.node());Math.round(a.width)<Math.round(v.width)&&e.attr("x",F-a.width),t.remove()}))}else u.positionText(s,D*(L+A),I),P=null;var j=a._topclips.selectAll("#"+N).data(P?[0]:[]);j.enter().append("clipPath").attr("id",N).append("path"),j.exit().remove(),j.select("path").attr("d",P),d.setClipUrl(s,P?N:null,r)}e.attr("transform",l(y,g))})),g.isUnifiedHover(i)){if(h.selectAll("g.hovertext").remove(),0===e.length)return;var V=a.hoverlabel,G=V.font,Z={showlegend:!0,legend:{title:{text:E,font:G},font:G,bgcolor:V.bgcolor,bordercolor:V.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},W={};x(Z,W,r._fullData);var X=W.legend;X.entries=[];for(var J=0;J<e.length;J++){var K=R(e[J],!0,i,a,E),Q=K[0],$=K[1],ee=e[J];ee.name=$,ee.text=""!==$?$+" : "+Q:Q;var te=ee.cd[ee.index];te&&(te.mc&&(ee.mc=te.mc),te.mcc&&(ee.mc=te.mcc),te.mlc&&(ee.mlc=te.mlc),te.mlcc&&(ee.mlc=te.mlcc),te.mlw&&(ee.mlw=te.mlw),te.mrc&&(ee.mrc=te.mrc),te.dir&&(ee.dir=te.dir)),ee._distinct=!0,X.entries.push([ee])}X.entries.sort((function(e,t){return e[0].trace.index-t[0].trace.index})),X.layer=h,X._inHover=!0,X._groupTitleFont=G,b(r,X);var re,ne,ae,ie,oe=h.select("g.legend"),le=Y(r,oe.node()),se=le.width+2*L,ce=le.height+2*L,ue=e[0],fe=(ue.x0+ue.x1)/2,de=(ue.y0+ue.y1)/2,pe=!(y.traceIs(ue.trace,"bar-like")||y.traceIs(ue.trace,"box-violin"));"y"===D?pe?(ne=de-L,re=de+L):(ne=Math.min.apply(null,e.map((function(e){return Math.min(e.y0,e.y1)}))),re=Math.max.apply(null,e.map((function(e){return Math.max(e.y0,e.y1)})))):ne=re=o.mean(e.map((function(e){return(e.y0+e.y1)/2})))-ce/2,"x"===D?pe?(ae=fe+L,ie=fe-L):(ae=Math.max.apply(null,e.map((function(e){return Math.max(e.x0,e.x1)}))),ie=Math.min.apply(null,e.map((function(e){return Math.min(e.x0,e.x1)})))):ae=ie=o.mean(e.map((function(e){return(e.x0+e.x1)/2})))-se/2;var he,me,ye=S._offset,ge=O._offset;return ie+=ye-se,ne+=ge-ce,he=(ae+=ye)+se<I&&ae>=0?ae:ie+se<I&&ie>=0?ie:ye+se<I?ye:ae-fe<fe-ie+se?I-se:0,he+=L,me=(re+=ge)+ce<N&&re>=0?re:ne+ce<N&&ne>=0?ne:ge+ce<N?ge:re-de<de-ne+ce?N-ce:0,me+=L,oe.attr("transform",l(he-1,me-1)),oe}var ve=h.selectAll("g.hovertext").data(e,(function(e){return C(e)}));return ve.enter().append("g").classed("hovertext",!0).each((function(){var e=n.select(this);e.append("rect").call(p.fill,p.addOpacity(f,.8)),e.append("text").classed("name",!0),e.append("path").style("stroke-width","1px"),e.append("text").classed("nums",!0).call(d.font,T,M)})),ve.exit().remove(),ve.each((function(e){var t=n.select(this).attr("transform",""),o=e.color;Array.isArray(o)&&(o=o[e.eventData[0].pointNumber]);var h=e.bgcolor||o,m=p.combine(p.opacity(h)?h:p.defaultLine,f),y=p.combine(p.opacity(o)?o:p.defaultLine,f),g=e.borderColor||p.contrast(m),v=R(e,F,i,a,E,t),x=v[0],b=v[1],w=t.select("text.nums").call(d.font,e.fontFamily||T,e.fontSize||M,e.fontColor||g).text(x).attr("data-notex",1).call(u.positionText,0,0).call(u.convertToTspans,r),k=t.select("text.name"),S=0,O=0;if(b&&b!==x){k.call(d.font,e.fontFamily||T,e.fontSize||M,y).text(b).attr("data-notex",1).call(u.positionText,0,0).call(u.convertToTspans,r);var D=Y(r,k.node());S=D.width+2*L,O=D.height+2*L}else k.remove(),t.select("rect").remove();t.select("path").style({fill:m,stroke:g});var C=e.xa._offset+(e.x0+e.x1)/2,P=e.ya._offset+(e.y0+e.y1)/2,j=Math.abs(e.x1-e.x0),B=Math.abs(e.y1-e.y0),H=Y(r,w.node()),U=H.width/a._invScaleX,q=H.height/a._invScaleY;e.ty0=(z-H.top)/a._invScaleY,e.bx=U+2*L,e.by=Math.max(q+2*L,O),e.anchor="start",e.txwidth=U,e.tx2width=S,e.offset=0;var V,G,Z=(U+A+L+S)*a._invScaleX;if(c)e.pos=C,V=P+B/2+Z<=N,G=P-B/2-Z>=0,"top"!==e.idealAlign&&V||!G?V?(P+=B/2,e.anchor="start"):e.anchor="middle":(P-=B/2,e.anchor="end");else if(e.pos=P,V=C+j/2+Z<=I,G=C-j/2-Z>=0,"left"!==e.idealAlign&&V||!G)if(V)C+=j/2,e.anchor="start";else{e.anchor="middle";var W=Z/2,X=C+W-I,J=C-W;X>0&&(C-=X),J<0&&(C+=-J)}else C-=j/2,e.anchor="end";w.attr("text-anchor",e.anchor),S&&k.attr("text-anchor",e.anchor),t.attr("transform",l(C,P)+(c?s(_):""))})),ve}function R(e,t,r,n,a,i){var l="",s="";void 0!==e.nameOverride&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=o.templateString(e.name,e.trace._meta)),l=j(e.name,e.nameLength));var c=r.charAt(0),u="x"===c?"y":"x";void 0!==e.zLabel?(void 0!==e.xLabel&&(s+="x: "+e.xLabel+"<br>"),void 0!==e.yLabel&&(s+="y: "+e.yLabel+"<br>"),"choropleth"!==e.trace.type&&"choroplethmapbox"!==e.trace.type&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[c+"Label"]===a?s=e[u+"Label"]||"":void 0===e.xLabel?void 0!==e.yLabel&&"scattercarpet"!==e.trace.type&&(s=e.yLabel):s=void 0===e.yLabel?e.xLabel:"("+e.xLabel+", "+e.yLabel+")",!e.text&&0!==e.text||Array.isArray(e.text)||(s+=(s?"<br>":"")+e.text),void 0!==e.extraText&&(s+=(s?"<br>":"")+e.extraText),i&&""===s&&!e.hovertemplate&&(""===l&&i.remove(),s=l);var f=e.hovertemplate||!1;if(f){var d=e.hovertemplateLabels||e;e[c+"Label"]!==a&&(d[c+"other"]=d[c+"Val"],d[c+"otherLabel"]=d[c+"Label"]),s=(s=o.hovertemplateString(f,d,n._d3locale,e.eventData[0]||{},e.trace._meta)).replace(E,(function(t,r){return l=j(r,e.nameLength),""}))}return[s,l]}function z(e,t,r,a){var i=function(e){return e*r},o=function(e){return e*a};e.each((function(e){var r=n.select(this);if(e.del)return r.remove();var a=r.select("text.nums"),l=e.anchor,s="end"===l?-1:1,c={start:1,end:-1,middle:0}[l],f=c*(A+L),p=f+c*(e.txwidth+L),h=0,m=e.offset,y="middle"===l;y&&(f-=e.tx2width/2,p+=e.txwidth/2+L),t&&(m*=-k,h=e.offset*M),r.select("path").attr("d",y?"M-"+i(e.bx/2+e.tx2width/2)+","+o(m-e.by/2)+"h"+i(e.bx)+"v"+o(e.by)+"h-"+i(e.bx)+"Z":"M0,0L"+i(s*A+h)+","+o(A+m)+"v"+o(e.by/2-A)+"h"+i(s*e.bx)+"v-"+o(e.by)+"H"+i(s*A+h)+"V"+o(m-A)+"Z");var g=h+f,v=m+e.ty0-e.by/2+L,x=e.textAlign||"auto";"auto"!==x&&("left"===x&&"start"!==l?(a.attr("text-anchor","start"),g=y?-e.bx/2-e.tx2width/2+L:-e.bx-L):"right"===x&&"end"!==l&&(a.attr("text-anchor","end"),g=y?e.bx/2-e.tx2width/2-L:e.bx+L)),a.call(u.positionText,i(g),o(v)),e.tx2width&&(r.select("text.name").call(u.positionText,i(p+c*L+h),o(m+e.ty0-e.by/2+L)),r.select("rect").call(d.setRect,i(p+(c-1)*e.tx2width/2+h),o(m-e.by/2-1),i(e.tx2width),o(e.by+2)))}))}function I(e,t){var r=e.index,n=e.trace||{},i=e.cd[0],l=e.cd[r]||{};function s(e){return e||a(e)&&0===e}var c=Array.isArray(r)?function(e,t){var a=o.castOption(i,r,e);return s(a)?a:o.extractOption({},n,"",t)}:function(e,t){return o.extractOption(l,n,e,t)};function u(t,r,n){var a=c(r,n);s(a)&&(e[t]=a)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref="y"===t||"closest"===t&&"h"===n.orientation?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=o.constrain(e.x0,0,e.xa._length),e.x1=o.constrain(e.x1,0,e.xa._length),e.y0=o.constrain(e.y0,0,e.ya._length),e.y1=o.constrain(e.y1,0,e.ya._length),void 0!==e.xLabelVal&&(e.xLabel="xLabel"in e?e.xLabel:m.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),void 0!==e.yLabelVal&&(e.yLabel="yLabel"in e?e.yLabel:m.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),void 0!==e.zLabelVal&&void 0===e.zLabel&&(e.zLabel=String(e.zLabelVal)),!(isNaN(e.xerr)||"log"===e.xa.type&&e.xerr<=0)){var f=m.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;void 0!==e.xerrneg?e.xLabel+=" +"+f+" / -"+m.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" ± "+f,"x"===t&&(e.distance+=1)}if(!(isNaN(e.yerr)||"log"===e.ya.type&&e.yerr<=0)){var d=m.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;void 0!==e.yerrneg?e.yLabel+=" +"+d+" / -"+m.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" ± "+d,"y"===t&&(e.distance+=1)}var p=e.hoverinfo||e.trace.hoverinfo;return p&&"all"!==p&&(-1===(p=Array.isArray(p)?p:p.split("+")).indexOf("x")&&(e.xLabel=void 0),-1===p.indexOf("y")&&(e.yLabel=void 0),-1===p.indexOf("z")&&(e.zLabel=void 0),-1===p.indexOf("text")&&(e.text=void 0),-1===p.indexOf("name")&&(e.name=void 0)),e}function N(e,t,r){var n,a,o=r.container,l=r.fullLayout,s=l._size,c=r.event,u=!!t.hLinePoint,f=!!t.vLinePoint;if(o.selectAll(".spikeline").remove(),f||u){var h=p.combine(l.plot_bgcolor,l.paper_bgcolor);if(u){var y,g,v=t.hLinePoint;n=v&&v.xa,"cursor"===(a=v&&v.ya).spikesnap?(y=c.pointerX,g=c.pointerY):(y=n._offset+v.x,g=a._offset+v.y);var x,b,_=i.readability(v.color,h)<1.5?p.contrast(h):v.color,w=a.spikemode,T=a.spikethickness,M=a.spikecolor||_,k=m.getPxPosition(e,a);if(-1!==w.indexOf("toaxis")||-1!==w.indexOf("across")){if(-1!==w.indexOf("toaxis")&&(x=k,b=y),-1!==w.indexOf("across")){var A=a._counterDomainMin,L=a._counterDomainMax;"free"===a.anchor&&(A=Math.min(A,a.position),L=Math.max(L,a.position)),x=s.l+A*s.w,b=s.l+L*s.w}o.insert("line",":first-child").attr({x1:x,x2:b,y1:g,y2:g,"stroke-width":T,stroke:M,"stroke-dasharray":d.dashStyle(a.spikedash,T)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:x,x2:b,y1:g,y2:g,"stroke-width":T+2,stroke:h}).classed("spikeline",!0).classed("crisp",!0)}-1!==w.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:k+("right"!==a.side?T:-T),cy:g,r:T,fill:M}).classed("spikeline",!0)}if(f){var S,O,D=t.vLinePoint;n=D&&D.xa,a=D&&D.ya,"cursor"===n.spikesnap?(S=c.pointerX,O=c.pointerY):(S=n._offset+D.x,O=a._offset+D.y);var C,E,P=i.readability(D.color,h)<1.5?p.contrast(h):D.color,R=n.spikemode,z=n.spikethickness,I=n.spikecolor||P,N=m.getPxPosition(e,n);if(-1!==R.indexOf("toaxis")||-1!==R.indexOf("across")){if(-1!==R.indexOf("toaxis")&&(C=N,E=O),-1!==R.indexOf("across")){var F=n._counterDomainMin,j=n._counterDomainMax;"free"===n.anchor&&(F=Math.min(F,n.position),j=Math.max(j,n.position)),C=s.t+(1-j)*s.h,E=s.t+(1-F)*s.h}o.insert("line",":first-child").attr({x1:S,x2:S,y1:C,y2:E,"stroke-width":z,stroke:I,"stroke-dasharray":d.dashStyle(n.spikedash,z)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:S,x2:S,y1:C,y2:E,"stroke-width":z+2,stroke:h}).classed("spikeline",!0).classed("crisp",!0)}-1!==R.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:S,cy:N-("top"!==n.side?z:-z),r:z,fill:I}).classed("spikeline",!0)}}}function F(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function j(e,t){return u.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em"]})}function B(e,t,r){var n=t[e+"a"],a=t[e+"Val"],i=t.cd[0];if("category"===n.type)a=n._categoriesMap[a];else if("date"===n.type){var o=t.trace[e+"periodalignment"];if(o){var l=t.cd[t.index],s=l[e+"Start"];void 0===s&&(s=l[e]);var c=l[e+"End"];void 0===c&&(c=l[e]);var u=c-s;"end"===o?a+=u:"middle"===o&&(a+=u/2)}a=n.d2c(a)}return i&&i.t&&i.t.posLetter===n._id&&("group"!==r.boxmode&&"group"!==r.violinmode||(a+=i.t.dPos)),a}function H(e){return e.offsetTop+e.clientTop}function U(e){return e.offsetLeft+e.clientLeft}function Y(e,t){var r=e._fullLayout,n=t.getBoundingClientRect(),a=n.x,i=n.y,l=a+n.width,s=i+n.height,c=o.apply3DTransform(r._invTransform)(a,i),u=o.apply3DTransform(r._invTransform)(l,s),f=c[0],d=c[1],p=u[0],h=u[1];return{x:f,y:d,width:p-f,height:h-d,top:Math.min(d,h),left:Math.min(f,p),right:Math.max(f,p),bottom:Math.max(d,h)}}},{"../../lib":287,"../../lib/events":280,"../../lib/override_cursor":298,"../../lib/svg_text_utils":310,"../../plots/cartesian/axes":334,"../../registry":376,"../color":157,"../dragelement":176,"../drawing":179,"../legend/defaults":209,"../legend/draw":210,"./constants":191,"./helpers":193,"@plotly/d3":20,"fast-isnumeric":33,tinycolor2:121}],195:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../color"),i=e("./helpers").isUnifiedHover;t.exports=function(e,t,r,o){function l(e){o.font[e]||(o.font[e]=t.legend?t.legend.font[e]:t.font[e])}o=o||{},t&&i(t.hovermode)&&(o.font||(o.font={}),l("size"),l("family"),l("color"),t.legend?(o.bgcolor||(o.bgcolor=a.combine(t.legend.bgcolor,t.paper_bgcolor)),o.bordercolor||(o.bordercolor=t.legend.bordercolor)):o.bgcolor||(o.bgcolor=t.paper_bgcolor)),r("hoverlabel.bgcolor",o.bgcolor),r("hoverlabel.bordercolor",o.bordercolor),r("hoverlabel.namelength",o.namelength),n.coerceFont(r,"hoverlabel.font",o.font),r("hoverlabel.align",o.align)}},{"../../lib":287,"../color":157,"./helpers":193}],196:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("./layout_attributes");t.exports=function(e,t){function r(r,i){return void 0!==t[r]?t[r]:n.coerce(e,t,a,r,i)}return r("clickmode"),r("hovermode")}},{"../../lib":287,"./layout_attributes":198}],197:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../../lib"),i=e("../dragelement"),o=e("./helpers"),l=e("./layout_attributes"),s=e("./hover");t.exports={moduleType:"component",name:"fx",constants:e("./constants"),schema:{layout:l},attributes:e("./attributes"),layoutAttributes:l,supplyLayoutGlobalDefaults:e("./layout_global_defaults"),supplyDefaults:e("./defaults"),supplyLayoutDefaults:e("./layout_defaults"),calc:e("./calc"),getDistanceFunction:o.getDistanceFunction,getClosest:o.getClosest,inbox:o.inbox,quadrature:o.quadrature,appendArrayPointValue:o.appendArrayPointValue,castHoverOption:function(e,t,r){return a.castOption(e,t,"hoverlabel."+r)},castHoverinfo:function(e,t,r){return a.castOption(e,r,"hoverinfo",(function(r){return a.coerceHoverinfo({hoverinfo:r},{_module:e._module},t)}))},hover:s.hover,unhover:i.unhover,loneHover:s.loneHover,loneUnhover:function(e){var t=a.isD3Selection(e)?e:n.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()},click:e("./click")}},{"../../lib":287,"../dragelement":176,"./attributes":188,"./calc":189,"./click":190,"./constants":191,"./defaults":192,"./helpers":193,"./hover":194,"./layout_attributes":198,"./layout_defaults":199,"./layout_global_defaults":200,"@plotly/d3":20}],198:[function(e,t,r){"use strict";var n=e("./constants"),a=e("../../plots/font_attributes")({editType:"none"});a.family.dflt=n.HOVERFONT,a.size.dflt=n.HOVERFONTSIZE,t.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:a,align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},{"../../plots/font_attributes":363,"./constants":191}],199:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("./layout_attributes"),i=e("./hovermode_defaults"),o=e("./hoverlabel_defaults");t.exports=function(e,t){function r(r,i){return n.coerce(e,t,a,r,i)}i(e,t)&&(r("hoverdistance"),r("spikedistance")),"select"===r("dragmode")&&r("selectdirection");var l=t._has("mapbox"),s=t._has("geo"),c=t._basePlotModules.length;"zoom"===t.dragmode&&((l||s)&&1===c||l&&s&&2===c)&&(t.dragmode="pan"),o(e,t,r)}},{"../../lib":287,"./hoverlabel_defaults":195,"./hovermode_defaults":196,"./layout_attributes":198}],200:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("./hoverlabel_defaults"),i=e("./layout_attributes");t.exports=function(e,t){a(e,t,(function(r,a){return n.coerce(e,t,i,r,a)}))}},{"../../lib":287,"./hoverlabel_defaults":195,"./layout_attributes":198}],201:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../lib/regex").counter,i=e("../../plots/domain").attributes,o=e("../../plots/cartesian/constants").idRegex,l=e("../../plot_api/plot_template"),s={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[a("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[o.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[o.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:i({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function c(e,t,r){var n=t[r+"axes"],a=Object.keys((e._splomAxes||{})[r]||{});return Array.isArray(n)?n:a.length?a:void 0}function u(e,t,r,n,a,i){var o=t(e+"gap",r),l=t("domain."+e);t(e+"side",n);for(var s=new Array(a),c=l[0],u=(l[1]-c)/(a-o),f=u*(1-o),d=0;d<a;d++){var p=c+u*d;s[i?a-1-d:d]=[p,p+f]}return s}function f(e,t,r,n,a){var i,o=new Array(r);function l(e,r){-1!==t.indexOf(r)&&void 0===n[r]?(o[e]=r,n[r]=e):o[e]=""}if(Array.isArray(e))for(i=0;i<r;i++)l(i,e[i]);else for(l(0,a),i=1;i<r;i++)l(i,a+(i+1));return o}t.exports={moduleType:"component",name:"grid",schema:{layout:{grid:s}},layoutAttributes:s,sizeDefaults:function(e,t){var r=e.grid||{},a=c(t,r,"x"),i=c(t,r,"y");if(e.grid||a||i){var o,f,d=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),p=Array.isArray(a),h=Array.isArray(i),m=p&&a!==r.xaxes&&h&&i!==r.yaxes;d?(o=r.subplots.length,f=r.subplots[0].length):(h&&(o=i.length),p&&(f=a.length));var y=l.newContainer(t,"grid"),g=M("rows",o),v=M("columns",f);if(g*v>1){d||p||h||"independent"===M("pattern")&&(d=!0),y._hasSubplotGrid=d;var x,b,_="top to bottom"===M("roworder"),w=d?.2:.1,T=d?.3:.1;m&&t._splomGridDflt&&(x=t._splomGridDflt.xside,b=t._splomGridDflt.yside),y._domains={x:u("x",M,w,x,v),y:u("y",M,T,b,g,_)}}else delete t.grid}function M(e,t){return n.coerce(r,y,s,e,t)}},contentDefaults:function(e,t){var r=t.grid;if(r&&r._domains){var n,a,i,o,l,s,u,d=e.grid||{},p=t._subplots,h=r._hasSubplotGrid,m=r.rows,y=r.columns,g="independent"===r.pattern,v=r._axisMap={};if(h){var x=d.subplots||[];s=r.subplots=new Array(m);var b=1;for(n=0;n<m;n++){var _=s[n]=new Array(y),w=x[n]||[];for(a=0;a<y;a++)if(g?(l=1===b?"xy":"x"+b+"y"+b,b++):l=w[a],_[a]="",-1!==p.cartesian.indexOf(l)){if(u=l.indexOf("y"),i=l.slice(0,u),o=l.slice(u),void 0!==v[i]&&v[i]!==a||void 0!==v[o]&&v[o]!==n)continue;_[a]=l,v[i]=a,v[o]=n}}}else{var T=c(t,d,"x"),M=c(t,d,"y");r.xaxes=f(T,p.xaxis,y,v,"x"),r.yaxes=f(M,p.yaxis,m,v,"y")}var k=r._anchors={},A="top to bottom"===r.roworder;for(var L in v){var S,O,D,C=L.charAt(0),E=r[C+"side"];if(E.length<8)k[L]="free";else if("x"===C){if("t"===E.charAt(0)===A?(S=0,O=1,D=m):(S=m-1,O=-1,D=-1),h){var P=v[L];for(n=S;n!==D;n+=O)if((l=s[n][P])&&(u=l.indexOf("y"),l.slice(0,u)===L)){k[L]=l.slice(u);break}}else for(n=S;n!==D;n+=O)if(o=r.yaxes[n],-1!==p.cartesian.indexOf(L+o)){k[L]=o;break}}else if("l"===E.charAt(0)?(S=0,O=1,D=y):(S=y-1,O=-1,D=-1),h){var R=v[L];for(n=S;n!==D;n+=O)if((l=s[R][n])&&(u=l.indexOf("y"),l.slice(u)===L)){k[L]=l.slice(0,u);break}}else for(n=S;n!==D;n+=O)if(i=r.xaxes[n],-1!==p.cartesian.indexOf(i+L)){k[L]=i;break}}}}}},{"../../lib":287,"../../lib/regex":303,"../../plot_api/plot_template":323,"../../plots/cartesian/constants":341,"../../plots/domain":362}],202:[function(e,t,r){"use strict";var n=e("../../plots/cartesian/constants"),a=e("../../plot_api/plot_template").templatedArray;e("../../constants/axis_placeable_objects"),t.exports=a("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",n.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",n.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})},{"../../constants/axis_placeable_objects":263,"../../plot_api/plot_template":323,"../../plots/cartesian/constants":341}],203:[function(e,t,r){"use strict";var n=e("fast-isnumeric"),a=e("../../lib/to_log_range");t.exports=function(e,t,r,i){t=t||{};var o="log"===r&&"linear"===t.type,l="linear"===r&&"log"===t.type;if(o||l)for(var s,c,u=e._fullLayout.images,f=t._id.charAt(0),d=0;d<u.length;d++)if(c="images["+d+"].",(s=u[d])[f+"ref"]===t._id){var p=s[f],h=s["size"+f],m=null,y=null;if(o){m=a(p,t.range);var g=h/Math.pow(10,m)/2;y=2*Math.log(g+Math.sqrt(1+g*g))/Math.LN10}else y=(m=Math.pow(10,p))*(Math.pow(10,h/2)-Math.pow(10,-h/2));n(m)?n(y)||(y=null):(m=null,y=null),i(c+f,m),i(c+"size"+f,y)}}},{"../../lib/to_log_range":312,"fast-isnumeric":33}],204:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../plots/cartesian/axes"),i=e("../../plots/array_container_defaults"),o=e("./attributes");function l(e,t,r){function i(r,a){return n.coerce(e,t,o,r,a)}var l=i("source");if(!i("visible",!!l))return t;i("layer"),i("xanchor"),i("yanchor"),i("sizex"),i("sizey"),i("sizing"),i("opacity");for(var s={_fullLayout:r},c=["x","y"],u=0;u<2;u++){var f=c[u],d=a.coerceRef(e,t,s,f,"paper",void 0);"paper"!==d&&a.getFromId(s,d)._imgIndices.push(t._index),a.coercePosition(t,s,i,d,f,0)}return t}t.exports=function(e,t){i(e,t,{name:"images",handleItemDefaults:l})}},{"../../lib":287,"../../plots/array_container_defaults":329,"../../plots/cartesian/axes":334,"./attributes":202}],205:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../drawing"),i=e("../../plots/cartesian/axes"),o=e("../../plots/cartesian/axis_ids"),l=e("../../constants/xmlns_namespaces");t.exports=function(e){var t,r,s=e._fullLayout,c=[],u={},f=[];for(r=0;r<s.images.length;r++){var d=s.images[r];if(d.visible)if("below"===d.layer&&"paper"!==d.xref&&"paper"!==d.yref){t=o.ref2id(d.xref)+o.ref2id(d.yref);var p=s._plots[t];if(!p){f.push(d);continue}p.mainplot&&(t=p.mainplot.id),u[t]||(u[t]=[]),u[t].push(d)}else"above"===d.layer?c.push(d):f.push(d)}var h={left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-.5},right:{sizing:"xMax",offset:-1}},m={top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-.5},bottom:{sizing:"YMax",offset:-1}};function y(t){var r=n.select(this);if(this._imgSrc!==t.source)if(r.attr("xmlns",l.svg),t.source&&"data:"===t.source.slice(0,5))r.attr("xlink:href",t.source),this._imgSrc=t.source;else{var a=new Promise(function(e){var n=new Image;function a(){r.remove(),e()}this.img=n,n.setAttribute("crossOrigin","anonymous"),n.onerror=a,n.onload=function(){var t=document.createElement("canvas");t.width=this.width,t.height=this.height,t.getContext("2d").drawImage(this,0,0);var n=t.toDataURL("image/png");r.attr("xlink:href",n),e()},r.on("error",a),n.src=t.source,this._imgSrc=t.source}.bind(this));e._promises.push(a)}}function g(t){var r,o,l=n.select(this),c=i.getFromId(e,t.xref),u=i.getFromId(e,t.yref),f="domain"===i.getRefType(t.xref),d="domain"===i.getRefType(t.yref),p=s._size;r=void 0!==c?"string"==typeof t.xref&&f?c._length*t.sizex:Math.abs(c.l2p(t.sizex)-c.l2p(0)):t.sizex*p.w,o=void 0!==u?"string"==typeof t.yref&&d?u._length*t.sizey:Math.abs(u.l2p(t.sizey)-u.l2p(0)):t.sizey*p.h;var y,g,v=r*h[t.xanchor].offset,x=o*m[t.yanchor].offset,b=h[t.xanchor].sizing+m[t.yanchor].sizing;switch(y=void 0!==c?"string"==typeof t.xref&&f?c._length*t.x+c._offset:c.r2p(t.x)+c._offset:t.x*p.w+p.l,y+=v,g=void 0!==u?"string"==typeof t.yref&&d?u._length*(1-t.y)+u._offset:u.r2p(t.y)+u._offset:p.h-t.y*p.h+p.t,g+=x,t.sizing){case"fill":b+=" slice";break;case"stretch":b="none"}l.attr({x:y,y:g,width:r,height:o,preserveAspectRatio:b,opacity:t.opacity});var _=(c&&"domain"!==i.getRefType(t.xref)?c._id:"")+(u&&"domain"!==i.getRefType(t.yref)?u._id:"");a.setClipUrl(l,_?"clip"+s._uid+_:null,e)}var v=s._imageLowerLayer.selectAll("image").data(f),x=s._imageUpperLayer.selectAll("image").data(c);v.enter().append("image"),x.enter().append("image"),v.exit().remove(),x.exit().remove(),v.each((function(e){y.bind(this)(e),g.bind(this)(e)})),x.each((function(e){y.bind(this)(e),g.bind(this)(e)}));var b=Object.keys(s._plots);for(r=0;r<b.length;r++){t=b[r];var _=s._plots[t];if(_.imagelayer){var w=_.imagelayer.selectAll("image").data(u[t]||[]);w.enter().append("image"),w.exit().remove(),w.each((function(e){y.bind(this)(e),g.bind(this)(e)}))}}}},{"../../constants/xmlns_namespaces":268,"../../plots/cartesian/axes":334,"../../plots/cartesian/axis_ids":338,"../drawing":179,"@plotly/d3":20}],206:[function(e,t,r){"use strict";t.exports={moduleType:"component",name:"images",layoutAttributes:e("./attributes"),supplyLayoutDefaults:e("./defaults"),includeBasePlot:e("../../plots/cartesian/include_components")("images"),draw:e("./draw"),convertCoords:e("./convert_coords")}},{"../../plots/cartesian/include_components":347,"./attributes":202,"./convert_coords":203,"./defaults":204,"./draw":205}],207:[function(e,t,r){"use strict";var n=e("../../plots/font_attributes"),a=e("../color/attributes");t.exports={bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:a.defaultLine,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:n({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",min:-2,max:3,editType:"legend"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",min:-2,max:3,editType:"legend"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:n({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left"],editType:"legend"},editType:"legend"},editType:"legend"}},{"../../plots/font_attributes":363,"../color/attributes":156}],208:[function(e,t,r){"use strict";t.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},{}],209:[function(e,t,r){"use strict";var n=e("../../registry"),a=e("../../lib"),i=e("../../plot_api/plot_template"),o=e("./attributes"),l=e("../../plots/layout_attributes"),s=e("./helpers");t.exports=function(e,t,r){for(var c=e.legend||{},u=0,f=!1,d="normal",p=0;p<r.length;p++){var h=r[p];h.visible&&((h.showlegend||h._dfltShowLegend&&!(h._module&&h._module.attributes&&h._module.attributes.showlegend&&!1===h._module.attributes.showlegend.dflt))&&(u++,h.showlegend&&(f=!0,(n.traceIs(h,"pie-like")||!0===h._input.showlegend)&&u++)),(n.traceIs(h,"bar")&&"stack"===t.barmode||-1!==["tonextx","tonexty"].indexOf(h.fill))&&(d=s.isGrouped({traceorder:d})?"grouped+reversed":"reversed"),void 0!==h.legendgroup&&""!==h.legendgroup&&(d=s.isReversed({traceorder:d})?"reversed+grouped":"grouped"))}var m=a.coerce(e,t,l,"showlegend",f&&u>1);if(!1!==m||c.uirevision){var y=i.newContainer(t,"legend");if(T("uirevision",t.uirevision),!1!==m){T("bgcolor",t.paper_bgcolor),T("bordercolor"),T("borderwidth");var g,v,x,b=a.coerceFont(T,"font",t.font),_="h"===T("orientation");if(_?(g=0,n.getComponentMethod("rangeslider","isVisible")(e.xaxis)?(v=1.1,x="bottom"):(v=-.1,x="top")):(g=1.02,v=1,x="auto"),T("traceorder",d),s.isGrouped(t.legend)&&T("tracegroupgap"),T("itemsizing"),T("itemwidth"),T("itemclick"),T("itemdoubleclick"),T("groupclick"),T("x",g),T("xanchor"),T("y",v),T("yanchor",x),T("valign"),a.noneOrAll(c,y,["x","y"]),T("title.text")){T("title.side",_?"left":"top");var w=a.extendFlat({},b,{size:a.bigFont(b.size)});a.coerceFont(T,"title.font",w)}}}function T(e,t){return a.coerce(c,y,o,e,t)}}},{"../../lib":287,"../../plot_api/plot_template":323,"../../plots/layout_attributes":367,"../../registry":376,"./attributes":207,"./helpers":213}],210:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../../lib"),i=e("../../plots/plots"),o=e("../../registry"),l=e("../../lib/events"),s=e("../dragelement"),c=e("../drawing"),u=e("../color"),f=e("../../lib/svg_text_utils"),d=e("./handle_click"),p=e("./constants"),h=e("../../constants/alignment"),m=h.LINE_SPACING,y=h.FROM_TL,g=h.FROM_BR,v=e("./get_legend_data"),x=e("./style"),b=e("./helpers");function _(e,t){var r,l=e._fullLayout,f="legend"+l._uid,d=t._inHover;if(d?(r=t.layer,f+="-hover"):r=l._infolayer,r){var h;if(e._legendMouseDownTime||(e._legendMouseDownTime=0),d){if(!t.entries)return;h=v(t.entries,t)}else{if(!e.calcdata)return;h=l.showlegend&&v(e.calcdata,t)}var m=l.hiddenlabels||[];if(!(d||l.showlegend&&h.length))return r.selectAll(".legend").remove(),l._topdefs.select("#"+f).remove(),i.autoMargin(e,"legend");var _=a.ensureSingle(r,"g","legend",(function(e){d||e.attr("pointer-events","all")})),M=a.ensureSingleById(l._topdefs,"clipPath",f,(function(e){e.append("rect")})),O=a.ensureSingle(_,"rect","bg",(function(e){e.attr("shape-rendering","crispEdges")}));O.call(u.stroke,t.bordercolor).call(u.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var D=a.ensureSingle(_,"g","scrollbox"),C=t.title;if(t._titleWidth=0,t._titleHeight=0,C.text){var E=a.ensureSingle(D,"text","legendtitletext");E.attr("text-anchor","start").call(c.font,C.font).text(C.text),A(E,D,e,t,1)}else D.selectAll(".legendtitletext").remove();var P=a.ensureSingle(_,"rect","scrollbar",(function(e){e.attr(p.scrollBarEnterAttrs).call(u.fill,p.scrollBarColor)})),R=D.selectAll("g.groups").data(h);R.enter().append("g").attr("class","groups"),R.exit().remove();var z=R.selectAll("g.traces").data(a.identity);z.enter().append("g").attr("class","traces"),z.exit().remove(),z.style("opacity",(function(e){var t=e[0].trace;return o.traceIs(t,"pie-like")?-1!==m.indexOf(e[0].label)?.5:1:"legendonly"===t.visible?.5:1})).each((function(){n.select(this).call(T,e,t)})).call(x,e,t).each((function(){d||n.select(this).call(k,e)})),a.syncOrAsync([i.previousPromises,function(){return function(e,t,r,a){var i=e._fullLayout;a||(a=i.legend);var o=i._size,l=b.isVertical(a),s=b.isGrouped(a),u=a.borderwidth,f=2*u,d=p.itemGap,h=a.itemwidth+2*d,m=2*(u+d),y=S(a),g=a.y<0||0===a.y&&"top"===y,v=a.y>1||1===a.y&&"bottom"===y,x=a.tracegroupgap;a._maxHeight=Math.max(g||v?i.height/2:o.h,30);var _=0;a._width=0,a._height=0;var w=function(e){var t=0,r=0,n=e.title.side;return n&&(-1!==n.indexOf("left")&&(t=e._titleWidth),-1!==n.indexOf("top")&&(r=e._titleHeight)),[t,r]}(a);if(l)r.each((function(e){var t=e[0].height;c.setTranslate(this,u+w[0],u+w[1]+a._height+t/2+d),a._height+=t,a._width=Math.max(a._width,e[0].width)})),_=h+a._width,a._width+=d+h+f,a._height+=m,s&&(t.each((function(e,t){c.setTranslate(this,0,t*a.tracegroupgap)})),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var T=L(a),M=a.x<0||0===a.x&&"right"===T,k=a.x>1||1===a.x&&"left"===T,A=v||g,O=i.width/2;a._maxWidth=Math.max(M?A&&"left"===T?o.l+o.w:O:k?A&&"right"===T?o.r+o.w:O:o.w,2*h);var D=0,C=0;r.each((function(e){var t=e[0].width+h;D=Math.max(D,t),C+=t})),_=null;var E=0;if(s){var P=0,R=0,z=0;t.each((function(){var e=0,t=0;n.select(this).selectAll("g.traces").each((function(r){var n=r[0].height;c.setTranslate(this,w[0],w[1]+u+d+n/2+t),t+=n,e=Math.max(e,h+r[0].width)})),P=Math.max(P,t);var r=e+d;r+u+R>a._maxWidth&&(E=Math.max(E,R),R=0,z+=P+x,P=t),c.setTranslate(this,R,z),R+=r})),a._width=Math.max(E,R)+u,a._height=z+P+m}else{var I=r.size(),N=C+f+(I-1)*d<a._maxWidth,F=0,j=0,B=0,H=0;r.each((function(e){var t=e[0].height,r=h+e[0].width,n=(N?r:D)+d;n+u+j-d>=a._maxWidth&&(E=Math.max(E,H),j=0,B+=F,a._height+=F,F=0),c.setTranslate(this,w[0]+u+j,w[1]+u+B+t/2+d),H=j+r+d,j+=n,F=Math.max(F,t)})),N?(a._width=j+f,a._height=F+m):(a._width=Math.max(E,H)+f,a._height+=F+m)}}a._width=Math.ceil(Math.max(a._width+w[0],a._titleWidth+2*(u+p.titlePad))),a._height=Math.ceil(Math.max(a._height+w[1],a._titleHeight+2*(u+p.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var U=e._context.edits,Y=U.legendText||U.legendPosition;r.each((function(e){var t=n.select(this).select(".legendtoggle"),r=e[0].height,a=Y?h:_||h+e[0].width;l||(a+=d/2),c.setRect(t,0,-r/2,a,r)}))}(e,R,z,t)},function(){if(d||!function(e){var t=e._fullLayout.legend,r=L(t),n=S(t);return i.autoMargin(e,"legend",{x:t.x,y:t.y,l:t._width*y[r],r:t._width*g[r],b:t._effHeight*g[n],t:t._effHeight*y[n]})}(e)){var u,h,m,v,x=l._size,b=t.borderwidth,T=x.l+x.w*t.x-y[L(t)]*t._width,k=x.t+x.h*(1-t.y)-y[S(t)]*t._effHeight;if(!d&&l.margin.autoexpand){var A=T,C=k;T=a.constrain(T,0,l.width-t._width),k=a.constrain(k,0,l.height-t._effHeight),T!==A&&a.log("Constrain legend.x to make legend fit inside graph"),k!==C&&a.log("Constrain legend.y to make legend fit inside graph")}if(d||c.setTranslate(_,T,k),P.on(".drag",null),_.on("wheel",null),d||t._height<=t._maxHeight||e._context.staticPlot){var E=t._effHeight;d&&(E=t._height),O.attr({width:t._width-b,height:E-b,x:b/2,y:b/2}),c.setTranslate(D,0,0),M.select("rect").attr({width:t._width-2*b,height:E-2*b,x:b,y:b}),c.setClipUrl(D,f,e),c.setRect(P,0,0,0,0),delete t._scrollY}else{var R,z,I,N=Math.max(p.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),F=t._effHeight-N-2*p.scrollBarMargin,j=t._height-t._effHeight,B=F/j,H=Math.min(t._scrollY||0,j);O.attr({width:t._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:t._effHeight-b,x:b/2,y:b/2}),M.select("rect").attr({width:t._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:t._effHeight-2*b,x:b,y:b+H}),c.setClipUrl(D,f,e),q(H,N,B),_.on("wheel",(function(){q(H=a.constrain(t._scrollY+n.event.deltaY/F*j,0,j),N,B),0!==H&&H!==j&&n.event.preventDefault()}));var U=n.behavior.drag().on("dragstart",(function(){var e=n.event.sourceEvent;R="touchstart"===e.type?e.changedTouches[0].clientY:e.clientY,I=H})).on("drag",(function(){var e=n.event.sourceEvent;2===e.buttons||e.ctrlKey||(z="touchmove"===e.type?e.changedTouches[0].clientY:e.clientY,q(H=function(e,t,r){var n=(r-t)/B+e;return a.constrain(n,0,j)}(I,R,z),N,B))}));P.call(U);var Y=n.behavior.drag().on("dragstart",(function(){var e=n.event.sourceEvent;"touchstart"===e.type&&(R=e.changedTouches[0].clientY,I=H)})).on("drag",(function(){var e=n.event.sourceEvent;"touchmove"===e.type&&(z=e.changedTouches[0].clientY,q(H=function(e,t,r){var n=(t-r)/B+e;return a.constrain(n,0,j)}(I,R,z),N,B))}));D.call(Y)}e._context.edits.legendPosition&&(_.classed("cursor-move",!0),s.init({element:_.node(),gd:e,prepFn:function(){var e=c.getTranslate(_);m=e.x,v=e.y},moveFn:function(e,r){var n=m+e,a=v+r;c.setTranslate(_,n,a),u=s.align(n,0,x.l,x.l+x.w,t.xanchor),h=s.align(a,0,x.t+x.h,x.t,t.yanchor)},doneFn:function(){void 0!==u&&void 0!==h&&o.call("_guiRelayout",e,{"legend.x":u,"legend.y":h})},clickFn:function(t,n){var a=r.selectAll("g.traces").filter((function(){var e=this.getBoundingClientRect();return n.clientX>=e.left&&n.clientX<=e.right&&n.clientY>=e.top&&n.clientY<=e.bottom}));a.size()>0&&w(e,_,a,t,n)}}))}function q(r,n,a){t._scrollY=e._fullLayout.legend._scrollY=r,c.setTranslate(D,0,-r),c.setRect(P,t._width,p.scrollBarMargin+r*a,p.scrollBarWidth,n),M.select("rect").attr("y",b+r)}}],e)}}function w(e,t,r,n,a){var i=r.data()[0][0].trace,s={event:a,node:r.node(),curveNumber:i.index,expandedIndex:i._expandedIndex,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(s.group=i._group),o.traceIs(i,"pie-like")&&(s.label=r.datum()[0].label),!1!==l.triggerHandler(e,"plotly_legendclick",s)&&(1===n?t._clickTimeout=setTimeout((function(){e._fullLayout&&d(r,e,n)}),e._context.doubleClickDelay):2===n&&(t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0,!1!==l.triggerHandler(e,"plotly_legenddoubleclick",s)&&d(r,e,n)))}function T(e,t,r){var n,i,l=e.data()[0][0],s=l.trace,u=o.traceIs(s,"pie-like"),d=!r._inHover&&t._context.edits.legendText&&!u,h=r._maxNameLength;l.groupTitle?(n=l.groupTitle.text,i=l.groupTitle.font):(i=r.font,r.entries?n=l.text:(n=u?l.label:s.name,s._meta&&(n=a.templateString(n,s._meta))));var m=a.ensureSingle(e,"text","legendtext");m.attr("text-anchor","start").call(c.font,i).text(d?M(n,h):n);var y=r.itemwidth+2*p.itemGap;f.positionText(m,y,0),d?m.call(f.makeEditable,{gd:t,text:n}).call(A,e,t,r).on("edit",(function(n){this.text(M(n,h)).call(A,e,t,r);var i=l.trace._fullInput||{},c={};if(o.hasTransform(i,"groupby")){var u=o.getTransformIndices(i,"groupby"),f=u[u.length-1],d=a.keyedContainer(i,"transforms["+f+"].styles","target","value.name");d.set(l.trace._group,n),c=d.constructUpdate()}else c.name=n;return o.call("_guiRestyle",t,c,s.index)})):A(m,e,t,r)}function M(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;for(var n=r-(e=e||"").length;n>0;n--)e+=" ";return e}function k(e,t){var r,i=t._context.doubleClickDelay,o=1,l=a.ensureSingle(e,"rect","legendtoggle",(function(e){t._context.staticPlot||e.style("cursor","pointer").attr("pointer-events","all"),e.call(u.fill,"rgba(0,0,0,0)")}));t._context.staticPlot||(l.on("mousedown",(function(){(r=(new Date).getTime())-t._legendMouseDownTime<i?o+=1:(o=1,t._legendMouseDownTime=r)})),l.on("mouseup",(function(){if(!t._dragged&&!t._editing){var r=t._fullLayout.legend;(new Date).getTime()-t._legendMouseDownTime>i&&(o=Math.max(o-1,1)),w(t,r,e,o,n.event)}})))}function A(e,t,r,n,a){n._inHover&&e.attr("data-notex",!0),f.convertToTspans(e,r,(function(){!function(e,t,r,n){var a=e.data()[0][0];if(r._inHover||!a||a.trace.showlegend){var i=e.select("g[class*=math-group]"),o=i.node();r||(r=t._fullLayout.legend);var l,s,u=r.borderwidth,d=(1===n?r.title.font:a.groupTitle?a.groupTitle.font:r.font).size*m;if(o){var h=c.bBox(o);l=h.height,s=h.width,1===n?c.setTranslate(i,u,u+.75*l):c.setTranslate(i,0,.25*l)}else{var y=e.select(1===n?".legendtitletext":".legendtext"),g=f.lineCount(y),v=y.node();if(l=d*g,s=v?c.bBox(v).width:0,1===n)"left"===r.title.side&&(s+=2*p.itemGap),f.positionText(y,u+p.titlePad,u+d);else{var x=2*p.itemGap+r.itemwidth;a.groupTitle&&(x=p.itemGap,s-=r.itemwidth),f.positionText(y,x,-d*((g-1)/2-.3))}}1===n?(r._titleWidth=s,r._titleHeight=l):(a.lineHeight=d,a.height=Math.max(l,16)+3,a.width=s)}else e.remove()}(t,r,n,a)}))}function L(e){return a.isRightAnchor(e)?"right":a.isCenterAnchor(e)?"center":"left"}function S(e){return a.isBottomAnchor(e)?"bottom":a.isMiddleAnchor(e)?"middle":"top"}t.exports=function(e,t){return t||(t=e._fullLayout.legend||{}),_(e,t)}},{"../../constants/alignment":262,"../../lib":287,"../../lib/events":280,"../../lib/svg_text_utils":310,"../../plots/plots":369,"../../registry":376,"../color":157,"../dragelement":176,"../drawing":179,"./constants":208,"./get_legend_data":211,"./handle_click":212,"./helpers":213,"./style":215,"@plotly/d3":20}],211:[function(e,t,r){"use strict";var n=e("../../registry"),a=e("./helpers");t.exports=function(e,t){var r,i,o=t._inHover,l=a.isGrouped(t),s=a.isReversed(t),c={},u=[],f=!1,d={},p=0,h=0;function m(e,r){if(""!==e&&a.isGrouped(t))-1===u.indexOf(e)?(u.push(e),f=!0,c[e]=[r]):c[e].push(r);else{var n="~~i"+p;u.push(n),c[n]=[r],p++}}for(r=0;r<e.length;r++){var y=e[r],g=y[0],v=g.trace,x=v.legendgroup;if(o||v.visible&&v.showlegend)if(n.traceIs(v,"pie-like"))for(d[x]||(d[x]={}),i=0;i<y.length;i++){var b=y[i].label;d[x][b]||(m(x,{label:b,color:y[i].color,i:y[i].i,trace:v,pts:y[i].pts}),d[x][b]=!0,h=Math.max(h,(b||"").length))}else m(x,g),h=Math.max(h,(v.name||"").length)}if(!u.length)return[];var _=!f||!l,w=[];for(r=0;r<u.length;r++){var T=c[u[r]];_?w.push(T[0]):w.push(T)}for(_&&(w=[w]),r=0;r<w.length;r++){var M=1/0;for(i=0;i<w[r].length;i++){var k=w[r][i].trace.legendrank;M>k&&(M=k)}w[r][0]._groupMinRank=M,w[r][0]._preGroupSort=r}var A=function(e,t){return e.trace.legendrank-t.trace.legendrank||e._preSort-t._preSort};for(w.forEach((function(e,t){e[0]._preGroupSort=t})),w.sort((function(e,t){return e[0]._groupMinRank-t[0]._groupMinRank||e[0]._preGroupSort-t[0]._preGroupSort})),r=0;r<w.length;r++){w[r].forEach((function(e,t){e._preSort=t})),w[r].sort(A);var L=w[r][0].trace,S=null;for(i=0;i<w[r].length;i++){var O=w[r][i].trace.legendgrouptitle;if(O&&O.text){S=O,o&&(O.font=t._groupTitleFont);break}}if(s&&w[r].reverse(),S){var D=!1;for(i=0;i<w[r].length;i++)if(n.traceIs(w[r][i].trace,"pie-like")){D=!0;break}w[r].unshift({i:-1,groupTitle:S,noClick:D,trace:{showlegend:L.showlegend,legendgroup:L.legendgroup,visible:"toggleitem"===t.groupclick||L.visible}})}for(i=0;i<w[r].length;i++)w[r][i]=[w[r][i]]}return t._lgroupsLength=w.length,t._maxNameLength=h,w}},{"../../registry":376,"./helpers":213}],212:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../registry"),i=!0;t.exports=function(e,t,r){var o=t._fullLayout;if(!t._dragged&&!t._editing){var l,s=o.legend.itemclick,c=o.legend.itemdoubleclick,u=o.legend.groupclick;if(1===r&&"toggle"===s&&"toggleothers"===c&&i&&t.data&&t._context.showTips?(n.notifier(n._(t,"Double-click on legend to isolate one trace"),"long"),i=!1):i=!1,1===r?l=s:2===r&&(l=c),l){var f="togglegroup"===u,d=o.hiddenlabels?o.hiddenlabels.slice():[],p=e.data()[0][0];if(!p.groupTitle||!p.noClick){var h,m,y,g,v,x=t._fullData,b=p.trace,_=b.legendgroup,w={},T=[],M=[],k=[];if(a.traceIs(b,"pie-like")){var A=p.label,L=d.indexOf(A);"toggle"===l?-1===L?d.push(A):d.splice(L,1):"toggleothers"===l&&(d=[],t.calcdata[0].forEach((function(e){A!==e.label&&d.push(e.label)})),t._fullLayout.hiddenlabels&&t._fullLayout.hiddenlabels.length===d.length&&-1===L&&(d=[])),a.call("_guiRelayout",t,"hiddenlabels",d)}else{var S,O=_&&_.length,D=[];if(O)for(h=0;h<x.length;h++)(S=x[h]).visible&&S.legendgroup===_&&D.push(h);if("toggle"===l){var C;switch(b.visible){case!0:C="legendonly";break;case!1:C=!1;break;case"legendonly":C=!0}if(O)if(f)for(h=0;h<x.length;h++)!1!==x[h].visible&&x[h].legendgroup===_&&B(x[h],C);else B(b,C);else B(b,C)}else if("toggleothers"===l){var E,P,R,z,I=!0;for(h=0;h<x.length;h++)if(E=x[h]===b,R=!0!==x[h].showlegend,!(E||R||(P=O&&x[h].legendgroup===_)||!0!==x[h].visible||a.traceIs(x[h],"notLegendIsolatable"))){I=!1;break}for(h=0;h<x.length;h++)if(!1!==x[h].visible&&!a.traceIs(x[h],"notLegendIsolatable"))switch(b.visible){case"legendonly":B(x[h],!0);break;case!0:z=!!I||"legendonly",E=x[h]===b,R=!0!==x[h].showlegend&&!x[h].legendgroup,P=E||O&&x[h].legendgroup===_,B(x[h],!(!P&&!R)||z)}}for(h=0;h<M.length;h++)if(y=M[h]){var N=y.constructUpdate(),F=Object.keys(N);for(m=0;m<F.length;m++)g=F[m],(w[g]=w[g]||[])[k[h]]=N[g]}for(v=Object.keys(w),h=0;h<v.length;h++)for(g=v[h],m=0;m<T.length;m++)w[g].hasOwnProperty(m)||(w[g][m]=void 0);a.call("_guiRestyle",t,w,T)}}}}function j(e,t,r){var n=T.indexOf(e),a=w[t];return a||(a=w[t]=[]),-1===T.indexOf(e)&&(T.push(e),n=T.length-1),a[n]=r,n}function B(e,t){if(!p.groupTitle||f){var r=e._fullInput;if(a.hasTransform(r,"groupby")){var i=M[r.index];if(!i){var o=a.getTransformIndices(r,"groupby"),l=o[o.length-1];i=n.keyedContainer(r,"transforms["+l+"].styles","target","value.visible"),M[r.index]=i}var s=i.get(e._group);void 0===s&&(s=!0),!1!==s&&i.set(e._group,t),k[r.index]=j(r.index,"visible",!1!==r.visible)}else{var c=!1!==r.visible&&t;j(r.index,"visible",c)}}}}},{"../../lib":287,"../../registry":376}],213:[function(e,t,r){"use strict";r.isGrouped=function(e){return-1!==(e.traceorder||"").indexOf("grouped")},r.isVertical=function(e){return"h"!==e.orientation},r.isReversed=function(e){return-1!==(e.traceorder||"").indexOf("reversed")}},{}],214:[function(e,t,r){"use strict";t.exports={moduleType:"component",name:"legend",layoutAttributes:e("./attributes"),supplyLayoutDefaults:e("./defaults"),draw:e("./draw"),style:e("./style")}},{"./attributes":207,"./defaults":209,"./draw":210,"./style":215}],215:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../../registry"),i=e("../../lib"),o=i.strTranslate,l=e("../drawing"),s=e("../color"),c=e("../colorscale/helpers").extractOpts,u=e("../../traces/scatter/subtypes"),f=e("../../traces/pie/style_one"),d=e("../../traces/pie/helpers").castOption,p=e("./constants");function h(e,t){return(t?"radial":"horizontal")+(e?"":"reversed")}function m(e){var t=e[0].trace,r=t.contours,n=u.hasLines(t),a=u.hasMarkers(t),i=t.visible&&t.fill&&"none"!==t.fill,o=!1,l=!1;if(r){var s=r.coloring;"lines"===s?o=!0:n="none"===s||"heatmap"===s||r.showlines,"constraint"===r.type?i="="!==r._operation:"fill"!==s&&"heatmap"!==s||(l=!0)}return{showMarker:a,showLine:n,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:n||o,anyFill:i||l}}function y(e,t,r){return e&&i.isArrayOrTypedArray(e)?t:e>r?r:e}t.exports=function(e,t,r){var g=t._fullLayout;r||(r=g.legend);var v="constant"===r.itemsizing,x=r.itemwidth,b=(x+2*p.itemGap)/2,_=o(b,0),w=function(e,t,r,n){var a;if(e+1)a=e;else{if(!(t&&t.width>0))return 0;a=t.width}return v?n:Math.min(a,r)};function T(e,i,o){var u=e[0].trace,f=u.marker||{},d=f.line||{},p=o?u.visible&&u.type===o:a.traceIs(u,"bar"),h=n.select(i).select("g.legendpoints").selectAll("path.legend"+o).data(p?[e]:[]);h.enter().append("path").classed("legend"+o,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",_),h.exit().remove(),h.each((function(e){var a=n.select(this),i=e[0],o=w(i.mlw,f.line,5,2);a.style("stroke-width",o+"px");var p=i.mcc;if(!r._inHover&&"mc"in i){var h=c(f),m=h.mid;void 0===m&&(m=(h.max+h.min)/2),p=l.tryColorscale(f,"")(m)}var g=p||i.mc||f.color,v=f.pattern,x=v&&l.getPatternAttr(v.shape,0,"");if(x){var b=l.getPatternAttr(v.bgcolor,0,null),_=l.getPatternAttr(v.fgcolor,0,null),T=v.fgopacity,M=y(v.size,8,10),k=y(v.solidity,.5,1),A="legend-"+u.uid;a.call(l.pattern,"legend",t,A,x,M,k,p,v.fillmode,b,_,T)}else a.call(s.fill,g);o&&s.stroke(a,i.mlc||d.color)}))}function M(e,t,r){var o=e[0],l=o.trace,s=r?l.visible&&l.type===r:a.traceIs(l,r),c=n.select(t).select("g.legendpoints").selectAll("path.legend"+r).data(s?[e]:[]);if(c.enter().append("path").classed("legend"+r,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",_),c.exit().remove(),c.size()){var u=(l.marker||{}).line,p=w(d(u.width,o.pts),u,5,2),h=i.minExtend(l,{marker:{line:{width:p}}});h.marker.line.color=u.color;var m=i.minExtend(o,{trace:h});f(c,m,h)}}e.each((function(e){var t=n.select(this),a=i.ensureSingle(t,"g","layers");a.style("opacity",e[0].trace.opacity);var l=r.valign,s=e[0].lineHeight,c=e[0].height;if("middle"!==l&&s&&c){var u={top:1,bottom:-1}[l]*(.5*(s-c+3));a.attr("transform",o(0,u))}else a.attr("transform",null);a.selectAll("g.legendfill").data([e]).enter().append("g").classed("legendfill",!0),a.selectAll("g.legendlines").data([e]).enter().append("g").classed("legendlines",!0);var f=a.selectAll("g.legendsymbols").data([e]);f.enter().append("g").classed("legendsymbols",!0),f.selectAll("g.legendpoints").data([e]).enter().append("g").classed("legendpoints",!0)})).each((function(e){var r,a=e[0].trace,o=[];if(a.visible)switch(a.type){case"histogram2d":case"heatmap":o=[["M-15,-2V4H15V-2Z"]],r=!0;break;case"choropleth":case"choroplethmapbox":o=[["M-6,-6V6H6V-6Z"]],r=!0;break;case"densitymapbox":o=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],r="radial";break;case"cone":o=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],r=!1;break;case"streamtube":o=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],r=!1;break;case"surface":o=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],r=!0;break;case"mesh3d":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],r=!1;break;case"volume":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],r=!0;break;case"isosurface":o=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],r=!1}var u=n.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(o);u.enter().append("path").classed("legend3dandfriends",!0).attr("transform",_).style("stroke-miterlimit",1),u.exit().remove(),u.each((function(e,o){var u,f=n.select(this),d=c(a),p=d.colorscale,m=d.reversescale;if(p){if(!r){var y=p.length;u=0===o?p[m?y-1:0][1]:1===o?p[m?0:y-1][1]:p[Math.floor((y-1)/2)][1]}}else{var g=a.vertexcolor||a.facecolor||a.color;u=i.isArrayOrTypedArray(g)?g[o]||g[0]:g}f.attr("d",e[0]),u?f.call(s.fill,u):f.call((function(e){if(e.size()){var n="legendfill-"+a.uid;l.gradient(e,t,n,h(m,"radial"===r),p,"fill")}}))}))})).each((function(e){var t=e[0].trace,r="waterfall"===t.type;if(e[0]._distinct&&r){var a=e[0].trace[e[0].dir].marker;return e[0].mc=a.color,e[0].mlw=a.line.width,e[0].mlc=a.line.color,T(e,this,"waterfall")}var i=[];t.visible&&r&&(i=e[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var o=n.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(i);o.enter().append("path").classed("legendwaterfall",!0).attr("transform",_).style("stroke-miterlimit",1),o.exit().remove(),o.each((function(e){var r=n.select(this),a=t[e[0]].marker,i=w(void 0,a.line,5,2);r.attr("d",e[1]).style("stroke-width",i+"px").call(s.fill,a.color),i&&r.call(s.stroke,a.line.color)}))})).each((function(e){T(e,this,"funnel")})).each((function(e){T(e,this)})).each((function(e){var r=e[0].trace,o=n.select(this).select("g.legendpoints").selectAll("path.legendbox").data(r.visible&&a.traceIs(r,"box-violin")?[e]:[]);o.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",_),o.exit().remove(),o.each((function(){var e=n.select(this);if("all"!==r.boxpoints&&"all"!==r.points||0!==s.opacity(r.fillcolor)||0!==s.opacity((r.line||{}).color)){var a=w(void 0,r.line,5,2);e.style("stroke-width",a+"px").call(s.fill,r.fillcolor),a&&s.stroke(e,r.line.color)}else{var c=i.minExtend(r,{marker:{size:v?12:i.constrain(r.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});o.call(l.pointStyle,c,t)}}))})).each((function(e){M(e,this,"funnelarea")})).each((function(e){M(e,this,"pie")})).each((function(e){var r,a,o=m(e),s=o.showFill,f=o.showLine,d=o.showGradientLine,p=o.showGradientFill,y=o.anyFill,g=o.anyLine,v=e[0],b=v.trace,_=c(b),T=_.colorscale,M=_.reversescale,k=u.hasMarkers(b)||!y?"M5,0":g?"M5,-2":"M5,-3",A=n.select(this),L=A.select(".legendfill").selectAll("path").data(s||p?[e]:[]);if(L.enter().append("path").classed("js-fill",!0),L.exit().remove(),L.attr("d",k+"h"+x+"v6h-"+x+"z").call(s?l.fillGroupStyle:function(e){if(e.size()){var r="legendfill-"+b.uid;l.gradient(e,t,r,h(M),T,"fill")}}),f||d){var S=w(void 0,b.line,10,5);a=i.minExtend(b,{line:{width:S}}),r=[i.minExtend(v,{trace:a})]}var O=A.select(".legendlines").selectAll("path").data(f||d?[r]:[]);O.enter().append("path").classed("js-line",!0),O.exit().remove(),O.attr("d",k+(d?"l"+x+",0.0001":"h"+x)).call(f?l.lineGroupStyle:function(e){if(e.size()){var r="legendline-"+b.uid;l.lineGroupStyle(e),l.gradient(e,t,r,h(M),T,"stroke")}})})).each((function(e){var r,a,o=m(e),s=o.anyFill,c=o.anyLine,f=o.showLine,d=o.showMarker,p=e[0],h=p.trace,y=!d&&!c&&!s&&u.hasText(h);function g(e,t,r,n){var a=i.nestedProperty(h,e).get(),o=i.isArrayOrTypedArray(a)&&t?t(a):a;if(v&&o&&void 0!==n&&(o=n),r){if(o<r[0])return r[0];if(o>r[1])return r[1]}return o}function x(e){return p._distinct&&p.index&&e[p.index]?e[p.index]:e[0]}if(d||y||f){var b={},w={};if(d){b.mc=g("marker.color",x),b.mx=g("marker.symbol",x),b.mo=g("marker.opacity",i.mean,[.2,1]),b.mlc=g("marker.line.color",x),b.mlw=g("marker.line.width",i.mean,[0,5],2),w.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var T=g("marker.size",i.mean,[2,16],12);b.ms=T,w.marker.size=T}f&&(w.line={width:g("line.width",x,[0,10],5)}),y&&(b.tx="Aa",b.tp=g("textposition",x),b.ts=10,b.tc=g("textfont.color",x),b.tf=g("textfont.family",x)),r=[i.minExtend(p,b)],(a=i.minExtend(h,w)).selectedpoints=null,a.texttemplate=null}var M=n.select(this).select("g.legendpoints"),k=M.selectAll("path.scatterpts").data(d?r:[]);k.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",_),k.exit().remove(),k.call(l.pointStyle,a,t),d&&(r[0].mrc=3);var A=M.selectAll("g.pointtext").data(y?r:[]);A.enter().append("g").classed("pointtext",!0).append("text").attr("transform",_),A.exit().remove(),A.selectAll("text").call(l.textPointStyle,a,t)})).each((function(e){var t=e[0].trace,r=n.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(t.visible&&"candlestick"===t.type?[e,e]:[]);r.enter().append("path").classed("legendcandle",!0).attr("d",(function(e,t){return t?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"})).attr("transform",_).style("stroke-miterlimit",1),r.exit().remove(),r.each((function(e,r){var a=n.select(this),i=t[r?"increasing":"decreasing"],o=w(void 0,i.line,5,2);a.style("stroke-width",o+"px").call(s.fill,i.fillcolor),o&&s.stroke(a,i.line.color)}))})).each((function(e){var t=e[0].trace,r=n.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(t.visible&&"ohlc"===t.type?[e,e]:[]);r.enter().append("path").classed("legendohlc",!0).attr("d",(function(e,t){return t?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"})).attr("transform",_).style("stroke-miterlimit",1),r.exit().remove(),r.each((function(e,r){var a=n.select(this),i=t[r?"increasing":"decreasing"],o=w(void 0,i.line,5,2);a.style("fill","none").call(l.dashLine,i.line.dash,o),o&&s.stroke(a,i.line.color)}))}))}},{"../../lib":287,"../../registry":376,"../../traces/pie/helpers":489,"../../traces/pie/style_one":495,"../../traces/scatter/subtypes":522,"../color":157,"../colorscale/helpers":168,"../drawing":179,"./constants":208,"@plotly/d3":20}],216:[function(e,t,r){"use strict";e("./constants"),t.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},{"./constants":218}],217:[function(e,t,r){"use strict";var n=e("../../registry"),a=e("../../plots/plots"),i=e("../../plots/cartesian/axis_ids"),o=e("../../fonts/ploticon"),l=e("../shapes/draw").eraseActiveShape,s=e("../../lib"),c=s._,u=t.exports={};function f(e,t){var r,a,o=t.currentTarget,l=o.getAttribute("data-attr"),s=o.getAttribute("data-val")||!0,c=e._fullLayout,u={},f=i.list(e,null,!0),d=c._cartesianSpikesEnabled;if("zoom"===l){var p,h="in"===s?.5:2,m=(1+h)/2,y=(1-h)/2;for(a=0;a<f.length;a++)if(!(r=f[a]).fixedrange)if(p=r._name,"auto"===s)u[p+".autorange"]=!0;else if("reset"===s){if(void 0===r._rangeInitial)u[p+".autorange"]=!0;else{var g=r._rangeInitial.slice();u[p+".range[0]"]=g[0],u[p+".range[1]"]=g[1]}void 0!==r._showSpikeInitial&&(u[p+".showspikes"]=r._showSpikeInitial,"on"!==d||r._showSpikeInitial||(d="off"))}else{var v=[r.r2l(r.range[0]),r.r2l(r.range[1])],x=[m*v[0]+y*v[1],m*v[1]+y*v[0]];u[p+".range[0]"]=r.l2r(x[0]),u[p+".range[1]"]=r.l2r(x[1])}}else"hovermode"!==l||"x"!==s&&"y"!==s||(s=c._isHoriz?"y":"x",o.setAttribute("data-val",s)),u[l]=s;c._cartesianSpikesEnabled=d,n.call("_guiRelayout",e,u)}function d(e,t){for(var r=t.currentTarget,a=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,o=e._fullLayout._subplots.gl3d||[],l={},s=a.split("."),c=0;c<o.length;c++)l[o[c]+"."+s[1]]=i;var u="pan"===i?i:"zoom";l.dragmode=u,n.call("_guiRelayout",e,l)}function p(e,t){for(var r=t.currentTarget.getAttribute("data-attr"),a="resetLastSave"===r,i="resetDefault"===r,o=e._fullLayout,l=o._subplots.gl3d||[],s={},c=0;c<l.length;c++){var u,f=l[c],d=f+".camera",p=f+".aspectratio",h=f+".aspectmode",m=o[f]._scene;a?(s[d+".up"]=m.viewInitial.up,s[d+".eye"]=m.viewInitial.eye,s[d+".center"]=m.viewInitial.center,u=!0):i&&(s[d+".up"]=null,s[d+".eye"]=null,s[d+".center"]=null,u=!0),u&&(s[p+".x"]=m.viewInitial.aspectratio.x,s[p+".y"]=m.viewInitial.aspectratio.y,s[p+".z"]=m.viewInitial.aspectratio.z,s[h]=m.viewInitial.aspectmode)}n.call("_guiRelayout",e,s)}function h(e,t){var r=t.currentTarget,n=r._previousVal,a=e._fullLayout,i=a._subplots.gl3d||[],o=["xaxis","yaxis","zaxis"],l={},s={};if(n)s=n,r._previousVal=null;else{for(var c=0;c<i.length;c++){var u=i[c],f=a[u],d=u+".hovermode";l[d]=f.hovermode,s[d]=!1;for(var p=0;p<3;p++){var h=o[p],m=u+"."+h+".showspikes";s[m]=!1,l[m]=f[h].showspikes}}r._previousVal=l}return s}function m(e,t){for(var r=t.currentTarget,a=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,o=e._fullLayout,l=o._subplots.geo||[],s=0;s<l.length;s++){var c=l[s],u=o[c];if("zoom"===a){var f=u.projection.scale,d="in"===i?2*f:.5*f;n.call("_guiRelayout",e,c+".projection.scale",d)}}"reset"===a&&x(e,"geo")}function y(e){var t=e._fullLayout;return!t.hovermode&&(t._has("cartesian")?t._isHoriz?"y":"x":"closest")}function g(e){var t=y(e);n.call("_guiRelayout",e,"hovermode",t)}function v(e,t){for(var r=t.currentTarget.getAttribute("data-val"),a=e._fullLayout,i=a._subplots.mapbox||[],o={},l=0;l<i.length;l++){var s=i[l],c=a[s].zoom,u="in"===r?1.05*c:c/1.05;o[s+".zoom"]=u}n.call("_guiRelayout",e,o)}function x(e,t){for(var r=e._fullLayout,a=r._subplots[t]||[],i={},o=0;o<a.length;o++)for(var l=a[o],s=r[l]._subplot.viewInitial,c=Object.keys(s),u=0;u<c.length;u++){var f=c[u];i[l+"."+f]=s[f]}n.call("_guiRelayout",e,i)}u.toImage={name:"toImage",title:function(e){var t=(e._context.toImageButtonOptions||{}).format||"png";return c(e,"png"===t?"Download plot as a png":"Download plot")},icon:o.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};s.notifier(c(e,"Taking snapshot - this may take a few seconds"),"long"),"svg"!==r.format&&s.isIE()&&(s.notifier(c(e,"IE only supports svg. Changing format to svg."),"long"),r.format="svg"),["filename","width","height","scale"].forEach((function(e){e in t&&(r[e]=t[e])})),n.call("downloadImage",e,r).then((function(t){s.notifier(c(e,"Snapshot succeeded")+" - "+t,"long")})).catch((function(){s.notifier(c(e,"Sorry, there was a problem downloading your snapshot!"),"long")}))}},u.sendDataToCloud={name:"sendDataToCloud",title:function(e){return c(e,"Edit in Chart Studio")},icon:o.disk,click:function(e){a.sendDataToCloud(e)}},u.editInChartStudio={name:"editInChartStudio",title:function(e){return c(e,"Edit in Chart Studio")},icon:o.pencil,click:function(e){a.sendDataToCloud(e)}},u.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return c(e,"Zoom")},attr:"dragmode",val:"zoom",icon:o.zoombox,click:f},u.pan2d={name:"pan2d",_cat:"pan",title:function(e){return c(e,"Pan")},attr:"dragmode",val:"pan",icon:o.pan,click:f},u.select2d={name:"select2d",_cat:"select",title:function(e){return c(e,"Box Select")},attr:"dragmode",val:"select",icon:o.selectbox,click:f},u.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return c(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:o.lasso,click:f},u.drawclosedpath={name:"drawclosedpath",title:function(e){return c(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:o.drawclosedpath,click:f},u.drawopenpath={name:"drawopenpath",title:function(e){return c(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:o.drawopenpath,click:f},u.drawline={name:"drawline",title:function(e){return c(e,"Draw line")},attr:"dragmode",val:"drawline",icon:o.drawline,click:f},u.drawrect={name:"drawrect",title:function(e){return c(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:o.drawrect,click:f},u.drawcircle={name:"drawcircle",title:function(e){return c(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:o.drawcircle,click:f},u.eraseshape={name:"eraseshape",title:function(e){return c(e,"Erase active shape")},icon:o.eraseshape,click:l},u.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return c(e,"Zoom in")},attr:"zoom",val:"in",icon:o.zoom_plus,click:f},u.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return c(e,"Zoom out")},attr:"zoom",val:"out",icon:o.zoom_minus,click:f},u.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return c(e,"Autoscale")},attr:"zoom",val:"auto",icon:o.autoscale,click:f},u.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return c(e,"Reset axes")},attr:"zoom",val:"reset",icon:o.home,click:f},u.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return c(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:o.tooltip_basic,gravity:"ne",click:f},u.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return c(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:o.tooltip_compare,gravity:"ne",click:f},u.zoom3d={name:"zoom3d",_cat:"zoom",title:function(e){return c(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:o.zoombox,click:d},u.pan3d={name:"pan3d",_cat:"pan",title:function(e){return c(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:o.pan,click:d},u.orbitRotation={name:"orbitRotation",title:function(e){return c(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:o["3d_rotate"],click:d},u.tableRotation={name:"tableRotation",title:function(e){return c(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:o["z-axis"],click:d},u.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(e){return c(e,"Reset camera to default")},attr:"resetDefault",icon:o.home,click:p},u.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(e){return c(e,"Reset camera to last save")},attr:"resetLastSave",icon:o.movie,click:p},u.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:function(e,t){var r=h(e,t);n.call("_guiRelayout",e,r)}},u.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(e){return c(e,"Zoom in")},attr:"zoom",val:"in",icon:o.zoom_plus,click:m},u.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(e){return c(e,"Zoom out")},attr:"zoom",val:"out",icon:o.zoom_minus,click:m},u.resetGeo={name:"resetGeo",_cat:"reset",title:function(e){return c(e,"Reset")},attr:"reset",val:null,icon:o.autoscale,click:m},u.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:g},u.hoverClosestGl2d={name:"hoverClosestGl2d",_cat:"hoverclosest",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:g},u.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:o.tooltip_basic,gravity:"ne",click:g},u.resetViewSankey={name:"resetSankeyGroup",title:function(e){return c(e,"Reset view")},icon:o.home,click:function(e){for(var t={"node.groups":[],"node.x":[],"node.y":[]},r=0;r<e._fullData.length;r++){var a=e._fullData[r]._viewInitial;t["node.groups"].push(a.node.groups.slice()),t["node.x"].push(a.node.x.slice()),t["node.y"].push(a.node.y.slice())}n.call("restyle",e,t)}},u.toggleHover={name:"toggleHover",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:function(e,t){var r=h(e,t);r.hovermode=y(e),n.call("_guiRelayout",e,r)}},u.resetViews={name:"resetViews",title:function(e){return c(e,"Reset views")},icon:o.home,click:function(e,t){var r=t.currentTarget;r.setAttribute("data-attr","zoom"),r.setAttribute("data-val","reset"),f(e,t),r.setAttribute("data-attr","resetLastSave"),p(e,t),x(e,"geo"),x(e,"mapbox")}},u.toggleSpikelines={name:"toggleSpikelines",title:function(e){return c(e,"Toggle Spike Lines")},icon:o.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var t=e._fullLayout,r=t._cartesianSpikesEnabled;t._cartesianSpikesEnabled="on"===r?"off":"on",n.call("_guiRelayout",e,function(e){for(var t="on"===e._fullLayout._cartesianSpikesEnabled,r=i.list(e,null,!0),n={},a=0;a<r.length;a++){var o=r[a];n[o._name+".showspikes"]=!!t||o._showSpikeInitial}return n}(e))}},u.resetViewMapbox={name:"resetViewMapbox",_cat:"resetView",title:function(e){return c(e,"Reset view")},attr:"reset",icon:o.home,click:function(e){x(e,"mapbox")}},u.zoomInMapbox={name:"zoomInMapbox",_cat:"zoomin",title:function(e){return c(e,"Zoom in")},attr:"zoom",val:"in",icon:o.zoom_plus,click:v},u.zoomOutMapbox={name:"zoomOutMapbox",_cat:"zoomout",title:function(e){return c(e,"Zoom out")},attr:"zoom",val:"out",icon:o.zoom_minus,click:v}},{"../../fonts/ploticon":270,"../../lib":287,"../../plots/cartesian/axis_ids":338,"../../plots/plots":369,"../../registry":376,"../shapes/draw":241}],218:[function(e,t,r){"use strict";var n=e("./buttons"),a=Object.keys(n),i=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],o=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(i),l=[];a.forEach((function(e){!function(e){if(-1===o.indexOf(e._cat||e.name)){var t=e.name,r=(e._cat||e.name).toLowerCase();-1===l.indexOf(t)&&l.push(t),-1===l.indexOf(r)&&l.push(r)}}(n[e])})),l.sort(),t.exports={DRAW_MODES:i,backButtons:o,foreButtons:l}},{"./buttons":217}],219:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../color"),i=e("../../plot_api/plot_template"),o=e("./attributes");t.exports=function(e,t){var r=e.modebar||{},l=i.newContainer(t,"modebar");function s(e,t){return n.coerce(r,l,o,e,t)}s("orientation"),s("bgcolor",a.addOpacity(t.paper_bgcolor,.5));var c=a.contrast(a.rgb(t.modebar.bgcolor));s("color",a.addOpacity(c,.3)),s("activecolor",a.addOpacity(c,.7)),s("uirevision",t.uirevision),s("add"),s("remove")}},{"../../lib":287,"../../plot_api/plot_template":323,"../color":157,"./attributes":216}],220:[function(e,t,r){"use strict";t.exports={moduleType:"component",name:"modebar",layoutAttributes:e("./attributes"),supplyLayoutDefaults:e("./defaults"),manage:e("./manage")}},{"./attributes":216,"./defaults":219,"./manage":221}],221:[function(e,t,r){"use strict";var n=e("../../plots/cartesian/axis_ids"),a=e("../../traces/scatter/subtypes"),i=e("../../registry"),o=e("../fx/helpers").isUnifiedHover,l=e("./modebar"),s=e("./buttons"),c=e("./constants").DRAW_MODES;function u(e){var t=e._fullLayout,r=e._fullData,l=e._context;function u(e,t){if("string"==typeof t){if(t.toLowerCase()===e.toLowerCase())return!0}else{var r=t.name,n=t._cat||t.name;if(r===e||n===e.toLowerCase())return!0}return!1}var f=t.modebar.add;"string"==typeof f&&(f=[f]);var d=t.modebar.remove;"string"==typeof d&&(d=[d]);var p=l.modeBarButtonsToAdd.concat(f.filter((function(e){for(var t=0;t<l.modeBarButtonsToRemove.length;t++)if(u(e,l.modeBarButtonsToRemove[t]))return!1;return!0}))),h=l.modeBarButtonsToRemove.concat(d.filter((function(e){for(var t=0;t<l.modeBarButtonsToAdd.length;t++)if(u(e,l.modeBarButtonsToAdd[t]))return!1;return!0}))),m=t._has("cartesian"),y=t._has("gl3d"),g=t._has("geo"),v=t._has("pie"),x=t._has("funnelarea"),b=t._has("gl2d"),_=t._has("ternary"),w=t._has("mapbox"),T=t._has("polar"),M=t._has("sankey"),k=function(e){for(var t=n.list({_fullLayout:e},null,!0),r=0;r<t.length;r++)if(!t[r].fixedrange)return!1;return!0}(t),A=o(t.hovermode),L=[];function S(e){if(e.length){for(var t=[],r=0;r<e.length;r++){for(var n=e[r],a=s[n],i=a.name.toLowerCase(),o=(a._cat||a.name).toLowerCase(),l=!1,c=0;c<h.length;c++){var u=h[c].toLowerCase();if(u===i||u===o){l=!0;break}}l||t.push(s[n])}L.push(t)}}var O=["toImage"];l.showEditInChartStudio?O.push("editInChartStudio"):l.showSendToCloud&&O.push("sendDataToCloud"),S(O);var D=[],C=[],E=[],P=[];(m||b||v||x||_)+g+y+w+T>1?(C=["toggleHover"],E=["resetViews"]):g?(D=["zoomInGeo","zoomOutGeo"],C=["hoverClosestGeo"],E=["resetGeo"]):y?(C=["hoverClosest3d"],E=["resetCameraDefault3d","resetCameraLastSave3d"]):w?(D=["zoomInMapbox","zoomOutMapbox"],C=["toggleHover"],E=["resetViewMapbox"]):b?C=["hoverClosestGl2d"]:v?C=["hoverClosestPie"]:M?(C=["hoverClosestCartesian","hoverCompareCartesian"],E=["resetViewSankey"]):C=["toggleHover"],m&&(C=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(e){for(var t=0;t<e.length;t++)if(!i.traceIs(e[t],"noHover"))return!1;return!0}(r)||A)&&(C=[]),!m&&!b||k||(D=["zoomIn2d","zoomOut2d","autoScale2d"],"resetViews"!==E[0]&&(E=["resetScale2d"])),y?P=["zoom3d","pan3d","orbitRotation","tableRotation"]:(m||b)&&!k||_?P=["zoom2d","pan2d"]:w||g?P=["pan2d"]:T&&(P=["zoom2d"]),function(e){for(var t=!1,r=0;r<e.length&&!t;r++){var n=e[r];n._module&&n._module.selectPoints&&(i.traceIs(n,"scatter-like")?(a.hasMarkers(n)||a.hasText(n))&&(t=!0):i.traceIs(n,"box-violin")&&"all"!==n.boxpoints&&"all"!==n.points||(t=!0))}return t}(r)&&P.push("select2d","lasso2d");var R=[],z=function(e){-1===R.indexOf(e)&&-1!==C.indexOf(e)&&R.push(e)};if(Array.isArray(p)){for(var I=[],N=0;N<p.length;N++){var F=p[N];"string"==typeof F?(F=F.toLowerCase(),-1!==c.indexOf(F)?(t._has("mapbox")||t._has("cartesian"))&&P.push(F):"togglespikelines"===F?z("toggleSpikelines"):"togglehover"===F?z("toggleHover"):"hovercompare"===F?z("hoverCompareCartesian"):"hoverclosest"===F?(z("hoverClosestCartesian"),z("hoverClosestGeo"),z("hoverClosest3d"),z("hoverClosestGl2d"),z("hoverClosestPie")):"v1hovermode"===F&&(z("toggleHover"),z("hoverClosestCartesian"),z("hoverCompareCartesian"),z("hoverClosestGeo"),z("hoverClosest3d"),z("hoverClosestGl2d"),z("hoverClosestPie"))):I.push(F)}p=I}return S(P),S(D.concat(E)),S(R),function(e,t){if(t.length)if(Array.isArray(t[0]))for(var r=0;r<t.length;r++)e.push(t[r]);else e.push(t);return e}(L,p)}t.exports=function(e){var t=e._fullLayout,r=e._context,n=t._modeBar;if(r.displayModeBar||r.watermark){if(!Array.isArray(r.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(r.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var a,i=r.modeBarButtons;a=Array.isArray(i)&&i.length?function(e){for(var t=0;t<e.length;t++)for(var r=e[t],n=0;n<r.length;n++){var a=r[n];if("string"==typeof a){if(void 0===s[a])throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "));e[t][n]=s[a]}}return e}(i):!r.displayModeBar&&r.watermark?[]:u(e),n?n.update(e,a):t._modeBar=l(e,a)}else n&&(n.destroy(),delete t._modeBar)}},{"../../plots/cartesian/axis_ids":338,"../../registry":376,"../../traces/scatter/subtypes":522,"../fx/helpers":193,"./buttons":217,"./constants":218,"./modebar":222}],222:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("fast-isnumeric"),i=e("../../lib"),o=e("../../fonts/ploticon"),l=new DOMParser;function s(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var c=s.prototype;c.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,a="modebar-"+n._uid;this.element.setAttribute("id",a),this._uid=a,this.element.className="modebar","hover"===r.displayModeBar&&(this.element.className+=" modebar--hover ease-bg"),"v"===n.modebar.orientation&&(this.element.className+=" vertical",t=t.reverse());var o=n.modebar,l="hover"===r.displayModeBar?".js-plotly-plot .plotly:hover ":"";i.deleteRelatedStyleRule(a),i.addRelatedStyleRule(a,l+"#"+a+" .modebar-group","background-color: "+o.bgcolor),i.addRelatedStyleRule(a,"#"+a+" .modebar-btn .icon path","fill: "+o.color),i.addRelatedStyleRule(a,"#"+a+" .modebar-btn:hover .icon path","fill: "+o.activecolor),i.addRelatedStyleRule(a,"#"+a+" .modebar-btn.active .icon path","fill: "+o.activecolor);var s=!this.hasButtons(t),c=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(s||c||u)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var f=this.getLogo();r.watermark&&(f.className=f.className+" watermark"),"v"===n.modebar.orientation?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton()},c.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach((function(e){var r=t.createGroup();e.forEach((function(e){var n=e.name;if(!n)throw new Error("must provide button 'name' in button config");if(-1!==t.buttonsNames.indexOf(n))throw new Error("button name '"+n+"' is taken");t.buttonsNames.push(n);var a=t.createButton(e);t.buttonElements.push(a),r.appendChild(a)})),t.element.appendChild(r)}))},c.createGroup=function(){var e=document.createElement("div");return e.className="modebar-group",e},c.createButton=function(e){var t=this,r=document.createElement("a");r.setAttribute("rel","tooltip"),r.className="modebar-btn";var a=e.title;void 0===a?a=e.name:"function"==typeof a&&(a=a(this.graphInfo)),(a||0===a)&&r.setAttribute("data-title",a),void 0!==e.attr&&r.setAttribute("data-attr",e.attr);var i=e.val;if(void 0!==i&&("function"==typeof i&&(i=i(this.graphInfo)),r.setAttribute("data-val",i)),"function"!=typeof e.click)throw new Error("must provide button 'click' function in button config");r.addEventListener("click",(function(r){e.click(t.graphInfo,r),t.updateActiveButton(r.currentTarget)})),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&n.select(r).classed("active",!0);var l=e.icon;return"function"==typeof l?r.appendChild(l()):r.appendChild(this.createIcon(l||o.question)),r.setAttribute("data-gravity",e.gravity||"n"),r},c.createIcon=function(e){var t,r=a(e.height)?Number(e.height):e.ascent-e.descent,n="http://www.w3.org/2000/svg";if(e.path){(t=document.createElementNS(n,"svg")).setAttribute("viewBox",[0,0,e.width,r].join(" ")),t.setAttribute("class","icon");var i=document.createElementNS(n,"path");i.setAttribute("d",e.path),e.transform?i.setAttribute("transform",e.transform):void 0!==e.ascent&&i.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),t.appendChild(i)}return e.svg&&(t=l.parseFromString(e.svg,"application/xml").childNodes[0]),t.setAttribute("height","1em"),t.setAttribute("width","1em"),t},c.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=void 0!==e?e.getAttribute("data-attr"):null;this.buttonElements.forEach((function(e){var a=e.getAttribute("data-val")||!0,o=e.getAttribute("data-attr"),l="true"===e.getAttribute("data-toggle"),s=n.select(e);if(l)o===r&&s.classed("active",!s.classed("active"));else{var c=null===o?o:i.nestedProperty(t,o).get();s.classed("active",c===a)}}))},c.hasButtons=function(e){var t=this.buttons;if(!t)return!1;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r){if(e[r].length!==t[r].length)return!1;for(var n=0;n<e[r].length;n++)if(e[r][n].name!==t[r][n].name)return!1}return!0},c.getLogo=function(){var e=this.createGroup(),t=document.createElement("a");return t.href="https://plotly.com/",t.target="_blank",t.setAttribute("data-title",i._(this.graphInfo,"Produced with Plotly")),t.className="modebar-btn plotlyjsicon modebar-btn--logo",t.appendChild(this.createIcon(o.newplotlylogo)),e.appendChild(t),e},c.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},c.destroy=function(){i.removeElement(this.container.querySelector(".modebar")),i.deleteRelatedStyleRule(this._uid)},t.exports=function(e,t){var r=e._fullLayout,a=new s({graphInfo:e,container:r._modebardiv.node(),buttons:t});return r._privateplot&&n.select(a.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),a}},{"../../fonts/ploticon":270,"../../lib":287,"@plotly/d3":20,"fast-isnumeric":33}],223:[function(e,t,r){"use strict";var n=e("../../plots/font_attributes"),a=e("../color/attributes"),i=(0,e("../../plot_api/plot_template").templatedArray)("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});t.exports={visible:{valType:"boolean",editType:"plot"},buttons:i,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:n({editType:"plot"}),bgcolor:{valType:"color",dflt:a.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:a.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}},{"../../plot_api/plot_template":323,"../../plots/font_attributes":363,"../color/attributes":156}],224:[function(e,t,r){"use strict";t.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},{}],225:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../color"),i=e("../../plot_api/plot_template"),o=e("../../plots/array_container_defaults"),l=e("./attributes"),s=e("./constants");function c(e,t,r,a){var i=a.calendar;function o(r,a){return n.coerce(e,t,l.buttons,r,a)}if(o("visible")){var s=o("step");"all"!==s&&(!i||"gregorian"===i||"month"!==s&&"year"!==s?o("stepmode"):t.stepmode="backward",o("count")),o("label")}}t.exports=function(e,t,r,u,f){var d=e.rangeselector||{},p=i.newContainer(t,"rangeselector");function h(e,t){return n.coerce(d,p,l,e,t)}if(h("visible",o(d,p,{name:"buttons",handleItemDefaults:c,calendar:f}).length>0)){var m=function(e,t,r){for(var n=r.filter((function(r){return t[r].anchor===e._id})),a=0,i=0;i<n.length;i++){var o=t[n[i]].domain;o&&(a=Math.max(o[1],a))}return[e.domain[0],a+s.yPad]}(t,r,u);h("x",m[0]),h("y",m[1]),n.noneOrAll(e,t,["x","y"]),h("xanchor"),h("yanchor"),n.coerceFont(h,"font",r.font);var y=h("bgcolor");h("activecolor",a.contrast(y,s.lightAmount,s.darkAmount)),h("bordercolor"),h("borderwidth")}}},{"../../lib":287,"../../plot_api/plot_template":323,"../../plots/array_container_defaults":329,"../color":157,"./attributes":223,"./constants":224}],226:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../../registry"),i=e("../../plots/plots"),o=e("../color"),l=e("../drawing"),s=e("../../lib"),c=s.strTranslate,u=e("../../lib/svg_text_utils"),f=e("../../plots/cartesian/axis_ids"),d=e("../../constants/alignment"),p=d.LINE_SPACING,h=d.FROM_TL,m=d.FROM_BR,y=e("./constants"),g=e("./get_update_object");function v(e){return e._id}function x(e,t,r){var n=s.ensureSingle(e,"rect","selector-rect",(function(e){e.attr("shape-rendering","crispEdges")}));n.attr({rx:y.rx,ry:y.ry}),n.call(o.stroke,t.bordercolor).call(o.fill,function(e,t){return t._isActive||t._isHovered?e.activecolor:e.bgcolor}(t,r)).style("stroke-width",t.borderwidth+"px")}function b(e,t,r,n){var a,i;s.ensureSingle(e,"text","selector-text",(function(e){e.attr("text-anchor","middle")})).call(l.font,t.font).text((a=r,i=n._fullLayout._meta,a.label?i?s.templateString(a.label,i):a.label:"all"===a.step?"all":a.count+a.step.charAt(0))).call((function(e){u.convertToTspans(e,n)}))}t.exports=function(e){var t=e._fullLayout._infolayer.selectAll(".rangeselector").data(function(e){for(var t=f.list(e,"x",!0),r=[],n=0;n<t.length;n++){var a=t[n];a.rangeselector&&a.rangeselector.visible&&r.push(a)}return r}(e),v);t.enter().append("g").classed("rangeselector",!0),t.exit().remove(),t.style({cursor:"pointer","pointer-events":"all"}),t.each((function(t){var r=n.select(this),o=t,f=o.rangeselector,d=r.selectAll("g.button").data(s.filterVisible(f.buttons));d.enter().append("g").classed("button",!0),d.exit().remove(),d.each((function(t){var r=n.select(this),i=g(o,t);t._isActive=function(e,t,r){if("all"===t.step)return!0===e.autorange;var n=Object.keys(r);return e.range[0]===r[n[0]]&&e.range[1]===r[n[1]]}(o,t,i),r.call(x,f,t),r.call(b,f,t,e),r.on("click",(function(){e._dragged||a.call("_guiRelayout",e,i)})),r.on("mouseover",(function(){t._isHovered=!0,r.call(x,f,t)})),r.on("mouseout",(function(){t._isHovered=!1,r.call(x,f,t)}))})),function(e,t,r,a,o){var f=0,d=0,g=r.borderwidth;t.each((function(){var e=n.select(this).select(".selector-text"),t=r.font.size*p,a=Math.max(t*u.lineCount(e),16)+3;d=Math.max(d,a)})),t.each((function(){var e=n.select(this),t=e.select(".selector-rect"),a=e.select(".selector-text"),i=a.node()&&l.bBox(a.node()).width,o=r.font.size*p,s=u.lineCount(a),h=Math.max(i+10,y.minButtonWidth);e.attr("transform",c(g+f,g)),t.attr({x:0,y:0,width:h,height:d}),u.positionText(a,h/2,d/2-(s-1)*o/2+3),f+=h+5}));var v=e._fullLayout._size,x=v.l+v.w*r.x,b=v.t+v.h*(1-r.y),_="left";s.isRightAnchor(r)&&(x-=f,_="right"),s.isCenterAnchor(r)&&(x-=f/2,_="center");var w="top";s.isBottomAnchor(r)&&(b-=d,w="bottom"),s.isMiddleAnchor(r)&&(b-=d/2,w="middle"),f=Math.ceil(f),d=Math.ceil(d),x=Math.round(x),b=Math.round(b),i.autoMargin(e,a+"-range-selector",{x:r.x,y:r.y,l:f*h[_],r:f*m[_],b:d*m[w],t:d*h[w]}),o.attr("transform",c(x,b))}(e,d,f,o._name,r)}))}},{"../../constants/alignment":262,"../../lib":287,"../../lib/svg_text_utils":310,"../../plots/cartesian/axis_ids":338,"../../plots/plots":369,"../../registry":376,"../color":157,"../drawing":179,"./constants":224,"./get_update_object":227,"@plotly/d3":20}],227:[function(e,t,r){"use strict";var n=e("d3-time"),a=e("../../lib").titleCase;t.exports=function(e,t){var r=e._name,i={};if("all"===t.step)i[r+".autorange"]=!0;else{var o=function(e,t){var r,i=e.range,o=new Date(e.r2l(i[1])),l=t.step,s=n["utc"+a(l)],c=t.count;switch(t.stepmode){case"backward":r=e.l2r(+s.offset(o,-c));break;case"todate":var u=s.offset(o,-c);r=e.l2r(+s.ceil(u))}return[r,i[1]]}(e,t);i[r+".range[0]"]=o[0],i[r+".range[1]"]=o[1]}return i}},{"../../lib":287,"d3-time":32}],228:[function(e,t,r){"use strict";t.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:e("./attributes")}}},layoutAttributes:e("./attributes"),handleDefaults:e("./defaults"),draw:e("./draw")}},{"./attributes":223,"./defaults":225,"./draw":226}],229:[function(e,t,r){"use strict";var n=e("../color/attributes");t.exports={bgcolor:{valType:"color",dflt:n.background,editType:"plot"},bordercolor:{valType:"color",dflt:n.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}},{"../color/attributes":156}],230:[function(e,t,r){"use strict";var n=e("../../plots/cartesian/axis_ids").list,a=e("../../plots/cartesian/autorange").getAutoRange,i=e("./constants");t.exports=function(e){for(var t=n(e,"x",!0),r=0;r<t.length;r++){var o=t[r],l=o[i.name];l&&l.visible&&l.autorange&&(l._input.autorange=!0,l._input.range=l.range=a(e,o))}}},{"../../plots/cartesian/autorange":333,"../../plots/cartesian/axis_ids":338,"./constants":231}],231:[function(e,t,r){"use strict";t.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},{}],232:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../plot_api/plot_template"),i=e("../../plots/cartesian/axis_ids"),o=e("./attributes"),l=e("./oppaxis_attributes");t.exports=function(e,t,r){var s=e[r],c=t[r];if(s.rangeslider||t._requestRangeslider[c._id]){n.isPlainObject(s.rangeslider)||(s.rangeslider={});var u,f,d=s.rangeslider,p=a.newContainer(c,"rangeslider");if(_("visible")){_("bgcolor",t.plot_bgcolor),_("bordercolor"),_("borderwidth"),_("thickness"),_("autorange",!c.isValidRange(d.range)),_("range");var h=t._subplots;if(h)for(var m=h.cartesian.filter((function(e){return e.substr(0,e.indexOf("y"))===i.name2id(r)})).map((function(e){return e.substr(e.indexOf("y"),e.length)})),y=n.simpleMap(m,i.id2name),g=0;g<y.length;g++){var v=y[g];u=d[v]||{},f=a.newContainer(p,v,"yaxis");var x,b=t[v];u.range&&b.isValidRange(u.range)&&(x="fixed"),"match"!==w("rangemode",x)&&w("range",b.range.slice())}p._input=d}}function _(e,t){return n.coerce(d,p,o,e,t)}function w(e,t){return n.coerce(u,f,l,e,t)}}},{"../../lib":287,"../../plot_api/plot_template":323,"../../plots/cartesian/axis_ids":338,"./attributes":229,"./oppaxis_attributes":236}],233:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../../registry"),i=e("../../plots/plots"),o=e("../../lib"),l=o.strTranslate,s=e("../drawing"),c=e("../color"),u=e("../titles"),f=e("../../plots/cartesian"),d=e("../../plots/cartesian/axis_ids"),p=e("../dragelement"),h=e("../../lib/setcursor"),m=e("./constants");function y(e,t,r,i){if(!t._context.staticPlot){var l=e.select("rect."+m.slideBoxClassName).node(),s=e.select("rect."+m.grabAreaMinClassName).node(),c=e.select("rect."+m.grabAreaMaxClassName).node();e.on("mousedown",u),e.on("touchstart",u)}function u(){var u=n.event,f=u.target,d=u.clientX||u.touches[0].clientX,m=d-e.node().getBoundingClientRect().left,y=i.d2p(r._rl[0]),g=i.d2p(r._rl[1]),v=p.coverSlip();function x(e){var u,p,x,b=+(e.clientX||e.touches[0].clientX)-d;switch(f){case l:x="ew-resize",u=y+b,p=g+b;break;case s:x="col-resize",u=y+b,p=g;break;case c:x="col-resize",u=y,p=g+b;break;default:x="ew-resize",u=m,p=m+b}if(p<u){var _=p;p=u,u=_}i._pixelMin=u,i._pixelMax=p,h(n.select(v),x),function(e,t,r,n){function i(e){return r.l2r(o.constrain(e,n._rl[0],n._rl[1]))}var l=i(n.p2d(n._pixelMin)),s=i(n.p2d(n._pixelMax));window.requestAnimationFrame((function(){a.call("_guiRelayout",t,r._name+".range",[l,s])}))}(0,t,r,i)}function b(){v.removeEventListener("mousemove",x),v.removeEventListener("mouseup",b),this.removeEventListener("touchmove",x),this.removeEventListener("touchend",b),o.removeElement(v)}this.addEventListener("touchmove",x),this.addEventListener("touchend",b),v.addEventListener("mousemove",x),v.addEventListener("mouseup",b)}}function g(e,t,r,n){var a=o.ensureSingle(e,"rect",m.bgClassName,(function(e){e.attr({x:0,y:0,"shape-rendering":"crispEdges"})})),i=n.borderwidth%2==0?n.borderwidth:n.borderwidth-1,c=-n._offsetShift,u=s.crispRound(t,n.borderwidth);a.attr({width:n._width+i,height:n._height+i,transform:l(c,c),fill:n.bgcolor,stroke:n.bordercolor,"stroke-width":u})}function v(e,t,r,n){var a=t._fullLayout;o.ensureSingleById(a._topdefs,"clipPath",n._clipId,(function(e){e.append("rect").attr({x:0,y:0})})).select("rect").attr({width:n._width,height:n._height})}function x(e,t,r,a){var l,c=t.calcdata,u=e.selectAll("g."+m.rangePlotClassName).data(r._subplotsWith,o.identity);u.enter().append("g").attr("class",(function(e){return m.rangePlotClassName+" "+e})).call(s.setClipUrl,a._clipId,t),u.order(),u.exit().remove(),u.each((function(e,o){var s=n.select(this),u=0===o,p=d.getFromId(t,e,"y"),h=p._name,m=a[h],y={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:a.range.slice(),calendar:r.calendar},width:a._width,height:a._height,margin:{t:0,b:0,l:0,r:0}},_context:t._context};r.rangebreaks&&(y.layout.xaxis.rangebreaks=r.rangebreaks),y.layout[h]={type:p.type,domain:[0,1],range:"match"!==m.rangemode?m.range.slice():p.range.slice(),calendar:p.calendar},p.rangebreaks&&(y.layout[h].rangebreaks=p.rangebreaks),i.supplyDefaults(y);var g=y._fullLayout.xaxis,v=y._fullLayout[h];g.clearCalc(),g.setScale(),v.clearCalc(),v.setScale();var x={id:e,plotgroup:s,xaxis:g,yaxis:v,isRangePlot:!0};u?l=x:(x.mainplot="xy",x.mainplotinfo=l),f.rangePlot(t,x,function(e,t){for(var r=[],n=0;n<e.length;n++){var a=e[n],i=a[0].trace;i.xaxis+i.yaxis===t&&r.push(a)}return r}(c,e))}))}function b(e,t,r,n,a){o.ensureSingle(e,"rect",m.maskMinClassName,(function(e){e.attr({x:0,y:0,"shape-rendering":"crispEdges"})})).attr("height",n._height).call(c.fill,m.maskColor),o.ensureSingle(e,"rect",m.maskMaxClassName,(function(e){e.attr({y:0,"shape-rendering":"crispEdges"})})).attr("height",n._height).call(c.fill,m.maskColor),"match"!==a.rangemode&&(o.ensureSingle(e,"rect",m.maskMinOppAxisClassName,(function(e){e.attr({y:0,"shape-rendering":"crispEdges"})})).attr("width",n._width).call(c.fill,m.maskOppAxisColor),o.ensureSingle(e,"rect",m.maskMaxOppAxisClassName,(function(e){e.attr({y:0,"shape-rendering":"crispEdges"})})).attr("width",n._width).style("border-top",m.maskOppBorder).call(c.fill,m.maskOppAxisColor))}function _(e,t,r,n){t._context.staticPlot||o.ensureSingle(e,"rect",m.slideBoxClassName,(function(e){e.attr({y:0,cursor:m.slideBoxCursor,"shape-rendering":"crispEdges"})})).attr({height:n._height,fill:m.slideBoxFill})}function w(e,t,r,n){var a=o.ensureSingle(e,"g",m.grabberMinClassName),i=o.ensureSingle(e,"g",m.grabberMaxClassName),l={x:0,width:m.handleWidth,rx:m.handleRadius,fill:c.background,stroke:c.defaultLine,"stroke-width":m.handleStrokeWidth,"shape-rendering":"crispEdges"},s={y:Math.round(n._height/4),height:Math.round(n._height/2)};o.ensureSingle(a,"rect",m.handleMinClassName,(function(e){e.attr(l)})).attr(s),o.ensureSingle(i,"rect",m.handleMaxClassName,(function(e){e.attr(l)})).attr(s);var u={width:m.grabAreaWidth,x:0,y:0,fill:m.grabAreaFill,cursor:t._context.staticPlot?void 0:m.grabAreaCursor};o.ensureSingle(a,"rect",m.grabAreaMinClassName,(function(e){e.attr(u)})).attr("height",n._height),o.ensureSingle(i,"rect",m.grabAreaMaxClassName,(function(e){e.attr(u)})).attr("height",n._height)}t.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,a=0;a<r.length;a++){var i=r[a][m.name];i._clipId=i._id+"-"+t._uid}var s=t._infolayer.selectAll("g."+m.containerClassName).data(r,(function(e){return e._name}));s.exit().each((function(e){var r=e[m.name];t._topdefs.select("#"+r._clipId).remove()})).remove(),0!==r.length&&(s.enter().append("g").classed(m.containerClassName,!0).attr("pointer-events","all"),s.each((function(r){var a=n.select(this),i=r[m.name],s=t[d.id2name(r.anchor)],c=i[d.id2name(r.anchor)];if(i.range){var f,p=o.simpleMap(i.range,r.r2l),h=o.simpleMap(r.range,r.r2l);f=h[0]<h[1]?[Math.min(p[0],h[0]),Math.max(p[1],h[1])]:[Math.max(p[0],h[0]),Math.min(p[1],h[1])],i.range=i._input.range=o.simpleMap(f,r.l2r)}r.cleanRange("rangeslider.range");var T=t._size,M=r.domain;i._width=T.w*(M[1]-M[0]);var k=Math.round(T.l+T.w*M[0]),A=Math.round(T.t+T.h*(1-r._counterDomainMin)+("bottom"===r.side?r._depth:0)+i._offsetShift+m.extraPad);a.attr("transform",l(k,A)),i._rl=o.simpleMap(i.range,r.r2l);var L=i._rl[0],S=i._rl[1],O=S-L;if(i.p2d=function(e){return e/i._width*O+L},i.d2p=function(e){return(e-L)/O*i._width},r.rangebreaks){var D=r.locateBreaks(L,S);if(D.length){var C,E,P=0;for(C=0;C<D.length;C++)P+=(E=D[C]).max-E.min;var R=i._width/(S-L-P),z=[-R*L];for(C=0;C<D.length;C++)E=D[C],z.push(z[z.length-1]-R*(E.max-E.min));for(i.d2p=function(e){for(var t=z[0],r=0;r<D.length;r++){var n=D[r];if(e>=n.max)t=z[r+1];else if(e<n.min)break}return t+R*e},C=0;C<D.length;C++)(E=D[C]).pmin=i.d2p(E.min),E.pmax=i.d2p(E.max);i.p2d=function(e){for(var t=z[0],r=0;r<D.length;r++){var n=D[r];if(e>=n.pmax)t=z[r+1];else if(e<n.pmin)break}return(e-t)/R}}}if("match"!==c.rangemode){var I=s.r2l(c.range[0]),N=s.r2l(c.range[1])-I;i.d2pOppAxis=function(e){return(e-I)/N*i._height}}a.call(g,e,r,i).call(v,e,r,i).call(x,e,r,i).call(b,e,r,i,c).call(_,e,r,i).call(w,e,r,i),y(a,e,r,i),function(e,t,r,n,a,i){var s=m.handleWidth/2;function c(e){return o.constrain(e,0,n._width)}function u(e){return o.constrain(e,0,n._height)}function f(e){return o.constrain(e,-s,n._width+s)}var d=c(n.d2p(r._rl[0])),p=c(n.d2p(r._rl[1]));if(e.select("rect."+m.slideBoxClassName).attr("x",d).attr("width",p-d),e.select("rect."+m.maskMinClassName).attr("width",d),e.select("rect."+m.maskMaxClassName).attr("x",p).attr("width",n._width-p),"match"!==i.rangemode){var h=n._height-u(n.d2pOppAxis(a._rl[1])),y=n._height-u(n.d2pOppAxis(a._rl[0]));e.select("rect."+m.maskMinOppAxisClassName).attr("x",d).attr("height",h).attr("width",p-d),e.select("rect."+m.maskMaxOppAxisClassName).attr("x",d).attr("y",y).attr("height",n._height-y).attr("width",p-d),e.select("rect."+m.slideBoxClassName).attr("y",h).attr("height",y-h)}var g=.5,v=Math.round(f(d-s))-g,x=Math.round(f(p-s))+g;e.select("g."+m.grabberMinClassName).attr("transform",l(v,g)),e.select("g."+m.grabberMaxClassName).attr("transform",l(x,g))}(a,0,r,i,s,c),"bottom"===r.side&&u.draw(e,r._id+"title",{propContainer:r,propName:r._name+".title",placeholder:t._dfltTitle.x,attributes:{x:r._offset+r._length/2,y:A+i._height+i._offsetShift+10+1.5*r.title.font.size,"text-anchor":"middle"}})})))}},{"../../lib":287,"../../lib/setcursor":307,"../../plots/cartesian":348,"../../plots/cartesian/axis_ids":338,"../../plots/plots":369,"../../registry":376,"../color":157,"../dragelement":176,"../drawing":179,"../titles":255,"./constants":231,"@plotly/d3":20}],234:[function(e,t,r){"use strict";var n=e("../../plots/cartesian/axis_ids"),a=e("../../lib/svg_text_utils"),i=e("./constants"),o=e("../../constants/alignment").LINE_SPACING,l=i.name;function s(e){var t=e&&e[l];return t&&t.visible}r.isVisible=s,r.makeData=function(e){var t=n.list({_fullLayout:e},"x",!0),r=e.margin,a=[];if(!e._has("gl2d"))for(var i=0;i<t.length;i++){var o=t[i];if(s(o)){a.push(o);var c=o[l];c._id=l+o._id,c._height=(e.height-r.b-r.t)*c.thickness,c._offsetShift=Math.floor(c.borderwidth/2)}}e._rangeSliderData=a},r.autoMarginOpts=function(e,t){var r=e._fullLayout,n=t[l],s=t._id.charAt(0),c=0,u=0;return"bottom"===t.side&&(c=t._depth,t.title.text!==r._dfltTitle[s]&&(u=1.5*t.title.font.size+10+n._offsetShift,u+=(t.title.text.match(a.BR_TAG_ALL)||[]).length*t.title.font.size*o)),{x:0,y:t._counterDomainMin,l:0,r:0,t:0,b:n._height+c+Math.max(r.margin.b,u),pad:i.extraPad+2*n._offsetShift}}},{"../../constants/alignment":262,"../../lib/svg_text_utils":310,"../../plots/cartesian/axis_ids":338,"./constants":231}],235:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("./attributes"),i=e("./oppaxis_attributes"),o=e("./helpers");t.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:n.extendFlat({},a,{yaxis:i})}}},layoutAttributes:e("./attributes"),handleDefaults:e("./defaults"),calcAutorange:e("./calc_autorange"),draw:e("./draw"),isVisible:o.isVisible,makeData:o.makeData,autoMarginOpts:o.autoMarginOpts}},{"../../lib":287,"./attributes":229,"./calc_autorange":230,"./defaults":232,"./draw":233,"./helpers":234,"./oppaxis_attributes":236}],236:[function(e,t,r){"use strict";t.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}},{}],237:[function(e,t,r){"use strict";var n=e("../annotations/attributes"),a=e("../../traces/scatter/attributes").line,i=e("../drawing/attributes").dash,o=e("../../lib/extend").extendFlat,l=e("../../plot_api/plot_template").templatedArray;e("../../constants/axis_placeable_objects"),t.exports=l("shape",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:o({},n.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:o({},n.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:o({},a.color,{editType:"arraydraw"}),width:o({},a.width,{editType:"calc+arraydraw"}),dash:o({},i,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},editType:"arraydraw"})},{"../../constants/axis_placeable_objects":263,"../../lib/extend":281,"../../plot_api/plot_template":323,"../../traces/scatter/attributes":497,"../annotations/attributes":140,"../drawing/attributes":178}],238:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../plots/cartesian/axes"),i=e("./constants"),o=e("./helpers");function l(e){return c(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function s(e){return c(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function c(e,t,r,a,l,s){var c=e/2,u=s;if("pixel"===t){var f=l?o.extractPathCoords(l,s?i.paramIsY:i.paramIsX):[r,a],d=n.aggNums(Math.max,null,f),p=n.aggNums(Math.min,null,f),h=p<0?Math.abs(p)+c:c,m=d>0?d+c:c;return{ppad:c,ppadplus:u?h:m,ppadminus:u?m:h}}return{ppad:c}}function u(e,t,r,n,a){var l="category"===e.type||"multicategory"===e.type?e.r2c:e.d2c;if(void 0!==t)return[l(t),l(r)];if(n){var s,c,u,f,d=1/0,p=-1/0,h=n.match(i.segmentRE);for("date"===e.type&&(l=o.decodeDate(l)),s=0;s<h.length;s++)void 0!==(c=a[h[s].charAt(0)].drawn)&&(!(u=h[s].substr(1).match(i.paramRE))||u.length<c||((f=l(u[c]))<d&&(d=f),f>p&&(p=f)));return p>=d?[d,p]:void 0}}t.exports=function(e){var t=e._fullLayout,r=n.filterVisible(t.shapes);if(r.length&&e._fullData.length)for(var o=0;o<r.length;o++){var c,f,d=r[o];d._extremes={};var p=a.getRefType(d.xref),h=a.getRefType(d.yref);if("paper"!==d.xref&&"domain"!==p){var m="pixel"===d.xsizemode?d.xanchor:d.x0,y="pixel"===d.xsizemode?d.xanchor:d.x1;(f=u(c=a.getFromId(e,d.xref),m,y,d.path,i.paramIsX))&&(d._extremes[c._id]=a.findExtremes(c,f,l(d)))}if("paper"!==d.yref&&"domain"!==h){var g="pixel"===d.ysizemode?d.yanchor:d.y0,v="pixel"===d.ysizemode?d.yanchor:d.y1;(f=u(c=a.getFromId(e,d.yref),g,v,d.path,i.paramIsY))&&(d._extremes[c._id]=a.findExtremes(c,f,s(d)))}}}},{"../../lib":287,"../../plots/cartesian/axes":334,"./constants":239,"./helpers":248}],239:[function(e,t,r){"use strict";t.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},{}],240:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../plots/cartesian/axes"),i=e("../../plots/array_container_defaults"),o=e("./attributes"),l=e("./helpers");function s(e,t,r){function i(r,a){return n.coerce(e,t,o,r,a)}if(i("visible")){var s=i("path"),c=i("type",s?"path":"rect");"path"!==t.type&&delete t.path,i("editable"),i("layer"),i("opacity"),i("fillcolor"),i("fillrule"),i("line.width")&&(i("line.color"),i("line.dash"));for(var u=i("xsizemode"),f=i("ysizemode"),d=["x","y"],p=0;p<2;p++){var h,m,y,g=d[p],v=g+"anchor",x="x"===g?u:f,b={_fullLayout:r},_=a.coerceRef(e,t,b,g,void 0,"paper");if("range"===a.getRefType(_)?((h=a.getFromId(b,_))._shapeIndices.push(t._index),y=l.rangeToShapePosition(h),m=l.shapePositionToRange(h)):m=y=n.identity,"path"!==c){var w=g+"0",T=g+"1",M=e[w],k=e[T];e[w]=m(e[w],!0),e[T]=m(e[T],!0),"pixel"===x?(i(w,0),i(T,10)):(a.coercePosition(t,b,i,_,w,.25),a.coercePosition(t,b,i,_,T,.75)),t[w]=y(t[w]),t[T]=y(t[T]),e[w]=M,e[T]=k}if("pixel"===x){var A=e[v];e[v]=m(e[v],!0),a.coercePosition(t,b,i,_,v,.25),t[v]=y(t[v]),e[v]=A}}"path"===c?i("path"):n.noneOrAll(e,t,["x0","x1","y0","y1"])}}t.exports=function(e,t){i(e,t,{name:"shapes",handleItemDefaults:s})}},{"../../lib":287,"../../plots/array_container_defaults":329,"../../plots/cartesian/axes":334,"./attributes":237,"./helpers":248}],241:[function(e,t,r){"use strict";var n=e("../../registry"),a=e("../../lib"),i=e("../../plots/cartesian/axes"),o=e("./draw_newshape/helpers").readPaths,l=e("./draw_newshape/display_outlines"),s=e("../../plots/cartesian/handle_outline").clearOutlineControllers,c=e("../color"),u=e("../drawing"),f=e("../../plot_api/plot_template").arrayEditor,d=e("../dragelement"),p=e("../../lib/setcursor"),h=e("./constants"),m=e("./helpers");function y(e){var t=e._fullLayout;for(var r in t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._plots){var n=t._plots[r].shapelayer;n&&n.selectAll("path").remove()}for(var a=0;a<t.shapes.length;a++)t.shapes[a].visible&&x(e,a)}function g(e){return!!e._fullLayout._drawing}function v(e){return!e._context.edits.shapePosition}function x(e,t){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+t+'"]').remove();var r=m.makeOptionsAndPlotinfo(e,t),s=r.options,x=r.plotinfo;function M(r){var M=_(e,s),k={"data-index":t,"fill-rule":s.fillrule,d:M},A=s.opacity,L=s.fillcolor,S=s.line.width?s.line.color:"rgba(0,0,0,0)",O=s.line.width,D=s.line.dash;O||!0!==s.editable||(O=5,D="solid");var C="Z"!==M[M.length-1],E=v(e)&&s.editable&&e._fullLayout._activeShapeIndex===t;E&&(L=C?"rgba(0,0,0,0)":e._fullLayout.activeshape.fillcolor,A=e._fullLayout.activeshape.opacity);var P,R=r.append("path").attr(k).style("opacity",A).call(c.stroke,S).call(c.fill,L).call(u.dashLine,D,O);if(b(R,e,s),(E||e._context.edits.shapePosition)&&(P=f(e.layout,"shapes",s)),E){R.style({cursor:"move"});var z={element:R.node(),plotinfo:x,gd:e,editHelpers:P,isActiveShape:!0},I=o(M,e);l(I,R,z)}else e._context.edits.shapePosition?function(e,t,r,o,l,s){var c,f,y,v,x,T,M,k,A,L,S,O,D,C,E,P,R=10,z=10,I="pixel"===r.xsizemode,N="pixel"===r.ysizemode,F="line"===r.type,j="path"===r.type,B=s.modifyItem,H=i.getFromId(e,r.xref),U=i.getRefType(r.xref),Y=i.getFromId(e,r.yref),q=i.getRefType(r.yref),V=m.getDataToPixel(e,H,!1,U),G=m.getDataToPixel(e,Y,!0,q),Z=m.getPixelToData(e,H,!1,U),W=m.getPixelToData(e,Y,!0,q),X=K(),J={element:X.node(),gd:e,prepFn:ee,doneFn:te,clickFn:re};function K(){return F?Q():t}function Q(){var e=10,n=Math.max(r.line.width,e),a=l.append("g").attr("data-index",o);a.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":n,"stroke-opacity":"0"});var i={"fill-opacity":"0"},s=Math.max(n/2,e);return a.append("circle").attr({"data-line-point":"start-point",cx:I?V(r.xanchor)+r.x0:V(r.x0),cy:N?G(r.yanchor)-r.y0:G(r.y0),r:s}).style(i).classed("cursor-grab",!0),a.append("circle").attr({"data-line-point":"end-point",cx:I?V(r.xanchor)+r.x1:V(r.x1),cy:N?G(r.yanchor)-r.y1:G(r.y1),r:s}).style(i).classed("cursor-grab",!0),a}function $(r){if(g(e))P=null;else if(F)P="path"===r.target.tagName?"move":"start-point"===r.target.attributes["data-line-point"].value?"resize-over-start-point":"resize-over-end-point";else{var n=J.element.getBoundingClientRect(),a=n.right-n.left,i=n.bottom-n.top,o=r.clientX-n.left,l=r.clientY-n.top,s=!j&&a>R&&i>z&&!r.shiftKey?d.getCursor(o/a,1-l/i):"move";p(t,s),P=s.split("-")[0]}}function ee(n){g(e)||(I&&(x=V(r.xanchor)),N&&(T=G(r.yanchor)),"path"===r.type?E=r.path:(c=I?r.x0:V(r.x0),f=N?r.y0:G(r.y0),y=I?r.x1:V(r.x1),v=N?r.y1:G(r.y1)),c<y?(A=c,D="x0",L=y,C="x1"):(A=y,D="x1",L=c,C="x0"),!N&&f<v||N&&f>v?(M=f,S="y0",k=v,O="y1"):(M=v,S="y1",k=f,O="y0"),$(n),ie(l,r),le(t,r,e),J.moveFn="move"===P?ne:ae,J.altKey=n.altKey)}function te(){g(e)||(p(t),oe(l),b(t,e,r),n.call("_guiRelayout",e,s.getUpdateObj()))}function re(){g(e)||oe(l)}function ne(n,a){if("path"===r.type){var i=function(e){return e},o=i,s=i;I?B("xanchor",r.xanchor=Z(x+n)):(o=function(e){return Z(V(e)+n)},H&&"date"===H.type&&(o=m.encodeDate(o))),N?B("yanchor",r.yanchor=W(T+a)):(s=function(e){return W(G(e)+a)},Y&&"date"===Y.type&&(s=m.encodeDate(s))),B("path",r.path=w(E,o,s))}else I?B("xanchor",r.xanchor=Z(x+n)):(B("x0",r.x0=Z(c+n)),B("x1",r.x1=Z(y+n))),N?B("yanchor",r.yanchor=W(T+a)):(B("y0",r.y0=W(f+a)),B("y1",r.y1=W(v+a)));t.attr("d",_(e,r)),ie(l,r)}function ae(n,a){if(j){var i=function(e){return e},o=i,s=i;I?B("xanchor",r.xanchor=Z(x+n)):(o=function(e){return Z(V(e)+n)},H&&"date"===H.type&&(o=m.encodeDate(o))),N?B("yanchor",r.yanchor=W(T+a)):(s=function(e){return W(G(e)+a)},Y&&"date"===Y.type&&(s=m.encodeDate(s))),B("path",r.path=w(E,o,s))}else if(F){if("resize-over-start-point"===P){var u=c+n,d=N?f-a:f+a;B("x0",r.x0=I?u:Z(u)),B("y0",r.y0=N?d:W(d))}else if("resize-over-end-point"===P){var p=y+n,h=N?v-a:v+a;B("x1",r.x1=I?p:Z(p)),B("y1",r.y1=N?h:W(h))}}else{var g=function(e){return-1!==P.indexOf(e)},b=g("n"),U=g("s"),q=g("w"),X=g("e"),J=b?M+a:M,K=U?k+a:k,Q=q?A+n:A,$=X?L+n:L;N&&(b&&(J=M-a),U&&(K=k-a)),(!N&&K-J>z||N&&J-K>z)&&(B(S,r[S]=N?J:W(J)),B(O,r[O]=N?K:W(K))),$-Q>R&&(B(D,r[D]=I?Q:Z(Q)),B(C,r[C]=I?$:Z($)))}t.attr("d",_(e,r)),ie(l,r)}function ie(e,t){function r(){var r="path"!==t.type,n=e.selectAll(".visual-cue").data([0]),i=1;n.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":i}).classed("visual-cue",!0);var o=V(I?t.xanchor:a.midRange(r?[t.x0,t.x1]:m.extractPathCoords(t.path,h.paramIsX))),l=G(N?t.yanchor:a.midRange(r?[t.y0,t.y1]:m.extractPathCoords(t.path,h.paramIsY)));if(o=m.roundPositionForSharpStrokeRendering(o,i),l=m.roundPositionForSharpStrokeRendering(l,i),I&&N){var s="M"+(o-1-i)+","+(l-1-i)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";n.attr("d",s)}else if(I){var c="M"+(o-1-i)+","+(l-9-i)+"v18 h2 v-18 Z";n.attr("d",c)}else{var u="M"+(o-9-i)+","+(l-1-i)+"h18 v2 h-18 Z";n.attr("d",u)}}(I||N)&&r()}function oe(e){e.selectAll(".visual-cue").remove()}function le(e,t,r){var n=t.xref,a=t.yref,o=i.getFromId(r,n),l=i.getFromId(r,a),s="";"paper"===n||o.autorange||(s+=n),"paper"===a||l.autorange||(s+=a),u.setClipUrl(e,s?"clip"+r._fullLayout._uid+s:null,r)}d.init(J),X.node().onmousemove=$}(e,R,s,t,r,P):!0===s.editable&&R.style("pointer-events",C||c.opacity(L)*A<=.5?"stroke":"all");R.node().addEventListener("click",(function(){return function(e,t){if(v(e)){var r=+t.node().getAttribute("data-index");if(r>=0){if(r===e._fullLayout._activeShapeIndex)return void T(e);e._fullLayout._activeShapeIndex=r,e._fullLayout._deactivateShape=T,y(e)}}}(e,R)}))}s._input&&!1!==s.visible&&("below"!==s.layer?M(e._fullLayout._shapeUpperLayer):"paper"===s.xref||"paper"===s.yref?M(e._fullLayout._shapeLowerLayer):x._hadPlotinfo?M((x.mainplotinfo||x).shapelayer):M(e._fullLayout._shapeLowerLayer))}function b(e,t,r){var n=(r.xref+r.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");u.setClipUrl(e,n?"clip"+t._fullLayout._uid+n:null,t)}function _(e,t){var r,n,o,l,s,c,u,f,d=t.type,p=i.getRefType(t.xref),y=i.getRefType(t.yref),g=i.getFromId(e,t.xref),v=i.getFromId(e,t.yref),x=e._fullLayout._size;if(g?"domain"===p?n=function(e){return g._offset+g._length*e}:(r=m.shapePositionToRange(g),n=function(e){return g._offset+g.r2p(r(e,!0))}):n=function(e){return x.l+x.w*e},v?"domain"===y?l=function(e){return v._offset+v._length*(1-e)}:(o=m.shapePositionToRange(v),l=function(e){return v._offset+v.r2p(o(e,!0))}):l=function(e){return x.t+x.h*(1-e)},"path"===d)return g&&"date"===g.type&&(n=m.decodeDate(n)),v&&"date"===v.type&&(l=m.decodeDate(l)),function(e,t,r){var n=e.path,i=e.xsizemode,o=e.ysizemode,l=e.xanchor,s=e.yanchor;return n.replace(h.segmentRE,(function(e){var n=0,c=e.charAt(0),u=h.paramIsX[c],f=h.paramIsY[c],d=h.numParams[c],p=e.substr(1).replace(h.paramRE,(function(e){return u[n]?e="pixel"===i?t(l)+Number(e):t(e):f[n]&&(e="pixel"===o?r(s)-Number(e):r(e)),++n>d&&(e="X"),e}));return n>d&&(p=p.replace(/[\s,]*X.*/,""),a.log("Ignoring extra params in segment "+e)),c+p}))}(t,n,l);if("pixel"===t.xsizemode){var b=n(t.xanchor);s=b+t.x0,c=b+t.x1}else s=n(t.x0),c=n(t.x1);if("pixel"===t.ysizemode){var _=l(t.yanchor);u=_-t.y0,f=_-t.y1}else u=l(t.y0),f=l(t.y1);if("line"===d)return"M"+s+","+u+"L"+c+","+f;if("rect"===d)return"M"+s+","+u+"H"+c+"V"+f+"H"+s+"Z";var w=(s+c)/2,T=(u+f)/2,M=Math.abs(w-s),k=Math.abs(T-u),A="A"+M+","+k,L=w+M+","+T;return"M"+L+A+" 0 1,1 "+w+","+(T-k)+A+" 0 0,1 "+L+"Z"}function w(e,t,r){return e.replace(h.segmentRE,(function(e){var n=0,a=e.charAt(0),i=h.paramIsX[a],o=h.paramIsY[a],l=h.numParams[a];return a+e.substr(1).replace(h.paramRE,(function(e){return n>=l||(i[n]?e=t(e):o[n]&&(e=r(e)),n++),e}))}))}function T(e){v(e)&&e._fullLayout._activeShapeIndex>=0&&(s(e),delete e._fullLayout._activeShapeIndex,y(e))}t.exports={draw:y,drawOne:x,eraseActiveShape:function(e){if(v(e)){s(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t<r.length){for(var a=[],i=0;i<r.length;i++)i!==t&&a.push(r[i]);delete e._fullLayout._activeShapeIndex,n.call("_guiRelayout",e,{shapes:a})}}}}},{"../../lib":287,"../../lib/setcursor":307,"../../plot_api/plot_template":323,"../../plots/cartesian/axes":334,"../../plots/cartesian/handle_outline":345,"../../registry":376,"../color":157,"../dragelement":176,"../drawing":179,"./constants":239,"./draw_newshape/display_outlines":245,"./draw_newshape/helpers":246,"./helpers":248}],242:[function(e,t,r){"use strict";var n=e("../../drawing/attributes").dash,a=e("../../../lib/extend").extendFlat;t.exports={newshape:{line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:0,dflt:4,editType:"none"},dash:a({},n,{dflt:"solid",editType:"none"}),editType:"none"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"none"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"none"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal",editType:"none"},editType:"none"},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},{"../../../lib/extend":281,"../../drawing/attributes":178}],243:[function(e,t,r){"use strict";t.exports={CIRCLE_SIDES:32,i000:0,i090:8,i180:16,i270:24,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},{}],244:[function(e,t,r){"use strict";var n=e("../../color");t.exports=function(e,t,r){if(r("newshape.drawdirection"),r("newshape.layer"),r("newshape.fillcolor"),r("newshape.fillrule"),r("newshape.opacity"),r("newshape.line.width")){var a=(e||{}).plot_bgcolor||"#FFF";r("newshape.line.color",n.contrast(a)),r("newshape.line.dash")}r("activeshape.fillcolor"),r("activeshape.opacity")}},{"../../color":157}],245:[function(e,t,r){"use strict";var n=e("../../dragelement"),a=e("../../dragelement/helpers").drawMode,i=e("../../../registry"),o=e("./constants"),l=o.i000,s=o.i090,c=o.i180,u=o.i270,f=e("../../../plots/cartesian/handle_outline").clearOutlineControllers,d=e("./helpers"),p=d.pointsShapeRectangle,h=d.pointsShapeEllipse,m=d.writePaths,y=e("./newshapes");t.exports=function e(t,r,o,d){d||(d=0);var g=o.gd;function v(){e(t,r,o,d++),h(t[0])&&x({redrawing:!0})}function x(e){o.isActiveShape=!1;var t=y(r,o);Object.keys(t).length&&i.call((e||{}).redrawing?"relayout":"_guiRelayout",g,t)}var b,_,w,T,M,k=o.isActiveShape,A=g._fullLayout._zoomlayer,L=o.dragmode;function S(e){w=+e.srcElement.getAttribute("data-i"),T=+e.srcElement.getAttribute("data-j"),b[w][T].moveFn=O}function O(e,r){if(t.length){var n=M[w][T][1],a=M[w][T][2],i=t[w],o=i.length;if(p(i)){for(var l=0;l<o;l++)if(l!==T){var s=i[l];s[1]===i[T][1]&&(s[1]=n+e),s[2]===i[T][2]&&(s[2]=a+r)}if(i[T][1]=n+e,i[T][2]=a+r,!p(i))for(var c=0;c<o;c++)for(var u=0;u<i[c].length;u++)i[c][u]=M[w][c][u]}else i[T][1]=n+e,i[T][2]=a+r;v()}}function D(){x()}function C(e,r){if(2===e){w=+r.srcElement.getAttribute("data-i"),T=+r.srcElement.getAttribute("data-j");var n=t[w];p(n)||h(n)||function(){if(t.length&&t[w]&&t[w].length){for(var e=[],r=0;r<t[w].length;r++)r!==T&&e.push(t[w][r]);e.length>1&&(2!==e.length||"Z"!==e[1][0])&&(0===T&&(e[0][0]="M"),t[w]=e,v(),x())}}()}}function E(e,r){(function(e,r){if(t.length)for(var n=0;n<t.length;n++)for(var a=0;a<t[n].length;a++)for(var i=0;i+2<t[n][a].length;i+=2)t[n][a][i+1]=M[n][a][i+1]+e,t[n][a][i+2]=M[n][a][i+2]+r})(e,r),v()}function P(e){(w=+e.srcElement.getAttribute("data-i"))||(w=0),_[w].moveFn=E}function R(){x()}a(L)?g._fullLayout._drawing=!0:g._fullLayout._activeShapeIndex>=0&&f(g),r.attr("d",m(t)),k&&!d&&(M=function(e,t){for(var r=0;r<t.length;r++){var n=t[r];e[r]=[];for(var a=0;a<n.length;a++){e[r][a]=[];for(var i=0;i<n[a].length;i++)e[r][a][i]=n[a][i]}}return e}([],t),function(e){b=[];for(var r=0;r<t.length;r++){var a=t[r],i=!p(a)&&h(a);b[r]=[];for(var o=0;o<a.length;o++)if("Z"!==a[o][0]&&(!i||o===l||o===s||o===c||o===u)){var f=a[o][1],d=a[o][2],m=e.append("circle").classed("cursor-grab",!0).attr("data-i",r).attr("data-j",o).attr("cx",f).attr("cy",d).attr("r",4).style({"mix-blend-mode":"luminosity",fill:"black",stroke:"white","stroke-width":1});b[r][o]={element:m.node(),gd:g,prepFn:S,doneFn:D,clickFn:C},n.init(b[r][o])}}}(A.append("g").attr("class","outline-controllers")),function(){if(_=[],t.length){_[0]={element:r[0][0],gd:g,prepFn:P,doneFn:R},n.init(_[0])}}())}},{"../../../plots/cartesian/handle_outline":345,"../../../registry":376,"../../dragelement":176,"../../dragelement/helpers":175,"./constants":243,"./helpers":246,"./newshapes":247}],246:[function(e,t,r){"use strict";var n=e("parse-svg-path"),a=e("./constants"),i=a.CIRCLE_SIDES,o=a.SQRT2,l=e("../../../plots/cartesian/helpers"),s=l.p2r,c=l.r2p,u=[0,3,4,5,6,1,2],f=[0,3,4,1,2];function d(e,t){return Math.abs(e-t)<=1e-6}function p(e,t){var r=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+n*n)}r.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",n=0;n<t;n++)for(var a=e[n].length,i=0;i<a;i++){var o=e[n][i][0];if("Z"===o)r+="Z";else for(var l=e[n][i].length,s=0;s<l;s++){var c=s;"Q"===o||"S"===o?c=f[s]:"C"===o&&(c=u[s]),r+=e[n][i][c],s>0&&s<l-1&&(r+=",")}}return r},r.readPaths=function(e,t,r,a){var o,l,u,f=n(e),d=[],p=-1,h=0,m=0,y=function(){l=h,u=m};y();for(var g=0;g<f.length;g++){var v,x,b,_,w=[],T=f[g][0],M=T;switch(T){case"M":p++,d[p]=[],h=+f[g][1],m=+f[g][2],w.push([M,h,m]),y();break;case"Q":case"S":v=+f[g][1],b=+f[g][2],h=+f[g][3],m=+f[g][4],w.push([M,h,m,v,b]);break;case"C":v=+f[g][1],b=+f[g][2],x=+f[g][3],_=+f[g][4],h=+f[g][5],m=+f[g][6],w.push([M,h,m,v,b,x,_]);break;case"T":case"L":h=+f[g][1],m=+f[g][2],w.push([M,h,m]);break;case"H":M="L",h=+f[g][1],w.push([M,h,m]);break;case"V":M="L",m=+f[g][1],w.push([M,h,m]);break;case"A":M="L";var k=+f[g][1],A=+f[g][2];+f[g][4]||(k=-k,A=-A);var L=h-k,S=m;for(o=1;o<=i/2;o++){var O=2*Math.PI*o/i;w.push([M,L+k*Math.cos(O),S+A*Math.sin(O)])}break;case"Z":h===l&&m===u||(h=l,m=u,w.push([M,h,m]))}for(var D=(r||{}).domain,C=t._fullLayout._size,E=r&&"pixel"===r.xsizemode,P=r&&"pixel"===r.ysizemode,R=!1===a,z=0;z<w.length;z++){for(o=0;o+2<7;o+=2){var I=w[z][o+1],N=w[z][o+2];void 0!==I&&void 0!==N&&(h=I,m=N,r&&(r.xaxis&&r.xaxis.p2r?(R&&(I-=r.xaxis._offset),I=E?c(r.xaxis,r.xanchor)+I:s(r.xaxis,I)):(R&&(I-=C.l),D?I=D.x[0]+I/C.w:I/=C.w),r.yaxis&&r.yaxis.p2r?(R&&(N-=r.yaxis._offset),N=P?c(r.yaxis,r.yanchor)-N:s(r.yaxis,N)):(R&&(N-=C.t),N=D?D.y[1]-N/C.h:1-N/C.h)),w[z][o+1]=I,w[z][o+2]=N)}d[p].push(w[z].slice())}}return d},r.pointsShapeRectangle=function(e){if(5!==e.length)return!1;for(var t=1;t<3;t++){if(!d(e[0][t]-e[1][t],e[3][t]-e[2][t]))return!1;if(!d(e[0][t]-e[3][t],e[1][t]-e[2][t]))return!1}return!(!d(e[0][1],e[1][1])&&!d(e[0][1],e[3][1])||!(p(e[0],e[1])*p(e[0],e[3])))},r.pointsShapeEllipse=function(e){var t=e.length;if(t!==i+1)return!1;t=i;for(var r=0;r<t;r++){var n=(2*t-r)%t,a=(t/2+n)%t,o=(t/2+r)%t;if(!d(p(e[r],e[o]),p(e[n],e[a])))return!1}return!0},r.handleEllipse=function(e,t,n){if(!e)return[t,n];var a=r.ellipseOver({x0:t[0],y0:t[1],x1:n[0],y1:n[1]}),l=(a.x1+a.x0)/2,s=(a.y1+a.y0)/2,c=(a.x1-a.x0)/2,u=(a.y1-a.y0)/2;c||(c=u/=o),u||(u=c/=o);for(var f=[],d=0;d<i;d++){var p=2*d*Math.PI/i;f.push([l+c*Math.cos(p),s+u*Math.sin(p)])}return f},r.ellipseOver=function(e){var t=e.x0,r=e.y0,n=e.x1,a=e.y1,i=n-t,l=a-r,s=((t-=i)+n)/2,c=((r-=l)+a)/2;return{x0:s-(i*=o),y0:c-(l*=o),x1:s+i,y1:c+l}}},{"../../../plots/cartesian/helpers":346,"./constants":243,"parse-svg-path":74}],247:[function(e,t,r){"use strict";var n=e("../../dragelement/helpers"),a=n.drawMode,i=n.openMode,o=e("./constants"),l=o.i000,s=o.i090,c=o.i180,u=o.i270,f=o.cos45,d=o.sin45,p=e("../../../plots/cartesian/helpers"),h=p.p2r,m=p.r2p,y=e("../../../plots/cartesian/handle_outline").clearSelect,g=e("./helpers"),v=g.readPaths,x=g.writePaths,b=g.ellipseOver;t.exports=function(e,t){if(e.length){var r=e[0][0];if(r){var n=r.getAttribute("d"),o=t.gd,p=o._fullLayout.newshape,g=t.plotinfo,_=g.xaxis,w=g.yaxis,T=!!g.domain||!g.xaxis,M=!!g.domain||!g.yaxis,k=t.isActiveShape,A=t.dragmode,L=(o.layout||{}).shapes||[];if(!a(A)&&void 0!==k){var S=o._fullLayout._activeShapeIndex;if(S<L.length)switch(o._fullLayout.shapes[S].type){case"rect":A="drawrect";break;case"circle":A="drawcircle";break;case"line":A="drawline";break;case"path":var O=L[S].path||"";A="Z"===O[O.length-1]?"drawclosedpath":"drawopenpath"}}var D,C=i(A),E=v(n,o,g,k),P={editable:!0,xref:T?"paper":_._id,yref:M?"paper":w._id,layer:p.layer,opacity:p.opacity,line:{color:p.line.color,width:p.line.width,dash:p.line.dash}};if(C||(P.fillcolor=p.fillcolor,P.fillrule=p.fillrule),1===E.length&&(D=E[0]),D&&"drawrect"===A)P.type="rect",P.x0=D[0][1],P.y0=D[0][2],P.x1=D[2][1],P.y1=D[2][2];else if(D&&"drawline"===A)P.type="line",P.x0=D[0][1],P.y0=D[0][2],P.x1=D[1][1],P.y1=D[1][2];else if(D&&"drawcircle"===A){P.type="circle";var R=D[l][1],z=D[s][1],I=D[c][1],N=D[u][1],F=D[l][2],j=D[s][2],B=D[c][2],H=D[u][2],U=g.xaxis&&("date"===g.xaxis.type||"log"===g.xaxis.type),Y=g.yaxis&&("date"===g.yaxis.type||"log"===g.yaxis.type);U&&(R=m(g.xaxis,R),z=m(g.xaxis,z),I=m(g.xaxis,I),N=m(g.xaxis,N)),Y&&(F=m(g.yaxis,F),j=m(g.yaxis,j),B=m(g.yaxis,B),H=m(g.yaxis,H));var q=(z+N)/2,V=(F+B)/2,G=b({x0:q,y0:V,x1:q+(N-z+I-R)/2*f,y1:V+(H-j+B-F)/2*d});U&&(G.x0=h(g.xaxis,G.x0),G.x1=h(g.xaxis,G.x1)),Y&&(G.y0=h(g.yaxis,G.y0),G.y1=h(g.yaxis,G.y1)),P.x0=G.x0,P.y0=G.y0,P.x1=G.x1,P.y1=G.y1}else P.type="path",_&&w&&function(e,t,r){var n="date"===t.type,a="date"===r.type;if(!n&&!a)return e;for(var i=0;i<e.length;i++)for(var o=0;o<e[i].length;o++)for(var l=0;l+2<e[i][o].length;l+=2)n&&(e[i][o][l+1]=e[i][o][l+1].replace(" ","_")),a&&(e[i][o][l+2]=e[i][o][l+2].replace(" ","_"))}(E,_,w),P.path=x(E),D=null;y(o);for(var Z=t.editHelpers,W=(Z||{}).modifyItem,X=[],J=0;J<L.length;J++){var K=o._fullLayout.shapes[J];if(X[J]=K._input,void 0!==k&&J===o._fullLayout._activeShapeIndex){var Q=P;switch(K.type){case"line":case"rect":case"circle":W("x0",Q.x0),W("x1",Q.x1),W("y0",Q.y0),W("y1",Q.y1);break;case"path":W("path",Q.path)}}}return void 0===k?(X.push(P),X):Z?Z.getUpdateObj():{}}}}},{"../../../plots/cartesian/handle_outline":345,"../../../plots/cartesian/helpers":346,"../../dragelement/helpers":175,"./constants":243,"./helpers":246}],248:[function(e,t,r){"use strict";var n=e("./constants"),a=e("../../lib");r.rangeToShapePosition=function(e){return"log"===e.type?e.r2d:function(e){return e}},r.shapePositionToRange=function(e){return"log"===e.type?e.d2r:function(e){return e}},r.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}},r.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}},r.extractPathCoords=function(e,t){var r=[];return e.match(n.segmentRE).forEach((function(e){var i=t[e.charAt(0)].drawn;if(void 0!==i){var o=e.substr(1).match(n.paramRE);!o||o.length<i||r.push(a.cleanNumber(o[i]))}})),r},r.getDataToPixel=function(e,t,n,a){var i,o=e._fullLayout._size;if(t)if("domain"===a)i=function(e){return t._length*(n?1-e:e)+t._offset};else{var l=r.shapePositionToRange(t);i=function(e){return t._offset+t.r2p(l(e,!0))},"date"===t.type&&(i=r.decodeDate(i))}else i=n?function(e){return o.t+o.h*(1-e)}:function(e){return o.l+o.w*e};return i},r.getPixelToData=function(e,t,n,a){var i,o=e._fullLayout._size;if(t)if("domain"===a)i=function(e){var r=(e-t._offset)/t._length;return n?1-r:r};else{var l=r.rangeToShapePosition(t);i=function(e){return l(t.p2r(e-t._offset))}}else i=n?function(e){return 1-(e-o.t)/o.h}:function(e){return(e-o.l)/o.w};return i},r.roundPositionForSharpStrokeRendering=function(e,t){var r=1===Math.round(t%2),n=Math.round(e);return r?n+.5:n},r.makeOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.shapes[t]||{},n=e._fullLayout._plots[r.xref+r.yref];return n?n._hadPlotinfo=!0:(n={},r.xref&&"paper"!==r.xref&&(n.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&"paper"!==r.yref&&(n.yaxis=e._fullLayout[r.yref+"axis"])),n.xsizemode=r.xsizemode,n.ysizemode=r.ysizemode,n.xanchor=r.xanchor,n.yanchor=r.yanchor,{options:r,plotinfo:n}}},{"../../lib":287,"./constants":239}],249:[function(e,t,r){"use strict";var n=e("./draw");t.exports={moduleType:"component",name:"shapes",layoutAttributes:e("./attributes"),supplyLayoutDefaults:e("./defaults"),supplyDrawNewShapeDefaults:e("./draw_newshape/defaults"),includeBasePlot:e("../../plots/cartesian/include_components")("shapes"),calcAutorange:e("./calc_autorange"),draw:n.draw,drawOne:n.drawOne}},{"../../plots/cartesian/include_components":347,"./attributes":237,"./calc_autorange":238,"./defaults":240,"./draw":241,"./draw_newshape/defaults":244}],250:[function(e,t,r){"use strict";var n=e("../../plots/font_attributes"),a=e("../../plots/pad_attributes"),i=e("../../lib/extend").extendDeepAll,o=e("../../plot_api/edit_types").overrideAll,l=e("../../plots/animation_attributes"),s=e("../../plot_api/plot_template").templatedArray,c=e("./constants"),u=s("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});t.exports=o(s("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:u,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:i(a({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:l.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:n({})},font:n({}),activebgcolor:{valType:"color",dflt:c.gripBgActiveColor},bgcolor:{valType:"color",dflt:c.railBgColor},bordercolor:{valType:"color",dflt:c.railBorderColor},borderwidth:{valType:"number",min:0,dflt:c.railBorderWidth},ticklen:{valType:"number",min:0,dflt:c.tickLength},tickcolor:{valType:"color",dflt:c.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:c.minorTickLength}}),"arraydraw","from-root")},{"../../lib/extend":281,"../../plot_api/edit_types":316,"../../plot_api/plot_template":323,"../../plots/animation_attributes":328,"../../plots/font_attributes":363,"../../plots/pad_attributes":368,"./constants":251}],251:[function(e,t,r){"use strict";t.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},{}],252:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../plots/array_container_defaults"),i=e("./attributes"),o=e("./constants").name,l=i.steps;function s(e,t,r){function o(r,a){return n.coerce(e,t,i,r,a)}for(var l=a(e,t,{name:"steps",handleItemDefaults:c}),s=0,u=0;u<l.length;u++)l[u].visible&&s++;if(s<2?t.visible=!1:o("visible")){t._stepCount=s;var f=t._visibleSteps=n.filterVisible(l);(l[o("active")]||{}).visible||(t.active=f[0]._index),o("x"),o("y"),n.noneOrAll(e,t,["x","y"]),o("xanchor"),o("yanchor"),o("len"),o("lenmode"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),n.coerceFont(o,"font",r.font),o("currentvalue.visible")&&(o("currentvalue.xanchor"),o("currentvalue.prefix"),o("currentvalue.suffix"),o("currentvalue.offset"),n.coerceFont(o,"currentvalue.font",t.font)),o("transition.duration"),o("transition.easing"),o("bgcolor"),o("activebgcolor"),o("bordercolor"),o("borderwidth"),o("ticklen"),o("tickwidth"),o("tickcolor"),o("minorticklen")}}function c(e,t){function r(r,a){return n.coerce(e,t,l,r,a)}if("skip"===e.method||Array.isArray(e.args)?r("visible"):t.visible=!1){r("method"),r("args");var a=r("label","step-"+t._index);r("value",a),r("execute")}}t.exports=function(e,t){a(e,t,{name:o,handleItemDefaults:s})}},{"../../lib":287,"../../plots/array_container_defaults":329,"./attributes":250,"./constants":251}],253:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../../plots/plots"),i=e("../color"),o=e("../drawing"),l=e("../../lib"),s=l.strTranslate,c=e("../../lib/svg_text_utils"),u=e("../../plot_api/plot_template").arrayEditor,f=e("./constants"),d=e("../../constants/alignment"),p=d.LINE_SPACING,h=d.FROM_TL,m=d.FROM_BR;function y(e){return f.autoMarginIdRoot+e._index}function g(e){return e._index}function v(e,t){var r=o.tester.selectAll("g."+f.labelGroupClass).data(t._visibleSteps);r.enter().append("g").classed(f.labelGroupClass,!0);var i=0,s=0;r.each((function(e){var r=_(n.select(this),{step:e},t).node();if(r){var a=o.bBox(r);s=Math.max(s,a.height),i=Math.max(i,a.width)}})),r.remove();var u=t._dims={};u.inputAreaWidth=Math.max(f.railWidth,f.gripHeight);var d=e._fullLayout._size;u.lx=d.l+d.w*t.x,u.ly=d.t+d.h*(1-t.y),"fraction"===t.lenmode?u.outerLength=Math.round(d.w*t.len):u.outerLength=t.len,u.inputAreaStart=0,u.inputAreaLength=Math.round(u.outerLength-t.pad.l-t.pad.r);var p=(u.inputAreaLength-2*f.stepInset)/(t._stepCount-1),g=i+f.labelPadding;if(u.labelStride=Math.max(1,Math.ceil(g/p)),u.labelHeight=s,u.currentValueMaxWidth=0,u.currentValueHeight=0,u.currentValueTotalHeight=0,u.currentValueMaxLines=1,t.currentvalue.visible){var v=o.tester.append("g");r.each((function(e){var r=x(v,t,e.label),n=r.node()&&o.bBox(r.node())||{width:0,height:0},a=c.lineCount(r);u.currentValueMaxWidth=Math.max(u.currentValueMaxWidth,Math.ceil(n.width)),u.currentValueHeight=Math.max(u.currentValueHeight,Math.ceil(n.height)),u.currentValueMaxLines=Math.max(u.currentValueMaxLines,a)})),u.currentValueTotalHeight=u.currentValueHeight+t.currentvalue.offset,v.remove()}u.height=u.currentValueTotalHeight+f.tickOffset+t.ticklen+f.labelOffset+u.labelHeight+t.pad.t+t.pad.b;var b="left";l.isRightAnchor(t)&&(u.lx-=u.outerLength,b="right"),l.isCenterAnchor(t)&&(u.lx-=u.outerLength/2,b="center");var w="top";l.isBottomAnchor(t)&&(u.ly-=u.height,w="bottom"),l.isMiddleAnchor(t)&&(u.ly-=u.height/2,w="middle"),u.outerLength=Math.ceil(u.outerLength),u.height=Math.ceil(u.height),u.lx=Math.round(u.lx),u.ly=Math.round(u.ly);var T={y:t.y,b:u.height*m[w],t:u.height*h[w]};"fraction"===t.lenmode?(T.l=0,T.xl=t.x-t.len*h[b],T.r=0,T.xr=t.x+t.len*m[b]):(T.x=t.x,T.l=u.outerLength*h[b],T.r=u.outerLength*m[b]),a.autoMargin(e,y(t),T)}function x(e,t,r){if(t.currentvalue.visible){var n,a,i=t._dims;switch(t.currentvalue.xanchor){case"right":n=i.inputAreaLength-f.currentValueInset-i.currentValueMaxWidth,a="left";break;case"center":n=.5*i.inputAreaLength,a="middle";break;default:n=f.currentValueInset,a="left"}var s=l.ensureSingle(e,"text",f.labelClass,(function(e){e.attr({"text-anchor":a,"data-notex":1})})),u=t.currentvalue.prefix?t.currentvalue.prefix:"";if("string"==typeof r)u+=r;else{var d=t.steps[t.active].label,h=t._gd._fullLayout._meta;h&&(d=l.templateString(d,h)),u+=d}t.currentvalue.suffix&&(u+=t.currentvalue.suffix),s.call(o.font,t.currentvalue.font).text(u).call(c.convertToTspans,t._gd);var m=c.lineCount(s),y=(i.currentValueMaxLines+1-m)*t.currentvalue.font.size*p;return c.positionText(s,n,y),s}}function b(e,t,r){l.ensureSingle(e,"rect",f.gripRectClass,(function(n){n.call(k,t,e,r).style("pointer-events","all")})).attr({width:f.gripWidth,height:f.gripHeight,rx:f.gripRadius,ry:f.gripRadius}).call(i.stroke,r.bordercolor).call(i.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px")}function _(e,t,r){var n=l.ensureSingle(e,"text",f.labelClass,(function(e){e.attr({"text-anchor":"middle","data-notex":1})})),a=t.step.label,i=r._gd._fullLayout._meta;return i&&(a=l.templateString(a,i)),n.call(o.font,r.font).text(a).call(c.convertToTspans,r._gd),n}function w(e,t){var r=l.ensureSingle(e,"g",f.labelsClass),a=t._dims,i=r.selectAll("g."+f.labelGroupClass).data(a.labelSteps);i.enter().append("g").classed(f.labelGroupClass,!0),i.exit().remove(),i.each((function(e){var r=n.select(this);r.call(_,e,t),o.setTranslate(r,S(t,e.fraction),f.tickOffset+t.ticklen+t.font.size*p+f.labelOffset+a.currentValueTotalHeight)}))}function T(e,t,r,n,a){var i=Math.round(n*(r._stepCount-1)),o=r._visibleSteps[i]._index;o!==r.active&&M(e,t,r,o,!0,a)}function M(e,t,r,n,i,o){var l=r.active;r.active=n,u(e.layout,f.name,r).applyUpdate("active",n);var s=r.steps[r.active];t.call(L,r,o),t.call(x,r),e.emit("plotly_sliderchange",{slider:r,step:r.steps[r.active],interaction:i,previousActive:l}),s&&s.method&&i&&(t._nextMethod?(t._nextMethod.step=s,t._nextMethod.doCallback=i,t._nextMethod.doTransition=o):(t._nextMethod={step:s,doCallback:i,doTransition:o},t._nextMethodRaf=window.requestAnimationFrame((function(){var r=t._nextMethod.step;r.method&&(r.execute&&a.executeAPICommand(e,r.method,r.args),t._nextMethod=null,t._nextMethodRaf=null)}))))}function k(e,t,r){var a=r.node(),o=n.select(t);function l(){return r.data()[0]}function s(){var e=l();t.emit("plotly_sliderstart",{slider:e});var s=r.select("."+f.gripRectClass);n.event.stopPropagation(),n.event.preventDefault(),s.call(i.fill,e.activebgcolor);var c=O(e,n.mouse(a)[0]);function u(){var e=l(),i=O(e,n.mouse(a)[0]);T(t,r,e,i,!1)}function d(){var e=l();e._dragging=!1,s.call(i.fill,e.bgcolor),o.on("mouseup",null),o.on("mousemove",null),o.on("touchend",null),o.on("touchmove",null),t.emit("plotly_sliderend",{slider:e,step:e.steps[e.active]})}T(t,r,e,c,!0),e._dragging=!0,o.on("mousemove",u),o.on("touchmove",u),o.on("mouseup",d),o.on("touchend",d)}e.on("mousedown",s),e.on("touchstart",s)}function A(e,t){var r=e.selectAll("rect."+f.tickRectClass).data(t._visibleSteps),a=t._dims;r.enter().append("rect").classed(f.tickRectClass,!0),r.exit().remove(),r.attr({width:t.tickwidth+"px","shape-rendering":"crispEdges"}),r.each((function(e,r){var l=r%a.labelStride==0,s=n.select(this);s.attr({height:l?t.ticklen:t.minorticklen}).call(i.fill,t.tickcolor),o.setTranslate(s,S(t,r/(t._stepCount-1))-.5*t.tickwidth,(l?f.tickOffset:f.minorTickOffset)+a.currentValueTotalHeight)}))}function L(e,t,r){for(var n=e.select("rect."+f.gripRectClass),a=0,i=0;i<t._stepCount;i++)if(t._visibleSteps[i]._index===t.active){a=i;break}var o=S(t,a/(t._stepCount-1));if(!t._invokingCommand){var l=n;r&&t.transition.duration>0&&(l=l.transition().duration(t.transition.duration).ease(t.transition.easing)),l.attr("transform",s(o-.5*f.gripWidth,t._dims.currentValueTotalHeight))}}function S(e,t){var r=e._dims;return r.inputAreaStart+f.stepInset+(r.inputAreaLength-2*f.stepInset)*Math.min(1,Math.max(0,t))}function O(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-f.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*f.stepInset-2*r.inputAreaStart)))}function D(e,t,r){var n=r._dims,a=l.ensureSingle(e,"rect",f.railTouchRectClass,(function(n){n.call(k,t,e,r).style("pointer-events","all")}));a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,f.tickOffset+r.ticklen+n.labelHeight)}).call(i.fill,r.bgcolor).attr("opacity",0),o.setTranslate(a,0,n.currentValueTotalHeight)}function C(e,t){var r=t._dims,n=r.inputAreaLength-2*f.railInset,a=l.ensureSingle(e,"rect",f.railRectClass);a.attr({width:n,height:f.railWidth,rx:f.railRadius,ry:f.railRadius,"shape-rendering":"crispEdges"}).call(i.stroke,t.bordercolor).call(i.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),o.setTranslate(a,f.railInset,.5*(r.inputAreaWidth-f.railWidth)+r.currentValueTotalHeight)}t.exports=function(e){var t=e._fullLayout,r=function(e,t){for(var r=e[f.name],n=[],a=0;a<r.length;a++){var i=r[a];i.visible&&(i._gd=t,n.push(i))}return n}(t,e),i=t._infolayer.selectAll("g."+f.containerClassName).data(r.length>0?[0]:[]);function l(t){t._commandObserver&&(t._commandObserver.remove(),delete t._commandObserver),a.autoMargin(e,y(t))}if(i.enter().append("g").classed(f.containerClassName,!0).style("cursor","ew-resize"),i.exit().each((function(){n.select(this).selectAll("g."+f.groupClassName).each(l)})).remove(),0!==r.length){var s=i.selectAll("g."+f.groupClassName).data(r,g);s.enter().append("g").classed(f.groupClassName,!0),s.exit().each(l).remove();for(var c=0;c<r.length;c++){var u=r[c];v(e,u)}s.each((function(t){var r=n.select(this);(function(e){var t=e._dims;t.labelSteps=[];for(var r=e._stepCount,n=0;n<r;n+=t.labelStride)t.labelSteps.push({fraction:n/(r-1),step:e._visibleSteps[n]})})(t),a.manageCommandObserver(e,t,t._visibleSteps,(function(t){var n=r.data()[0];n.active!==t.index&&(n._dragging||M(e,r,n,t.index,!1,!0))})),function(e,t,r){(r.steps[r.active]||{}).visible||(r.active=r._visibleSteps[0]._index),t.call(x,r).call(C,r).call(w,r).call(A,r).call(D,e,r).call(b,e,r);var n=r._dims;o.setTranslate(t,n.lx+r.pad.l,n.ly+r.pad.t),t.call(L,r,!1),t.call(x,r)}(e,n.select(this),t)}))}}},{"../../constants/alignment":262,"../../lib":287,"../../lib/svg_text_utils":310,"../../plot_api/plot_template":323,"../../plots/plots":369,"../color":157,"../drawing":179,"./constants":251,"@plotly/d3":20}],254:[function(e,t,r){"use strict";var n=e("./constants");t.exports={moduleType:"component",name:n.name,layoutAttributes:e("./attributes"),supplyLayoutDefaults:e("./defaults"),draw:e("./draw")}},{"./attributes":250,"./constants":251,"./defaults":252,"./draw":253}],255:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("fast-isnumeric"),i=e("../../plots/plots"),o=e("../../registry"),l=e("../../lib"),s=l.strTranslate,c=e("../drawing"),u=e("../color"),f=e("../../lib/svg_text_utils"),d=e("../../constants/interactions"),p=e("../../constants/alignment").OPPOSITE_SIDE,h=/ [XY][0-9]* /;t.exports={draw:function(e,t,r){var m,y=r.propContainer,g=r.propName,v=r.placeholder,x=r.traceIndex,b=r.avoid||{},_=r.attributes,w=r.transform,T=r.containerGroup,M=e._fullLayout,k=1,A=!1,L=y.title,S=(L&&L.text?L.text:"").trim(),O=L&&L.font?L.font:{},D=O.family,C=O.size,E=O.color;"title.text"===g?m="titleText":-1!==g.indexOf("axis")?m="axisTitleText":g.indexOf(!0)&&(m="colorbarTitleText");var P=e._context.edits[m];""===S?k=0:S.replace(h," % ")===v.replace(h," % ")&&(k=.2,A=!0,P||(S="")),r._meta?S=l.templateString(S,r._meta):M._meta&&(S=l.templateString(S,M._meta));var R=S||P;T||(T=l.ensureSingle(M._infolayer,"g","g-"+t));var z=T.selectAll("text").data(R?[0]:[]);if(z.enter().append("text"),z.text(S).attr("class",t),z.exit().remove(),!R)return T;function I(e){l.syncOrAsync([N,F],e)}function N(t){var r;return w?(r="",w.rotate&&(r+="rotate("+[w.rotate,_.x,_.y]+")"),w.offset&&(r+=s(0,w.offset))):r=null,t.attr("transform",r),t.style({"font-family":D,"font-size":n.round(C,2)+"px",fill:u.rgb(E),opacity:k*u.opacity(E),"font-weight":i.fontWeight}).attr(_).call(f.convertToTspans,e),i.previousPromises(e)}function F(e){var t=n.select(e.node().parentNode);if(b&&b.selection&&b.side&&S){t.attr("transform",null);var r=p[b.side],i="left"===b.side||"top"===b.side?-1:1,o=a(b.pad)?b.pad:2,u=c.bBox(t.node()),f={left:0,top:0,right:M.width,bottom:M.height},d=b.maxShift||i*(f[b.side]-u[b.side]),h=0;if(d<0)h=d;else{var m=b.offsetLeft||0,y=b.offsetTop||0;u.left-=m,u.right-=m,u.top-=y,u.bottom-=y,b.selection.each((function(){var e=c.bBox(this);l.bBoxIntersect(u,e,o)&&(h=Math.max(h,i*(e[b.side]-u[r])+o))})),h=Math.min(d,h)}if(h>0||d<0){var g={left:[-h,0],right:[h,0],top:[0,-h],bottom:[0,h]}[b.side];t.attr("transform",s(g[0],g[1]))}}}return z.call(I),P&&(S?z.on(".opacity",null):(k=0,A=!0,z.text(v).on("mouseover.opacity",(function(){n.select(this).transition().duration(d.SHOW_PLACEHOLDER).style("opacity",1)})).on("mouseout.opacity",(function(){n.select(this).transition().duration(d.HIDE_PLACEHOLDER).style("opacity",0)}))),z.call(f.makeEditable,{gd:e}).on("edit",(function(t){void 0!==x?o.call("_guiRestyle",e,g,t,x):o.call("_guiRelayout",e,g,t)})).on("cancel",(function(){this.text(this.attr("data-unformatted")).call(I)})).on("input",(function(e){this.text(e||" ").call(f.positionText,_.x,_.y)}))),z.classed("js-placeholder",A),T}}},{"../../constants/alignment":262,"../../constants/interactions":266,"../../lib":287,"../../lib/svg_text_utils":310,"../../plots/plots":369,"../../registry":376,"../color":157,"../drawing":179,"@plotly/d3":20,"fast-isnumeric":33}],256:[function(e,t,r){"use strict";var n=e("../../plots/font_attributes"),a=e("../color/attributes"),i=e("../../lib/extend").extendFlat,o=e("../../plot_api/edit_types").overrideAll,l=e("../../plots/pad_attributes"),s=e("../../plot_api/plot_template").templatedArray,c=s("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});t.exports=o(s("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:c,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:i(l({editType:"arraydraw"}),{}),font:n({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:a.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},{"../../lib/extend":281,"../../plot_api/edit_types":316,"../../plot_api/plot_template":323,"../../plots/font_attributes":363,"../../plots/pad_attributes":368,"../color/attributes":156}],257:[function(e,t,r){"use strict";t.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},{}],258:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../plots/array_container_defaults"),i=e("./attributes"),o=e("./constants").name,l=i.buttons;function s(e,t,r){function o(r,a){return n.coerce(e,t,i,r,a)}o("visible",a(e,t,{name:"buttons",handleItemDefaults:c}).length>0)&&(o("active"),o("direction"),o("type"),o("showactive"),o("x"),o("y"),n.noneOrAll(e,t,["x","y"]),o("xanchor"),o("yanchor"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),n.coerceFont(o,"font",r.font),o("bgcolor",r.paper_bgcolor),o("bordercolor"),o("borderwidth"))}function c(e,t){function r(r,a){return n.coerce(e,t,l,r,a)}r("visible","skip"===e.method||Array.isArray(e.args))&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}t.exports=function(e,t){a(e,t,{name:o,handleItemDefaults:s})}},{"../../lib":287,"../../plots/array_container_defaults":329,"./attributes":256,"./constants":257}],259:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../../plots/plots"),i=e("../color"),o=e("../drawing"),l=e("../../lib"),s=e("../../lib/svg_text_utils"),c=e("../../plot_api/plot_template").arrayEditor,u=e("../../constants/alignment").LINE_SPACING,f=e("./constants"),d=e("./scrollbox");function p(e){return e._index}function h(e,t){return+e.attr(f.menuIndexAttrName)===t._index}function m(e,t,r,n,a,i,o,l){t.active=o,c(e.layout,f.name,t).applyUpdate("active",o),"buttons"===t.type?g(e,n,null,null,t):"dropdown"===t.type&&(a.attr(f.menuIndexAttrName,"-1"),y(e,n,a,i,t),l||g(e,n,a,i,t))}function y(e,t,r,n,a){var i=l.ensureSingle(t,"g",f.headerClassName,(function(e){e.style("pointer-events","all")})),s=a._dims,c=a.active,u=a.buttons[c]||f.blankHeaderOpts,d={y:a.pad.t,yPad:0,x:a.pad.l,xPad:0,index:0},p={width:s.headerWidth,height:s.headerHeight};i.call(v,a,u,e).call(A,a,d,p),l.ensureSingle(t,"text",f.headerArrowClassName,(function(e){e.attr("text-anchor","end").call(o.font,a.font).text(f.arrowSymbol[a.direction])})).attr({x:s.headerWidth-f.arrowOffsetX+a.pad.l,y:s.headerHeight/2+f.textOffsetY+a.pad.t}),i.on("click",(function(){r.call(L,String(h(r,a)?-1:a._index)),g(e,t,r,n,a)})),i.on("mouseover",(function(){i.call(w)})),i.on("mouseout",(function(){i.call(T,a)})),o.setTranslate(t,s.lx,s.ly)}function g(e,t,r,i,o){r||(r=t).attr("pointer-events","all");var s=function(e){return-1==+e.attr(f.menuIndexAttrName)}(r)&&"buttons"!==o.type?[]:o.buttons,c="dropdown"===o.type?f.dropdownButtonClassName:f.buttonClassName,u=r.selectAll("g."+c).data(l.filterVisible(s)),d=u.enter().append("g").classed(c,!0),p=u.exit();"dropdown"===o.type?(d.attr("opacity","0").transition().attr("opacity","1"),p.transition().attr("opacity","0").remove()):p.remove();var h=0,y=0,g=o._dims,x=-1!==["up","down"].indexOf(o.direction);"dropdown"===o.type&&(x?y=g.headerHeight+f.gapButtonHeader:h=g.headerWidth+f.gapButtonHeader),"dropdown"===o.type&&"up"===o.direction&&(y=-f.gapButtonHeader+f.gapButton-g.openHeight),"dropdown"===o.type&&"left"===o.direction&&(h=-f.gapButtonHeader+f.gapButton-g.openWidth);var b={x:g.lx+h+o.pad.l,y:g.ly+y+o.pad.t,yPad:f.gapButton,xPad:f.gapButton,index:0},M={l:b.x+o.borderwidth,t:b.y+o.borderwidth};u.each((function(l,s){var c=n.select(this);c.call(v,o,l,e).call(A,o,b),c.on("click",(function(){n.event.defaultPrevented||(l.execute&&(l.args2&&o.active===s?(m(e,o,0,t,r,i,-1),a.executeAPICommand(e,l.method,l.args2)):(m(e,o,0,t,r,i,s),a.executeAPICommand(e,l.method,l.args))),e.emit("plotly_buttonclicked",{menu:o,button:l,active:o.active}))})),c.on("mouseover",(function(){c.call(w)})),c.on("mouseout",(function(){c.call(T,o),u.call(_,o)}))})),u.call(_,o),x?(M.w=Math.max(g.openWidth,g.headerWidth),M.h=b.y-M.t):(M.w=b.x-M.l,M.h=Math.max(g.openHeight,g.headerHeight)),M.direction=o.direction,i&&(u.size()?function(e,t,r,n,a,i){var o,l,s,c=a.direction,u="up"===c||"down"===c,d=a._dims,p=a.active;if(u)for(l=0,s=0;s<p;s++)l+=d.heights[s]+f.gapButton;else for(o=0,s=0;s<p;s++)o+=d.widths[s]+f.gapButton;n.enable(i,o,l),n.hbar&&n.hbar.attr("opacity","0").transition().attr("opacity","1"),n.vbar&&n.vbar.attr("opacity","0").transition().attr("opacity","1")}(0,0,0,i,o,M):function(e){var t=!!e.hbar,r=!!e.vbar;t&&e.hbar.transition().attr("opacity","0").each("end",(function(){t=!1,r||e.disable()})),r&&e.vbar.transition().attr("opacity","0").each("end",(function(){r=!1,t||e.disable()}))}(i))}function v(e,t,r,n){e.call(x,t).call(b,t,r,n)}function x(e,t){l.ensureSingle(e,"rect",f.itemRectClassName,(function(e){e.attr({rx:f.rx,ry:f.ry,"shape-rendering":"crispEdges"})})).call(i.stroke,t.bordercolor).call(i.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function b(e,t,r,n){var a=l.ensureSingle(e,"text",f.itemTextClassName,(function(e){e.attr({"text-anchor":"start","data-notex":1})})),i=r.label,c=n._fullLayout._meta;c&&(i=l.templateString(i,c)),a.call(o.font,t.font).text(i).call(s.convertToTspans,n)}function _(e,t){var r=t.active;e.each((function(e,a){var o=n.select(this);a===r&&t.showactive&&o.select("rect."+f.itemRectClassName).call(i.fill,f.activeColor)}))}function w(e){e.select("rect."+f.itemRectClassName).call(i.fill,f.hoverColor)}function T(e,t){e.select("rect."+f.itemRectClassName).call(i.fill,t.bgcolor)}function M(e,t){var r=t._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},i=o.tester.selectAll("g."+f.dropdownButtonClassName).data(l.filterVisible(t.buttons));i.enter().append("g").classed(f.dropdownButtonClassName,!0);var c=-1!==["up","down"].indexOf(t.direction);i.each((function(a,i){var l=n.select(this);l.call(v,t,a,e);var d=l.select("."+f.itemTextClassName),p=d.node()&&o.bBox(d.node()).width,h=Math.max(p+f.textPadX,f.minWidth),m=t.font.size*u,y=s.lineCount(d),g=Math.max(m*y,f.minHeight)+f.textOffsetY;g=Math.ceil(g),h=Math.ceil(h),r.widths[i]=h,r.heights[i]=g,r.height1=Math.max(r.height1,g),r.width1=Math.max(r.width1,h),c?(r.totalWidth=Math.max(r.totalWidth,h),r.openWidth=r.totalWidth,r.totalHeight+=g+f.gapButton,r.openHeight+=g+f.gapButton):(r.totalWidth+=h+f.gapButton,r.openWidth+=h+f.gapButton,r.totalHeight=Math.max(r.totalHeight,g),r.openHeight=r.totalHeight)})),c?r.totalHeight-=f.gapButton:r.totalWidth-=f.gapButton,r.headerWidth=r.width1+f.arrowPadX,r.headerHeight=r.height1,"dropdown"===t.type&&(c?(r.width1+=f.arrowPadX,r.totalHeight=r.height1):r.totalWidth=r.width1,r.totalWidth+=f.arrowPadX),i.remove();var d=r.totalWidth+t.pad.l+t.pad.r,p=r.totalHeight+t.pad.t+t.pad.b,h=e._fullLayout._size;r.lx=h.l+h.w*t.x,r.ly=h.t+h.h*(1-t.y);var m="left";l.isRightAnchor(t)&&(r.lx-=d,m="right"),l.isCenterAnchor(t)&&(r.lx-=d/2,m="center");var y="top";l.isBottomAnchor(t)&&(r.ly-=p,y="bottom"),l.isMiddleAnchor(t)&&(r.ly-=p/2,y="middle"),r.totalWidth=Math.ceil(r.totalWidth),r.totalHeight=Math.ceil(r.totalHeight),r.lx=Math.round(r.lx),r.ly=Math.round(r.ly),a.autoMargin(e,k(t),{x:t.x,y:t.y,l:d*({right:1,center:.5}[m]||0),r:d*({left:1,center:.5}[m]||0),b:p*({top:1,middle:.5}[y]||0),t:p*({bottom:1,middle:.5}[y]||0)})}function k(e){return f.autoMarginIdRoot+e._index}function A(e,t,r,n){n=n||{};var a=e.select("."+f.itemRectClassName),i=e.select("."+f.itemTextClassName),l=t.borderwidth,c=r.index,d=t._dims;o.setTranslate(e,l+r.x,l+r.y);var p=-1!==["up","down"].indexOf(t.direction),h=n.height||(p?d.heights[c]:d.height1);a.attr({x:0,y:0,width:n.width||(p?d.width1:d.widths[c]),height:h});var m=t.font.size*u,y=(s.lineCount(i)-1)*m/2;s.positionText(i,f.textOffsetX,h/2-y+f.textOffsetY),p?r.y+=d.heights[c]+r.yPad:r.x+=d.widths[c]+r.xPad,r.index++}function L(e,t){e.attr(f.menuIndexAttrName,t||"-1").selectAll("g."+f.dropdownButtonClassName).remove()}t.exports=function(e){var t=e._fullLayout,r=l.filterVisible(t[f.name]);function i(t){a.autoMargin(e,k(t))}var o=t._menulayer.selectAll("g."+f.containerClassName).data(r.length>0?[0]:[]);if(o.enter().append("g").classed(f.containerClassName,!0).style("cursor","pointer"),o.exit().each((function(){n.select(this).selectAll("g."+f.headerGroupClassName).each(i)})).remove(),0!==r.length){var s=o.selectAll("g."+f.headerGroupClassName).data(r,p);s.enter().append("g").classed(f.headerGroupClassName,!0);for(var c=l.ensureSingle(o,"g",f.dropdownButtonGroupClassName,(function(e){e.style("pointer-events","all")})),u=0;u<r.length;u++){var v=r[u];M(e,v)}var x="updatemenus"+t._uid,b=new d(e,c,x);s.enter().size()&&(c.node().parentNode.appendChild(c.node()),c.call(L)),s.exit().each((function(e){c.call(L),i(e)})).remove(),s.each((function(t){var r=n.select(this),i="dropdown"===t.type?c:null;a.manageCommandObserver(e,t,t.buttons,(function(n){m(e,t,t.buttons[n.index],r,i,b,n.index,!0)})),"dropdown"===t.type?(y(e,r,c,b,t),h(c,t)&&g(e,r,c,b,t)):g(e,r,null,null,t)}))}}},{"../../constants/alignment":262,"../../lib":287,"../../lib/svg_text_utils":310,"../../plot_api/plot_template":323,"../../plots/plots":369,"../color":157,"../drawing":179,"./constants":257,"./scrollbox":261,"@plotly/d3":20}],260:[function(e,t,r){arguments[4][254][0].apply(r,arguments)},{"./attributes":256,"./constants":257,"./defaults":258,"./draw":259,dup:254}],261:[function(e,t,r){"use strict";t.exports=l;var n=e("@plotly/d3"),a=e("../color"),i=e("../drawing"),o=e("../../lib");function l(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}l.barWidth=2,l.barLength=20,l.barRadius=2,l.barPad=1,l.barColor="#808BA4",l.prototype.enable=function(e,t,r){var o=this.gd._fullLayout,s=o.width,c=o.height;this.position=e;var u,f,d,p,h=this.position.l,m=this.position.w,y=this.position.t,g=this.position.h,v=this.position.direction,x="down"===v,b="left"===v,_="up"===v,w=m,T=g;x||b||"right"===v||_||(this.position.direction="down",x=!0),x||_?(f=(u=h)+w,x?(d=y,T=(p=Math.min(d+T,c))-d):T=(p=y+T)-(d=Math.max(p-T,0))):(p=(d=y)+T,b?w=(f=h+w)-(u=Math.max(f-w,0)):(u=h,w=(f=Math.min(u+w,s))-u)),this._box={l:u,t:d,w,h:T};var M=m>w,k=l.barLength+2*l.barPad,A=l.barWidth+2*l.barPad,L=h,S=y+g;S+A>c&&(S=c-A);var O=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);O.exit().on(".drag",null).remove(),O.enter().append("rect").classed("scrollbar-horizontal",!0).call(a.fill,l.barColor),M?(this.hbar=O.attr({rx:l.barRadius,ry:l.barRadius,x:L,y:S,width:k,height:A}),this._hbarXMin=L+k/2,this._hbarTranslateMax=w-k):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var D=g>T,C=l.barWidth+2*l.barPad,E=l.barLength+2*l.barPad,P=h+m,R=y;P+C>s&&(P=s-C);var z=this.container.selectAll("rect.scrollbar-vertical").data(D?[0]:[]);z.exit().on(".drag",null).remove(),z.enter().append("rect").classed("scrollbar-vertical",!0).call(a.fill,l.barColor),D?(this.vbar=z.attr({rx:l.barRadius,ry:l.barRadius,x:P,y:R,width:C,height:E}),this._vbarYMin=R+E/2,this._vbarTranslateMax=T-E):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var I=this.id,N=u-.5,F=D?f+C+.5:f+.5,j=d-.5,B=M?p+A+.5:p+.5,H=o._topdefs.selectAll("#"+I).data(M||D?[0]:[]);if(H.exit().remove(),H.enter().append("clipPath").attr("id",I).append("rect"),M||D?(this._clipRect=H.select("rect").attr({x:Math.floor(N),y:Math.floor(j),width:Math.ceil(F)-Math.floor(N),height:Math.ceil(B)-Math.floor(j)}),this.container.call(i.setClipUrl,I,this.gd),this.bg.attr({x:h,y,width:m,height:g})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),M||D){var U=n.behavior.drag().on("dragstart",(function(){n.event.sourceEvent.preventDefault()})).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(U);var Y=n.behavior.drag().on("dragstart",(function(){n.event.sourceEvent.preventDefault(),n.event.sourceEvent.stopPropagation()})).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(Y),D&&this.vbar.on(".drag",null).call(Y)}this.setTranslate(t,r)},l.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},l.prototype._onBoxDrag=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e-=n.event.dx),this.vbar&&(t-=n.event.dy),this.setTranslate(e,t)},l.prototype._onBoxWheel=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e+=n.event.deltaY),this.vbar&&(t+=n.event.deltaY),this.setTranslate(e,t)},l.prototype._onBarDrag=function(){var e=this.translateX,t=this.translateY;if(this.hbar){var r=e+this._hbarXMin,a=r+this._hbarTranslateMax;e=(o.constrain(n.event.x,r,a)-r)/(a-r)*(this.position.w-this._box.w)}if(this.vbar){var i=t+this._vbarYMin,l=i+this._vbarTranslateMax;t=(o.constrain(n.event.y,i,l)-i)/(l-i)*(this.position.h-this._box.h)}this.setTranslate(e,t)},l.prototype.setTranslate=function(e,t){var r=this.position.w-this._box.w,n=this.position.h-this._box.h;if(e=o.constrain(e||0,0,r),t=o.constrain(t||0,0,n),this.translateX=e,this.translateY=t,this.container.call(i.setTranslate,this._box.l-this.position.l-e,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+e-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var a=e/r;this.hbar.call(i.setTranslate,e+a*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(i.setTranslate,e,t+l*this._vbarTranslateMax)}}},{"../../lib":287,"../color":157,"../drawing":179,"@plotly/d3":20}],262:[function(e,t,r){"use strict";t.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},{}],263:[function(e,t,r){"use strict";t.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}},{}],264:[function(e,t,r){"use strict";t.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},{}],265:[function(e,t,r){"use strict";t.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},{}],266:[function(e,t,r){"use strict";t.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},{}],267:[function(e,t,r){"use strict";t.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},{}],268:[function(e,t,r){"use strict";r.xmlns="http://www.w3.org/2000/xmlns/",r.svg="http://www.w3.org/2000/svg",r.xlink="http://www.w3.org/1999/xlink",r.svgAttrs={xmlns:r.svg,"xmlns:xlink":r.xlink}},{}],269:[function(e,t,r){"use strict";r.version=e("./version").version,e("native-promise-only"),e("../build/plotcss");for(var n=e("./registry"),a=r.register=n.register,i=e("./plot_api"),o=Object.keys(i),l=0;l<o.length;l++){var s=o[l];"_"!==s.charAt(0)&&(r[s]=i[s]),a({moduleType:"apiMethod",name:s,fn:i[s]})}a(e("./traces/scatter")),a([e("./components/legend"),e("./components/fx"),e("./components/annotations"),e("./components/annotations3d"),e("./components/shapes"),e("./components/images"),e("./components/updatemenus"),e("./components/sliders"),e("./components/rangeslider"),e("./components/rangeselector"),e("./components/grid"),e("./components/errorbars"),e("./components/colorscale"),e("./components/colorbar"),e("./components/modebar")]),a([e("./locale-en"),e("./locale-en-us")]),window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(a(window.PlotlyLocales),delete window.PlotlyLocales),r.Icons=e("./fonts/ploticon");var c=e("./components/fx"),u=e("./plots/plots");r.Plots={resize:u.resize,graphJson:u.graphJson,sendDataToCloud:u.sendDataToCloud},r.Fx={hover:c.hover,unhover:c.unhover,loneHover:c.loneHover,loneUnhover:c.loneUnhover},r.Snapshot=e("./snapshot"),r.PlotSchema=e("./plot_api/plot_schema")},{"../build/plotcss":1,"./components/annotations":148,"./components/annotations3d":153,"./components/colorbar":163,"./components/colorscale":169,"./components/errorbars":185,"./components/fx":197,"./components/grid":201,"./components/images":206,"./components/legend":214,"./components/modebar":220,"./components/rangeselector":228,"./components/rangeslider":235,"./components/shapes":249,"./components/sliders":254,"./components/updatemenus":260,"./fonts/ploticon":270,"./locale-en":314,"./locale-en-us":313,"./plot_api":318,"./plot_api/plot_schema":322,"./plots/plots":369,"./registry":376,"./snapshot":381,"./traces/scatter":509,"./version":549,"native-promise-only":72}],270:[function(e,t,r){"use strict";t.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'><defs><style>.cls-1 {fill: #3f4f75;} .cls-2 {fill: #80cfbe;} .cls-3 {fill: #fff;}</style></defs><title>plotly-logomark"}}},{}],271:[function(e,t,r){"use strict";r.isLeftAnchor=function(e){return"left"===e.xanchor||"auto"===e.xanchor&&e.x<=1/3},r.isCenterAnchor=function(e){return"center"===e.xanchor||"auto"===e.xanchor&&e.x>1/3&&e.x<2/3},r.isRightAnchor=function(e){return"right"===e.xanchor||"auto"===e.xanchor&&e.x>=2/3},r.isTopAnchor=function(e){return"top"===e.yanchor||"auto"===e.yanchor&&e.y>=2/3},r.isMiddleAnchor=function(e){return"middle"===e.yanchor||"auto"===e.yanchor&&e.y>1/3&&e.y<2/3},r.isBottomAnchor=function(e){return"bottom"===e.yanchor||"auto"===e.yanchor&&e.y<=1/3}},{}],272:[function(e,t,r){"use strict";var n=e("./mod"),a=n.mod,i=n.modHalf,o=Math.PI,l=2*o;function s(e){return Math.abs(e[1]-e[0])>l-1e-14}function c(e,t){return i(t-e,l)}function u(e,t){if(s(t))return!0;var r,n;t[0](n=a(n,l))&&(n+=l);var i=a(e,l),o=i+l;return i>=r&&i<=n||o>=r&&o<=n}function f(e,t,r,n,a,i,c){a=a||0,i=i||0;var u,f,d,p,h,m=s([r,n]);function y(e,t){return[e*Math.cos(t)+a,i-e*Math.sin(t)]}m?(u=0,f=o,d=l):r=a&&e<=i);var a,i},pathArc:function(e,t,r,n,a){return f(null,e,t,r,n,a,0)},pathSector:function(e,t,r,n,a){return f(null,e,t,r,n,a,1)},pathAnnulus:function(e,t,r,n,a,i){return f(e,t,r,n,a,i,1)}}},{"./mod":294}],273:[function(e,t,r){"use strict";var n=Array.isArray,a=ArrayBuffer,i=DataView;function o(e){return a.isView(e)&&!(e instanceof i)}function l(e){return n(e)||o(e)}function s(e,t,r){if(l(e)){if(l(e[0])){for(var n=r,a=0;aa.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,a){e%1||!n(e)||void 0!==a.min&&ea.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,n){if("string"!=typeof e){var a="number"==typeof e;!0!==n.strict&&a?t.set(String(e)):t.set(r)}else n.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){a(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){Array.isArray(e)&&e.length&&e.every((function(e){return a(e).isValid()}))?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(o.get(e,r))}},angle:{coerceFunction:function(e,t,r){"auto"===e?t.set("auto"):n(e)?t.set(f(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,n){var a=n.regex||u(r);"string"==typeof e&&a.test(e)?t.set(e):t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r||"string"==typeof e&&!!u(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,n){if("string"==typeof e)if(-1===(n.extras||[]).indexOf(e)){for(var a=e.split("+"),i=0;i=n&&e<=a?e:u}if("string"!=typeof e&&"number"!=typeof e)return u;e=String(e);var c=_(t),g=e.charAt(0);!c||"G"!==g&&"g"!==g||(e=e.substr(1),t="");var w=c&&"chinese"===t.substr(0,7),T=e.match(w?x:v);if(!T)return u;var M=T[1],k=T[3]||"1",A=Number(T[5]||1),L=Number(T[7]||0),S=Number(T[9]||0),O=Number(T[11]||0);if(c){if(2===M.length)return u;var D;M=Number(M);try{var C=y.getComponentMethod("calendars","getCal")(t);if(w){var E="i"===k.charAt(k.length-1);k=parseInt(k,10),D=C.newDate(M,C.toMonthIndex(M,k,E),A)}else D=C.newDate(M,Number(k),A)}catch(e){return u}return D?(D.toJD()-m)*f+L*d+S*p+O*h:u}M=2===M.length?(Number(M)+2e3-b)%100+b:Number(M),k-=1;var P=new Date(Date.UTC(2e3,k,A,L,S));return P.setUTCFullYear(M),P.getUTCMonth()!==k||P.getUTCDate()!==A?u:P.getTime()+O*h},n=r.MIN_MS=r.dateTime2ms("-9999"),a=r.MAX_MS=r.dateTime2ms("9999-12-31 23:59:59.9999"),r.isDateTime=function(e,t){return r.dateTime2ms(e,t)!==u};var T=90*f,M=3*d,k=5*p;function A(e,t,r,n,a){if((t||r||n||a)&&(e+=" "+w(t,2)+":"+w(r,2),(n||a)&&(e+=":"+w(n,2),a))){for(var i=4;a%10==0;)i-=1,a/=10;e+="."+w(a,i)}return e}r.ms2DateTime=function(e,t,r){if("number"!=typeof e||!(e>=n&&e<=a))return u;t||(t=0);var i,o,l,c,v,x,b=Math.floor(10*s(e+.05,1)),w=Math.round(e-b/10);if(_(r)){var L=Math.floor(w/f)+m,S=Math.floor(s(e,f));try{i=y.getComponentMethod("calendars","getCal")(r).fromJD(L).formatDate("yyyy-mm-dd")}catch(e){i=g("G%Y-%m-%d")(new Date(w))}if("-"===i.charAt(0))for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=t=n+f&&e<=a-f))return u;var t=Math.floor(10*s(e+.05,1)),r=new Date(Math.round(e-t/10));return A(i("%Y-%m-%d")(r),r.getHours(),r.getMinutes(),r.getSeconds(),10*r.getUTCMilliseconds()+t)},r.cleanDate=function(e,t,n){if(e===u)return t;if(r.isJSDate(e)||"number"==typeof e&&isFinite(e)){if(_(n))return l.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(!(e=r.ms2DateTimeLocal(+e))&&void 0!==t)return t}else if(!r.isDateTime(e,n))return l.error("unrecognized date",e),t;return e};var L=/%\d?f/g,S=/%h/g,O={1:"1",2:"1",3:"2",4:"2"};function D(e,t,r,n){e=e.replace(L,(function(e){var r=Math.min(+e.charAt(1)||6,6);return(t/1e3%1+2).toFixed(r).substr(2).replace(/0+$/,"")||"0"}));var a=new Date(Math.floor(t+.05));if(e=e.replace(S,(function(){return O[r("%q")(a)]})),_(n))try{e=y.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(e){return"Invalid"}return r(e)(a)}var C=[59,59.9,59.99,59.999,59.9999];r.formatDate=function(e,t,r,n,a,i){if(a=_(a)&&a,!t)if("y"===r)t=i.year;else if("m"===r)t=i.month;else{if("d"!==r)return function(e,t){var r=s(e+.05,f),n=w(Math.floor(r/d),2)+":"+w(s(Math.floor(r/p),60),2);if("M"!==t){o(t)||(t=0);var a=(100+Math.min(s(e/h,60),C[t])).toFixed(t).substr(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+a}return n}(e,r)+"\n"+D(i.dayMonthYear,e,n,a);t=i.dayMonth+"\n"+i.year}return D(t,e,n,a)};var E=3*f;r.incrementMonth=function(e,t,r){r=_(r)&&r;var n=s(e,f);if(e=Math.round(e-n),r)try{var a=Math.round(e/f)+m,i=y.getComponentMethod("calendars","getCal")(r),o=i.fromJD(a);return t%12?i.add(o,t,"m"):i.add(o,t/12,"y"),(o.toJD()-m)*f+n}catch(t){l.error("invalid ms "+e+" in calendar "+r)}var c=new Date(e+E);return c.setUTCMonth(c.getUTCMonth()+t)+n-E},r.findExactDates=function(e,t){for(var r,n,a=0,i=0,l=0,s=0,c=_(t)&&y.getComponentMethod("calendars","getCal")(t),u=0;u1||m<0||m>1?null:{x:e+s*m,y:t+f*m}}function s(e,t,r,n,a){var i=n*e+a*t;if(i<0)return n*n+a*a;if(i>r){var o=n-e,l=a-t;return o*o+l*l}var s=n*t-a*e;return s*s/r}r.segmentsIntersect=l,r.segmentDistance=function(e,t,r,n,a,i,o,c){if(l(e,t,r,n,a,i,o,c))return 0;var u=r-e,f=n-t,d=o-a,p=c-i,h=u*u+f*f,m=d*d+p*p,y=Math.min(s(u,f,h,a-e,i-t),s(u,f,h,o-e,c-t),s(d,p,m,e-a,t-i),s(d,p,m,r-a,n-i));return Math.sqrt(y)},r.getTextLocation=function(e,t,r,l){if(e===a&&l===i||(n={},a=e,i=l),n[r])return n[r];var s=e.getPointAtLength(o(r-l/2,t)),c=e.getPointAtLength(o(r+l/2,t)),u=Math.atan((c.y-s.y)/(c.x-s.x)),f=e.getPointAtLength(o(r,t)),d={x:(4*f.x+s.x+c.x)/6,y:(4*f.y+s.y+c.y)/6,theta:u};return n[r]=d,d},r.clearLocationCache=function(){a=null},r.getVisibleSegment=function(e,t,r){var n,a,i=t.left,o=t.right,l=t.top,s=t.bottom,c=0,u=e.getTotalLength(),f=u;function d(t){var r=e.getPointAtLength(t);0===t?n=r:t===u&&(a=r);var c=r.xo?r.x-o:0,f=r.ys?r.y-s:0;return Math.sqrt(c*c+f*f)}for(var p=d(c);p;){if((c+=p+r)>f)return;p=d(c)}for(p=d(f);p;){if(c>(f-=p+r))return;p=d(f)}return{min:c,max:f,len:f-c,total:u,isClosed:0===c&&f===u&&Math.abs(n.x-a.x)<.1&&Math.abs(n.y-a.y)<.1}},r.findPointOnPath=function(e,t,r,n){for(var a,i,o,l=(n=n||{}).pathLength||e.getTotalLength(),s=n.tolerance||.001,c=n.iterationLimit||30,u=e.getPointAtLength(0)[r]>e.getPointAtLength(l)[r]?-1:1,f=0,d=0,p=l;f0?p=a:d=a,f++}return i}},{"./mod":294}],285:[function(e,t,r){"use strict";t.exports=function(e){return e}},{}],286:[function(e,t,r){"use strict";t.exports=function(e,t){if(!t)return e;var r=1/Math.abs(t),n=r>1?(r*e+r*t)/r:e+t,a=String(n).length;if(a>16){var i=String(t).length;if(a>=String(e).length+i){var o=parseFloat(n).toPrecision(12);-1===o.indexOf("e+")&&(n=+o)}}return n}},{}],287:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("d3-time-format").utcFormat,i=e("d3-format").format,o=e("fast-isnumeric"),l=e("../constants/numerical"),s=l.FP_SAFE,c=-s,u=l.BADNUM,f=t.exports={};f.adjustFormat=function(e){return!e||/^\d[.]\df/.test(e)||/[.]\d%/.test(e)?e:"0.f"===e?"~f":/^\d%/.test(e)?"~%":/^\ds/.test(e)?"~s":!/^[~,.0$]/.test(e)&&/[&fps]/.test(e)?"~"+e:e};var d={};f.warnBadFormat=function(e){var t=String(e);d[t]||(d[t]=1,f.warn('encountered bad format: "'+t+'"'))},f.noFormat=function(e){return String(e)},f.numberFormat=function(e){var t;try{t=i(f.adjustFormat(e))}catch(t){return f.warnBadFormat(e),f.noFormat}return t},f.nestedProperty=e("./nested_property"),f.keyedContainer=e("./keyed_container"),f.relativeAttr=e("./relative_attr"),f.isPlainObject=e("./is_plain_object"),f.toLogRange=e("./to_log_range"),f.relinkPrivateKeys=e("./relink_private");var p=e("./array");f.isTypedArray=p.isTypedArray,f.isArrayOrTypedArray=p.isArrayOrTypedArray,f.isArray1D=p.isArray1D,f.ensureArray=p.ensureArray,f.concat=p.concat,f.maxRowLength=p.maxRowLength,f.minRowLength=p.minRowLength;var h=e("./mod");f.mod=h.mod,f.modHalf=h.modHalf;var m=e("./coerce");f.valObjectMeta=m.valObjectMeta,f.coerce=m.coerce,f.coerce2=m.coerce2,f.coerceFont=m.coerceFont,f.coercePattern=m.coercePattern,f.coerceHoverinfo=m.coerceHoverinfo,f.coerceSelectionMarkerOpacity=m.coerceSelectionMarkerOpacity,f.validate=m.validate;var y=e("./dates");f.dateTime2ms=y.dateTime2ms,f.isDateTime=y.isDateTime,f.ms2DateTime=y.ms2DateTime,f.ms2DateTimeLocal=y.ms2DateTimeLocal,f.cleanDate=y.cleanDate,f.isJSDate=y.isJSDate,f.formatDate=y.formatDate,f.incrementMonth=y.incrementMonth,f.dateTick0=y.dateTick0,f.dfltRange=y.dfltRange,f.findExactDates=y.findExactDates,f.MIN_MS=y.MIN_MS,f.MAX_MS=y.MAX_MS;var g=e("./search");f.findBin=g.findBin,f.sorterAsc=g.sorterAsc,f.sorterDes=g.sorterDes,f.distinctVals=g.distinctVals,f.roundUp=g.roundUp,f.sort=g.sort,f.findIndexOfMin=g.findIndexOfMin,f.sortObjectKeys=e("./sort_object_keys");var v=e("./stats");f.aggNums=v.aggNums,f.len=v.len,f.mean=v.mean,f.median=v.median,f.midRange=v.midRange,f.variance=v.variance,f.stdev=v.stdev,f.interp=v.interp;var x=e("./matrix");f.init2dArray=x.init2dArray,f.transposeRagged=x.transposeRagged,f.dot=x.dot,f.translationMatrix=x.translationMatrix,f.rotationMatrix=x.rotationMatrix,f.rotationXYMatrix=x.rotationXYMatrix,f.apply3DTransform=x.apply3DTransform,f.apply2DTransform=x.apply2DTransform,f.apply2DTransform2=x.apply2DTransform2,f.convertCssMatrix=x.convertCssMatrix,f.inverseTransformMatrix=x.inverseTransformMatrix;var b=e("./angles");f.deg2rad=b.deg2rad,f.rad2deg=b.rad2deg,f.angleDelta=b.angleDelta,f.angleDist=b.angleDist,f.isFullCircle=b.isFullCircle,f.isAngleInsideSector=b.isAngleInsideSector,f.isPtInsideSector=b.isPtInsideSector,f.pathArc=b.pathArc,f.pathSector=b.pathSector,f.pathAnnulus=b.pathAnnulus;var _=e("./anchor_utils");f.isLeftAnchor=_.isLeftAnchor,f.isCenterAnchor=_.isCenterAnchor,f.isRightAnchor=_.isRightAnchor,f.isTopAnchor=_.isTopAnchor,f.isMiddleAnchor=_.isMiddleAnchor,f.isBottomAnchor=_.isBottomAnchor;var w=e("./geometry2d");f.segmentsIntersect=w.segmentsIntersect,f.segmentDistance=w.segmentDistance,f.getTextLocation=w.getTextLocation,f.clearLocationCache=w.clearLocationCache,f.getVisibleSegment=w.getVisibleSegment,f.findPointOnPath=w.findPointOnPath;var T=e("./extend");f.extendFlat=T.extendFlat,f.extendDeep=T.extendDeep,f.extendDeepAll=T.extendDeepAll,f.extendDeepNoArrays=T.extendDeepNoArrays;var M=e("./loggers");f.log=M.log,f.warn=M.warn,f.error=M.error;var k=e("./regex");f.counterRegex=k.counter;var A=e("./throttle");f.throttle=A.throttle,f.throttleDone=A.done,f.clearThrottle=A.clear;var L=e("./dom");function S(e){var t={};for(var r in e)for(var n=e[r],a=0;as||e=t)&&o(e)&&e>=0&&e%1==0},f.noop=e("./noop"),f.identity=e("./identity"),f.repeat=function(e,t){for(var r=new Array(t),n=0;nr?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))},f.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r},f.simpleMap=function(e,t,r,n,a){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,r)?a>10?(f.warn("randstr failed uniqueness"),s):e(t,r,n,(a||0)+1):s},f.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={optionList:[],_newoption:function(n){n[t]=e,r[n.name]=n,r.optionList.push(n)}};return r["_"+t]=e,r},f.smooth=function(e,t){if((t=Math.round(t)||0)<2)return e;var r,n,a,i,o=e.length,l=2*o,s=2*t-1,c=new Array(s),u=new Array(o);for(r=0;r=l&&(a-=l*Math.floor(a/l)),a<0?a=-1-a:a>=o&&(a=l-1-a),i+=e[a]*c[n];u[r]=i}return u},f.syncOrAsync=function(e,t,r){var n;function a(){return f.syncOrAsync(e,t,r)}for(;e.length;)if((n=(0,e.splice(0,1)[0])(t))&&n.then)return n.then(a);return r&&r(t)},f.stripTrailingSlash=function(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e},f.noneOrAll=function(e,t,r){if(e){var n,a=!1,i=!0;for(n=0;n0?t:0}))},f.fillArray=function(e,t,r,n){if(n=n||f.identity,f.isArrayOrTypedArray(e))for(var a=0;a1?a+o[1]:"";if(i&&(o.length>1||l.length>4||r))for(;n.test(l);)l=l.replace(n,"$1"+i+"$2");return l+s},f.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var R=/^\w*$/;f.templateString=function(e,t){var r={};return e.replace(f.TEMPLATE_STRING_REGEX,(function(e,n){var a;return R.test(n)?a=t[n]:(r[n]=r[n]||f.nestedProperty(t,n).get,a=r[n]()),f.isValidTextValue(a)?a:""}))};var z={max:10,count:0,name:"hovertemplate"};f.hovertemplateString=function(){return F.apply(z,arguments)};var I={max:10,count:0,name:"texttemplate"};f.texttemplateString=function(){return F.apply(I,arguments)};var N=/^[:|\|]/;function F(e,t,r){var n=this,i=arguments;t||(t={});var o={};return e.replace(f.TEMPLATE_STRING_REGEX,(function(e,l,s){var c,u,d,p="_xother"===l||"_yother"===l,h="_xother_"===l||"_yother_"===l,m="xother_"===l||"yother_"===l,y="xother"===l||"yother"===l||p||m||h,g=l;if((p||h)&&(g=g.substring(1)),(m||h)&&(g=g.substring(0,g.length-1)),y){if(void 0===(c=t[g]))return""}else for(d=3;d=48&&o<=57,c=l>=48&&l<=57;if(s&&(n=10*n+o-48),c&&(a=10*a+l-48),!s||!c){if(n!==a)return n-a;if(o!==l)return o-l}}return a-n};var j=2e9;f.seedPseudoRandom=function(){j=2e9},f.pseudoRandom=function(){var e=j;return j=(69069*j+1)%4294967296,Math.abs(j-e)<429496729?f.pseudoRandom():j/4294967296},f.fillText=function(e,t,r){var n=Array.isArray(r)?function(e){r.push(e)}:function(e){r.text=e},a=f.extractOption(e,t,"htx","hovertext");if(f.isValidTextValue(a))return n(a);var i=f.extractOption(e,t,"tx","text");return f.isValidTextValue(i)?n(i):void 0},f.isValidTextValue=function(e){return e||0===e},f.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",n=0;n1&&(c=1):c=0,f.strTranslate(a-c*(r+o),i-c*(n+l))+f.strScale(c)+(s?"rotate("+s+(t?"":" "+r+" "+n)+")":"")},f.ensureUniformFontSize=function(e,t){var r=f.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r},f.join2=function(e,t,r){var n=e.length;return n>1?e.slice(0,-1).join(t)+r+e[n-1]:e.join(t)},f.bigFont=function(e){return Math.round(1.2*e)};var B=f.getFirefoxVersion(),H=null!==B&&B<86;f.getPositionFromD3Event=function(){return H?[n.event.layerX,n.event.layerY]:[n.event.offsetX,n.event.offsetY]}},{"../constants/numerical":267,"./anchor_utils":271,"./angles":272,"./array":273,"./clean_number":274,"./clear_responsive":276,"./coerce":277,"./dates":278,"./dom":279,"./extend":281,"./filter_unique":282,"./filter_visible":283,"./geometry2d":284,"./identity":285,"./increment":286,"./is_plain_object":288,"./keyed_container":289,"./localize":290,"./loggers":291,"./make_trace_groups":292,"./matrix":293,"./mod":294,"./nested_property":295,"./noop":296,"./notifier":297,"./preserve_drawing_buffer":300,"./push_unique":301,"./regex":303,"./relative_attr":304,"./relink_private":305,"./search":306,"./sort_object_keys":308,"./stats":309,"./throttle":311,"./to_log_range":312,"@plotly/d3":20,"d3-format":29,"d3-time-format":30,"fast-isnumeric":33}],288:[function(e,t,r){"use strict";t.exports=function(e){return window&&window.process&&window.process.versions?"[object Object]"===Object.prototype.toString.call(e):"[object Object]"===Object.prototype.toString.call(e)&&Object.getPrototypeOf(e).hasOwnProperty("hasOwnProperty")}},{}],289:[function(e,t,r){"use strict";var n=e("./nested_property"),a=/^\w*$/;t.exports=function(e,t,r,i){var o,l,s;r=r||"name",i=i||"value";var c={};t&&t.length?(s=n(e,t),l=s.get()):l=e,t=t||"";var u={};if(l)for(o=0;o2)return c[t]=2|c[t],d.set(e,null);if(f){for(o=t;o1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}},i.warn=function(){var e;if(n.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}},i.error=function(){var e;if(n.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}},{"../plot_api/plot_config":321,"./notifier":297}],292:[function(e,t,r){"use strict";var n=e("@plotly/d3");t.exports=function(e,t,r){var a=e.selectAll("g."+r.replace(/\s/g,".")).data(t,(function(e){return e[0].trace.uid}));a.exit().remove(),a.enter().append("g").attr("class",r),a.order();var i=e.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each((function(e){e[0][i]=n.select(this)})),a}},{"@plotly/d3":20}],293:[function(e,t,r){"use strict";var n=e("gl-mat4");r.init2dArray=function(e,t){for(var r=new Array(e),n=0;nt/2?e-Math.round(e/t)*t:e}}},{}],295:[function(e,t,r){"use strict";var n=e("fast-isnumeric"),a=e("./array").isArrayOrTypedArray;function i(e,t){return function(){var r,n,o,l,s,c=e;for(l=0;l/g),s=0;si||c===a||cl||t&&s(e))}:function(e,t){var s=e[0],c=e[1];if(s===a||si||c===a||cl)return!1;var u,f,d,p,h,m=r.length,y=r[0][0],g=r[0][1],v=0;for(u=1;uMath.max(f,y)||c>Math.max(d,g)))if(cu||Math.abs(n(o,d))>a)return!0;return!1},i.filter=function(e,t){var r=[e[0]],n=0,a=0;function o(o){e.push(o);var l=r.length,s=n;r.splice(a+1);for(var c=s+1;c1&&o(e.pop()),{addPt:o,raw:e,filtered:r}}},{"../constants/numerical":267,"./matrix":293}],300:[function(e,t,r){"use strict";var n=e("fast-isnumeric"),a=e("is-mobile");t.exports=function(e){var t;if("string"!=typeof(t=e&&e.hasOwnProperty("userAgent")?e.userAgent:function(){var e;return"undefined"!=typeof navigator&&(e=navigator.userAgent),e&&e.headers&&"string"==typeof e.headers["user-agent"]&&(e=e.headers["user-agent"]),e}()))return!0;var r=a({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!r)for(var i=t.split(" "),o=1;o-1;l--){var s=i[l];if("Version/"===s.substr(0,8)){var c=s.substr(8).split(".")[0];if(n(c)&&(c=+c),c>=13)return!0}}return r}},{"fast-isnumeric":33,"is-mobile":69}],301:[function(e,t,r){"use strict";t.exports=function(e,t){if(t instanceof RegExp){for(var r=t.toString(),n=0;na.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--))},startSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0},stopSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1},undo:function(e){var t,r;if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index<=0)){for(e.undoQueue.index--,t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,r=0;r=e.undoQueue.queue.length)){for(t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,r=0;rt}function f(e,t){return e>=t}r.findBin=function(e,t,r){if(n(t.start))return r?Math.ceil((e-t.start)/t.size-l)-1:Math.floor((e-t.start)/t.size+l);var i,o,d=0,p=t.length,h=0,m=p>1?(t[p-1]-t[0])/(p-1):1;for(o=m>=0?r?s:c:r?f:u,e+=m*l*(r?-1:1)*(m>=0?1:-1);d90&&a.log("Long binary search..."),d-1},r.sorterAsc=function(e,t){return e-t},r.sorterDes=function(e,t){return t-e},r.distinctVals=function(e){var t,n=e.slice();for(n.sort(r.sorterAsc),t=n.length-1;t>-1&&n[t]===o;t--);for(var a,i=n[t]-n[0]||1,l=i/(t||1)/1e4,s=[],c=0;c<=t;c++){var u=n[c],f=u-a;void 0===a?(s.push(u),a=u):f>l&&(i=Math.min(i,f),s.push(u),a=u)}return{vals:s,minDiff:i}},r.roundUp=function(e,t,r){for(var n,a=0,i=t.length-1,o=0,l=r?0:1,s=r?1:0,c=r?Math.ceil:Math.floor;a0&&(n=1),r&&n)return e.sort(t)}return n?e:e.reverse()},r.findIndexOfMin=function(e,t){t=t||i;for(var r,n=1/0,a=0;ai.length)&&(o=i.length),n(t)||(t=!1),a(i[0])){for(s=new Array(o),l=0;le.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}},{"./array":273,"fast-isnumeric":33}],310:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../lib"),i=a.strTranslate,o=e("../constants/xmlns_namespaces"),l=e("../constants/alignment").LINE_SPACING;function s(e,t){return e.node().getBoundingClientRect()[t]}var c=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;r.convertToTspans=function(e,t,y){var L=e.text(),S=!e.attr("data-notex")&&"undefined"!=typeof MathJax&&L.match(c),C=n.select(e.node().parentNode);if(!C.empty()){var E=e.attr("class")?e.attr("class").split(" ")[0]:"text";return E+="-math",C.selectAll("svg."+E).remove(),C.selectAll("g."+E+"-group").remove(),e.style("display",null).attr({"data-unformatted":L,"data-math":"N"}),S?(t&&t._promises||[]).push(new Promise((function(t){e.style("display","none");var r=parseInt(e.node().style.fontSize,10),o={fontSize:r};!function(e,t,r){var i,o,l,s;MathJax.Hub.Queue((function(){return o=a.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:[["$","$"],["\\(","\\)"]]},displayAlign:"left"})}),(function(){if("SVG"!==(i=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer("SVG")}),(function(){var r="math-output-"+a.randstr({},64);return s=n.select("body").append("div").attr({id:r}).style({visibility:"hidden",position:"absolute"}).style({"font-size":t.fontSize+"px"}).text(e.replace(u,"\\lt ").replace(f,"\\gt ")),MathJax.Hub.Typeset(s.node())}),(function(){var t=n.select("body").select("#MathJax_SVG_glyphs");if(s.select(".MathJax_SVG").empty()||!s.select("svg").node())a.log("There was an error in the tex syntax.",e),r();else{var o=s.select("svg").node().getBoundingClientRect();r(s.select(".MathJax_SVG"),t,o)}if(s.remove(),"SVG"!==i)return MathJax.Hub.setRenderer(i)}),(function(){return void 0!==l&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(o)}))}(S[2],o,(function(n,a,o){C.selectAll("svg."+E).remove(),C.selectAll("g."+E+"-group").remove();var l=n&&n.select("svg");if(!l||!l.node())return P(),void t();var c=C.append("g").classed(E+"-group",!0).attr({"pointer-events":"none","data-unformatted":L,"data-math":"Y"});c.node().appendChild(l.node()),a&&a.node()&&l.node().insertBefore(a.node().cloneNode(!0),l.node().firstChild),l.attr({class:E,height:o.height,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var u=e.node().style.fill||"black",f=l.select("g");f.attr({fill:u,stroke:u});var d=s(f,"width"),p=s(f,"height"),h=+e.attr("x")-d*{start:0,middle:.5,end:1}[e.attr("text-anchor")||"start"],m=-(r||s(e,"height"))/4;"y"===E[0]?(c.attr({transform:"rotate("+[-90,+e.attr("x"),+e.attr("y")]+")"+i(-d/2,m-p/2)}),l.attr({x:+e.attr("x"),y:+e.attr("y")})):"l"===E[0]?l.attr({x:e.attr("x"),y:m-p/2}):"a"===E[0]&&0!==E.indexOf("atitle")?l.attr({x:0,y:m}):l.attr({x:h,y:+e.attr("y")+m-p/2}),y&&y.call(e,c),t(c)}))}))):P(),e}function P(){C.empty()||(E=e.attr("class")+"-math",C.select("svg."+E).remove()),e.text("").style("white-space","pre"),function(e,t){t=t.replace(g," ");var r,i=!1,s=[],c=-1;function u(){c++;var t=document.createElementNS(o.svg,"tspan");n.select(t).attr({class:"line",dy:c*l+"em"}),e.appendChild(t),r=t;var a=s;if(s=[{node:t}],a.length>1)for(var i=1;i doesnt match end tag <"+e+">. Pretending it did match.",t),r=s[s.length-1].node}else a.log("Ignoring unexpected end tag .",t)}b.test(t)?u():(r=e,s=[{node:e}]);for(var S=t.split(v),C=0;C|>|>)/g;var d={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},p={sub:"0.3em",sup:"-0.6em"},h={sub:"-0.21em",sup:"0.42em"},m="​",y=["http:","https:","mailto:","",void 0,":"],g=r.NEWLINES=/(\r\n?|\n)/g,v=/(<[^<>]*>)/,x=/<(\/?)([^ >]*)(\s+(.*))?>/i,b=//i;r.BR_TAG_ALL=//gi;var _=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,w=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,T=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,M=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function k(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&O(n)}var A=/(^|;)\s*color:/;r.plainText=function(e,t){for(var r=void 0!==(t=t||{}).len&&-1!==t.len?t.len:1/0,n=void 0!==t.allowedTags?t.allowedTags:["br"],a="...".length,i=e.split(v),o=[],l="",s=0,c=0;ca?o.push(u.substr(0,h-a)+"..."):o.push(u.substr(0,h));break}l=""}}return o.join("")};var L={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},S=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function O(e){return e.replace(S,(function(e,t){return("#"===t.charAt(0)?function(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r(55232+(e>>10),e%1024+56320)}}("x"===t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):L[t])||e}))}function D(e){var t=encodeURI(decodeURI(e)),r=document.createElement("a"),n=document.createElement("a");r.href=e,n.href=t;var a=r.protocol,i=n.protocol;return-1!==y.indexOf(a)&&-1!==y.indexOf(i)?t:""}function C(e,t,r){var n,i,o,l=r.horizontalAlign,s=r.verticalAlign||"top",c=e.node().getBoundingClientRect(),u=t.node().getBoundingClientRect();return i="bottom"===s?function(){return c.bottom-n.height}:"middle"===s?function(){return c.top+(c.height-n.height)/2}:function(){return c.top},o="right"===l?function(){return c.right-n.width}:"center"===l?function(){return c.left+(c.width-n.width)/2}:function(){return c.left},function(){n=this.node().getBoundingClientRect();var e=o()-u.left,t=i()-u.top,l=r.gd||{};if(r.gd){l._fullLayout._calcInverseTransform(l);var s=a.apply3DTransform(l._fullLayout._invTransform)(e,t);e=s[0],t=s[1]}return this.style({top:t+"px",left:e+"px","z-index":1e3}),this}}r.convertEntities=O,r.sanitizeHTML=function(e){e=e.replace(g," ");for(var t=document.createElement("p"),r=t,a=[],i=e.split(v),o=0;oi.ts+t?s():i.timer=setTimeout((function(){s(),i.timer=null}),t)},r.done=function(e){var t=n[e];return t&&t.timer?new Promise((function(e){var r=t.onDone;t.onDone=function(){r&&r(),e(),t.onDone=null}})):Promise.resolve()},r.clear=function(e){if(e)a(n[e]),delete n[e];else for(var t in n)r.clear(t)}},{}],312:[function(e,t,r){"use strict";var n=e("fast-isnumeric");t.exports=function(e,t){if(e>0)return Math.log(e)/Math.LN10;var r=Math.log(Math.min(t[0],t[1]))/Math.LN10;return n(r)||(r=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),r}},{"fast-isnumeric":33}],313:[function(e,t,r){"use strict";t.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},{}],314:[function(e,t,r){"use strict";t.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},{}],315:[function(e,t,r){"use strict";var n=e("../registry");t.exports=function(e){for(var t,r,a=n.layoutArrayContainers,i=n.layoutArrayRegexes,o=e.split("[")[0],l=0;l0&&o.log("Clearing previous rejected promises from queue."),e._promises=[]},r.cleanLayout=function(e){var t,n;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var i=(l.subplotsRegistry.cartesian||{}).attrRegex,s=(l.subplotsRegistry.polar||{}).attrRegex,f=(l.subplotsRegistry.ternary||{}).attrRegex,d=(l.subplotsRegistry.gl3d||{}).attrRegex,m=Object.keys(e);for(t=0;t3?(P.x=1.02,P.xanchor="left"):P.x<-2&&(P.x=-.02,P.xanchor="right"),P.y>3?(P.y=1.02,P.yanchor="bottom"):P.y<-2&&(P.y=-.02,P.yanchor="top")),h(e),"rotate"===e.dragmode&&(e.dragmode="orbit"),c.clean(e),e.template&&e.template.layout&&r.cleanLayout(e.template.layout),e},r.cleanData=function(e){for(var t=0;t0)return e.substr(0,t)}r.hasParent=function(e,t){for(var r=b(t);r;){if(r in e)return!0;r=b(r)}return!1};var _=["x","y","z"];r.clearAxisTypes=function(e,t,r){for(var n=0;n1&&i.warn("Full array edits are incompatible with other edits",f);var v=r[""][""];if(c(v))t.set(null);else{if(!Array.isArray(v))return i.warn("Unrecognized full array edit value",f,v),!0;t.set(v)}return!m&&(d(y,g),p(e),!0)}var x,b,_,w,T,M,k,A,L=Object.keys(r).map(Number).sort(o),S=t.get(),O=S||[],D=u(g,f).get(),C=[],E=-1,P=O.length;for(x=0;xO.length-(k?0:1))i.warn("index out of range",f,_);else if(void 0!==M)T.length>1&&i.warn("Insertion & removal are incompatible with edits to the same index.",f,_),c(M)?C.push(_):k?("add"===M&&(M={}),O.splice(_,0,M),D&&D.splice(_,0,{})):i.warn("Unrecognized full object edit value",f,_,M),-1===E&&(E=_);else for(b=0;b=0;x--)O.splice(C[x],1),D&&D.splice(C[x],1);if(O.length?S||t.set(O):t.set(null),m)return!1;if(d(y,g),h!==a){var R;if(-1===E)R=L;else{for(P=Math.max(O.length,P),R=[],x=0;x=E);x++)R.push(_);for(x=E;x=e.data.length||a<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(a,n+1)>-1||a>=0&&t.indexOf(-e.data.length+a)>-1||a<0&&t.indexOf(e.data.length+a)>-1)throw new Error("each index in "+r+" must be unique.")}}function E(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(void 0===t)throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),C(e,t,"currentIndices"),void 0===r||Array.isArray(r)||(r=[r]),void 0!==r&&C(e,r,"newIndices"),void 0!==r&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function P(e,t,r,n,i){!function(e,t,r,n){var a=o.isPlainObject(n);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!o.isPlainObject(t))throw new Error("update must be a key:value object");if(void 0===r)throw new Error("indices must be an integer or array of integers");for(var i in C(e,r,"indices"),t){if(!Array.isArray(t[i])||t[i].length!==r.length)throw new Error("attribute "+i+" must be an array of length equal to indices array length");if(a&&(!(i in n)||!Array.isArray(n[i])||n[i].length!==t[i].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}(e,t,r,n);for(var s=function(e,t,r,n){var i,s,c,u,f,d=o.isPlainObject(n),p=[];for(var h in Array.isArray(r)||(r=[r]),r=D(r,e.data.length-1),t)for(var m=0;m-1?s(r,r.replace("titlefont","title.font")):r.indexOf("titleposition")>-1?s(r,r.replace("titleposition","title.position")):r.indexOf("titleside")>-1?s(r,r.replace("titleside","title.side")):r.indexOf("titleoffset")>-1&&s(r,r.replace("titleoffset","title.offset")):s(r,r.replace("title","title.text"));function s(t,r){e[r]=e[t],delete e[t]}}function H(e,t,r){e=o.getGraphDiv(e),_.clearPromiseQueue(e);var n={};if("string"==typeof t)n[t]=r;else{if(!o.isPlainObject(t))return o.warn("Relayout fail.",t,r),Promise.reject();n=o.extendFlat({},t)}Object.keys(n).length&&(e.changed=!0);var a=Z(e,n),i=a.flags;i.calc&&(e.calcdata=void 0);var l=[d.previousPromises];i.layoutReplot?l.push(w.layoutReplot):Object.keys(n).length&&(U(e,i,a)||d.supplyDefaults(e),i.legend&&l.push(w.doLegend),i.layoutstyle&&l.push(w.layoutStyles),i.axrange&&Y(l,a.rangesAltered),i.ticks&&l.push(w.doTicksRelayout),i.modebar&&l.push(w.doModeBar),i.camera&&l.push(w.doCamera),i.colorbars&&l.push(w.doColorBars),l.push(A)),l.push(d.rehover,d.redrag),c.add(e,H,[e,a.undoit],H,[e,a.redoit]);var s=o.syncOrAsync(l,e);return s&&s.then||(s=Promise.resolve(e)),s.then((function(){return e.emit("plotly_relayout",a.eventData),e}))}function U(e,t,r){var n=e._fullLayout;if(!t.axrange)return!1;for(var a in t)if("axrange"!==a&&t[a])return!1;for(var i in r.rangesAltered){var o=p.id2name(i),l=e.layout[o],s=n[o];if(s.autorange=l.autorange,l.range&&(s.range=l.range.slice()),s.cleanRange(),s._matchGroup)for(var c in s._matchGroup)if(c!==i){var u=n[p.id2name(c)];u.autorange=s.autorange,u.range=s.range.slice(),u._input.range=s.range.slice()}}return!0}function Y(e,t){var r=t?function(e){var r=[],n=!0;for(var a in t){var i=p.getFromId(e,a);if(r.push(a),-1!==(i.ticklabelposition||"").indexOf("inside")&&i._anchorAxis&&r.push(i._anchorAxis._id),i._matchGroup)for(var o in i._matchGroup)t[o]||r.push(o);i.automargin&&(n=!1)}return p.draw(e,r,{skipTitle:n})}:function(e){return p.draw(e,"redraw")};e.push(v,w.doAutoRangeAndConstraints,r,w.drawData,w.finalDraw)}var q=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,V=/^[xyz]axis[0-9]*\.autorange$/,G=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function Z(e,t){var r,n,a,i=e.layout,s=e._fullLayout,c=s._guiEditing,d=N(s._preGUI,c),h=Object.keys(t),m=p.list(e),y=o.extendDeepAll({},t),g={};for(B(t),h=Object.keys(t),n=0;n0&&"string"!=typeof P.parts[z];)z--;var F=P.parts[z],j=P.parts[z-1]+"."+F,H=P.parts.slice(0,z).join("."),U=l(e.layout,H).get(),Y=l(s,H).get(),Z=P.get();if(void 0!==R){A[E]=R,L[E]="reverse"===F?R:I(Z);var X=f.getLayoutValObject(s,P.parts);if(X&&X.impliedEdits&&null!==R)for(var J in X.impliedEdits)S(o.relativeAttr(E,J),X.impliedEdits[J]);if(-1!==["width","height"].indexOf(E))if(R){S("autosize",null);var K="height"===E?"width":"height";S(K,s[K])}else s[E]=e._initialAutoSize[E];else if("autosize"===E)S("width",R?null:s.width),S("height",R?null:s.height);else if(j.match(q))C(j),l(s,H+"._inputRange").set(null);else if(j.match(V)){C(j),l(s,H+"._inputRange").set(null);var Q=l(s,H).get();Q._inputDomain&&(Q._input.domain=Q._inputDomain.slice())}else j.match(G)&&l(s,H+"._inputDomain").set(null);if("type"===F){O=U;var $="linear"===Y.type&&"log"===R,ee="log"===Y.type&&"linear"===R;if($||ee){if(O&&O.range)if(Y.autorange)$&&(O.range=O.range[1]>O.range[0]?[1,2]:[2,1]);else{var te=O.range[0],re=O.range[1];$?(te<=0&&re<=0&&S(H+".autorange",!0),te<=0?te=re/1e6:re<=0&&(re=te/1e6),S(H+".range[0]",Math.log(te)/Math.LN10),S(H+".range[1]",Math.log(re)/Math.LN10)):(S(H+".range[0]",Math.pow(10,te)),S(H+".range[1]",Math.pow(10,re)))}else S(H+".autorange",!0);Array.isArray(s._subplots.polar)&&s._subplots.polar.length&&s[P.parts[0]]&&"radialaxis"===P.parts[1]&&delete s[P.parts[0]]._subplot.viewInitial["radialaxis.range"],u.getComponentMethod("annotations","convertCoords")(e,Y,R,S),u.getComponentMethod("images","convertCoords")(e,Y,R,S)}else S(H+".autorange",!0),S(H+".range",null);l(s,H+"._inputRange").set(null)}else if(F.match(M)){var ne=l(s,E).get(),ae=(R||{}).type;ae&&"-"!==ae||(ae="linear"),u.getComponentMethod("annotations","convertCoords")(e,ne,ae,S),u.getComponentMethod("images","convertCoords")(e,ne,ae,S)}var ie=b.containerArrayMatch(E);if(ie){r=ie.array,n=ie.index;var oe=ie.property,le=X||{editType:"calc"};""!==n&&""===oe&&(b.isAddVal(R)?L[E]=null:b.isRemoveVal(R)?L[E]=(l(i,r).get()||[])[n]:o.warn("unrecognized full object value",t)),T.update(k,le),g[r]||(g[r]={});var se=g[r][n];se||(se=g[r][n]={}),se[oe]=R,delete t[E]}else"reverse"===F?(U.range?U.range.reverse():(S(H+".autorange",!0),U.range=[1,0]),Y.autorange?k.calc=!0:k.plot=!0):(s._has("scatter-like")&&s._has("regl")&&"dragmode"===E&&("lasso"===R||"select"===R)&&"lasso"!==Z&&"select"!==Z||s._has("gl2d")?k.plot=!0:X?T.update(k,X):k.calc=!0,P.set(R))}}for(r in g)b.applyContainerArrayChanges(e,d(i,r),g[r],k,d)||(k.plot=!0);for(var ce in D){var ue=(O=p.getFromId(e,ce))&&O._constraintGroup;if(ue)for(var fe in k.calc=!0,ue)D[fe]||(p.getFromId(e,fe)._constraintShrinkable=!0)}return(W(e)||t.height||t.width)&&(k.plot=!0),(k.plot||k.calc)&&(k.layoutReplot=!0),{flags:k,rangesAltered:D,undoit:L,redoit:A,eventData:y}}function W(e){var t=e._fullLayout,r=t.width,n=t.height;return e.layout.autosize&&d.plotAutoSize(e,e.layout,t),t.width!==r||t.height!==n}function X(e,t,n,a){e=o.getGraphDiv(e),_.clearPromiseQueue(e),o.isPlainObject(t)||(t={}),o.isPlainObject(n)||(n={}),Object.keys(t).length&&(e.changed=!0),Object.keys(n).length&&(e.changed=!0);var i=_.coerceTraceIndices(e,a),l=j(e,o.extendFlat({},t),i),s=l.flags,u=Z(e,o.extendFlat({},n)),f=u.flags;(s.calc||f.calc)&&(e.calcdata=void 0),s.clearAxisTypes&&_.clearAxisTypes(e,i,n);var p=[];f.layoutReplot?p.push(w.layoutReplot):s.fullReplot?p.push(r._doPlot):(p.push(d.previousPromises),U(e,f,u)||d.supplyDefaults(e),s.style&&p.push(w.doTraceStyle),(s.colorbars||f.colorbars)&&p.push(w.doColorBars),f.legend&&p.push(w.doLegend),f.layoutstyle&&p.push(w.layoutStyles),f.axrange&&Y(p,u.rangesAltered),f.ticks&&p.push(w.doTicksRelayout),f.modebar&&p.push(w.doModeBar),f.camera&&p.push(w.doCamera),p.push(A)),p.push(d.rehover,d.redrag),c.add(e,X,[e,l.undoit,u.undoit,l.traces],X,[e,l.redoit,u.redoit,l.traces]);var h=o.syncOrAsync(p,e);return h&&h.then||(h=Promise.resolve(e)),h.then((function(){return e.emit("plotly_update",{data:l.eventData,layout:u.eventData}),e}))}function J(e){return function(t){t._fullLayout._guiEditing=!0;var r=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,r}}var K=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],Q=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function $(e,t){for(var r=0;r1;)if(n.pop(),void 0!==(r=l(t,n.join(".")+".uirevision").get()))return r;return t.uirevision}function te(e,t){for(var r=0;r=a.length?a[0]:a[e]:a}function s(e){return Array.isArray(i)?e>=i.length?i[0]:i[e]:i}function c(e,t){var r=0;return function(){if(e&&++r===t)return e()}}return void 0===n._frameWaitingCnt&&(n._frameWaitingCnt=0),new Promise((function(i,u){function f(){n._currentFrame&&n._currentFrame.onComplete&&n._currentFrame.onComplete();var t=n._currentFrame=n._frameQueue.shift();if(t){var r=t.name?t.name.toString():null;e._fullLayout._currentFrame=r,n._lastFrameAt=Date.now(),n._timeToNext=t.frameOpts.duration,d.transition(e,t.frame.data,t.frame.layout,_.coerceTraceIndices(e,t.frame.traces),t.frameOpts,t.transitionOpts).then((function(){t.onComplete&&t.onComplete()})),e.emit("plotly_animatingframe",{name:r,frame:t.frame,animation:{frame:t.frameOpts,transition:t.transitionOpts}})}else e.emit("plotly_animated"),window.cancelAnimationFrame(n._animationRaf),n._animationRaf=null}function p(){e.emit("plotly_animating"),n._lastFrameAt=-1/0,n._timeToNext=0,n._runningTransitions=0,n._currentFrame=null;var t=function(){n._animationRaf=window.requestAnimationFrame(t),Date.now()-n._lastFrameAt>n._timeToNext&&f()};t()}var h,m,y=0;function g(e){return Array.isArray(a)?y>=a.length?e.transitionOpts=a[y]:e.transitionOpts=a[0]:e.transitionOpts=a,y++,e}var v=[],x=null==t,b=Array.isArray(t);if(x||b||!o.isPlainObject(t)){if(x||-1!==["string","number"].indexOf(typeof t))for(h=0;h0&&MM)&&k.push(m);v=k}}v.length>0?function(t){if(0!==t.length){for(var a=0;a=0;n--)if(o.isPlainObject(t[n])){var m=t[n].name,y=(u[m]||h[m]||{}).name,g=t[n].name,v=u[y]||h[y];y&&g&&"number"==typeof g&&v&&k<5&&(k++,o.warn('addFrames: overwriting frame "'+(u[y]||h[y]).name+'" with a frame whose name of type "number" also equates to "'+y+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===k&&o.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),h[m]={name:m},p.push({frame:d.supplyFrameDefaults(t[n]),index:r&&void 0!==r[n]&&null!==r[n]?r[n]:f+n})}p.sort((function(e,t){return e.index>t.index?-1:e.index=0;n--){if("number"==typeof(a=p[n].frame).name&&o.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;u[a.name="frame "+e._transitionData._counter++];);if(u[a.name]){for(i=0;i=0;r--)n=t[r],i.push({type:"delete",index:n}),l.unshift({type:"insert",index:n,value:a[n]});var s=d.modifyFrames,u=d.modifyFrames,f=[e,l],p=[e,i];return c&&c.add(e,s,f,u,p),d.modifyFrames(e,i)},r.addTraces=function e(t,n,a){t=o.getGraphDiv(t);var i,l,s=[],u=r.deleteTraces,f=e,d=[t,s],p=[t,n];for(function(e,t,r){var n,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(void 0===t)throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),n=0;n=0&&r=0&&r=i.length)return!1;if(2===e.dimensions){if(r++,t.length===r)return e;var o=t[r];if(!_(o))return!1;e=i[a][o]}else e=i[a]}else e=i}}return e}function _(e){return e===Math.round(e)&&e>=0}function w(){var e,t,r={};for(e in f(r,o),n.subplotsRegistry)if((t=n.subplotsRegistry[e]).layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a=s.length)return!1;a=(r=(n.transformsRegistry[s[c].type]||{}).attributes)&&r[t[2]],l=3}else{var u=e._module;if(u||(u=(n.modules[e.type||i.type.dflt]||{})._module),!u)return!1;if(!(a=(r=u.attributes)&&r[o])){var f=u.basePlotModule;f&&f.attributes&&(a=f.attributes[o])}a||(a=i[o])}return b(a,t,l)},r.getLayoutValObject=function(e,t){return b(function(e,t){var r,a,i,l,s=e._basePlotModules;if(s){var c;for(r=0;r=a&&(r._input||{})._templateitemname;o&&(i=a);var l,s=t+"["+i+"]";function c(){l={},o&&(l[s]={},l[s].templateitemname=o)}function u(e,t){o?n.nestedProperty(l[s],e).set(t):l[s+"."+e]=t}function f(){var e=l;return c(),e}return c(),{modifyBase:function(e,t){l[e]=t},modifyItem:u,getUpdateObj:f,applyUpdate:function(t,r){t&&u(t,r);var a=f();for(var i in a)n.nestedProperty(e,i).set(a[i])}}}},{"../lib":287,"../plots/attributes":330}],324:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../registry"),i=e("../plots/plots"),o=e("../lib"),l=e("../lib/clear_gl_canvases"),s=e("../components/color"),c=e("../components/drawing"),u=e("../components/titles"),f=e("../components/modebar"),d=e("../plots/cartesian/axes"),p=e("../constants/alignment"),h=e("../plots/cartesian/constraints"),m=h.enforce,y=h.clean,g=e("../plots/cartesian/autorange").doAutoRange,v="start";function x(e,t,r){for(var n=0;n=e[1]||a[1]<=e[0])&&i[0]t[0])return!0}return!1}function b(e){var t,a,l,u,h,m,y=e._fullLayout,g=y._size,v=g.p,b=d.list(e,"",!0);if(y._paperdiv.style({width:e._context.responsive&&y.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":y.width+"px",height:e._context.responsive&&y.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":y.height+"px"}).selectAll(".main-svg").call(c.setSize,y.width,y.height),e._context.setBackground(e,y.paper_bgcolor),r.drawMainTitle(e),f.manage(e),!y._has("cartesian"))return i.previousPromises(e);function w(e,t,r){var n=e._lw/2;return"x"===e._id.charAt(0)?t?"top"===r?t._offset-v-n:t._offset+t._length+v+n:g.t+g.h*(1-(e.position||0))+n%1:t?"right"===r?t._offset+t._length+v+n:t._offset-v-n:g.l+g.w*(e.position||0)+n%1}for(t=0;tT?u.push({code:"unused",traceType:v,templateCount:w,dataCount:T}):T>w&&u.push({code:"reused",traceType:v,templateCount:w,dataCount:T})}}else u.push({code:"data"});if(function e(t,r){for(var n in t)if("_"!==n.charAt(0)){var i=t[n],o=m(t,n,r);a(i)?(Array.isArray(t)&&!1===i._template&&i.templateitemname&&u.push({code:"missing",path:o,templateitemname:i.templateitemname}),e(i,o)):Array.isArray(i)&&y(i)&&e(i,o)}}({data:p,layout:d},""),u.length)return u.map(g)}},{"../lib":287,"../plots/attributes":330,"../plots/plots":369,"./plot_config":321,"./plot_schema":322,"./plot_template":323}],326:[function(e,t,r){"use strict";var n=e("fast-isnumeric"),a=e("./plot_api"),i=e("../plots/plots"),o=e("../lib"),l=e("../snapshot/helpers"),s=e("../snapshot/tosvg"),c=e("../snapshot/svgtoimg"),u=e("../version").version,f={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};t.exports=function(e,t){var r,d,p,h;function m(e){return!(e in t)||o.validate(t[e],f[e])}if(t=t||{},o.isPlainObject(e)?(r=e.data||[],d=e.layout||{},p=e.config||{},h={}):(e=o.getGraphDiv(e),r=o.extendDeep([],e.data),d=o.extendDeep({},e.layout),p=e._context,h=e._fullLayout||{}),!m("width")&&null!==t.width||!m("height")&&null!==t.height)throw new Error("Height and width should be pixel values.");if(!m("format"))throw new Error("Export format is not "+o.join2(f.format.values,", "," or ")+".");var y={};function g(e,r){return o.coerce(t,y,f,e,r)}var v=g("format"),x=g("width"),b=g("height"),_=g("scale"),w=g("setBackground"),T=g("imageDataOnly"),M=document.createElement("div");M.style.position="absolute",M.style.left="-5000px",document.body.appendChild(M);var k=o.extendFlat({},d);x?k.width=x:null===t.width&&n(h.width)&&(k.width=h.width),b?k.height=b:null===t.height&&n(h.height)&&(k.height=h.height);var A=o.extendFlat({},p,{_exportedPlot:!0,staticPlot:!0,setBackground:w}),L=l.getRedrawFunc(M);function S(){return new Promise((function(e){setTimeout(e,l.getDelay(M._fullLayout))}))}function O(){return new Promise((function(e,t){var r=s(M,v,_),n=M._fullLayout.width,f=M._fullLayout.height;function d(){a.purge(M),document.body.removeChild(M)}if("full-json"===v){var p=i.graphJson(M,!1,"keepdata","object",!0,!0);return p.version=u,p=JSON.stringify(p),d(),e(T?p:l.encodeJSON(p))}if(d(),"svg"===v)return e(T?r:l.encodeSVG(r));var h=document.createElement("canvas");h.id=o.randstr(),c({format:v,width:n,height:f,scale:_,canvas:h,svg:r,promise:!0}).then(e).catch(t)}))}return new Promise((function(e,t){a.newPlot(M,r,k,A).then(L).then(S).then(O).then((function(t){e(function(e){return T?e.replace(l.IMAGE_URL_PREFIX,""):e}(t))})).catch((function(e){t(e)}))}))}},{"../lib":287,"../plots/plots":369,"../snapshot/helpers":380,"../snapshot/svgtoimg":382,"../snapshot/tosvg":384,"../version":549,"./plot_api":320,"fast-isnumeric":33}],327:[function(e,t,r){"use strict";var n=e("../lib"),a=e("../plots/plots"),i=e("./plot_schema"),o=e("./plot_config").dfltConfig,l=n.isPlainObject,s=Array.isArray,c=n.isArrayOrTypedArray;function u(e,t,r,a,i,o){o=o||[];for(var f=Object.keys(e),d=0;dx.length&&a.push(h("unused",i,g.concat(x.length)));var k,A,L,S,O,D=x.length,C=Array.isArray(M);if(C&&(D=Math.min(D,M.length)),2===b.dimensions)for(A=0;Ax[A].length&&a.push(h("unused",i,g.concat(A,x[A].length)));var E=x[A].length;for(k=0;k<(C?Math.min(E,M[A].length):E);k++)L=C?M[A][k]:M,S=v[A][k],O=x[A][k],n.validate(S,L)?O!==S&&O!==+S&&a.push(h("dynamic",i,g.concat(A,k),S,O)):a.push(h("value",i,g.concat(A,k),S))}else a.push(h("array",i,g.concat(A),v[A]));else for(A=0;A1&&p.push(h("object","layout"))),a.supplyDefaults(m);for(var y=m._fullData,g=r.length,v=0;v0&&Math.round(f)===f))return{vals:a};c=f}for(var d=t.calendar,p="start"===s,h="end"===s,m=e[r+"period0"],y=i(m,d)||0,g=[],v=[],x=[],b=a.length,_=0;_k;)M=o(M,-c,d);for(;M<=k;)M=o(M,c,d);T=o(M,-c,d)}else{for(M=y+(w=Math.round((k-y)/u))*u;M>k;)M-=u;for(;M<=k;)M+=u;T=M-u}g[_]=p?T:h?M:(T+M)/2,v[_]=T,x[_]=M}return{vals:g,starts:v,ends:x}}},{"../../constants/numerical":267,"../../lib":287,"fast-isnumeric":33}],332:[function(e,t,r){"use strict";t.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},{}],333:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("fast-isnumeric"),i=e("../../lib"),o=e("../../constants/numerical").FP_SAFE,l=e("../../registry"),s=e("../../components/drawing"),c=e("./axis_ids"),u=c.getFromId,f=c.isLinked;function d(e,t){var r,n,a=[],o=e._fullLayout,l=h(o,t,0),s=h(o,t,1),c=m(e,t),u=c.min,f=c.max;if(0===u.length||0===f.length)return i.simpleMap(t.range,t.r2l);var d=u[0].val,y=f[0].val;for(r=1;r0&&((T=S-l(x)-s(b))>O?M/T>D&&(_=x,w=b,D=M/T):M/S>D&&(_={val:x.val,nopad:1},w={val:b.val,nopad:1},D=M/S));if(d===y){var C=d-1,E=d+1;if(A)if(0===d)a=[0,1];else{var P=(d>0?f:u).reduce((function(e,t){return Math.max(e,s(t))}),0),R=d/(1-Math.min(.5,P/S));a=d>0?[0,R]:[R,0]}else a=L?[Math.max(0,C),Math.max(1,E)]:[C,E]}else A?(_.val>=0&&(_={val:0,nopad:1}),w.val<=0&&(w={val:0,nopad:1})):L&&(_.val-D*l(_)<0&&(_={val:0,nopad:1}),w.val<=0&&(w={val:1,nopad:1})),D=(w.val-_.val-p(t,x.val,b.val))/(S-l(_)-s(w)),a=[_.val-D*l(_),w.val+D*s(w)];return g&&a.reverse(),i.simpleMap(a,t.l2r||Number)}function p(e,t,r){var n=0;if(e.rangebreaks)for(var a=e.locateBreaks(t,r),i=0;i0?r.ppadplus:r.ppadminus)||r.ppad||0),L=k((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),S=k(r.vpadplus||r.vpad),O=k(r.vpadminus||r.vpad);if(!T){if(d=1/0,p=-1/0,w)for(n=0;n0&&(d=i),i>p&&i-o&&(d=i),i>p&&i=E;n--)C(n);return{min:h,max:m,opts:r}},concatExtremes:m};function m(e,t,r){var n,a,i,o=t._id,l=e._fullData,s=e._fullLayout,c=[],f=[];function d(e,t){for(n=0;n=r&&(c.extrapad||!o)){l=!1;break}a(t,c.val)&&c.pad<=r&&(o||!c.extrapad)&&(e.splice(s,1),s--)}if(l){var u=i&&0===t;e.push({val:t,pad:u?0:r,extrapad:!u&&o})}}function x(e){return a(e)&&Math.abs(e)=t}},{"../../components/drawing":179,"../../constants/numerical":267,"../../lib":287,"../../registry":376,"./axis_ids":338,"@plotly/d3":20,"fast-isnumeric":33}],334:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("fast-isnumeric"),i=e("../../plots/plots"),o=e("../../registry"),l=e("../../lib"),s=l.strTranslate,c=e("../../lib/svg_text_utils"),u=e("../../components/titles"),f=e("../../components/color"),d=e("../../components/drawing"),p=e("./layout_attributes"),h=e("./clean_ticks"),m=e("../../constants/numerical"),y=m.ONEMAXYEAR,g=m.ONEAVGYEAR,v=m.ONEMINYEAR,x=m.ONEMAXQUARTER,b=m.ONEAVGQUARTER,_=m.ONEMINQUARTER,w=m.ONEMAXMONTH,T=m.ONEAVGMONTH,M=m.ONEMINMONTH,k=m.ONEWEEK,A=m.ONEDAY,L=A/2,S=m.ONEHOUR,O=m.ONEMIN,D=m.ONESEC,C=m.MINUS_SIGN,E=m.BADNUM,P={K:"zeroline"},R={K:"gridline",L:"path"},z={K:"tick",L:"path"},I={K:"tick",L:"text"},N=e("../../constants/alignment"),F=N.MID_SHIFT,j=N.CAP_SHIFT,B=N.LINE_SPACING,H=N.OPPOSITE_SIDE,U=t.exports={};U.setConvert=e("./set_convert");var Y=e("./axis_autotype"),q=e("./axis_ids"),V=q.idSort,G=q.isLinked;U.id2name=q.id2name,U.name2id=q.name2id,U.cleanId=q.cleanId,U.list=q.list,U.listIds=q.listIds,U.getFromId=q.getFromId,U.getFromTrace=q.getFromTrace;var Z=e("./autorange");U.getAutoRange=Z.getAutoRange,U.findExtremes=Z.findExtremes;function W(e){var t=1e-4*(e[1]-e[0]);return[e[0]-t,e[1]+t]}U.coerceRef=function(e,t,r,n,a,i){var o=n.charAt(n.length-1),s=r._fullLayout._subplots[o+"axis"],c=n+"ref",u={};return a||(a=s[0]||("string"==typeof i?i:i[0])),i||(i=a),s=s.concat(s.map((function(e){return e+" domain"}))),u[c]={valType:"enumerated",values:s.concat(i?"string"==typeof i?[i]:i:[]),dflt:a},l.coerce(e,t,u,c)},U.getRefType=function(e){return void 0===e?e:"paper"===e?"paper":"pixel"===e?"pixel":/( domain)$/.test(e)?"domain":"range"},U.coercePosition=function(e,t,r,n,a,i){var o,s;if("range"!==U.getRefType(n))o=l.ensureNumber,s=r(a,i);else{var c=U.getFromId(t,n);s=r(a,i=c.fraction2r(i)),o=c.cleanPos}e[a]=o(s)},U.cleanPosition=function(e,t,r){return("paper"===r||"pixel"===r?l.ensureNumber:U.getFromId(t,r).cleanPos)(e)},U.redrawComponents=function(e,t){t=t||U.listIds(e);var r=e._fullLayout;function n(n,a,i,l){for(var s=o.getComponentMethod(n,a),c={},u=0;u2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0)):e._minDtick=0},U.saveRangeInitial=function(e,t){for(var r=U.list(e,"",!0),n=!1,a=0;a.3*d||u(n)||u(i))){var p=r.dtick/2;e+=e+p.8){var o=Number(r.substr(1));i.exactYears>.8&&o%12==0?e=U.tickIncrement(e,"M6","reverse")+1.5*A:i.exactMonths>.8?e=U.tickIncrement(e,"M1","reverse")+15.5*A:e-=L;var s=U.tickIncrement(e,r);if(s<=n)return s}return e}(v,e,g,c,i)),y=v;y<=u;)y=U.tickIncrement(y,g,!1,i);return{start:t.c2r(v,0,i),end:t.c2r(y,0,i),size:g,_dataSpan:u-c}},U.prepTicks=function(e,t){var r=l.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e._dtickInit=e.dtick,e._tick0Init=e.tick0,"auto"===e.tickmode||!e.dtick){var n,i=e.nticks;i||("category"===e.type||"multicategory"===e.type?(n=e.tickfont?l.bigFont(e.tickfont.size||12):15,i=e._length/n):(n="y"===e._id.charAt(0)?40:80,i=l.constrain(e._length/n,4,9)+1),"radialaxis"===e._name&&(i*=2)),"array"===e.tickmode&&(i*=100),e._roughDTick=Math.abs(r[1]-r[0])/i,U.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick<2*e._minDtick&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}"period"===e.ticklabelmode&&function(e){var t;function r(){return!(a(e.dtick)||"M"!==e.dtick.charAt(0))}var n=r(),i=U.getTickFormat(e);if(i){var o=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(i)||(/%[HI]/.test(i)?(t=S,o&&!n&&e.dticki&&f=o:p<=o;p=U.tickIncrement(p,e.dtick,s,e.calendar)){if(e.rangebreaks&&!s){if(p=u)break}if(O.length>m||p===D)break;D=p;var C=!1;f&&p!==(0|p)&&(C=!0),O.push({minor:C,value:p})}if(d&&function(e,t,r){for(var n=0;n0?(i=n-1,o=n):(i=n,o=n);var l,s=e[i].value,c=e[o].value,u=Math.abs(c-s),f=r||u,d=0;f>=v?d=u>=v&&u<=y?u:g:r===b&&f>=_?d=u>=_&&u<=x?u:b:f>=M?d=u>=M&&u<=w?u:T:r===k&&f>=k?d=k:f>=A?d=A:r===L&&f>=L?d=L:r===S&&f>=S&&(d=S),d>=u&&(d=u,l=!0);var p=a+d;if(t.rangebreaks&&d>0){for(var h=0,m=0;m<84;m++){var O=(m+.5)/84;t.maskBreaks(a*(1-O)+O*p)!==E&&h++}(d*=h/84)||(e[n].drop=!0),l&&u>k&&(d=u)}(d>0||0===n)&&(e[n].periodX=a+d/2)}}(O,e,e._definedDelta),e.rangebreaks){var P="y"===e._id.charAt(0),R=1;"auto"===e.tickmode&&(R=e.tickfont?e.tickfont.size:12);var z=NaN;for(h=O.length-1;h>-1;h--)if(O[h].drop)O.splice(h,1);else{O[h].value=Le(O[h].value,e);var I=e.c2p(O[h].value);(P?z>I-R:zu||Fu&&(N.periodX=u),F10||"01-01"!==n.substr(5)?e._tickround="d":e._tickround=+t.substr(1)%12==0?"y":"m";else if(t>=A&&i<=10||t>=15*A)e._tickround="d";else if(t>=O&&i<=16||t>=S)e._tickround="M";else if(t>=D&&i<=19||t>=O)e._tickround="S";else{var o=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(i,o)-20,e._tickround<0&&(e._tickround=4)}}else if(a(t)||"L"===t.charAt(0)){var l=e.range.map(e.r2d||Number);a(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(l[0]),Math.abs(l[1])),c=Math.floor(Math.log(s)/Math.LN10+.01),u=void 0===e.minexponent?3:e.minexponent;Math.abs(c)>u&&(fe(e.exponentformat)&&!de(c)?e._tickexponent=3*Math.round((c-1)/3):e._tickexponent=c)}else e._tickround=null}function se(e,t,r){var n=e.tickfont||{};return{x:t,dx:0,dy:0,text:r||"",fontSize:n.size,font:n.family,fontColor:n.color}}function ce(e,t,r,n,a){if("radians"!==e.thetaunit||r)t.text=pe(t.x,e,a,n);else{var i=t.x/180;if(0===i)t.text="0";else{var o=function(e){function t(e,t){return Math.abs(e-t)<=1e-6}function r(e,n){return t(n,0)?e:r(n,e%n)}function n(e){for(var r=1;!t(Math.round(e*r)/r,e);)r*=10;return r}var a=n(e),i=e*a,o=Math.abs(r(i,a));return[Math.round(i/o),Math.round(a/o)]}(i);if(o[1]>=100)t.text=pe(l.deg2rad(t.x),e,a,n);else{var s=t.x<0;1===o[1]?1===o[0]?t.text="π":t.text=o[0]+"π":t.text=["",o[0],"","⁄","",o[1],"","π"].join(""),s&&(t.text=C+t.text)}}}}U.autoTicks=function(e,t){var r;function n(e){return Math.pow(e,Math.floor(Math.log(t)/Math.LN10))}if("date"===e.type){e.tick0=l.dateTick0(e.calendar,0);var i=2*t;if(i>g)t/=g,r=n(10),e.dtick="M"+12*oe(t,r,$);else if(i>T)t/=T,e.dtick="M"+oe(t,1,ee);else if(i>A){e.dtick=oe(t,A,e._hasDayOfWeekBreaks?[1,2,7,14]:re);var o=U.getTickFormat(e),s="period"===e.ticklabelmode;s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=l.dateTick0(e.calendar,2):e.tick0=l.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}else i>S?e.dtick=oe(t,S,ee):i>O?e.dtick=oe(t,O,te):i>D?e.dtick=oe(t,D,te):(r=n(10),e.dtick=oe(t,r,$))}else if("log"===e.type){e.tick0=0;var c=l.simpleMap(e.range,e.r2l);if(t>.7)e.dtick=Math.ceil(t);else if(Math.abs(c[1]-c[0])<1){var u=1.5*Math.abs((c[1]-c[0])/t);t=Math.abs(Math.pow(10,c[1])-Math.pow(10,c[0]))/u,r=n(10),e.dtick="L"+oe(t,r,$)}else e.dtick=t>.3?"D2":"D1"}else"category"===e.type||"multicategory"===e.type?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):Ae(e)?(e.tick0=0,r=1,e.dtick=oe(t,r,ie)):(e.tick0=0,r=n(10),e.dtick=oe(t,r,$));if(0===e.dtick&&(e.dtick=1),!a(e.dtick)&&"string"!=typeof e.dtick){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}},U.tickIncrement=function(e,t,r,i){var o=r?-1:1;if(a(t))return l.increment(e,o*t);var s=t.charAt(0),c=o*Number(t.substr(1));if("M"===s)return l.incrementMonth(e,c,i);if("L"===s)return Math.log(Math.pow(10,e)+c)/Math.LN10;if("D"===s){var u="D2"===t?ae:ne,f=e+.01*o,d=l.roundUp(l.mod(f,1),u,r);return Math.floor(f)+Math.log(n.round(Math.pow(10,d),1))/Math.LN10}throw"unrecognized dtick "+String(t)},U.tickFirst=function(e,t){var r=e.r2l||Number,i=l.simpleMap(e.range,r,void 0,void 0,t),o=i[1] ")}else e._prevDateHead=s,c+="
"+s;t.text=c}(e,o,r,c):"log"===u?function(e,t,r,n,i){var o=e.dtick,s=t.x,c=e.tickformat,u="string"==typeof o&&o.charAt(0);if("never"===i&&(i=""),n&&"L"!==u&&(o="L3",u="L"),c||"L"===u)t.text=pe(Math.pow(10,s),e,i,n);else if(a(o)||"D"===u&&l.mod(s+.01,1)<.1){var f=Math.round(s),d=Math.abs(f),p=e.exponentformat;"power"===p||fe(p)&&de(f)?(t.text=0===f?1:1===f?"10":"10"+(f>1?"":C)+d+"",t.fontSize*=1.25):("e"===p||"E"===p)&&d>2?t.text="1"+p+(f>0?"+":C)+d:(t.text=pe(Math.pow(10,s),e,"","fakehover"),"D1"===o&&"y"===e._id.charAt(0)&&(t.dy-=t.fontSize/6))}else{if("D"!==u)throw"unrecognized dtick "+String(o);t.text=String(Math.round(Math.pow(10,l.mod(s,1)))),t.fontSize*=.75}if("D1"===e.dtick){var h=String(t.text).charAt(0);"0"!==h&&"1"!==h||("y"===e._id.charAt(0)?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(s<0?.5:.25)))}}(e,o,0,c,m):"category"===u?function(e,t){var r=e._categories[Math.round(t.x)];void 0===r&&(r=""),t.text=String(r)}(e,o):"multicategory"===u?function(e,t,r){var n=Math.round(t.x),a=e._categories[n]||[],i=void 0===a[1]?"":String(a[1]),o=void 0===a[0]?"":String(a[0]);r?t.text=o+" - "+i:(t.text=i,t.text2=o)}(e,o,r):Ae(e)?ce(e,o,r,c,m):function(e,t,r,n,a){"never"===a?a="":"all"===e.showexponent&&Math.abs(t.x/e.dtick)<1e-6&&(a="hide"),t.text=pe(t.x,e,a,n)}(e,o,0,c,m),n||(e.tickprefix&&!h(e.showtickprefix)&&(o.text=e.tickprefix+o.text),e.ticksuffix&&!h(e.showticksuffix)&&(o.text+=e.ticksuffix)),"boundaries"===e.tickson||e.showdividers){var y=function(t){var r=e.l2p(t);return r>=0&&r<=e._length?t:null};o.xbnd=[y(o.x-.5),y(o.x+e.dtick-.5)]}return o},U.hoverLabelText=function(e,t,r){r&&(e=l.extendFlat({},e,{hoverformat:r}));var n=Array.isArray(t)?t[0]:t,a=Array.isArray(t)?t[1]:void 0;if(void 0!==a&&a!==n)return U.hoverLabelText(e,n,r)+" - "+U.hoverLabelText(e,a,r);var i="log"===e.type&&n<=0,o=U.tickText(e,e.c2l(i?-n:n),"hover").text;return i?0===n?"0":C+o:o};var ue=["f","p","n","μ","m","","k","M","G","T"];function fe(e){return"SI"===e||"B"===e}function de(e){return e>14||e<-15}function pe(e,t,r,n){var i=e<0,o=t._tickround,s=r||t.exponentformat||"B",c=t._tickexponent,u=U.getTickFormat(t),f=t.separatethousands;if(n){var d={exponentformat:s,minexponent:t.minexponent,dtick:"none"===t.showexponent?t.dtick:a(e)&&Math.abs(e)||1,range:"none"===t.showexponent?t.range.map(t.r2d):[0,e||1]};le(d),o=(Number(d._tickround)||0)+4,c=d._tickexponent,t.hoverformat&&(u=t.hoverformat)}if(u)return t._numFormat(u)(e).replace(/-/g,C);var p,h=Math.pow(10,-o)/2;if("none"===s&&(c=0),(e=Math.abs(e))"+p+"":"B"===s&&9===c?e+="B":fe(s)&&(e+=ue[c/3+5])),i?C+e:e}function he(e,t){for(var r=[],n={},a=0;a1&&r=a.min&&e=0,i=u(e,t[1])<=0;return(r||a)&&(n||i)}if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":for(t=0;t=o(a)))){r=n;break}break;case"log":for(t=0;t0?r.bottom-f:0,d)))),t.automargin){n={x:0,y:0,r:0,l:0,t:0,b:0};var p=[0,1];if("x"===h){if("b"===s?n[s]=t._depth:(n[s]=t._depth=Math.max(r.width>0?f-r.top:0,d),p.reverse()),r.width>0){var y=r.right-(t._offset+t._length);y>0&&(n.xr=1,n.r=y);var g=t._offset-r.left;g>0&&(n.xl=0,n.l=g)}}else if("l"===s?n[s]=t._depth=Math.max(r.height>0?f-r.left:0,d):(n[s]=t._depth=Math.max(r.height>0?r.right-f:0,d),p.reverse()),r.height>0){var v=r.bottom-(t._offset+t._length);v>0&&(n.yb=0,n.b=v);var x=t._offset-r.top;x>0&&(n.yt=1,n.t=x)}n[m]="free"===t.anchor?t.position:t._anchorAxis.domain[p[0]],t.title.text!==c._dfltTitle[h]&&(n[s]+=ge(t)+(t.title.standoff||0)),t.mirror&&"free"!==t.anchor&&((a={x:0,y:0,r:0,l:0,t:0,b:0})[u]=t.linewidth,t.mirror&&!0!==t.mirror&&(a[u]+=d),!0===t.mirror||"ticks"===t.mirror?a[m]=t._anchorAxis.domain[p[1]]:"all"!==t.mirror&&"allticks"!==t.mirror||(a[m]=[t._counterDomainMin,t._counterDomainMax][p[1]]))}K&&(l=o.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),i.autoMargin(e,be(t),n),i.autoMargin(e,_e(t),a),i.autoMargin(e,we(t),l)})),r.skipTitle||K&&"bottom"===t.side||X.push((function(){return function(e,t){var r,n=e._fullLayout,a=t._id,i=a.charAt(0),o=t.title.font.size;if(t.title.hasOwnProperty("standoff"))r=t._depth+t.title.standoff+ge(t);else{var l=Se(t);if("multicategory"===t.type)r=t._depth;else{var s=1.5*o;l&&(s=.5*o,"outside"===t.ticks&&(s+=t.ticklen)),r=10+s+(t.linewidth?t.linewidth-1:0)}l||(r+="x"===i?"top"===t.side?o*(t.showticklabels?1:0):o*(t.showticklabels?1.5:.5):"right"===t.side?o*(t.showticklabels?1:.5):o*(t.showticklabels?.5:0))}var c,f,p,h,m=U.getPxPosition(e,t);if("x"===i?(f=t._offset+t._length/2,p="top"===t.side?m-r:m+r):(p=t._offset+t._length/2,f="right"===t.side?m+r:m-r,c={rotate:"-90",offset:0}),"multicategory"!==t.type){var y=t._selections[t._id+"tick"];if(h={selection:y,side:t.side},y&&y.node()&&y.node().parentNode){var g=d.getTranslate(y.node().parentNode);h.offsetLeft=g.x,h.offsetTop=g.y}t.title.hasOwnProperty("standoff")&&(h.pad=0)}return u.draw(e,a+"title",{propContainer:t,propName:t._name+".title.text",placeholder:n._dfltTitle[i],avoid:h,transform:c,attributes:{x:f,y:p,"text-anchor":"middle"}})}(e,t)})),l.syncOrAsync(X)}}function Q(e){var r=p+(e||"tick");return w[r]||(w[r]=function(e,t){var r,n,a,i;return e._selections[t].size()?(r=1/0,n=-1/0,a=1/0,i=-1/0,e._selections[t].each((function(){var e=xe(this),t=d.bBox(e.node().parentNode);r=Math.min(r,t.top),n=Math.max(n,t.bottom),a=Math.min(a,t.left),i=Math.max(i,t.right)}))):(r=0,n=0,a=0,i=0),{top:r,bottom:n,left:a,right:i,height:n-r,width:i-a}}(t,r)),w[r]}},U.getTickSigns=function(e){var t=e._id.charAt(0),r={x:"top",y:"right"}[t],n=e.side===r?1:-1,a=[-1,1,n,-n];return"inside"!==e.ticks==("x"===t)&&(a=a.map((function(e){return-e}))),e.side&&a.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),a},U.makeTransTickFn=function(e){return"x"===e._id.charAt(0)?function(t){return s(e._offset+e.l2p(t.x),0)}:function(t){return s(0,e._offset+e.l2p(t.x))}},U.makeTransTickLabelFn=function(e){var t=function(e){var t=e.ticklabelposition||"",r=function(e){return-1!==t.indexOf(e)},n=r("top"),a=r("left"),i=r("right"),o=r("bottom"),l=r("inside"),s=o||a||n||i;if(!s&&!l)return[0,0];var c=e.side,u=s?(e.tickwidth||0)/2:0,f=3,d=e.tickfont?e.tickfont.size:12;return(o||n)&&(u+=d*j,f+=(e.linewidth||0)/2),(a||i)&&(u+=(e.linewidth||0)/2,f+=3),l&&"top"===c&&(f-=d*(1-j)),(a||n)&&(u=-u),"bottom"!==c&&"right"!==c||(f=-f),[s?u:0,l?f:0]}(e),r=t[0],n=t[1];return"x"===e._id.charAt(0)?function(t){return s(r+e._offset+e.l2p(me(t)),n)}:function(t){return s(n,r+e._offset+e.l2p(me(t)))}},U.makeTickPath=function(e,t,r,n){n=void 0!==n?n:e.ticklen;var a=e._id.charAt(0),i=(e.linewidth||1)/2;return"x"===a?"M0,"+(t+i*r)+"v"+n*r:"M"+(t+i*r)+",0h"+n*r},U.makeLabelFns=function(e,t,r){var n=e.ticklabelposition||"",i=function(e){return-1!==n.indexOf(e)},o=i("top"),s=i("left"),c=i("right"),u=i("bottom")||s||o||c,f=i("inside"),d="inside"===n&&"inside"===e.ticks||!f&&"outside"===e.ticks&&"boundaries"!==e.tickson,p=0,h=0,m=d?e.ticklen:0;if(f?m*=-1:u&&(m=0),d&&(p+=m,r)){var y=l.deg2rad(r);p=m*Math.cos(y)+1,h=m*Math.sin(y)}e.showticklabels&&(d||e.showline)&&(p+=.2*e.tickfont.size);var g,v,x,b,_,w={labelStandoff:p+=(e.linewidth||1)/2*(f?-1:1),labelShift:h},T=0,M=e.side,k=e._id.charAt(0),A=e.tickangle;if("x"===k)b=(_=!f&&"bottom"===M||f&&"top"===M)?1:-1,f&&(b*=-1),g=h*b,v=t+p*b,x=_?1:-.2,90===Math.abs(A)&&(f?x+=F:x=-90===A&&"bottom"===M?j:90===A&&"top"===M?F:.5,T=F/2*(A/90)),w.xFn=function(e){return e.dx+g+T*e.fontSize},w.yFn=function(e){return e.dy+v+e.fontSize*x},w.anchorFn=function(e,t){if(u){if(s)return"end";if(c)return"start"}return a(t)&&0!==t&&180!==t?t*b<0!==f?"end":"start":"middle"},w.heightFn=function(t,r,n){return r<-60||r>60?-.5*n:"top"===e.side!==f?-n:0};else if("y"===k){if(b=(_=!f&&"left"===M||f&&"right"===M)?1:-1,f&&(b*=-1),g=p,v=h*b,x=0,f||90!==Math.abs(A)||(x=-90===A&&"left"===M||90===A&&"right"===M?j:.5),f){var L=a(A)?+A:0;if(0!==L){var S=l.deg2rad(L);T=Math.abs(Math.sin(S))*j*b,x=0}}w.xFn=function(e){return e.dx+t-(g+e.fontSize*x)*b+T*e.fontSize},w.yFn=function(e){return e.dy+v+e.fontSize*F},w.anchorFn=function(e,t){return a(t)&&90===Math.abs(t)?"middle":_?"end":"start"},w.heightFn=function(t,r,n){return"right"===e.side&&(r*=-1),r<-30?-n:r<30?-.5*n:0}}return w},U.drawTicks=function(e,t,r){r=r||{};var n=t._id+"tick",a=r.vals;"period"===t.ticklabelmode&&(a=a.slice()).shift();var i=r.layer.selectAll("path."+n).data(t.ticks?a:[],ye);i.exit().remove(),i.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",!1!==r.crisp).call(f.stroke,t.tickcolor).style("stroke-width",d.crispRound(e,t.tickwidth,1)+"px").attr("d",r.path).style("display",null),Oe(t,[z]),i.attr("transform",r.transFn)},U.drawGrid=function(e,t,r){r=r||{};var n=t._id+"grid",a=r.vals,i=r.counterAxis;if(!1===t.showgrid)a=[];else if(i&&U.shouldShowZeroLine(e,t,i))for(var o="array"===t.tickmode,l=0;lp||i.leftp||i.top+(t.tickangle?0:e.fontSize/4)t["_visibleLabelMin_"+r._id]?s.style("display","none"):"tick"!==e.K||a||s.style("display",null)}))}))}))}))},x(g,y+1?y:m);var b=null;t._selections&&(t._selections[f]=g);var _=[function(){return v.length&&Promise.all(v)}];t.automargin&&i._redrawFromAutoMarginCount&&90===y?(b=90,_.push((function(){x(g,y)}))):_.push((function(){if(x(g,m),p.length&&"x"===u&&!a(m)&&("log"!==t.type||"D"!==String(t.dtick).charAt(0))){b=0;var e,n=0,i=[];if(g.each((function(e){n=Math.max(n,e.fontSize);var r=t.l2p(e.x),a=xe(this),o=d.bBox(a.node());i.push({top:0,bottom:10,height:10,left:r-o.width/2,right:r+o.width/2+2,width:o.width+2})})),"boundaries"!==t.tickson&&!t.showdividers||r.secondary){var o=p.length,s=Math.abs((p[o-1].x-p[0].x)*t._m)/(o-1),c=t.ticklabelposition||"",f=function(e){return-1!==c.indexOf(e)},h=f("top"),y=f("left"),v=f("right"),_=f("bottom")||y||h||v?(t.tickwidth||0)+6:0,w=s<2.5*n||"multicategory"===t.type;for(e=0;e1)for(n=1;n2*o}(a,t))return"date";var y="strict"!==r.autotypenumbers;return function(e,t){for(var r=e.length,n=f(r),a=0,o=0,l={},u=0;u2*a}(a,y)?"category":function(e,t){for(var r=e.length,n=0;n=2){var s,c,u="";if(2===o.length)for(s=0;s<2;s++)if(c=v(o[s])){u=h;break}var f=a("pattern",u);if(f===h)for(s=0;s<2;s++)(c=v(o[s]))&&(t.bounds[s]=o[s]=c-1);if(f)for(s=0;s<2;s++)switch(c=o[s],f){case h:if(!n(c))return void(t.enabled=!1);if((c=+c)!==Math.floor(c)||c<0||c>=7)return void(t.enabled=!1);t.bounds[s]=o[s]=c;break;case m:if(!n(c))return void(t.enabled=!1);if((c=+c)<0||c>24)return void(t.enabled=!1);t.bounds[s]=o[s]=c}if(!1===r.autorange){var d=r.range;if(d[0]d[1])return void(t.enabled=!1)}else if(o[0]>d[0]&&o[1]n?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)},r.ref2id=function(e){return!!/^[xyz]/.test(e)&&e.split(" ")[0]},r.isLinked=function(e,t){return i(t,e._axisMatchGroups)||i(t,e._axisConstraintGroups)}},{"../../registry":376,"./constants":341}],339:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){if("category"===t.type){var a,i=e.categoryarray,o=Array.isArray(i)&&i.length>0;o&&(a="array");var l,s=r("categoryorder",a);"array"===s&&(l=r("categoryarray")),o||"array"!==s||(s=t.categoryorder="trace"),"trace"===s?t._initialCategories=[]:"array"===s?t._initialCategories=l.slice():(l=function(e,t){var r,n,a,i=t.dataAttr||e._id.charAt(0),o={};if(t.axData)r=t.axData;else for(r=[],n=0;nn?a.substr(n):i.substr(r))+o:a+i+e*t:o}function y(e,t){for(var r=t._size,n=r.h/r.w,a={},i=Object.keys(e),o=0;oc*x)||T)for(r=0;rP&&NC&&(C=N);d/=(C-D)/(2*E),D=s.l2r(D),C=s.l2r(C),s.range=s._input.range=L=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function j(e,t,r,n,a){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",c(r,n)).attr("d",a+"Z")}function B(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:f.background,stroke:f.defaultLine,"stroke-width":1,opacity:0}).attr("transform",c(t,r)).attr("d","M0,0Z")}function H(e,t,r,n,a,i){e.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),U(e,t,a,i)}function U(e,t,r,n){r||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function Y(e){n.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function q(e){E&&e.data&&e._context.showTips&&(a.notifier(a._(e,"Double-click to zoom back out"),"long"),E=!1)}function V(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,C)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function G(e,t,r,n,i){for(var o,l,s,c,u=!1,f={},d={},p=(i||{}).xaHash,h=(i||{}).yaHash,m=0;m=0)a._fullLayout._deactivateShape(a);else{var o=a._fullLayout.clickmode;if(Y(a),2!==e||ge||qe(),ye)o.indexOf("select")>-1&&L(r,a,J,K,t.id,Ce),o.indexOf("event")>-1&&p.click(a,r,t.id);else if(1===e&&ge){var l=m?P:E,c="s"===m||"w"===g?0:1,f=l._name+".range["+c+"]",d=function(e,t){var r,n=e.range[t],a=Math.abs(n-e.range[1-t]);return"date"===e.type?n:"log"===e.type?(r=Math.ceil(Math.max(0,-Math.log(a)/Math.LN10))+3,i("."+r+"g")(Math.pow(10,n))):(r=Math.floor(Math.log(Math.abs(n))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,i("."+String(r)+"g")(n))}(l,c),h="left",y="middle";if(l.fixedrange)return;m?(y="n"===m?"top":"bottom","right"===l.side&&(h="right")):"e"===g&&(h="right"),a._context.showAxisRangeEntryBoxes&&n.select(be).call(u.makeEditable,{gd:a,immediate:!0,background:a._fullLayout.paper_bgcolor,text:String(d),fill:l.tickfont?l.tickfont.color:"#444",horizontalAlign:h,verticalAlign:y}).on("edit",(function(e){var t=l.d2r(e);void 0!==t&&s.call("_guiRelayout",a,f,t)}))}}}function Re(t,r){if(e._transitioningWithDuration)return!1;var n=Math.max(0,Math.min(ee,pe*t+_e)),a=Math.max(0,Math.min(te,he*r+we)),i=Math.abs(n-_e),o=Math.abs(a-we);function l(){Le="",Te.r=Te.l,Te.t=Te.b,Oe.attr("d","M0,0Z")}if(Te.l=Math.min(_e,n),Te.r=Math.max(_e,n),Te.t=Math.min(we,a),Te.b=Math.max(we,a),re.isSubplotConstrained)i>C||o>C?(Le="xy",i/ee>o/te?(o=i*te/ee,we>a?Te.t=we-o:Te.b=we+o):(i=o*ee/te,_e>n?Te.l=_e-i:Te.r=_e+i),Oe.attr("d",V(Te))):l();else if(ne.isSubplotConstrained)if(i>C||o>C){Le="xy";var s=Math.min(Te.l/ee,(te-Te.b)/te),c=Math.max(Te.r/ee,(te-Te.t)/te);Te.l=s*ee,Te.r=c*ee,Te.b=(1-s)*te,Te.t=(1-c)*te,Oe.attr("d",V(Te))}else l();else!ie||o0){var u;if(ne.isSubplotConstrained||!ae&&1===ie.length){for(u=0;um[1]-1/4096&&(t.domain=l),a.noneOrAll(e.domain,t.domain,l)}return r("layer"),t}},{"../../lib":287,"fast-isnumeric":33}],353:[function(e,t,r){"use strict";var n=e("../../constants/alignment").FROM_BL;t.exports=function(e,t,r){void 0===r&&(r=n[e.constraintoward||"center"]);var a=[e.r2l(e.range[0]),e.r2l(e.range[1])],i=a[0]+(a[1]-a[0])*r;e.range=e._input.range=[e.l2r(i+(a[0]-i)*t),e.l2r(i+(a[1]-i)*t)],e.setScale()}},{"../../constants/alignment":262}],354:[function(e,t,r){"use strict";var n=e("polybooljs"),a=e("../../registry"),i=e("../../components/drawing").dashStyle,o=e("../../components/color"),l=e("../../components/fx"),s=e("../../components/fx/helpers").makeEventData,c=e("../../components/dragelement/helpers"),u=c.freeMode,f=c.rectMode,d=c.drawMode,p=c.openMode,h=c.selectMode,m=e("../../components/shapes/draw_newshape/display_outlines"),y=e("../../components/shapes/draw_newshape/helpers").handleEllipse,g=e("../../components/shapes/draw_newshape/newshapes"),v=e("../../lib"),x=e("../../lib/polygon"),b=e("../../lib/throttle"),_=e("./axis_ids").getFromId,w=e("../../lib/clear_gl_canvases"),T=e("../../plot_api/subroutines").redrawReglTraces,M=e("./constants"),k=M.MINSELECT,A=x.filter,L=x.tester,S=e("./handle_outline").clearSelect,O=e("./helpers"),D=O.p2r,C=O.axValue,E=O.getTransform;function P(e,t,r,n,a,i,o){var l,s,c,u,f,d,h,y,g,v=t._hoverdata,x=t._fullLayout.clickmode.indexOf("event")>-1,b=[];if(function(e){return e&&Array.isArray(e)&&!0!==e[0].hoverOnBox}(v)){N(e,t,i);var _=function(e,t){var r,n,a=e[0],i=-1,o=[];for(n=0;n0?function(e,t){var r,n,a,i=[];for(a=0;a0&&i.push(r);if(1===i.length&&i[0]===t.searchInfo&&(n=t.searchInfo.cd[0].trace).selectedpoints.length===t.pointNumbers.length){for(a=0;a1)return!1;if((n+=t.selectedpoints.length)>1)return!1}return 1===n}(l)&&(d=B(_))){for(o&&o.remove(),g=0;g=0&&n._fullLayout._deactivateShape(n),d(t)){var i=n._fullLayout._zoomlayer.selectAll(".select-outline-"+r.id);if(i&&n._fullLayout._drawing){var o=g(i,e);o&&a.call("_guiRelayout",n,{shapes:o}),n._fullLayout._drawing=!1}}r.selection={},r.selection.selectionDefs=e.selectionDefs=[],r.selection.mergedPolygons=e.mergedPolygons=[]}function j(e,t,r,n){var a,i,o,l=[],s=t.map((function(e){return e._id})),c=r.map((function(e){return e._id}));for(o=0;o0?n[0]:r;return!!t.selectedpoints&&t.selectedpoints.indexOf(a)>-1}function H(e,t,r){var n,i,o,l;for(n=0;n=0)O._fullLayout._deactivateShape(O);else if(!_){var r=R.clickmode;b.done(me).then((function(){if(b.clear(me),2===e){for(fe.remove(),$=0;$-1&&P(t,O,a.xaxes,a.yaxes,a.subplot,a,fe),"event"===r&&O.emit("plotly_selected",void 0);l.click(O,t)})).catch(v.error)}},a.doneFn=function(){he.remove(),b.done(me).then((function(){b.clear(me),a.gd.emit("plotly_selected",te),Q&&a.selectionDefs&&(Q.subtract=ue,a.selectionDefs.push(Q),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,K)),a.doneFnCompleted&&a.doneFnCompleted(ye)})).catch(v.error),_&&F(a)}},clearSelect:S,clearSelectionsCache:F,selectOnClick:P}},{"../../components/color":157,"../../components/dragelement/helpers":175,"../../components/drawing":179,"../../components/fx":197,"../../components/fx/helpers":193,"../../components/shapes/draw_newshape/display_outlines":245,"../../components/shapes/draw_newshape/helpers":246,"../../components/shapes/draw_newshape/newshapes":247,"../../lib":287,"../../lib/clear_gl_canvases":275,"../../lib/polygon":299,"../../lib/throttle":311,"../../plot_api/subroutines":324,"../../registry":376,"./axis_ids":338,"./constants":341,"./handle_outline":345,"./helpers":346,polybooljs:75}],355:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("d3-time-format").utcFormat,i=e("../../lib"),o=i.numberFormat,l=e("fast-isnumeric"),s=i.cleanNumber,c=i.ms2DateTime,u=i.dateTime2ms,f=i.ensureNumber,d=i.isArrayOrTypedArray,p=e("../../constants/numerical"),h=p.FP_SAFE,m=p.BADNUM,y=p.LOG_CLIP,g=p.ONEWEEK,v=p.ONEDAY,x=p.ONEHOUR,b=p.ONEMIN,_=p.ONESEC,w=e("./axis_ids"),T=e("./constants"),M=T.HOUR_PATTERN,k=T.WEEKDAY_PATTERN;function A(e){return Math.pow(10,e)}function L(e){return null!=e}t.exports=function(e,t){t=t||{};var r=e._id||"x",p=r.charAt(0);function S(t,r){if(t>0)return Math.log(t)/Math.LN10;if(t<=0&&r&&e.range&&2===e.range.length){var n=e.range[0],a=e.range[1];return.5*(n+a-2*y*Math.abs(n-a))}return m}function O(t,r,n,a){if((a||{}).msUTC&&l(t))return+t;var o=u(t,n||e.calendar);if(o===m){if(!l(t))return m;t=+t;var s=Math.floor(10*i.mod(t+.05,1)),c=Math.round(t-s/10);o=u(new Date(c))+s/10}return o}function D(t,r,n){return c(t,r,n||e.calendar)}function C(t){return e._categories[Math.round(t)]}function E(t){if(L(t)){if(void 0===e._categoriesMap&&(e._categoriesMap={}),void 0!==e._categoriesMap[t])return e._categoriesMap[t];e._categories.push("number"==typeof t?String(t):t);var r=e._categories.length-1;return e._categoriesMap[t]=r,r}return m}function P(t){if(e._categoriesMap)return e._categoriesMap[t]}function R(e){var t=P(e);return void 0!==t?t:l(e)?+e:void 0}function z(e){return l(e)?+e:P(e)}function I(e,t,r){return n.round(r+t*e,2)}function N(e,t,r){return(e-r)/t}var F=function(t){return l(t)?I(t,e._m,e._b):m},j=function(t){return N(t,e._m,e._b)};if(e.rangebreaks){var B="y"===p;F=function(t){if(!l(t))return m;var r=e._rangebreaks.length;if(!r)return I(t,e._m,e._b);var n=B;e.range[0]>e.range[1]&&(n=!n);for(var a=n?-1:1,i=a*t,o=0,s=0;su)){o=i<(c+u)/2?s:s+1;break}o=s+1}var f=e._B[o]||0;return isFinite(f)?I(t,e._m2,f):0},j=function(t){var r=e._rangebreaks.length;if(!r)return N(t,e._m,e._b);for(var n=0,a=0;ae._rangebreaks[a].pmax&&(n=a+1);return N(t,e._m2,e._B[n])}}e.c2l="log"===e.type?S:f,e.l2c="log"===e.type?A:f,e.l2p=F,e.p2l=j,e.c2p="log"===e.type?function(e,t){return F(S(e,t))}:F,e.p2c="log"===e.type?function(e){return A(j(e))}:j,-1!==["linear","-"].indexOf(e.type)?(e.d2r=e.r2d=e.d2c=e.r2c=e.d2l=e.r2l=s,e.c2d=e.c2r=e.l2d=e.l2r=f,e.d2p=e.r2p=function(t){return e.l2p(s(t))},e.p2d=e.p2r=j,e.cleanPos=f):"log"===e.type?(e.d2r=e.d2l=function(e,t){return S(s(e),t)},e.r2d=e.r2c=function(e){return A(s(e))},e.d2c=e.r2l=s,e.c2d=e.l2r=f,e.c2r=S,e.l2d=A,e.d2p=function(t,r){return e.l2p(e.d2r(t,r))},e.p2d=function(e){return A(j(e))},e.r2p=function(t){return e.l2p(s(t))},e.p2r=j,e.cleanPos=f):"date"===e.type?(e.d2r=e.r2d=i.identity,e.d2c=e.r2c=e.d2l=e.r2l=O,e.c2d=e.c2r=e.l2d=e.l2r=D,e.d2p=e.r2p=function(t,r,n){return e.l2p(O(t,0,n))},e.p2d=e.p2r=function(e,t,r){return D(j(e),t,r)},e.cleanPos=function(t){return i.cleanDate(t,m,e.calendar)}):"category"===e.type?(e.d2c=e.d2l=E,e.r2d=e.c2d=e.l2d=C,e.d2r=e.d2l_noadd=R,e.r2c=function(t){var r=z(t);return void 0!==r?r:e.fraction2r(.5)},e.l2r=e.c2r=f,e.r2l=z,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return C(j(e))},e.r2p=e.d2p,e.p2r=j,e.cleanPos=function(e){return"string"==typeof e&&""!==e?e:f(e)}):"multicategory"===e.type&&(e.r2d=e.c2d=e.l2d=C,e.d2r=e.d2l_noadd=R,e.r2c=function(t){var r=R(t);return void 0!==r?r:e.fraction2r(.5)},e.r2c_just_indices=P,e.l2r=e.c2r=f,e.r2l=R,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return C(j(e))},e.r2p=e.d2p,e.p2r=j,e.cleanPos=function(e){return Array.isArray(e)||"string"==typeof e&&""!==e?e:f(e)},e.setupMultiCategory=function(n){var a,o,l=e._traceIndices,s=e._matchGroup;if(s&&0===e._categories.length)for(var c in s)if(c!==r){var u=t[w.id2name(c)];l=l.concat(u._traceIndices)}var f=[[0,{}],[0,{}]],h=[];for(a=0;ah&&(o[n]=h),o[0]===o[1]){var c=Math.max(1,Math.abs(1e-6*o[0]));o[0]-=c,o[1]+=c}}else i.nestedProperty(e,t).set(a)},e.setScale=function(r){var n=t._size;if(e.overlaying){var a=w.getFromId({_fullLayout:t},e.overlaying);e.domain=a.domain}var i=r&&e._r?"_r":"range",o=e.calendar;e.cleanRange(i);var l,s,c=e.r2l(e[i][0],o),u=e.r2l(e[i][1],o),f="y"===p;if(f?(e._offset=n.t+(1-e.domain[1])*n.h,e._length=n.h*(e.domain[1]-e.domain[0]),e._m=e._length/(c-u),e._b=-e._m*u):(e._offset=n.l+e.domain[0]*n.w,e._length=n.w*(e.domain[1]-e.domain[0]),e._m=e._length/(u-c),e._b=-e._m*c),e._rangebreaks=[],e._lBreaks=0,e._m2=0,e._B=[],e.rangebreaks&&(e._rangebreaks=e.locateBreaks(Math.min(c,u),Math.max(c,u)),e._rangebreaks.length)){for(l=0;lu&&(d=!d),d&&e._rangebreaks.reverse();var h=d?-1:1;for(e._m2=h*e._length/(Math.abs(u-c)-e._lBreaks),e._B.push(-e._m2*(f?u:c)),l=0;la&&(a+=7,oa&&(a+=24,o=n&&o=n&&t=l.min&&(el.max&&(l.max=n),a=!1)}a&&c.push({min:e,max:n})}};for(n=0;nr.duration?(function(){for(var r={},n=0;n rect").call(o.setTranslate,0,0).call(o.setScale,1,1),e.plot.call(o.setTranslate,t._offset,r._offset).call(o.setScale,1,1);var n=e.plot.selectAll(".scatterlayer .trace");n.selectAll(".point").call(o.setPointGroupScale,1,1),n.selectAll(".textpoint").call(o.setTextPointsScale,1,1),n.call(o.hideOutsideRangePoints,e)}function y(t,r){var n=t.plotinfo,a=n.xaxis,s=n.yaxis,c=a._length,u=s._length,f=!!t.xr1,d=!!t.yr1,p=[];if(f){var h=i.simpleMap(t.xr0,a.r2l),m=i.simpleMap(t.xr1,a.r2l),y=h[1]-h[0],g=m[1]-m[0];p[0]=(h[0]*(1-r)+r*m[0]-h[0])/(h[1]-h[0])*c,p[2]=c*(1-r+r*g/y),a.range[0]=a.l2r(h[0]*(1-r)+r*m[0]),a.range[1]=a.l2r(h[1]*(1-r)+r*m[1])}else p[0]=0,p[2]=c;if(d){var v=i.simpleMap(t.yr0,s.r2l),x=i.simpleMap(t.yr1,s.r2l),b=v[1]-v[0],_=x[1]-x[0];p[1]=(v[1]*(1-r)+r*x[1]-v[1])/(v[0]-v[1])*u,p[3]=u*(1-r+r*_/b),s.range[0]=a.l2r(v[0]*(1-r)+r*x[0]),s.range[1]=s.l2r(v[1]*(1-r)+r*x[1])}else p[1]=0,p[3]=u;l.drawOne(e,a,{skipTitle:!0}),l.drawOne(e,s,{skipTitle:!0}),l.redrawComponents(e,[a._id,s._id]);var w=f?c/p[2]:1,T=d?u/p[3]:1,M=f?p[0]:0,k=d?p[1]:0,A=f?p[0]/p[2]*c:0,L=d?p[1]/p[3]*u:0,S=a._offset-A,O=s._offset-L;n.clipRect.call(o.setTranslate,M,k).call(o.setScale,1/w,1/T),n.plot.call(o.setTranslate,S,O).call(o.setScale,w,T),o.setPointGroupScale(n.zoomScalePts,1/w,1/T),o.setTextPointsScale(n.zoomScaleTxt,1/w,1/T)}l.redrawComponents(e)}},{"../../components/drawing":179,"../../lib":287,"../../registry":376,"./axes":334,"@plotly/d3":20}],360:[function(e,t,r){"use strict";var n=e("../../registry").traceIs,a=e("./axis_autotype");function i(e,t){if("-"===e.type){var r,i=e._id,s=i.charAt(0);-1!==i.indexOf("scene")&&(i=s);var c=function(e,t,r){for(var n=0;n0&&(a["_"+r+"axes"]||{})[t])return a;if((a[r+"axis"]||r)===t){if(l(a,r))return a;if((a[r]||[]).length||a[r+"0"])return a}}}(t,i,s);if(c)if("histogram"!==c.type||s!=={v:"y",h:"x"}[c.orientation||"v"]){var u=s+"calendar",f=c[u],d={noMultiCategory:!n(c,"cartesian")||n(c,"noMultiCategory")};if("box"===c.type&&c._hasPreCompStats&&s==={h:"x",v:"y"}[c.orientation||"v"]&&(d.noMultiCategory=!0),d.autotypenumbers=e.autotypenumbers,l(c,s)){var p=o(c),h=[];for(r=0;r0?".":"")+i;a.isPlainObject(o)?s(o,t,l,n+1):t(l,i,o)}}))}r.manageCommandObserver=function(e,t,n,o){var l={},s=!0;t&&t._commandObserver&&(l=t._commandObserver),l.cache||(l.cache={}),l.lookupTable={};var c=r.hasSimpleAPICommandBindings(e,n,l.lookupTable);if(t&&t._commandObserver){if(c)return l;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,l}if(c){i(e,c,l.cache),l.check=function(){if(s){var t=i(e,c,l.cache);return t.changed&&o&&void 0!==l.lookupTable[t.value]&&(l.disable(),Promise.resolve(o({value:t.value,type:c.type,prop:c.prop,traces:c.traces,index:l.lookupTable[t.value]})).then(l.enable,l.enable)),t.changed}};for(var u=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],f=0;f=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),r.attr(i);var o=r.select(".js-link-to-tool"),l=r.select(".js-link-spacer"),s=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&function(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" "+String.fromCharCode(187));if(e._context.sendData)r.on("click",(function(){b.sendDataToCloud(e)}));else{var n=window.location.pathname.split("/"),a=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+a})}}(e,o),l.text(o.text()&&s.text()?" - ":"")}},b.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=n.select(e).append("div").attr("id","hiddenform").style("display","none"),a=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"});return a.append("input").attr({type:"text",name:"data"}).node().value=b.graphJson(e,!1,"keepdata"),a.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var T=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],M=["year","month","dayMonth","dayMonthYear"];function k(e,t){var r=e._context.locale;r||(r="en-US");var n=!1,a={};function i(e){for(var r=!0,i=0;i1&&R.length>1){for(l.getComponentMethod("grid","sizeDefaults")(c,s),o=0;o15&&R.length>15&&0===s.shapes.length&&0===s.images.length,b.linkSubplots(d,s,f,n),b.cleanPlot(d,s,f,n);var j=!(!n._has||!n._has("gl2d")),B=!(!s._has||!s._has("gl2d")),H=!(!n._has||!n._has("cartesian"))||j,U=!(!s._has||!s._has("cartesian"))||B;H&&!U?n._bgLayer.remove():U&&!H&&(s._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&h({_fullLayout:n}),function(e,t){var r,n=[];t.meta&&(r=t._meta={meta:t.meta,layout:{meta:t.meta}});for(var a=0;a0){var f=1-2*l;n=Math.round(f*n),a=Math.round(f*a)}}var d=b.layoutAttributes.width.min,p=b.layoutAttributes.height.min;n1,m=!t.height&&Math.abs(r.height-a)>1;(m||h)&&(h&&(r.width=n),m&&(r.height=a)),e._initialAutoSize||(e._initialAutoSize={width:n,height:a}),b.sanitizeMargins(r)},b.supplyLayoutModuleDefaults=function(e,t,r,n){var a,i,o,s=l.componentsRegistry,c=t._basePlotModules,f=l.subplotsRegistry.cartesian;for(a in s)(o=s[a]).includeBasePlot&&o.includeBasePlot(e,t);for(var d in c.length||c.push(f),t._has("cartesian")&&(l.getComponentMethod("grid","contentDefaults")(e,t),f.finalizeSubplots(e,t)),t._subplots)t._subplots[d].sort(u.subplotSort);for(i=0;i1&&(r.l/=m,r.r/=m)}if(f){var y=(r.t+r.b)/f;y>1&&(r.t/=y,r.b/=y)}var g=void 0!==r.xl?r.xl:r.x,v=void 0!==r.xr?r.xr:r.x,x=void 0!==r.yt?r.yt:r.y,_=void 0!==r.yb?r.yb:r.y;d[t]={l:{val:g,size:r.l+h},r:{val:v,size:r.r+h},b:{val:_,size:r.b+h},t:{val:x,size:r.t+h}},p[t]=1}else delete d[t],delete p[t];if(!n._replotting)return b.doAutoMargin(e)}},b.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,n=t.height;t._size||(t._size={}),D(t);var a=t._size,i=t.margin,s=u.extendFlat({},a),c=i.l,f=i.r,d=i.t,h=i.b,m=t._pushmargin,y=t._pushmarginIds;if(!1!==t.margin.autoexpand){for(var g in m)y[g]||delete m[g];for(var v in m.base={l:{val:0,size:c},r:{val:1,size:f},t:{val:1,size:d},b:{val:0,size:h}},m){var x=m[v].l||{},_=m[v].b||{},w=x.val,T=x.size,M=_.val,k=_.size;for(var A in m){if(o(T)&&m[A].r){var L=m[A].r.val,S=m[A].r.size;if(L>w){var O=(T*L+(S-r)*w)/(L-w),C=(S*(1-w)+(T-r)*(1-L))/(L-w);O+C>c+f&&(c=O,f=C)}}if(o(k)&&m[A].t){var E=m[A].t.val,P=m[A].t.size;if(E>M){var R=(k*E+(P-n)*M)/(E-M),z=(P*(1-M)+(k-n)*(1-E))/(E-M);R+z>h+d&&(h=R,d=z)}}}}}var I=u.constrain(r-i.l-i.r,2,64),N=u.constrain(n-i.t-i.b,2,64),F=Math.max(0,r-I),j=Math.max(0,n-N);if(F){var B=(c+f)/F;B>1&&(c/=B,f/=B)}if(j){var H=(h+d)/j;H>1&&(h/=H,d/=H)}if(a.l=Math.round(c),a.r=Math.round(f),a.t=Math.round(d),a.b=Math.round(h),a.p=Math.round(i.pad),a.w=Math.round(r)-a.l-a.r,a.h=Math.round(n)-a.t-a.b,!t._replotting&&b.didMarginChange(s,a)){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var U=3*(1+Object.keys(y).length);if(t._redrawFromAutoMarginCount0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push((function(){n=!0})),r.redraw&&e._transitionData._interruptCallbacks.push((function(){return l.call("redraw",e)})),e._transitionData._interruptCallbacks.push((function(){e.emit("plotly_transitioninterrupted",[])}));var i=0,o=0;function s(){return i++,function(){o++,n||o!==i||function(t){if(e._transitionData)(function(e){if(e)for(;e.length;)e.shift()})(e._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(r.redraw)return l.call("redraw",e)})).then((function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])})).then(t)}(a)}}r.runFn(s),setTimeout(s())}))}],i=u.syncOrAsync(a,e);return i&&i.then||(i=Promise.resolve()),i.then((function(){return e}))}b.didMarginChange=function(e,t){for(var r=0;r1)return!0}return!1},b.graphJson=function(e,t,r,n,a,i){(a&&t&&!e._fullData||a&&!t&&!e._fullLayout)&&b.supplyDefaults(e);var o=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function c(e,t){if("function"==typeof e)return t?"_function_":null;if(u.isPlainObject(e)){var n,a={};return Object.keys(e).sort().forEach((function(i){if(-1===["_","["].indexOf(i.charAt(0)))if("function"!=typeof e[i]){if("keepdata"===r){if("src"===i.substr(i.length-3))return}else if("keepstream"===r){if("string"==typeof(n=e[i+"src"])&&n.indexOf(":")>0&&!u.isPlainObject(e.stream))return}else if("keepall"!==r&&"string"==typeof(n=e[i+"src"])&&n.indexOf(":")>0)return;a[i]=c(e[i],t)}else t&&(a[i]="_function")})),a}return Array.isArray(e)?e.map((function(e){return c(e,t)})):u.isTypedArray(e)?u.simpleMap(e,u.identity):u.isJSDate(e)?u.ms2DateTimeLocal(+e):e}var f={data:(o||[]).map((function(e){var r=c(e);return t&&delete r.fit,r}))};if(!t&&(f.layout=c(l),a)){var d=l._size;f.layout.computed={margin:{b:d.b,l:d.l,r:d.r,t:d.t}}}return s&&(f.frames=c(s)),i&&(f.config=c(e._context,!0)),"object"===n?f:JSON.stringify(f)},b.modifyFrames=function(e,t){var r,n,a,i=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r=0;i--)if(l[i].enabled){r._indexToPoints=l[i]._indexToPoints;break}n&&n.calc&&(o=n.calc(e,r))}Array.isArray(o)&&o[0]||(o=[{x:d,y:d}]),o[0].t||(o[0].t={}),o[0].trace=r,h[t]=o}}for(R(o,c,f),a=0;a0){for(var n=[],a=0;a=u&&(p.min=0,m.min=0,y.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function h(e,t,r,n){var a=f[t._name];function o(r,n){return i.coerce(e,t,a,r,n)}o("uirevision",n.uirevision),t.type="linear";var d=o("color"),p=d!==a.color.dflt?d:r.font.color,h=t._name.charAt(0).toUpperCase(),m="Component "+h,y=o("title.text",m);t._hovertitle=y===m?y:h,i.coerceFont(o,"title.font",{family:r.font.family,size:i.bigFont(r.font.size),color:p}),o("min"),c(e,t,o,"linear"),l(e,t,o,"linear",{}),s(e,t,o,{outerTicks:!0}),o("showticklabels")&&(i.coerceFont(o,"tickfont",{family:r.font.family,size:r.font.size,color:p}),o("tickangle"),o("tickformat")),u(e,t,o,{dfltColor:d,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:a}),o("hoverformat"),o("layer")}t.exports=function(e,t,r){o(e,t,r,{type:"ternary",attributes:f,handleDefaults:p,font:t.font,paper_bgcolor:t.paper_bgcolor})}},{"../../components/color":157,"../../lib":287,"../../plot_api/plot_template":323,"../cartesian/line_grid_defaults":351,"../cartesian/tick_label_defaults":356,"../cartesian/tick_mark_defaults":357,"../cartesian/tick_value_defaults":358,"../subplot_defaults":370,"./layout_attributes":373}],375:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("tinycolor2"),i=e("../../registry"),o=e("../../lib"),l=o.strTranslate,s=o._,c=e("../../components/color"),u=e("../../components/drawing"),f=e("../cartesian/set_convert"),d=e("../../lib/extend").extendFlat,p=e("../plots"),h=e("../cartesian/axes"),m=e("../../components/dragelement"),y=e("../../components/fx"),g=e("../../components/dragelement/helpers"),v=g.freeMode,x=g.rectMode,b=e("../../components/titles"),_=e("../cartesian/select").prepSelect,w=e("../cartesian/select").selectOnClick,T=e("../cartesian/select").clearSelect,M=e("../cartesian/select").clearSelectionsCache,k=e("../cartesian/constants");function A(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}t.exports=A;var L=A.prototype;L.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}},L.plot=function(e,t){var r=this,n=t[r.id],a=t._size;r._hasClipOnAxisFalse=!1;for(var i=0;iS*b?a=(i=b)*S:i=(a=x)/S,o=g*a/x,s=v*i/b,r=t.l+t.w*m-a/2,n=t.t+t.h*(1-y)-i/2,p.x0=r,p.y0=n,p.w=a,p.h=i,p.sum=_,p.xaxis={type:"linear",range:[w+2*M-_,_-w-2*T],domain:[m-o/2,m+o/2],_id:"x"},f(p.xaxis,p.graphDiv._fullLayout),p.xaxis.setScale(),p.xaxis.isPtWithinRange=function(e){return e.a>=p.aaxis.range[0]&&e.a<=p.aaxis.range[1]&&e.b>=p.baxis.range[1]&&e.b<=p.baxis.range[0]&&e.c>=p.caxis.range[1]&&e.c<=p.caxis.range[0]},p.yaxis={type:"linear",range:[w,_-T-M],domain:[y-s/2,y+s/2],_id:"y"},f(p.yaxis,p.graphDiv._fullLayout),p.yaxis.setScale(),p.yaxis.isPtWithinRange=function(){return!0};var k=p.yaxis.domain[0],A=p.aaxis=d({},e.aaxis,{range:[w,_-T-M],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[k,k+s*S],anchor:"free",position:0,_id:"y",_length:a});f(A,p.graphDiv._fullLayout),A.setScale();var L=p.baxis=d({},e.baxis,{range:[_-w-M,T],side:"bottom",domain:p.xaxis.domain,anchor:"free",position:0,_id:"x",_length:a});f(L,p.graphDiv._fullLayout),L.setScale();var O=p.caxis=d({},e.caxis,{range:[_-w-T,M],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[k,k+s*S],anchor:"free",position:0,_id:"y",_length:a});f(O,p.graphDiv._fullLayout),O.setScale();var D="M"+r+","+(n+i)+"h"+a+"l-"+a/2+",-"+i+"Z";p.clipDef.select("path").attr("d",D),p.layers.plotbg.select("path").attr("d",D);var C="M0,"+i+"h"+a+"l-"+a/2+",-"+i+"Z";p.clipDefRelative.select("path").attr("d",C);var E=l(r,n);p.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",E),p.clipDefRelative.select("path").attr("transform",null);var P=l(r-L._offset,n+i);p.layers.baxis.attr("transform",P),p.layers.bgrid.attr("transform",P);var R=l(r+a/2,n)+"rotate(30)"+l(0,-A._offset);p.layers.aaxis.attr("transform",R),p.layers.agrid.attr("transform",R);var z=l(r+a/2,n)+"rotate(-30)"+l(0,-O._offset);p.layers.caxis.attr("transform",z),p.layers.cgrid.attr("transform",z),p.drawAxes(!0),p.layers.aline.select("path").attr("d",A.showline?"M"+r+","+(n+i)+"l"+a/2+",-"+i:"M0,0").call(c.stroke,A.linecolor||"#000").style("stroke-width",(A.linewidth||0)+"px"),p.layers.bline.select("path").attr("d",L.showline?"M"+r+","+(n+i)+"h"+a:"M0,0").call(c.stroke,L.linecolor||"#000").style("stroke-width",(L.linewidth||0)+"px"),p.layers.cline.select("path").attr("d",O.showline?"M"+(r+a/2)+","+n+"l"+a/2+","+i:"M0,0").call(c.stroke,O.linecolor||"#000").style("stroke-width",(O.linewidth||0)+"px"),p.graphDiv._context.staticPlot||p.initInteractions(),u.setClipUrl(p.layers.frontplot,p._hasClipOnAxisFalse?null:p.clipId,p.graphDiv)},L.drawAxes=function(e){var t=this,r=t.graphDiv,n=t.id.substr(7)+"title",a=t.layers,i=t.aaxis,o=t.baxis,l=t.caxis;if(t.drawAx(i),t.drawAx(o),t.drawAx(l),e){var c=Math.max(i.showticklabels?i.tickfont.size/2:0,(l.showticklabels?.75*l.tickfont.size:0)+("outside"===l.ticks?.87*l.ticklen:0)),u=(o.showticklabels?o.tickfont.size:0)+("outside"===o.ticks?o.ticklen:0)+3;a["a-title"]=b.draw(r,"a"+n,{propContainer:i,propName:t.id+".aaxis.title",placeholder:s(r,"Click to enter Component A title"),attributes:{x:t.x0+t.w/2,y:t.y0-i.title.font.size/3-c,"text-anchor":"middle"}}),a["b-title"]=b.draw(r,"b"+n,{propContainer:o,propName:t.id+".baxis.title",placeholder:s(r,"Click to enter Component B title"),attributes:{x:t.x0-u,y:t.y0+t.h+.83*o.title.font.size+u,"text-anchor":"middle"}}),a["c-title"]=b.draw(r,"c"+n,{propContainer:l,propName:t.id+".caxis.title",placeholder:s(r,"Click to enter Component C title"),attributes:{x:t.x0+t.w+u,y:t.y0+t.h+.83*l.title.font.size+u,"text-anchor":"middle"}})}},L.drawAx=function(e){var t,r=this,n=r.graphDiv,a=e._name,i=a.charAt(0),l=e._id,s=r.layers[a],c=i+"tickLayout",u=(t=e).ticks+String(t.ticklen)+String(t.showticklabels);r[c]!==u&&(s.selectAll("."+l+"tick").remove(),r[c]=u),e.setScale();var f=h.calcTicks(e),d=h.clipEnds(e,f),p=h.makeTransTickFn(e),m=h.getTickSigns(e)[2],y=o.deg2rad(30),g=m*(e.linewidth||1)/2,v=m*e.ticklen,x=r.w,b=r.h,_="b"===i?"M0,"+g+"l"+Math.sin(y)*v+","+Math.cos(y)*v:"M"+g+",0l"+Math.cos(y)*v+","+-Math.sin(y)*v,w={a:"M0,0l"+b+",-"+x/2,b:"M0,0l-"+x/2+",-"+b,c:"M0,0l-"+b+","+x/2}[i];h.drawTicks(n,e,{vals:"inside"===e.ticks?d:f,layer:s,path:_,transFn:p,crisp:!1}),h.drawGrid(n,e,{vals:d,layer:r.layers[i+"grid"],path:w,transFn:p,crisp:!1}),h.drawLabels(n,e,{vals:f,layer:s,transFn:p,labelFns:h.makeLabelFns(e,0,30)})};var O=k.MINZOOM/2+.87,D="m-0.87,.5h"+O+"v3h-"+(O+5.2)+"l"+(O/2+2.6)+",-"+(.87*O+4.5)+"l2.6,1.5l-"+O/2+","+.87*O+"Z",C="m0.87,.5h-"+O+"v3h"+(O+5.2)+"l-"+(O/2+2.6)+",-"+(.87*O+4.5)+"l-2.6,1.5l"+O/2+","+.87*O+"Z",E="m0,1l"+O/2+","+.87*O+"l2.6,-1.5l-"+(O/2+2.6)+",-"+(.87*O+4.5)+"l-"+(O/2+2.6)+","+(.87*O+4.5)+"l2.6,1.5l"+O/2+",-"+.87*O+"Z",P=!0;function R(e){n.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}L.clearSelect=function(){M(this.dragOptions),T(this.dragOptions.gd)},L.initInteractions=function(){var e,t,r,n,f,d,p,h,g,b,T,M,A=this,L=A.layers.plotbg.select("path").node(),O=A.graphDiv,z=O._fullLayout._zoomlayer;function I(e){var t={};return t[A.id+".aaxis.min"]=e.a,t[A.id+".baxis.min"]=e.b,t[A.id+".caxis.min"]=e.c,t}function N(e,t){var r=O._fullLayout.clickmode;R(O),2===e&&(O.emit("plotly_doubleclick",null),i.call("_guiRelayout",O,I({a:0,b:0,c:0}))),r.indexOf("select")>-1&&1===e&&w(t,O,[A.xaxis],[A.yaxis],A.id,A.dragOptions),r.indexOf("event")>-1&&y.click(O,t,A.id)}function F(e,t){return 1-t/A.h}function j(e,t){return 1-(e+(A.h-t)/Math.sqrt(3))/A.w}function B(e,t){return(e-(A.h-t)/Math.sqrt(3))/A.w}function H(a,i){var o=r+a*e,l=n+i*t,s=Math.max(0,Math.min(1,F(0,n),F(0,l))),c=Math.max(0,Math.min(1,j(r,n),j(o,l))),u=Math.max(0,Math.min(1,B(r,n),B(o,l))),m=(s/2+u)*A.w,y=(1-s/2-c)*A.w,v=(m+y)/2,x=y-m,_=(1-s)*A.h,w=_-x/S;x.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),M.transition().style("opacity",1).duration(200),b=!0),O.emit("plotly_relayouting",I(p))}function U(){R(O),p!==f&&(i.call("_guiRelayout",O,I(p)),P&&O.data&&O._context.showTips&&(o.notifier(s(O,"Double-click to zoom back out"),"long"),P=!1))}function Y(e,t){var r=e/A.xaxis._m,n=t/A.yaxis._m,a=[(p={a:f.a-n,b:f.b+(r+n)/2,c:f.c-(r-n)/2}).a,p.b,p.c].sort(o.sorterAsc),i=a.indexOf(p.a),s=a.indexOf(p.b),c=a.indexOf(p.c);a[0]<0&&(a[1]+a[0]/2<0?(a[2]+=a[0]+a[1],a[0]=a[1]=0):(a[2]+=a[0]/2,a[1]+=a[0]/2,a[0]=0),p={a:a[i],b:a[s],c:a[c]},t=(f.a-p.a)*A.yaxis._m,e=(f.c-p.c-f.b+p.b)*A.xaxis._m);var d=l(A.x0+e,A.y0+t);A.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",d);var h=l(-e,-t);A.clipDefRelative.select("path").attr("transform",h),A.aaxis.range=[p.a,A.sum-p.b-p.c],A.baxis.range=[A.sum-p.a-p.c,p.b],A.caxis.range=[A.sum-p.a-p.b,p.c],A.drawAxes(!1),A._hasClipOnAxisFalse&&A.plotContainer.select(".scatterlayer").selectAll(".trace").call(u.hideOutsideRangePoints,A),O.emit("plotly_relayouting",I(p))}function q(){i.call("_guiRelayout",O,I(p))}this.dragOptions={element:L,gd:O,plotinfo:{id:A.id,domain:O._fullLayout[A.id].domain,xaxis:A.xaxis,yaxis:A.yaxis},subplot:A.id,prepFn:function(i,s,u){A.dragOptions.xaxes=[A.xaxis],A.dragOptions.yaxes=[A.yaxis],e=O._fullLayout._invScaleX,t=O._fullLayout._invScaleY;var m=A.dragOptions.dragmode=O._fullLayout.dragmode;v(m)?A.dragOptions.minDrag=1:A.dragOptions.minDrag=void 0,"zoom"===m?(A.dragOptions.moveFn=H,A.dragOptions.clickFn=N,A.dragOptions.doneFn=U,function(e,t,i){var s=L.getBoundingClientRect();r=t-s.left,n=i-s.top,O._fullLayout._calcInverseTransform(O);var u=O._fullLayout._invTransform,m=o.apply3DTransform(u)(r,n);r=m[0],n=m[1],f={a:A.aaxis.range[0],b:A.baxis.range[1],c:A.caxis.range[1]},p=f,d=A.aaxis.range[1]-f.a,h=a(A.graphDiv._fullLayout[A.id].bgcolor).getLuminance(),g="M0,"+A.h+"L"+A.w/2+", 0L"+A.w+","+A.h+"Z",b=!1,T=z.append("path").attr("class","zoombox").attr("transform",l(A.x0,A.y0)).style({fill:h>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",g),M=z.append("path").attr("class","zoombox-corners").attr("transform",l(A.x0,A.y0)).style({fill:c.background,stroke:c.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),A.clearSelect(O)}(0,s,u)):"pan"===m?(A.dragOptions.moveFn=Y,A.dragOptions.clickFn=N,A.dragOptions.doneFn=q,f={a:A.aaxis.range[0],b:A.baxis.range[1],c:A.caxis.range[1]},p=f,A.clearSelect(O)):(x(m)||v(m))&&_(i,s,u,A.dragOptions,m)}},L.onmousemove=function(e){y.hover(O,e,A.id),O._fullLayout._lasthover=L,O._fullLayout._hoversubplot=A.id},L.onmouseout=function(e){O._dragging||m.unhover(O,e)},m.init(this.dragOptions)}},{"../../components/color":157,"../../components/dragelement":176,"../../components/dragelement/helpers":175,"../../components/drawing":179,"../../components/fx":197,"../../components/titles":255,"../../lib":287,"../../lib/extend":281,"../../registry":376,"../cartesian/axes":334,"../cartesian/constants":341,"../cartesian/select":354,"../cartesian/set_convert":355,"../plots":369,"@plotly/d3":20,tinycolor2:121}],376:[function(e,t,r){"use strict";var n=e("./lib/loggers"),a=e("./lib/noop"),i=e("./lib/push_unique"),o=e("./lib/is_plain_object"),l=e("./lib/dom").addStyleRule,s=e("./lib/extend"),c=e("./plots/attributes"),u=e("./plots/layout_attributes"),f=s.extendFlat,d=s.extendDeepAll;function p(e){var t=e.name,a=e.categories,i=e.meta;if(r.modules[t])n.log("Type "+t+" already registered");else{r.subplotsRegistry[e.basePlotModule.name]||function(e){var t=e.name;if(r.subplotsRegistry[t])n.log("Plot type "+t+" already registered.");else for(var a in g(e),r.subplotsRegistry[t]=e,r.componentsRegistry)b(a,e.name)}(e.basePlotModule);for(var o={},s=0;s-1&&(f[p[r]].title={text:""});for(r=0;r")?"":t.html(e).text()}));return t.remove(),r}(k),k=M.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(u,"'"),a.isIE()&&(k=(k=(k=k.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),k}},{"../components/color":157,"../components/drawing":179,"../constants/xmlns_namespaces":268,"../lib":287,"@plotly/d3":20}],385:[function(e,t,r){"use strict";var n=e("../../lib");t.exports=function(e,t){for(var r=0;rf+c||!n(u))}for(var p=0;pi))return t}return void 0!==r?r:e.dflt},r.coerceColor=function(e,t,r){return a(t).isValid()?t:void 0!==r?r:e.dflt},r.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),-1!==e.values.indexOf(t)?t:void 0!==r?r:e.dflt},r.getValue=function(e,t){var r;return Array.isArray(e)?t0?t+=r:u<0&&(t-=r)}return t}function R(e){var t=u,r=e.b,a=P(e);return n.inbox(r-t,a-t,_+(a-t)/(a-r)-1)}var z=e[f+"a"],I=e[d+"a"];m=Math.abs(z.r2c(z.range[1])-z.r2c(z.range[0]));var N=n.getDistanceFunction(a,p,h,(function(e){return(p(e)+h(e))/2}));if(n.getClosest(y,N,e),!1!==e.index&&y[e.index].p!==c){M||(O=function(e){return Math.min(k(e),e.p-v.bargroupwidth/2)},D=function(e){return Math.max(A(e),e.p+v.bargroupwidth/2)});var F=y[e.index],j=g.base?F.b+F.s:F.s;e[d+"0"]=e[d+"1"]=I.c2p(F[d],!0),e[d+"LabelVal"]=j;var B=v.extents[v.extents.round(F.p)];e[f+"0"]=z.c2p(x?O(F):B[0],!0),e[f+"1"]=z.c2p(x?D(F):B[1],!0);var H=void 0!==F.orig_p;return e[f+"LabelVal"]=H?F.orig_p:F.p,e.labelLabel=s(z,e[f+"LabelVal"],g[f+"hoverformat"]),e.valueLabel=s(I,e[d+"LabelVal"],g[d+"hoverformat"]),e.baseLabel=s(I,F.b,g[d+"hoverformat"]),e.spikeDistance=(function(e){var t=u,r=e.b,a=P(e);return n.inbox(r-t,a-t,w+(a-t)/(a-r)-1)}(F)+function(e){return C(k(e),A(e),w)}(F))/2,e[f+"Spike"]=z.c2p(F.p,!0),o(F,g,e),e.hovertemplate=g.hovertemplate,e}}function f(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,a=l(e,t);return i.opacity(r)?r:i.opacity(n)&&a?n:void 0}t.exports={hoverPoints:function(e,t,r,n,i){var o=u(e,t,r,n,i);if(o){var l=o.cd,s=l[0].trace,c=l[o.index];return o.color=f(s,c),a.getComponentMethod("errorbars","hoverInfo")(c,s,o),[o]}},hoverOnBars:u,getTraceColor:f}},{"../../components/color":157,"../../components/fx":197,"../../constants/numerical":267,"../../lib":287,"../../plots/cartesian/axes":334,"../../registry":376,"./helpers":392}],394:[function(e,t,r){"use strict";t.exports={attributes:e("./attributes"),layoutAttributes:e("./layout_attributes"),supplyDefaults:e("./defaults").supplyDefaults,crossTraceDefaults:e("./defaults").crossTraceDefaults,supplyLayoutDefaults:e("./layout_defaults"),calc:e("./calc"),crossTraceCalc:e("./cross_trace_calc").crossTraceCalc,colorbar:e("../scatter/marker_colorbar"),arraysToCalcdata:e("./arrays_to_calcdata"),plot:e("./plot").plot,style:e("./style").style,styleOnSelect:e("./style").styleOnSelect,hoverPoints:e("./hover").hoverPoints,eventData:e("./event_data"),selectPoints:e("./select"),moduleType:"trace",name:"bar",basePlotModule:e("../../plots/cartesian"),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},{"../../plots/cartesian":348,"../scatter/marker_colorbar":515,"./arrays_to_calcdata":385,"./attributes":386,"./calc":387,"./cross_trace_calc":389,"./defaults":390,"./event_data":391,"./hover":393,"./layout_attributes":395,"./layout_defaults":396,"./plot":397,"./select":398,"./style":400}],395:[function(e,t,r){"use strict";t.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},{}],396:[function(e,t,r){"use strict";var n=e("../../registry"),a=e("../../plots/cartesian/axes"),i=e("../../lib"),o=e("./layout_attributes");t.exports=function(e,t,r){function l(r,n){return i.coerce(e,t,o,r,n)}for(var s=!1,c=!1,u=!1,f={},d=l("barmode"),p=0;p0}function L(e){return"auto"===e?0:e}function S(e,t){var r=Math.PI/180*t,n=Math.abs(Math.sin(r)),a=Math.abs(Math.cos(r));return{x:e.width*a+e.height*n,y:e.width*n+e.height*a}}function O(e,t,r,n,a,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,c=i.anchor||"end",u="end"===c,f="start"===c,d=((i.leftToRight||0)+1)/2,p=1-d,h=a.width,m=a.height,y=Math.abs(t-e),g=Math.abs(n-r),v=y>2*_&&g>2*_?_:0;y-=2*v,g-=2*v;var x=L(s);"auto"!==s||h<=y&&m<=g||!(h>y||m>g)||(h>g||m>y)&&h.01?q:function(e,t,r){return r&&e===t?e:Math.abs(e-t)>=2?q(e):e>t?Math.ceil(e):Math.floor(e)};F=V(F,j,z),j=V(j,F,z),B=V(B,H,!z),H=V(H,B,!z)}var G=k(i.ensureSingle(E,"path"),C,y,g);if(G.style("vector-effect","non-scaling-stroke").attr("d",isNaN((j-F)*(H-B))||U&&e._context.staticPlot?"M0,0Z":"M"+F+","+B+"V"+H+"H"+j+"V"+B+"Z").call(s.setClipUrl,t.layerClipId,e),!C.uniformtext.mode&&I){var Z=s.makePointStyleFns(f);s.singlePointStyle(c,G,f,Z,e)}(function(e,t,r,n,a,l,c,f,p,y,g){var w,T=t.xaxis,A=t.yaxis,D=e._fullLayout;function C(t,r,n){return i.ensureSingle(t,"text").text(r).attr({class:"bartext bartext-"+w,"text-anchor":"middle","data-notex":1}).call(s.font,n).call(o.convertToTspans,e)}var E=n[0].trace,P="h"===E.orientation,R=function(e,t,r,n,a){var o,l=t[0].trace;return o=l.texttemplate?function(e,t,r,n,a){var o=t[0].trace,l=i.castOption(o,r,"texttemplate");if(!l)return"";var s,c,f,d,p="waterfall"===o.type,h="funnel"===o.type;function m(e){return u(c,c.c2l(e),!0).text}function y(e){return u(d,d.c2l(e),!0).text}"h"===o.orientation?(s="y",c=a,f="x",d=n):(s="x",c=n,f="y",d=a);var g=t[r],v={};v.label=g.p,v.labelLabel=v[s+"Label"]=m(g.p);var x=i.castOption(o,g.i,"text");(0===x||x)&&(v.text=x),v.value=g.s,v.valueLabel=v[f+"Label"]=y(g.s);var _={};b(_,o,g.i),p&&(v.delta=+g.rawS||g.s,v.deltaLabel=y(v.delta),v.final=g.v,v.finalLabel=y(v.final),v.initial=v.final-v.delta,v.initialLabel=y(v.initial)),h&&(v.value=g.s,v.valueLabel=y(v.value),v.percentInitial=g.begR,v.percentInitialLabel=i.formatPercent(g.begR),v.percentPrevious=g.difR,v.percentPreviousLabel=i.formatPercent(g.difR),v.percentTotal=g.sumR,v.percenTotalLabel=i.formatPercent(g.sumR));var w=i.castOption(o,g.i,"customdata");return w&&(v.customdata=w),i.texttemplateString(l,v,e._d3locale,_,v,o._meta||{})}(e,t,r,n,a):l.textinfo?function(e,t,r,n){var a=e[0].trace,o="h"===a.orientation,l="waterfall"===a.type,s="funnel"===a.type;function c(e){return u(o?n:r,e,!0).text}function f(e){return u(o?r:n,+e,!0).text}var d,p=a.textinfo,h=e[t],m=p.split("+"),y=[],g=function(e){return-1!==m.indexOf(e)};if(g("label")&&y.push(c(e[t].p)),g("text")&&(0===(d=i.castOption(a,h.i,"text"))||d)&&y.push(d),l){var v=+h.rawS||h.s,x=h.v,b=x-v;g("initial")&&y.push(f(b)),g("delta")&&y.push(f(v)),g("final")&&y.push(f(x))}if(s){g("value")&&y.push(f(h.s));var _=0;g("percent initial")&&_++,g("percent previous")&&_++,g("percent total")&&_++;var w=_>1;g("percent initial")&&(d=i.formatPercent(h.begR),w&&(d+=" of initial"),y.push(d)),g("percent previous")&&(d=i.formatPercent(h.difR),w&&(d+=" of previous"),y.push(d)),g("percent total")&&(d=i.formatPercent(h.sumR),w&&(d+=" of total"),y.push(d))}return y.join("
")}(t,r,n,a):m.getValue(l.text,r),m.coerceString(v,o)}(D,n,a,T,A);w=function(e,t){var r=m.getValue(e.textposition,t);return m.coerceEnumerated(x,r)}(E,a);var z="stack"===y.mode||"relative"===y.mode,I=n[a],N=!z||I._outmost;if(R&&"none"!==w&&(!I.isBlank&&l!==c&&f!==p||"auto"!==w&&"inside"!==w)){var F=D.font,j=h.getBarColor(n[a],E),B=h.getInsideTextFont(E,a,F,j),H=h.getOutsideTextFont(E,a,F),U=r.datum();P?"log"===T.type&&U.s0<=0&&(l=T.range[0]0&&G>0&&(V<=W&&G<=X||V<=X&&G<=W||(P?W>=V*(X/G):X>=G*(W/V)))?w="inside":(w="outside",Y.remove(),Y=null)):w="inside"),!Y){var J=(Y=C(r,R,Z=i.ensureUniformFontSize(e,"outside"===w?H:B))).attr("transform");if(Y.attr("transform",""),V=(q=s.bBox(Y.node())).width,G=q.height,Y.attr("transform",J),V<=0||G<=0)return void Y.remove()}var K,Q=E.textangle;(K="outside"===w?function(e,t,r,n,a,i){var o,l=!!i.isHorizontal,s=!!i.constrained,c=i.angle||0,u=a.width,f=a.height,d=Math.abs(t-e),p=Math.abs(n-r);o=l?p>2*_?_:0:d>2*_?_:0;var h=1;s&&(h=l?Math.min(1,p/f):Math.min(1,d/u));var m=L(c),y=S(a,m),g=(l?y.x:y.y)/2,v=(a.left+a.right)/2,x=(a.top+a.bottom)/2,b=(e+t)/2,w=(r+n)/2,T=0,k=0,A=l?M(t,e):M(r,n);return l?(b=t-A*o,T=A*g):(w=n+A*o,k=-A*g),{textX:v,textY:x,targetX:b,targetY:w,anchorX:T,anchorY:k,scale:h,rotate:m}}(l,c,f,p,q,{isHorizontal:P,constrained:"both"===E.constraintext||"outside"===E.constraintext,angle:Q}):O(l,c,f,p,q,{isHorizontal:P,constrained:"both"===E.constraintext||"inside"===E.constraintext,angle:Q,anchor:E.insidetextanchor})).fontSize=Z.size,d(E.type,K,D),I.transform=K,k(Y,D,y,g).attr("transform",i.getTextTransform(K))}else r.select("text").remove()})(e,t,E,r,p,F,j,B,H,y,g),t.layerClipId&&s.hideOutsideRangePoint(c,E.select("text"),w,D,f.xcalendar,f.ycalendar)}));var B=!1===f.cliponaxis;s.setClipUrl(c,B?null:t.layerClipId,e)}));c.getComponentMethod("errorbars","plot")(e,E,t,y)},toMoveInsideBar:O}},{"../../components/color":157,"../../components/drawing":179,"../../components/fx/helpers":193,"../../lib":287,"../../lib/svg_text_utils":310,"../../plots/cartesian/axes":334,"../../registry":376,"./attributes":386,"./constants":388,"./helpers":392,"./style":400,"./uniform_text":402,"@plotly/d3":20,"fast-isnumeric":33}],398:[function(e,t,r){"use strict";function n(e,t,r,n,a){var i=t.c2p(n?e.s0:e.p0,!0),o=t.c2p(n?e.s1:e.p1,!0),l=r.c2p(n?e.p0:e.s0,!0),s=r.c2p(n?e.p1:e.s1,!0);return a?[(i+o)/2,(l+s)/2]:n?[o,(l+s)/2]:[(i+o)/2,s]}t.exports=function(e,t){var r,a=e.cd,i=e.xaxis,o=e.yaxis,l=a[0].trace,s="funnel"===l.type,c="h"===l.orientation,u=[];if(!1===t)for(r=0;r1||0===a.bargap&&0===a.bargroupgap&&!e[0].trace.marker.line.width)&&n.select(this).attr("shape-rendering","crispEdges")})),t.selectAll("g.points").each((function(t){h(n.select(this),t[0].trace,e)})),l.getComponentMethod("errorbars","style")(t)},styleTextPoints:m,styleOnSelect:function(e,t,r){var a=t[0].trace;a.selectedpoints?function(e,t,r){i.selectedPointStyle(e.selectAll("path"),t),function(e,t,r){e.each((function(e){var a,l=n.select(this);if(e.selected){a=o.ensureUniformFontSize(r,y(l,e,t,r));var s=t.selected.textfont&&t.selected.textfont.color;s&&(a.color=s),i.font(l,a)}else i.selectedTextStyle(l,t)}))}(e.selectAll("text"),t,r)}(r,a,e):(h(r,a,e),l.getComponentMethod("errorbars","style")(r))},getInsideTextFont:v,getOutsideTextFont:x,getBarColor:_,resizeText:s}},{"../../components/color":157,"../../components/drawing":179,"../../lib":287,"../../registry":376,"./attributes":386,"./helpers":392,"./uniform_text":402,"@plotly/d3":20}],401:[function(e,t,r){"use strict";var n=e("../../components/color"),a=e("../../components/colorscale/helpers").hasColorscale,i=e("../../components/colorscale/defaults"),o=e("../../lib").coercePattern;t.exports=function(e,t,r,l,s){var c=r("marker.color",l),u=a(e,"marker");u&&i(e,t,s,r,{prefix:"marker.",cLetter:"c"}),r("marker.line.color",n.defaultLine),a(e,"marker.line")&&i(e,t,s,r,{prefix:"marker.line.",cLetter:"c"}),r("marker.line.width"),r("marker.opacity"),o(r,"marker.pattern",c,u),r("selected.marker.color"),r("unselected.marker.color")}},{"../../components/color":157,"../../components/colorscale/defaults":167,"../../components/colorscale/helpers":168,"../../lib":287}],402:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../../lib");function i(e){return"_"+e+"Text_minsize"}t.exports={recordMinTextSize:function(e,t,r){if(r.uniformtext.mode){var n=i(e),a=r.uniformtext.minsize,o=t.scale*t.fontSize;t.hide=oS.uf};if(t._hasPreCompStats){var H=t[x],U=function(e){return v.d2c((t[e]||[])[r])},Y=1/0,q=-1/0;for(r=0;r=S.q1&&S.q3>=S.med){var G=U("lowerfence");S.lf=G!==l&&G<=S.q1?G:p(S,D,C);var Z=U("upperfence");S.uf=Z!==l&&Z>=S.q3?Z:h(S,D,C);var W=U("mean");S.mean=W!==l?W:C?o.mean(D,C):(S.q1+S.q3)/2;var X=U("sd");S.sd=W!==l&&X>=0?X:C?o.stdev(D,C,S.mean):S.q3-S.q1,S.lo=m(S),S.uo=y(S);var J=U("notchspan");J=J!==l&&J>0?J:g(S,C),S.ln=S.med-J,S.un=S.med+J;var K=S.lf,Q=S.uf;t.boxpoints&&D.length&&(K=Math.min(K,D[0]),Q=Math.max(Q,D[C-1])),t.notched&&(K=Math.min(K,S.ln),Q=Math.max(Q,S.un)),S.min=K,S.max=Q}else{var $;o.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+S.q1,"median = "+S.med,"q3 = "+S.q3].join("\n")),$=S.med!==l?S.med:S.q1!==l?S.q3!==l?(S.q1+S.q3)/2:S.q1:S.q3!==l?S.q3:0,S.med=$,S.q1=S.q3=$,S.lf=S.uf=$,S.mean=S.sd=$,S.ln=S.un=$,S.min=S.max=$}Y=Math.min(Y,S.min),q=Math.max(q,S.max),S.pts2=O.filter(B),A.push(S)}}t._extremes[v._id]=a.findExtremes(v,[Y,q],{padded:!0})}else{var ee=v.makeCalcdata(t,x),te=function(e,t){for(var r=e.length,n=new Array(r+1),a=0;a=0&&ae0){var ue,fe;(S={}).pos=S[_]=F[r],O=S.pts=ne[r].sort(f),C=(D=S[x]=O.map(d)).length,S.min=D[0],S.max=D[C-1],S.mean=o.mean(D,C),S.sd=o.stdev(D,C,S.mean),S.med=o.interp(D,.5),C%2&&(se||ce)?(se?(ue=D.slice(0,C/2),fe=D.slice(C/2+1)):ce&&(ue=D.slice(0,C/2+1),fe=D.slice(C/2)),S.q1=o.interp(ue,.5),S.q3=o.interp(fe,.5)):(S.q1=o.interp(D,.25),S.q3=o.interp(D,.75)),S.lf=p(S,D,C),S.uf=h(S,D,C),S.lo=m(S),S.uo=y(S);var de=g(S,C);S.ln=S.med-de,S.un=S.med+de,ie=Math.min(ie,S.ln),oe=Math.max(oe,S.un),S.pts2=O.filter(B),A.push(S)}t._extremes[v._id]=a.findExtremes(v,t.notched?ee.concat([ie,oe]):ee,{padded:!0})}return function(e,t){if(o.isArrayOrTypedArray(t.selectedpoints))for(var r=0;r0?(A[0].t={num:T[L],dPos:j,posLetter:_,valLetter:x,labels:{med:s(e,"median:"),min:s(e,"min:"),q1:s(e,"q1:"),q3:s(e,"q3:"),max:s(e,"max:"),mean:"sd"===t.boxmean?s(e,"mean ± σ:"):s(e,"mean:"),lf:s(e,"lower fence:"),uf:s(e,"upper fence:")}},T[L]++,A):[{t:{empty:!0}}]};var c={text:"tx",hovertext:"htx"};function u(e,t,r){for(var n in c)o.isArrayOrTypedArray(t[n])&&(Array.isArray(r)?o.isArrayOrTypedArray(t[n][r[0]])&&(e[c[n]]=t[n][r[0]][r[1]]):e[c[n]]=t[n][r])}function f(e,t){return e.v-t.v}function d(e){return e.v}function p(e,t,r){return 0===r?e.q1:Math.min(e.q1,t[Math.min(o.findBin(2.5*e.q1-1.5*e.q3,t,!0)+1,r-1)])}function h(e,t,r){return 0===r?e.q3:Math.max(e.q3,t[Math.max(o.findBin(2.5*e.q3-1.5*e.q1,t),0)])}function m(e){return 4*e.q1-3*e.q3}function y(e){return 4*e.q3-3*e.q1}function g(e,t){return 0===t?0:1.57*(e.q3-e.q1)/Math.sqrt(t)}},{"../../constants/numerical":267,"../../lib":287,"../../plots/cartesian/align_period":331,"../../plots/cartesian/axes":334,"fast-isnumeric":33}],405:[function(e,t,r){"use strict";var n=e("../../plots/cartesian/axes"),a=e("../../lib"),i=e("../../plots/cartesian/constraints").getAxisGroup,o=["v","h"];function l(e,t,r,o){var l,s,c,u=t.calcdata,f=t._fullLayout,d=o._id,p=d.charAt(0),h=[],m=0;for(l=0;l1,b=1-f[e+"gap"],_=1-f[e+"groupgap"];for(l=0;l0){var q=S.pointpos,V=S.jitter,G=S.marker.size/2,Z=0;q+V>=0&&((Z=U*(q+V))>A?(Y=!0,B=G,F=Z):Z>I&&(B=G,F=A)),Z<=A&&(F=A);var W=0;q-V<=0&&((W=-U*(q-V))>L?(Y=!0,H=G,j=W):W>N&&(H=G,j=L)),W<=L&&(j=L)}else F=A,j=L;var X=new Array(c.length);for(s=0;s0?(y="v",g=x>0?Math.min(_,b):Math.min(b)):x>0?(y="h",g=Math.min(_)):g=0;if(g){t._length=g;var L=r("orientation",y);t._hasPreCompStats?"v"===L&&0===x?(r("x0",0),r("dx",1)):"h"===L&&0===v&&(r("y0",0),r("dy",1)):"v"===L&&0===x?r("x0"):"h"===L&&0===v&&r("y0"),a.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],i)}else t.visible=!1}function f(e,t,r,a){var i=a.prefix,o=n.coerce2(e,t,c,"marker.outliercolor"),l=r("marker.line.outliercolor"),s="outliers";t._hasPreCompStats?s="all":(o||l)&&(s="suspectedoutliers");var u=r(i+"points",s);u?(r("jitter","all"===u?.3:0),r("pointpos","all"===u?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.color",t.line.color),r("marker.line.color"),r("marker.line.width"),"suspectedoutliers"===u&&(r("marker.line.outliercolor",t.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete t.marker;var f=r("hoveron");"all"!==f&&-1===f.indexOf("points")||r("hovertemplate"),n.coerceSelectionMarkerOpacity(t,r)}t.exports={supplyDefaults:function(e,t,r,a){function l(r,a){return n.coerce(e,t,c,r,a)}if(u(e,t,l,a),!1!==t.visible){o(e,t,a,l),l("xhoverformat"),l("yhoverformat");var s=t._hasPreCompStats;s&&(l("lowerfence"),l("upperfence")),l("line.color",(e.marker||{}).color||r),l("line.width"),l("fillcolor",i.addOpacity(t.line.color,.5));var d=!1;if(s){var p=l("mean"),h=l("sd");p&&p.length&&(d=!0,h&&h.length&&(d="sd"))}l("boxmean",d),l("whiskerwidth"),l("width"),l("quartilemethod");var m=!1;if(s){var y=l("notchspan");y&&y.length&&(m=!0)}else n.validate(e.notchwidth,c.notchwidth)&&(m=!0);l("notched",m)&&l("notchwidth"),f(e,t,l,{prefix:"box"})}},crossTraceDefaults:function(e,t){var r,a;function i(e){return n.coerce(a._input,a,c,e)}for(var o=0;oe.lo&&(x.so=!0)}return i}));d.enter().append("path").classed("point",!0),d.exit().remove(),d.call(i.translatePoints,o,l)}function s(e,t,r,i){var o,l,s=t.val,c=t.pos,u=!!c.rangebreaks,f=i.bPos,d=i.bPosPxOffset||0,p=r.boxmean||(r.meanline||{}).visible;Array.isArray(i.bdPos)?(o=i.bdPos[0],l=i.bdPos[1]):(o=i.bdPos,l=i.bdPos);var h=e.selectAll("path.mean").data("box"===r.type&&r.boxmean||"violin"===r.type&&r.box.visible&&r.meanline.visible?a.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each((function(e){var t=c.c2l(e.pos+f,!0),a=c.l2p(t-o)+d,i=c.l2p(t+l)+d,h=u?(a+i)/2:c.l2p(t)+d,m=s.c2p(e.mean,!0),y=s.c2p(e.mean-e.sd,!0),g=s.c2p(e.mean+e.sd,!0);"h"===r.orientation?n.select(this).attr("d","M"+m+","+a+"V"+i+("sd"===p?"m0,0L"+y+","+h+"L"+m+","+a+"L"+g+","+h+"Z":"")):n.select(this).attr("d","M"+a+","+m+"H"+i+("sd"===p?"m0,0L"+h+","+y+"L"+a+","+m+"L"+h+","+g+"Z":""))}))}t.exports={plot:function(e,t,r,i){var c=t.xaxis,u=t.yaxis;a.makeTraceGroups(i,r,"trace boxes").each((function(e){var t,r,a=n.select(this),i=e[0],f=i.t,d=i.trace;f.wdPos=f.bdPos*d.whiskerwidth,!0!==d.visible||f.empty?a.remove():("h"===d.orientation?(t=u,r=c):(t=c,r=u),o(a,{pos:t,val:r},d,f),l(a,{x:c,y:u},d,f),s(a,{pos:t,val:r},d,f))}))},plotBoxAndWhiskers:o,plotPoints:l,plotBoxMean:s}},{"../../components/drawing":179,"../../lib":287,"@plotly/d3":20}],413:[function(e,t,r){"use strict";t.exports=function(e,t){var r,n,a=e.cd,i=e.xaxis,o=e.yaxis,l=[];if(!1===t)for(r=0;ro.level||o.starts.length&&i===o.level)}break;case"constraint":if(n.prefixBoundary=!1,n.edgepaths.length)return;var l=n.x.length,s=n.y.length,c=-1/0,u=1/0;for(r=0;r":p>c&&(n.prefixBoundary=!0);break;case"<":(pc||n.starts.length&&d===u)&&(n.prefixBoundary=!0);break;case"][":f=Math.min(p[0],p[1]),d=Math.max(p[0],p[1]),fc&&(n.prefixBoundary=!0)}}}},{}],418:[function(e,t,r){"use strict";var n=e("../../components/colorscale"),a=e("./make_color_map"),i=e("./end_plus");t.exports={min:"zmin",max:"zmax",calc:function(e,t,r){var o=t.contours,l=t.line,s=o.size||1,c=o.coloring,u=a(t,{isColorbar:!0});if("heatmap"===c){var f=n.extractOpts(t);r._fillgradient=f.reversescale?n.flipScale(f.colorscale):f.colorscale,r._zrange=[f.min,f.max]}else"fill"===c&&(r._fillcolor=u);r._line={color:"lines"===c?u:l.color,width:!1!==o.showlines?l.width:0,dash:l.dash},r._levels={start:o.start,end:i(o),size:s}}}},{"../../components/colorscale":169,"./end_plus":426,"./make_color_map":431}],419:[function(e,t,r){"use strict";t.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},{}],420:[function(e,t,r){"use strict";var n=e("fast-isnumeric"),a=e("./label_defaults"),i=e("../../components/color"),o=i.addOpacity,l=i.opacity,s=e("../../constants/filter_ops"),c=s.CONSTRAINT_REDUCTION,u=s.COMPARISON_OPS2;t.exports=function(e,t,r,i,s,f){var d,p,h,m=t.contours,y=r("contours.operation");m._operation=c[y],function(e,t){var r;-1===u.indexOf(t.operation)?(e("contours.value",[0,1]),Array.isArray(t.value)?t.value.length>2?t.value=t.value.slice(2):0===t.length?t.value=[0,1]:t.length<2?(r=parseFloat(t.value[0]),t.value=[r,r+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:n(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),n(t.value)||(Array.isArray(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}(r,m),"="===y?d=m.showlines=!0:(d=r("contours.showlines"),h=r("fillcolor",o((e.line||{}).color||s,.5))),d&&(p=r("line.color",h&&l(h)?o(t.fillcolor,1):s),r("line.width",2),r("line.dash")),r("line.smoothing"),a(r,i,p,f)}},{"../../components/color":157,"../../constants/filter_ops":265,"./label_defaults":430,"fast-isnumeric":33}],421:[function(e,t,r){"use strict";var n=e("../../constants/filter_ops"),a=e("fast-isnumeric");function i(e,t){var r,i=Array.isArray(t);function o(e){return a(e)?+e:null}return-1!==n.COMPARISON_OPS2.indexOf(e)?r=o(i?t[0]:t):-1!==n.INTERVAL_OPS.indexOf(e)?r=i?[o(t[0]),o(t[1])]:[o(t),o(t)]:-1!==n.SET_OPS.indexOf(e)&&(r=i?t.map(o):[o(t)]),r}function o(e){return function(t){t=i(e,t);var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return{start:r,end:n,size:n-r}}}function l(e){return function(t){return{start:t=i(e,t),end:1/0,size:1/0}}}t.exports={"[]":o("[]"),"][":o("]["),">":l(">"),"<":l("<"),"=":l("=")}},{"../../constants/filter_ops":265,"fast-isnumeric":33}],422:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){var a=n("contours.start"),i=n("contours.end"),o=!1===a||!1===i,l=r("contours.size");!(o?t.autocontour=!0:r("autocontour",!1))&&l||r("ncontours")}},{}],423:[function(e,t,r){"use strict";var n=e("../../lib");function a(e){return n.extendFlat({},e,{edgepaths:n.extendDeep([],e.edgepaths),paths:n.extendDeep([],e.paths),starts:n.extendDeep([],e.starts)})}t.exports=function(e,t){var r,i,o,l=function(e){return e.reverse()},s=function(e){return e};switch(t){case"=":case"<":return e;case">":for(1!==e.length&&n.warn("Contour data invalid for the specified inequality operation."),i=e[0],r=0;r1e3){n.warn("Too many contours, clipping at 1000",e);break}return s}},{"../../lib":287,"./constraint_mapping":421,"./end_plus":426}],426:[function(e,t,r){"use strict";t.exports=function(e){return e.end+e.size/1e6}},{}],427:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("./constants");function i(e,t,r,n){return Math.abs(e[0]-t[0])20&&t?208===e||1114===e?n=0===r[0]?1:-1:i=0===r[1]?1:-1:-1!==a.BOTTOMSTART.indexOf(e)?i=1:-1!==a.LEFTSTART.indexOf(e)?n=1:-1!==a.TOPSTART.indexOf(e)?i=-1:n=-1,[n,i]}(f,r,t),p=[l(e,t,[-d[0],-d[1]])],h=e.z.length,m=e.z[0].length,y=t.slice(),g=d.slice();for(c=0;c<1e4;c++){if(f>20?(f=a.CHOOSESADDLE[f][(d[0]||d[1])<0?0:1],e.crossings[u]=a.SADDLEREMAINDER[f]):delete e.crossings[u],!(d=a.NEWDELTA[f])){n.log("Found bad marching index:",f,t,e.level);break}p.push(l(e,t,d)),t[0]+=d[0],t[1]+=d[1],u=t.join(","),i(p[p.length-1],p[p.length-2],o,s)&&p.pop();var v=d[0]&&(t[0]<0||t[0]>m-2)||d[1]&&(t[1]<0||t[1]>h-2);if(t[0]===y[0]&&t[1]===y[1]&&d[0]===g[0]&&d[1]===g[1]||r&&v)break;f=e.crossings[u]}1e4===c&&n.log("Infinite loop in contour?");var x,b,_,w,T,M,k,A,L,S,O,D,C,E,P,R=i(p[0],p[p.length-1],o,s),z=0,I=.2*e.smoothing,N=[],F=0;for(c=1;c=F;c--)if((x=N[c])=F&&x+N[b]A&&L--,e.edgepaths[L]=O.concat(p,S));break}U||(e.edgepaths[A]=p.concat(S))}for(A=0;Ae?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);return 5===r||10===r?e>(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4?5===r?713:1114:5===r?104:208:15===r?0:r}t.exports=function(e){var t,r,i,o,l,s,c,u,f,d=e[0].z,p=d.length,h=d[0].length,m=2===p||2===h;for(r=0;r=0&&(n=v,l=s):Math.abs(r[1]-n[1])<.01?Math.abs(r[1]-v[1])<.01&&(v[0]-r[0])*(n[0]-v[0])>=0&&(n=v,l=s):a.log("endpt to newendpt is not vert. or horz.",r,n,v)}if(r=n,l>=0)break;f+="L"+n}if(l===e.edgepaths.length){a.log("unclosed perimeter path");break}d=l,(h=-1===p.indexOf(d))&&(d=p[0],f+="Z")}for(d=0;dn.center?n.right-l:l-n.left)/(u+Math.abs(Math.sin(c)*o)),p=(s>n.middle?n.bottom-s:s-n.top)/(Math.abs(f)+Math.cos(c)*o);if(d<1||p<1)return 1/0;var h=g.EDGECOST*(1/(d-1)+1/(p-1));h+=g.ANGLECOST*c*c;for(var m=l-u,y=s-f,v=l+u,x=s+f,b=0;b2*g.MAXCOST)break;p&&(l/=2),s=(o=c-l/2)+1.5*l}if(d<=g.MAXCOST)return u},r.addLabelData=function(e,t,r,n){var a=t.fontSize,i=t.width+a/3,o=Math.max(0,t.height-a/3),l=e.x,s=e.y,c=e.theta,u=Math.sin(c),f=Math.cos(c),d=function(e,t){return[l+e*f-t*u,s+e*u+t*f]},p=[d(-i/2,-o/2),d(-i/2,o/2),d(i/2,o/2),d(i/2,-o/2)];r.push({text:t.text,x:l,y:s,dy:t.dy,theta:c,level:t.level,width:i,height:o}),n.push(p)},r.drawLabels=function(e,t,r,i,o){var s=e.selectAll("text").data(t,(function(e){return e.text+","+e.x+","+e.y+","+e.theta}));if(s.exit().remove(),s.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each((function(e){var t=e.x+Math.sin(e.theta)*e.dy,a=e.y-Math.cos(e.theta)*e.dy;n.select(this).text(e.text).attr({x:t,y:a,transform:"rotate("+180*e.theta/Math.PI+" "+t+" "+a+")"}).call(l.convertToTspans,r)})),o){for(var c="",u=0;ur.end&&(r.start=r.end=(r.start+r.end)/2),e._input.contours||(e._input.contours={}),a.extendFlat(e._input.contours,{start:r.start,end:r.end,size:r.size}),e._input.autocontour=!0}else if("constraint"!==r.type){var c,u=r.start,f=r.end,d=e._input.contours;u>f&&(r.start=d.start=f,f=r.end=d.end=u,u=r.start),r.size>0||(c=u===f?1:i(u,f,e.ncontours).dtick,d.size=r.size=c)}}},{"../../lib":287,"../../plots/cartesian/axes":334}],435:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../../components/drawing"),i=e("../heatmap/style"),o=e("./make_color_map");t.exports=function(e){var t=n.select(e).selectAll("g.contour");t.style("opacity",(function(e){return e[0].trace.opacity})),t.each((function(e){var t=n.select(this),r=e[0].trace,i=r.contours,l=r.line,s=i.size||1,c=i.start,u="constraint"===i.type,f=!u&&"lines"===i.coloring,d=!u&&"fill"===i.coloring,p=f||d?o(r):null;t.selectAll("g.contourlevel").each((function(e){n.select(this).selectAll("path").call(a.lineGroupStyle,l.width,f?p(e.level):l.color,l.dash)}));var h=i.labelfont;if(t.selectAll("g.contourlabels text").each((function(e){a.font(n.select(this),{family:h.family,size:h.size,color:h.color||(f?p(e.level):l.color)})})),u)t.selectAll("g.contourfill path").style("fill",r.fillcolor);else if(d){var m;t.selectAll("g.contourfill path").style("fill",(function(e){return void 0===m&&(m=e.level),p(e.level+.5*s)})),void 0===m&&(m=c),t.selectAll("g.contourbg path").style("fill",p(m-.5*s))}})),i(e)}},{"../../components/drawing":179,"../heatmap/style":449,"./make_color_map":431,"@plotly/d3":20}],436:[function(e,t,r){"use strict";var n=e("../../components/colorscale/defaults"),a=e("./label_defaults");t.exports=function(e,t,r,i,o){var l,s=r("contours.coloring"),c="";"fill"===s&&(l=r("contours.showlines")),!1!==l&&("lines"!==s&&(c=r("line.color","#000")),r("line.width",.5),r("line.dash")),"none"!==s&&(!0!==e.showlegend&&(t.showlegend=!1),t._dfltShowLegend=!1,n(e,t,i,r,{prefix:"",cLetter:"z"})),r("line.smoothing"),a(r,i,c,o)}},{"../../components/colorscale/defaults":167,"./label_defaults":430}],437:[function(e,t,r){"use strict";var n=e("../scatter/attributes"),a=e("../../plots/attributes"),i=e("../../plots/cartesian/axis_format_attributes").axisHoverFormat,o=e("../../plots/template_attributes").hovertemplateAttrs,l=e("../../components/colorscale/attributes"),s=e("../../lib/extend").extendFlat;t.exports=s({z:{valType:"data_array",editType:"calc"},x:s({},n.x,{impliedEdits:{xtype:"array"}}),x0:s({},n.x0,{impliedEdits:{xtype:"scaled"}}),dx:s({},n.dx,{impliedEdits:{xtype:"scaled"}}),y:s({},n.y,{impliedEdits:{ytype:"array"}}),y0:s({},n.y0,{impliedEdits:{ytype:"scaled"}}),dy:s({},n.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:s({},n.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:s({},n.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:s({},n.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:s({},n.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:s({},n.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:s({},n.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:i("x"),yhoverformat:i("y"),zhoverformat:i("z",1),hovertemplate:o(),showlegend:s({},a.showlegend,{dflt:!1})},{transforms:void 0},l("",{cLetter:"z",autoColorDflt:!1}))},{"../../components/colorscale/attributes":164,"../../lib/extend":281,"../../plots/attributes":330,"../../plots/cartesian/axis_format_attributes":337,"../../plots/template_attributes":371,"../scatter/attributes":497}],438:[function(e,t,r){"use strict";var n=e("../../registry"),a=e("../../lib"),i=e("../../plots/cartesian/axes"),o=e("../../plots/cartesian/align_period"),l=e("../histogram2d/calc"),s=e("../../components/colorscale/calc"),c=e("./convert_column_xyz"),u=e("./clean_2d_array"),f=e("./interp2d"),d=e("./find_empties"),p=e("./make_bound_array"),h=e("../../constants/numerical").BADNUM;function m(e){for(var t=[],r=e.length,n=0;nz){P("x scale is not linear");break}}if(x.length&&"fast"===C){var I=(x[x.length-1]-x[0])/(x.length-1),N=Math.abs(I/100);for(M=0;MN){P("y scale is not linear");break}}}var F=a.maxRowLength(T),j="scaled"===t.xtype?"":r,B=p(t,j,y,g,F,A),H="scaled"===t.ytype?"":x,U=p(t,H,b,_,T.length,L);D||(t._extremes[A._id]=i.findExtremes(A,B),t._extremes[L._id]=i.findExtremes(L,U));var Y={x:B,y:U,z:T,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(t.xperiodalignment&&v&&(Y.orig_x=v),t.yperiodalignment&&w&&(Y.orig_y=w),j&&j.length===B.length-1&&(Y.xCenter=j),H&&H.length===U.length-1&&(Y.yCenter=H),O&&(Y.xRanges=k.xRanges,Y.yRanges=k.yRanges,Y.pts=k.pts),S||s(e,t,{vals:T,cLetter:"z"}),S&&t.contours&&"heatmap"===t.contours.coloring){var q={type:"contour"===t.type?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};Y.xfill=p(q,j,y,g,F,A),Y.yfill=p(q,H,b,_,T.length,L)}return[Y]}},{"../../components/colorscale/calc":165,"../../constants/numerical":267,"../../lib":287,"../../plots/cartesian/align_period":331,"../../plots/cartesian/axes":334,"../../registry":376,"../histogram2d/calc":466,"./clean_2d_array":439,"./convert_column_xyz":441,"./find_empties":443,"./interp2d":446,"./make_bound_array":447}],439:[function(e,t,r){"use strict";var n=e("fast-isnumeric"),a=e("../../lib"),i=e("../../constants/numerical").BADNUM;t.exports=function(e,t,r,o){var l,s,c,u,f,d;function p(e){if(n(e))return+e}if(t&&t.transpose){for(l=0,f=0;f=0;o--)(l=((f[[(r=(i=d[o])[0])-1,a=i[1]]]||m)[2]+(f[[r+1,a]]||m)[2]+(f[[r,a-1]]||m)[2]+(f[[r,a+1]]||m)[2])/20)&&(s[i]=[r,a,l],d.splice(o,1),c=!0);if(!c)throw"findEmpties iterated with no new neighbors";for(i in s)f[i]=s[i],u.push(s[i])}return u.sort((function(e,t){return t[2]-e[2]}))}},{"../../lib":287}],444:[function(e,t,r){"use strict";var n=e("../../components/fx"),a=e("../../lib"),i=e("../../plots/cartesian/axes"),o=e("../../components/colorscale").extractOpts;t.exports=function(e,t,r,l,s){s||(s={});var c,u,f,d,p=s.isContour,h=e.cd[0],m=h.trace,y=e.xa,g=e.ya,v=h.x,x=h.y,b=h.z,_=h.xCenter,w=h.yCenter,T=h.zmask,M=m.zhoverformat,k=v,A=x;if(!1!==e.index){try{f=Math.round(e.index[1]),d=Math.round(e.index[0])}catch(t){return void a.error("Error hovering on heatmap, pointNumber must be [row,col], found:",e.index)}if(f<0||f>=b[0].length||d<0||d>b.length)return}else{if(n.inbox(t-v[0],t-v[v.length-1],0)>0||n.inbox(r-x[0],r-x[x.length-1],0)>0)return;if(p){var L;for(k=[2*v[0]-v[1]],L=1;Lm&&(g=Math.max(g,Math.abs(e[i][o]-h)/(y-m))))}return g}t.exports=function(e,t){var r,a=1;for(o(e,t),r=0;r.01;r++)a=o(e,t,i(a));return a>.01&&n.log("interp2d didn't converge quickly",a),e}},{"../../lib":287}],447:[function(e,t,r){"use strict";var n=e("../../registry"),a=e("../../lib").isArrayOrTypedArray;t.exports=function(e,t,r,i,o,l){var s,c,u,f=[],d=n.traceIs(e,"contour"),p=n.traceIs(e,"histogram"),h=n.traceIs(e,"gl2d");if(a(t)&&t.length>1&&!p&&"category"!==l.type){var m=t.length;if(!(m<=o))return d?t.slice(0,o):t.slice(0,o+1);if(d||h)f=t.slice(0,o);else if(1===o)f=[t[0]-.5,t[0]+.5];else{for(f=[1.5*t[0]-.5*t[1]],u=1;u0;)d=p.c2p(T[v]),v--;for(d0;)g=h.c2p(M[v]),v--;if(g0&&(i=!0);for(var s=0;si){var o=i-r[e];return r[e]=i,o}}return 0},max:function(e,t,r,a){var i=a[t];if(n(i)){if(i=Number(i),!n(r[e]))return r[e]=i,i;if(r[e]c?e>o?e>1.1*a?a:e>1.1*i?i:o:e>l?l:e>s?s:c:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function p(e,t,r,n,i,l){if(n&&e>o){var s=h(t,i,l),c=h(r,i,l),u=e===a?0:1;return s[u]!==c[u]}return Math.floor(r/e)-Math.floor(t/e)>.1}function h(e,t,r){var n=t.c2d(e,a,r).split("-");return""===n[0]&&(n.unshift(),n[0]="-"+n[0]),n}t.exports=function(e,t,r,n,i){var l,s,c=-1.1*t,d=-.1*t,p=e-d,h=r[0],m=r[1],y=Math.min(f(h+d,h+p,n,i),f(m+d,m+p,n,i)),g=Math.min(f(h+c,h+d,n,i),f(m+c,m+d,n,i));if(y>g&&go){var v=l===a?1:6,x=l===a?"M12":"M1";return function(t,r){var o=n.c2d(t,a,i),l=o.indexOf("-",v);l>0&&(o=o.substr(0,l));var c=n.d2c(o,0,i);if(cr.r2l(F)&&(B=o.tickIncrement(B,b.size,!0,p)),R.start=r.l2r(B),N||a.nestedProperty(t,g+".start").set(R.start)}var H=b.end,U=r.r2l(P.end),Y=void 0!==U;if((b.endFound||Y)&&U!==r.r2l(H)){var q=Y?U:a.aggNums(Math.max,null,h);R.end=r.l2r(q),Y||a.nestedProperty(t,g+".start").set(R.end)}var V="autobin"+l;return!1===t._input[V]&&(t._input[g]=a.extendFlat({},t[g]||{}),delete t._input[V],delete t[V]),[R,h]}t.exports={calc:function(e,t){var r,i,p,h,m=[],y=[],g=o.getFromId(e,"h"===t.orientation?t.yaxis:t.xaxis),v="h"===t.orientation?"y":"x",x={x:"y",y:"x"}[v],b=t[v+"calendar"],_=t.cumulative,w=d(e,t,g,v),T=w[0],M=w[1],k="string"==typeof T.size,A=[],L=k?A:T,S=[],O=[],D=[],C=0,E=t.histnorm,P=t.histfunc,R=-1!==E.indexOf("density");_.enabled&&R&&(E=E.replace(/ ?density$/,""),R=!1);var z,I="max"===P||"min"===P?null:0,N=s.count,F=c[E],j=!1,B=function(e){return g.r2c(e,0,b)};for(a.isArrayOrTypedArray(t[x])&&"count"!==P&&(z=t[x],j="avg"===P,N=s[P]),r=B(T.start),p=B(T.end)+(r-o.tickIncrement(r,T.size,!1,b))/1e6;r=0&&h=0;n--)l(n);else if("increasing"===t){for(n=1;n=0;n--)e[n]+=e[n+1];"exclude"===r&&(e.push(0),e.shift())}}(y,_.direction,_.currentbin);var J=Math.min(m.length,y.length),K=[],Q=0,$=J-1;for(r=0;r=Q;r--)if(y[r]){$=r;break}for(r=Q;r<=$;r++)if(n(m[r])&&n(y[r])){var ee={p:m[r],s:y[r],b:0};_.enabled||(ee.pts=D[r],V?ee.ph0=ee.ph1=D[r].length?M[D[r][0]]:m[r]:(t._computePh=!0,ee.ph0=Y(A[r]),ee.ph1=Y(A[r+1],!0))),K.push(ee)}return 1===K.length&&(K[0].width1=o.tickIncrement(K[0].p,T.size,!1,b)-K[0].p),l(K,t),a.isArrayOrTypedArray(t.selectedpoints)&&a.tagSelected(K,t,W),K},calcAllAutoBins:d}},{"../../lib":287,"../../plots/cartesian/axes":334,"../../registry":376,"../bar/arrays_to_calcdata":385,"./average":453,"./bin_functions":455,"./bin_label_vals":456,"./norm_functions":464,"fast-isnumeric":33}],458:[function(e,t,r){"use strict";t.exports={eventDataKeys:["binNumber"]}},{}],459:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../plots/cartesian/axis_ids"),i=e("../../registry").traceIs,o=e("../bar/defaults").handleGroupingDefaults,l=n.nestedProperty,s=e("../../plots/cartesian/constraints").getAxisGroup,c=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],u=["x","y"];t.exports=function(e,t){var r,f,d,p,h,m,y,g=t._histogramBinOpts={},v=[],x={},b=[];function _(e,t){return n.coerce(r._input,r,r._module.attributes,e,t)}function w(e){return"v"===e.orientation?"x":"y"}function T(e,r,i){var o=e.uid+"__"+i;r||(r=o);var l=function(e,r){return a.getFromTrace({_fullLayout:t},e,r).type}(e,i),s=e[i+"calendar"]||"",c=g[r],u=!0;c&&(l===c.axType&&s===c.calendar?(u=!1,c.traces.push(e),c.dirs.push(i)):(r=o,l!==c.axType&&n.warn(["Attempted to group the bins of trace",e.index,"set on a","type:"+l,"axis","with bins on","type:"+c.axType,"axis."].join(" ")),s!==c.calendar&&n.warn(["Attempted to group the bins of trace",e.index,"set with a",s,"calendar","with bins",c.calendar?"on a "+c.calendar+" calendar":"w/o a set calendar"].join(" ")))),u&&(g[r]={traces:[e],dirs:[i],axType:l,calendar:e[i+"calendar"]||""}),e["_"+i+"bingroup"]=r}for(h=0;hL&&T.splice(L,T.length-L),A.length>L&&A.splice(L,A.length-L);var S=[],O=[],D=[],C="string"==typeof w.size,E="string"==typeof k.size,P=[],R=[],z=C?P:w,I=E?R:k,N=0,F=[],j=[],B=t.histnorm,H=t.histfunc,U=-1!==B.indexOf("density"),Y="max"===H||"min"===H?null:0,q=i.count,V=o[B],G=!1,Z=[],W=[],X="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";X&&"count"!==H&&(G="avg"===H,q=i[H]);var J=w.size,K=x(w.start),Q=x(w.end)+(K-a.tickIncrement(K,J,!1,g))/1e6;for(r=K;r=0&&p=0&&h0||n.inbox(r-o.y0,r-(o.y0+o.h*l.dy),0)>0)){var u,f=Math.floor((t-o.x0)/l.dx),d=Math.floor(Math.abs(r-o.y0)/l.dy);if(l._hasZ?u=o.z[d][f]:l._hasSource&&(u=l._canvas.el.getContext("2d").getImageData(f,d,1,1).data),u){var p,h=o.hi||l.hoverinfo;if(h){var m=h.split("+");-1!==m.indexOf("all")&&(m=["color"]),-1!==m.indexOf("color")&&(p=!0)}var y,g=i.colormodel[l.colormodel],v=g.colormodel||l.colormodel,x=v.length,b=l._scaler(u),_=g.suffix,w=[];(l.hovertemplate||p)&&(w.push("["+[b[0]+_[0],b[1]+_[1],b[2]+_[2]].join(", ")),4===x&&w.push(", "+b[3]+_[3]),w.push("]"),w=w.join(""),e.extraText=v.toUpperCase()+": "+w),Array.isArray(l.hovertext)&&Array.isArray(l.hovertext[d])?y=l.hovertext[d][f]:Array.isArray(l.text)&&Array.isArray(l.text[d])&&(y=l.text[d][f]);var T=c.c2p(o.y0+(d+.5)*l.dy),M=o.x0+(f+.5)*l.dx,k=o.y0+(d+.5)*l.dy,A="["+u.slice(0,l.colormodel.length).join(", ")+"]";return[a.extendFlat(e,{index:[d,f],x0:s.c2p(o.x0+f*l.dx),x1:s.c2p(o.x0+(f+1)*l.dx),y0:T,y1:T,color:b,xVal:M,xLabelVal:M,yVal:k,yLabelVal:k,zLabelVal:A,text:y,hovertemplateLabels:{zLabel:A,colorLabel:w,"color[0]Label":b[0]+_[0],"color[1]Label":b[1]+_[1],"color[2]Label":b[2]+_[2],"color[3]Label":b[3]+_[3]}})]}}}},{"../../components/fx":197,"../../lib":287,"./constants":476}],481:[function(e,t,r){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),calc:e("./calc"),plot:e("./plot"),style:e("./style"),hoverPoints:e("./hover"),eventData:e("./event_data"),moduleType:"trace",name:"image",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},{"../../plots/cartesian":348,"./attributes":474,"./calc":475,"./defaults":477,"./event_data":478,"./hover":480,"./plot":482,"./style":483}],482:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../../lib"),i=a.strTranslate,o=e("../../constants/xmlns_namespaces"),l=e("./constants"),s=a.isIOS()||a.isSafari()||a.isIE();t.exports=function(e,t,r,c){var u=t.xaxis,f=t.yaxis,d=!(s||e._context._exportedPlot);a.makeTraceGroups(c,r,"im").each((function(t){var r=n.select(this),s=t[0],c=s.trace,p=("fast"===c.zsmooth||!1===c.zsmooth&&d)&&!c._hasZ&&c._hasSource&&"linear"===u.type&&"linear"===f.type;c._realImage=p;var h,m,y,g,v,x,b=s.z,_=s.x0,w=s.y0,T=s.w,M=s.h,k=c.dx,A=c.dy;for(x=0;void 0===h&&x0;)m=u.c2p(_+x*k),x--;for(x=0;void 0===g&&x0;)v=f.c2p(w+x*A),x--;if(mE[0];if(P||R){var z=h+L/2,I=g+S/2;D+="transform:"+i(z+"px",I+"px")+"scale("+(P?-1:1)+","+(R?-1:1)+")"+i(-z+"px",-I+"px")+";"}}O.attr("style",D);var N=new Promise((function(e){if(c._hasZ)e();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===T&&c._canvas.el.height===M&&c._canvas.source===c.source)e();else{var t=document.createElement("canvas");t.width=T,t.height=M;var r=t.getContext("2d");c._image=c._image||new Image;var n=c._image;n.onload=function(){r.drawImage(n,0,0),c._canvas={el:t,source:c.source},e()},n.setAttribute("src",c.source)}})).then((function(){var e,t;if(c._hasZ)t=F((function(e,t){return b[t][e]})),e=t.toDataURL("image/png");else if(c._hasSource)if(p)e=c.source;else{var r=c._canvas.el.getContext("2d").getImageData(0,0,T,M).data;t=F((function(e,t){var n=4*(t*T+e);return[r[n],r[n+1],r[n+2],r[n+3]]})),e=t.toDataURL("image/png")}O.attr({"xlink:href":e,height:S,width:L,x:h,y:g})}));e._promises.push(N)}function F(e){var t=document.createElement("canvas");t.width=L,t.height=S;var r,n=t.getContext("2d"),i=function(e){return a.constrain(Math.round(u.c2p(_+e*k)-h),0,L)},o=function(e){return a.constrain(Math.round(f.c2p(w+e*A)-g),0,S)},d=l.colormodel[c.colormodel],p=d.colormodel||c.colormodel,m=d.fmt;for(x=0;x0){l=!0;break}}l||(o=0)}return{hasLabels:r,hasValues:i,len:o}}t.exports={handleLabelsAndValues:s,supplyDefaults:function(e,t,r,n){function c(r,n){return a.coerce(e,t,i,r,n)}var u=s(c("labels"),c("values")),f=u.len;if(t._hasLabels=u.hasLabels,t._hasValues=u.hasValues,!t._hasLabels&&t._hasValues&&(c("label0"),c("dlabel")),f){t._length=f,c("marker.line.width")&&c("marker.line.color"),c("marker.colors"),c("scalegroup");var d,p=c("text"),h=c("texttemplate");if(h||(d=c("textinfo",Array.isArray(p)?"text+percent":"percent")),c("hovertext"),c("hovertemplate"),h||d&&"none"!==d){var m=c("textposition");l(e,t,n,c,m,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(m)||"auto"===m||"outside"===m)&&c("automargin"),("inside"===m||"auto"===m||Array.isArray(m))&&c("insidetextorientation")}o(t,n,c);var y=c("hole");if(c("title.text")){var g=c("title.position",y?"middle center":"top center");y||"middle center"!==g||(t.title.position="top center"),a.coerceFont(c,"title.font",n.font)}c("sort"),c("direction"),c("rotation"),c("pull")}else t.visible=!1}}},{"../../lib":287,"../../plots/domain":362,"../bar/defaults":390,"./attributes":484,"fast-isnumeric":33}],488:[function(e,t,r){"use strict";var n=e("../../components/fx/helpers").appendArrayMultiPointValues;t.exports=function(e,t){var r={curveNumber:t.index,pointNumbers:e.pts,data:t._input,fullData:t,label:e.label,color:e.color,value:e.v,percent:e.percent,text:e.text,bbox:e.bbox,v:e.v};return 1===e.pts.length&&(r.pointNumber=r.i=e.pts[0]),n(r,t,e.pts),"funnelarea"===t.type&&(delete r.v,delete r.i),r}},{"../../components/fx/helpers":193}],489:[function(e,t,r){"use strict";var n=e("../../lib");function a(e){return-1!==e.indexOf("e")?e.replace(/[.]?0+e/,"e"):-1!==e.indexOf(".")?e.replace(/[.]?0+$/,""):e}r.formatPiePercent=function(e,t){var r=a((100*e).toPrecision(3));return n.numSeparate(r,t)+"%"},r.formatPieValue=function(e,t){var r=a(e.toPrecision(10));return n.numSeparate(r,t)},r.getFirstFilled=function(e,t){if(Array.isArray(e))for(var r=0;r"),name:f.hovertemplate||-1!==d.indexOf("name")?f.name:void 0,idealAlign:e.pxmid[0]<0?"left":"right",color:y.castOption(_.bgcolor,e.pts)||e.color,borderColor:y.castOption(_.bordercolor,e.pts),fontFamily:y.castOption(w.family,e.pts),fontSize:y.castOption(w.size,e.pts),fontColor:y.castOption(w.color,e.pts),nameLength:y.castOption(_.namelength,e.pts),textAlign:y.castOption(_.align,e.pts),hovertemplate:y.castOption(f.hovertemplate,e.pts),hovertemplateLabels:e,eventData:[g(e,f)]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t,inOut_bbox:T}),e.bbox=T[0],c._hasHoverLabel=!0}c._hasHoverEvent=!0,t.emit("plotly_hover",{points:[g(e,f)],event:n.event})}})),e.on("mouseout",(function(e){var r=t._fullLayout,a=t._fullData[c.index],o=n.select(this).datum();c._hasHoverEvent&&(e.originalEvent=n.event,t.emit("plotly_unhover",{points:[g(o,a)],event:n.event}),c._hasHoverEvent=!1),c._hasHoverLabel&&(i.loneUnhover(r._hoverlayer.node()),c._hasHoverLabel=!1)})),e.on("click",(function(e){var r=t._fullLayout,a=t._fullData[c.index];t._dragging||!1===r.hovermode||(t._hoverdata=[g(e,a)],i.click(t,n.event))}))}function b(e,t,r){var n=y.castOption(e.insidetextfont.color,t.pts);!n&&e._input.textfont&&(n=y.castOption(e._input.textfont.color,t.pts));var a=y.castOption(e.insidetextfont.family,t.pts)||y.castOption(e.textfont.family,t.pts)||r.family,i=y.castOption(e.insidetextfont.size,t.pts)||y.castOption(e.textfont.size,t.pts)||r.size;return{color:n||o.contrast(t.color),family:a,size:i}}function _(e,t){for(var r,n,a=0;at&&t>n||r=-4;y-=2)g(Math.PI*y,"tan");for(y=4;y>=-4;y-=2)g(Math.PI*(y+1),"tan")}if(f||p){for(y=4;y>=-4;y-=2)g(Math.PI*(y+1.5),"rad");for(y=4;y>=-4;y-=2)g(Math.PI*(y+.5),"rad")}}if(l||h||f){var v=Math.sqrt(e.width*e.width+e.height*e.height);if((i={scale:a*n*2/v,rCenter:1-a,rotate:0}).textPosAngle=(t.startangle+t.stopangle)/2,i.scale>=1)return i;m.push(i)}(h||p)&&((i=T(e,n,o,s,c)).textPosAngle=(t.startangle+t.stopangle)/2,m.push(i)),(h||d)&&((i=M(e,n,o,s,c)).textPosAngle=(t.startangle+t.stopangle)/2,m.push(i));for(var x=0,b=0,_=0;_=1)break}return m[x]}function T(e,t,r,n,a){t=Math.max(0,t-2*m);var i=e.width/e.height,o=L(i,n,t,r);return{scale:2*o/e.height,rCenter:k(i,o/t),rotate:A(a)}}function M(e,t,r,n,a){t=Math.max(0,t-2*m);var i=e.height/e.width,o=L(i,n,t,r);return{scale:2*o/e.width,rCenter:k(i,o/t),rotate:A(a+Math.PI/2)}}function k(e,t){return Math.cos(t)-e*t}function A(e){return(180/Math.PI*e+720)%180-90}function L(e,t,r,n){var a=e+1/(2*Math.tan(t));return r*Math.min(1/(Math.sqrt(a*a+.5)+a),n/(Math.sqrt(e*e+n/2)+e))}function S(e,t){return e.v!==t.vTotal||t.trace.hole?Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2):1}function O(e,t){var r=t.pxmid[0],n=t.pxmid[1],a=e.width/2,i=e.height/2;return r<0&&(a*=-1),n<0&&(i*=-1),{scale:1,rCenter:1,rotate:0,x:a+Math.abs(i)*(a>0?1:-1)/2,y:i/(1+r*r/(n*n)),outside:!0}}function D(e,t){var r,n,a,i=e.trace,o={x:e.cx,y:e.cy},l={tx:0,ty:0};l.ty+=i.title.font.size,r=E(i),-1!==i.title.position.indexOf("top")?(o.y-=(1+r)*e.r,l.ty-=e.titleBox.height):-1!==i.title.position.indexOf("bottom")&&(o.y+=(1+r)*e.r);var s,c,u=(s=e.r,c=e.trace.aspectratio,s/(void 0===c?1:c)),f=t.w*(i.domain.x[1]-i.domain.x[0])/2;return-1!==i.title.position.indexOf("left")?(f+=u,o.x-=(1+r)*u,l.tx+=e.titleBox.width/2):-1!==i.title.position.indexOf("center")?f*=2:-1!==i.title.position.indexOf("right")&&(f+=u,o.x+=(1+r)*u,l.tx-=e.titleBox.width/2),n=f/e.titleBox.width,a=C(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(n,a),tx:l.tx,ty:l.ty}}function C(e,t){var r=e.trace,n=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,n/2)}function E(e){var t,r=e.pull;if(!r)return 0;if(Array.isArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function P(e,t){for(var r=[],n=0;n1?u=(c=r.r)/a.aspectratio:c=(u=r.r)*a.aspectratio,s=(c*=(1+a.baseratio)/2)*u}o=Math.min(o,s/r.vTotal)}for(n=0;n")}if(i){var x=s.castOption(a,t.i,"texttemplate");if(x){var b=function(e){return{label:e.label,value:e.v,valueLabel:y.formatPieValue(e.v,n.separators),percent:e.v/r.vTotal,percentLabel:y.formatPiePercent(e.v/r.vTotal,n.separators),color:e.color,text:e.text,customdata:s.castOption(a,e.i,"customdata")}}(t),_=y.getFirstFilled(a.text,t.pts);(v(_)||""===_)&&(b.text=_),t.text=s.texttemplateString(x,b,e._fullLayout._d3locale,b,a._meta||{})}else t.text=""}}function I(e,t){var r=e.rotate*Math.PI/180,n=Math.cos(r),a=Math.sin(r),i=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=i*n-o*a,e.textY=i*a+o*n,e.noCenter=!0}t.exports={plot:function(e,t){var r=e._fullLayout,i=r._size;h("pie",r),_(t,e),P(t,i);var d=s.makeTraceGroups(r._pielayer,t,"trace").each((function(t){var d=n.select(this),h=t[0],m=h.trace;(function(e){var t,r,n,a=e[0],i=a.r,o=a.trace,l=y.getRotationAngle(o.rotation),s=2*Math.PI/a.vTotal,c="px0",u="px1";if("counterclockwise"===o.direction){for(t=0;ta.vTotal/2?1:0,r.halfangle=Math.PI*Math.min(r.v/a.vTotal,.5),r.ring=1-o.hole,r.rInscribed=S(r,a))})(t),d.attr("stroke-linejoin","round"),d.each((function(){var g=n.select(this).selectAll("g.slice").data(t);g.enter().append("g").classed("slice",!0),g.exit().remove();var v=[[[],[]],[[],[]]],_=!1;g.each((function(a,i){if(a.hidden)n.select(this).selectAll("path,g").remove();else{a.pointNumber=a.i,a.curveNumber=m.index,v[a.pxmid[1]<0?0:1][a.pxmid[0]<0?0:1].push(a);var o=h.cx,c=h.cy,u=n.select(this),d=u.selectAll("path.surface").data([a]);if(d.enter().append("path").classed("surface",!0).style({"pointer-events":"all"}),u.call(x,e,t),m.pull){var g=+y.castOption(m.pull,a.pts)||0;g>0&&(o+=g*a.pxmid[0],c+=g*a.pxmid[1])}a.cxFinal=o,a.cyFinal=c;var T=m.hole;if(a.v===h.vTotal){var M="M"+(o+a.px0[0])+","+(c+a.px0[1])+D(a.px0,a.pxmid,!0,1)+D(a.pxmid,a.px0,!0,1)+"Z";T?d.attr("d","M"+(o+T*a.px0[0])+","+(c+T*a.px0[1])+D(a.px0,a.pxmid,!1,T)+D(a.pxmid,a.px0,!1,T)+"Z"+M):d.attr("d",M)}else{var k=D(a.px0,a.px1,!0,1);if(T){var A=1-T;d.attr("d","M"+(o+T*a.px1[0])+","+(c+T*a.px1[1])+D(a.px1,a.px0,!1,T)+"l"+A*a.px0[0]+","+A*a.px0[1]+k+"Z")}else d.attr("d","M"+o+","+c+"l"+a.px0[0]+","+a.px0[1]+k+"Z")}z(e,a,h);var L=y.castOption(m.textposition,a.pts),S=u.selectAll("g.slicetext").data(a.text&&"none"!==L?[0]:[]);S.enter().append("g").classed("slicetext",!0),S.exit().remove(),S.each((function(){var u=s.ensureSingle(n.select(this),"text","",(function(e){e.attr("data-notex",1)})),d=s.ensureUniformFontSize(e,"outside"===L?function(e,t,r){return{color:y.castOption(e.outsidetextfont.color,t.pts)||y.castOption(e.textfont.color,t.pts)||r.color,family:y.castOption(e.outsidetextfont.family,t.pts)||y.castOption(e.textfont.family,t.pts)||r.family,size:y.castOption(e.outsidetextfont.size,t.pts)||y.castOption(e.textfont.size,t.pts)||r.size}}(m,a,r.font):b(m,a,r.font));u.text(a.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(l.font,d).call(f.convertToTspans,e);var g,v=l.bBox(u.node());if("outside"===L)g=O(v,a);else if(g=w(v,a,h),"auto"===L&&g.scale<1){var x=s.ensureUniformFontSize(e,m.outsidetextfont);u.call(l.font,x),g=O(v=l.bBox(u.node()),a)}var T=g.textPosAngle,M=void 0===T?a.pxmid:R(h.r,T);if(g.targetX=o+M[0]*g.rCenter+(g.x||0),g.targetY=c+M[1]*g.rCenter+(g.y||0),I(g,v),g.outside){var k=g.targetY;a.yLabelMin=k-v.height/2,a.yLabelMid=k,a.yLabelMax=k+v.height/2,a.labelExtraX=0,a.labelExtraY=0,_=!0}g.fontSize=d.size,p(m.type,g,r),t[i].transform=g,u.attr("transform",s.getTextTransform(g))}))}function D(e,t,r,n){var i=n*(t[0]-e[0]),o=n*(t[1]-e[1]);return"a"+n*h.r+","+n*h.r+" 0 "+a.largeArc+(r?" 1 ":" 0 ")+i+","+o}}));var T=n.select(this).selectAll("g.titletext").data(m.title.text?[0]:[]);if(T.enter().append("g").classed("titletext",!0),T.exit().remove(),T.each((function(){var t,r=s.ensureSingle(n.select(this),"text","",(function(e){e.attr("data-notex",1)})),a=m.title.text;m._meta&&(a=s.templateString(a,m._meta)),r.text(a).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(l.font,m.title.font).call(f.convertToTspans,e),t="middle center"===m.title.position?function(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}(h):D(h,i),r.attr("transform",u(t.x,t.y)+c(Math.min(1,t.scale))+u(t.tx,t.ty))})),_&&function(e,t){var r,n,a,i,o,l,s,c,u,f,d,p,h;function m(e,t){return e.pxmid[1]-t.pxmid[1]}function g(e,t){return t.pxmid[1]-e.pxmid[1]}function v(e,r){r||(r={});var a,c,u,d,p=r.labelExtraY+(n?r.yLabelMax:r.yLabelMin),h=n?e.yLabelMin:e.yLabelMax,m=n?e.yLabelMax:e.yLabelMin,g=e.cyFinal+o(e.px0[1],e.px1[1]),v=p-h;if(v*s>0&&(e.labelExtraY=v),Array.isArray(t.pull))for(c=0;c=(y.castOption(t.pull,u.pts)||0)||((e.pxmid[1]-u.pxmid[1])*s>0?(v=u.cyFinal+o(u.px0[1],u.px1[1])-h-e.labelExtraY)*s>0&&(e.labelExtraY+=v):(m+e.labelExtraY-g)*s>0&&(a=3*l*Math.abs(c-f.indexOf(e)),(d=u.cxFinal+i(u.px0[0],u.px1[0])+a-(e.cxFinal+e.pxmid[0])-e.labelExtraX)*l>0&&(e.labelExtraX+=d)))}for(n=0;n<2;n++)for(a=n?m:g,o=n?Math.max:Math.min,s=n?1:-1,r=0;r<2;r++){for(i=r?Math.max:Math.min,l=r?1:-1,(c=e[n][r]).sort(a),u=e[1-n][r],f=u.concat(c),p=[],d=0;dMath.abs(f)?l+="l"+f*e.pxmid[0]/e.pxmid[1]+","+f+"H"+(i+e.labelExtraX+c):l+="l"+e.labelExtraX+","+u+"v"+(f-u)+"h"+c}else l+="V"+(e.yLabelMid+e.labelExtraY)+"h"+c;s.ensureSingle(r,"path","textline").call(o.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:l,fill:"none"})}else r.select("path.textline").remove()}))}(g,m),_&&m.automargin){var M=l.bBox(d.node()),k=m.domain,A=i.w*(k.x[1]-k.x[0]),L=i.h*(k.y[1]-k.y[0]),S=(.5*A-h.r)/i.w,C=(.5*L-h.r)/i.h;a.autoMargin(e,"pie."+m.uid+".automargin",{xl:k.x[0]-S,xr:k.x[1]+S,yb:k.y[0]-C,yt:k.y[1]+C,l:Math.max(h.cx-h.r-M.left,0),r:Math.max(M.right-(h.cx+h.r),0),b:Math.max(M.bottom-(h.cy+h.r),0),t:Math.max(h.cy-h.r-M.top,0),pad:5})}}))}));setTimeout((function(){d.selectAll("tspan").each((function(){var e=n.select(this);e.attr("dy")&&e.attr("dy",e.attr("dy"))}))}),0)},formatSliceLabel:z,transformInsideText:w,determineInsideTextFont:b,positionTitleOutside:D,prerenderTitles:_,layoutAreas:P,attachFxHandlers:x,computeTransform:I}},{"../../components/color":157,"../../components/drawing":179,"../../components/fx":197,"../../lib":287,"../../lib/svg_text_utils":310,"../../plots/plots":369,"../bar/constants":388,"../bar/uniform_text":402,"./event_data":488,"./helpers":489,"@plotly/d3":20}],494:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("./style_one"),i=e("../bar/uniform_text").resizeText;t.exports=function(e){var t=e._fullLayout._pielayer.selectAll(".trace");i(e,t,"pie"),t.each((function(e){var t=e[0].trace,r=n.select(this);r.style({opacity:t.opacity}),r.selectAll("path.surface").each((function(e){n.select(this).call(a,e,t)}))}))}},{"../bar/uniform_text":402,"./style_one":495,"@plotly/d3":20}],495:[function(e,t,r){"use strict";var n=e("../../components/color"),a=e("./helpers").castOption;t.exports=function(e,t,r){var i=r.marker.line,o=a(i.color,t.pts)||n.defaultLine,l=a(i.width,t.pts)||0;e.style("stroke-width",l).call(n.fill,t.color).call(n.stroke,o)}},{"../../components/color":157,"./helpers":489}],496:[function(e,t,r){"use strict";var n=e("../../lib");t.exports=function(e,t){for(var r=0;rs&&D[g].gap;)g--;for(x=D[g].s,m=D.length-1;m>g;m--)D[m].s=x;for(;sA[u]&&u=0;a--){var i=e[a];if("scatter"===i.type&&i.xaxis===r.xaxis&&i.yaxis===r.yaxis){i.opacity=void 0;break}}}}}},{}],504:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../registry"),i=e("./attributes"),o=e("./constants"),l=e("./subtypes"),s=e("./xy_defaults"),c=e("./period_defaults"),u=e("./stack_defaults"),f=e("./marker_defaults"),d=e("./line_defaults"),p=e("./line_shape_defaults"),h=e("./text_defaults"),m=e("./fillcolor_defaults");t.exports=function(e,t,r,y){function g(r,a){return n.coerce(e,t,i,r,a)}var v=s(e,t,y,g);if(v||(t.visible=!1),t.visible){c(e,t,y,g),g("xhoverformat"),g("yhoverformat");var x=u(e,t,y,g),b=!x&&v=Math.min(t,r)&&h<=Math.max(t,r)?0:1/0}var n=Math.max(3,e.mrc||0),a=1-1/n,i=Math.abs(d.c2p(e.x)-h);return i=Math.min(t,r)&&m<=Math.max(t,r)?0:1/0}var n=Math.max(3,e.mrc||0),a=1-1/n,i=Math.abs(p.c2p(e.y)-m);return iZ!=(j=R[E][1])>=Z&&(I=R[E-1][0],N=R[E][0],j-F&&(z=I+(N-I)*(Z-F)/(j-F),Y=Math.min(Y,z),q=Math.max(q,z)));Y=Math.max(Y,0),q=Math.min(q,d._length);var W=l.defaultLine;return l.opacity(f.fillcolor)?W=f.fillcolor:l.opacity((f.line||{}).color)&&(W=f.line.color),n.extendFlat(e,{distance:e.maxHoverDistance,x0:Y,x1:q,y0:Z,y1:Z,color:W,hovertemplate:!1}),delete e.index,f.text&&!Array.isArray(f.text)?e.text=String(f.text):e.text=f.name,[e]}}}},{"../../components/color":157,"../../components/fx":197,"../../lib":287,"../../registry":376,"./get_trace_color":507}],509:[function(e,t,r){"use strict";var n=e("./subtypes");t.exports={hasLines:n.hasLines,hasMarkers:n.hasMarkers,hasText:n.hasText,isBubble:n.isBubble,attributes:e("./attributes"),supplyDefaults:e("./defaults"),crossTraceDefaults:e("./cross_trace_defaults"),calc:e("./calc").calc,crossTraceCalc:e("./cross_trace_calc"),arraysToCalcdata:e("./arrays_to_calcdata"),plot:e("./plot"),colorbar:e("./marker_colorbar"),formatLabels:e("./format_labels"),style:e("./style").style,styleOnSelect:e("./style").styleOnSelect,hoverPoints:e("./hover"),selectPoints:e("./select"),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},{"../../plots/cartesian":348,"./arrays_to_calcdata":496,"./attributes":497,"./calc":498,"./cross_trace_calc":502,"./cross_trace_defaults":503,"./defaults":504,"./format_labels":506,"./hover":508,"./marker_colorbar":515,"./plot":518,"./select":519,"./style":521,"./subtypes":522}],510:[function(e,t,r){"use strict";var n=e("../../lib").isArrayOrTypedArray,a=e("../../components/colorscale/helpers").hasColorscale,i=e("../../components/colorscale/defaults");t.exports=function(e,t,r,o,l,s){var c=(e.marker||{}).color;l("line.color",r),a(e,"line")?i(e,t,o,l,{prefix:"line.",cLetter:"c"}):l("line.color",!n(c)&&c||r),l("line.width"),(s||{}).noDash||l("line.dash")}},{"../../components/colorscale/defaults":167,"../../components/colorscale/helpers":168,"../../lib":287}],511:[function(e,t,r){"use strict";var n=e("../../constants/numerical"),a=n.BADNUM,i=n.LOG_CLIP,o=i+.5,l=i-.5,s=e("../../lib"),c=s.segmentsIntersect,u=s.constrain,f=e("./constants");t.exports=function(e,t){var r,n,i,d,p,h,m,y,g,v,x,b,_,w,T,M,k,A,L=t.xaxis,S=t.yaxis,O="log"===L.type,D="log"===S.type,C=L._length,E=S._length,P=t.connectGaps,R=t.baseTolerance,z=t.shape,I="linear"===z,N=t.fill&&"none"!==t.fill,F=[],j=f.minTolerance,B=e.length,H=new Array(B),U=0;function Y(r){var n=e[r];if(!n)return!1;var i=t.linearized?L.l2p(n.x):L.c2p(n.x),s=t.linearized?S.l2p(n.y):S.c2p(n.y);if(i===a){if(O&&(i=L.c2p(n.x,!0)),i===a)return!1;D&&s===a&&(i*=Math.abs(L._m*E*(L._m>0?o:l)/(S._m*C*(S._m>0?o:l)))),i*=1e3}if(s===a){if(D&&(s=S.c2p(n.y,!0)),s===a)return!1;s*=1e3}return[i,s]}function q(e,t,r,n){var a=r-e,i=n-t,o=.5-e,l=.5-t,s=a*a+i*i,c=a*o+i*l;if(c>0&&cre||e[1]ae)return[u(e[0],te,re),u(e[1],ne,ae)]}function le(e,t){return e[0]===t[0]&&(e[0]===te||e[0]===re)||e[1]===t[1]&&(e[1]===ne||e[1]===ae)||void 0}function se(e,t,r){return function(n,a){var i=oe(n),o=oe(a),l=[];if(i&&o&&le(i,o))return l;i&&l.push(i),o&&l.push(o);var c=2*s.constrain((n[e]+a[e])/2,t,r)-((i||n)[e]+(o||a)[e]);return c&&((i&&o?c>0==i[e]>o[e]?i:o:i||o)[e]+=c),l}}function ce(e){var t=e[0],r=e[1],n=t===H[U-1][0],a=r===H[U-1][1];if(!n||!a)if(U>1){var i=t===H[U-2][0],o=r===H[U-2][1];n&&(t===te||t===re)&&i?o?U--:H[U-1]=e:a&&(r===ne||r===ae)&&o?i?U--:H[U-1]=e:H[U++]=e}else H[U++]=e}function ue(e){H[U-1][0]!==e[0]&&H[U-1][1]!==e[1]&&ce([X,J]),ce(e),K=null,X=J=0}function fe(e){if(k=e[0]/C,A=e[1]/E,Z=e[0]re?re:0,W=e[1]ae?ae:0,Z||W){if(U)if(K){var t=$(K,e);t.length>1&&(ue(t[0]),H[U++]=t[1])}else Q=$(H[U-1],e)[0],H[U++]=Q;else H[U++]=[Z||e[0],W||e[1]];var r=H[U-1];Z&&W&&(r[0]!==Z||r[1]!==W)?(K&&(X!==Z&&J!==W?ce(X&&J?(n=K,i=(a=e)[0]-n[0],o=(a[1]-n[1])/i,(n[1]*a[0]-a[1]*n[0])/i>0?[o>0?te:re,ae]:[o>0?re:te,ne]):[X||Z,J||W]):X&&J&&ce([X,J])),ce([Z,W])):X-Z&&J-W&&ce([Z||X,W||J]),K=e,X=Z,J=W}else K&&ue($(K,e)[0]),H[U++]=e;var n,a,i,o}for("linear"===z||"spline"===z?$=function(e,t){for(var r=[],n=0,a=0;a<4;a++){var i=ie[a],o=c(e[0],e[1],t[0],t[1],i[0],i[1],i[2],i[3]);o&&(!n||Math.abs(o.x-r[0][0])>1||Math.abs(o.y-r[0][1])>1)&&(o=[o.x,o.y],n&&G(o,e)V(h,de))break;i=h,(_=g[0]*y[0]+g[1]*y[1])>x?(x=_,d=h,m=!1):_=e.length||!h)break;fe(h),n=h}}else fe(d)}K&&ce([X||K[0],J||K[1]]),F.push(H.slice(0,U))}return F}},{"../../constants/numerical":267,"../../lib":287,"./constants":501}],512:[function(e,t,r){"use strict";t.exports=function(e,t,r){"spline"===r("line.shape")&&r("line.smoothing")}},{}],513:[function(e,t,r){"use strict";var n={tonextx:1,tonexty:1,tonext:1};t.exports=function(e,t,r){var a,i,o,l,s,c={},u=!1,f=-1,d=0,p=-1;for(i=0;i=0?s=p:(s=p=d,d++),s0?Math.max(r,i):0}}},{"fast-isnumeric":33}],515:[function(e,t,r){"use strict";t.exports={container:"marker",min:"cmin",max:"cmax"}},{}],516:[function(e,t,r){"use strict";var n=e("../../components/color"),a=e("../../components/colorscale/helpers").hasColorscale,i=e("../../components/colorscale/defaults"),o=e("./subtypes");t.exports=function(e,t,r,l,s,c){var u=o.isBubble(e),f=(e.line||{}).color;c=c||{},f&&(r=f),s("marker.symbol"),s("marker.opacity",u?.7:1),s("marker.size"),s("marker.color",r),a(e,"marker")&&i(e,t,l,s,{prefix:"marker.",cLetter:"c"}),c.noSelect||(s("selected.marker.color"),s("unselected.marker.color"),s("selected.marker.size"),s("unselected.marker.size")),c.noLine||(s("marker.line.color",f&&!Array.isArray(f)&&t.marker.color!==f?f:u?n.background:n.defaultLine),a(e,"marker.line")&&i(e,t,l,s,{prefix:"marker.line.",cLetter:"c"}),s("marker.line.width",u?1:0)),u&&(s("marker.sizeref"),s("marker.sizemin"),s("marker.sizemode")),c.gradient&&"none"!==s("marker.gradient.type")&&s("marker.gradient.color")}},{"../../components/color":157,"../../components/colorscale/defaults":167,"../../components/colorscale/helpers":168,"./subtypes":522}],517:[function(e,t,r){"use strict";var n=e("../../lib").dateTick0,a=e("../../constants/numerical").ONEWEEK;function i(e,t){return n(t,e%a==0?1:0)}t.exports=function(e,t,r,n,a){if(a||(a={x:!0,y:!0}),a.x){var o=n("xperiod");o&&(n("xperiod0",i(o,t.xcalendar)),n("xperiodalignment"))}if(a.y){var l=n("yperiod");l&&(n("yperiod0",i(l,t.ycalendar)),n("yperiodalignment"))}}},{"../../constants/numerical":267,"../../lib":287}],518:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../../registry"),i=e("../../lib"),o=i.ensureSingle,l=i.identity,s=e("../../components/drawing"),c=e("./subtypes"),u=e("./line_points"),f=e("./link_traces"),d=e("../../lib/polygon").tester;function p(e,t,r,f,p,h,m){var y;!function(e,t,r,a,o){var l=r.xaxis,s=r.yaxis,u=n.extent(i.simpleMap(l.range,l.r2c)),f=n.extent(i.simpleMap(s.range,s.r2c)),d=a[0].trace;if(c.hasMarkers(d)){var p=d.marker.maxdisplayed;if(0!==p){var h=a.filter((function(e){return e.x>=u[0]&&e.x<=u[1]&&e.y>=f[0]&&e.y<=f[1]})),m=Math.ceil(h.length/p),y=0;o.forEach((function(e,r){var n=e[0].trace;c.hasMarkers(n)&&n.marker.maxdisplayed>0&&r0;function v(e){return g?e.transition():e}var x=r.xaxis,b=r.yaxis,_=f[0].trace,w=_.line,T=n.select(h),M=o(T,"g","errorbars"),k=o(T,"g","lines"),A=o(T,"g","points"),L=o(T,"g","text");if(a.getComponentMethod("errorbars","plot")(e,M,r,m),!0===_.visible){var S,O;v(T).style("opacity",_.opacity);var D=_.fill.charAt(_.fill.length-1);"x"!==D&&"y"!==D&&(D=""),f[0][r.isRangePlot?"nodeRangePlot3":"node3"]=T;var C,E,P="",R=[],z=_._prevtrace;z&&(P=z._prevRevpath||"",O=z._nextFill,R=z._polygons);var I,N,F,j,B,H,U,Y="",q="",V=[],G=i.noop;if(S=_._ownFill,c.hasLines(_)||"none"!==_.fill){for(O&&O.datum(f),-1!==["hv","vh","hvh","vhv"].indexOf(w.shape)?(I=s.steps(w.shape),N=s.steps(w.shape.split("").reverse().join(""))):I=N="spline"===w.shape?function(e){var t=e[e.length-1];return e.length>1&&e[0][0]===t[0]&&e[0][1]===t[1]?s.smoothclosed(e.slice(1),w.smoothing):s.smoothopen(e,w.smoothing)}:function(e){return"M"+e.join("L")},F=function(e){return N(e.reverse())},V=u(f,{xaxis:x,yaxis:b,connectGaps:_.connectgaps,baseTolerance:Math.max(w.width||1,3)/4,shape:w.shape,simplify:w.simplify,fill:_.fill}),U=_._polygons=new Array(V.length),y=0;y1){var r=n.select(this);if(r.datum(f),e)v(r.style("opacity",0).attr("d",C).call(s.lineGroupStyle)).style("opacity",1);else{var a=v(r);a.attr("d",C),s.singleLineStyle(f,a)}}}}}var Z=k.selectAll(".js-line").data(V);v(Z.exit()).style("opacity",0).remove(),Z.each(G(!1)),Z.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke").call(s.lineGroupStyle).each(G(!0)),s.setClipUrl(Z,r.layerClipId,e),V.length?(S?(S.datum(f),j&&H&&(D?("y"===D?j[1]=H[1]=b.c2p(0,!0):"x"===D&&(j[0]=H[0]=x.c2p(0,!0)),v(S).attr("d","M"+H+"L"+j+"L"+Y.substr(1)).call(s.singleFillStyle)):v(S).attr("d",Y+"Z").call(s.singleFillStyle))):O&&("tonext"===_.fill.substr(0,6)&&Y&&P?("tonext"===_.fill?v(O).attr("d",Y+"Z"+P+"Z").call(s.singleFillStyle):v(O).attr("d",Y+"L"+P.substr(1)+"Z").call(s.singleFillStyle),_._polygons=_._polygons.concat(R)):(X(O),_._polygons=null)),_._prevRevpath=q,_._prevPolygons=U):(S?X(S):O&&X(O),_._polygons=_._prevRevpath=_._prevPolygons=null),A.datum(f),L.datum(f),function(t,a,i){var o,u=i[0].trace,f=c.hasMarkers(u),d=c.hasText(u),p=ee(u),h=te,m=te;if(f||d){var y=l,_=u.stackgroup,w=_&&"infer zero"===e._fullLayout._scatterStackOpts[x._id+b._id][_].stackgaps;u.marker.maxdisplayed||u._needsCull?y=w?K:J:_&&!w&&(y=Q),f&&(h=y),d&&(m=y)}var T,M=(o=t.selectAll("path.point").data(h,p)).enter().append("path").classed("point",!0);g&&M.call(s.pointStyle,u,e).call(s.translatePoints,x,b).style("opacity",0).transition().style("opacity",1),o.order(),f&&(T=s.makePointStyleFns(u)),o.each((function(t){var a=n.select(this),i=v(a);s.translatePoint(t,i,x,b)?(s.singlePointStyle(t,i,u,T,e),r.layerClipId&&s.hideOutsideRangePoint(t,i,x,b,u.xcalendar,u.ycalendar),u.customdata&&a.classed("plotly-customdata",null!==t.data&&void 0!==t.data)):i.remove()})),g?o.exit().transition().style("opacity",0).remove():o.exit().remove(),(o=a.selectAll("g").data(m,p)).enter().append("g").classed("textpoint",!0).append("text"),o.order(),o.each((function(e){var t=n.select(this),a=v(t.select("text"));s.translatePoint(e,a,x,b)?r.layerClipId&&s.hideOutsideRangePoint(e,t,x,b,u.xcalendar,u.ycalendar):t.remove()})),o.selectAll("text").call(s.textPointStyle,u,e).each((function(e){var t=x.c2p(e.x),r=b.c2p(e.y);n.select(this).selectAll("tspan.line").each((function(){v(n.select(this)).attr({x:t,y:r})}))})),o.exit().remove()}(A,L,f);var W=!1===_.cliponaxis?null:r.layerClipId;s.setClipUrl(A,W,e),s.setClipUrl(L,W,e)}function X(e){v(e).attr("d","M0,0Z")}function J(e){return e.filter((function(e){return!e.gap&&e.vis}))}function K(e){return e.filter((function(e){return e.vis}))}function Q(e){return e.filter((function(e){return!e.gap}))}function $(e){return e.id}function ee(e){if(e.ids)return $}function te(){return!1}}t.exports=function(e,t,r,a,i,c){var u,d,h=!i,m=!!i&&i.duration>0,y=f(e,t,r);(u=a.selectAll("g.trace").data(y,(function(e){return e[0].trace.uid}))).enter().append("g").attr("class",(function(e){return"trace scatter trace"+e[0].trace.uid})).style("stroke-miterlimit",2),u.order(),function(e,t,r){t.each((function(t){var a=o(n.select(this),"g","fills");s.setClipUrl(a,r.layerClipId,e);var i=t[0].trace,c=[];i._ownfill&&c.push("_ownFill"),i._nexttrace&&c.push("_nextFill");var u=a.selectAll("g").data(c,l);u.enter().append("g"),u.exit().each((function(e){i[e]=null})).remove(),u.order().each((function(e){i[e]=o(n.select(this),"path","js-fill")}))}))}(e,u,t),m?(c&&(d=c()),n.transition().duration(i.duration).ease(i.easing).each("end",(function(){d&&d()})).each("interrupt",(function(){d&&d()})).each((function(){a.selectAll("g.trace").each((function(r,n){p(e,n,t,r,y,this,i)}))}))):u.each((function(r,n){p(e,n,t,r,y,this,i)})),h&&u.exit().remove(),a.selectAll("path:not([d])").remove()}},{"../../components/drawing":179,"../../lib":287,"../../lib/polygon":299,"../../registry":376,"./line_points":511,"./link_traces":513,"./subtypes":522,"@plotly/d3":20}],519:[function(e,t,r){"use strict";var n=e("./subtypes");t.exports=function(e,t){var r,a,i,o,l=e.cd,s=e.xaxis,c=e.yaxis,u=[],f=l[0].trace;if(!n.hasMarkers(f)&&!n.hasText(f))return[];if(!1===t)for(r=0;r"),o.hovertemplate=d.hovertemplate,i}function x(e,t){g.push(e._hovertitle+": "+t)}}},{"../scatter/hover":508}],531:[function(e,t,r){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),colorbar:e("../scatter/marker_colorbar"),formatLabels:e("./format_labels"),calc:e("./calc"),plot:e("./plot"),style:e("../scatter/style").style,styleOnSelect:e("../scatter/style").styleOnSelect,hoverPoints:e("./hover"),selectPoints:e("../scatter/select"),eventData:e("./event_data"),moduleType:"trace",name:"scatterternary",basePlotModule:e("../../plots/ternary"),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},{"../../plots/ternary":372,"../scatter/marker_colorbar":515,"../scatter/select":519,"../scatter/style":521,"./attributes":525,"./calc":526,"./defaults":527,"./event_data":528,"./format_labels":529,"./hover":530,"./plot":532}],532:[function(e,t,r){"use strict";var n=e("../scatter/plot");t.exports=function(e,t,r){var a=t.plotContainer;a.select(".scatterlayer").selectAll("*").remove();var i={xaxis:t.xaxis,yaxis:t.yaxis,plot:a,layerClipId:t._hasClipOnAxisFalse?t.clipIdRelative:null},o=t.layers.frontplot.select("g.scatterlayer");n(e,i,r,o)}},{"../scatter/plot":518}],533:[function(e,t,r){"use strict";var n=e("../box/attributes"),a=e("../../lib/extend").extendFlat,i=e("../../plots/cartesian/axis_format_attributes").axisHoverFormat;t.exports={y:n.y,x:n.x,x0:n.x0,y0:n.y0,xhoverformat:i("x"),yhoverformat:i("y"),name:a({},n.name,{}),orientation:a({},n.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:n.fillcolor,points:a({},n.boxpoints,{}),jitter:a({},n.jitter,{}),pointpos:a({},n.pointpos,{}),width:a({},n.width,{}),marker:n.marker,text:n.text,hovertext:n.hovertext,hovertemplate:n.hovertemplate,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"}}},{"../../lib/extend":281,"../../plots/cartesian/axis_format_attributes":337,"../box/attributes":403}],534:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("../../plots/cartesian/axes"),i=e("../box/calc"),o=e("./helpers"),l=e("../../constants/numerical").BADNUM;function s(e,t,r){var a=t.max-t.min;if(!a)return e.bandwidth?e.bandwidth:0;if(e.bandwidth)return Math.max(e.bandwidth,a/1e4);var i=r.length,o=n.stdev(r,i-1,t.mean);return Math.max(function(e,t,r){return 1.059*Math.min(t,r/1.349)*Math.pow(e,-.2)}(i,o,t.q3-t.q1),a/100)}function c(e,t,r,n){var i,o=e.spanmode,s=e.span||[],c=[t.min,t.max],u=[t.min-2*n,t.max+2*n];function f(n){var a=s[n],i="multicategory"===r.type?r.r2c(a):r.d2c(a,0,e[t.valLetter+"calendar"]);return i===l?u[n]:i}var d={type:"linear",range:i="soft"===o?u:"hard"===o?c:[f(0),f(1)]};return a.setConvert(d),d.cleanRange(),i}t.exports=function(e,t){var r=i(e,t);if(r[0].t.empty)return r;for(var l=e._fullLayout,u=a.getFromId(e,t["h"===t.orientation?"xaxis":"yaxis"]),f=1/0,d=-1/0,p=0,h=0,m=0;m0){var x,b,_,w,T,M=e.xa,k=e.ya;"h"===p.orientation?(T=t,x="y",_=k,b="x",w=M):(T=r,x="x",_=M,b="y",w=k);var A=d[e.index];if(T>=A.span[0]&&T<=A.span[1]){var L=n.extendFlat({},e),S=w.c2p(T,!0),O=o.getKdeValue(A,p,T),D=o.getPositionOnKdePath(A,p,S),C=_._offset,E=_._length;L[x+"0"]=D[0],L[x+"1"]=D[1],L[b+"0"]=L[b+"1"]=S,L[b+"Label"]=b+": "+a.hoverLabelText(w,T,p[b+"hoverformat"])+", "+d[0].t.labels.kde+" "+O.toFixed(3),L.spikeDistance=v[0].spikeDistance;var P=x+"Spike";L[P]=v[0][P],v[0].spikeDistance=void 0,v[0][P]=void 0,L.hovertemplate=!1,g.push(L),(u={stroke:e.color})[x+"1"]=n.constrain(C+D[0],C,C+E),u[x+"2"]=n.constrain(C+D[1],C,C+E),u[b+"1"]=u[b+"2"]=w._offset+S}}m&&(g=g.concat(v))}-1!==h.indexOf("points")&&(c=i.hoverOnPoints(e,t,r));var R=f.selectAll(".violinline-"+p.uid).data(u?[0]:[]);return R.enter().append("line").classed("violinline-"+p.uid,!0).attr("stroke-width",1.5),R.exit().remove(),R.attr(u),"closest"===l?c?[c]:g:c?(g.push(c),g):g}},{"../../lib":287,"../../plots/cartesian/axes":334,"../box/hover":408,"./helpers":537}],539:[function(e,t,r){"use strict";t.exports={attributes:e("./attributes"),layoutAttributes:e("./layout_attributes"),supplyDefaults:e("./defaults"),crossTraceDefaults:e("../box/defaults").crossTraceDefaults,supplyLayoutDefaults:e("./layout_defaults"),calc:e("./calc"),crossTraceCalc:e("./cross_trace_calc"),plot:e("./plot"),style:e("./style"),styleOnSelect:e("../scatter/style").styleOnSelect,hoverPoints:e("./hover"),selectPoints:e("../box/select"),moduleType:"trace",name:"violin",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}},{"../../plots/cartesian":348,"../box/defaults":406,"../box/select":413,"../scatter/style":521,"./attributes":533,"./calc":534,"./cross_trace_calc":535,"./defaults":536,"./hover":538,"./layout_attributes":540,"./layout_defaults":541,"./plot":542,"./style":543}],540:[function(e,t,r){"use strict";var n=e("../box/layout_attributes"),a=e("../../lib").extendFlat;t.exports={violinmode:a({},n.boxmode,{}),violingap:a({},n.boxgap,{}),violingroupgap:a({},n.boxgroupgap,{})}},{"../../lib":287,"../box/layout_attributes":410}],541:[function(e,t,r){"use strict";var n=e("../../lib"),a=e("./layout_attributes"),i=e("../box/layout_defaults");t.exports=function(e,t,r){i._supply(e,t,r,(function(r,i){return n.coerce(e,t,a,r,i)}),"violin")}},{"../../lib":287,"../box/layout_defaults":411,"./layout_attributes":540}],542:[function(e,t,r){"use strict";var n=e("@plotly/d3"),a=e("../../lib"),i=e("../../components/drawing"),o=e("../box/plot"),l=e("../scatter/line_points"),s=e("./helpers");t.exports=function(e,t,r,c){var u=e._fullLayout,f=t.xaxis,d=t.yaxis;function p(e){var t=l(e,{xaxis:f,yaxis:d,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return i.smoothopen(t[0],1)}a.makeTraceGroups(c,r,"trace violins").each((function(e){var r=n.select(this),i=e[0],l=i.t,c=i.trace;if(!0!==c.visible||l.empty)r.remove();else{var h=l.bPos,m=l.bdPos,y=t[l.valLetter+"axis"],g=t[l.posLetter+"axis"],v="both"===c.side,x=v||"positive"===c.side,b=v||"negative"===c.side,_=r.selectAll("path.violin").data(a.identity);_.enter().append("path").style("vector-effect","non-scaling-stroke").attr("class","violin"),_.exit().remove(),_.each((function(e){var t,r,a,i,o,s,f,d,_=n.select(this),w=e.density,T=w.length,M=g.c2l(e.pos+h,!0),k=g.l2p(M);if(c.width)t=l.maxKDE/m;else{var A=u._violinScaleGroupStats[c.scalegroup];t="count"===c.scalemode?A.maxKDE/m*(A.maxCount/e.pts.length):A.maxKDE/m}if(x){for(f=new Array(T),o=0;oa&&(a=u,o=c)}}return a?i(o):l};case"rms":return function(e,t){for(var r=0,a=0,o=0;o":return function(e){return d(e)>l};case">=":return function(e){return d(e)>=l};case"[]":return function(e){var t=d(e);return t>=l[0]&&t<=l[1]};case"()":return function(e){var t=d(e);return t>l[0]&&t=l[0]&&tl[0]&&t<=l[1]};case"][":return function(e){var t=d(e);return t<=l[0]||t>=l[1]};case")(":return function(e){var t=d(e);return tl[1]};case"](":return function(e){var t=d(e);return t<=l[0]||t>l[1]};case")[":return function(e){var t=d(e);return t=l[1]};case"{}":return function(e){return-1!==l.indexOf(d(e))};case"}{":return function(e){return-1===l.indexOf(d(e))}}}(r,i.getDataToCoordFunc(e,t,l,a),d),x={},b={},_=0;h?(y=function(e){x[e.astr]=n.extendDeep([],e.get()),e.set(new Array(f))},g=function(e,t){var r=x[e.astr][t];e.get()[t]=r}):(y=function(e){x[e.astr]=n.extendDeep([],e.get()),e.set([])},g=function(e,t){var r=x[e.astr][t];e.get().push(r)}),M(y);for(var w=o(t.transforms,r),T=0;T1?"%{group} (%{trace})":"%{group}");var s=e.styles,c=o.styles=[];if(s)for(i=0;i{"use strict";t.Z=function(e){var t=function(t){!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}}),t&&c(e,t)}(y,t);var r,n,i,o,l=(r=y,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(r);if(n){var a=d(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return u(this,e)});function y(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),(t=l.call(this,e)).p=Promise.resolve(),t.resizeHandler=null,t.handlers={},t.syncWindowResize=t.syncWindowResize.bind(f(t)),t.syncEventHandlers=t.syncEventHandlers.bind(f(t)),t.attachUpdateEvents=t.attachUpdateEvents.bind(f(t)),t.getRef=t.getRef.bind(f(t)),t.handleUpdate=t.handleUpdate.bind(f(t)),t.figureCallback=t.figureCallback.bind(f(t)),t.updatePlotly=t.updatePlotly.bind(f(t)),t}return i=y,(o=[{key:"updatePlotly",value:function(t,r,n){var a=this;this.p=this.p.then((function(){if(!a.unmounting){if(!a.el)throw new Error("Missing element reference");return e.react(a.el,{data:a.props.data,layout:a.props.layout,config:a.props.config,frames:a.props.frames})}})).then((function(){a.unmounting||(a.syncWindowResize(t),a.syncEventHandlers(),a.figureCallback(r),n&&a.attachUpdateEvents())})).catch((function(e){a.props.onError&&a.props.onError(e)}))}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(e){this.unmounting=!1;var t=e.frames&&e.frames.length?e.frames.length:0,r=this.props.frames&&this.props.frames.length?this.props.frames.length:0,n=!(e.layout===this.props.layout&&e.data===this.props.data&&e.config===this.props.config&&r===t),a=void 0!==e.revision,i=e.revision!==this.props.revision;(n||a&&(!a||i))&&this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&m&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),e.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var e=this;this.el&&this.el.removeListener&&h.forEach((function(t){e.el.on(t,e.handleUpdate)}))}},{key:"removeUpdateEvents",value:function(){var e=this;this.el&&this.el.removeListener&&h.forEach((function(t){e.el.removeListener(t,e.handleUpdate)}))}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(e){if("function"==typeof e){var t=this.el;e({data:t.data,layout:t.layout,frames:this.el._transitionData?this.el._transitionData._frames:null},this.el)}}},{key:"syncWindowResize",value:function(t){var r=this;m&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return e.Plots.resize(r.el)},window.addEventListener("resize",this.resizeHandler),t&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(e){this.el=e,this.props.debug&&m&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var e=this;p.forEach((function(t){var r=e.props["on"+t],n=e.handlers[t],a=Boolean(n);r&&!a?e.addEventHandler(t,r):!r&&a?e.removeEventHandler(t):r&&a&&r!==n&&(e.removeEventHandler(t),e.addEventHandler(t,r))}))}},{key:"addEventHandler",value:function(e,t){this.handlers[e]=t,this.el.on(this.getPlotlyEventName(e),this.handlers[e])}},{key:"removeEventHandler",value:function(e){this.el.removeListener(this.getPlotlyEventName(e),this.handlers[e]),delete this.handlers[e]}},{key:"getPlotlyEventName",value:function(e){return"plotly_"+e.toLowerCase()}},{key:"render",value:function(){return a.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}])&&s(i.prototype,o),y}(a.Component);return t.propTypes={data:i.default.arrayOf(i.default.object),config:i.default.object,layout:i.default.object,frames:i.default.arrayOf(i.default.object),revision:i.default.number,onInitialized:i.default.func,onPurge:i.default.func,onError:i.default.func,onUpdate:i.default.func,debug:i.default.bool,style:i.default.object,className:i.default.string,useResizeHandler:i.default.bool,divId:i.default.string},p.forEach((function(e){t.propTypes["on"+e]=i.default.func})),t.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},t};var n,a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}(r(124852)),i=(n=r(675263))&&n.__esModule?n:{default:n};function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function l(e){return l="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},l(e)}function s(e,t){for(var r=0;r{"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,i=u(t),f=i[0],s=i[1],h=new o(function(t,e,r){return 3*(e+r)/4-r}(0,f,s)),a=0,c=s>0?f-4:f;for(r=0;r>16&255,h[a++]=e>>8&255,h[a++]=255&e;return 2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,h[a++]=255&e),1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,h[a++]=e>>8&255,h[a++]=255&e),h},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],f=16383,s=0,u=n-o;su?u:s+f));return 1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,s=i.length;f0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function h(t,e,n){for(var o,i,f=[],s=e;s>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return f.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},348764:(t,e,r)=>{"use strict";const n=r(679742),o=r(680645),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},e.INSPECT_MAX_BYTES=50;const f=2147483647;function s(t){if(t>f)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return c(t)}return h(t,e,r)}function h(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|y(t,e);let n=s(r);const o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(J(t,Uint8Array)){const e=new Uint8Array(t);return l(e.buffer,e.byteOffset,e.byteLength)}return p(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(J(t,ArrayBuffer)||t&&J(t.buffer,ArrayBuffer))return l(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(J(t,SharedArrayBuffer)||t&&J(t.buffer,SharedArrayBuffer)))return l(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return u.from(n,e,r);const o=function(t){if(u.isBuffer(t)){const e=0|g(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||Z(t.length)?s(0):p(t):"Buffer"===t.type&&Array.isArray(t.data)?p(t.data):void 0}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function a(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function c(t){return a(t),s(t<0?0:0|g(t))}function p(t){const e=t.length<0?0:0|g(t.length),r=s(e);for(let n=0;n=f)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f.toString(16)+" bytes");return 0|t}function y(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||J(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return W(t).length;default:if(o)return n?-1:q(t).length;e=(""+e).toLowerCase(),o=!0}}function w(t,e,r){let n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return _(this,e,r);case"utf8":case"utf-8":return R(this,e,r);case"ascii":return O(this,e,r);case"latin1":case"binary":return L(this,e,r);case"base64":return v(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function d(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function b(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Z(r=+r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:B(t,e,r,n,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):B(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function B(t,e,r,n,o){let i,f=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;f=2,s/=2,u/=2,r/=2}function h(t,e){return 1===f?t[e]:t.readUInt16BE(e*f)}if(o){let n=-1;for(i=r;is&&(r=s-u),i=r;i>=0;i--){let r=!0;for(let n=0;no&&(n=o):n=o;const i=e.length;let f;for(n>i/2&&(n=i/2),f=0;f>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function v(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function R(t,e,r){r=Math.min(t.length,r);const n=[];let o=e;for(;o239?4:e>223?3:e>191?2:1;if(o+f<=r){let r,n,s,u;switch(f){case 1:e<128&&(i=e);break;case 2:r=t[o+1],128==(192&r)&&(u=(31&e)<<6|63&r,u>127&&(i=u));break;case 3:r=t[o+1],n=t[o+2],128==(192&r)&&128==(192&n)&&(u=(15&e)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(i=u));break;case 4:r=t[o+1],n=t[o+2],s=t[o+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(u=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&s,u>65535&&u<1114112&&(i=u))}}null===i?(i=65533,f=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),o+=f}return function(t){const e=t.length;if(e<=T)return String.fromCharCode.apply(String,t);let r="",n=0;for(;nn.length?(u.isBuffer(e)||(e=u.from(e)),e.copy(n,o)):Uint8Array.prototype.set.call(n,e,o);else{if(!u.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,o)}o+=e.length}return n},u.byteLength=y,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;er&&(t+=" ... "),""},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,o){if(J(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;let i=(o>>>=0)-(n>>>=0),f=(r>>>=0)-(e>>>=0);const s=Math.min(i,f),h=this.slice(n,o),a=t.slice(e,r);for(let t=0;t>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let i=!1;for(;;)switch(n){case"hex":return E(this,t,e,r);case"utf8":case"utf-8":return m(this,t,e,r);case"ascii":case"latin1":case"binary":return A(this,t,e,r);case"base64":return I(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const T=4096;function O(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;on)&&(r=n);let o="";for(let n=e;nr)throw new RangeError("Trying to access beyond buffer length")}function x(t,e,r,n,o,i){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function $(t,e,r,n,o){z(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r++]=i,i>>=8,t[r++]=i,i>>=8,t[r++]=i,i>>=8,t[r++]=i;let f=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=f,f>>=8,t[r++]=f,f>>=8,t[r++]=f,f>>=8,t[r++]=f,r}function M(t,e,r,n,o){z(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r+7]=i,i>>=8,t[r+6]=i,i>>=8,t[r+5]=i,i>>=8,t[r+4]=i;let f=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=f,f>>=8,t[r+2]=f,f>>=8,t[r+1]=f,f>>=8,t[r]=f,r+8}function N(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function P(t,e,r,n,i){return e=+e,r>>>=0,i||N(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function k(t,e,r,n,i){return e=+e,r>>>=0,i||N(t,0,r,8),o.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||C(t,e,this.length);let n=this[t],o=1,i=0;for(;++i>>=0,e>>>=0,r||C(t,e,this.length);let n=this[t+--e],o=1;for(;e>0&&(o*=256);)n+=this[t+--e]*o;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||C(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||C(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||C(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||C(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||C(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readBigUInt64LE=K((function(t){Y(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||G(t,this.length-8);const n=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,o=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(n)+(BigInt(o)<>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||G(t,this.length-8);const n=e*2**24+65536*this[++t]+256*this[++t]+this[++t],o=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<>>=0,e>>>=0,r||C(t,e,this.length);let n=this[t],o=1,i=0;for(;++i=o&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||C(t,e,this.length);let n=e,o=1,i=this[t+--n];for(;n>0&&(o*=256);)i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return t>>>=0,e||C(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||C(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||C(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||C(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||C(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readBigInt64LE=K((function(t){Y(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||G(t,this.length-8);const n=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(n)<>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||G(t,this.length-8);const n=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(n)<>>=0,e||C(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||C(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||C(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||C(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||x(this,t,e,r,Math.pow(2,8*r)-1,0);let o=1,i=0;for(this[e]=255&t;++i>>=0,r>>>=0,n||x(this,t,e,r,Math.pow(2,8*r)-1,0);let o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigUInt64LE=K((function(t,e=0){return $(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=K((function(t,e=0){return M(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);x(this,t,e,r,n-1,-n)}let o=0,i=1,f=0;for(this[e]=255&t;++o>0)-f&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);x(this,t,e,r,n-1,-n)}let o=r-1,i=1,f=0;for(this[e+o]=255&t;--o>=0&&(i*=256);)t<0&&0===f&&0!==this[e+o+1]&&(f=1),this[e+o]=(t/i>>0)-f&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigInt64LE=K((function(t,e=0){return $(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=K((function(t,e=0){return M(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(t,e,r){return P(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return P(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return k(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return k(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function z(t,e,r,n,o,i){if(t>r||t3?0===e||e===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(i+1)}${n}`:`>= -(2${n} ** ${8*(i+1)-1}${n}) and < 2 ** ${8*(i+1)-1}${n}`:`>= ${e}${n} and <= ${r}${n}`,new j.ERR_OUT_OF_RANGE("value",o,t)}!function(t,e,r){Y(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||G(e,t.length-(r+1))}(n,o,i)}function Y(t,e){if("number"!=typeof t)throw new j.ERR_INVALID_ARG_TYPE(e,"number",t)}function G(t,e,r){if(Math.floor(t)!==t)throw Y(t,r),new j.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new j.ERR_BUFFER_OUT_OF_BOUNDS;throw new j.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(t,e,r){let n=`The value of "${t}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=D(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=D(o)),o+="n"),n+=` It must be ${e}. Received ${o}`,n}),RangeError);const V=/[^+/0-9A-Za-z-_]/g;function q(t,e){let r;e=e||1/0;const n=t.length;let o=null;const i=[];for(let f=0;f55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(f+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function W(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function X(t,e,r,n){let o;for(o=0;o=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function J(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Z(t){return t!=t}const H=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let o=0;o<16;++o)e[n+o]=t[r]+t[o]}return e}();function K(t){return"undefined"==typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},680645:(t,e)=>{e.read=function(t,e,r,n,o){var i,f,s=8*o-n-1,u=(1<>1,a=-7,c=r?o-1:0,p=r?-1:1,l=t[e+c];for(c+=p,i=l&(1<<-a)-1,l>>=-a,a+=s;a>0;i=256*i+t[e+c],c+=p,a-=8);for(f=i&(1<<-a)-1,i>>=-a,a+=n;a>0;f=256*f+t[e+c],c+=p,a-=8);if(0===i)i=1-h;else{if(i===u)return f?NaN:1/0*(l?-1:1);f+=Math.pow(2,n),i-=h}return(l?-1:1)*f*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var f,s,u,h=8*i-o-1,a=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?0:i-1,g=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,f=a):(f=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-f))<1&&(f--,u*=2),(e+=f+c>=1?p/u:p*Math.pow(2,1-c))*u>=2&&(f++,u/=2),f+c>=a?(s=0,f=a):f+c>=1?(s=(e*u-1)*Math.pow(2,o),f+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,o),f=0));o>=8;t[r+l]=255&s,l+=g,s/=256,o-=8);for(f=f<0;t[r+l]=255&f,l+=g,f/=256,h-=8);t[r+l-g]|=128*y}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/48764.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt b/geonode_mapstore_client/static/mapstore/dist/js/48764.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/48764.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt rename to geonode_mapstore_client/static/mapstore/dist/js/48764.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt diff --git a/geonode_mapstore_client/static/mapstore/dist/js/48890.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/48890.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/48890.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/48890.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/48894.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/48894.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/48894.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/48894.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/49005.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/49005.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/49005.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/49005.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4915.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4915.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4915.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4915.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/49174.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/49174.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/49174.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/49174.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/49232.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/49232.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/49232.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/49232.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/49235.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/49235.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/49235.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/49235.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4926.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4926.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4926.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4926.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/49318.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/49318.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/49318.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/49318.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/4942.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/4942.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/4942.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/4942.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/49532.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/49532.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/49532.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/49532.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/49698.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/49698.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/49698.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/49698.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/49722.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/49722.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/49722.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/49722.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/49734.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/49734.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/49734.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/49734.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50026.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50026.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50026.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50026.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50066.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50066.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50066.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50066.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50121.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50121.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50121.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50121.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/5021.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/5021.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/5021.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/5021.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50224.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50224.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50224.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50224.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50247.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50247.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50247.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50247.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50330.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50330.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50330.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50330.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50366.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50366.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50366.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50366.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50383.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50383.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50383.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50383.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50433.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50433.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50433.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50433.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50467.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50467.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50467.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50467.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50577.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50577.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50577.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50577.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50792.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50792.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50792.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50792.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/5095.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/5095.74fb1733f89b05e9e60d.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/js/5095.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/5095.74fb1733f89b05e9e60d.chunk.js index 26412ce428..34faa44a0b 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/5095.b32b32d2650f7cc681c9.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/5095.74fb1733f89b05e9e60d.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 5095.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt */ +/*! For license information please see 5095.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[5095,56307],{556307:t=>{t.exports=window.L},705095:(t,i,o)=>{"use strict";o.r(i),o.d(i,{default:()=>C});var e=o(556307),n=o.n(e),s=(o(880687),o(893379)),r=o.n(s),a=o(523928);r()(a.Z,{insert:"head",singleton:!1}),a.Z.locals,o(932818);var c=o(823493),l=o.n(c),h=o(414293),p=o.n(h),u=o(199405),f=o(611847);function d(t,i){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),o.push.apply(o,e)}return o}function _(t){for(var i=1;i")}},_setClasses:function(t){return this._map.fire("locatestatus",{state:t}),t},_updateContainerStyle:function(){this._isFollowing()?this._setClasses("following"):this._active&&this._setClasses("active")},_cleanClasses:function(){return null},setStrings:function(t){this.options.strings=_(_({},this.options.strings),t)},removeMarker:function(){this._marker&&this._map.removeLayer(this._marker)},setFollowMarkerStyle:function(t,i,o){var e="#2A93EE";this.removeMarker();var s={icon:n().divIcon({className:"div-heading-icon",opacity:1,iconSize:70,fillOpacity:1,html:!p()(i)&&o>this.options.locateOptions.speedThreshold?(0,u.w)({color:e,strokeWidth:2}):(0,u.B)({color:e,strokeWidth:2})}),rotationOrigin:"center center"};this._marker=n().marker(t,_(_({},s),{},{rotationAngle:i})).addTo(this._layer)}});const g=n().Control.MSLocate;function m(t,i){for(var o=0;o{"use strict";function e(t){var i=t.color,o=void 0===i?"#2A93EE":i,e=t.svgAttributes,n=t.strokeWidth,s=void 0===n?8:n;return'\n\t\t\n \n \n \n \n \n \n \n \n \n ')}function n(t){var i=t.color,o=void 0===i?"#2A93EE":i,e=t.svgAttributes,n=t.strokeWidth,s=void 0===n?8:n;return'\n\t\t\n \n \n \n \n \n \n ')}o.d(i,{w:()=>e,B:()=>n})},523928:(t,i,o)=>{"use strict";o.d(i,{Z:()=>s});var e=o(923645),n=o.n(e)()((function(t){return t[1]}));n.push([t.id,"/* Compatible with Leaflet 0.7 */\n.msgapi .leaflet-control-locate a {\n font-size: 1.4em;\n color: #444;\n cursor: pointer;\n}\n.msgapi .leaflet-control-locate.active a {\n color: #2074B6;\n}\n.msgapi .leaflet-control-locate.active.following a {\n color: #FC8428;\n}\n",""]);const s=n},932818:()=>{var t,i,o;t=L.Marker.prototype._initIcon,i=L.Marker.prototype._setPos,o="msTransform"===L.DomUtil.TRANSFORM,L.Marker.addInitHook((function(){var t=this.options.icon&&this.options.icon.options&&this.options.icon.options.iconAnchor;t&&(t=t[0]+"px "+t[1]+"px"),this.options.rotationOrigin=this.options.rotationOrigin||t||"center bottom",this.options.rotationAngle=this.options.rotationAngle||0,this.on("drag",(function(t){t.target._applyRotation()}))})),L.Marker.include({_initIcon:function(){t.call(this)},_setPos:function(t){i.call(this,t),this._applyRotation()},_applyRotation:function(){this.options.rotationAngle&&(this._icon.style[L.DomUtil.TRANSFORM+"Origin"]=this.options.rotationOrigin,o?this._icon.style[L.DomUtil.TRANSFORM]="rotate("+this.options.rotationAngle+"deg)":this._icon.style[L.DomUtil.TRANSFORM]+=" rotateZ("+this.options.rotationAngle+"deg)")},setRotationAngle:function(t){return this.options.rotationAngle=t,this.update(),this},setRotationOrigin:function(t){return this.options.rotationOrigin=t,this.update(),this}})},880687:(t,i,o)=>{var e,n,s;!function(r,a){n=[o(556307)],void 0===(s="function"==typeof(e=r)?e.apply(i,n):e)||(t.exports=s),void 0!==a&&a.L&&(a.L.Control.Locate=r(L))}((function(t){var i=function(i,o,e){(e=e.split(" ")).forEach((function(e){t.DomUtil[i].call(this,o,e)}))},o=function(t,o){i("addClass",t,o)},e=function(t,o){i("removeClass",t,o)},n=t.Control.extend({options:{position:"topleft",layer:void 0,setView:"untilPan",keepCurrentZoomLevel:!1,flyTo:!1,clickBehavior:{inView:"stop",outOfView:"setView"},returnToPrevBounds:!1,cacheLocation:!0,drawCircle:!0,drawMarker:!0,markerClass:t.CircleMarker,circleStyle:{color:"#136AEC",fillColor:"#136AEC",fillOpacity:.15,weight:2,opacity:.5},markerStyle:{color:"#136AEC",fillColor:"#2A93EE",fillOpacity:.7,weight:2,opacity:.9,radius:5},followCircleStyle:{},followMarkerStyle:{},icon:"fa fa-map-marker",iconLoading:"fa fa-spinner fa-spin",iconElementTag:"span",circlePadding:[0,0],metric:!0,createButtonCallback:function(i,o){var e=t.DomUtil.create("a","leaflet-bar-part leaflet-bar-part-single",i);return e.title=o.strings.title,{link:e,icon:t.DomUtil.create(o.iconElementTag,o.icon,e)}},onLocationError:function(t,i){alert(t.message)},onLocationOutsideMapBounds:function(t){t.stop(),alert(t.options.strings.outsideMapBoundsMsg)},showPopup:!0,strings:{title:"Show me where I am",metersUnit:"meters",feetUnit:"feet",popup:"You are within {distance} {unit} from this point",outsideMapBoundsMsg:"You seem located outside the boundaries of the map"},locateOptions:{maxZoom:1/0,watch:!0,setView:!1}},initialize:function(i){for(var o in i)"object"==typeof this.options[o]?t.extend(this.options[o],i[o]):this.options[o]=i[o];this.options.followMarkerStyle=t.extend({},this.options.markerStyle,this.options.followMarkerStyle),this.options.followCircleStyle=t.extend({},this.options.circleStyle,this.options.followCircleStyle)},onAdd:function(i){var o=t.DomUtil.create("div","leaflet-control-locate leaflet-bar leaflet-control");this._layer=this.options.layer||new t.LayerGroup,this._layer.addTo(i),this._event=void 0,this._prevBounds=null;var e=this.options.createButtonCallback(o,this.options);return this._link=e.link,this._icon=e.icon,t.DomEvent.on(this._link,"click",t.DomEvent.stopPropagation).on(this._link,"click",t.DomEvent.preventDefault).on(this._link,"click",this._onClick,this).on(this._link,"dblclick",t.DomEvent.stopPropagation),this._resetVariables(),this._map.on("unload",this._unload,this),o},_onClick:function(){if(this._justClicked=!0,this._userPanned=!1,this._active&&!this._event)this.stop();else if(this._active&&void 0!==this._event)switch(this._map.getBounds().contains(this._event.latlng)?this.options.clickBehavior.inView:this.options.clickBehavior.outOfView){case"setView":this.setView();break;case"stop":this.stop(),this.options.returnToPrevBounds&&(this.options.flyTo?this._map.flyToBounds:this._map.fitBounds).bind(this._map)(this._prevBounds)}else this.options.returnToPrevBounds&&(this._prevBounds=this._map.getBounds()),this.start();this._updateContainerStyle()},start:function(){this._activate(),this._event&&(this._drawMarker(this._map),this.options.setView&&this.setView()),this._updateContainerStyle()},stop:function(){this._deactivate(),this._cleanClasses(),this._resetVariables(),this._removeMarker()},_activate:function(){this._active||(this._map.locate(this.options.locateOptions),this._active=!0,this._map.on("locationfound",this._onLocationFound,this),this._map.on("locationerror",this._onLocationError,this),this._map.on("dragstart",this._onDrag,this))},_deactivate:function(){this._map.stopLocate(),this._active=!1,this.options.cacheLocation||(this._event=void 0),this._map.off("locationfound",this._onLocationFound,this),this._map.off("locationerror",this._onLocationError,this),this._map.off("dragstart",this._onDrag,this)},setView:function(){this._drawMarker(),this._isOutsideMapBounds()?(this._event=void 0,this.options.onLocationOutsideMapBounds(this)):this.options.keepCurrentZoomLevel?(this.options.flyTo?this._map.flyTo:this._map.panTo).bind(this._map)([this._event.latitude,this._event.longitude]):(this.options.flyTo?this._map.flyToBounds:this._map.fitBounds).bind(this._map)(this._event.bounds,{padding:this.options.circlePadding,maxZoom:this.options.locateOptions.maxZoom})},_drawMarker:function(){void 0===this._event.accuracy&&(this._event.accuracy=0);var i,o,e=this._event.accuracy,n=this._event.latlng;if(this.options.drawCircle){var s=this._isFollowing()?this.options.followCircleStyle:this.options.circleStyle;this._circle?this._circle.setLatLng(n).setRadius(e).setStyle(s):this._circle=t.circle(n,e,s).addTo(this._layer)}if(this.options.metric?(i=e.toFixed(0),o=this.options.strings.metersUnit):(i=(3.2808399*e).toFixed(0),o=this.options.strings.feetUnit),this.options.drawMarker){var r=this._isFollowing()?this.options.followMarkerStyle:this.options.markerStyle;this._marker?(this._marker.setLatLng(n),this._marker.setStyle&&this._marker.setStyle(r)):this._marker=new this.options.markerClass(n,r).addTo(this._layer)}var a=this.options.strings.popup;this.options.showPopup&&a&&this._marker&&this._marker.bindPopup(t.Util.template(a,{distance:i,unit:o}))._popup.setLatLng(n)},_removeMarker:function(){this._layer.clearLayers(),this._marker=void 0,this._circle=void 0},_unload:function(){this.stop(),this._map.off("unload",this._unload,this)},_onLocationError:function(t){3==t.code&&this.options.locateOptions.watch||(this.stop(),this.options.onLocationError(t,this))},_onLocationFound:function(t){if((!this._event||this._event.latlng.lat!==t.latlng.lat||this._event.latlng.lng!==t.latlng.lng||this._event.accuracy!==t.accuracy)&&this._active){switch(this._event=t,this._drawMarker(),this._updateContainerStyle(),this.options.setView){case"once":this._justClicked&&this.setView();break;case"untilPan":this._userPanned||this.setView();break;case"always":this.setView()}this._justClicked=!1}},_onDrag:function(){this._event&&(this._userPanned=!0,this._updateContainerStyle(),this._drawMarker())},_isFollowing:function(){return!!this._active&&("always"===this.options.setView||("untilPan"===this.options.setView?!this._userPanned:void 0))},_isOutsideMapBounds:function(){return void 0!==this._event&&this._map.options.maxBounds&&!this._map.options.maxBounds.contains(this._event.latlng)},_updateContainerStyle:function(){this._container&&(this._active&&!this._event?this._setClasses("requesting"):this._isFollowing()?this._setClasses("following"):this._active?this._setClasses("active"):this._cleanClasses())},_setClasses:function(t){"requesting"==t?(e(this._container,"active following"),o(this._container,"requesting"),e(this._icon,this.options.icon),o(this._icon,this.options.iconLoading)):"active"==t?(e(this._container,"requesting following"),o(this._container,"active"),e(this._icon,this.options.iconLoading),o(this._icon,this.options.icon)):"following"==t&&(e(this._container,"requesting"),o(this._container,"active following"),e(this._icon,this.options.iconLoading),o(this._icon,this.options.icon))},_cleanClasses:function(){t.DomUtil.removeClass(this._container,"requesting"),t.DomUtil.removeClass(this._container,"active"),t.DomUtil.removeClass(this._container,"following"),e(this._icon,this.options.iconLoading),o(this._icon,this.options.icon)},_resetVariables:function(){this._active=!1,this._justClicked=!1,this._userPanned=!1}});return t.control.locate=function(i){return new t.Control.Locate(i)},n}),window)},23279:(t,i,o)=>{var e=o(513218),n=o(707771),s=o(14841),r=Math.max,a=Math.min;t.exports=function(t,i,o){var c,l,h,p,u,f,d=0,_=!1,v=!1,g=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(i){var o=c,e=l;return c=l=void 0,d=i,p=t.apply(e,o)}function y(t){return d=t,u=setTimeout(k,i),_?m(t):p}function w(t){var o=t-f;return void 0===f||o>=i||o<0||v&&t-d>=h}function k(){var t=n();if(w(t))return b(t);u=setTimeout(k,function(t){var o=i-(t-f);return v?a(o,h-(t-d)):o}(t))}function b(t){return u=void 0,g&&c?m(t):(c=l=void 0,p)}function O(){var t=n(),o=w(t);if(c=arguments,l=this,f=t,o){if(void 0===u)return y(f);if(v)return clearTimeout(u),u=setTimeout(k,i),m(f)}return void 0===u&&(u=setTimeout(k,i)),p}return i=s(i)||0,e(o)&&(_=!!o.leading,h=(v="maxWait"in o)?r(s(o.maxWait)||0,i):h,g="trailing"in o?!!o.trailing:g),O.cancel=function(){void 0!==u&&clearTimeout(u),d=0,c=f=l=u=void 0},O.flush=function(){return void 0===u?p:b(n())},O}},707771:(t,i,o)=>{var e=o(555639);t.exports=function(){return e.Date.now()}},823493:(t,i,o)=>{var e=o(23279),n=o(513218);t.exports=function(t,i,o){var s=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return n(o)&&(s="leading"in o?!!o.leading:s,r="trailing"in o?!!o.trailing:r),e(t,i,{leading:s,maxWait:i,trailing:r})}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/5095.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt b/geonode_mapstore_client/static/mapstore/dist/js/5095.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/5095.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt rename to geonode_mapstore_client/static/mapstore/dist/js/5095.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt diff --git a/geonode_mapstore_client/static/mapstore/dist/js/50986.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/50986.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/50986.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/50986.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/51099.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/51099.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/51099.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/51099.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/51181.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/51181.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/51181.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/51181.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/51490.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/51490.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/51490.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/51490.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/51796.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/51796.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/51796.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/51796.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/51895.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/51895.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/51895.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/51895.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/51920.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/51920.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/51920.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/51920.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/51949.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/51949.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/51949.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/51949.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52043.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52043.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52043.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52043.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52046.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52046.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52046.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52046.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52056.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52056.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52056.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52056.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52105.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52105.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52105.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52105.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52274.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52274.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52274.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52274.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52324.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52324.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52324.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52324.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52571.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52571.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52571.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52571.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52572.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52572.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52572.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52572.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52604.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52604.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52604.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52604.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52709.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52709.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52709.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52709.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52779.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52779.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52779.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52779.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/52843.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/52843.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/52843.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/52843.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/5293.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/5293.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/5293.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/5293.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53046.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53046.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53046.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53046.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53069.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53069.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53069.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53069.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53139.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53139.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53139.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53139.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53178.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53178.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53178.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53178.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53181.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53181.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53181.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53181.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53213.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53213.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53213.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53213.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53287.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53287.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53287.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53287.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53385.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53385.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53385.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53385.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53392.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53392.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53392.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53392.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53450.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53450.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53450.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53450.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53457.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53457.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53457.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53457.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53541.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53541.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53541.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53541.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53742.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53742.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53742.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53742.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53862.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53862.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53862.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53862.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53907.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53907.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53907.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53907.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/53922.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/53922.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/53922.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/53922.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/5404.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/5404.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/5404.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/5404.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/54169.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/54169.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/54169.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/54169.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/54483.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/54483.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/54483.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/54483.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/54635.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/54635.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/54635.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/54635.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/54696.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/54696.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/54696.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/54696.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/54793.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/54793.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/54793.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/54793.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/54825.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/54825.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/54825.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/54825.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/54925.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/54925.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/54925.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/54925.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/54979.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/54979.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/54979.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/54979.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55033.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55033.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55033.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55033.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55158.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55158.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55158.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55158.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55258.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55258.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55258.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55258.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55260.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55260.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55260.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55260.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55378.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55378.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55378.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55378.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55380.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55380.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55380.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55380.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55392.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55392.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55392.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55392.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55521.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55521.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55521.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55521.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55539.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55539.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55539.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55539.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55541.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55541.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55541.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55541.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55553.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55553.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55553.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55553.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55685.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55685.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55685.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55685.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/5580.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/5580.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/5580.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/5580.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55841.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55841.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55841.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55841.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/55881.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/55881.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/55881.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/55881.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/5605.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/5605.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/5605.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/5605.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/56088.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/56088.74fb1733f89b05e9e60d.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/js/56088.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/56088.74fb1733f89b05e9e60d.chunk.js index 71718092dd..0bc43caa08 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/56088.b32b32d2650f7cc681c9.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/56088.74fb1733f89b05e9e60d.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 56088.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt */ +/*! For license information please see 56088.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[56088,7654],{967134:(t,e,n)=>{var r,o,i,a;function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}t=n.nmd(t),window,a=function(t,e,n){return i={},r.m=o=[function(t,e,n){t.exports=n(9)()},function(e,n){e.exports=t},function(t,e,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t=[],e=0;e<|]|"+e.src_ZPCc+"))("+p+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+p+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),(l=t).__index__=-1,l.__text_cache__=""}function p(t,e){var n=t.__index__,r=t.__last_index__,o=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=o,this.text=o,this.url=o}function f(t,e){var n=new p(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function d(t,e){if(!(this instanceof d))return new d(t,e);var n;e||(n=t,Object.keys(n||{}).reduce((function(t,e){return t||s.hasOwnProperty(e)}),!1)&&(e=t,t={})),this.__opts__=r({},s,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},c,t),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},l(this)}d.prototype.add=function(t,e){return this.__schemas__[t]=e,l(this),this},d.prototype.set=function(t){return this.__opts__=r(this.__opts__,t),this},d.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var e,n,r,o,i,a,s,c;if(this.re.schema_test.test(t))for((s=this.re.schema_search).lastIndex=0;null!==(e=s.exec(t));)if(o=this.testSchemaAt(t,e[2],s.lastIndex)){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(c=t.search(this.re.host_fuzzy_test))&&(this.__index__<0||cthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),0<=this.__index__},d.prototype.pretest=function(t){return this.re.pretest.test(t)},d.prototype.testSchemaAt=function(t,e,n){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(t,n,this):0},d.prototype.match=function(t){var e=0,n=[];0<=this.__index__&&this.__text_cache__===t&&(n.push(f(this,e)),e=this.__last_index__);for(var r=e?t.slice(e):t;this.test(r);)n.push(f(this,e)),r=r.slice(this.__last_index__),e+=this.__last_index__;return n.length?n:null},d.prototype.tlds=function(t,e){return t=Array.isArray(t)?t:[t],e?this.__tlds__=this.__tlds__.concat(t).sort().filter((function(t,e,n){return t!==n[e-1]})).reverse():(this.__tlds__=t.slice(),this.__tlds_replaced__=!0),l(this),this},d.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),"mailto:"!==t.schema||/^mailto:/i.test(t.url)||(t.url="mailto:"+t.url)},d.prototype.onCompile=function(){},t.exports=d},function(t,e,n){t.exports=n(40)},function(t,e,n){"use strict";var r=n(10);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}function e(){return t}var n={array:t.isRequired=t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){"use strict";t.exports=function(t){var e={};return e.src_Any=n(22).source,e.src_Cc=n(23).source,e.src_Z=n(24).source,e.src_P=n(25).source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|"),e.src_pseudo_letter="(?:(?![><|]|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|[><|]|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+e.src_ZCc+").|\\!(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy='(^|[><|]|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}},function(t,e){t.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(t,e){t.exports=/[\0-\x1F\x7F-\x9F]/},function(t,e){t.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(t,e){t.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){"use strict";n.r(e),n.d(e,"Editor",(function(){return Bn})),n.d(e,"Option",(function(){return N})),n.d(e,"Dropdown",(function(){return R})),n.d(e,"DropdownOption",(function(){return K})),n.d(e,"stopPropagation",(function(){return M})),n.d(e,"getFirstIcon",(function(){return k})),n.d(e,"openlink",(function(){return on}));var r=n(1),o=n.n(r),i=n(0),a=n.n(i),c=n(3),u=n(4),l=n(2),p=n.n(l);function f(){var t=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),this.callBacks=[],this.suggestionCallback=void 0,this.editorFlag=!1,this.suggestionFlag=!1,this.closeAllModals=function(e){t.callBacks.forEach((function(t){t(e)}))},this.init=function(e){var n=document.getElementById(e);n&&n.addEventListener("click",(function(){t.editorFlag=!0})),document&&(document.addEventListener("click",(function(){t.editorFlag?t.editorFlag=!1:(t.closeAllModals(),t.suggestionCallback&&t.suggestionCallback())})),document.addEventListener("keydown",(function(e){"Escape"===e.key&&t.closeAllModals()})))},this.onEditorClick=function(){t.closeModals(),!t.suggestionFlag&&t.suggestionCallback?t.suggestionCallback():t.suggestionFlag=!1},this.closeModals=function(e){t.closeAllModals(e)},this.registerCallBack=function(e){t.callBacks.push(e)},this.deregisterCallBack=function(e){t.callBacks=t.callBacks.filter((function(t){return t!==e}))},this.setSuggestionCallback=function(e){t.suggestionCallback=e},this.removeSuggestionCallback=function(){t.suggestionCallback=void 0},this.onSuggestionClick=function(){t.suggestionFlag=!0}}function d(){var t=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),this.inputFocused=!1,this.editorMouseDown=!1,this.onEditorMouseDown=function(){t.editorFocused=!0},this.onInputMouseDown=function(){t.inputFocused=!0},this.isEditorBlur=function(e){return"INPUT"!==e.target.tagName&&"LABEL"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName||t.editorFocused?!("INPUT"===e.target.tagName&&"LABEL"===e.target.tagName&&"TEXTAREA"===e.target.tagName||t.inputFocused||(t.editorFocused=!1)):!(t.inputFocused=!1)},this.isEditorFocused=function(){return!t.inputFocused||(t.inputFocused=!1)},this.isToolbarFocused=function(){return!t.editorFocused||(t.editorFocused=!1)},this.isInputFocused=function(){return t.inputFocused}}var h,g=[],y={onKeyDown:function(t){g.forEach((function(e){e(t)}))},registerCallBack:function(t){g.push(t)},deregisterCallBack:function(t){g=g.filter((function(e){return e!==t}))}},m=function(){h=!0},v=function(){h=!1},b=function(){return h};function w(t){var e=t.getData()&&t.getData().get("text-align");return e?"rdw-".concat(e,"-aligned-block"):""}function _(t,e){if(t)for(var n in t)!{}.hasOwnProperty.call(t,n)||e(n,t[n])}function S(t,e){var n=!1;if(t)for(var r in t)if({}.hasOwnProperty.call(t,r)&&e===r){n=!0;break}return n}function M(t){t.stopPropagation()}function x(t,e){if(t&&void 0===e)return t;var n={};return _(t,(function(t,r){var o;o=r,"[object Object]"===Object.prototype.toString.call(o)?n[t]=x(r,e[t]):n[t]=void 0!==e[t]?e[t]:r})),n}var k=function(t){return t[t.options[0]].icon},E=n(6),D=n.n(E),C=n(5);function j(t){return(j="function"==typeof Symbol&&"symbol"==s(Symbol.iterator)?function(t){return s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":s(t)})(t)}function O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function L(t,e){return(L=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function I(t){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(11);var N=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&L(t,e)}(n,r.Component);var t,e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r,o,i=I(t);if(e){var a=I(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return r=this,!(o=n)||"object"!==j(o)&&"function"!=typeof o?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(r):o}}(n);function n(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;it.length)&&(e=t.length);for(var n=0,r=new Array(e);n{"use strict";n.d(e,{Z:()=>i});var r=n(923645),o=n.n(r)()((function(t){return t[1]}));o.push([t.id,'.msgapi .rdw-option-wrapper {\r\n border: 1px solid #F1F1F1;\r\n padding: 5px;\r\n min-width: 25px;\r\n height: 20px;\r\n border-radius: 2px;\r\n margin: 0 4px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n cursor: pointer;\r\n background: white;\r\n text-transform: capitalize;\r\n}\r\n.msgapi .rdw-option-wrapper:hover {\r\n box-shadow: 1px 1px 0px #BFBDBD;\r\n}\r\n.msgapi .rdw-option-wrapper:active {\r\n box-shadow: 1px 1px 0px #BFBDBD inset;\r\n}\r\n.msgapi .rdw-option-active {\r\n box-shadow: 1px 1px 0px #BFBDBD inset;\r\n}\r\n.msgapi .rdw-option-disabled {\r\n opacity: 0.3;\r\n cursor: default;\r\n}\r\n\r\n.msgapi .rdw-dropdown-wrapper {\r\n height: 30px;\r\n background: white;\r\n cursor: pointer;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n margin: 0 3px;\r\n text-transform: capitalize;\r\n background: white;\r\n}\r\n.msgapi .rdw-dropdown-wrapper:focus {\r\n outline: none;\r\n}\r\n.msgapi .rdw-dropdown-wrapper:hover {\r\n box-shadow: 1px 1px 0px #BFBDBD;\r\n background-color: #FFFFFF;\r\n}\r\n.msgapi .rdw-dropdown-wrapper:active {\r\n box-shadow: 1px 1px 0px #BFBDBD inset;\r\n}\r\n.msgapi .rdw-dropdown-carettoopen {\r\n height: 0px;\r\n width: 0px;\r\n position: absolute;\r\n top: 35%;\r\n right: 10%;\r\n border-top: 6px solid black;\r\n border-left: 5px solid transparent;\r\n border-right: 5px solid transparent;\r\n}\r\n.msgapi .rdw-dropdown-carettoclose {\r\n height: 0px;\r\n width: 0px;\r\n position: absolute;\r\n top: 35%;\r\n right: 10%;\r\n border-bottom: 6px solid black;\r\n border-left: 5px solid transparent;\r\n border-right: 5px solid transparent;\r\n}\r\n.msgapi .rdw-dropdown-selectedtext {\r\n display: flex;\r\n position: relative;\r\n height: 100%;\r\n align-items: center;\r\n padding: 0 5px;\r\n}\r\n.msgapi .rdw-dropdown-optionwrapper {\r\n z-index: 100;\r\n position: relative;\r\n border: 1px solid #F1F1F1;\r\n width: 98%;\r\n background: white;\r\n border-radius: 2px;\r\n margin: 0;\r\n padding: 0;\r\n max-height: 250px;\r\n overflow-y: scroll;\r\n}\r\n.msgapi .rdw-dropdown-optionwrapper:hover {\r\n box-shadow: 1px 1px 0px #BFBDBD;\r\n background-color: #FFFFFF;\r\n}\r\n\r\n.msgapi .rdw-dropdownoption-default {\r\n min-height: 25px;\r\n display: flex;\r\n align-items: center;\r\n padding: 0 5px;\r\n}\r\n.msgapi .rdw-dropdownoption-highlighted {\r\n background: #F1F1F1;\r\n}\r\n.msgapi .rdw-dropdownoption-active {\r\n background: #f5f5f5;\r\n}\r\n.msgapi .rdw-dropdownoption-disabled {\r\n opacity: 0.3;\r\n cursor: default;\r\n}\r\n\r\n.msgapi .rdw-inline-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-inline-dropdown {\r\n width: 50px;\r\n}\r\n.msgapi .rdw-inline-dropdownoption {\r\n height: 40px;\r\n display: flex;\r\n justify-content: center;\r\n}\r\n\r\n.msgapi .rdw-block-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-block-dropdown {\r\n width: 110px;\r\n}\r\n\r\n.msgapi .rdw-fontsize-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-fontsize-dropdown {\r\n min-width: 40px;\r\n}\r\n.msgapi .rdw-fontsize-option {\r\n display: flex;\r\n justify-content: center;\r\n}\r\n\r\n.msgapi .rdw-fontfamily-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-fontfamily-dropdown {\r\n width: 115px;\r\n}\r\n.msgapi .rdw-fontfamily-placeholder {\r\n white-space: nowrap;\r\n max-width: 90px;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n}\r\n.msgapi .rdw-fontfamily-optionwrapper {\r\n width: 140px;\r\n}\r\n\r\n.msgapi .rdw-list-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-list-dropdown {\r\n width: 50px;\r\n z-index: 90;\r\n}\r\n.msgapi .rdw-list-dropdownOption {\r\n height: 40px;\r\n display: flex;\r\n justify-content: center;\r\n}\r\n\r\n.msgapi .rdw-text-align-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-text-align-dropdown {\r\n width: 50px;\r\n z-index: 90;\r\n}\r\n.msgapi .rdw-text-align-dropdownOption {\r\n height: 40px;\r\n display: flex;\r\n justify-content: center;\r\n}\r\n.msgapi .rdw-right-aligned-block {\r\n text-align: right;\r\n}\r\n.msgapi .rdw-left-aligned-block {\r\n text-align: left !important;\r\n}\r\n.msgapi .rdw-center-aligned-block {\r\n text-align: center !important;\r\n}\r\n.msgapi .rdw-justify-aligned-block {\r\n text-align: justify !important;\r\n}\r\n.msgapi .rdw-right-aligned-block > div {\r\n display: inline-block;\r\n}\r\n.msgapi .rdw-left-aligned-block > div {\r\n display: inline-block;\r\n}\r\n.msgapi .rdw-center-aligned-block > div {\r\n display: inline-block;\r\n}\r\n.msgapi .rdw-justify-aligned-block > div {\r\n display: inline-block;\r\n}\r\n\r\n.msgapi .rdw-colorpicker-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n position: relative;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-colorpicker-modal {\r\n position: absolute;\r\n top: 35px;\r\n left: 5px;\r\n display: flex;\r\n flex-direction: column;\r\n width: 175px;\r\n height: 175px;\r\n border: 1px solid #F1F1F1;\r\n padding: 15px;\r\n border-radius: 2px;\r\n z-index: 100;\r\n background: white;\r\n box-shadow: 3px 3px 5px #BFBDBD;\r\n}\r\n.msgapi .rdw-colorpicker-modal-header {\r\n display: flex;\r\n padding-bottom: 5px;\r\n}\r\n.msgapi .rdw-colorpicker-modal-style-label {\r\n font-size: 15px;\r\n width: 50%;\r\n text-align: center;\r\n cursor: pointer;\r\n padding: 0 10px 5px;\r\n}\r\n.msgapi .rdw-colorpicker-modal-style-label-active {\r\n border-bottom: 2px solid #0a66b7;\r\n}\r\n.msgapi .rdw-colorpicker-modal-options {\r\n margin: 5px auto;\r\n display: flex;\r\n width: 100%;\r\n height: 100%;\r\n flex-wrap: wrap;\r\n overflow: scroll;\r\n}\r\n.msgapi .rdw-colorpicker-cube {\r\n width: 22px;\r\n height: 22px;\r\n border: 1px solid #F1F1F1;\r\n}\r\n.msgapi .rdw-colorpicker-option {\r\n margin: 3px;\r\n padding: 0;\r\n min-height: 20px;\r\n border: none;\r\n width: 22px;\r\n height: 22px;\r\n min-width: 22px;\r\n box-shadow: 1px 2px 1px #BFBDBD inset;\r\n}\r\n.msgapi .rdw-colorpicker-option:hover {\r\n box-shadow: 1px 2px 1px #BFBDBD;\r\n}\r\n.msgapi .rdw-colorpicker-option:active {\r\n box-shadow: -1px -2px 1px #BFBDBD;\r\n}\r\n.msgapi .rdw-colorpicker-option-active {\r\n box-shadow: 0px 0px 2px 2px #BFBDBD;\r\n}\r\n\r\n.msgapi .rdw-link-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n position: relative;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-link-dropdown {\r\n width: 50px;\r\n}\r\n.msgapi .rdw-link-dropdownOption {\r\n height: 40px;\r\n display: flex;\r\n justify-content: center;\r\n}\r\n.msgapi .rdw-link-dropdownPlaceholder {\r\n margin-left: 8px;\r\n}\r\n.msgapi .rdw-link-modal {\r\n position: absolute;\r\n top: 35px;\r\n left: 5px;\r\n display: flex;\r\n flex-direction: column;\r\n width: 235px;\r\n height: 205px;\r\n border: 1px solid #F1F1F1;\r\n padding: 15px;\r\n border-radius: 2px;\r\n z-index: 100;\r\n background: white;\r\n box-shadow: 3px 3px 5px #BFBDBD;\r\n}\r\n.msgapi .rdw-link-modal-label {\r\n font-size: 15px;\r\n}\r\n.msgapi .rdw-link-modal-input {\r\n margin-top: 5px;\r\n border-radius: 2px;\r\n border: 1px solid #F1F1F1;\r\n height: 25px;\r\n margin-bottom: 15px;\r\n padding: 0 5px;\r\n}\r\n.msgapi .rdw-link-modal-input:focus {\r\n outline: none;\r\n}\r\n.msgapi .rdw-link-modal-buttonsection {\r\n margin: 0 auto;\r\n}\r\n.msgapi .rdw-link-modal-target-option {\r\n margin-bottom: 20px;\r\n}\r\n.msgapi .rdw-link-modal-target-option > span {\r\n margin-left: 5px;\r\n}\r\n.msgapi .rdw-link-modal-btn {\r\n margin-left: 10px;\r\n width: 75px;\r\n height: 30px;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n cursor: pointer;\r\n background: white;\r\n text-transform: capitalize;\r\n}\r\n.msgapi .rdw-link-modal-btn:hover {\r\n box-shadow: 1px 1px 0px #BFBDBD;\r\n}\r\n.msgapi .rdw-link-modal-btn:active {\r\n box-shadow: 1px 1px 0px #BFBDBD inset;\r\n}\r\n.msgapi .rdw-link-modal-btn:focus {\r\n outline: none !important;\r\n}\r\n.msgapi .rdw-link-modal-btn:disabled {\r\n background: #ece9e9;\r\n}\r\n.msgapi .rdw-link-dropdownoption {\r\n height: 40px;\r\n display: flex;\r\n justify-content: center;\r\n}\r\n.msgapi .rdw-history-dropdown {\r\n width: 50px;\r\n}\r\n\r\n.msgapi .rdw-embedded-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n position: relative;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-embedded-modal {\r\n position: absolute;\r\n top: 35px;\r\n left: 5px;\r\n display: flex;\r\n flex-direction: column;\r\n width: 235px;\r\n height: 180px;\r\n border: 1px solid #F1F1F1;\r\n padding: 15px;\r\n border-radius: 2px;\r\n z-index: 100;\r\n background: white;\r\n justify-content: space-between;\r\n box-shadow: 3px 3px 5px #BFBDBD;\r\n}\r\n.msgapi .rdw-embedded-modal-header {\r\n font-size: 15px;\r\n display: flex;\r\n}\r\n.msgapi .rdw-embedded-modal-header-option {\r\n width: 50%;\r\n cursor: pointer;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-direction: column;\r\n}\r\n.msgapi .rdw-embedded-modal-header-label {\r\n width: 95px;\r\n border: 1px solid #f1f1f1;\r\n margin-top: 5px;\r\n background: #6EB8D4;\r\n border-bottom: 2px solid #0a66b7;\r\n}\r\n.msgapi .rdw-embedded-modal-link-section {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n.msgapi .rdw-embedded-modal-link-input {\r\n width: 88%;\r\n height: 35px;\r\n margin: 10px 0;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n font-size: 15px;\r\n padding: 0 5px;\r\n}\r\n.msgapi .rdw-embedded-modal-link-input-wrapper {\r\n display: flex;\r\n align-items: center;\r\n}\r\n.msgapi .rdw-embedded-modal-link-input:focus {\r\n outline: none;\r\n}\r\n.msgapi .rdw-embedded-modal-btn-section {\r\n display: flex;\r\n justify-content: center;\r\n}\r\n.msgapi .rdw-embedded-modal-btn {\r\n margin: 0 3px;\r\n width: 75px;\r\n height: 30px;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n cursor: pointer;\r\n background: white;\r\n text-transform: capitalize;\r\n}\r\n.msgapi .rdw-embedded-modal-btn:hover {\r\n box-shadow: 1px 1px 0px #BFBDBD;\r\n}\r\n.msgapi .rdw-embedded-modal-btn:active {\r\n box-shadow: 1px 1px 0px #BFBDBD inset;\r\n}\r\n.msgapi .rdw-embedded-modal-btn:focus {\r\n outline: none !important;\r\n}\r\n.msgapi .rdw-embedded-modal-btn:disabled {\r\n background: #ece9e9;\r\n}\r\n.msgapi .rdw-embedded-modal-size {\r\n align-items: center;\r\n display: flex;\r\n margin: 8px 0;\r\n justify-content: space-between;\r\n}\r\n.msgapi .rdw-embedded-modal-size-input {\r\n width: 80%;\r\n height: 20px;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n font-size: 12px;\r\n}\r\n.msgapi .rdw-embedded-modal-size-input:focus {\r\n outline: none;\r\n}\r\n\r\n.msgapi .rdw-emoji-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n position: relative;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-emoji-modal {\r\n overflow: auto;\r\n position: absolute;\r\n top: 35px;\r\n left: 5px;\r\n display: flex;\r\n flex-wrap: wrap;\r\n width: 235px;\r\n height: 180px;\r\n border: 1px solid #F1F1F1;\r\n padding: 15px;\r\n border-radius: 2px;\r\n z-index: 100;\r\n background: white;\r\n box-shadow: 3px 3px 5px #BFBDBD;\r\n}\r\n.msgapi .rdw-emoji-icon {\r\n margin: 2.5px;\r\n height: 24px;\r\n width: 24px;\r\n cursor: pointer;\r\n font-size: 22px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n\r\n.msgapi .rdw-spinner {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n height: 100%;\r\n width: 100%;\r\n}\r\n.msgapi .rdw-spinner > div {\r\n width: 12px;\r\n height: 12px;\r\n background-color: #333;\r\n\r\n border-radius: 100%;\r\n display: inline-block;\r\n -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;\r\n animation: sk-bouncedelay 1.4s infinite ease-in-out both;\r\n}\r\n.msgapi .rdw-spinner .rdw-bounce1 {\r\n -webkit-animation-delay: -0.32s;\r\n animation-delay: -0.32s;\r\n}\r\n.msgapi .rdw-spinner .rdw-bounce2 {\r\n -webkit-animation-delay: -0.16s;\r\n animation-delay: -0.16s;\r\n}\r\n@-webkit-keyframes sk-bouncedelay {\r\n 0%, 80%, 100% { -webkit-transform: scale(0) }\r\n 40% { -webkit-transform: scale(1.0) }\r\n}\r\n@keyframes sk-bouncedelay {\r\n 0%, 80%, 100% {\r\n -webkit-transform: scale(0);\r\n transform: scale(0);\r\n } 40% {\r\n -webkit-transform: scale(1.0);\r\n transform: scale(1.0);\r\n }\r\n}\r\n\r\n.msgapi .rdw-image-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n position: relative;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-image-modal {\r\n position: absolute;\r\n top: 35px;\r\n left: 5px;\r\n display: flex;\r\n flex-direction: column;\r\n width: 235px;\r\n border: 1px solid #F1F1F1;\r\n padding: 15px;\r\n border-radius: 2px;\r\n z-index: 100;\r\n background: white;\r\n box-shadow: 3px 3px 5px #BFBDBD;\r\n}\r\n.msgapi .rdw-image-modal-header {\r\n font-size: 15px;\r\n margin: 10px 0;\r\n display: flex;\r\n}\r\n.msgapi .rdw-image-modal-header-option {\r\n width: 50%;\r\n cursor: pointer;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-direction: column;\r\n}\r\n.msgapi .rdw-image-modal-header-label {\r\n width: 80px;\r\n background: #f1f1f1;\r\n border: 1px solid #f1f1f1;\r\n margin-top: 5px;\r\n}\r\n.msgapi .rdw-image-modal-header-label-highlighted {\r\n background: #6EB8D4;\r\n border-bottom: 2px solid #0a66b7;\r\n}\r\n.msgapi .rdw-image-modal-upload-option {\r\n width: 100%;\r\n color: gray;\r\n cursor: pointer;\r\n display: flex;\r\n border: none;\r\n font-size: 15px;\r\n align-items: center;\r\n justify-content: center;\r\n background-color: #f1f1f1;\r\n outline: 2px dashed gray;\r\n outline-offset: -10px;\r\n margin: 10px 0;\r\n padding: 9px 0;\r\n}\r\n.msgapi .rdw-image-modal-upload-option-highlighted {\r\n outline: 2px dashed #0a66b7;\r\n}\r\n.msgapi .rdw-image-modal-upload-option-label {\r\n cursor: pointer;\r\n height: 100%;\r\n width: 100%;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n padding: 15px;\r\n}\r\n.msgapi .rdw-image-modal-upload-option-label span{\r\n padding: 0 20px;\r\n}\r\n.msgapi .rdw-image-modal-upload-option-image-preview {\r\n max-width: 100%;\r\n max-height: 200px;\r\n}\r\n.msgapi .rdw-image-modal-upload-option-input {\r\n\twidth: 0.1px;\r\n\theight: 0.1px;\r\n\topacity: 0;\r\n\toverflow: hidden;\r\n\tposition: absolute;\r\n\tz-index: -1;\r\n}\r\n.msgapi .rdw-image-modal-url-section {\r\n display: flex;\r\n align-items: center;\r\n}\r\n.msgapi .rdw-image-modal-url-input {\r\n width: 90%;\r\n height: 35px;\r\n margin: 15px 0 12px;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n font-size: 15px;\r\n padding: 0 5px;\r\n}\r\n.msgapi .rdw-image-modal-btn-section {\r\n margin: 10px auto 0;\r\n}\r\n.msgapi .rdw-image-modal-url-input:focus {\r\n outline: none;\r\n}\r\n.msgapi .rdw-image-modal-btn {\r\n margin: 0 5px;\r\n width: 75px;\r\n height: 30px;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n cursor: pointer;\r\n background: white;\r\n text-transform: capitalize;\r\n}\r\n.msgapi .rdw-image-modal-btn:hover {\r\n box-shadow: 1px 1px 0px #BFBDBD;\r\n}\r\n.msgapi .rdw-image-modal-btn:active {\r\n box-shadow: 1px 1px 0px #BFBDBD inset;\r\n}\r\n.msgapi .rdw-image-modal-btn:focus {\r\n outline: none !important;\r\n}\r\n.msgapi .rdw-image-modal-btn:disabled {\r\n background: #ece9e9;\r\n}\r\n.msgapi .rdw-image-modal-spinner {\r\n position: absolute;\r\n top: -3px;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n opacity: 0.5;\r\n}\r\n.msgapi .rdw-image-modal-alt-input {\r\n width: 70%;\r\n height: 20px;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n font-size: 12px;\r\n margin-left: 5px;\r\n}\r\n.msgapi .rdw-image-modal-alt-input:focus {\r\n outline: none;\r\n}\r\n.msgapi .rdw-image-modal-alt-lbl {\r\n font-size: 12px;\r\n}\r\n.msgapi .rdw-image-modal-size {\r\n align-items: center;\r\n display: flex;\r\n margin: 8px 0;\r\n justify-content: space-between;\r\n}\r\n.msgapi .rdw-image-modal-size-input {\r\n width: 40%;\r\n height: 20px;\r\n border: 1px solid #F1F1F1;\r\n border-radius: 2px;\r\n font-size: 12px;\r\n}\r\n.msgapi .rdw-image-modal-size-input:focus {\r\n outline: none;\r\n}\r\n.msgapi .rdw-image-mandatory-sign {\r\n color: red;\r\n margin-left: 3px;\r\n margin-right: 3px;\r\n}\r\n\r\n.msgapi .rdw-remove-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n position: relative;\r\n flex-wrap: wrap\r\n}\r\n\r\n.msgapi .rdw-history-wrapper {\r\n display: flex;\r\n align-items: center;\r\n margin-bottom: 6px;\r\n flex-wrap: wrap\r\n}\r\n.msgapi .rdw-history-dropdownoption {\r\n height: 40px;\r\n display: flex;\r\n justify-content: center;\r\n}\r\n.msgapi .rdw-history-dropdown {\r\n width: 50px;\r\n}\r\n\r\n.msgapi .rdw-link-decorator-wrapper {\r\n position: relative;\r\n}\r\n.msgapi .rdw-link-decorator-icon {\r\n position: absolute;\r\n left: 40%;\r\n top: 0;\r\n cursor: pointer;\r\n background-color: white;\r\n}\r\n\r\n.msgapi .rdw-mention-link {\r\n text-decoration: none;\r\n color: #1236ff;\r\n background-color: #f0fbff;\r\n padding: 1px 2px;\r\n border-radius: 2px;\r\n}\r\n\r\n.msgapi .rdw-suggestion-wrapper {\r\n position: relative;\r\n}\r\n.msgapi .rdw-suggestion-dropdown {\r\n position: absolute;\r\n display: flex;\r\n flex-direction: column;\r\n border: 1px solid #F1F1F1;\r\n min-width: 100px;\r\n max-height: 150px;\r\n overflow: auto;\r\n background: white;\r\n z-index: 100;\r\n}\r\n.msgapi .rdw-suggestion-option {\r\n padding: 7px 5px;\r\n border-bottom: 1px solid #f1f1f1;\r\n}\r\n.msgapi .rdw-suggestion-option-active {\r\n background-color: #F1F1F1;\r\n}\r\n\r\n.msgapi .rdw-hashtag-link {\r\n text-decoration: none;\r\n color: #1236ff;\r\n background-color: #f0fbff;\r\n padding: 1px 2px;\r\n border-radius: 2px;\r\n}\r\n\r\n.msgapi .rdw-image-alignment-options-popup {\r\n position: absolute;\r\n background: white;\r\n display: flex;\r\n padding: 5px 2px;\r\n border-radius: 2px;\r\n border: 1px solid #F1F1F1;\r\n width: 105px;\r\n cursor: pointer;\r\n z-index: 100;\r\n}\r\n.msgapi .rdw-alignment-option-left {\r\n justify-content: flex-start;\r\n}\r\n.msgapi .rdw-image-alignment-option {\r\n height: 15px;\r\n width: 15px;\r\n min-width: 15px;\r\n}\r\n.msgapi .rdw-image-alignment {\r\n position: relative;\r\n}\r\n.msgapi .rdw-image-imagewrapper {\r\n position: relative;\r\n}\r\n.msgapi .rdw-image-center {\r\n display: flex;\r\n justify-content: center;\r\n}\r\n.msgapi .rdw-image-left {\r\n display: flex;\r\n}\r\n.msgapi .rdw-image-right {\r\n display: flex;\r\n justify-content: flex-end;\r\n}\r\n.msgapi .rdw-image-alignment-options-popup-right {\r\n right: 0;\r\n}\r\n\r\n.msgapi .rdw-editor-main {\r\n height: 100%;\r\n overflow: auto;\r\n box-sizing: border-box;\r\n}\r\n.msgapi .rdw-editor-toolbar {\r\n padding: 6px 5px 0;\r\n border-radius: 2px;\r\n border: 1px solid #F1F1F1;\r\n display: flex;\r\n justify-content: flex-start;\r\n background: white;\r\n flex-wrap: wrap;\r\n font-size: 15px;\r\n margin-bottom: 5px;\r\n user-select: none;\r\n}\r\n.msgapi .public-DraftStyleDefault-block {\r\n margin: 1em 0;\r\n}\r\n.msgapi .rdw-editor-wrapper:focus {\r\n outline: none;\r\n}\r\n.msgapi .rdw-editor-wrapper {\r\n box-sizing: content-box;\r\n}\r\n.msgapi .rdw-editor-main blockquote {\r\n border-left: 5px solid #f1f1f1;\r\n padding-left: 5px;\r\n}\r\n.msgapi .rdw-editor-main pre {\r\n background: #f1f1f1;\r\n border-radius: 3px;\r\n padding: 1px 10px;\r\n}\r\n/**\r\n * Draft v0.9.1\r\n *\r\n * Copyright (c) 2013-present, Facebook, Inc.\r\n * All rights reserved.\r\n *\r\n * This source code is licensed under the BSD-style license found in the\r\n * LICENSE file in the root directory of this source tree. An additional grant\r\n * of patent rights can be found in the PATENTS file in the same directory.\r\n */\r\n.msgapi .DraftEditor-editorContainer,.msgapi .DraftEditor-root,.msgapi .public-DraftEditor-content{height:inherit;text-align:initial}.msgapi .public-DraftEditor-content[contenteditable=true]{-webkit-user-modify:read-write-plaintext-only}.msgapi .DraftEditor-root{position:relative}.msgapi .DraftEditor-editorContainer{background-color:rgba(255,255,255,0);border-left:.1px solid transparent;position:relative;z-index:1}.msgapi .public-DraftEditor-block{position:relative}.msgapi .DraftEditor-alignLeft .public-DraftStyleDefault-block{text-align:left}.msgapi .DraftEditor-alignLeft .public-DraftEditorPlaceholder-root{left:0;text-align:left}.msgapi .DraftEditor-alignCenter .public-DraftStyleDefault-block{text-align:center}.msgapi .DraftEditor-alignCenter .public-DraftEditorPlaceholder-root{margin:0 auto;text-align:center;width:100%}.msgapi .DraftEditor-alignRight .public-DraftStyleDefault-block{text-align:right}.msgapi .DraftEditor-alignRight .public-DraftEditorPlaceholder-root{right:0;text-align:right}.msgapi .public-DraftEditorPlaceholder-root{color:#9197a3;position:absolute;z-index:0}.msgapi .public-DraftEditorPlaceholder-hasFocus{color:#bdc1c9}.msgapi .DraftEditorPlaceholder-hidden{display:none}.msgapi .public-DraftStyleDefault-block{position:relative;white-space:pre-wrap}.msgapi .public-DraftStyleDefault-ltr{direction:ltr;text-align:left}.msgapi .public-DraftStyleDefault-rtl{direction:rtl;text-align:right}.msgapi .public-DraftStyleDefault-listLTR{direction:ltr}.msgapi .public-DraftStyleDefault-listRTL{direction:rtl}.msgapi .public-DraftStyleDefault-ol,.msgapi .public-DraftStyleDefault-ul{margin:16px 0;padding:0}.msgapi .public-DraftStyleDefault-depth0.public-DraftStyleDefault-listLTR{margin-left:1.5em}.msgapi .public-DraftStyleDefault-depth0.public-DraftStyleDefault-listRTL{margin-right:1.5em}.msgapi .public-DraftStyleDefault-depth1.public-DraftStyleDefault-listLTR{margin-left:3em}.msgapi .public-DraftStyleDefault-depth1.public-DraftStyleDefault-listRTL{margin-right:3em}.msgapi .public-DraftStyleDefault-depth2.public-DraftStyleDefault-listLTR{margin-left:4.5em}.msgapi .public-DraftStyleDefault-depth2.public-DraftStyleDefault-listRTL{margin-right:4.5em}.msgapi .public-DraftStyleDefault-depth3.public-DraftStyleDefault-listLTR{margin-left:6em}.msgapi .public-DraftStyleDefault-depth3.public-DraftStyleDefault-listRTL{margin-right:6em}.msgapi .public-DraftStyleDefault-depth4.public-DraftStyleDefault-listLTR{margin-left:7.5em}.msgapi .public-DraftStyleDefault-depth4.public-DraftStyleDefault-listRTL{margin-right:7.5em}.msgapi .public-DraftStyleDefault-unorderedListItem{list-style-type:square;position:relative}.msgapi .public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth0{list-style-type:disc}.msgapi .public-DraftStyleDefault-unorderedListItem.public-DraftStyleDefault-depth1{list-style-type:circle}.msgapi .public-DraftStyleDefault-orderedListItem{list-style-type:none;position:relative}.msgapi .public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listLTR:before{left:-36px;position:absolute;text-align:right;width:30px}.msgapi .public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listRTL:before{position:absolute;right:-36px;text-align:left;width:30px}.msgapi .public-DraftStyleDefault-orderedListItem:before{content:counter(ol0) ". ";counter-increment:ol0}.msgapi .public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth1:before{content:counter(ol1) ". ";counter-increment:ol1}.msgapi .public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth2:before{content:counter(ol2) ". ";counter-increment:ol2}.msgapi .public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth3:before{content:counter(ol3) ". ";counter-increment:ol3}.msgapi .public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth4:before{content:counter(ol4) ". ";counter-increment:ol4}.msgapi .public-DraftStyleDefault-depth0.public-DraftStyleDefault-reset{counter-reset:ol0}.msgapi .public-DraftStyleDefault-depth1.public-DraftStyleDefault-reset{counter-reset:ol1}.msgapi .public-DraftStyleDefault-depth2.public-DraftStyleDefault-reset{counter-reset:ol2}.msgapi .public-DraftStyleDefault-depth3.public-DraftStyleDefault-reset{counter-reset:ol3}.msgapi .public-DraftStyleDefault-depth4.public-DraftStyleDefault-reset{counter-reset:ol4}',""]);const i=o},819785:(t,e,n)=>{"use strict";function r(t){for(var e=1;e{"use strict";var r=n(182371).OrderedMap,o={createFromArray:function(t){return r(t.map((function(t){return[t.getKey(),t]})))}};t.exports=o},534365:(t,e,n)=>{"use strict";var r=n(855577),o=n(629407),i=n(182371),a=i.List,s=i.Repeat,c=i.Record,u=r.thatReturnsTrue,l=c({start:null,end:null}),p=c({start:null,end:null,decoratorKey:null,leaves:null}),f={generate:function(t,e,n){var r=e.getLength();if(!r)return a.of(new p({start:0,end:0,decoratorKey:null,leaves:a.of(new l({start:0,end:0}))}));var i=[],c=n?n.getDecorations(e,t):a(s(null,r)),f=e.getCharacterList();return o(c,d,u,(function(t,e){var n,r,s,h;i.push(new p({start:t,end:e,decoratorKey:c.get(t),leaves:(n=f.slice(t,e).toList(),r=t,s=[],h=n.map((function(t){return t.getStyle()})).toList(),o(h,d,u,(function(t,e){s.push(new l({start:t+r,end:e+r}))})),a(s))}))})),a(i)}};function d(t,e){return t===e}t.exports=f},704516:(t,e,n)=>{"use strict";var r=n(182371),o=r.Map,i=r.OrderedSet,a=r.Record,s=i(),c={style:s,entity:null},u=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.getStyle=function(){return this.get("style")},i.getEntity=function(){return this.get("entity")},i.hasStyle=function(t){return this.getStyle().includes(t)},r.applyStyle=function(t,e){var n=t.set("style",t.getStyle().add(e));return r.create(n)},r.removeStyle=function(t,e){var n=t.set("style",t.getStyle().remove(e));return r.create(n)},r.applyEntity=function(t,e){var n=t.getEntity()===e?t:t.set("entity",e);return r.create(n)},r.create=function(t){if(!t)return l;var e=o({style:s,entity:null}).merge(t),n=p.get(e);if(n)return n;var i=new r(e);return p=p.set(e,i),i},r}(a(c)),l=new u,p=o([[o(c),l]]);u.EMPTY=l,t.exports=u},225369:(t,e,n)=>{"use strict";var r=n(182371).List,o=function(){function t(t){var e,n;n=void 0,(e="_decorators")in this?Object.defineProperty(this,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[e]=n,this._decorators=t.slice()}var e=t.prototype;return e.getDecorations=function(t,e){var n=Array(t.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(t,(function(t,e){(function(t,e,n){for(var r=e;r{"use strict";var r=n(704516),o=n(629407),i=n(182371),a=i.List,s=i.Map,c=i.OrderedSet,u=i.Record,l=i.Repeat,p=c(),f=function(t){var e,n;function i(e){return t.call(this,function(t){if(!t)return t;var e=t.characterList,n=t.text;return n&&!e&&(t.characterList=a(l(r.EMPTY,n.length))),t}(e))||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var s=i.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():p},s.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},s.findStyleRanges=function(t,e){o(this.getCharacterList(),d,t,e)},s.findEntityRanges=function(t,e){o(this.getCharacterList(),h,t,e)},i}(u({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:s()}));function d(t,e){return t.getStyle()===e.getStyle()}function h(t,e){return t.getEntity()===e.getEntity()}t.exports=f},767953:(t,e,n)=>{"use strict";var r=n(704516),o=n(629407),i=n(182371),a=i.List,s=i.Map,c=i.OrderedSet,u=i.Record,l=i.Repeat,p=c(),f={parent:null,characterList:a(),data:s(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},d=function(t,e){return t.getStyle()===e.getStyle()},h=function(t,e){return t.getEntity()===e.getEntity()},g=function(t){if(!t)return t;var e=t.characterList,n=t.text;return n&&!e&&(t.characterList=a(l(r.EMPTY,n.length))),t},y=function(t){var e,n;function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;return t.call(this,g(e))||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.getKey=function(){return this.get("key")},i.getType=function(){return this.get("type")},i.getText=function(){return this.get("text")},i.getCharacterList=function(){return this.get("characterList")},i.getLength=function(){return this.getText().length},i.getDepth=function(){return this.get("depth")},i.getData=function(){return this.get("data")},i.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():p},i.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},i.getChildKeys=function(){return this.get("children")},i.getParentKey=function(){return this.get("parent")},i.getPrevSiblingKey=function(){return this.get("prevSibling")},i.getNextSiblingKey=function(){return this.get("nextSibling")},i.findStyleRanges=function(t,e){o(this.getCharacterList(),d,t,e)},i.findEntityRanges=function(t,e){o(this.getCharacterList(),h,t,e)},r}(u(f));t.exports=y},66912:(t,e,n)=>{"use strict";var r=n(610329),o=n(704516),i=n(402641),a=n(767953),s=n(482222),c=n(325110),u=n(25027),l=n(168642),p=n(182371),f=n(855283),d=p.List,h=p.Record,g=p.Repeat,y=function(t){var e,n;function p(){return t.apply(this,arguments)||this}n=t,(e=p).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var h=p.prototype;return h.getEntityMap=function(){return s},h.getBlockMap=function(){return this.get("blockMap")},h.getSelectionBefore=function(){return this.get("selectionBefore")},h.getSelectionAfter=function(){return this.get("selectionAfter")},h.getBlockForKey=function(t){return this.getBlockMap().get(t)},h.getKeyBefore=function(t){return this.getBlockMap().reverse().keySeq().skipUntil((function(e){return e===t})).skip(1).first()},h.getKeyAfter=function(t){return this.getBlockMap().keySeq().skipUntil((function(e){return e===t})).skip(1).first()},h.getBlockAfter=function(t){return this.getBlockMap().skipUntil((function(e,n){return n===t})).skip(1).first()},h.getBlockBefore=function(t){return this.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).first()},h.getBlocksAsArray=function(){return this.getBlockMap().toArray()},h.getFirstBlock=function(){return this.getBlockMap().first()},h.getLastBlock=function(){return this.getBlockMap().last()},h.getPlainText=function(t){return this.getBlockMap().map((function(t){return t?t.getText():""})).join(t||"\n")},h.getLastCreatedEntityKey=function(){return s.__getLastCreatedEntityKey()},h.hasText=function(){var t=this.getBlockMap();return t.size>1||t.first().getLength()>0},h.createEntity=function(t,e,n){return s.__create(t,e,n),this},h.mergeEntityData=function(t,e){return s.__mergeData(t,e),this},h.replaceEntityData=function(t,e){return s.__replaceData(t,e),this},h.addEntity=function(t){return s.__add(t),this},h.getEntity=function(t){return s.__get(t)},p.createFromBlockArray=function(t,e){var n=Array.isArray(t)?t:t.contentBlocks,o=r.createFromArray(n),i=o.isEmpty()?new c:c.createEmpty(o.first().getKey());return new p({blockMap:o,entityMap:e||s,selectionBefore:i,selectionAfter:i})},p.createFromText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=t.split(e),r=n.map((function(t){return t=f(t),new(l("draft_tree_data_support")?a:i)({key:u(),text:t,type:"unstyled",characterList:d(g(o.EMPTY,t.length))})}));return p.createFromBlockArray(r)},p}(h({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}));t.exports=y},513483:(t,e,n)=>{"use strict";var r=n(704516),o=n(182371).Map,i={add:function(t,e,n){return a(t,e,n,!0)},remove:function(t,e,n){return a(t,e,n,!1)}};function a(t,e,n,i){var a=t.getBlockMap(),s=e.getStartKey(),c=e.getStartOffset(),u=e.getEndKey(),l=e.getEndOffset(),p=a.skipUntil((function(t,e){return e===s})).takeUntil((function(t,e){return e===u})).concat(o([[u,a.get(u)]])).map((function(t,e){var o,a;s===u?(o=c,a=l):(o=e===s?c:0,a=e===u?l:t.getLength());for(var p,f=t.getCharacterList();o{"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(977249),i=n(169270),a=n(182371),s=n(152286),c=n(748899),u=a.Map,l={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},p=o.isBrowser("IE <= 11"),f=function(){function t(t){var e=this;r(this,"observer",void 0),r(this,"container",void 0),r(this,"mutations",void 0),r(this,"onCharData",void 0),this.container=t,this.mutations=u(),window.MutationObserver&&!p?this.observer=new window.MutationObserver((function(t){return e.registerMutations(t)})):this.onCharData=function(t){t.target instanceof Node||s(!1),e.registerMutation({type:"characterData",target:t.target})}}var e=t.prototype;return e.start=function(){this.observer?this.observer.observe(this.container,l):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},e.stopAndFlushMutations=function(){var t=this.observer;t?(this.registerMutations(t.takeRecords()),t.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var e=this.mutations;return this.mutations=u(),e},e.registerMutations=function(t){for(var e=0;e{"use strict";var r=n(124852),o=n(255484),i=(0,n(182371).Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:r.createElement("ul",{className:o("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:r.createElement("ol",{className:o("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:r.createElement("pre",{className:o("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});t.exports=i},737619:t=>{"use strict";t.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},909041:(t,e,n)=>{"use strict";var r=n(819785),o=n(610329),i=n(704516),a=n(225369),s=n(402641),c=n(66912),u=n(600526),l=n(737619),p=n(387210),f=n(937898),d=n(482222),h=n(142307),g=n(639006),y=n(314289),m=n(847387),v=n(870054),b=n(941947),w=n(325110),_=n(879981),S=n(399607),M=n(25027),x=n(441714),k=n(196629),E={Editor:p,EditorBlock:f,EditorState:y,CompositeDecorator:a,Entity:d,EntityInstance:g,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:s,ContentState:c,RawDraftContentState:v,SelectionState:w,AtomicBlockUtils:r,KeyBindingUtil:m,Modifier:h,RichUtils:b,DefaultDraftBlockRenderMap:u,DefaultDraftInlineStyle:l,convertFromHTML:n(267841),convertFromRaw:S,convertToRaw:_,genKey:M,getDefaultKeyBinding:x,getVisibleSelectionRect:k};t.exports=E},387210:(t,e,n)=>{"use strict";function r(t){for(var e=1;e{"use strict";var r=n(727418);function o(){return o=r||function(t){for(var e=1;e0&&window.scrollTo(i.x,i.y+r+10)}else n instanceof HTMLElement||v(!1),(r=n.offsetHeight+n.offsetTop-(o.offsetHeight+i.y))>0&&l.setTop(o,l.getTop(o)+r+10)}}},_._renderChildren=function(){var t=this,e=this.props.block,n=e.getKey(),r=e.getText(),i=this.props.tree.size-1,a=w(this.props.selection,n);return this.props.tree.map((function(l,p){var h=l.get("leaves"),g=h.size-1,y=h.map((function(o,l){var f=c.encode(n,p,l),d=o.get("start"),h=o.get("end");return u.createElement(s,{key:f,offsetKey:f,block:e,start:d,selection:a?t.props.selection:null,forceSelection:t.props.forceSelection,text:r.slice(d,h),styleSet:e.getInlineStyleAt(d),customStyleMap:t.props.customStyleMap,customStyleFn:t.props.customStyleFn,isLast:p===i&&l===g})})).toArray(),m=l.get("decoratorKey");if(null==m)return y;if(!t.props.decorator)return y;var v=b(t.props.decorator),w=v.getComponentForKey(m);if(!w)return y;var _=v.getPropsForKey(m),S=c.encode(n,p,0),M=h.first().get("start"),x=h.last().get("end"),k=r.slice(M,x),E=e.getEntityAt(l.get("start")),D=d.getHTMLDirIfDifferent(f.getDirection(k),t.props.direction),C={contentState:t.props.contentState,decoratedText:k,dir:D,key:S,start:M,end:x,blockKey:n,entityKey:E,offsetKey:S};return u.createElement(w,o({},_,C),y)})).toArray()},_.render=function(){var t=this,e=this.props,n=e.direction,r=e.offsetKey,o=h({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return u.createElement("div",{"data-offset-key":r,className:o,ref:function(e){return t._node=e}},this._renderChildren())},r}(u.Component);t.exports=_},425821:(t,e,n)=>{"use strict";var r=n(727418);function o(){return o=r||function(t){for(var e=1;e0&&window.scrollTo(i.x,i.y+n+10)}else r instanceof HTMLElement||m(!1),(n=r.offsetHeight+r.offsetTop-(o.offsetHeight+i.y))>0&&p.setTop(o,p.getTop(o)+n+10)}},a.render=function(){var t=this,e=this.props,n=e.block,a=e.blockRenderMap,l=e.blockRendererFn,p=e.blockStyleFn,f=e.contentState,d=e.decorator,h=e.editorKey,g=e.editorState,y=e.customStyleFn,m=e.customStyleMap,S=e.direction,M=e.forceSelection,x=e.selection,k=e.tree,E=null;n.children.size&&(E=n.children.reduce((function(e,n){var o=c.encode(n,0,0),s=f.getBlockForKey(n),d=w(s,l),y=d.CustomComponent||r,m=b(s,a),v=m.Element,S=m.wrapperTemplate,M=_(s,h,o,p,d),x=i({},t.props,{tree:g.getBlockTree(n),blockProps:d.customProps,offsetKey:o,block:s});return e.push(u.createElement(v,M,u.createElement(y,x))),!S||function(t,e){var n=t.getNextSiblingKey();return!!n&&e.getBlockForKey(n).getType()===t.getType()}(s,f)||function(t,e,n){var r=[],o=!0,i=!1,a=void 0;try{for(var s,l=n.reverse()[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var p=s.value;if(p.type!==e)break;r.push(p)}}catch(t){i=!0,a=t}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}n.splice(n.indexOf(r[0]),r.length+1);var f=r.reverse(),d=f[0].key;n.push(u.cloneElement(t,{key:"".concat(d,"-wrap"),"data-offset-key":c.encode(d,0,0)},f))}(S,v,e),e}),[]));var D=n.getKey(),C=c.encode(D,0,0),j=w(n,l),O=j.CustomComponent,L=null!=O?u.createElement(O,o({},this.props,{tree:g.getBlockTree(D),blockProps:j.customProps,offsetKey:C,block:n})):u.createElement(s,{block:n,children:E,contentState:f,customStyleFn:y,customStyleMap:m,decorator:d,direction:S,forceSelection:M,hasSelection:v(x,D),selection:x,tree:k});if(n.getParentKey())return L;var I=b(n,a).Element,N=_(n,h,C,p,j);return u.createElement(I,N,L)},r}(u.Component);t.exports=S},433418:(t,e,n)=>{"use strict";var r=n(777907),o=n(142307),i=n(822146),a=n(314289),s=n(272938),c=n(114507),u=n(384907),l=n(501244),p=n(42128),f=n(748899),d=!1,h=!1,g=null,y={onCompositionStart:function(t){h=!0,function(t){g||(g=new r(u(t))).start()}(t)},onCompositionEnd:function(t){d=!1,h=!1,setTimeout((function(){d||y.resolveComposition(t)}),20)},onSelect:c,onKeyDown:function(t,e){if(!h)return y.resolveComposition(t),void t._onKeyDown(e);e.which!==s.RIGHT&&e.which!==s.LEFT||e.preventDefault()},onKeyPress:function(t,e){e.which===s.RETURN&&e.preventDefault()},resolveComposition:function(t){if(!h){var e=f(g).stopAndFlushMutations();g=null,d=!0;var n=a.set(t._latestEditorState,{inCompositionMode:!1});if(t.exitCurrentMode(),e.size){var r=n.getCurrentContent();e.forEach((function(t,e){var s=i.decode(e),c=s.blockKey,u=s.decoratorKey,l=s.leafKey,f=n.getBlockTree(c).getIn([u,"leaves",l]),d=f.start,h=f.end,g=n.getSelection().merge({anchorKey:c,focusKey:c,anchorOffset:d,focusOffset:h,isBackward:!1}),y=p(r,g),m=r.getBlockForKey(c).getInlineStyleAt(d);r=o.replaceText(r,g,t,m,y),n=a.set(n,{currentContent:r})}));var s=l(n,u(t)).selectionState;t.restoreEditorDOM();var c=a.acceptSelection(n,s);t.update(a.push(c,r,"insert-characters"))}else t.update(n)}}};t.exports=y},488795:(t,e,n)=>{"use strict";function r(t){for(var e=1;e=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},f=function(t){var e,n;function o(){return t.apply(this,arguments)||this}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var c=o.prototype;return c.shouldComponentUpdate=function(t){var e=this.props.editorState,n=t.editorState;if(e.getDirectionMap()!==n.getDirectionMap())return!0;if(e.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=e.isInCompositionMode(),i=n.isInCompositionMode();if(e===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=e.getCurrentContent(),s=n.getCurrentContent(),c=e.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},c.render=function(){for(var t=this.props,e=t.blockRenderMap,n=t.blockRendererFn,o=t.blockStyleFn,c=t.customStyleMap,f=t.customStyleFn,d=t.editorState,h=t.editorKey,g=t.textDirectionality,y=d.getCurrentContent(),m=d.getSelection(),v=d.mustForceSelection(),b=d.getDecorator(),w=l(d.getDirectionMap()),_=y.getBlocksAsArray(),S=[],M=null,x=null,k=0;k<_.length;k++){var E=_[k],D=E.getKey(),C=E.getType(),j=n(E),O=void 0,L=void 0,I=void 0;j&&(O=j.component,L=j.props,I=j.editable);var N=g||w.get(D),T=a.encode(D,0,0),A={contentState:y,block:E,blockProps:L,blockStyleFn:o,customStyleMap:c,customStyleFn:f,decorator:b,direction:N,forceSelection:v,key:D,offsetKey:T,selection:m,tree:d.getBlockTree(D)},z=e.get(C)||e.get("unstyled"),R=z.wrapper,B=z.element||e.get("unstyled").element,F=E.getDepth(),P="";o&&(P=o(E)),"li"===B&&(P=u(P,p(C,F,x!==R||null===M||F>M,N)));var U=O||i,K={className:P,"data-block":!0,"data-editor":h,"data-offset-key":T,key:D};void 0!==I&&(K=r({},K,{contentEditable:I,suppressContentEditableWarning:!0}));var H=s.createElement(B,K,s.createElement(U,A));S.push({block:H,wrapperTemplate:R,key:D,offsetKey:T}),M=R?E.getDepth():null,x=R}for(var Y=[],q=0;q{"use strict";var r=n(168642)("draft_tree_data_support");t.exports=n(r?769459:488795)},769459:(t,e,n)=>{"use strict";var r=n(727418);function o(){return o=r||function(t){for(var e=1;e{"use strict";var r=n(727418);function o(){return o=r||function(t){for(var e=1;e{"use strict";var r=n(446123),o=n(142307),i=n(314289),a=n(180307),s=n(169270),c=n(21738),u=n(794486),l=n(342177),p=n(748899),f={onDragEnd:function(t){t.exitCurrentMode(),d(t)},onDrop:function(t,e){var n=new r(e.nativeEvent.dataTransfer),a=t._latestEditorState,f=function(t,e){var n=null,r=null;if("function"==typeof document.caretRangeFromPoint){var o=document.caretRangeFromPoint(t.x,t.y);n=o.startContainer,r=o.startOffset}else{if(!t.rangeParent)return null;n=t.rangeParent,r=t.rangeOffset}n=p(n),r=p(r);var i=p(s(n));return u(e,i,r,i,r)}(e.nativeEvent,a);if(e.preventDefault(),t._dragCount=0,t.exitCurrentMode(),null!=f){var g=n.getFiles();if(g.length>0){if(t.props.handleDroppedFiles&&l(t.props.handleDroppedFiles(f,g)))return;c(g,(function(e){e&&t.update(h(a,f,e))}))}else{var y=t._internalDrag?"internal":"external";t.props.handleDrop&&l(t.props.handleDrop(f,n,y))||(t._internalDrag?t.update(function(t,e){var n=o.moveText(t.getCurrentContent(),t.getSelection(),e);return i.push(t,n,"insert-fragment")}(a,f)):t.update(h(a,f,n.getText()))),d(t)}}}};function d(t){t._internalDrag=!1;var e=a.findDOMNode(t);if(e){var n=new MouseEvent("mouseup",{view:window,bubbles:!0,cancelable:!0});e.dispatchEvent(n)}}function h(t,e,n){var r=o.insertText(t.getCurrentContent(),e,n,t.getCurrentInlineStyle());return i.push(t,r,"insert-fragment")}t.exports=f},519394:(t,e,n)=>{"use strict";var r={onBeforeInput:n(426396),onBlur:n(743421),onCompositionStart:n(506155),onCopy:n(569328),onCut:n(273935),onDragOver:n(239499),onDragStart:n(980981),onFocus:n(562186),onInput:n(429971),onKeyDown:n(946397),onPaste:n(206089),onSelect:n(114507)};t.exports=r},442282:(t,e,n)=>{"use strict";var r=n(727418);function o(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(480052),s=n(124852),c=n(152286),u=n(845412),l=function(t){var e,n;function l(){for(var e,n=arguments.length,r=new Array(n),a=0;a{"use strict";var r=n(603259),o=n(442282),i=n(822146),a=n(182371),s=n(124852),c=n(255484),u=(a.List,function(t){var e,n;function a(){return t.apply(this,arguments)||this}return n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,a.prototype.render=function(){var t=this.props,e=t.block,n=t.contentState,a=t.customStyleFn,u=t.customStyleMap,l=t.decorator,p=t.direction,f=t.forceSelection,d=t.hasSelection,h=t.selection,g=t.tree,y=e.getKey(),m=e.getText(),v=g.size-1,b=this.props.children||g.map((function(t,c){var g=t.get("decoratorKey"),b=t.get("leaves"),w=b.size-1,_=b.map((function(t,n){var r=i.encode(y,c,n),l=t.get("start"),p=t.get("end");return s.createElement(o,{key:r,offsetKey:r,block:e,start:l,selection:d?h:null,forceSelection:f,text:m.slice(l,p),styleSet:e.getInlineStyleAt(l),customStyleMap:u,customStyleFn:a,isLast:g===v&&n===w})})).toArray();return g&&l?s.createElement(r,{block:e,children:_,contentState:n,decorator:l,decoratorKey:g,direction:p,leafSet:t,text:m,key:c}):_})).toArray();return s.createElement("div",{"data-offset-key":i.encode(y,0,0),className:c({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===p,"public/DraftStyleDefault/rtl":"RTL"===p})},b)},a}(s.Component));t.exports=u},528094:(t,e,n)=>{"use strict";var r=n(124852),o=n(255484),i=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=i.prototype;return a.shouldComponentUpdate=function(t){return this.props.text!==t.text||this.props.editorState.getSelection().getHasFocus()!==t.editorState.getSelection().getHasFocus()},a.render=function(){var t=this.props.editorState.getSelection().getHasFocus(),e=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":t});return r.createElement("div",{className:e},r.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},i}(r.Component);t.exports=i},480052:(t,e,n)=>{"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(124852),a=n(977249),s=n(152286),c=a.isBrowser("IE <= 11"),u=function(t){var e,n;function a(e){var n;return o(r(n=t.call(this,e)||this),"_forceFlag",void 0),o(r(n),"_node",void 0),n._forceFlag=!1,n}n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var u=a.prototype;return u.shouldComponentUpdate=function(t){var e=this._node,n=""===t.children;return e instanceof Element||s(!1),n?!function(t){return c?"\n"===t.textContent:"BR"===t.tagName}(e):e.textContent!==t.children},u.componentDidMount=function(){this._forceFlag=!this._forceFlag},u.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},u.render=function(){var t,e=this;return""===this.props.children?this._forceFlag?(t=function(t){return e._node=t},c?i.createElement("span",{key:"A","data-text":"true",ref:t},"\n"):i.createElement("br",{key:"A","data-text":"true",ref:t})):function(t){return c?i.createElement("span",{key:"B","data-text":"true",ref:t},"\n"):i.createElement("br",{key:"B","data-text":"true",ref:t})}((function(t){return e._node=t})):i.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(t){return e._node=t}},this.props.children)},a}(i.Component);t.exports=u},505880:t=>{"use strict";t.exports={initODS:function(){},handleExtensionCausedError:function(){}}},482222:(t,e,n)=>{"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(639006),i=n(182371),a=n(152286),s=(0,i.Map)(),c=0;function u(t,e){console.warn("WARNING: "+t+' will be deprecated soon!\nPlease use "'+e+'" instead.')}var l={getLastCreatedEntityKey:function(){return u("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),l.__getLastCreatedEntityKey()},create:function(t,e,n){return u("DraftEntity.create","contentState.createEntity"),l.__create(t,e,n)},add:function(t){return u("DraftEntity.add","contentState.addEntity"),l.__add(t)},get:function(t){return u("DraftEntity.get","contentState.getEntity"),l.__get(t)},mergeData:function(t,e){return u("DraftEntity.mergeData","contentState.mergeEntityData"),l.__mergeData(t,e)},replaceData:function(t,e){return u("DraftEntity.replaceData","contentState.replaceEntityData"),l.__replaceData(t,e)},__getLastCreatedEntityKey:function(){return""+c},__create:function(t,e,n){return l.__add(new o({type:t,mutability:e,data:n||{}}))},__add:function(t){var e=""+ ++c;return s=s.set(e,t),e},__get:function(t){var e=s.get(t);return e||a(!1),e},__mergeData:function(t,e){var n=l.__get(t),o=function(t){for(var e=1;e{"use strict";var r=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,n(182371).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));t.exports=r},705195:t=>{"use strict";t.exports={getRemovalRange:function(t,e,n,r,o){var i=n.split(" ");i=i.map((function(t,e){if("forward"===o){if(e>0)return" "+t}else if(e{"use strict";t.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},142307:(t,e,n)=>{"use strict";var r=n(704516),o=n(513483),i=n(368750),a=n(581446),s=n(388687),c=n(168642),u=n(182371),l=n(354542),p=n(18467),f=n(152286),d=n(157429),h=n(914017),g=n(254879),y=n(236043),m=u.OrderedSet,v={replaceText:function(t,e,n,o,i){var a=h(t,e),s=g(a,e),c=r.create({style:o||m(),entity:i||null});return p(s,s.getSelectionAfter(),n,c)},insertText:function(t,e,n,r,o){return e.isCollapsed()||f(!1),v.replaceText(t,e,n,r,o)},moveText:function(t,e,n){var r=s(t,e),o=v.removeRange(t,e,"backward");return v.replaceWithFragment(o,n,r)},replaceWithFragment:function(t,e,n){var r=h(t,e),o=g(r,e);return l(o,o.getSelectionAfter(),n)},removeRange:function(t,e,n){var r,o,i,s;e.getIsBackward()&&(e=e.merge({anchorKey:e.getFocusKey(),anchorOffset:e.getFocusOffset(),focusKey:e.getAnchorKey(),focusOffset:e.getAnchorOffset(),isBackward:!1})),r=e.getAnchorKey(),o=e.getFocusKey(),i=t.getBlockForKey(r),s=t.getBlockForKey(o);var u=e.getStartOffset(),l=e.getEndOffset(),p=i.getEntityAt(u),f=s.getEntityAt(l-1);if(r===o&&p&&p===f){var d=a(t.getEntityMap(),i,s,e,n);return g(t,d)}var y=e;c("draft_segmented_entities_behavior")&&(y=a(t.getEntityMap(),i,s,e,n));var m=h(t,y);return g(m,y)},splitBlock:function(t,e){var n=h(t,e),r=g(n,e);return y(r,r.getSelectionAfter())},applyInlineStyle:function(t,e,n){return o.add(t,e,n)},removeInlineStyle:function(t,e,n){return o.remove(t,e,n)},setBlockType:function(t,e,n){return d(t,e,(function(t){return t.merge({type:n,depth:0})}))},setBlockData:function(t,e,n){return d(t,e,(function(t){return t.merge({data:n})}))},mergeBlockData:function(t,e,n){return d(t,e,(function(t){return t.merge({data:t.getData().merge(n)})}))},applyEntity:function(t,e,n){var r=h(t,e);return i(r,e,n)}};t.exports=v},822146:t=>{"use strict";var e="-",n={encode:function(t,n,r){return t+e+n+e+r},decode:function(t){var n=t.split(e).reverse(),r=n[0],o=n[1];return{blockKey:n.slice(2).reverse().join(e),decoratorKey:parseInt(o,10),leafKey:parseInt(r,10)}}};t.exports=n},345712:(t,e,n)=>{"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(402641),i=n(767953),a=n(267841),s=n(25027),c=n(169769),u=n(168642),l=n(182371),p=n(855283),f=l.List,d=l.Repeat,h=u("draft_tree_data_support"),g=h?i:o,y={processHTML:function(t,e){return a(t,c,e)},processText:function(t,e,n){return t.reduce((function(t,o,i){o=p(o);var a=s(),c={key:a,type:n,text:o,characterList:f(d(e,o.length))};if(h&&0!==i){var u=i-1;c=function(t){for(var e=1;e{"use strict";var r="\\s|(?![_])"+n(590295).getPunctuation(),o=new RegExp("^(?:"+r+")*(?:['‘’]|(?!"+r+").)*(?:(?!"+r+").)"),i=new RegExp("(?:(?!"+r+").)(?:['‘’]|(?!"+r+").)*(?:"+r+")*$");function a(t,e){var n=e?i.exec(t):o.exec(t);return n?n[0]:t}var s={getBackward:function(t){return a(t,!0)},getForward:function(t){return a(t,!1)}};t.exports=s},886155:t=>{"use strict";var e={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}};t.exports=e},468957:(t,e,n)=>{"use strict";function r(t){for(var e=1;e0)||(delete l.children,n.push(l));var c=i.children;Array.isArray(c)||a(!1),o=o.concat([].concat(c.reverse()))}var u,l}(e),t.blocks=n,r({},t,{blocks:n})):t},fromRawStateToRawTreeState:function(t){var e=[],n=[];return t.blocks.forEach((function(t){var o=s(t),a=t.depth||0,c=r({},t,{children:[]});if(o){var u=n[0];if(null==u&&0===a)e.push(c);else if(null==u||u.depth=a;)n.shift(),u=n[0];a>0?u.children.push(c):e.push(c)}}else e.push(c)})),r({},t,{blocks:e})}};t.exports=c},212119:(t,e,n)=>{"use strict";n(153003),t.exports={isValidBlock:function(t,e){var n=t.getKey(),r=t.getParentKey();if(null!=r&&!e.get(r).getChildKeys().includes(n))return!1;if(!t.getChildKeys().map((function(t){return e.get(t)})).every((function(t){return t.getParentKey()===n})))return!1;var o=t.getPrevSiblingKey();if(null!=o&&e.get(o).getNextSiblingKey()!==n)return!1;var i=t.getNextSiblingKey();return(null==i||e.get(i).getPrevSiblingKey()===n)&&!(null!==i&&null!==o&&o===i||""!=t.text&&t.getChildKeys().size>0)},isConnectedTree:function(t){var e=t.toArray().filter((function(t){return null==t.getParentKey()&&null==t.getPrevSiblingKey()}));if(1!==e.length)return!1;for(var n=0,r=e.shift().getKey(),o=[];null!=r;){var i=t.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var c=a.map((function(e){return t.get(e)})).find((function(t){return null==t.getPrevSiblingKey()}));if(null==c)return!1;r=c.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===t.size},isValidTree:function(t){var e=this;return!!t.toArray().every((function(n){return e.isValidBlock(n,t)}))&&this.isConnectedTree(t)}}},533337:(t,e,n)=>{"use strict";var r,o=n(40398),i=n(182371),a=n(748899),s=i.OrderedMap,c={getDirectionMap:function(t,e){r?r.reset():r=new o;var n=t.getBlockMap(),c=n.valueSeq().map((function(t){return a(r).getDirection(t.getText())})),u=s(n.keySeq().zip(c));return null!=e&&i.is(e,u)?e:u}};t.exports=c},314289:(t,e,n)=>{"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(534365),i=n(66912),a=n(533337),s=n(325110),c=n(182371),u=c.OrderedSet,l=c.Record,p=c.Stack,f=l({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:p(),selection:null,treeMap:null,undoStack:p()}),d=function(){e.createEmpty=function(t){return e.createWithContent(i.createFromText(""),t)},e.createWithContent=function(t,n){var r=t.getBlockMap().first().getKey();return e.create({currentContent:t,undoStack:p(),redoStack:p(),decorator:n||null,selection:s.createEmpty(r)})},e.create=function(t){var n=t.currentContent,o=function(t){for(var e=1;e0?o.getInlineStyleAt(r-1):o.getLength()?o.getInlineStyleAt(0):m(t,n)}(e,n):function(t,e){var n=e.getStartKey(),r=e.getStartOffset(),o=t.getBlockForKey(n);return r0?o.getInlineStyleAt(r-1):m(t,n)}(e,n)},t.getBlockTree=function(t){return this.getImmutable().getIn(["treeMap",t])},t.isSelectionAtStartOfContent=function(){var t=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(t,0,0)},t.isSelectionAtEndOfContent=function(){var t=this.getCurrentContent().getBlockMap().last(),e=t.getLength();return this.getSelection().hasEdgeWithin(t.getKey(),e,e)},t.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(t,e){return h(t,e,!1)},e.forceSelection=function(t,e){return e.getHasFocus()||(e=e.set("hasFocus",!0)),h(t,e,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return e.acceptSelection(t,new s({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.getCurrentContent()===n)return t;var i=a.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var s=t.getSelection(),c=t.getCurrentContent(),u=t.getUndoStack(),l=n;s!==c.getSelectionAfter()||y(t,r)?(u=u.push(c),l=l.set("selectionBefore",s)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(l=l.set("selectionBefore",c.getSelectionBefore()));var f=t.getInlineStyleOverride(),d=["adjust-depth","change-block-type","split-block"];-1===d.indexOf(r)&&(f=null);var h={currentContent:l,directionMap:i,undoStack:u,redoStack:p(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:f};return e.set(t,h)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=a.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:t.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=a.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:t.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},t.getImmutable=function(){return this._immutable},e}();function h(t,e,n){return d.set(t,{selection:e,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function g(t,e){return t.getBlockMap().map((function(n){return o.generate(t,n,e)})).toOrderedMap()}function y(t,e){return e!==t.getLastChangeType()||"insert-characters"!==e&&"backspace-character"!==e&&"delete-character"!==e}function m(t,e){var n=t.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).skipUntil((function(t,e){return t.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):u()}t.exports=d},847387:(t,e,n)=>{"use strict";var r=n(977249),o=n(117797),i=r.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return i&&t.altKey},usesMacOSHeuristics:function(){return i},hasCommandModifier:function(t){return i?!!t.metaKey&&!t.altKey:a.isCtrlKeyCommand(t)},isSoftNewlineEvent:o};t.exports=a},870054:()=>{},941947:(t,e,n)=>{"use strict";var r=n(142307),o=n(314289),i=n(501665),a=n(748899),s={currentBlockContainsLink:function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(e.getAnchorKey()).getCharacterList().slice(e.getStartOffset(),e.getEndOffset()).some((function(t){var e=t.getEntity();return!!e&&"LINK"===r.__get(e).getType()}))},getCurrentBlockType:function(t){var e=t.getSelection();return t.getCurrentContent().getBlockForKey(e.getStartKey()).getType()},getDataObjectForLinkURL:function(t){return{url:t.toString()}},handleKeyCommand:function(t,e,n){switch(e){case"bold":return s.toggleInlineStyle(t,"BOLD");case"italic":return s.toggleInlineStyle(t,"ITALIC");case"underline":return s.toggleInlineStyle(t,"UNDERLINE");case"code":return s.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(t);default:return null}},insertSoftNewline:function(t){var e=r.insertText(t.getCurrentContent(),t.getSelection(),"\n",t.getCurrentInlineStyle(),null),n=o.push(t,e,"insert-characters");return o.forceSelection(n,e.getSelectionAfter())},onBackspace:function(t){var e=t.getSelection();if(!e.isCollapsed()||e.getAnchorOffset()||e.getFocusOffset())return null;var n=t.getCurrentContent(),r=e.getStartKey(),i=n.getBlockBefore(r);if(i&&"atomic"===i.getType()){var a=n.getBlockMap().delete(i.getKey()),c=n.merge({blockMap:a,selectionAfter:e});if(c!==n)return o.push(t,c,"remove-range")}var u=s.tryToRemoveBlockStyle(t);return u?o.push(t,u,"change-block-type"):null},onDelete:function(t){var e=t.getSelection();if(!e.isCollapsed())return null;var n=t.getCurrentContent(),i=e.getStartKey(),a=n.getBlockForKey(i).getLength();if(e.getStartOffset(){"use strict";var r=n(142307),o=n(314289),i=n(388687),a=n(748899),s=null,c={cut:function(t){var e=t.getCurrentContent(),n=t.getSelection(),c=null;if(n.isCollapsed()){var u=n.getAnchorKey(),l=e.getBlockForKey(u).getLength();if(l===n.getAnchorOffset()){var p=e.getKeyAfter(u);if(null==p)return t;c=n.set("focusKey",p).set("focusOffset",0)}else c=n.set("focusOffset",l)}else c=n;c=a(c),s=i(e,c);var f=r.removeRange(e,c,"forward");return f===e?t:o.push(t,f,"remove-range")},paste:function(t){if(!s)return t;var e=r.replaceWithFragment(t.getCurrentContent(),t.getSelection(),s);return o.push(t,e,"insert-fragment")}};t.exports=c},325110:(t,e,n)=>{"use strict";var r=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(t,e,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===t){var i=this.getStartOffset(),a=this.getEndOffset();return e<=i&&i<=n||e<=a&&a<=n}if(t!==r&&t!==o)return!1;var s=t===r?this.getAnchorOffset():this.getFocusOffset();return e<=s&&n>=s},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(t){return new r({anchorKey:t,anchorOffset:0,focusKey:t,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,n(182371).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));t.exports=r},501665:t=>{"use strict";t.exports=function(t,e,n,r){var o=e.getStartKey(),i=e.getEndKey(),a=t.getBlockMap(),s=a.toSeq().skipUntil((function(t,e){return e===o})).takeUntil((function(t,e){return e===i})).concat([[i,a.get(i)]]).map((function(t){var e=t.getDepth()+n;return e=Math.max(0,Math.min(e,r)),t.set("depth",e)}));return a=a.merge(s),t.merge({blockMap:a,selectionBefore:e,selectionAfter:e})}},902835:(t,e,n)=>{"use strict";var r=n(704516);t.exports=function(t,e,n,o){for(var i=t.getCharacterList();e{"use strict";var r=n(902835),o=n(182371);t.exports=function(t,e,n){var i=t.getBlockMap(),a=e.getStartKey(),s=e.getStartOffset(),c=e.getEndKey(),u=e.getEndOffset(),l=i.skipUntil((function(t,e){return e===a})).takeUntil((function(t,e){return e===c})).toOrderedMap().merge(o.OrderedMap([[c,i.get(c)]])).map((function(t,e){var o=e===a?s:0,i=e===c?u:t.getLength();return r(t,o,i,n)}));return t.merge({blockMap:i.merge(l),selectionBefore:e,selectionAfter:e})}},879981:(t,e,n)=>{"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(402641),i=n(767953),a=n(886155),s=n(656265),c=n(631487),u=n(152286),l=function(t,e){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:c(t),entityRanges:s(t,e),data:t.getData().toObject()}};t.exports=function(t){var e={entityMap:{},blocks:[]};return e=function(t,e){var n=e.entityMap,s=[],c={},p={},f=0;return t.getBlockMap().forEach((function(t){t.findEntityRanges((function(t){return null!==t.getEntity()}),(function(e){var r=t.getEntityAt(e),o=a.stringify(r);p[o]||(p[o]=r,n[o]="".concat(f),f++)})),function(t,e,n,a){if(t instanceof o)n.push(l(t,e));else{t instanceof i||u(!1);var s=t.getParentKey(),c=a[t.getKey()]=function(t){for(var e=1;e{"use strict";var r;function o(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(L).some((function(n){t.classList.contains(n)&&(e=L[n])})),e},A=function(t){return!(!(t instanceof HTMLAnchorElement&&t.href)||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol)},z=function(t){return!!(t instanceof HTMLImageElement&&t.attributes.getNamedItem("src")&&t.attributes.getNamedItem("src").value)},R=function(t){var e=b();if(!(t instanceof HTMLElement))return e;var n=t,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return e.withMutations((function(t){D.indexOf(r)>=0?t.add("BOLD"):C.indexOf(r)>=0&&t.remove("BOLD"),"italic"===o?t.add("ITALIC"):"normal"===o&&t.remove("ITALIC"),"underline"===i&&t.add("UNDERLINE"),"line-through"===i&&t.add("STRIKETHROUGH"),"none"===i&&(t.remove("UNDERLINE"),t.remove("STRIKETHROUGH"))}))},B=function(t){return"ul"===t||"ol"===t},F=function(){function t(t,e){i(this,"characterList",m()),i(this,"currentBlockType","unstyled"),i(this,"currentDepth",0),i(this,"currentEntity",null),i(this,"currentStyle",b()),i(this,"currentText",""),i(this,"wrapper",null),i(this,"blockConfigs",[]),i(this,"contentBlocks",[]),i(this,"entityMap",l),i(this,"blockTypeMap",void 0),i(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=t,this.disambiguate=e}var e=t.prototype;return e.clear=function(){this.characterList=m(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentStyle=b(),this.currentText="",this.entityMap=l,this.wrapper=null,this.contentBlocks=[]},e.addDOMNode=function(t){var e;return this.contentBlocks=[],this.currentDepth=0,(e=this.blockConfigs).push.apply(e,this._toBlockConfigs([t])),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},e.getContentBlocks=function(){return 0===this.contentBlocks.length&&(w?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},e.addStyle=function(t){this.currentStyle=this.currentStyle.union(t)},e.removeStyle=function(t){this.currentStyle=this.currentStyle.subtract(t)},e._makeBlockConfig=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.key||d(),n=o({key:e,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:m(),prevSibling:null,nextSibling:null,childConfigs:[]},t);return this.characterList=m(),this.currentBlockType="unstyled",this.currentText="",n},e._toBlockConfigs=function(t){for(var e=[],n=0;n(n=void 0!==(r=this.characterList.reverse().findEntry((function(t){return null!==t.getEntity()})))?Math.max(n,t-r[0]):n)?(this.currentText="",this.characterList=m()):(this.currentText=this.currentText.slice(e,n),this.characterList=this.characterList.slice(e,n))},e._addTextNode=function(t){var e=t.textContent;""===e.trim()&&"pre"!==this.wrapper&&(e=" "),"pre"!==this.wrapper&&(e=(e=e.replace(M,"")).replace(S," ")),this._appendText(e)},e._addBreakNode=function(t){t instanceof HTMLBRElement&&this._appendText("\n")},e._addImgNode=function(t){if(t instanceof HTMLImageElement){var e=t,n={};O.forEach((function(t){var r=e.getAttribute(t);r&&(n[t]=r)})),this.currentEntity=this.entityMap.__create("IMAGE","MUTABLE",n),g("draftjs_fix_paste_for_img")?"presentation"!==t.getAttribute("role")&&this._appendText("📷"):this._appendText("📷"),this.currentEntity=null}},e._addAnchorNode=function(t,e){if(t instanceof HTMLAnchorElement){var n=t,r={};j.forEach((function(t){var e=n.getAttribute(t);e&&(r[t]=e)})),r.url=new p(n.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",r||{}),e.push.apply(e,this._toBlockConfigs(Array.from(t.childNodes))),this.currentEntity=null}},e._toContentBlocks=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t.length-1,r=0;r<=n;r++){var i=t[r];i.parent=e,i.prevSibling=r>0?t[r-1].key:null,i.nextSibling=r1&&void 0!==arguments[1]?arguments[1]:h,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,r=e(t=t.trim().replace(_,"").replace(x," ").replace(k,"").replace(E,""));if(!r)return null;var o=N(n),i=function(t,e){return"li"===t?"ol"===e?"ordered-list-item":"unordered-list-item":null};return new F(o,i).addDOMNode(r).getContentBlocks()}},399607:(t,e,n)=>{"use strict";function r(t){for(var e=1;e0})),o=v&&!n?u.fromRawStateToRawTreeState(t).blocks:t.blocks;if(!v)return function(t,e){return _(t.map((function(t){var n=new i(S(t,e));return[n.getKey(),n]})))}(n?u.fromRawTreeStateToRawState(t).blocks:o,e);var s=function(t,e){return t.map(x).reduce((function(n,o,i){Array.isArray(o.children)||m(!1);var s=o.children.map(x),c=new a(r({},S(o,e),{prevSibling:0===i?null:t[i-1].key,nextSibling:i===t.length-1?null:t[i+1].key,children:b(s.map((function(t){return t.key})))}));n=n.set(c.getKey(),c);for(var u=k([],s,c);u.length>0;){var l=u.pop(),p=l.parentRef,f=p.getChildKeys(),d=f.indexOf(l.key),h=Array.isArray(l.children);if(!h){h||m(!1);break}var g=l.children.map(x),y=new a(r({},S(l,e),{parent:p.getKey(),children:b(g.map((function(t){return t.key}))),prevSibling:0===d?null:f.get(d-1),nextSibling:d===f.size-1?null:f.get(d+1)}));n=n.set(y.getKey(),y),u=k(u,g,y)}return n}),_())}(o,e);return s}(t,e),o=n.isEmpty()?new l:l.createEmpty(n.first().getKey());return new s({blockMap:n,entityMap:e,selectionBefore:o,selectionAfter:o})}},186019:(t,e,n)=>{"use strict";var r=n(704516),o=n(182371).List;t.exports=function(t,e){var n=t.map((function(t,n){var o=e[n];return r.create({style:t,entity:o})}));return o(n)}},267134:(t,e,n)=>{"use strict";var r=n(830113).substr;t.exports=function(t,e){var n=Array(t.length).fill(null);return e&&e.forEach((function(e){for(var o=r(t,0,e.offset).length,i=o+r(t,e.offset,e.length).length,a=o;a{"use strict";var r=n(830113),o=n(182371).OrderedSet,i=r.substr,a=o();t.exports=function(t,e){var n=Array(t.length).fill(a);return e&&e.forEach((function(e){for(var r=i(t,0,e.offset).length,o=r+i(t,e.offset,e.length).length;r{"use strict";var r=n(142307),o=n(314289),i=n(977249),a=n(42128),s=n(342177),c=n(940258),u=n(748899),l=n(758639),p=i.isBrowser("Firefox");function f(t,e,n,i,a){var s=r.replaceText(t.getCurrentContent(),t.getSelection(),e,n,i);return o.push(t,s,"insert-characters",a)}t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var r=t._latestEditorState,i=e.data;if(i)if(t.props.handleBeforeInput&&s(t.props.handleBeforeInput(i,r,e.timeStamp)))e.preventDefault();else{var d=r.getSelection(),h=d.getStartOffset(),g=d.getAnchorKey();if(!d.isCollapsed())return e.preventDefault(),void t.update(f(r,i,r.getCurrentInlineStyle(),a(r.getCurrentContent(),r.getSelection()),!0));var y,m=f(r,i,r.getCurrentInlineStyle(),a(r.getCurrentContent(),r.getSelection()),!1),v=!1;if(v||(v=c(t._latestCommittedEditorState)),!v){var b=n.g.getSelection();if(b.anchorNode&&b.anchorNode.nodeType===Node.TEXT_NODE){var w=b.anchorNode.parentNode;v="SPAN"===w.nodeName&&w.firstChild.nodeType===Node.TEXT_NODE&&-1!==w.firstChild.nodeValue.indexOf("\t")}}if(!v){var _=r.getBlockTree(g),S=m.getBlockTree(g);v=_.size!==S.size||_.zip(S).some((function(t){var e=t[0],n=t[1],r=e.get("start"),o=r+(r>=h?i.length:0),a=e.get("end"),s=a+(a>=h?i.length:0);return e.get("decoratorKey")!==n.get("decoratorKey")||e.get("leaves").size!==n.get("leaves").size||o!==n.get("start")||s!==n.get("end")}))}if(v||(y=i,v=p&&("'"==y||"/"==y)),v||(v=u(m.getDirectionMap()).get(g)!==u(r.getDirectionMap()).get(g)),v)return e.preventDefault(),m=o.set(m,{forceSelection:!0}),void t.update(m);m=o.set(m,{nativelyRenderedContent:m.getCurrentContent()}),t._pendingStateFromBeforeInput=m,l((function(){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0)}))}}},743421:(t,e,n)=>{"use strict";var r=n(314289),o=n(522049),i=n(819362);t.exports=function(t,e){if(i()===document.body){var a=n.g.getSelection(),s=t.editor;1===a.rangeCount&&o(s,a.anchorNode)&&o(s,a.focusNode)&&a.removeAllRanges()}var c=t._latestEditorState,u=c.getSelection();if(u.getHasFocus()){var l=u.set("hasFocus",!1);t.props.onBlur&&t.props.onBlur(e),t.update(r.acceptSelection(c,l))}}},506155:(t,e,n)=>{"use strict";var r=n(314289);t.exports=function(t,e){t.setMode("composite"),t.update(r.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(e)}},569328:(t,e,n)=>{"use strict";var r=n(294882);t.exports=function(t,e){t._latestEditorState.getSelection().isCollapsed()?e.preventDefault():t.setClipboard(r(t._latestEditorState))}},273935:(t,e,n)=>{"use strict";var r=n(142307),o=n(314289),i=n(326499),a=n(294882),s=n(422552);t.exports=function(t,e){var n,c=t._latestEditorState,u=c.getSelection(),l=e.target;if(u.isCollapsed())e.preventDefault();else{l instanceof Node&&(n=s(i.getScrollParent(l)));var p=a(c);t.setClipboard(p),t.setMode("cut"),setTimeout((function(){t.restoreEditorDOM(n),t.exitCurrentMode(),t.update(function(t){var e=r.removeRange(t.getCurrentContent(),t.getSelection(),"forward");return o.push(t,e,"remove-range")}(c))}),0)}}},239499:t=>{"use strict";t.exports=function(t,e){t.setMode("drag"),e.preventDefault()}},980981:t=>{"use strict";t.exports=function(t){t._internalDrag=!0,t.setMode("drag")}},562186:(t,e,n)=>{"use strict";var r=n(314289),o=n(977249);t.exports=function(t,e){var n=t._latestEditorState,i=n.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);t.props.onFocus&&t.props.onFocus(e),o.isBrowser("Chrome < 60.0.3081.0")?t.update(r.forceSelection(n,a)):t.update(r.acceptSelection(n,a))}}},429971:(t,e,n)=>{"use strict";var r=n(142307),o=n(822146),i=n(314289),a=n(977249),s=n(169270),c=n(168642),u=n(662800),l=n(748899),p=a.isEngine("Gecko");t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var a=n.g.getSelection(),f=a.anchorNode,d=a.isCollapsed,h=f.nodeType!==Node.TEXT_NODE,g=f.nodeType!==Node.TEXT_NODE&&f.nodeType!==Node.ELEMENT_NODE;if(c("draft_killswitch_allow_nontextnodes")){if(h)return}else if(g)return;if(f.nodeType===Node.TEXT_NODE&&(null!==f.previousSibling||null!==f.nextSibling)){var y=f.parentNode;f.nodeValue=y.textContent;for(var m=y.firstChild;null!==m;m=m.nextSibling)m!==f&&y.removeChild(m)}var v=f.textContent,b=t._latestEditorState,w=l(s(f)),_=o.decode(w),S=_.blockKey,M=_.decoratorKey,x=_.leafKey,k=b.getBlockTree(S).getIn([M,"leaves",x]),E=k.start,D=k.end,C=b.getCurrentContent(),j=C.getBlockForKey(S),O=j.getText().slice(E,D);if(v.endsWith("\n\n")&&(v=v.slice(0,-1)),v!==O){var L,I,N,T,A=b.getSelection(),z=A.merge({anchorOffset:E,focusOffset:D,isBackward:!1}),R=j.getEntityAt(E),B=R&&C.getEntity(R),F="MUTABLE"===(B&&B.getMutability()),P=F?"spellcheck-change":"apply-entity",U=r.replaceText(C,z,v,j.getInlineStyleAt(E),F?j.getEntityAt(E):null);if(p)L=a.anchorOffset,I=a.focusOffset,T=(N=E+Math.min(L,I))+Math.abs(L-I),L=N,I=T;else{var K=v.length-O.length;N=A.getStartOffset(),T=A.getEndOffset(),L=d?T+K:N,I=T+K}var H=U.merge({selectionBefore:C.getSelectionAfter(),selectionAfter:A.merge({anchorOffset:L,focusOffset:I})});t.update(i.push(b,H,P))}else{var Y=e.nativeEvent.inputType;if(Y){var q=function(t,e){return"deleteContentBackward"===t?u(e):e}(Y,b);if(q!==b)return t.restoreEditorDOM(),void t.update(q)}}}},946397:(t,e,n)=>{"use strict";var r=n(142307),o=n(314289),i=n(847387),a=n(272938),s=n(683751),c=n(977249),u=n(342177),l=n(649779),p=n(751050),f=n(313767),d=n(177978),h=n(867217),g=n(808425),y=n(662800),m=n(113998),v=n(753318),b=n(487051),w=i.isOptionKeyCommand,_=c.isBrowser("Chrome");t.exports=function(t,e){var n=e.which,i=t._latestEditorState;function c(n){var r=t.props[n];return!!r&&(r(e),!0)}switch(n){case a.RETURN:if(e.preventDefault(),t.props.handleReturn&&u(t.props.handleReturn(e,i)))return;break;case a.ESC:if(e.preventDefault(),c("onEscape"))return;break;case a.TAB:if(c("onTab"))return;break;case a.UP:if(c("onUpArrow"))return;break;case a.RIGHT:if(c("onRightArrow"))return;break;case a.DOWN:if(c("onDownArrow"))return;break;case a.LEFT:if(c("onLeftArrow"))return;break;case a.SPACE:_&&w(e)&&e.preventDefault()}var S=t.props.keyBindingFn(e);if(S)if("undo"!==S){if(e.preventDefault(),!t.props.handleKeyCommand||!u(t.props.handleKeyCommand(S,i,e.timeStamp))){var M=function(t,e){switch(t){case"redo":return o.redo(e);case"delete":return m(e);case"delete-word":return f(e);case"backspace":return y(e);case"backspace-word":return p(e);case"backspace-to-start-of-line":return l(e);case"split-block":return d(e);case"transpose-characters":return v(e);case"move-selection-to-start-of-block":return g(e);case"move-selection-to-end-of-block":return h(e);case"secondary-cut":return s.cut(e);case"secondary-paste":return s.paste(e);default:return e}}(S,i);M!==i&&t.update(M)}}else b(e,i,t.update);else if(n===a.SPACE&&_&&w(e)){var x=r.replaceText(i.getCurrentContent(),i.getSelection()," ");t.update(o.push(i,x,"insert-characters"))}}},206089:(t,e,n)=>{"use strict";var r=n(610329),o=n(704516),i=n(446123),a=n(142307),s=n(345712),c=n(314289),u=n(941947),l=n(42128),p=n(21738),f=n(342177),d=n(44300);function h(t,e,n){var r=a.replaceWithFragment(t.getCurrentContent(),t.getSelection(),e);return c.push(t,r.set("entityMap",n),"insert-fragment")}t.exports=function(t,e){e.preventDefault();var n=new i(e.clipboardData);if(!n.isRichText()){var g=n.getFiles(),y=n.getText();if(g.length>0){if(t.props.handlePastedFiles&&f(t.props.handlePastedFiles(g)))return;return void p(g,(function(e){if(e=e||y){var n=t._latestEditorState,i=d(e),p=o.create({style:n.getCurrentInlineStyle(),entity:l(n.getCurrentContent(),n.getSelection())}),f=u.getCurrentBlockType(n),h=s.processText(i,p,f),g=r.createFromArray(h),m=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),g);t.update(c.push(n,m,"insert-fragment"))}}))}}var m=[],v=n.getText(),b=n.getHTML(),w=t._latestEditorState;if(!t.props.handlePastedText||!f(t.props.handlePastedText(v,b,w))){if(v&&(m=d(v)),!t.props.stripPastedStyles){var _=t.getClipboard();if(n.isRichText()&&_){if(-1!==b.indexOf(t.getEditorKey())||1===m.length&&1===_.size&&_.first().getText()===v)return void t.update(h(t._latestEditorState,_))}else if(_&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(t,e){return t.length===e.size&&e.valueSeq().every((function(e,n){return e.getText()===t[n]}))}(m,_))return void t.update(h(t._latestEditorState,_));if(b){var S=s.processHTML(b,t.props.blockRenderMap);if(S){var M=S.contentBlocks,x=S.entityMap;if(M){var k=r.createFromArray(M);return void t.update(h(t._latestEditorState,k,x))}}}t.setClipboard(null)}if(m.length){var E=o.create({style:w.getCurrentInlineStyle(),entity:l(w.getCurrentContent(),w.getSelection())}),D=u.getCurrentBlockType(w),C=s.processText(m,E,D),j=r.createFromArray(C);t.update(h(t._latestEditorState,j))}}}},114507:(t,e,n)=>{"use strict";var r=n(297432),o=n(314289),i=n(384907),a=n(501244);t.exports=function(t){if(t._blockSelectEvents||t._latestEditorState!==t.props.editorState){if(t._blockSelectEvents){var e=t.props.editorState.getSelection();r.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(e.toJS())})}}else{var n=t.props.editorState,s=a(n,i(t)),c=s.selectionState;c!==n.getSelection()&&(n=s.needsRecovery?o.forceSelection(n,c):o.acceptSelection(n,c),t.update(n))}}},656265:(t,e,n)=>{"use strict";var r=n(886155),o=n(830113).strlen;t.exports=function(t,e){var n=[];return t.findEntityRanges((function(t){return!!t.getEntity()}),(function(i,a){var s=t.getText(),c=t.getEntityAt(i);n.push({offset:o(s.slice(0,i)),length:o(s.slice(i,a)),key:Number(e[r.stringify(c)])})})),n}},631487:(t,e,n)=>{"use strict";var r=n(830113),o=n(629407),i=function(t,e){return t===e},a=function(t){return!!t},s=[];t.exports=function(t){var e=t.getCharacterList().map((function(t){return t.getStyle()})).toList(),n=e.flatten().toSet().map((function(n){return function(t,e,n){var s=[],c=e.map((function(t){return t.has(n)})).toList();return o(c,i,a,(function(e,o){var i=t.getText();s.push({offset:r.strlen(i.slice(0,e)),length:r.strlen(i.slice(e,o)),style:n})})),s}(t,e,n)}));return Array.prototype.concat.apply(s,n.toJS())}},388182:(t,e,n)=>{"use strict";var r=n(830113),o=n(706092),i=n(152286);function a(t,e){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a=0;d--)if(!(null!=f&&d>0&&r.isSurrogatePair(f,d-1))){if(t.setStart(l,d),!a(o(t),n))break;c=l,u=d}if(-1===d||0===l.childNodes.length)break;p=s(l=l.childNodes[d])}return t.setStart(c,u),t}},169270:(t,e,n)=>{"use strict";var r=n(693578);t.exports=function(t){for(var e=t;e&&e!==document.documentElement;){var n=r(e);if(null!=n)return n;e=e.parentNode}return null}},629407:t=>{"use strict";t.exports=function(t,e,n,r){if(t.size){var o=0;t.reduce((function(t,i,a){return e(t,i)||(n(t)&&r(o,a),o=a),i})),n(t.last())&&r(o,t.count())}}},25027:t=>{"use strict";var e={},n=Math.pow(2,24);t.exports=function(){for(var t;void 0===t||e.hasOwnProperty(t)||!isNaN(+t);)t=Math.floor(Math.random()*n).toString(32);return e[t]=!0,t}},581446:(t,e,n)=>{"use strict";var r=n(705195),o=n(264994),i=n(152286);function a(t,e,n,a,s,c,u){var l=n.getStartOffset(),p=n.getEndOffset(),f=t.__get(s).getMutability(),d=u?l:p;if("MUTABLE"===f)return n;var h=o(e,s).filter((function(t){return d<=t.end&&d>=t.start}));1!=h.length&&i(!1);var g=h[0];if("IMMUTABLE"===f)return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1});c||(u?p=g.end:l=g.start);var y=r.getRemovalRange(l,p,e.getText().slice(g.start,g.end),g.start,a);return n.merge({anchorOffset:y.start,focusOffset:y.end,isBackward:!1})}t.exports=function(t,e,n,r,o){var i=r.getStartOffset(),s=r.getEndOffset(),c=e.getEntityAt(i),u=n.getEntityAt(s-1);if(!c&&!u)return r;var l=r;if(c&&c===u)l=a(t,e,l,o,c,!0,!0);else if(c&&u){var p=a(t,e,l,o,c,!1,!0),f=a(t,n,l,o,u,!1,!1);l=l.merge({anchorOffset:p.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(c){var d=a(t,e,l,o,c,!1,!0);l=l.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(u){var h=a(t,n,l,o,u,!1,!1);l=l.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return l}},384907:(t,e,n)=>{"use strict";var r=n(180307),o=n(152286);t.exports=function(t){var e=r.findDOMNode(t.editorContainer);return e||o(!1),e.firstChild instanceof HTMLElement||o(!1),e.firstChild}},388687:(t,e,n)=>{"use strict";var r=n(798555),o=n(914017);t.exports=function(t,e){var n=e.getStartKey(),i=e.getStartOffset(),a=e.getEndKey(),s=e.getEndOffset(),c=o(t,e).getBlockMap(),u=c.keySeq(),l=u.indexOf(n),p=u.indexOf(a)+1;return r(c.slice(l,p).map((function(t,e){var r=t.getText(),o=t.getCharacterList();return n===a?t.merge({text:r.slice(i,s),characterList:o.slice(i,s)}):e===n?t.merge({text:r.slice(i),characterList:o.slice(i)}):e===a?t.merge({text:r.slice(0,s),characterList:o.slice(0,s)}):t})))}},441714:(t,e,n)=>{"use strict";var r=n(847387),o=n(272938),i=n(977249),a=i.isPlatform("Mac OS X"),s=a&&i.isBrowser("Firefox < 29"),c=r.hasCommandModifier,u=r.isCtrlKeyCommand;function l(t){return a&&t.altKey||u(t)}t.exports=function(t){switch(t.keyCode){case 66:return c(t)?"bold":null;case 68:return u(t)?"delete":null;case 72:return u(t)?"backspace":null;case 73:return c(t)?"italic":null;case 74:return c(t)?"code":null;case 75:return a&&u(t)?"secondary-cut":null;case 77:case 79:return u(t)?"split-block":null;case 84:return a&&u(t)?"transpose-characters":null;case 85:return c(t)?"underline":null;case 87:return a&&u(t)?"backspace-word":null;case 89:return u(t)?a?"secondary-paste":"redo":null;case 90:return function(t){return c(t)?t.shiftKey?"redo":"undo":null}(t)||null;case o.RETURN:return"split-block";case o.DELETE:return function(t){return!a&&t.shiftKey?null:l(t)?"delete-word":"delete"}(t);case o.BACKSPACE:return function(t){return c(t)&&a?"backspace-to-start-of-line":l(t)?"backspace-word":"backspace"}(t);case o.LEFT:return s&&c(t)?"move-selection-to-start-of-block":null;case o.RIGHT:return s&&c(t)?"move-selection-to-end-of-block":null;default:return null}}},501244:(t,e,n)=>{"use strict";var r=n(8101);t.exports=function(t,e){var o=n.g.getSelection();return 0===o.rangeCount?{selectionState:t.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(t,e,o.anchorNode,o.anchorOffset,o.focusNode,o.focusOffset)}},8101:(t,e,n)=>{"use strict";var r=n(169270),o=n(693578),i=n(794486),a=n(152286),s=n(748899);function c(t,e,n){var i=e,c=r(i);if(null!=c||t&&(t===i||t.firstChild===i)||a(!1),t===i&&((i=i.firstChild)instanceof Element&&"true"===i.getAttribute("data-contents")||a(!1),n>0&&(n=i.childNodes.length)),0===n){var l=null;if(null!=c)l=c;else{var p=function(t){for(;t.firstChild&&(t.firstChild instanceof Element&&"true"===t.firstChild.getAttribute("data-blocks")||o(t.firstChild));)t=t.firstChild;return t}(i);l=s(o(p))}return{key:l,offset:0}}var f=i.childNodes[n-1],d=null,h=null;if(o(f)){var g=function(t){for(;t.lastChild&&(t.lastChild instanceof Element&&"true"===t.lastChild.getAttribute("data-blocks")||o(t.lastChild));)t=t.lastChild;return t}(f);d=s(o(g)),h=u(g)}else d=s(c),h=u(f);return{key:d,offset:h}}function u(t){var e=t.textContent;return"\n"===e?0:e.length}t.exports=function(t,e,n,o,a,u){var l=n.nodeType===Node.TEXT_NODE,p=a.nodeType===Node.TEXT_NODE;if(l&&p)return{selectionState:i(t,s(r(n)),o,s(r(a)),u),needsRecovery:!1};var f=null,d=null,h=!0;return l?(f={key:s(r(n)),offset:o},d=c(e,a,u)):p?(d={key:s(r(a)),offset:u},f=c(e,n,o)):(f=c(e,n,o),d=c(e,a,u),n===a&&o===u&&(h=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:i(t,f.key,f.offset,d.key,d.offset),needsRecovery:h}}},42128:t=>{"use strict";function e(t,e){return e&&"MUTABLE"===t.__get(e).getMutability()?e:null}t.exports=function(t,n){var r;if(n.isCollapsed()){var o=n.getAnchorKey(),i=n.getAnchorOffset();return i>0?(r=t.getBlockForKey(o).getEntityAt(i-1))!==t.getBlockForKey(o).getEntityAt(i)?null:e(t.getEntityMap(),r):null}var a=n.getStartKey(),s=n.getStartOffset(),c=t.getBlockForKey(a);return r=s===c.getLength()?null:c.getEntityAt(s),e(t.getEntityMap(),r)}},294882:(t,e,n)=>{"use strict";var r=n(388687);t.exports=function(t){var e=t.getSelection();return e.isCollapsed()?null:r(t.getCurrentContent(),e)}},39506:(t,e,n)=>{"use strict";var r=n(767953);t.exports=function(t,e){if(!(t instanceof r))return null;var n=t.getNextSiblingKey();if(n)return n;var o=t.getParentKey();if(!o)return null;for(var i=e.get(o);i&&!i.getNextSiblingKey();){var a=i.getParentKey();i=a?e.get(a):null}return i?i.getNextSiblingKey():null}},898056:(t,e,n)=>{"use strict";var r=n(706092);t.exports=function(t){var e=r(t),n=0,o=0,i=0,a=0;if(e.length){if(e.length>1&&0===e[0].width){var s=e[1];n=s.top,o=s.right,i=s.bottom,a=s.left}else{var c=e[0];n=c.top,o=c.right,i=c.bottom,a=c.left}for(var u=1;u{"use strict";var r=n(977249),o=n(152286),i=r.isBrowser("Chrome")?function(t){for(var e=t.cloneRange(),n=[],r=t.endContainer;null!=r;r=r.parentNode){var i=r===t.commonAncestorContainer;i?e.setStart(t.startContainer,t.startOffset):e.setStart(e.endContainer,0);var a,s=Array.from(e.getClientRects());if(n.push(s),i)return n.reverse(),(a=[]).concat.apply(a,n);e.setEndBefore(r)}o(!1)}:function(t){return Array.from(t.getClientRects())};t.exports=i},264994:(t,e,n)=>{"use strict";var r=n(152286);t.exports=function(t,e){var n=[];return t.findEntityRanges((function(t){return t.getEntity()===e}),(function(t,e){n.push({start:t,end:e})})),n.length||r(!1),n}},169769:(t,e,n)=>{"use strict";var r=n(977249),o=n(152286),i=r.isBrowser("IE <= 9");t.exports=function(t){var e,n=null;return!i&&document.implementation&&document.implementation.createHTMLDocument&&((e=document.implementation.createHTMLDocument("foo")).documentElement||o(!1),e.documentElement.innerHTML=t,n=e.getElementsByTagName("body")[0]),n}},693578:t=>{"use strict";t.exports=function t(e){if(e instanceof Element){var n=e.getAttribute("data-offset-key");if(n)return n;for(var r=0;r{"use strict";var r=n(152286),o=/\.textClipping$/,i={"text/plain":!0,"text/html":!0,"text/rtf":!0};t.exports=function(t,e){var a=0,s=[];t.forEach((function(c){!function(t,e){if(!n.g.FileReader||t.type&&!(t.type in i))e("");else{if(""===t.type){var a="";return o.test(t.name)&&(a=t.name.replace(o,"")),void e(a)}var s=new FileReader;s.onload=function(){var t=s.result;"string"!=typeof t&&r(!1),e(t)},s.onerror=function(){e("")},s.readAsText(t)}}(c,(function(n){a++,n&&s.push(n.slice(0,5e3)),a==t.length&&e(s.join("\r"))}))}))}},794486:(t,e,n)=>{"use strict";var r=n(822146),o=n(748899);t.exports=function(t,e,n,i,a){var s=o(t.getSelection()),c=r.decode(e),u=c.blockKey,l=t.getBlockTree(u).getIn([c.decoratorKey,"leaves",c.leafKey]),p=r.decode(i),f=p.blockKey,d=t.getBlockTree(f).getIn([p.decoratorKey,"leaves",p.leafKey]),h=l.get("start"),g=d.get("start"),y=l?h+n:null,m=d?g+a:null;if(s.getAnchorKey()===u&&s.getAnchorOffset()===y&&s.getFocusKey()===f&&s.getFocusOffset()===m)return s;var v=!1;if(u===f){var b=l.get("end"),w=d.get("end");v=g===h&&w===b?a{"use strict";var r=n(898056);t.exports=function(t){var e=t.getSelection();if(!e.rangeCount)return null;var n=e.getRangeAt(0),o=r(n),i=o.top,a=o.right,s=o.bottom,c=o.left;return 0===i&&0===a&&0===s&&0===c?null:o}},168642:t=>{"use strict";t.exports=function(t){return!("undefined"==typeof window||!window.__DRAFT_GKX||!window.__DRAFT_GKX[t])}},354542:(t,e,n)=>{"use strict";var r=n(610329),o=n(767953),i=n(182371),a=n(340779),s=n(152286),c=n(798555),u=i.List;t.exports=function(t,e,n){e.isCollapsed()||s(!1);var i=t.getBlockMap(),l=c(n),p=e.getStartKey(),f=e.getStartOffset(),d=i.get(p);return d instanceof o&&(d.getChildKeys().isEmpty()||s(!1)),1===l.size?function(t,e,n,r,o,i){var s=n.get(o),c=s.getText(),u=s.getCharacterList(),l=o,p=i+r.getText().length,f=s.merge({text:c.slice(0,i)+r.getText()+c.slice(i),characterList:a(u,r.getCharacterList(),i),data:r.getData()});return t.merge({blockMap:n.set(o,f),selectionBefore:e,selectionAfter:e.merge({anchorKey:l,anchorOffset:p,focusKey:l,focusOffset:p,isBackward:!1})})}(t,e,i,l.first(),p,f):function(t,e,n,i,a,s){var c=n.first()instanceof o,l=[],p=i.size,f=n.get(a),d=i.first(),h=i.last(),g=h.getLength(),y=h.getKey(),m=c&&(!f.getChildKeys().isEmpty()||!d.getChildKeys().isEmpty());n.forEach((function(t,e){e===a?(m?l.push(t):l.push(function(t,e,n){var r=t.getText(),o=t.getCharacterList(),i=r.slice(0,e),a=o.slice(0,e),s=n.first();return t.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?t.getType():s.getType(),data:s.getData()})}(t,s,i)),i.slice(m?0:1,p-1).forEach((function(t){return l.push(t)})),l.push(function(t,e,n){var r=t.getText(),o=t.getCharacterList(),i=r.length,a=r.slice(e,i),s=o.slice(e,i),c=n.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(t,s,i))):l.push(t)}));var v=r.createFromArray(l);return c&&(v=function(t,e,n,r){return t.withMutations((function(e){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),c=function(t,e){var n=t.getKey(),r=t,o=[];for(e.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=e.get(i)}return o}(r,t),l=c[c.length-1];if(e.get(i)?(e.setIn([o,"nextSibling"],i),e.setIn([i,"prevSibling"],o)):(e.setIn([o,"nextSibling"],r.getNextSiblingKey()),e.setIn([r.getNextSiblingKey(),"prevSibling"],o)),e.setIn([l,"nextSibling"],a),a&&e.setIn([a,"prevSibling"],l),c.forEach((function(t){return e.setIn([t,"parent"],s)})),s){var p=t.get(s).getChildKeys(),f=p.indexOf(o)+1,d=p.toArray();d.splice.apply(d,[f,0].concat(c)),e.setIn([s,"children"],u(d))}}))}(v,0,f,d)),t.merge({blockMap:v,selectionBefore:e,selectionAfter:e.merge({anchorKey:y,anchorOffset:g,focusKey:y,focusOffset:g,isBackward:!1})})}(t,e,i,l,p,f)}},340779:t=>{"use strict";t.exports=function(t,e,n){if(n===t.count())e.forEach((function(e){t=t.push(e)}));else if(0===n)e.reverse().forEach((function(e){t=t.unshift(e)}));else{var r=t.slice(0,n),o=t.slice(n);t=r.concat(e,o).toList()}return t}},18467:(t,e,n)=>{"use strict";var r=n(182371),o=n(340779),i=n(152286),a=r.Repeat;t.exports=function(t,e,n,r){e.isCollapsed()||i(!1);var s=null;if(null!=n&&(s=n.length),null==s||0===s)return t;var c=t.getBlockMap(),u=e.getStartKey(),l=e.getStartOffset(),p=c.get(u),f=p.getText(),d=p.merge({text:f.slice(0,l)+n+f.slice(l,p.getLength()),characterList:o(p.getCharacterList(),a(r,s).toList(),l)}),h=l+s;return t.merge({blockMap:c.set(u,d),selectionAfter:e.merge({anchorOffset:h,focusOffset:h})})}},342177:t=>{"use strict";t.exports=function(t){return"handled"===t||!0===t}},940258:t=>{"use strict";t.exports=function(t){var e=t.getSelection(),n=e.getAnchorKey(),r=t.getBlockTree(n),o=e.getStartOffset(),i=!1;return r.some((function(t){return o===t.get("start")?(i=!0,!0):o{"use strict";var r=n(272938);t.exports=function(t){return t.which===r.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))}},649779:(t,e,n)=>{"use strict";var r=n(314289),o=n(388182),i=n(8101),a=n(153268),s=n(14730);t.exports=function(t){var e=s(t,(function(t){var e=t.getSelection();if(e.isCollapsed()&&0===e.getAnchorOffset())return a(t,1);var r=n.g.getSelection().getRangeAt(0);return r=o(r),i(t,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return e===t.getCurrentContent()?t:r.push(t,e,"remove-range")}},751050:(t,e,n)=>{"use strict";var r=n(773932),o=n(314289),i=n(153268),a=n(14730);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),n=e.getStartOffset();if(0===n)return i(t,1);var o=e.getStartKey(),a=t.getCurrentContent().getBlockForKey(o).getText().slice(0,n),s=r.getBackward(a);return i(t,s.length||1)}),"backward");return e===t.getCurrentContent()?t:o.push(t,e,"remove-range")}},313767:(t,e,n)=>{"use strict";var r=n(773932),o=n(314289),i=n(619417),a=n(14730);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),n=e.getStartOffset(),o=e.getStartKey(),a=t.getCurrentContent().getBlockForKey(o).getText().slice(n),s=r.getForward(a);return i(t,s.length||1)}),"forward");return e===t.getCurrentContent()?t:o.push(t,e,"remove-range")}},177978:(t,e,n)=>{"use strict";var r=n(142307),o=n(314289);t.exports=function(t){var e=r.splitBlock(t.getCurrentContent(),t.getSelection());return o.push(t,e,"split-block")}},867217:(t,e,n)=>{"use strict";var r=n(314289);t.exports=function(t){var e=t.getSelection(),n=e.getEndKey(),o=t.getCurrentContent().getBlockForKey(n).getLength();return r.set(t,{selection:e.merge({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}),forceSelection:!0})}},808425:(t,e,n)=>{"use strict";var r=n(314289);t.exports=function(t){var e=t.getSelection(),n=e.getStartKey();return r.set(t,{selection:e.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},662800:(t,e,n)=>{"use strict";var r=n(314289),o=n(830113),i=n(153268),a=n(14730);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=e.getAnchorKey(),a=e.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a-1];return i(t,s?o.getUTF16Length(s,0):1)}),"backward");if(e===t.getCurrentContent())return t;var n=t.getSelection();return r.push(t,e.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},113998:(t,e,n)=>{"use strict";var r=n(314289),o=n(830113),i=n(619417),a=n(14730);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=e.getAnchorKey(),a=e.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return i(t,s?o.getUTF16Length(s,0):1)}),"forward");if(e===t.getCurrentContent())return t;var n=t.getSelection();return r.push(t,e.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},753318:(t,e,n)=>{"use strict";var r=n(142307),o=n(314289),i=n(388687);t.exports=function(t){var e=t.getSelection();if(!e.isCollapsed())return t;var n=e.getAnchorOffset();if(0===n)return t;var a,s,c=e.getAnchorKey(),u=t.getCurrentContent(),l=u.getBlockForKey(c).getLength();if(l<=1)return t;n===l?(a=e.set("anchorOffset",n-1),s=e):s=(a=e.set("focusOffset",n+1)).set("anchorOffset",n+1);var p=i(u,a),f=r.removeRange(u,a,"backward"),d=f.getSelectionAfter(),h=d.getAnchorOffset()-1,g=d.merge({anchorOffset:h,focusOffset:h}),y=r.replaceWithFragment(f,g,p),m=o.push(t,y,"insert-fragment");return o.acceptSelection(m,s)}},487051:(t,e,n)=>{"use strict";var r=n(314289);t.exports=function(t,e,n){var o=r.undo(e);if("spellcheck-change"!==e.getLastChangeType())t.preventDefault(),e.getNativelyRenderedContent()?(n(r.set(e,{nativelyRenderedContent:null})),setTimeout((function(){n(o)}),0)):n(o);else{var i=o.getCurrentContent();n(r.set(o,{nativelyRenderedContent:i}))}}},157429:(t,e,n)=>{"use strict";var r=n(182371).Map;t.exports=function(t,e,n){var o=e.getStartKey(),i=e.getEndKey(),a=t.getBlockMap(),s=a.toSeq().skipUntil((function(t,e){return e===o})).takeUntil((function(t,e){return e===i})).concat(r([[i,a.get(i)]])).map(n);return t.merge({blockMap:a.merge(s),selectionBefore:e,selectionAfter:e})}},861173:(t,e,n)=>{"use strict";var r=n(767953),o=n(39506),i=n(182371),a=n(152286),s=i.OrderedMap,c=i.List,u=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}},l=function(t,e,n,r,o){if(!o)return t;var i="after"===r,a=e.getKey(),s=n.getKey(),l=e.getParentKey(),p=e.getNextSiblingKey(),f=e.getPrevSiblingKey(),d=n.getParentKey(),h=i?n.getNextSiblingKey():s,g=i?s:n.getPrevSiblingKey();return t.withMutations((function(t){u(l,t,(function(t){var e=t.getChildKeys();return t.merge({children:e.delete(e.indexOf(a))})})),u(f,t,(function(t){return t.merge({nextSibling:p})})),u(p,t,(function(t){return t.merge({prevSibling:f})})),u(h,t,(function(t){return t.merge({prevSibling:a})})),u(g,t,(function(t){return t.merge({nextSibling:a})})),u(d,t,(function(t){var e=t.getChildKeys(),n=e.indexOf(s),r=i?n+1:0!==n?n-1:0,o=e.toArray();return o.splice(r,0,a),t.merge({children:c(o)})})),u(a,t,(function(t){return t.merge({nextSibling:h,prevSibling:g,parent:d})}))}))};t.exports=function(t,e,n,i){"replace"===i&&a(!1);var c=n.getKey(),u=e.getKey();u===c&&a(!1);var p=t.getBlockMap(),f=e instanceof r,d=[e],h=p.delete(u);f&&(d=[],h=p.withMutations((function(t){var n=e.getNextSiblingKey(),r=o(e,t);t.toSeq().skipUntil((function(t){return t.getKey()===u})).takeWhile((function(t){var e=t.getKey(),o=e===u,i=n&&e!==n,a=!n&&t.getParentKey()&&(!r||e!==r);return!!(o||i||a)})).forEach((function(e){d.push(e),t.delete(e.getKey())}))})));var g=h.toSeq().takeUntil((function(t){return t===n})),y=h.toSeq().skipUntil((function(t){return t===n})).skip(1),m=d.map((function(t){return[t.getKey(),t]})),v=s();if("before"===i){var b=t.getBlockBefore(c);b&&b.getKey()===e.getKey()&&a(!1),v=g.concat([].concat(m,[[c,n]]),y).toOrderedMap()}else if("after"===i){var w=t.getBlockAfter(c);w&&w.getKey()===u&&a(!1),v=g.concat([[c,n]].concat(m),y).toOrderedMap()}return t.merge({blockMap:l(v,e,n,i,f),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:u,focusKey:u})})}},153268:(t,e,n)=>{"use strict";n(153003),t.exports=function(t,e){var n=t.getSelection(),r=t.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(e>i){var c=r.getKeyBefore(o);null==c?a=o:(a=c,s=r.getBlockForKey(c).getText().length)}else s=i-e;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}},619417:(t,e,n)=>{"use strict";n(153003),t.exports=function(t,e){var n,r=t.getSelection(),o=r.getStartKey(),i=r.getStartOffset(),a=t.getCurrentContent(),s=o;return e>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),n=0):n=i+e,r.merge({focusKey:s,focusOffset:n})}},798555:(t,e,n)=>{"use strict";var r=n(767953),o=n(25027),i=n(182371).OrderedMap;t.exports=function(t){return t.first()instanceof r?function(t){var e,n={};return i(t.withMutations((function(t){t.forEach((function(r,i){var a=r.getKey(),s=r.getNextSiblingKey(),c=r.getPrevSiblingKey(),u=r.getChildKeys(),l=r.getParentKey(),p=o();if(n[a]=p,s&&(t.get(s)?t.setIn([s,"prevSibling"],p):t.setIn([a,"nextSibling"],null)),c&&(t.get(c)?t.setIn([c,"nextSibling"],p):t.setIn([a,"prevSibling"],null)),l&&t.get(l)){var f=t.get(l).getChildKeys();t.setIn([l,"children"],f.set(f.indexOf(r.getKey()),p))}else t.setIn([a,"parent"],null),e&&(t.setIn([e.getKey(),"nextSibling"],p),t.setIn([a,"prevSibling"],n[e.getKey()])),e=t.get(a);u.forEach((function(e){t.get(e)?t.setIn([e,"parent"],p):t.setIn([a,"children"],r.getChildKeys().filter((function(t){return t!==e})))}))}))})).toArray().map((function(t){return[n[t.getKey()],t.set("key",n[t.getKey()])]})))}(t):function(t){return i(t.toArray().map((function(t){var e=o();return[e,t.set("key",e)]})))}(t)}},914017:(t,e,n)=>{"use strict";var r=n(704516),o=n(629407),i=n(152286);function a(t,e,n){var a=e.getCharacterList(),s=n>0?a.get(n-1):void 0,c=n=n&&(r={start:t,end:e})})),"object"!=typeof r&&i(!1),r}(a,l,n),d=f.start,h=f.end;d{"use strict";var r=n(767953),o=n(39506),i=n(182371),a=(i.List,i.Map),s=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}},c=function(t,e){var n=[];if(!t)return n;for(var r=e.get(t);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?e.get(o):null}return n},u=function(t,e,n){if(!t)return null;for(var r=n.get(t.getKey()).getNextSiblingKey();r&&!e.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},l=function(t,e,n){if(!t)return null;for(var r=n.get(t.getKey()).getPrevSiblingKey();r&&!e.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r};t.exports=function(t,e){if(e.isCollapsed())return t;var n,i=t.getBlockMap(),p=e.getStartKey(),f=e.getStartOffset(),d=e.getEndKey(),h=e.getEndOffset(),g=i.get(p),y=i.get(d),m=g instanceof r,v=[];if(m){var b=y.getChildKeys(),w=c(d,i);y.getNextSiblingKey()&&(v=v.concat(w)),b.isEmpty()||(v=v.concat(w.concat([d]))),v=v.concat(c(o(y,i),i))}n=g===y?function(t,e,n){if(0===e)for(;ee;)t=t.pop(),n--;else{var r=t.slice(0,e),o=t.slice(n);t=r.concat(o).toList()}return t}(g.getCharacterList(),f,h):g.getCharacterList().slice(0,f).concat(y.getCharacterList().slice(h));var _=g.merge({text:g.getText().slice(0,f)+y.getText().slice(h),characterList:n}),S=m&&0===f&&0===h&&y.getParentKey()===p&&null==y.getPrevSiblingKey()?a([[p,null]]):i.toSeq().skipUntil((function(t,e){return e===p})).takeUntil((function(t,e){return e===d})).filter((function(t,e){return-1===v.indexOf(e)})).concat(a([[d,null]])).map((function(t,e){return e===p?_:null})),M=i.merge(S).filter((function(t){return!!t}));return m&&g!==y&&(M=function(t,e,n,r){return t.withMutations((function(i){if(s(e.getKey(),i,(function(t){return t.merge({nextSibling:u(t,i,r),prevSibling:l(t,i,r)})})),s(n.getKey(),i,(function(t){return t.merge({nextSibling:u(t,i,r),prevSibling:l(t,i,r)})})),c(e.getKey(),r).forEach((function(t){return s(t,i,(function(t){return t.merge({children:t.getChildKeys().filter((function(t){return i.get(t)})),nextSibling:u(t,i,r),prevSibling:l(t,i,r)})}))})),s(e.getNextSiblingKey(),i,(function(t){return t.merge({prevSibling:e.getPrevSiblingKey()})})),s(e.getPrevSiblingKey(),i,(function(t){return t.merge({nextSibling:u(t,i,r)})})),s(n.getNextSiblingKey(),i,(function(t){return t.merge({prevSibling:l(t,i,r)})})),s(n.getPrevSiblingKey(),i,(function(t){return t.merge({nextSibling:n.getNextSiblingKey()})})),c(n.getKey(),r).forEach((function(t){s(t,i,(function(t){return t.merge({children:t.getChildKeys().filter((function(t){return i.get(t)})),nextSibling:u(t,i,r),prevSibling:l(t,i,r)})}))})),function(t,e){var n=[];if(!t)return n;for(var r=o(t,e);r&&e.get(r);){var i=e.get(r);n.push(r),r=i.getParentKey()?o(i,e):null}return n}(n,r).forEach((function(t){return s(t,i,(function(t){return t.merge({nextSibling:u(t,i,r),prevSibling:l(t,i,r)})}))})),null==t.get(e.getKey())&&null!=t.get(n.getKey())&&n.getParentKey()===e.getKey()&&null==n.getPrevSiblingKey()){var a=e.getPrevSiblingKey();s(n.getKey(),i,(function(t){return t.merge({prevSibling:a})})),s(a,i,(function(t){return t.merge({nextSibling:n.getKey()})}));var p=a?t.get(a):null,f=p?p.getParentKey():null;if(e.getChildKeys().forEach((function(t){s(t,i,(function(t){return t.merge({parent:f})}))})),null!=f){var d=t.get(f);s(f,i,(function(t){return t.merge({children:d.getChildKeys().concat(e.getChildKeys())})}))}s(e.getChildKeys().find((function(e){return null===t.get(e).getNextSiblingKey()})),i,(function(t){return t.merge({nextSibling:e.getNextSiblingKey()})}))}}))}(M,g,y,i)),t.merge({blockMap:M,selectionBefore:e,selectionAfter:e.merge({anchorKey:p,anchorOffset:f,focusKey:p,focusOffset:f,isBackward:!1})})}},14730:(t,e,n)=>{"use strict";var r=n(142307),o=n(168642)("draft_tree_data_support");t.exports=function(t,e,n){var i=t.getSelection(),a=t.getCurrentContent(),s=i,c=i.getAnchorKey(),u=i.getFocusKey(),l=a.getBlockForKey(c);if(o&&"forward"===n&&c!==u)return a;if(i.isCollapsed()){if("forward"===n){if(t.isSelectionAtEndOfContent())return a;if(o&&i.getAnchorOffset()===a.getBlockForKey(c).getLength()){var p=a.getBlockForKey(l.nextSibling);if(!p||0===p.getLength())return a}}else if(t.isSelectionAtStartOfContent())return a;if((s=e(t))===i)return a}return r.removeRange(a,s,n)}},855283:t=>{"use strict";var e=new RegExp("\r","g");t.exports=function(t){return t.replace(e,"")}},845412:(t,e,n)=>{"use strict";var r=n(505880),o=n(297432),i=n(522049),a=n(819362),s=n(152286);function c(t,e){if(!t)return"[empty]";var n=u(t,e);return n.nodeType===Node.TEXT_NODE?n.textContent:(n instanceof Element||s(!1),n.outerHTML)}function u(t,e){var n=void 0!==e?e(t):[];if(t.nodeType===Node.TEXT_NODE){var r=t.textContent.length;return document.createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=t.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=t.childNodes,a=0;ap(e)&&o.logSelectionStateFailure({anonymizedDom:l(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var c=e===t.focusNode;try{t.extend(e,n)}catch(i){throw o.logSelectionStateFailure({anonymizedDom:l(e,(function(e){var n=[];return e===s&&n.push("active element"),e===t.anchorNode&&n.push("selection anchor node"),e===t.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:s?s.nodeName:null,nodeIsFocus:e===t.focusNode,nodeWasFocus:c,selectionRangeCount:t.rangeCount,selectionAnchorNodeName:t.anchorNode?t.anchorNode.nodeName:null,selectionAnchorOffset:t.anchorOffset,selectionFocusNodeName:t.focusNode?t.focusNode.nodeName:null,selectionFocusOffset:t.focusOffset,message:i?""+i:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),i}}else{var u=t.getRangeAt(0);u.setEnd(e,n),t.addRange(u.cloneRange())}}function d(t,e,n,i){var a=document.createRange();n>p(e)&&(o.logSelectionStateFailure({anonymizedDom:l(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(i.toJS())}),r.handleExtensionCausedError()),a.setStart(e,n),t.addRange(a)}t.exports=function(t,e,r,o,a){if(i(document.documentElement,e)){var s=n.g.getSelection(),c=t.getAnchorKey(),u=t.getAnchorOffset(),l=t.getFocusKey(),p=t.getFocusOffset(),h=t.getIsBackward();if(!s.extend&&h){var g=c,y=u;c=l,u=p,l=g,p=y,h=!1}var m=c===r&&o<=u&&a>=u,v=l===r&&o<=p&&a>=p;if(m&&v)return s.removeAllRanges(),d(s,e,u-o,t),void f(s,e,p-o,t);if(h){if(v&&(s.removeAllRanges(),d(s,e,p-o,t)),m){var b=s.focusNode,w=s.focusOffset;s.removeAllRanges(),d(s,e,u-o,t),f(s,b,w,t)}}else m&&(s.removeAllRanges(),d(s,e,u-o,t)),v&&f(s,e,p-o,t)}}},236043:(t,e,n)=>{"use strict";var r=n(767953),o=n(25027),i=n(182371),a=n(152286),s=n(157429),c=i.List,u=i.Map,l=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}};t.exports=function(t,e){e.isCollapsed()||a(!1);var n=e.getAnchorKey(),i=t.getBlockMap(),p=i.get(n),f=p.getText();if(!f){var d=p.getType();if("unordered-list-item"===d||"ordered-list-item"===d)return s(t,e,(function(t){return t.merge({type:"unstyled",depth:0})}))}var h=e.getAnchorOffset(),g=p.getCharacterList(),y=o(),m=p instanceof r,v=p.merge({text:f.slice(0,h),characterList:g.slice(0,h)}),b=v.merge({key:y,text:f.slice(h),characterList:g.slice(h),data:u()}),w=i.toSeq().takeUntil((function(t){return t===p})),_=i.toSeq().skipUntil((function(t){return t===p})).rest(),S=w.concat([[n,v],[y,b]],_).toOrderedMap();return m&&(p.getChildKeys().isEmpty()||a(!1),S=function(t,e,n){return t.withMutations((function(t){var r=e.getKey(),o=n.getKey();l(e.getParentKey(),t,(function(t){var e=t.getChildKeys(),n=e.indexOf(r)+1,i=e.toArray();return i.splice(n,0,o),t.merge({children:c(i)})})),l(e.getNextSiblingKey(),t,(function(t){return t.merge({prevSibling:o})})),l(r,t,(function(t){return t.merge({nextSibling:o})})),l(o,t,(function(t){return t.merge({prevSibling:r})}))}))}(S,v,b)),t.merge({blockMap:S,selectionBefore:e,selectionAfter:e.merge({anchorKey:y,anchorOffset:0,focusKey:y,focusOffset:0,isBackward:!1})})}},44300:t=>{"use strict";var e=/\r\n?|\n/g;t.exports=function(t){return t.split(e)}},446123:(t,e,n)=>{"use strict";var r=n(125668),o=n(921383),i=n(855577),a=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function c(t){if("file"==t.kind)return t.getAsFile()}var u=function(){function t(t){this.data=t,this.types=t.types?o(t.types):[]}var e=t.prototype;return e.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(t){return s[t]}))},e.getText=function(){var t;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(t=this.data.getData("text/plain")):t=this.data.getData("Text")),t?t.replace(a,"\n"):null},e.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},e.isLink=function(){return this.types.some((function(t){return-1!=t.indexOf("Url")||-1!=t.indexOf("text/uri-list")||t.indexOf("text/x-moz-url")}))},e.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},e.isImage=function(){var t=this.types.some((function(t){return-1!=t.indexOf("application/x-moz-file")}));if(t)return!0;for(var e=this.getFiles(),n=0;n0},t}();t.exports=u},272938:t=>{"use strict";t.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},125668:t=>{"use strict";var e={isImage:function(t){return"image"===n(t)[0]},isJpeg:function(t){var r=n(t);return e.isImage(t)&&("jpeg"===r[1]||"pjpeg"===r[1])}};function n(t){return t.split("/")}t.exports=e},292347:t=>{"use strict";function e(t,e){return!!e&&(t===e.documentElement||t===e.body)}var n={getTop:function(t){var n=t.ownerDocument;return e(t,n)?n.body.scrollTop||n.documentElement.scrollTop:t.scrollTop},setTop:function(t,n){var r=t.ownerDocument;e(t,r)?r.body.scrollTop=r.documentElement.scrollTop=n:t.scrollTop=n},getLeft:function(t){var n=t.ownerDocument;return e(t,n)?n.body.scrollLeft||n.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,n){var r=t.ownerDocument;e(t,r)?r.body.scrollLeft=r.documentElement.scrollLeft=n:t.scrollLeft=n}};t.exports=n},326499:(t,e,n)=>{"use strict";function r(t,e){var n=o.get(t,e);return"auto"===n||"scroll"===n}var o={get:n(955892),getScrollParent:function(t){if(!t)return null;for(var e=t.ownerDocument;t&&t!==e.body;){if(r(t,"overflow")||r(t,"overflowY")||r(t,"overflowX"))return t;t=t.parentNode}return e.defaultView||e.parentWindow}};t.exports=o},590295:t=>{"use strict";t.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},275255:t=>{"use strict";var e=function(){function t(t){var e,n;n=void 0,(e="_uri")in this?Object.defineProperty(this,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):this._uri=n,this._uri=t}return t.prototype.toString=function(){return this._uri},t}();t.exports=e},30275:(t,e,n)=>{"use strict";var r=n(246232),o=n(152286),i="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",a="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",s=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+i+a+"]"),c=new RegExp("["+i+a+"]");function u(t){var e=s.exec(t);return null==e?null:e[0]}function l(t){var e=u(t);return null==e?r.NEUTRAL:c.exec(e)?r.RTL:r.LTR}function p(t,e){if(e=e||r.NEUTRAL,!t.length)return e;var n=l(t);return n===r.NEUTRAL?e:n}function f(t,e){return e||(e=r.getGlobalDir()),r.isStrong(e)||o(!1),p(t,e)}var d={firstStrongChar:u,firstStrongCharDir:l,resolveBlockDir:p,getDirection:f,isDirectionLTR:function(t,e){return f(t,e)===r.LTR},isDirectionRTL:function(t,e){return f(t,e)===r.RTL}};t.exports=d},246232:(t,e,n)=>{"use strict";var r=n(152286),o="LTR",i=null;function a(t){return t===o||"RTL"===t}function s(t){return a(t)||r(!1),t===o?"ltr":"rtl"}function c(t){i=t}var u={NEUTRAL:"NEUTRAL",LTR:o,RTL:"RTL",isStrong:a,getHTMLDir:s,getHTMLDirIfDifferent:function(t,e){return a(t)||r(!1),a(e)||r(!1),t===e?null:s(t)},setGlobalDir:c,initGlobalDir:function(){c(o)},getGlobalDir:function(){return i||this.initGlobalDir(),i||r(!1),i}};t.exports=u},40398:(t,e,n)=>{"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(30275),i=n(246232),a=n(152286),s=function(){function t(t){r(this,"_defaultDir",void 0),r(this,"_lastDir",void 0),t?i.isStrong(t)||a(!1):t=i.getGlobalDir(),this._defaultDir=t,this.reset()}var e=t.prototype;return e.reset=function(){this._lastDir=this._defaultDir},e.getDirection=function(t){return this._lastDir=o.getDirection(t,this._lastDir),this._lastDir},t}();t.exports=s},830113:(t,e,n)=>{"use strict";var r=n(152286),o=/[\uD800-\uDFFF]/;function i(t){return 55296<=t&&t<=57343}function a(t){return o.test(t)}function s(t,e){return 1+i(t.charCodeAt(e))}function c(t,e,n){if(e=e||0,n=void 0===n?1/0:n||0,!a(t))return t.substr(e,n);var r=t.length;if(r<=0||e>r||n<=0)return"";var o=0;if(e>0){for(;e>0&&o=r)return""}else if(e<0){for(o=r;e<0&&00&&i{"use strict";var r=n(881523),o=n(747642),i=n(552914),a=n(687926);function s(t,e,n,r){if(t===n)return!0;if(!n.startsWith(t))return!1;var i=n.slice(t.length);return!!e&&(i=r?r(i):i,o.contains(i,e))}function c(t){return"Windows"===r.platformName?t.replace(/^\s*NT/,""):t}var u={isBrowser:function(t){return s(r.browserName,r.browserFullVersion,t)},isBrowserArchitecture:function(t){return s(r.browserArchitecture,null,t)},isDevice:function(t){return s(r.deviceName,null,t)},isEngine:function(t){return s(r.engineName,r.engineVersion,t)},isPlatform:function(t){return s(r.platformName,r.platformFullVersion,t,c)},isPlatformArchitecture:function(t){return s(r.platformArchitecture,null,t)}};t.exports=i(u,a)},881523:(t,e,n)=>{"use strict";var r,o="Unknown",i=(new(n(42238))).getResult(),a=function(t){if(!t)return{major:"",minor:""};var e=t.split(".");return{major:e[0],minor:e[1]}}(i.browser.version),s={browserArchitecture:i.cpu.architecture||o,browserFullVersion:i.browser.version||o,browserMinorVersion:a.minor||o,browserName:i.browser.name||o,browserVersion:i.browser.major||o,deviceName:i.device.model||o,engineName:i.engine.name||o,engineVersion:i.engine.version||o,platformArchitecture:i.cpu.architecture||o,platformName:(r=i.os.name,{"Mac OS":"Mac OS X"}[r]||r||o),platformVersion:i.os.version||o,platformFullVersion:i.os.version||o};t.exports=s},747642:(t,e,n)=>{"use strict";var r=n(152286),o=/\./,i=/\|\|/,a=/\s+\-\s+/,s=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,c=/^(\d*)(.*)/;function u(t,e){if(""===(t=t.trim()))return!0;var n,r=e.split(o),i=f(t),a=i.modifier,s=i.rangeComponents;switch(a){case"<":return l(r,s);case"<=":return-1===(n=v(r,s))||0===n;case">=":return p(r,s);case">":return 1===v(r,s);case"~":case"~>":return function(t,e){var n=e.slice(),r=e.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);return d(i)&&(r[o]=i+1+""),p(t,n)&&l(t,r)}(r,s);default:return function(t,e){return 0===v(t,e)}(r,s)}}function l(t,e){return-1===v(t,e)}function p(t,e){var n=v(t,e);return 1===n||0===n}function f(t){var e=t.split(o),n=e[0].match(s);return n||r(!1),{modifier:n[1],rangeComponents:[n[2]].concat(e.slice(1))}}function d(t){return!isNaN(t)&&isFinite(t)}function h(t){return!f(t).modifier}function g(t,e){for(var n=t.length;ne?1:t1?n.some((function(t){return b.contains(t,e)})):function(t,e){var n=t.split(a);if(n.length>0&&n.length<=2||r(!1),1===n.length)return u(n[0],e);var o=n[0],i=n[1];return h(o)&&h(i)||r(!1),u(">="+o,e)&&u("<="+i,e)}(t=n[0].trim(),e)}(t.trim(),e.trim())}};t.exports=b},264596:t=>{"use strict";var e=/-(.)/g;t.exports=function(t){return t.replace(e,(function(t,e){return e.toUpperCase()}))}},522049:(t,e,n)=>{"use strict";var r=n(438042);t.exports=function t(e,n){return!(!e||!n)&&(e===n||!r(e)&&(r(n)?t(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}},921383:(t,e,n)=>{"use strict";var r=n(152286);t.exports=function(t){return function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"length"in t&&!("setInterval"in t)&&"number"!=typeof t.nodeType&&(Array.isArray(t)||"callee"in t||"item"in t)}(t)?Array.isArray(t)?t.slice():function(t){var e=t.length;if((Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t)&&r(!1),"number"!=typeof e&&r(!1),0===e||e-1 in t||r(!1),"function"==typeof t.callee&&r(!1),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var n=Array(e),o=0;o{"use strict";function e(t){return t.replace(/\//g,"-")}t.exports=function(t){return"object"==typeof t?Object.keys(t).filter((function(e){return t[e]})).map(e).join(" "):Array.prototype.map.call(arguments,e).join(" ")}},855577:t=>{"use strict";function e(t){return function(){return t}}var n=function(){};n.thatReturns=e,n.thatReturnsFalse=e(!1),n.thatReturnsTrue=e(!0),n.thatReturnsNull=e(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(t){return t},t.exports=n},819362:t=>{"use strict";t.exports=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}},497375:t=>{"use strict";var e="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;t.exports=function(t){return(t=t||document).scrollingElement?t.scrollingElement:e||"CSS1Compat"!==t.compatMode?t.body:t.documentElement}},580386:(t,e,n)=>{"use strict";var r=n(561995);t.exports=function(t){var e=r(t);return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}},561995:(t,e,n)=>{"use strict";var r=n(522049);t.exports=function(t){var e=t.ownerDocument.documentElement;if(!("getBoundingClientRect"in t)||!r(e,t))return{left:0,right:0,top:0,bottom:0};var n=t.getBoundingClientRect();return{left:Math.round(n.left)-e.clientLeft,right:Math.round(n.right)-e.clientLeft,top:Math.round(n.top)-e.clientTop,bottom:Math.round(n.bottom)-e.clientTop}}},422552:(t,e,n)=>{"use strict";var r=n(497375),o=n(379954);t.exports=function(t){var e=r(t.ownerDocument||t.document);t.Window&&t instanceof t.Window&&(t=e);var n=o(t),i=t===e?t.ownerDocument.documentElement:t,a=t.scrollWidth-i.clientWidth,s=t.scrollHeight-i.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,s)),n}},955892:(t,e,n)=>{"use strict";var r=n(264596),o=n(389259);function i(t){return null==t?t:String(t)}t.exports=function(t,e){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(t,null)))return i(n.getPropertyValue(o(e)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(t,null))return i(n.getPropertyValue(o(e)));if("display"===e)return"none"}return t.currentStyle?i("float"===e?t.currentStyle.cssFloat||t.currentStyle.styleFloat:t.currentStyle[r(e)]):i(t.style&&t.style[r(e)])}},379954:t=>{"use strict";t.exports=function(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}},442620:t=>{"use strict";function e(){var t;return document.documentElement&&(t=document.documentElement.clientWidth),!t&&document.body&&(t=document.body.clientWidth),t||0}function n(){var t;return document.documentElement&&(t=document.documentElement.clientHeight),!t&&document.body&&(t=document.body.clientHeight),t||0}function r(){return{width:window.innerWidth||e(),height:window.innerHeight||n()}}r.withoutScrollbars=function(){return{width:e(),height:n()}},t.exports=r},389259:t=>{"use strict";var e=/([A-Z])/g;t.exports=function(t){return t.replace(e,"-$1").toLowerCase()}},152286:t=>{"use strict";var e=function(t){if(void 0===t)throw new Error("invariant(...): Second argument must be a string.")};t.exports=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i{"use strict";t.exports=function(t){var e=(t?t.ownerDocument||t:document).defaultView||window;return!(!t||!("function"==typeof e.Node?t instanceof e.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}},438042:(t,e,n)=>{"use strict";var r=n(820101);t.exports=function(t){return r(t)&&3==t.nodeType}},749127:t=>{"use strict";t.exports=function(t){var e=t||"",n=arguments.length;if(n>1)for(var r=1;r{"use strict";var e=Object.prototype.hasOwnProperty;t.exports=function(t,n,r){if(!t)return null;var o={};for(var i in t)e.call(t,i)&&(o[i]=n.call(r,t[i],i,t));return o}},687926:t=>{"use strict";t.exports=function(t){var e={};return function(n){return e.hasOwnProperty(n)||(e[n]=t.call(this,n)),e[n]}}},748899:t=>{"use strict";t.exports=function(t){if(null!=t)return t;throw new Error("Got unexpected null or undefined")}},758639:(t,e,n)=>{"use strict";n(324889),t.exports=n.g.setImmediate},153003:(t,e,n)=>{"use strict";var r=n(855577);t.exports=r},182371:function(t){t.exports=function(){"use strict";var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function n(t){return a(t)?t:K(t)}function r(t){return s(t)?t:H(t)}function o(t){return c(t)?t:Y(t)}function i(t){return a(t)&&!u(t)?t:q(t)}function a(t){return!(!t||!t[p])}function s(t){return!(!t||!t[f])}function c(t){return!(!t||!t[d])}function u(t){return s(t)||c(t)}function l(t){return!(!t||!t[h])}e(r,n),e(o,n),e(i,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=c,n.isAssociative=u,n.isOrdered=l,n.Keyed=r,n.Indexed=o,n.Set=i;var p="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",d="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g=32,y=31,m={},v={value:!1},b={value:!1};function w(t){return t.value=!1,t}function _(t){t&&(t.value=!0)}function S(){}function M(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),o=0;o>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?x(t)+e:e}function E(){return!0}function D(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function C(t,e){return O(t,e,0)}function j(t,e){return O(t,e,e)}function O(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var L="function"==typeof Symbol&&Symbol.iterator,I="@@iterator",N=L||I;function T(t){this.next=t}function A(t,e,n,r){var o=0===t?e:1===t?n:[e,n];return r?r.value=o:r={value:o,done:!1},r}function z(){return{value:void 0,done:!0}}function R(t){return!!P(t)}function B(t){return t&&"function"==typeof t.next}function F(t){var e=P(t);return e&&e.call(t)}function P(t){var e=t&&(L&&t[L]||t["@@iterator"]);if("function"==typeof e)return e}function U(t){return t&&"number"==typeof t.length}function K(t){return null==t?et():a(t)?t.toSeq():function(t){var e=ot(t)||"object"==typeof t&&new J(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function H(t){return null==t?et().toKeyedSeq():a(t)?s(t)?t.toSeq():t.fromEntrySeq():nt(t)}function Y(t){return null==t?et():a(t)?s(t)?t.entrySeq():t.toIndexedSeq():rt(t)}function q(t){return(null==t?et():a(t)?s(t)?t.entrySeq():t:rt(t)).toSetSeq()}T.prototype.toString=function(){return"[Iterator]"},T.KEYS=0,T.VALUES=1,T.ENTRIES=2,T.prototype.inspect=T.prototype.toSource=function(){return this.toString()},T.prototype[N]=function(){return this},e(K,n),K.of=function(){return K(arguments)},K.prototype.toSeq=function(){return this},K.prototype.toString=function(){return this.__toString("Seq {","}")},K.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},K.prototype.__iterate=function(t,e){return it(this,t,e,!0)},K.prototype.__iterator=function(t,e){return at(this,t,e,!0)},e(H,K),H.prototype.toKeyedSeq=function(){return this},e(Y,K),Y.of=function(){return Y(arguments)},Y.prototype.toIndexedSeq=function(){return this},Y.prototype.toString=function(){return this.__toString("Seq [","]")},Y.prototype.__iterate=function(t,e){return it(this,t,e,!1)},Y.prototype.__iterator=function(t,e){return at(this,t,e,!1)},e(q,K),q.of=function(){return q(arguments)},q.prototype.toSetSeq=function(){return this},K.isSeq=tt,K.Keyed=H,K.Set=q,K.Indexed=Y;var Q,W,Z,G="@@__IMMUTABLE_SEQ__@@";function V(t){this._array=t,this.size=t.length}function J(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function X(t){this._iterable=t,this.size=t.length||t.size}function $(t){this._iterator=t,this._iteratorCache=[]}function tt(t){return!(!t||!t[G])}function et(){return Q||(Q=new V([]))}function nt(t){var e=Array.isArray(t)?new V(t).fromEntrySeq():B(t)?new $(t).fromEntrySeq():R(t)?new X(t).fromEntrySeq():"object"==typeof t?new J(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function rt(t){var e=ot(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function ot(t){return U(t)?new V(t):B(t)?new $(t):R(t)?new X(t):void 0}function it(t,e,n,r){var o=t._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===e(s[1],r?s[0]:a,t))return a+1}return a}return t.__iterateUncached(e,n)}function at(t,e,n,r){var o=t._cache;if(o){var i=o.length-1,a=0;return new T((function(){var t=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:A(e,r?t[0]:a-1,t[1])}))}return t.__iteratorUncached(e,n)}function st(t,e){return e?ct(e,t,"",{"":t}):ut(t)}function ct(t,e,n,r){return Array.isArray(e)?t.call(r,n,Y(e).map((function(n,r){return ct(t,n,r,e)}))):lt(e)?t.call(r,n,H(e).map((function(n,r){return ct(t,n,r,e)}))):e}function ut(t){return Array.isArray(t)?Y(t).map(ut).toList():lt(t)?H(t).map(ut).toMap():t}function lt(t){return t&&(t.constructor===Object||void 0===t.constructor)}function pt(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function ft(t,e){if(t===e)return!0;if(!a(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||s(t)!==s(e)||c(t)!==c(e)||l(t)!==l(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!u(t);if(l(t)){var r=t.entries();return e.every((function(t,e){var o=r.next().value;return o&&pt(o[1],t)&&(n||pt(o[0],e))}))&&r.next().done}var o=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{o=!0;var i=t;t=e,e=i}var p=!0,f=e.__iterate((function(e,r){if(n?!t.has(e):o?!pt(e,t.get(r,m)):!pt(t.get(r,m),e))return p=!1,!1}));return p&&t.size===f}function dt(t,e){if(!(this instanceof dt))return new dt(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(W)return W;W=this}}function ht(t,e){if(!t)throw new Error(e)}function gt(t,e,n){if(!(this instanceof gt))return new gt(t,e,n);if(ht(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),er?{value:void 0,done:!0}:A(t,o,n[e?r-o++:o++])}))},e(J,H),J.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},J.prototype.has=function(t){return this._object.hasOwnProperty(t)},J.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[e?o-i:i];if(!1===t(n[a],a,this))return i+1}return i},J.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,o=r.length-1,i=0;return new T((function(){var a=r[e?o-i:i];return i++>o?{value:void 0,done:!0}:A(t,a,n[a])}))},J.prototype[h]=!0,e(X,Y),X.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=F(this._iterable),r=0;if(B(n))for(var o;!(o=n.next()).done&&!1!==t(o.value,r++,this););return r},X.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=F(this._iterable);if(!B(n))return new T(z);var r=0;return new T((function(){var e=n.next();return e.done?e:A(t,r++,e.value)}))},e($,Y),$.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i=r.length){var e=n.next();if(e.done)return e;r[o]=e.value}return A(t,o,r[o++])}))},e(dt,Y),dt.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},dt.prototype.get=function(t,e){return this.has(t)?this._value:e},dt.prototype.includes=function(t){return pt(this._value,t)},dt.prototype.slice=function(t,e){var n=this.size;return D(t,e,n)?this:new dt(this._value,j(e,n)-C(t,n))},dt.prototype.reverse=function(){return this},dt.prototype.indexOf=function(t){return pt(this._value,t)?0:-1},dt.prototype.lastIndexOf=function(t){return pt(this._value,t)?this.size:-1},dt.prototype.__iterate=function(t,e){for(var n=0;n1?" by "+this._step:"")+" ]"},gt.prototype.get=function(t,e){return this.has(t)?this._start+k(this,t)*this._step:e},gt.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e=0&&nn?{value:void 0,done:!0}:A(t,i++,a)}))},gt.prototype.equals=function(t){return t instanceof gt?this._start===t._start&&this._end===t._end&&this._step===t._step:ft(this,t)},e(yt,n),e(mt,yt),e(vt,yt),e(bt,yt),yt.Keyed=mt,yt.Indexed=vt,yt.Set=bt;var wt="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0};function _t(t){return t>>>1&1073741824|3221225471&t}function St(t){if(!1===t||null==t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){var n=0|t;for(n!==t&&(n^=4294967295*t);t>4294967295;)n^=t/=4294967295;return _t(n)}if("string"===e)return t.length>Ot?function(t){var e=Nt[t];return void 0===e&&(e=Mt(t),It===Lt&&(It=0,Nt={}),It++,Nt[t]=e),e}(t):Mt(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return function(t){var e;if(Dt&&void 0!==(e=Et.get(t)))return e;if(void 0!==(e=t[jt]))return e;if(!kt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[jt]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=++Ct,1073741824&Ct&&(Ct=0),Dt)Et.set(t,e);else{if(void 0!==xt&&!1===xt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(kt)Object.defineProperty(t,jt,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[jt]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[jt]=e}}return e}(t);if("function"==typeof t.toString)return Mt(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function Mt(t){for(var e=0,n=0;n>>n)&y,s=(0===n?r:r>>>n)&y;return new Ut(e,1<>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,127&(t+=t>>8)+(t>>16)}function ae(t,e,n,r){var o=r?t:M(t);return o[e]=n,o}Ft[Bt]=!0,Ft.delete=Ft.remove,Ft.removeIn=Ft.deleteIn,Pt.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i=se)return function(t,e,n,r){t||(t=new S);for(var o=new Yt(t,St(n),[n,r]),i=0;i>>t)&y),i=this.bitmap;return 0==(i&o)?r:this.nodes[ie(i&o-1)].get(t+5,e,n,r)},Ut.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=St(r));var s=(0===e?n:n>>>e)&y,c=1<=ce)return function(t,e,n,r,o){for(var i=0,a=new Array(g),s=0;0!==n;s++,n>>>=1)a[s]=1&n?e[i++]:void 0;return a[r]=o,new Kt(t,i+1,a)}(t,f,u,s,h);if(l&&!h&&2===f.length&&Xt(f[1^p]))return f[1^p];if(l&&h&&1===f.length&&Xt(h))return h;var v=t&&t===this.ownerID,b=l?h?u:u^c:u|c,w=l?h?ae(f,p,h,v):function(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var o=new Array(r),i=0,a=0;a>>t)&y,i=this.nodes[o];return i?i.get(t+5,e,n,r):r},Kt.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=St(r));var s=(0===e?n:n>>>e)&y,c=o===m,u=this.nodes,l=u[s];if(c&&!l)return this;var p=Jt(l,t,e+5,n,r,o,i,a);if(p===l)return this;var f=this.count;if(l){if(!p&&--f0&&r=0&&t=t.size||e<0)return t.withMutations((function(t){e<0?xe(t,e).set(0,n):xe(t,0,e+1).set(e,n)}));e+=t._origin;var r=t._tail,o=t._root,i=w(b);return e>=Ee(t._capacity)?r=_e(r,t.__ownerID,0,e,n,i):o=_e(o,t.__ownerID,t._level,e,n,i),i.value?t.__ownerID?(t._root=o,t._tail=r,t.__hash=void 0,t.__altered=!0,t):be(t._origin,t._capacity,t._level,o,r):t}(this,t,e)},le.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},le.prototype.insert=function(t,e){return this.splice(t,0,e)},le.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):we()},le.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(n){xe(n,0,e+t.length);for(var r=0;r>>e&y;if(r>=this.array.length)return new he([],t);var o,i=0===r;if(e>0){var a=this.array[r];if((o=a&&a.removeBefore(t,e-5,n))===a&&i)return this}if(i&&!o)return this;var s=Se(this,t);if(!i)for(var c=0;c>>e&y;if(o>=this.array.length)return this;if(e>0){var i=this.array[o];if((r=i&&i.removeAfter(t,e-5,n))===i&&o===this.array.length-1)return this}var a=Se(this,t);return a.array.splice(o+1),r&&(a.array[o]=r),a};var ge,ye,me={};function ve(t,e){var n=t._origin,r=t._capacity,o=Ee(r),i=t._tail;return a(t._root,t._level,0);function a(t,s,c){return 0===s?function(t,a){var s=a===o?i&&i.array:t&&t.array,c=a>n?0:n-a,u=r-a;return u>g&&(u=g),function(){if(c===u)return me;var t=e?--u:c++;return s&&s[t]}}(t,c):function(t,o,i){var s,c=t&&t.array,u=i>n?0:n-i>>o,l=1+(r-i>>o);return l>g&&(l=g),function(){for(;;){if(s){var t=s();if(t!==me)return t;s=null}if(u===l)return me;var n=e?--l:u++;s=a(c&&c[n],o-5,i+(n<>>n&y,c=t&&s0){var u=t&&t.array[s],l=_e(u,e,n-5,r,o,i);return l===u?t:((a=Se(t,e)).array[s]=l,a)}return c&&t.array[s]===o?t:(_(i),a=Se(t,e),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Se(t,e){return e&&t&&e===t.ownerID?t:new he(t?t.array.slice():[],e)}function Me(t,e){if(e>=Ee(t._capacity))return t._tail;if(e<1<0;)n=n.array[e>>>r&y],r-=5;return n}}function xe(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new S,o=t._origin,i=t._capacity,a=o+e,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return t;if(a>=s)return t.clear();for(var c=t._level,u=t._root,l=0;a+l<0;)u=new he(u&&u.array.length?[void 0,u]:[],r),l+=1<<(c+=5);l&&(a+=l,o+=l,s+=l,i+=l);for(var p=Ee(i),f=Ee(s);f>=1<p?new he([],r):d;if(d&&f>p&&a5;m-=5){var v=p>>>m&y;g=g.array[v]=Se(g.array[v],r)}g.array[p>>>5&y]=d}if(s=f)a-=f,s-=f,c=5,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||f>>c&y;if(b!==f>>>c&y)break;b&&(l+=(1<o&&(u=u.removeBefore(r,c,a-l)),u&&fi&&(i=u.size),a(c)||(u=u.map((function(t){return st(t)}))),r.push(u)}return i>t.size&&(t=t.setSize(i)),re(t,e,r)}function Ee(t){return t>>5<<5}function De(t){return null==t?Oe():Ce(t)?t:Oe().withMutations((function(e){var n=r(t);Tt(n.size),n.forEach((function(t,n){return e.set(n,t)}))}))}function Ce(t){return zt(t)&&l(t)}function je(t,e,n,r){var o=Object.create(De.prototype);return o.size=t?t.size:0,o._map=t,o._list=e,o.__ownerID=n,o.__hash=r,o}function Oe(){return ye||(ye=je(Gt(),we()))}function Le(t,e,n){var r,o,i=t._map,a=t._list,s=i.get(e),c=void 0!==s;if(n===m){if(!c)return t;a.size>=g&&a.size>=2*i.size?(r=(o=a.filter((function(t,e){return void 0!==t&&s!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(r.__ownerID=o.__ownerID=t.__ownerID)):(r=i.remove(e),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(n===a.get(s)[1])return t;r=i,o=a.set(s,[e,n])}else r=i.set(e,a.size),o=a.set(a.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=o,t.__hash=void 0,t):je(r,o)}function Ie(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function Ne(t){this._iter=t,this.size=t.size}function Te(t){this._iter=t,this.size=t.size}function Ae(t){this._iter=t,this.size=t.size}function ze(t){var e=Xe(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=$e,e.__iterateUncached=function(e,n){var r=this;return t.__iterate((function(t,n){return!1!==e(n,t,r)}),n)},e.__iteratorUncached=function(e,n){if(2===e){var r=t.__iterator(e,n);return new T((function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t}))}return t.__iterator(1===e?0:1,n)},e}function Re(t,e,n){var r=Xe(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,o){var i=t.get(r,m);return i===m?o:e.call(n,i,r,t)},r.__iterateUncached=function(r,o){var i=this;return t.__iterate((function(t,o,a){return!1!==r(e.call(n,t,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=t.__iterator(2,o);return new T((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return A(r,s,e.call(n,a[1],s,t),o)}))},r}function Be(t,e){var n=Xe(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=ze(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,r){return t.get(e?n:-1-n,r)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=$e,n.__iterate=function(e,n){var r=this;return t.__iterate((function(t,n){return e(t,n,r)}),!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function Fe(t,e,n,r){var o=Xe(t);return r&&(o.has=function(r){var o=t.get(r,m);return o!==m&&!!e.call(n,o,r,t)},o.get=function(r,o){var i=t.get(r,m);return i!==m&&e.call(n,i,r,t)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return t.__iterate((function(t,i,c){if(e.call(n,t,i,c))return s++,o(t,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=t.__iterator(2,i),s=0;return new T((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,u=c[0],l=c[1];if(e.call(n,l,u,t))return A(o,r?u:s++,l,i)}}))},o}function Pe(t,e,n,r){var o=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n|=0),D(e,n,o))return t;var i=C(e,o),a=j(n,o);if(i!=i||a!=a)return Pe(t.toSeq().cacheResult(),e,n,r);var s,c=a-i;c==c&&(s=c<0?0:c);var u=Xe(t);return u.size=0===s?s:t.size&&s||void 0,!r&&tt(t)&&s>=0&&(u.get=function(e,n){return(e=k(this,e))>=0&&es)return{value:void 0,done:!0};var t=o.next();return r||1===e?t:A(e,c-1,0===e?void 0:t.value[1],t)}))},u}function Ue(t,e,n,r){var o=Xe(t);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return t.__iterate((function(t,i,u){if(!s||!(s=e.call(n,t,i,u)))return c++,o(t,r?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=t.__iterator(2,i),c=!0,u=0;return new T((function(){var t,i,l;do{if((t=s.next()).done)return r||1===o?t:A(o,u++,0===o?void 0:t.value[1],t);var p=t.value;i=p[0],l=p[1],c&&(c=e.call(n,l,i,a))}while(c);return 2===o?t:A(o,i,l,t)}))},o}function Ke(t,e){var n=s(t),o=[t].concat(e).map((function(t){return a(t)?n&&(t=r(t)):t=n?nt(t):rt(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===o.length)return t;if(1===o.length){var i=o[0];if(i===t||n&&s(i)||c(t)&&c(i))return i}var u=new V(o);return n?u=u.toKeyedSeq():c(t)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce((function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}}),0),u}function He(t,e,n){var r=Xe(t);return r.__iterateUncached=function(r,o){var i=0,s=!1;return function t(c,u){var l=this;c.__iterate((function(o,c){return(!e||u0}function We(t,e,r){var o=Xe(t);return o.size=new V(r).map((function(t){return t.size})).min(),o.__iterate=function(t,e){for(var n,r=this.__iterator(1,e),o=0;!(n=r.next()).done&&!1!==t(n.value,o++,this););return o},o.__iteratorUncached=function(t,o){var i=r.map((function(t){return t=n(t),F(o?t.reverse():t)})),a=0,s=!1;return new T((function(){var n;return s||(n=i.map((function(t){return t.next()})),s=n.some((function(t){return t.done}))),s?{value:void 0,done:!0}:A(t,a++,e.apply(null,n.map((function(t){return t.value}))))}))},o}function Ze(t,e){return tt(t)?e:t.constructor(e)}function Ge(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Ve(t){return Tt(t.size),x(t)}function Je(t){return s(t)?r:c(t)?o:i}function Xe(t){return Object.create((s(t)?H:c(t)?Y:q).prototype)}function $e(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):K.prototype.cacheResult.call(this)}function tn(t,e){return t>e?1:t=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Dn(t,e)},Sn.prototype.pushAll=function(t){if(0===(t=o(t)).size)return this;Tt(t.size);var e=this.size,n=this._head;return t.reverse().forEach((function(t){e++,n={value:t,next:n}})),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):Dn(e,n)},Sn.prototype.pop=function(){return this.slice(1)},Sn.prototype.unshift=function(){return this.push.apply(this,arguments)},Sn.prototype.unshiftAll=function(t){return this.pushAll(t)},Sn.prototype.shift=function(){return this.pop.apply(this,arguments)},Sn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Cn()},Sn.prototype.slice=function(t,e){if(D(t,e,this.size))return this;var n=C(t,this.size);if(j(e,this.size)!==this.size)return vt.prototype.slice.call(this,t,e);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Dn(r,o)},Sn.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Dn(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Sn.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,r=this._head;r&&!1!==t(r.value,n++,this);)r=r.next;return n},Sn.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new T((function(){if(r){var e=r.value;return r=r.next,A(t,n++,e)}return{value:void 0,done:!0}}))},Sn.isStack=Mn;var xn,kn="@@__IMMUTABLE_STACK__@@",En=Sn.prototype;function Dn(t,e,n,r){var o=Object.create(En);return o.size=t,o._head=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Cn(){return xn||(xn=Dn(0))}function jn(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}En[kn]=!0,En.withMutations=Ft.withMutations,En.asMutable=Ft.asMutable,En.asImmutable=Ft.asImmutable,En.wasAltered=Ft.wasAltered,n.Iterator=T,jn(n,{toArray:function(){Tt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate((function(e,n){t[n]=e})),t},toIndexedSeq:function(){return new Ne(this)},toJS:function(){return this.toSeq().map((function(t){return t&&"function"==typeof t.toJS?t.toJS():t})).__toJS()},toJSON:function(){return this.toSeq().map((function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t})).__toJS()},toKeyedSeq:function(){return new Ie(this,!0)},toMap:function(){return At(this.toKeyedSeq())},toObject:function(){Tt(this.size);var t={};return this.__iterate((function(e,n){t[n]=e})),t},toOrderedMap:function(){return De(this.toKeyedSeq())},toOrderedSet:function(){return yn(s(this)?this.valueSeq():this)},toSet:function(){return cn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Te(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Sn(s(this)?this.valueSeq():this)},toList:function(){return le(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){return Ze(this,Ke(this,t.call(arguments,0)))},includes:function(t){return this.some((function(e){return pt(e,t)}))},entries:function(){return this.__iterator(2)},every:function(t,e){Tt(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!t.call(e,r,o,i))return n=!1,!1})),n},filter:function(t,e){return Ze(this,Fe(this,t,e,!0))},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},findEntry:function(t,e){var n;return this.__iterate((function(r,o,i){if(t.call(e,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return Tt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Tt(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate((function(r){n?n=!1:e+=t,e+=null!=r?r.toString():""})),e},keys:function(){return this.__iterator(0)},map:function(t,e){return Ze(this,Re(this,t,e))},reduce:function(t,e,n){var r,o;return Tt(this.size),arguments.length<2?o=!0:r=e,this.__iterate((function(e,i,a){o?(o=!1,r=e):r=t.call(n,r,e,i,a)})),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Ze(this,Be(this,!0))},slice:function(t,e){return Ze(this,Pe(this,t,e,!0))},some:function(t,e){return!this.every(Tn(t),e)},sort:function(t){return Ze(this,Ye(this,t))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(t,e){return x(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,n){var r=At().asMutable();return t.__iterate((function(o,i){r.update(e.call(n,o,i,t),0,(function(t){return t+1}))})),r.asImmutable()}(this,t,e)},equals:function(t){return ft(this,t)},entrySeq:function(){var t=this;if(t._cache)return new V(t._cache);var e=t.toSeq().map(Nn).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Tn(t),e)},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},first:function(){return this.find(E)},flatMap:function(t,e){return Ze(this,function(t,e,n){var r=Je(t);return t.toSeq().map((function(o,i){return r(e.call(n,o,i,t))})).flatten(!0)}(this,t,e))},flatten:function(t){return Ze(this,He(this,t,!0))},fromEntrySeq:function(){return new Ae(this)},get:function(t,e){return this.find((function(e,n){return pt(n,t)}),void 0,e)},getIn:function(t,e){for(var n,r=this,o=en(t);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,m):m)===m)return e}return r},groupBy:function(t,e){return function(t,e,n){var r=s(t),o=(l(t)?De():At()).asMutable();t.__iterate((function(i,a){o.update(e.call(n,i,a,t),(function(t){return(t=t||[]).push(r?[a,i]:i),t}))}));var i=Je(t);return o.map((function(e){return Ze(t,i(e))}))}(this,t,e)},has:function(t){return this.get(t,m)!==m},hasIn:function(t){return this.getIn(t,m)!==m},isSubset:function(t){return t="function"==typeof t.includes?t:n(t),this.every((function(e){return t.includes(e)}))},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:n(t)).isSubset(this)},keySeq:function(){return this.toSeq().map(In).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return qe(this,t)},maxBy:function(t,e){return qe(this,e,t)},min:function(t){return qe(this,t?An(t):Bn)},minBy:function(t,e){return qe(this,e?An(e):Bn,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return Ze(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return Ze(this,Ue(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Tn(t),e)},sortBy:function(t,e){return Ze(this,Ye(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return Ze(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return Ze(this,function(t,e,n){var r=Xe(t);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return t.__iterate((function(t,o,s){return e.call(n,t,o,s)&&++a&&r(t,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=t.__iterator(2,o),s=!0;return new T((function(){if(!s)return{value:void 0,done:!0};var t=a.next();if(t.done)return t;var o=t.value,c=o[0],u=o[1];return e.call(n,u,c,i)?2===r?t:A(r,c,u,t):(s=!1,{value:void 0,done:!0})}))},r}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Tn(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=l(t),n=s(t),r=e?1:0;return function(t,e){return e=wt(e,3432918353),e=wt(e<<15|e>>>-15,461845907),e=wt(e<<13|e>>>-13,5),e=wt((e=(e+3864292196|0)^t)^e>>>16,2246822507),_t((e=wt(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(n?e?function(t,e){r=31*r+Fn(St(t),St(e))|0}:function(t,e){r=r+Fn(St(t),St(e))|0}:e?function(t){r=31*r+St(t)|0}:function(t){r=r+St(t)|0}),r)}(this))}});var On=n.prototype;On[p]=!0,On[N]=On.values,On.__toJS=On.toArray,On.__toStringMapper=zn,On.inspect=On.toSource=function(){return this.toString()},On.chain=On.flatMap,On.contains=On.includes,function(){try{Object.defineProperty(On,"length",{get:function(){if(!n.noLengthWarning){var t;try{throw new Error}catch(e){t=e.stack}if(-1===t.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+t),this.size}}})}catch(t){}}(),jn(r,{flip:function(){return Ze(this,ze(this))},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){return this.findKey((function(e){return pt(e,t)}))},lastKeyOf:function(t){return this.findLastKey((function(e){return pt(e,t)}))},mapEntries:function(t,e){var n=this,r=0;return Ze(this,this.toSeq().map((function(o,i){return t.call(e,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(t,e){var n=this;return Ze(this,this.toSeq().flip().map((function(r,o){return t.call(e,r,o,n)})).flip())}});var Ln=r.prototype;function In(t,e){return e}function Nn(t,e){return[e,t]}function Tn(t){return function(){return!t.apply(this,arguments)}}function An(t){return function(){return-t.apply(this,arguments)}}function zn(t){return"string"==typeof t?JSON.stringify(t):t}function Rn(){return M(arguments)}function Bn(t,e){return te?-1:0}function Fn(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}return Ln[f]=!0,Ln[N]=On.entries,Ln.__toJS=On.toObject,Ln.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+zn(t)},jn(o,{toKeyedSeq:function(){return new Ie(this,!1)},filter:function(t,e){return Ze(this,Fe(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.toKeyedSeq().reverse().keyOf(t);return void 0===e?-1:e},reverse:function(){return Ze(this,Be(this,!1))},slice:function(t,e){return Ze(this,Pe(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(0|e,0),0===n||2===n&&!e)return this;t=C(t,t<0?this.count():this.size);var r=this.slice(0,t);return Ze(this,1===n?r:r.concat(M(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.toKeyedSeq().findLastKey(t,e);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(t){return Ze(this,He(this,t,!1))},get:function(t,e){return(t=k(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,n){return n===t}),void 0,e)},has:function(t){return(t=k(this,t))>=0&&(void 0!==this.size?this.size===1/0||t0&&n'+n+"";if("LINK"===o.type){var a=o.data.targetOption||"_self";return''+n+""}return"IMAGE"===o.type?''+o.data.alt+'':"EMBEDDED_LINK"===o.type?'':n}function s(t,e,n,r){var a=[],s=t.text;if(s.length>0)for(var c=function(t){var e=t.text,n=t.inlineStyleRanges,r={BOLD:new Array(e.length),ITALIC:new Array(e.length),UNDERLINE:new Array(e.length),STRIKETHROUGH:new Array(e.length),CODE:new Array(e.length),SUPERSCRIPT:new Array(e.length),SUBSCRIPT:new Array(e.length),COLOR:new Array(e.length),BGCOLOR:new Array(e.length),FONTSIZE:new Array(e.length),FONTFAMILY:new Array(e.length),length:e.length};return n&&n.length>0&&n.forEach((function(t){for(var e=t.offset,n=e+t.length,o=e;o0?n.map((function(t){switch(t){case"\n":return"
";case"&":return"&";case"<":return"<";case">":return">";default:return t}})).join(""):"";return t(r,(function(t,e){o=function(t,e){return"BOLD"===t?""+e+"":"ITALIC"===t?""+e+"":"UNDERLINE"===t?""+e+"":"STRIKETHROUGH"===t?""+e+"":"CODE"===t?""+e+"":"SUPERSCRIPT"===t?""+e+"":"SUBSCRIPT"===t?""+e+"":e}(t,o)})),o}(e)})),o=function(t,e){if(t&&(t.COLOR||t.BGCOLOR||t.FONTSIZE||t.FONTFAMILY)){var n='style="';return t.COLOR&&(n+="color: "+t.COLOR+";"),t.BGCOLOR&&(n+="background-color: "+t.BGCOLOR+";"),t.FONTSIZE&&(n+="font-size: "+t.FONTSIZE+(/^\d+$/.test(t.FONTSIZE)?"px":"")+";"),t.FONTFAMILY&&(n+="font-family: "+t.FONTFAMILY+";"),""+e+""}return e}(n.styles,o)}function u(t,e,n,r){var o=[],i=function(t,e){var n=[],r=0,o=t.entityRanges.map((function(t){return{offset:t.offset,length:t.length,key:t.key,type:"ENTITY"}}));return(o=(o=o.concat(function(t,e){var n=[];if(e)for(var r=0,o=0,i=t,a=e.trigger||"#",s=e.separator||" ";i.length>0&&o>=0;)if(i[0]===a?(o=0,r=0,i=i.substr(a.length)):(o=i.indexOf(s+a))>=0&&(i=i.substr(o+(s+a).length),r+=o+s.length),o>=0){var c=i.indexOf(s)>=0?i.indexOf(s):i.length,u=i.substr(0,c);u&&u.length>0&&n.push({offset:r,length:u.length+a.length,type:"HASHTAG"}),r+=a.length}return n}(t.text,e))).sort((function(t,e){return t.offset-e.offset}))).forEach((function(t){t.offset>r&&n.push({start:r,end:t.offset}),n.push({start:t.offset,end:t.offset+t.length,entityKey:t.key,type:t.type}),r=t.offset+t.length})),r'+i+""),i}(t,e,n,r);0===u&&(l=function(t){if(t){for(var e=t,n=0;n=0&&" "===e[n];n-=1)e=e.substring(0,n)+" "+e.substring(n+1);return e}return t}(l)),o.push(l)})),o.join("")}function l(t,e,o,i,a){var s=[],c=[],p=void 0;return t.forEach((function(t){var f=!1;if(p?p.type!==t.type?(s.push("\n"),s.push("<"+n(t.type)+">\n")):p.depth===t.depth?c&&c.length>0&&(s.push(l(c,e,o,i,a)),c=[]):(f=!0,c.push(t)):s.push("<"+n(t.type)+">\n"),!f){s.push(""),s.push(u(t,e,o,a)),s.push("\n"),p=t}})),c&&c.length>0&&s.push(l(c,e,o,i,a)),s.push("\n"),s.join("")}return function(t,e,o,i){var s=[];if(t){var c=t.blocks,p=t.entityMap;if(c&&c.length>0){var f=[];if(c.forEach((function(t){if("unordered-list-item"===(h=t.type)||"ordered-list-item"===h)f.push(t);else{if(f.length>0){var c=l(f,p,e,i);s.push(c),f=[]}var d=function(t,e,o,i,s){var c=[];if(function(t){return!(!(t.entityRanges.length>0)||(e=t.text,null!=e&&0!==e.length&&0!==e.trim().length&&"atomic"!==t.type));var e}(t))c.push(a(e,t.entityRanges[0].key,void 0,s));else{var l=n(t.type);if(l){c.push("<"+l);var p=r(t.data);p&&c.push(' style="'+p+'"'),i&&c.push(' dir = "auto"'),c.push(">"),c.push(u(t,e,o,s)),c.push("")}}return c.push("\n"),c.join("")}(t,p,e,o,i);s.push(d)}var h})),f.length>0){var d=l(f,p,e,o,i);s.push(d),f=[]}}}return s.join("")}}()},717247:(t,e,n)=>{window,t.exports=function(t,e){return o={},n.m=r=[function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){t.exports=n(3)},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n(0),i=function(t,e,n){var r,i=t.textContent;return""===i.trim()?{chunk:(r=n,{text:" ",inlines:[new o.OrderedSet],entities:[r],blocks:[]})}:{chunk:{text:i,inlines:Array(i.length).fill(e),entities:Array(i.length).fill(n),blocks:[]}}},a=function(){return{text:"\n",inlines:[new o.OrderedSet],entities:new Array(1),blocks:[]}},s=function(t,e){return{text:"",inlines:[],entities:[],blocks:[{type:t,depth:0,data:e||new o.Map({})}]}},c=function(t,e,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:t,depth:Math.max(0,Math.min(4,e)),data:n||new o.Map({})}]}},u=function(t){return{text:"\r ",inlines:[new o.OrderedSet],entities:[t],blocks:[{type:"atomic",depth:0,data:new o.Map({})}]}},l=function(t,e){return{text:t.text+e.text,inlines:t.inlines.concat(e.inlines),entities:t.entities.concat(e.entities),blocks:t.blocks.concat(e.blocks)}},p=new o.Map({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:"ul"},"ordered-list-item":{element:"li",wrapper:"ol"},blockquote:{element:"blockquote"},code:{element:"pre"},atomic:{element:"figure"},unstyled:{element:"p",aliasedElements:["div"]}}),f={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function d(t){return t.style.textAlign?new o.Map({"text-align":t.style.textAlign}):t.style.marginLeft?new o.Map({"margin-left":t.style.marginLeft}):void 0}var h=function(t){var e=void 0;if(t instanceof HTMLAnchorElement){var n={};e=t.dataset&&void 0!==t.dataset.mention?(n.url=t.href,n.text=t.innerHTML,n.value=t.dataset.value,r.Entity.__create("MENTION","IMMUTABLE",n)):(n.url=t.getAttribute&&t.getAttribute("href")||t.href,n.title=t.innerHTML,n.targetOption=t.target,r.Entity.__create("LINK","MUTABLE",n))}return e};n.d(e,"default",(function(){return v}));var g=new RegExp(" ","g"),y=!0;function m(t,e,n,o,g,v,b){var w=t.nodeName.toLowerCase();if(v){var _=v(w,t);if(_){var S=r.Entity.__create(_.type,_.mutability,_.data||{});return{chunk:u(S)}}}if("#text"===w&&"\n"!==t.textContent)return i(t,e,g);if("br"===w)return{chunk:a()};if("img"===w&&t instanceof HTMLImageElement){var M={};M.src=t.getAttribute&&t.getAttribute("src")||t.src,M.alt=t.alt,M.height=t.style.height,M.width=t.style.width,t.style.float&&(M.alignment=t.style.float);var x=r.Entity.__create("IMAGE","MUTABLE",M);return{chunk:u(x)}}if("video"===w&&t instanceof HTMLVideoElement){var k={};k.src=t.getAttribute&&t.getAttribute("src")||t.src,k.alt=t.alt,k.height=t.style.height,k.width=t.style.width,t.style.float&&(k.alignment=t.style.float);var E=r.Entity.__create("VIDEO","MUTABLE",k);return{chunk:u(E)}}if("iframe"===w&&t instanceof HTMLIFrameElement){var D={};D.src=t.getAttribute&&t.getAttribute("src")||t.src,D.height=t.height,D.width=t.width;var C=r.Entity.__create("EMBEDDED_LINK","MUTABLE",D);return{chunk:u(C)}}var j,O=function(t,e){var n=p.filter((function(n){return n.element===t&&(!n.wrapper||n.wrapper===e)||n.wrapper===t||n.aliasedElements&&-1{"use strict";n.r(e),n.d(e,{default:()=>vr,version:()=>yr,Collection:()=>M,Iterable:()=>mr,Seq:()=>q,Map:()=>je,OrderedMap:()=>hn,List:()=>$e,Stack:()=>wn,Set:()=>Ln,OrderedSet:()=>tr,Record:()=>ir,Range:()=>Bn,Repeat:()=>fr,is:()=>st,fromJS:()=>dr,hash:()=>pt,isImmutable:()=>L,isCollection:()=>m,isKeyed:()=>b,isIndexed:()=>_,isAssociative:()=>S,isOrdered:()=>N,isValueObject:()=>at,get:()=>$t,getIn:()=>Fn,has:()=>Xt,hasIn:()=>Un,merge:()=>ge,mergeDeep:()=>me,mergeWith:()=>ye,mergeDeepWith:()=>ve,remove:()=>ee,removeIn:()=>se,set:()=>ne,setIn:()=>ie,update:()=>ue,updateIn:()=>re});var r=32,o=31,i={};function a(t){t&&(t.value=!0)}function s(){}function c(t){return void 0===t.size&&(t.size=t.__iterate(l)),t.size}function u(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?c(t)+e:e}function l(){return!0}function p(t,e,n){return(0===t&&!g(t)||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function f(t,e){return h(t,e,0)}function d(t,e){return h(t,e,e)}function h(t,e,n){return void 0===t?n:g(t)?e===1/0?e:0|Math.max(0,e+t):void 0===e||e===t?t:0|Math.min(e,t)}function g(t){return t<0||0===t&&1/t==-1/0}var y="@@__IMMUTABLE_ITERABLE__@@";function m(t){return Boolean(t&&t[y])}var v="@@__IMMUTABLE_KEYED__@@";function b(t){return Boolean(t&&t[v])}var w="@@__IMMUTABLE_INDEXED__@@";function _(t){return Boolean(t&&t[w])}function S(t){return b(t)||_(t)}var M=function(t){return m(t)?t:q(t)},x=function(t){function e(t){return b(t)?t:Q(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(M),k=function(t){function e(t){return _(t)?t:W(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(M),E=function(t){function e(t){return m(t)&&!S(t)?t:Z(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(M);M.Keyed=x,M.Indexed=k,M.Set=E;var D="@@__IMMUTABLE_SEQ__@@";function C(t){return Boolean(t&&t[D])}var j="@@__IMMUTABLE_RECORD__@@";function O(t){return Boolean(t&&t[j])}function L(t){return m(t)||O(t)}var I="@@__IMMUTABLE_ORDERED__@@";function N(t){return Boolean(t&&t[I])}var T="function"==typeof Symbol&&Symbol.iterator,A=T||"@@iterator",z=function(t){this.next=t};function R(t,e,n,r){var o=0===t?e:1===t?n:[e,n];return r?r.value=o:r={value:o,done:!1},r}function B(){return{value:void 0,done:!0}}function F(t){return!!K(t)}function P(t){return t&&"function"==typeof t.next}function U(t){var e=K(t);return e&&e.call(t)}function K(t){var e=t&&(T&&t[T]||t["@@iterator"]);if("function"==typeof e)return e}z.prototype.toString=function(){return"[Iterator]"},z.KEYS=0,z.VALUES=1,z.ENTRIES=2,z.prototype.inspect=z.prototype.toSource=function(){return this.toString()},z.prototype[A]=function(){return this};var H=Object.prototype.hasOwnProperty;function Y(t){return!(!Array.isArray(t)&&"string"!=typeof t)||t&&"object"==typeof t&&Number.isInteger(t.length)&&t.length>=0&&(0===t.length?1===Object.keys(t).length:t.hasOwnProperty(t.length-1))}var q=function(t){function e(t){return null==t?$():L(t)?t.toSeq():function(t){var e=nt(t);if(e)return e;if("object"==typeof t)return new V(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq {","}")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(t,e){var n=this._cache;if(n){for(var r=n.length,o=0;o!==r;){var i=n[e?r-++o:o++];if(!1===t(i[1],i[0],this))break}return o}return this.__iterateUncached(t,e)},e.prototype.__iterator=function(t,e){var n=this._cache;if(n){var r=n.length,o=0;return new z((function(){if(o===r)return{value:void 0,done:!0};var i=n[e?r-++o:o++];return R(t,i[0],i[1])}))}return this.__iteratorUncached(t,e)},e}(M),Q=function(t){function e(t){return null==t?$().toKeyedSeq():m(t)?b(t)?t.toSeq():t.fromEntrySeq():O(t)?t.toSeq():tt(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toKeyedSeq=function(){return this},e}(q),W=function(t){function e(t){return null==t?$():m(t)?b(t)?t.entrySeq():t.toIndexedSeq():O(t)?t.toSeq().entrySeq():et(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq [","]")},e}(q),Z=function(t){function e(t){return(m(t)&&!S(t)?t:W(t)).toSetSeq()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(q);q.isSeq=C,q.Keyed=Q,q.Set=Z,q.Indexed=W,q.prototype[D]=!0;var G=function(t){function e(t){this._array=t,this.size=t.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this.has(t)?this._array[u(this,t)]:e},e.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length,o=0;o!==r;){var i=e?r-++o:o++;if(!1===t(n[i],i,this))break}return o},e.prototype.__iterator=function(t,e){var n=this._array,r=n.length,o=0;return new z((function(){if(o===r)return{value:void 0,done:!0};var i=e?r-++o:o++;return R(t,i,n[i])}))},e}(W),V=function(t){function e(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},e.prototype.has=function(t){return H.call(this._object,t)},e.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,o=r.length,i=0;i!==o;){var a=r[e?o-++i:i++];if(!1===t(n[a],a,this))break}return i},e.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,o=r.length,i=0;return new z((function(){if(i===o)return{value:void 0,done:!0};var a=r[e?o-++i:i++];return R(t,a,n[a])}))},e}(Q);V.prototype[I]=!0;var J,X=function(t){function e(t){this._collection=t,this.size=t.length||t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=U(this._collection),r=0;if(P(n))for(var o;!(o=n.next()).done&&!1!==t(o.value,r++,this););return r},e.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=U(this._collection);if(!P(n))return new z(B);var r=0;return new z((function(){var e=n.next();return e.done?e:R(t,r++,e.value)}))},e}(W);function $(){return J||(J=new G([]))}function tt(t){var e=Array.isArray(t)?new G(t):F(t)?new X(t):void 0;if(e)return e.fromEntrySeq();if("object"==typeof t)return new V(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function et(t){var e=nt(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function nt(t){return Y(t)?new G(t):F(t)?new X(t):void 0}var rt="@@__IMMUTABLE_MAP__@@";function ot(t){return Boolean(t&&t[rt])}function it(t){return ot(t)&&N(t)}function at(t){return Boolean(t&&"function"==typeof t.equals&&"function"==typeof t.hashCode)}function st(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!!(at(t)&&at(e)&&t.equals(e))}var ct="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0};function ut(t){return t>>>1&1073741824|3221225471&t}var lt=Object.prototype.valueOf;function pt(t){switch(typeof t){case"boolean":return t?1108378657:1108378656;case"number":return function(t){if(t!=t||t===1/0)return 0;var e=0|t;for(e!==t&&(e^=4294967295*t);t>4294967295;)e^=t/=4294967295;return ut(e)}(t);case"string":return t.length>bt?(void 0===(n=St[e=t])&&(n=ft(e),_t===wt&&(_t=0,St={}),_t++,St[e]=n),n):ft(t);case"object":case"function":return null===t?1108378658:"function"==typeof t.hashCode?ut(t.hashCode(t)):(t.valueOf!==lt&&"function"==typeof t.valueOf&&(t=t.valueOf(t)),function(t){var e;if(yt&&void 0!==(e=dt.get(t)))return e;if(void 0!==(e=t[vt]))return e;if(!gt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[vt]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=++mt,1073741824&mt&&(mt=0),yt)dt.set(t,e);else{if(void 0!==ht&&!1===ht(t))throw new Error("Non-extensible objects are not allowed as keys.");if(gt)Object.defineProperty(t,vt,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[vt]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[vt]=e}}return e}(t));case"undefined":return 1108378659;default:if("function"==typeof t.toString)return ft(t.toString());throw new Error("Value type "+typeof t+" cannot be hashed.")}var e,n}function ft(t){for(var e=0,n=0;n=0&&(l.get=function(e,n){return(e=u(this,e))>=0&&es)return{value:void 0,done:!0};var t=o.next();return r||1===e||t.done?t:R(e,c-1,0===e?void 0:t.value[1],t)}))},l}function It(t,e,n,r){var o=Kt(t);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return t.__iterate((function(t,i,u){if(!s||!(s=e.call(n,t,i,u)))return c++,o(t,r?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=t.__iterator(2,i),c=!0,u=0;return new z((function(){var t,i,l;do{if((t=s.next()).done)return r||1===o?t:R(o,u++,0===o?void 0:t.value[1],t);var p=t.value;i=p[0],l=p[1],c&&(c=e.call(n,l,i,a))}while(c);return 2===o?t:R(o,i,l,t)}))},o}function Nt(t,e){var n=b(t),r=[t].concat(e).map((function(t){return m(t)?n&&(t=x(t)):t=n?tt(t):et(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===r.length)return t;if(1===r.length){var o=r[0];if(o===t||n&&b(o)||_(t)&&_(o))return o}var i=new G(r);return n?i=i.toKeyedSeq():_(t)||(i=i.toSetSeq()),(i=i.flatten(!0)).size=r.reduce((function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}}),0),i}function Tt(t,e,n){var r=Kt(t);return r.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var a=0,s=!1;return function t(c,u){c.__iterate((function(i,c){return(!e||u0}function Bt(t,e,n,r){var o=Kt(t),i=new G(n).map((function(t){return t.size}));return o.size=r?i.max():i.min(),o.__iterate=function(t,e){for(var n,r=this.__iterator(1,e),o=0;!(n=r.next()).done&&!1!==t(n.value,o++,this););return o},o.__iteratorUncached=function(t,o){var i=n.map((function(t){return t=M(t),U(o?t.reverse():t)})),a=0,s=!1;return new z((function(){var n;return s||(n=i.map((function(t){return t.next()})),s=r?n.every((function(t){return t.done})):n.some((function(t){return t.done}))),s?{value:void 0,done:!0}:R(t,a++,e.apply(null,n.map((function(t){return t.value}))))}))},o}function Ft(t,e){return t===e?t:C(t)?e:t.constructor(e)}function Pt(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Ut(t){return b(t)?x:_(t)?k:E}function Kt(t){return Object.create((b(t)?Q:_(t)?W:Z).prototype)}function Ht(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):q.prototype.cacheResult.call(this)}function Yt(t,e){return void 0===t&&void 0===e?0:void 0===t?1:void 0===e?-1:t>e?1:t0;)e[n]=arguments[n+1];if("function"!=typeof t)throw new TypeError("Invalid merger function: "+t);return he(this,e,t)}function he(t,e,n){for(var r=[],o=0;o0;)e[n]=arguments[n+1];return we(t,e)}function ye(t,e){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return we(e,n,t)}function me(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return be(t,e)}function ve(t,e){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return be(e,n,t)}function be(t,e,n){return we(t,e,function(t){return function e(n,r,o){return Vt(n)&&Vt(r)?we(n,[r],e):t?t(n,r,o):r}}(n))}function we(t,e,n){if(!Vt(t))throw new TypeError("Cannot merge into non-data-structure value: "+t);if(L(t))return"function"==typeof n&&t.mergeWith?t.mergeWith.apply(t,[n].concat(e)):t.merge?t.merge.apply(t,e):t.concat.apply(t,e);for(var r=Array.isArray(t),o=t,i=r?k:x,a=r?function(e){o===t&&(o=te(o)),o.push(e)}:function(e,r){var i=H.call(o,r),a=i&&n?n(o[r],e,r):e;i&&a===o[r]||(o===t&&(o=te(o)),o[r]=a)},s=0;s0;)e[n]=arguments[n+1];return be(this,e,t)}function Me(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return re(this,t,Ue(),(function(t){return we(t,e)}))}function xe(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return re(this,t,Ue(),(function(t){return be(t,e)}))}function ke(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this}function Ee(){return this.__ownerID?this:this.__ensureOwner(new s)}function De(){return this.__ensureOwner()}function Ce(){return this.__altered}xt.prototype.cacheResult=Mt.prototype.cacheResult=kt.prototype.cacheResult=Et.prototype.cacheResult=Ht;var je=function(t){function e(e){return null==e?Ue():ot(e)&&!N(e)?e:Ue().withMutations((function(n){var r=t(e);Wt(r.size),r.forEach((function(t,e){return n.set(e,t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Ue().withMutations((function(e){for(var n=0;n=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}}))},e.prototype.toString=function(){return this.__toString("Map {","}")},e.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},e.prototype.set=function(t,e){return Ke(this,t,e)},e.prototype.remove=function(t){return Ke(this,t,i)},e.prototype.deleteAll=function(t){var e=M(t);return 0===e.size?this:this.withMutations((function(t){e.forEach((function(e){return t.remove(e)}))}))},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ue()},e.prototype.sort=function(t){return hn(At(this,t))},e.prototype.sortBy=function(t,e){return hn(At(this,e,t))},e.prototype.map=function(t,e){return this.withMutations((function(n){n.forEach((function(r,o){n.set(o,t.call(e,r,o,n))}))}))},e.prototype.__iterator=function(t,e){return new Re(this,t,e)},e.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate((function(e){return r++,t(e[1],e[0],n)}),e),r},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Pe(this.size,this._root,t,this.__hash):0===this.size?Ue():(this.__ownerID=t,this.__altered=!1,this)},e}(x);je.isMap=ot;var Oe=je.prototype;Oe[rt]=!0,Oe.delete=Oe.remove,Oe.removeAll=Oe.deleteAll,Oe.setIn=ae,Oe.removeIn=Oe.deleteIn=ce,Oe.update=le,Oe.updateIn=pe,Oe.merge=Oe.concat=fe,Oe.mergeWith=de,Oe.mergeDeep=_e,Oe.mergeDeepWith=Se,Oe.mergeIn=Me,Oe.mergeDeepIn=xe,Oe.withMutations=ke,Oe.wasAltered=Ce,Oe.asImmutable=De,Oe["@@transducer/init"]=Oe.asMutable=Ee,Oe["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])},Oe["@@transducer/result"]=function(t){return t.asImmutable()};var Le=function(t,e){this.ownerID=t,this.entries=e};Le.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i=Ze)return function(t,e,n,r){t||(t=new s);for(var o=new Ae(t,pt(n),[n,r]),i=0;i>>t)&o),a=this.bitmap;return 0==(a&i)?r:this.nodes[Qe(a&i-1)].get(t+5,e,n,r)},Ie.prototype.update=function(t,e,n,a,s,c,u){void 0===n&&(n=pt(a));var l=(0===e?n:n>>>e)&o,p=1<=Ge)return function(t,e,n,o,i){for(var a=0,s=new Array(r),c=0;0!==n;c++,n>>>=1)s[c]=1&n?e[a++]:void 0;return s[o]=i,new Ne(t,a+1,s)}(t,g,f,l,m);if(d&&!m&&2===g.length&&Ye(g[1^h]))return g[1^h];if(d&&m&&1===g.length&&Ye(m))return m;var v=t&&t===this.ownerID,b=d?m?f:f^p:f|p,w=d?m?We(g,h,m,v):function(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var o=new Array(r),i=0,a=0;a>>t)&o,a=this.nodes[i];return a?a.get(t+5,e,n,r):r},Ne.prototype.update=function(t,e,n,r,a,s,c){void 0===n&&(n=pt(r));var u=(0===e?n:n>>>e)&o,l=a===i,p=this.nodes,f=p[u];if(l&&!f)return this;var d=He(f,t,e+5,n,r,a,s,c);if(d===f)return this;var h=this.count;if(f){if(!d&&--h>>n)&o,c=(0===n?r:r>>>n)&o,u=s===c?[qe(t,e,n+5,r,i)]:(a=new Ae(e,r,i),s>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,127&(t+=t>>8)+(t>>16)}function We(t,e,n,r){var o=r?t:qt(t);return o[e]=n,o}var Ze=8,Ge=16,Ve=8,Je="@@__IMMUTABLE_LIST__@@";function Xe(t){return Boolean(t&&t[Je])}var $e=function(t){function e(e){var n=sn();if(null==e)return n;if(Xe(e))return e;var o=t(e),i=o.size;return 0===i?n:(Wt(i),i>0&&i=0&&t=t.size||e<0)return t.withMutations((function(t){e<0?pn(t,e).set(0,n):pn(t,0,e+1).set(e,n)}));e+=t._origin;var r=t._tail,o=t._root,i={value:!1};return e>=fn(t._capacity)?r=cn(r,t.__ownerID,0,e,n,i):o=cn(o,t.__ownerID,t._level,e,n,i),i.value?t.__ownerID?(t._root=o,t._tail=r,t.__hash=void 0,t.__altered=!0,t):an(t._origin,t._capacity,t._level,o,r):t}(this,t,e)},e.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},e.prototype.insert=function(t,e){return this.splice(t,0,e)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):sn()},e.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(n){pn(n,0,e+t.length);for(var r=0;r>>e&o;if(r>=this.array.length)return new en([],t);var i,a=0===r;if(e>0){var s=this.array[r];if((i=s&&s.removeBefore(t,e-5,n))===s&&a)return this}if(a&&!i)return this;var c=un(this,t);if(!a)for(var u=0;u>>e&o;if(i>=this.array.length)return this;if(e>0){var a=this.array[i];if((r=a&&a.removeAfter(t,e-5,n))===a&&i===this.array.length-1)return this}var s=un(this,t);return s.array.splice(i+1),r&&(s.array[i]=r),s};var nn,rn={};function on(t,e){var n=t._origin,o=t._capacity,i=fn(o),a=t._tail;return function t(s,c,u){return 0===c?function(t,s){var c=s===i?a&&a.array:t&&t.array,u=s>n?0:n-s,l=o-s;return l>r&&(l=r),function(){if(u===l)return rn;var t=e?--l:u++;return c&&c[t]}}(s,u):function(i,a,s){var c,u=i&&i.array,l=s>n?0:n-s>>a,p=1+(o-s>>a);return p>r&&(p=r),function(){for(;;){if(c){var n=c();if(n!==rn)return n;c=null}if(l===p)return rn;var r=e?--p:l++;c=t(u&&u[r],a-5,s+(r<>>n&o,l=t&&u0){var p=t&&t.array[u],f=cn(p,e,n-5,r,i,s);return f===p?t:((c=un(t,e)).array[u]=f,c)}return l&&t.array[u]===i?t:(s&&a(s),c=un(t,e),void 0===i&&u===c.array.length-1?c.array.pop():c.array[u]=i,c)}function un(t,e){return e&&t&&e===t.ownerID?t:new en(t?t.array.slice():[],e)}function ln(t,e){if(e>=fn(t._capacity))return t._tail;if(e<1<0;)n=n.array[e>>>r&o],r-=5;return n}}function pn(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new s,i=t._origin,a=t._capacity,c=i+e,u=void 0===n?a:n<0?a+n:i+n;if(c===i&&u===a)return t;if(c>=u)return t.clear();for(var l=t._level,p=t._root,f=0;c+f<0;)p=new en(p&&p.array.length?[void 0,p]:[],r),f+=1<<(l+=5);f&&(c+=f,i+=f,u+=f,a+=f);for(var d=fn(a),h=fn(u);h>=1<d?new en([],r):g;if(g&&h>d&&c5;v-=5){var b=d>>>v&o;m=m.array[b]=un(m.array[b],r)}m.array[d>>>5&o]=g}if(u=h)c-=h,u-=h,l=5,p=null,y=y&&y.removeBefore(r,0,c);else if(c>i||h>>l&o;if(w!==h>>>l&o)break;w&&(f+=(1<i&&(p=p.removeBefore(r,l,c-f)),p&&h>>5<<5}var dn,hn=function(t){function e(t){return null==t?yn():it(t)?t:yn().withMutations((function(e){var n=x(t);Wt(n.size),n.forEach((function(t,n){return e.set(n,t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("OrderedMap {","}")},e.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):yn()},e.prototype.set=function(t,e){return mn(this,t,e)},e.prototype.remove=function(t){return mn(this,t,i)},e.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},e.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate((function(e){return e&&t(e[1],e[0],n)}),e)},e.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?gn(e,n,t,this.__hash):0===this.size?yn():(this.__ownerID=t,this._map=e,this._list=n,this)},e}(je);function gn(t,e,n,r){var o=Object.create(hn.prototype);return o.size=t?t.size:0,o._map=t,o._list=e,o.__ownerID=n,o.__hash=r,o}function yn(){return dn||(dn=gn(Ue(),sn()))}function mn(t,e,n){var o,a,s=t._map,c=t._list,u=s.get(e),l=void 0!==u;if(n===i){if(!l)return t;c.size>=r&&c.size>=2*s.size?(o=(a=c.filter((function(t,e){return void 0!==t&&u!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(o.__ownerID=a.__ownerID=t.__ownerID)):(o=s.remove(e),a=u===c.size-1?c.pop():c.set(u,void 0))}else if(l){if(n===c.get(u)[1])return t;o=s,a=c.set(u,[e,n])}else o=s.set(e,c.size),a=c.set(c.size,[e,n]);return t.__ownerID?(t.size=o.size,t._map=o,t._list=a,t.__hash=void 0,t):gn(o,a)}hn.isOrderedMap=it,hn.prototype[I]=!0,hn.prototype.delete=hn.prototype.remove;var vn="@@__IMMUTABLE_STACK__@@";function bn(t){return Boolean(t&&t[vn])}var wn=function(t){function e(t){return null==t?xn():bn(t)?t:xn().pushAll(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("Stack [","]")},e.prototype.get=function(t,e){var n=this._head;for(t=u(this,t);n&&t--;)n=n.next;return n?n.value:e},e.prototype.peek=function(){return this._head&&this._head.value},e.prototype.push=function(){var t=arguments;if(0===arguments.length)return this;for(var e=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:t[r],next:n};return this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):Mn(e,n)},e.prototype.pushAll=function(e){if(0===(e=t(e)).size)return this;if(0===this.size&&bn(e))return e;Wt(e.size);var n=this.size,r=this._head;return e.__iterate((function(t){n++,r={value:t,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):Mn(n,r)},e.prototype.pop=function(){return this.slice(1)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):xn()},e.prototype.slice=function(e,n){if(p(e,n,this.size))return this;var r=f(e,this.size);if(d(n,this.size)!==this.size)return t.prototype.slice.call(this,e,n);for(var o=this.size-r,i=this._head;r--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):Mn(o,i)},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Mn(this.size,this._head,t,this.__hash):0===this.size?xn():(this.__ownerID=t,this.__altered=!1,this)},e.prototype.__iterate=function(t,e){var n=this;if(e)return new G(this.toArray()).__iterate((function(e,r){return t(e,r,n)}),e);for(var r=0,o=this._head;o&&!1!==t(o.value,r++,this);)o=o.next;return r},e.prototype.__iterator=function(t,e){if(e)return new G(this.toArray()).__iterator(t,e);var n=0,r=this._head;return new z((function(){if(r){var e=r.value;return r=r.next,R(t,n++,e)}return{value:void 0,done:!0}}))},e}(k);wn.isStack=bn;var _n,Sn=wn.prototype;function Mn(t,e,n,r){var o=Object.create(Sn);return o.size=t,o._head=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function xn(){return _n||(_n=Mn(0))}Sn[vn]=!0,Sn.shift=Sn.pop,Sn.unshift=Sn.push,Sn.unshiftAll=Sn.pushAll,Sn.withMutations=ke,Sn.wasAltered=Ce,Sn.asImmutable=De,Sn["@@transducer/init"]=Sn.asMutable=Ee,Sn["@@transducer/step"]=function(t,e){return t.unshift(e)},Sn["@@transducer/result"]=function(t){return t.asImmutable()};var kn="@@__IMMUTABLE_SET__@@";function En(t){return Boolean(t&&t[kn])}function Dn(t){return En(t)&&N(t)}function Cn(t,e){if(t===e)return!0;if(!m(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||b(t)!==b(e)||_(t)!==_(e)||N(t)!==N(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!S(t);if(N(t)){var r=t.entries();return e.every((function(t,e){var o=r.next().value;return o&&st(o[1],t)&&(n||st(o[0],e))}))&&r.next().done}var o=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{o=!0;var a=t;t=e,e=a}var s=!0,c=e.__iterate((function(e,r){if(n?!t.has(e):o?!st(e,t.get(r,i)):!st(t.get(r,i),e))return s=!1,!1}));return s&&t.size===c}function jn(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}function On(t){if(!t||"object"!=typeof t)return t;if(!m(t)){if(!Vt(t))return t;t=q(t)}if(b(t)){var e={};return t.__iterate((function(t,n){e[n]=On(t)})),e}var n=[];return t.__iterate((function(t){n.push(On(t))})),n}var Ln=function(t){function e(e){return null==e?zn():En(e)&&!N(e)?e:zn().withMutations((function(n){var r=t(e);Wt(r.size),r.forEach((function(t){return n.add(t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(x(t).keySeq())},e.intersect=function(t){return(t=M(t).toArray()).length?Nn.intersect.apply(e(t.pop()),t):zn()},e.union=function(t){return(t=M(t).toArray()).length?Nn.union.apply(e(t.pop()),t):zn()},e.prototype.toString=function(){return this.__toString("Set {","}")},e.prototype.has=function(t){return this._map.has(t)},e.prototype.add=function(t){return Tn(this,this._map.set(t,t))},e.prototype.remove=function(t){return Tn(this,this._map.remove(t))},e.prototype.clear=function(){return Tn(this,this._map.clear())},e.prototype.map=function(t,e){var n=this,r=[],o=[];return this.forEach((function(i){var a=t.call(e,i,i,n);a!==i&&(r.push(i),o.push(a))})),this.withMutations((function(t){r.forEach((function(e){return t.remove(e)})),o.forEach((function(e){return t.add(e)}))}))},e.prototype.union=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return 0===(e=e.filter((function(t){return 0!==t.size}))).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations((function(n){for(var r=0;r=0&&e=0&&n>>-15,461845907),e=ct(e<<13|e>>>-13,5),e=ct((e=(e+3864292196|0)^t)^e>>>16,2246822507),ut((e=ct(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(n?e?function(t,e){r=31*r+$n(pt(t),pt(e))|0}:function(t,e){r=r+$n(pt(t),pt(e))|0}:e?function(t){r=31*r+pt(t)|0}:function(t){r=r+pt(t)|0}),r)}(this))}});var Hn=M.prototype;Hn[y]=!0,Hn[A]=Hn.values,Hn.toJSON=Hn.toArray,Hn.__toStringMapper=Jt,Hn.inspect=Hn.toSource=function(){return this.toString()},Hn.chain=Hn.flatMap,Hn.contains=Hn.includes,jn(x,{flip:function(){return Ft(this,Dt(this))},mapEntries:function(t,e){var n=this,r=0;return Ft(this,this.toSeq().map((function(o,i){return t.call(e,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(t,e){var n=this;return Ft(this,this.toSeq().flip().map((function(r,o){return t.call(e,r,o,n)})).flip())}});var Yn=x.prototype;Yn[v]=!0,Yn[A]=Hn.entries,Yn.toJSON=Kn,Yn.__toStringMapper=function(t,e){return Jt(e)+": "+Jt(t)},jn(k,{toKeyedSeq:function(){return new Mt(this,!1)},filter:function(t,e){return Ft(this,Ot(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return Ft(this,jt(this,!1))},slice:function(t,e){return Ft(this,Lt(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(e||0,0),0===n||2===n&&!e)return this;t=f(t,t<0?this.count():this.size);var r=this.slice(0,t);return Ft(this,1===n?r:r.concat(qt(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.findLastEntry(t,e);return n?n[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return Ft(this,Tt(this,t,!1))},get:function(t,e){return(t=u(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,n){return n===t}),void 0,e)},has:function(t){return(t=u(this,t))>=0&&(void 0!==this.size?this.size===1/0||te?-1:0}function $n(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}qn[w]=!0,qn[I]=!0,jn(E,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),E.prototype.has=Hn.includes,E.prototype.contains=E.prototype.includes,jn(Q,x.prototype),jn(W,k.prototype),jn(Z,E.prototype);var tr=function(t){function e(t){return null==t?or():Dn(t)?t:or().withMutations((function(e){var n=E(t);Wt(n.size),n.forEach((function(t){return e.add(t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(x(t).keySeq())},e.prototype.toString=function(){return this.__toString("OrderedSet {","}")},e}(Ln);tr.isOrderedSet=Dn;var er,nr=tr.prototype;function rr(t,e){var n=Object.create(nr);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function or(){return er||(er=rr(yn()))}nr[I]=!0,nr.zip=qn.zip,nr.zipWith=qn.zipWith,nr.__empty=or,nr.__make=rr;var ir=function(t,e){var n,r=function(i){var a=this;if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var s=Object.keys(t),c=o._indices={};o._name=e,o._keys=s,o._defaultValues=t;for(var u=0;u2?[]:void 0,{"":t})}function hr(t,e,n,r,o,i){var a=Array.isArray(n)?W:Gt(n)?Q:null;if(a){if(~t.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");t.push(n),o&&""!==r&&o.push(r);var s=e.call(i,r,a(n).map((function(r,i){return hr(t,e,r,i,o,n)})),o&&o.slice());return t.pop(),o&&o.pop(),s}return n}function gr(t,e){return b(e)?e.toMap():e.toList()}var yr="4.0.0-rc.11",mr=M;const vr={version:yr,Collection:M,Iterable:M,Seq:q,Map:je,OrderedMap:hn,List:$e,Stack:wn,Set:Ln,OrderedSet:tr,Record:ir,Range:Bn,Repeat:fr,is:st,fromJS:dr,hash:pt,isImmutable:L,isCollection:m,isKeyed:b,isIndexed:_,isAssociative:S,isOrdered:N,isValueObject:at,isSeq:C,isList:Xe,isMap:ot,isOrderedMap:it,isStack:bn,isSet:En,isOrderedSet:Dn,isRecord:O,get:$t,getIn:Fn,has:Xt,hasIn:Un,merge:ge,mergeDeep:me,mergeWith:ye,mergeDeepWith:ve,remove:ee,removeIn:se,set:ne,setIn:ie,update:ue,updateIn:re}},966337:()=>{!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=window.document,e=[];r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},r.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},r.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},r.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},r.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(o(window,"resize",this._checkForIntersections,!0),o(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},r.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,i(window,"resize",this._checkForIntersections,!0),i(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},r.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var o=r.element,i=a(o),s=this._rootContainsTarget(o),c=r.entry,u=t&&s&&this._computeTargetAndRootIntersection(o,e),l=r.entry=new n({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:i,rootBounds:e,intersectionRect:u});c?t&&s?this._hasCrossedThreshold(c,l)&&this._queuedEntries.push(l):c&&c.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(e,n){if("none"!=window.getComputedStyle(e).display){for(var r,o,i,s,u,l,p,f,d=a(e),h=c(e),g=!1;!g;){var y=null,m=1==h.nodeType?window.getComputedStyle(h):{};if("none"==m.display)return;if(h==this.root||h==t?(g=!0,y=n):h!=t.body&&h!=t.documentElement&&"visible"!=m.overflow&&(y=a(h)),y&&(r=y,o=d,void 0,void 0,void 0,void 0,void 0,void 0,i=Math.max(r.top,o.top),s=Math.min(r.bottom,o.bottom),u=Math.max(r.left,o.left),f=s-i,!(d=(p=(l=Math.min(r.right,o.right))-u)>=0&&f>=0&&{top:i,bottom:s,left:u,right:l,width:p,height:f})))break;h=c(h)}return d}},r.prototype._getRootRect=function(){var e;if(this.root)e=a(this.root);else{var n=t.documentElement,r=t.body;e={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(e)},r.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},r.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(var o=0;o{t.exports=function(t,e){return t>e}},579783:t=>{t.exports=function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}},666379:(t,e,n)=>{var r=n(702958),o=n(301499);t.exports=function(t,e){return t===e||r(t,e,o(e))}},807654:(t,e,n)=>{var r=n(281763);t.exports=function(t){return r(t)&&t!=+t}},595825:(t,e,n)=>{var r=n(41848),o=n(662722),i=n(579783),a=n(640554),s=Math.max,c=Math.min;t.exports=function(t,e,n){var u=null==t?0:t.length;if(!u)return-1;var l=u;return void 0!==n&&(l=(l=a(n))<0?s(u+l,0):c(l,u-1)),e==e?i(t,e,l):r(t,o,l,!0)}},84753:(t,e,n)=>{var r=n(456029),o=n(753325),i=n(267206);t.exports=function(t,e){return t&&t.length?r(t,i(e,2),o):void 0}},748759:(t,e,n)=>{"use strict";n.d(e,{df:()=>v,YD:()=>b});var r=n(722122),o=n(419756),i=n(663349),a=n(393552),s=n(896156),c=n(124852),u=n(441143),l=n.n(u),p=new Map,f=new Map,d=new Map,h=0;function g(t,e,n){void 0===n&&(n={}),n.threshold||(n.threshold=0);var r=n,o=r.root,i=r.rootMargin,a=r.threshold;if(l()(!p.has(t),"react-intersection-observer: Trying to observe %s, but it's already being observed by another instance.\nMake sure the `ref` is only used by a single instance.\n\n%s",t),t){var s=function(t){return t?d.has(t)?d.get(t):(h+=1,d.set(t,h.toString()),d.get(t)+"_"):""}(o)+(i?a.toString()+"_"+i:a.toString()),c=f.get(s);c||(c=new IntersectionObserver(m,n),s&&f.set(s,c));var u={callback:e,element:t,inView:!1,observerId:s,observer:c,thresholds:c.thresholds||(Array.isArray(a)?a:[a])};return p.set(t,u),c.observe(t),u}}function y(t){if(t){var e=p.get(t);if(e){var n=e.observerId,r=e.observer,o=r.root;r.unobserve(t);var i=!1,a=!1;n&&p.forEach((function(e,r){r!==t&&(e.observerId===n&&(i=!0,a=!0),e.observer.root===o&&(a=!0))})),!a&&o&&d.delete(o),r&&!i&&r.disconnect(),p.delete(t)}}}function m(t){t.forEach((function(t){var e=t.isIntersecting,n=t.intersectionRatio,r=t.target,o=p.get(r);if(o&&n>=0){var i=o.thresholds.some((function(t){return o.inView?n>t:n>=t}));void 0!==e&&(i=i&&e),o.inView=i,o.callback(i,t)}}))}var v=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),o=0;o{"use strict";n.d(e,{QS:()=>g});var r=n(124852),o=n.n(r),i=n(675263),a=n.n(i);function s(){return s=Object.assign||function(t){for(var e=1;e1||t((function(t,n){n.trackMouse&&(document.addEventListener(l,r),document.addEventListener(p,i));var o=e.touches?e.touches[0]:e,a=f([o.clientX,o.clientY],n.rotationAngle);return s({},t,u,{eventData:{initial:[].concat(a),first:!0},xy:a,start:e.timeStamp||0})}))},r=function(e){t((function(t,n){if(!t.xy[0]||!t.xy[1]||e.touches&&e.touches.length>1)return t;var r=e.touches?e.touches[0]:e,o=f([r.clientX,r.clientY],n.rotationAngle),i=o[0],a=o[1],c=t.xy[0]-i,u=t.xy[1]-a,l=Math.abs(c),p=Math.abs(u),d=(e.timeStamp||0)-t.start,h=Math.sqrt(l*l+p*p)/(d||1);if(le?n>0?"Left":"Right":r>0?"Up":"Down"}(l,p,c,u),y=s({},t.eventData,{event:e,absX:l,absY:p,deltaX:c,deltaY:u,velocity:h,dir:g});n.onSwiping&&n.onSwiping(y);var m=!1;return(n.onSwiping||n.onSwiped||n["onSwiped"+g])&&(m=!0),m&&n.preventDefaultTouchmoveEvent&&n.trackTouch&&e.cancelable&&e.preventDefault(),s({},t,{eventData:s({},y,{first:!1}),swiping:!0})}))},o=function(e){t((function(t,n){var r;return t.swiping&&(r=s({},t.eventData,{event:e}),n.onSwiped&&n.onSwiped(r),n["onSwiped"+r.dir]&&n["onSwiped"+r.dir](r)),s({},t,u,{eventData:r})}))},i=function(t){document.removeEventListener(l,r),document.removeEventListener(p,i),o(t)},a=function(t){if(t&&t.addEventListener){var e=[["touchstart",n],["touchmove",r],["touchend",o]];return e.forEach((function(e){var n=e[0],r=e[1];return t.addEventListener(n,r)})),function(){return e.forEach((function(e){var n=e[0],r=e[1];return t.removeEventListener(n,r)}))}}},c={ref:function(e){null!==e&&t((function(t,n){if(t.el===e)return t;var r={};return t.el&&t.el!==e&&t.cleanUpTouch&&(t.cleanUpTouch(),r.cleanUpTouch=null),n.trackTouch&&e&&(r.cleanUpTouch=a(e)),s({},t,{el:e},r)}))}};return e.trackMouse&&(c.onMouseDown=n),[c,a]}function h(t,e,n){var r={};return!e.trackTouch&&t.cleanUpTouch?(t.cleanUpTouch(),r.cleanUpTouch=null):e.trackTouch&&!t.cleanUpTouch&&t.el&&(r.cleanUpTouch=n(t.el)),s({},t,r)}function g(t){var e=t.trackMouse,n=o().useRef(s({},u,{type:"hook"})),r=o().useRef();r.current=s({},c,t);var i=o().useMemo((function(){return d((function(t){return n.current=t(n.current,r.current)}),{trackMouse:e})}),[e]),a=i[0],l=i[1];return n.current=h(n.current,r.current,l),a}var y=function(t){var e,n;function r(e){var n;return(n=t.call(this,e)||this)._set=function(t){n.transientState=t(n.transientState,n.props)},n.transientState=s({},u,{type:"class"}),n}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.prototype.render=function(){var t=this.props,e=t.className,n=t.style,r=t.nodeName,i=void 0===r?"div":r,a=t.innerRef,c=t.children,u=t.trackMouse,l=d(this._set,{trackMouse:u}),p=l[0],f=l[1];this.transientState=h(this.transientState,this.props,f);var g=a?function(t){return a(t),p.ref(t)}:p.ref;return o().createElement(i,s({},p,{className:e,style:n,ref:g}),c)},r}(o().PureComponent);y.propTypes={onSwiped:a().func,onSwiping:a().func,onSwipedUp:a().func,onSwipedRight:a().func,onSwipedDown:a().func,onSwipedLeft:a().func,delta:a().number,preventDefaultTouchmoveEvent:a().bool,nodeName:a().string,trackMouse:a().bool,trackTouch:a().bool,innerRef:a().func,rotationAngle:a().number},y.defaultProps=c},264317:(t,e,n)=>{"use strict";var r=i(n(1174)),o=i(n(692381));function i(t){return t&&t.__esModule?t:{default:t}}t.exports={TransitionGroup:o.default,CSSTransitionGroup:r.default}},828878:(t,e,n)=>{"use strict";var r,o={fromESObservable:((r=n(49977))&&r.__esModule?r:{default:r}).default.Observable.from,toESObservable:function(t){return t}};e.Z=o},324889:function(t,e,n){!function(t,e){"use strict";if(!t.setImmediate){var n,r,o,i,a,s=1,c={},u=!1,l=t.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(t);p=p&&p.setTimeout?p:t,"[object process]"==={}.toString.call(t.process)?n=function(t){process.nextTick((function(){d(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?(i="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(i)&&d(+e.data.slice(i.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),n=function(e){t.postMessage(i+e,"*")}):t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){d(t.data)},n=function(t){o.port2.postMessage(t)}):l&&"onreadystatechange"in l.createElement("script")?(r=l.documentElement,n=function(t){var e=l.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):n=function(t){setTimeout(d,0,t)},p.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r{"use strict";n.d(e,{Z:()=>o});var r=function(){function t(t,e){var n=void 0!==e?e:{};this.version="3.6.6",this.userAgent=window.navigator.userAgent||"no `userAgent` provided by the browser",this.props={customStickyChangeNumber:n.customStickyChangeNumber||null,noStyles:n.noStyles||!1,stickyBitStickyOffset:n.stickyBitStickyOffset||0,parentClass:n.parentClass||"js-stickybit-parent",scrollEl:"string"==typeof n.scrollEl?document.querySelector(n.scrollEl):n.scrollEl||window,stickyClass:n.stickyClass||"js-is-sticky",stuckClass:n.stuckClass||"js-is-stuck",stickyChangeClass:n.stickyChangeClass||"js-is-sticky--change",useStickyClasses:n.useStickyClasses||!1,useFixed:n.useFixed||!1,useGetBoundingClientRect:n.useGetBoundingClientRect||!1,verticalPosition:n.verticalPosition||"top"},this.props.positionVal=this.definePosition()||"fixed",this.instances=[];var r=this.props,o=r.positionVal,i=r.verticalPosition,a=r.noStyles,s=r.stickyBitStickyOffset,c="top"!==i||a?"":s+"px",u="fixed"!==o?o:"";this.els="string"==typeof t?document.querySelectorAll(t):t,"length"in this.els||(this.els=[this.els]);for(var l=0;l=s&&"sticky"===o;b>i&&b=a&&b<=s;bs?m((function(){v(n,d)})):S&&m((function(){v(n,"stub",d)}))},e.update=function(t){void 0===t&&(t=null);for(var e=0;e{"use strict";var r=n(893379),o=n.n(r),i=n(369479);o()(i.Z,{insert:"head",singleton:!1}),i.Z.locals},42238:function(t,e,n){var r;!function(o,i){"use strict";var a="function",s="undefined",c="object",u="string",l="model",p="name",f="type",d="vendor",h="version",g="architecture",y="console",m="mobile",v="tablet",b="smarttv",w="wearable",_="embedded",S="Amazon",M="Apple",x="ASUS",k="BlackBerry",E="Google",D="Huawei",C="LG",j="Microsoft",O="Motorola",L="Samsung",I="Sony",N="Xiaomi",T="Zebra",A="Facebook",z=function(t){for(var e={},n=0;n0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):i:this[s[0]]=l?s[1].call(this,l,s[2]):i:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):i):this[s]=l||i;p+=2}},U=function(t,e){for(var n in e)if(typeof e[n]===c&&e[n].length>0){for(var r=0;r255?F(t,255):t,this},this.setUA(n),this};Y.VERSION="0.7.31",Y.BROWSER=z([p,h,"major"]),Y.CPU=z([g]),Y.DEVICE=z([l,d,f,y,m,b,v,w,_]),Y.ENGINE=Y.OS=z([p,h]),typeof e!==s?(t.exports&&(e=t.exports=Y),e.UAParser=Y):n.amdO?(r=function(){return Y}.call(e,n,e,t))===i||(t.exports=r):typeof o!==s&&(o.UAParser=Y);var q=typeof o!==s&&(o.jQuery||o.Zepto);if(q&&!q.ua){var Q=new Y;q.ua=Q.getResult(),q.ua.get=function(){return Q.getUA()},q.ua.set=function(t){Q.setUA(t);var e=Q.getResult();for(var n in e)q.ua[n]=e[n]}}}("object"==typeof window?window:this)},375933:(t,e,n)=>{var r;!function(){function o(t,e,n){return t.call.apply(t.bind,arguments)}function i(t,e,n){if(!t)throw Error();if(2=e.f?o():t.fonts.load(function(t){return k(t)+" "+t.f+"00 300px "+M(t.c)}(e.a),e.h).then((function(t){1<=t.length?r():setTimeout(i,25)}),(function(){o()}))}()})),o=null,i=new Promise((function(t,n){o=setTimeout(n,e.f)}));Promise.race([i,r]).then((function(){o&&(clearTimeout(o),o=null),e.g(e.a)}),(function(){e.j(e.a)}))};var z={D:"serif",C:"sans-serif"},R=null;function B(){if(null===R){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);R=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))}return R}function F(t,e,n){for(var r in z)if(z.hasOwnProperty(r)&&e===t.f[z[r]]&&n===t.f[z[r]])return!0;return!1}function P(t){var e,n=t.g.a.offsetWidth,r=t.h.a.offsetWidth;(e=n===t.f.serif&&r===t.f["sans-serif"])||(e=B()&&F(t,n,r)),e?s()-t.A>=t.w?B()&&F(t,n,r)&&(null===t.u||t.u.hasOwnProperty(t.a.c))?U(t,t.v):U(t,t.B):function(t){setTimeout(a((function(){P(this)}),t),50)}(t):U(t,t.v)}function U(t,e){setTimeout(a((function(){f(this.g.a),f(this.h.a),f(this.j.a),f(this.m.a),e(this.a)}),t),0)}function K(t,e,n){this.c=t,this.a=e,this.f=0,this.m=this.j=!1,this.s=n}A.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=s(),P(this)};var H=null;function Y(t){0==--t.f&&t.j&&(t.m?((t=t.a).g&&d(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),j(t,"active")):C(t.a))}function q(t){this.j=t,this.a=new O,this.h=0,this.f=this.g=!0}function Q(t,e,n,r,o){var i=0==--t.h;(t.f||t.g)&&setTimeout((function(){var t=o||null,s=r||{};if(0===n.length&&i)C(e.a);else{e.f+=n.length,i&&(e.j=i);var c,u=[];for(c=0;c{"use strict";t.r(n),t.d(n,{AlphaMode:()=>Br.Z,AlphaPipelineStage:()=>_f.Z,Animation:()=>bv.Z,AnimationViewModel:()=>Pv.Z,Appearance:()=>Wr.Z,ApproximateTerrainHeights:()=>o.Z,ArcGISTiledElevationTerrainProvider:()=>i.Z,ArcGisMapServerImageryProvider:()=>Vr.Z,ArcType:()=>a.Z,AssociativeArray:()=>r.Z,AttributeCompression:()=>s.Z,AttributeType:()=>kr.Z,AutoExposure:()=>Yr.Z,Autolinker:()=>gp.Z,AutomaticUniforms:()=>nr.Z,Axis:()=>Xr.Z,AxisAlignedBoundingBox:()=>l.Z,B3dmLoader:()=>xf.Z,B3dmParser:()=>qr.Z,BaseLayerPicker:()=>Dv.Z,BaseLayerPickerViewModel:()=>wv.Z,BatchTable:()=>Qr.Z,BatchTableHierarchy:()=>jr.Z,BatchTexture:()=>Kr.Z,BatchTexturePipelineStage:()=>Cf.Z,Batched3DModel3DTileContent:()=>Jr.Z,Billboard:()=>$r.Z,BillboardCollection:()=>es.Z,BillboardGraphics:()=>ai.Z,BillboardVisualizer:()=>ri.Z,BingMapsGeocoderService:()=>c.Z,BingMapsImageryProvider:()=>ns.Z,BingMapsStyle:()=>ts.Z,BlendEquation:()=>os.Z,BlendFunction:()=>is.Z,BlendOption:()=>as.Z,BlendingState:()=>rs.Z,BoundingRectangle:()=>d.Z,BoundingSphere:()=>m.Z,BoundingSphereState:()=>si.Z,BoxEmitter:()=>ss.Z,BoxGeometry:()=>u.Z,BoxGeometryUpdater:()=>li.Z,BoxGraphics:()=>ci.Z,BoxOutlineGeometry:()=>p.Z,BrdfLutGenerator:()=>ls.Z,Buffer:()=>tr.Z,BufferLoader:()=>cs.Z,BufferUsage:()=>or.Z,CPUStylingPipelineStage:()=>yf.Z,CallbackProperty:()=>di.Z,Camera:()=>ds.Z,CameraEventAggregator:()=>ms.Z,CameraEventType:()=>us.Z,CameraFlightPath:()=>ps.Z,Cartesian2:()=>f.Z,Cartesian3:()=>h.Z,Cartesian4:()=>v.Z,Cartographic:()=>g.Z,CartographicGeocoderService:()=>_.Z,CatmullRomSpline:()=>x.Z,Cesium3DTile:()=>fs.Z,Cesium3DTileBatchTable:()=>hs.Z,Cesium3DTileColorBlendMode:()=>vs.Z,Cesium3DTileContent:()=>gs.Z,Cesium3DTileContentFactory:()=>_s.Z,Cesium3DTileContentState:()=>xs.Z,Cesium3DTileContentType:()=>Cs.Z,Cesium3DTileFeature:()=>ys.Z,Cesium3DTileFeatureTable:()=>Ts.Z,Cesium3DTileOptimizationHint:()=>Es.Z,Cesium3DTileOptimizations:()=>zs.Z,Cesium3DTilePass:()=>Ss.Z,Cesium3DTilePassState:()=>As.Z,Cesium3DTilePointFeature:()=>bs.Z,Cesium3DTileRefine:()=>Ps.Z,Cesium3DTileStyle:()=>Ds.Z,Cesium3DTileStyleEngine:()=>ws.Z,Cesium3DTilesInspector:()=>Lv.Z,Cesium3DTilesInspectorViewModel:()=>Rv.Z,Cesium3DTileset:()=>Is.Z,Cesium3DTilesetCache:()=>Zs.Z,Cesium3DTilesetGraphics:()=>mi.Z,Cesium3DTilesetHeatmap:()=>Fs.Z,Cesium3DTilesetMetadata:()=>Ls.Z,Cesium3DTilesetMostDetailedTraversal:()=>Rs.Z,Cesium3DTilesetStatistics:()=>Ns.Z,Cesium3DTilesetTraversal:()=>Ms.Z,Cesium3DTilesetVisualizer:()=>ui.Z,CesiumInspector:()=>Nv.Z,CesiumInspectorViewModel:()=>Mv.Z,CesiumTerrainProvider:()=>C.Z,CesiumWidget:()=>Ov.Z,Check:()=>y.Z,CheckerboardMaterialProperty:()=>pi.Z,CircleEmitter:()=>Os.Z,CircleGeometry:()=>T.Z,CircleOutlineGeometry:()=>E.Z,ClassificationModel:()=>Hs.Z,ClassificationPrimitive:()=>Gs.Z,ClassificationType:()=>Us.Z,ClearCommand:()=>ir.Z,ClippingPlane:()=>Bs.Z,ClippingPlaneCollection:()=>Ws.Z,Clock:()=>z.Z,ClockRange:()=>S.Z,ClockStep:()=>A.Z,ClockViewModel:()=>Gp.Z,CloudCollection:()=>Vs.Z,CloudType:()=>ks.Z,Color:()=>b.Z,ColorBlendMode:()=>Ys.Z,ColorGeometryInstanceAttribute:()=>P.Z,ColorMaterialProperty:()=>fi.Z,Command:()=>Up.Z,ComponentDatatype:()=>D.Z,Composite3DTileContent:()=>Xs.Z,CompositeEntityCollection:()=>hi.Z,CompositeMaterialProperty:()=>vi.Z,CompositePositionProperty:()=>gi.Z,CompositeProperty:()=>_i.Z,CompressedTextureBuffer:()=>w.Z,ComputeCommand:()=>ar.Z,ComputeEngine:()=>rr.Z,ConditionsExpression:()=>qs.Z,ConeEmitter:()=>Qs.Z,ConstantPositionProperty:()=>xi.Z,ConstantProperty:()=>Ci.Z,Context:()=>sr.Z,ContextLimits:()=>lr.Z,CoplanarPolygonGeometry:()=>I.Z,CoplanarPolygonGeometryLibrary:()=>Z.Z,CoplanarPolygonOutlineGeometry:()=>F.Z,CornerType:()=>L.Z,CorridorGeometry:()=>R.Z,CorridorGeometryLibrary:()=>N.Z,CorridorGeometryUpdater:()=>yi.Z,CorridorGraphics:()=>Ti.Z,CorridorOutlineGeometry:()=>M.Z,Credit:()=>O.Z,CreditDisplay:()=>js.Z,CubeMap:()=>cr.Z,CubeMapFace:()=>dr.Z,CubicRealPolynomial:()=>H.Z,CullFace:()=>Ks.Z,CullingVolume:()=>G.Z,CumulusCloud:()=>Js.Z,CustomDataSource:()=>Ei.Z,CustomHeightmapTerrainProvider:()=>U.Z,CustomShader:()=>Tf.Z,CustomShaderMode:()=>Ef.Z,CustomShaderPipelineStage:()=>zf.Z,CylinderGeometry:()=>B.Z,CylinderGeometryLibrary:()=>W.Z,CylinderGeometryUpdater:()=>zi.Z,CylinderGraphics:()=>Si.Z,CylinderOutlineGeometry:()=>V.Z,CzmlDataSource:()=>Ai.Z,DataSource:()=>bi.Z,DataSourceClock:()=>Pi.Z,DataSourceCollection:()=>Di.Z,DataSourceDisplay:()=>wi.Z,DebugAppearance:()=>$s.Z,DebugCameraPrimitive:()=>el.Z,DebugInspector:()=>nl.Z,DebugModelMatrixPrimitive:()=>tl.Z,DefaultProxy:()=>k.Z,DepthFunction:()=>ol.Z,DepthPlane:()=>il.Z,DequantizationPipelineStage:()=>Sf.Z,DerivedCommand:()=>al.Z,DeveloperError:()=>Y.Z,DeviceOrientationCameraController:()=>rl.Z,DirectionalLight:()=>sl.Z,DiscardEmptyTileImagePolicy:()=>ll.Z,DiscardMissingTileImagePolicy:()=>cl.Z,DistanceDisplayCondition:()=>X.Z,DistanceDisplayConditionGeometryInstanceAttribute:()=>q.Z,DoubleEndedPriorityQueue:()=>Q.Z,DoublyLinkedList:()=>j.Z,DracoLoader:()=>dl.Z,DrawCommand:()=>mr.Z,DynamicGeometryBatch:()=>Ii.Z,DynamicGeometryUpdater:()=>Zi.Z,EarthOrientationParameters:()=>K.Z,EarthOrientationParametersSample:()=>J.Z,EasingFunction:()=>$.Z,EllipseGeometry:()=>ee.Z,EllipseGeometryLibrary:()=>ne.Z,EllipseGeometryUpdater:()=>Fi.Z,EllipseGraphics:()=>Li.Z,EllipseOutlineGeometry:()=>te.Z,Ellipsoid:()=>oe.Z,EllipsoidGeodesic:()=>ie.Z,EllipsoidGeometry:()=>ae.Z,EllipsoidGeometryUpdater:()=>Ri.Z,EllipsoidGraphics:()=>Ni.Z,EllipsoidOutlineGeometry:()=>re.Z,EllipsoidPrimitive:()=>ml.Z,EllipsoidRhumbLine:()=>se.Z,EllipsoidSurfaceAppearance:()=>ul.Z,EllipsoidTangentPlane:()=>le.Z,EllipsoidTerrainProvider:()=>ce.Z,EllipsoidalOccluder:()=>de.Z,Empty3DTileContent:()=>pl.Z,EncodedCartesian3:()=>me.Z,Entity:()=>Mi.Z,EntityCluster:()=>Oi.Z,EntityCollection:()=>Hi.Z,EntityView:()=>Gi.Z,Event:()=>ue.Z,EventHelper:()=>pe.Z,ExperimentalFeatures:()=>fe.Z,Expression:()=>fl.Z,ExpressionNodeType:()=>hl.Z,ExtrapolationType:()=>he.Z,FeatureDetection:()=>ve.Z,FeatureIdPipelineStage:()=>Af.Z,FeatureMetadata:()=>vl.Z,Fog:()=>gl.Z,ForEach:()=>qp.Z,FrameRateMonitor:()=>_l.Z,FrameState:()=>xl.Z,Framebuffer:()=>ur.Z,FramebufferManager:()=>pr.Z,FrustumCommands:()=>Cl.Z,FrustumGeometry:()=>ge.Z,FrustumOutlineGeometry:()=>_e.Z,Fullscreen:()=>xe.Z,FullscreenButton:()=>Hv.Z,FullscreenButtonViewModel:()=>Gv.Z,GeoJsonDataSource:()=>Ui.Z,GeocodeType:()=>Ce.Z,Geocoder:()=>Uv.Z,GeocoderService:()=>ye.Z,GeocoderViewModel:()=>Bv.Z,GeographicProjection:()=>Te.Z,GeographicTilingScheme:()=>Ee.Z,Geometry:()=>ze.Z,Geometry3DTileContent:()=>yl.Z,GeometryAttribute:()=>Se.Z,GeometryAttributes:()=>Ae.Z,GeometryFactory:()=>be.Z,GeometryInstance:()=>Pe.Z,GeometryInstanceAttribute:()=>De.Z,GeometryOffsetAttribute:()=>we.Z,GeometryPipeline:()=>Ie.Z,GeometryPipelineStage:()=>bf.Z,GeometryType:()=>Ze.Z,GeometryUpdater:()=>Bi.Z,GeometryVisualizer:()=>Wi.Z,GetFeatureInfoFormat:()=>Tl.Z,Globe:()=>El.Z,GlobeDepth:()=>zl.Z,GlobeSurfaceShaderSet:()=>Sl.Z,GlobeSurfaceTile:()=>Al.Z,GlobeSurfaceTileProvider:()=>bl.Z,GlobeTranslucency:()=>Pl.Z,GlobeTranslucencyFramebuffer:()=>Dl.Z,GlobeTranslucencyState:()=>wl.Z,Gltf3DTileContent:()=>Il.Z,GltfBufferViewLoader:()=>Zl.Z,GltfDracoLoader:()=>Fl.Z,GltfFeatureMetadataLoader:()=>Ll.Z,GltfImageLoader:()=>Rl.Z,GltfIndexBufferLoader:()=>Nl.Z,GltfJsonLoader:()=>Ml.Z,GltfLoader:()=>Ol.Z,GltfLoaderUtil:()=>Hl.Z,GltfTextureLoader:()=>Gl.Z,GltfVertexBufferLoader:()=>Ul.Z,GoogleEarthEnterpriseImageryProvider:()=>Bl.Z,GoogleEarthEnterpriseMapsProvider:()=>Wl.Z,GoogleEarthEnterpriseMetadata:()=>Fe.Z,GoogleEarthEnterpriseTerrainData:()=>Le.Z,GoogleEarthEnterpriseTerrainProvider:()=>Re.Z,GoogleEarthEnterpriseTileInformation:()=>Ne.Z,GregorianDate:()=>Me.Z,GridImageryProvider:()=>Vl.Z,GridMaterialProperty:()=>Vi.Z,GroundGeometryUpdater:()=>ki.Z,GroundPolylineGeometry:()=>Oe.Z,GroundPolylinePrimitive:()=>kl.Z,GroundPrimitive:()=>Yl.Z,GroupMetadata:()=>Xl.Z,HeadingPitchRange:()=>He.Z,HeadingPitchRoll:()=>Ge.Z,Heap:()=>Ue.Z,HeightReference:()=>ql.Z,HeightmapEncoding:()=>Be.Z,HeightmapTerrainData:()=>We.Z,HeightmapTessellator:()=>Ve.Z,HermitePolynomialApproximation:()=>ke.Z,HermiteSpline:()=>Ye.Z,HilbertOrder:()=>Xe.Z,HomeButton:()=>Wv.Z,HomeButtonViewModel:()=>Vv.Z,HorizontalOrigin:()=>Ql.Z,I3dmLoader:()=>Pf.Z,I3dmParser:()=>jl.Z,Iau2000Orientation:()=>qe.Z,Iau2006XysData:()=>Qe.Z,Iau2006XysSample:()=>je.Z,IauOrientationAxes:()=>Ke.Z,IauOrientationParameters:()=>Je.Z,ImageMaterialProperty:()=>Yi.Z,Imagery:()=>Kl.Z,ImageryLayer:()=>Jl.Z,ImageryLayerCollection:()=>$l.Z,ImageryLayerFeatureInfo:()=>ec.Z,ImageryProvider:()=>nc.Z,ImagerySplitDirection:()=>tc.Z,ImageryState:()=>oc.Z,Implicit3DTileContent:()=>ic.Z,ImplicitAvailabilityBitstream:()=>ac.Z,ImplicitSubdivisionScheme:()=>rc.Z,ImplicitSubtree:()=>sc.Z,ImplicitTileCoordinates:()=>lc.Z,ImplicitTileMetadata:()=>cc.Z,ImplicitTileset:()=>dc.Z,IndexDatatype:()=>$e.Z,InfoBox:()=>kv.Z,InfoBoxViewModel:()=>Yv.Z,InspectorShared:()=>Bp.Z,InstanceAttributeSemantic:()=>mc.Z,Instanced3DModel3DTileContent:()=>uc.Z,InstancingPipelineStage:()=>Df.Z,InterpolationAlgorithm:()=>en.Z,Intersect:()=>nn.Z,IntersectionTests:()=>tn.Z,Intersections2D:()=>on.Z,Interval:()=>an.Z,InvertClassification:()=>pc.Z,Ion:()=>rn.Z,IonGeocoderService:()=>sn.Z,IonImageryProvider:()=>fc.Z,IonResource:()=>ln.Z,IonWorldImageryStyle:()=>hc.Z,Iso8601:()=>cn.Z,JobScheduler:()=>vc.Z,JobType:()=>gc.Z,JsonMetadataTable:()=>_c.Z,JulianDate:()=>dn.Z,KTX2Transcoder:()=>mn.Z,KeyboardEventModifier:()=>un.Z,KmlCamera:()=>Xi.Z,KmlDataSource:()=>qi.Z,KmlLookAt:()=>Qi.Z,KmlTour:()=>ji.Z,KmlTourFlyTo:()=>Ki.Z,KmlTourWait:()=>Ji.Z,Label:()=>xc.Z,LabelCollection:()=>Cc.Z,LabelGraphics:()=>$i.Z,LabelStyle:()=>yc.Z,LabelVisualizer:()=>ea.Z,LagrangePolynomialApproximation:()=>pn.Z,LeapSecond:()=>fn.Z,Light:()=>Tc.Z,LightingModel:()=>wf.Z,LightingPipelineStage:()=>If.Z,LinearApproximation:()=>hn.Z,LinearSpline:()=>vn.Z,ManagedArray:()=>gn.Z,MapMode2D:()=>Ec.Z,MapProjection:()=>_n.Z,MapboxImageryProvider:()=>zc.Z,MapboxStyleImageryProvider:()=>Sc.Z,Material:()=>Ac.Z,MaterialAppearance:()=>bc.Z,MaterialPipelineStage:()=>Zf.Z,MaterialProperty:()=>na.Z,Math:()=>xn.Z,Matrix2:()=>Cn.Z,Matrix3:()=>yn.Z,Matrix4:()=>Tn.Z,MetadataClass:()=>Pc.Z,MetadataClassProperty:()=>Dc.Z,MetadataComponentType:()=>wc.Z,MetadataEntity:()=>Ic.Z,MetadataEnum:()=>Zc.Z,MetadataEnumValue:()=>Fc.Z,MetadataSchema:()=>Lc.Z,MetadataSchemaLoader:()=>Rc.Z,MetadataSemantic:()=>Nc.Z,MetadataTable:()=>Mc.Z,MetadataTableProperty:()=>Oc.Z,MetadataType:()=>Hc.Z,MipmapHint:()=>fr.Z,Model:()=>Gc.Z,ModelAlphaOptions:()=>Ff.Z,ModelAnimation:()=>Uc.Z,ModelAnimationCache:()=>Bc.Z,ModelAnimationCollection:()=>Wc.Z,ModelAnimationLoop:()=>Vc.Z,ModelAnimationState:()=>kc.Z,ModelColorPipelineStage:()=>Lf.Z,ModelComponents:()=>Yc.Z,ModelExperimental:()=>Rf.Z,ModelExperimental3DTileContent:()=>Nf.Z,ModelExperimentalNode:()=>Mf.Z,ModelExperimentalPrimitive:()=>Of.Z,ModelExperimentalSceneGraph:()=>Hf.Z,ModelExperimentalType:()=>Gf.Z,ModelExperimentalUtility:()=>Uf.Z,ModelFeature:()=>Bf.Z,ModelFeatureTable:()=>Wf.Z,ModelGraphics:()=>ta.Z,ModelInstance:()=>Xc.Z,ModelInstanceCollection:()=>qc.Z,ModelLightingOptions:()=>Vf.Z,ModelLoadResources:()=>Qc.Z,ModelMaterial:()=>jc.Z,ModelMatrixUpdateStage:()=>kf.Z,ModelMesh:()=>Kc.Z,ModelNode:()=>Jc.Z,ModelOutlineLoader:()=>$c.Z,ModelRenderResources:()=>Yf.Z,ModelUtility:()=>ed.Z,ModelVisualizer:()=>oa.Z,Moon:()=>nd.Z,MortonOrder:()=>En.Z,Multiple3DTileContent:()=>td.Z,NavigationHelpButton:()=>Xv.Z,NavigationHelpButtonViewModel:()=>qv.Z,NearFarScalar:()=>zn.Z,NeverTileDiscardPolicy:()=>od.Z,NodeRenderResources:()=>Xf.Z,NodeTransformationProperty:()=>ia.Z,OIT:()=>id.Z,Occluder:()=>Sn.Z,OctahedralProjectedCubeMap:()=>ad.Z,OffsetGeometryInstanceAttribute:()=>An.Z,OpenCageGeocoderService:()=>bn.Z,OpenStreetMapImageryProvider:()=>rd.Z,OrderedGroundPrimitiveCollection:()=>sd.Z,OrientedBoundingBox:()=>Pn.Z,OrthographicFrustum:()=>Dn.Z,OrthographicOffCenterFrustum:()=>wn.Z,Packable:()=>In.Z,PackableForInterpolation:()=>Zn.Z,Particle:()=>ld.Z,ParticleBurst:()=>cd.Z,ParticleEmitter:()=>dd.Z,ParticleSystem:()=>md.Z,Pass:()=>hr.Z,PassState:()=>vr.Z,PathGraphics:()=>aa.Z,PathVisualizer:()=>ra.Z,PeliasGeocoderService:()=>Fn.Z,PerInstanceColorAppearance:()=>ud.Z,PerformanceDisplay:()=>pd.Z,PerformanceWatchdog:()=>Qv.Z,PerformanceWatchdogViewModel:()=>jv.Z,PerspectiveFrustum:()=>Ln.Z,PerspectiveOffCenterFrustum:()=>Rn.Z,PickDepth:()=>fd.Z,PickDepthFramebuffer:()=>hd.Z,PickFramebuffer:()=>vd.Z,Picking:()=>gd.Z,PickingPipelineStage:()=>qf.Z,PinBuilder:()=>Nn.Z,PixelDatatype:()=>gr.Z,PixelFormat:()=>Mn.Z,Plane:()=>On.Z,PlaneGeometry:()=>Hn.Z,PlaneGeometryUpdater:()=>sa.Z,PlaneGraphics:()=>la.Z,PlaneOutlineGeometry:()=>Gn.Z,PntsLoader:()=>Qf.Z,PntsParser:()=>_d.Z,PointCloud:()=>xd.Z,PointCloud3DTileContent:()=>Cd.Z,PointCloudAttenuationPipelineStage:()=>jf.Z,PointCloudEyeDomeLighting:()=>yd.Z,PointCloudShading:()=>Td.Z,PointGraphics:()=>ca.Z,PointPrimitive:()=>Ed.Z,PointPrimitiveCollection:()=>zd.Z,PointVisualizer:()=>da.Z,PolygonGeometry:()=>Un.Z,PolygonGeometryLibrary:()=>Bn.Z,PolygonGeometryUpdater:()=>ma.Z,PolygonGraphics:()=>ua.Z,PolygonHierarchy:()=>Wn.Z,PolygonOutlineGeometry:()=>Vn.Z,PolygonPipeline:()=>kn.Z,Polyline:()=>Sd.Z,PolylineArrowMaterialProperty:()=>pa.Z,PolylineCollection:()=>Ad.Z,PolylineColorAppearance:()=>bd.Z,PolylineDashMaterialProperty:()=>fa.Z,PolylineGeometry:()=>Yn.Z,PolylineGeometryUpdater:()=>ha.Z,PolylineGlowMaterialProperty:()=>va.Z,PolylineGraphics:()=>ga.Z,PolylineMaterialAppearance:()=>Pd.Z,PolylineOutlineMaterialProperty:()=>_a.Z,PolylinePipeline:()=>Xn.Z,PolylineVisualizer:()=>xa.Z,PolylineVolumeGeometry:()=>qn.Z,PolylineVolumeGeometryLibrary:()=>Qn.Z,PolylineVolumeGeometryUpdater:()=>Ca.Z,PolylineVolumeGraphics:()=>ya.Z,PolylineVolumeOutlineGeometry:()=>jn.Z,PositionProperty:()=>Ta.Z,PositionPropertyArray:()=>Ea.Z,PostProcessStage:()=>Dd.Z,PostProcessStageCollection:()=>wd.Z,PostProcessStageComposite:()=>Id.Z,PostProcessStageLibrary:()=>Zd.Z,PostProcessStageSampleMode:()=>Fd.Z,PostProcessStageTextureCache:()=>Ld.Z,Primitive:()=>Rd.Z,PrimitiveCollection:()=>Nd.Z,PrimitivePipeline:()=>Md.Z,PrimitiveRenderResources:()=>Kf.Z,PrimitiveState:()=>Od.Z,PrimitiveType:()=>Kn.Z,ProjectionPicker:()=>Kv.Z,ProjectionPickerViewModel:()=>Jv.Z,Property:()=>za.Z,PropertyArray:()=>Sa.Z,PropertyBag:()=>Aa.Z,PropertyTable:()=>Hd.Z,PropertyTexture:()=>Gd.Z,PropertyTextureProperty:()=>Ud.Z,ProviderViewModel:()=>Iv.Z,Proxy:()=>Jn.Z,QuadraticRealPolynomial:()=>$n.Z,QuadtreeOccluders:()=>Bd.Z,QuadtreePrimitive:()=>Wd.Z,QuadtreeTile:()=>Vd.Z,QuadtreeTileLoadState:()=>kd.Z,QuadtreeTileProvider:()=>Yd.Z,QuantizedMeshTerrainData:()=>et.Z,QuarticRealPolynomial:()=>nt.Z,Quaternion:()=>tt.Z,QuaternionSpline:()=>ot.Z,Queue:()=>it.Z,Ray:()=>at.Z,Rectangle:()=>rt.Z,RectangleCollisionChecker:()=>st.Z,RectangleGeometry:()=>lt.Z,RectangleGeometryLibrary:()=>ct.Z,RectangleGeometryUpdater:()=>ba.Z,RectangleGraphics:()=>Pa.Z,RectangleOutlineGeometry:()=>dt.Z,ReferenceFrame:()=>mt.Z,ReferenceProperty:()=>Da.Z,RenderState:()=>_r.Z,Renderbuffer:()=>xr.Z,RenderbufferFormat:()=>Cr.Z,Request:()=>ut.Z,RequestErrorEvent:()=>pt.Z,RequestScheduler:()=>ft.Z,RequestState:()=>ht.Z,RequestType:()=>vt.Z,Resource:()=>gt.Z,ResourceCache:()=>Xd.Z,ResourceCacheKey:()=>qd.Z,ResourceLoader:()=>Qd.Z,ResourceLoaderState:()=>jd.Z,Rotation:()=>wa.Z,RuntimeError:()=>_t.Z,S2Cell:()=>xt.Z,SDFSettings:()=>Kd.Z,SampledPositionProperty:()=>Ia.Z,SampledProperty:()=>Za.Z,Sampler:()=>yr.Z,ScaledPositionProperty:()=>Fa.Z,Scene:()=>Jd.Z,SceneFramebuffer:()=>$d.Z,SceneMode:()=>em.Z,SceneModePicker:()=>$v.Z,SceneModePickerViewModel:()=>eg.Z,SceneTransforms:()=>nm.Z,SceneTransitioner:()=>tm.Z,ScreenSpaceCameraController:()=>om.Z,ScreenSpaceEventHandler:()=>Ct.Z,ScreenSpaceEventType:()=>yt.Z,SelectedFeatureIdPipelineStage:()=>Jf.Z,SelectionIndicator:()=>ng.Z,SelectionIndicatorViewModel:()=>tg.Z,ShaderBuilder:()=>Tr.Z,ShaderCache:()=>Er.Z,ShaderDestination:()=>zr.Z,ShaderFunction:()=>Sr.Z,ShaderProgram:()=>Ar.Z,ShaderSource:()=>br.Z,ShaderStruct:()=>Pr.Z,ShadowMap:()=>im.Z,ShadowMapShader:()=>am.Z,ShadowMode:()=>rm.Z,ShadowVolumeAppearance:()=>sm.Z,ShowGeometryInstanceAttribute:()=>Tt.Z,Simon1994PlanetaryPositions:()=>Et.Z,SimplePolylineGeometry:()=>zt.Z,SingleTileImageryProvider:()=>lm.Z,SkyAtmosphere:()=>cm.Z,SkyBox:()=>dm.Z,SphereEmitter:()=>mm.Z,SphereGeometry:()=>St.Z,SphereOutlineGeometry:()=>At.Z,Spherical:()=>bt.Z,Spline:()=>Pt.Z,StaticGeometryColorBatch:()=>La.Z,StaticGeometryPerMaterialBatch:()=>Ra.Z,StaticGroundGeometryColorBatch:()=>Na.Z,StaticGroundGeometryPerMaterialBatch:()=>Ma.Z,StaticGroundPolylinePerMaterialBatch:()=>Oa.Z,StaticOutlineGeometryBatch:()=>Ha.Z,StencilConstants:()=>um.Z,StencilFunction:()=>pm.Z,StencilOperation:()=>fm.Z,StripeMaterialProperty:()=>Ga.Z,StripeOrientation:()=>Ua.Z,StyleCommandsNeeded:()=>$f.Z,StyleExpression:()=>hm.Z,Sun:()=>vm.Z,SunLight:()=>gm.Z,SunPostProcess:()=>_m.Z,SupportedImageFormats:()=>xm.Z,SvgPathBindingHandler:()=>Wp.Z,TaskProcessor:()=>Dt.Z,TerrainData:()=>wt.Z,TerrainEncoding:()=>It.Z,TerrainExaggeration:()=>Zt.Z,TerrainFillMesh:()=>Cm.Z,TerrainMesh:()=>Ft.Z,TerrainOffsetProperty:()=>Ba.Z,TerrainProvider:()=>Lt.Z,TerrainQuantization:()=>Rt.Z,TerrainState:()=>ym.Z,Texture:()=>Dr.Z,TextureAtlas:()=>Tm.Z,TextureCache:()=>wr.Z,TextureMagnificationFilter:()=>Ir.Z,TextureManager:()=>eh.Z,TextureMinificationFilter:()=>Zr.Z,TextureUniform:()=>nh.Z,TextureWrap:()=>Fr.Z,TileAvailability:()=>Nt.Z,TileBoundingRegion:()=>Em.Z,TileBoundingS2Cell:()=>zm.Z,TileBoundingSphere:()=>Sm.Z,TileBoundingVolume:()=>Am.Z,TileCoordinatesImageryProvider:()=>bm.Z,TileDiscardPolicy:()=>Pm.Z,TileEdge:()=>Mt.Z,TileImagery:()=>Dm.Z,TileMapServiceImageryProvider:()=>wm.Z,TileMetadata:()=>Im.Z,TileOrientedBoundingBox:()=>Zm.Z,TileProviderError:()=>Ot.Z,TileReplacementQueue:()=>Fm.Z,TileSelectionResult:()=>Lm.Z,TileState:()=>Rm.Z,Tileset3DTileContent:()=>Nm.Z,TilesetMetadata:()=>Mm.Z,TilingScheme:()=>Ht.Z,TimeConstants:()=>Gt.Z,TimeDynamicImagery:()=>Om.Z,TimeDynamicPointCloud:()=>Hm.Z,TimeInterval:()=>Ut.Z,TimeIntervalCollection:()=>Bt.Z,TimeIntervalCollectionPositionProperty:()=>Wa.Z,TimeIntervalCollectionProperty:()=>Va.Z,TimeStandard:()=>Wt.Z,Timeline:()=>og.Z,TimelineHighlightRange:()=>ig.Z,TimelineTrack:()=>ag.Z,Tipsify:()=>Vt.Z,ToggleButtonViewModel:()=>Vp.Z,Tonemapper:()=>Gm.Z,Transforms:()=>kt.Z,TranslationRotationScale:()=>Yt.Z,TranslucentTileClassification:()=>Um.Z,TridiagonalSystemSolver:()=>Xt.Z,TrustedServers:()=>qt.Z,Tween:()=>_p.Z,TweenCollection:()=>Bm.Z,UniformState:()=>Lr.Z,UniformType:()=>th.Z,Uri:()=>xp.Z,UrlTemplateImageryProvider:()=>Wm.Z,VERSION:()=>Vx,VRButton:()=>rg.Z,VRButtonViewModel:()=>sg.Z,VRTheWorldTerrainProvider:()=>Qt.Z,VaryingType:()=>oh.Z,Vector3DTileBatch:()=>Vm.Z,Vector3DTileClampedPolylines:()=>km.Z,Vector3DTileContent:()=>Ym.Z,Vector3DTileGeometry:()=>Xm.Z,Vector3DTilePoints:()=>qm.Z,Vector3DTilePolygons:()=>Qm.Z,Vector3DTilePolylines:()=>jm.Z,Vector3DTilePrimitive:()=>Km.Z,VelocityOrientationProperty:()=>ka.Z,VelocityVectorProperty:()=>Ya.Z,VertexArray:()=>Rr.Z,VertexArrayFacade:()=>Nr.Z,VertexAttributeSemantic:()=>Jm.Z,VertexFormat:()=>jt.Z,VerticalOrigin:()=>$m.Z,VideoSynchronizer:()=>Kt.Z,View:()=>eu.Z,Viewer:()=>yg,ViewportQuad:()=>nu.Z,Visibility:()=>Jt.Z,Visualizer:()=>Xa.Z,VulkanConstants:()=>$t.Z,WallGeometry:()=>eo.Z,WallGeometryLibrary:()=>no.Z,WallGeometryUpdater:()=>qa.Z,WallGraphics:()=>Qa.Z,WallOutlineGeometry:()=>to.Z,WebGLConstants:()=>oo.Z,WebMapServiceImageryProvider:()=>tu.Z,WebMapTileServiceImageryProvider:()=>ou.Z,WebMercatorProjection:()=>io.Z,WebMercatorTilingScheme:()=>ao.Z,WeightSpline:()=>ro.Z,WindingOrder:()=>so.Z,_shadersAcesTonemappingStage:()=>tv.Z,_shadersAdditiveBlend:()=>ov.Z,_shadersAdjustTranslucentFS:()=>Tu.Z,_shadersAllMaterialAppearanceFS:()=>ah.Z,_shadersAllMaterialAppearanceVS:()=>rh.Z,_shadersAmbientOcclusionGenerate:()=>iv.Z,_shadersAmbientOcclusionModulate:()=>av.Z,_shadersAspectRampMaterial:()=>Ch.Z,_shadersBasicMaterialAppearanceFS:()=>sh.Z,_shadersBasicMaterialAppearanceVS:()=>lh.Z,_shadersBillboardCollectionFS:()=>Eu.Z,_shadersBillboardCollectionVS:()=>zu.Z,_shadersBlackAndWhite:()=>rv.Z,_shadersBloomComposite:()=>sv.Z,_shadersBrdfLutGeneratorFS:()=>Su.Z,_shadersBrightPass:()=>lv.Z,_shadersBrightness:()=>cv.Z,_shadersBumpMapMaterial:()=>yh.Z,_shadersCPUStylingStageFS:()=>Oh.Z,_shadersCPUStylingStageVS:()=>Hh.Z,_shadersCheckerboardMaterial:()=>Th.Z,_shadersCloudCollectionFS:()=>Au.Z,_shadersCloudCollectionVS:()=>bu.Z,_shadersCloudNoiseFS:()=>Pu.Z,_shadersCloudNoiseVS:()=>Du.Z,_shadersCompareAndPackTranslucentDepth:()=>wu.Z,_shadersCompositeOITFS:()=>Iu.Z,_shadersCompositeTranslucentClassification:()=>dv.Z,_shadersContrastBias:()=>mv.Z,_shadersCustomShaderStageFS:()=>Gh.Z,_shadersCustomShaderStageVS:()=>Uh.Z,_shadersCzmBuiltins:()=>xh.Z,_shadersDepthOfField:()=>uv.Z,_shadersDepthPlaneFS:()=>Zu.Z,_shadersDepthPlaneVS:()=>Fu.Z,_shadersDepthView:()=>pv.Z,_shadersDepthViewPacked:()=>fv,_shadersDotMaterial:()=>Eh.Z,_shadersEdgeDetection:()=>hv.Z,_shadersElevationBandMaterial:()=>zh.Z,_shadersElevationContourMaterial:()=>Sh.Z,_shadersElevationRampMaterial:()=>Ah.Z,_shadersEllipsoidFS:()=>Lu.Z,_shadersEllipsoidSurfaceAppearanceFS:()=>ch.Z,_shadersEllipsoidSurfaceAppearanceVS:()=>dh.Z,_shadersEllipsoidVS:()=>Ru.Z,_shadersFXAA:()=>vv.Z,_shadersFXAA3_11:()=>Nu.Z,_shadersFadeMaterial:()=>bh.Z,_shadersFeatureIdStageFS:()=>Bh.Z,_shadersFeatureIdStageVS:()=>Wh.Z,_shadersFilmicTonemapping:()=>gv.Z,_shadersGaussianBlur1D:()=>_v.Z,_shadersGeometryStageFS:()=>Vh.Z,_shadersGeometryStageVS:()=>kh.Z,_shadersGlobeFS:()=>Mu.Z,_shadersGlobeVS:()=>Ou.Z,_shadersGridMaterial:()=>Ph.Z,_shadersGroundAtmosphere:()=>Hu.Z,_shadersHSBToRGB:()=>c_.Z,_shadersHSLToRGB:()=>d_.Z,_shadersInstancingStageCommon:()=>Yh.Z,_shadersInstancingStageVS:()=>Xh.Z,_shadersLegacyInstancingStageVS:()=>qh.Z,_shadersLensFlare:()=>xv.Z,_shadersLightingStageFS:()=>Qh.Z,_shadersMaterialStageFS:()=>jh.Z,_shadersModelColorStageFS:()=>Kh.Z,_shadersModelExperimentalFS:()=>Jh.Z,_shadersModelExperimentalVS:()=>$h.Z,_shadersModifiedReinhardTonemapping:()=>Cv.Z,_shadersNightVision:()=>yv.Z,_shadersNormalMapMaterial:()=>Dh.Z,_shadersOctahedralProjectionAtlasFS:()=>Gu.Z,_shadersOctahedralProjectionFS:()=>Uu.Z,_shadersOctahedralProjectionVS:()=>Bu.Z,_shadersPassThrough:()=>Tv.Z,_shadersPassThroughDepth:()=>Ev.Z,_shadersPerInstanceColorAppearanceFS:()=>mh.Z,_shadersPerInstanceColorAppearanceVS:()=>uh.Z,_shadersPerInstanceFlatColorAppearanceFS:()=>ph.Z,_shadersPerInstanceFlatColorAppearanceVS:()=>fh.Z,_shadersPointCloudAttenuationStageVS:()=>ev.Z,_shadersPointCloudEyeDomeLighting:()=>zv.Z,_shadersPointPrimitiveCollectionFS:()=>Wu.Z,_shadersPointPrimitiveCollectionVS:()=>Vu.Z,_shadersPolylineArrowMaterial:()=>wh.Z,_shadersPolylineColorAppearanceVS:()=>hh.Z,_shadersPolylineCommon:()=>ku.Z,_shadersPolylineDashMaterial:()=>Ih.Z,_shadersPolylineFS:()=>Yu.Z,_shadersPolylineGlowMaterial:()=>Zh.Z,_shadersPolylineMaterialAppearanceVS:()=>vh.Z,_shadersPolylineOutlineMaterial:()=>Fh.Z,_shadersPolylineShadowVolumeFS:()=>Xu.Z,_shadersPolylineShadowVolumeMorphFS:()=>qu.Z,_shadersPolylineShadowVolumeMorphVS:()=>Qu.Z,_shadersPolylineShadowVolumeVS:()=>ju.Z,_shadersPolylineVS:()=>Ku.Z,_shadersRGBToHSB:()=>m_.Z,_shadersRGBToHSL:()=>u_.Z,_shadersRGBToXYZ:()=>p_.Z,_shadersReinhardTonemapping:()=>Sv.Z,_shadersReprojectWebMercatorFS:()=>Ju.Z,_shadersReprojectWebMercatorVS:()=>$u.Z,_shadersRimLightingMaterial:()=>Lh.Z,_shadersSelectedFeatureIdStageCommon:()=>nv.Z,_shadersShadowVolumeAppearanceFS:()=>ep.Z,_shadersShadowVolumeAppearanceVS:()=>np.Z,_shadersShadowVolumeFS:()=>tp.Z,_shadersSilhouette:()=>Av.Z,_shadersSkyAtmosphereCommon:()=>op.Z,_shadersSkyAtmosphereFS:()=>ip.Z,_shadersSkyAtmosphereVS:()=>ap.Z,_shadersSkyBoxFS:()=>rp.Z,_shadersSkyBoxVS:()=>sp.Z,_shadersSlopeRampMaterial:()=>Rh.Z,_shadersStripeMaterial:()=>Nh.Z,_shadersSunFS:()=>lp.Z,_shadersSunTextureFS:()=>cp.Z,_shadersSunVS:()=>dp.Z,_shadersTexturedMaterialAppearanceFS:()=>gh.Z,_shadersTexturedMaterialAppearanceVS:()=>_h.Z,_shadersVector3DTileClampedPolylinesFS:()=>mp.Z,_shadersVector3DTileClampedPolylinesVS:()=>up.Z,_shadersVector3DTilePolylinesVS:()=>pp.Z,_shadersVectorTileVS:()=>fp.Z,_shadersViewportQuadFS:()=>hp.Z,_shadersViewportQuadVS:()=>vp.Z,_shadersWater:()=>Mh.Z,_shadersXYZToRGB:()=>f_.Z,_shadersacesTonemapping:()=>h_.Z,_shadersalphaWeight:()=>v_.Z,_shadersantialias:()=>g_.Z,_shadersapproximateSphericalCoordinates:()=>__.Z,_shadersbackFacing:()=>x_.Z,_shadersbranchFreeTernary:()=>C_.Z,_shaderscascadeColor:()=>y_.Z,_shaderscascadeDistance:()=>T_.Z,_shaderscascadeMatrix:()=>E_.Z,_shaderscascadeWeights:()=>z_.Z,_shaderscolumbusViewMorph:()=>S_.Z,_shaderscomputePosition:()=>A_.Z,_shaderscosineAndSine:()=>b_.Z,_shadersdecompressTextureCoordinates:()=>P_.Z,_shadersdefaultPbrMaterial:()=>D_.Z,_shadersdegreesPerRadian:()=>Ag.Z,_shadersdepthClamp:()=>w_.Z,_shadersdepthRange:()=>bg.Z,_shadersdepthRangeStruct:()=>Lx.Z,_shaderseastNorthUpToEyeCoordinates:()=>I_.Z,_shadersellipsoidContainsPoint:()=>Z_.Z,_shadersellipsoidWgs84TextureCoordinates:()=>F_.Z,_shadersepsilon1:()=>Pg.Z,_shadersepsilon2:()=>Dg.Z,_shadersepsilon3:()=>wg.Z,_shadersepsilon4:()=>Ig.Z,_shadersepsilon5:()=>Zg.Z,_shadersepsilon6:()=>Fg.Z,_shadersepsilon7:()=>Lg.Z,_shadersequalsEpsilon:()=>L_.Z,_shaderseyeOffset:()=>R_.Z,_shaderseyeToWindowCoordinates:()=>N_.Z,_shadersfastApproximateAtan:()=>M_.Z,_shadersfog:()=>O_.Z,_shadersgammaCorrect:()=>H_.Z,_shadersgeodeticSurfaceNormal:()=>G_.Z,_shadersgetDefaultMaterial:()=>U_.Z,_shadersgetLambertDiffuse:()=>B_.Z,_shadersgetSpecular:()=>W_.Z,_shadersgetWaterNoise:()=>V_.Z,_shadershue:()=>k_.Z,_shadersinfinity:()=>Rg.Z,_shadersinverseGamma:()=>Y_.Z,_shadersisEmpty:()=>X_.Z,_shadersisFull:()=>q_.Z,_shaderslatitudeToWebMercatorFraction:()=>Q_.Z,_shaderslineDistance:()=>j_.Z,_shaderslinearToSrgb:()=>K_.Z,_shadersluminance:()=>J_.Z,_shadersmaterial:()=>Rx.Z,_shadersmaterialInput:()=>Nx.Z,_shadersmetersPerPixel:()=>$_.Z,_shadersmodelMaterial:()=>Mx.Z,_shadersmodelToWindowCoordinates:()=>ex.Z,_shadersmodelVertexOutput:()=>Ox.Z,_shadersmultiplyWithColorBalance:()=>nx.Z,_shadersnearFarScalar:()=>tx.Z,_shadersoctDecode:()=>ox.Z,_shadersoneOverPi:()=>Ng.Z,_shadersoneOverTwoPi:()=>Mg.Z,_shaderspackDepth:()=>ix.Z,_shaderspassCesium3DTile:()=>Og.Z,_shaderspassCesium3DTileClassification:()=>Hg.Z,_shaderspassCesium3DTileClassificationIgnoreShow:()=>Gg.Z,_shaderspassClassification:()=>Ug.Z,_shaderspassCompute:()=>Bg.Z,_shaderspassEnvironment:()=>Wg.Z,_shaderspassGlobe:()=>Vg.Z,_shaderspassOpaque:()=>kg.Z,_shaderspassOverlay:()=>Yg.Z,_shaderspassTerrainClassification:()=>Xg.Z,_shaderspassTranslucent:()=>qg.Z,_shaderspbrLighting:()=>ax.Z,_shaderspbrMetallicRoughnessMaterial:()=>rx.Z,_shaderspbrParameters:()=>Hx.Z,_shaderspbrSpecularGlossinessMaterial:()=>sx.Z,_shadersphong:()=>lx.Z,_shaderspi:()=>Qg.Z,_shaderspiOverFour:()=>jg.Z,_shaderspiOverSix:()=>Kg.Z,_shaderspiOverThree:()=>Jg.Z,_shaderspiOverTwo:()=>$g.Z,_shadersplaneDistance:()=>cx.Z,_shaderspointAlongRay:()=>dx.Z,_shadersradiansPerDegree:()=>e_.Z,_shadersray:()=>Gx.Z,_shadersrayEllipsoidIntersectionInterval:()=>mx.Z,_shadersraySegment:()=>Ux.Z,_shadersreadDepth:()=>ux.Z,_shadersreadNonPerspective:()=>px.Z,_shadersreverseLogDepth:()=>fx.Z,_shaderssampleOctahedralProjection:()=>hx.Z,_shaderssaturation:()=>vx.Z,_shaderssceneMode2D:()=>n_.Z,_shaderssceneMode3D:()=>t_.Z,_shaderssceneModeColumbusView:()=>o_.Z,_shaderssceneModeMorphing:()=>i_.Z,_shadersshadowDepthCompare:()=>gx.Z,_shadersshadowParameters:()=>Bx.Z,_shadersshadowVisibility:()=>_x.Z,_shaderssignNotZero:()=>xx.Z,_shaderssolarRadius:()=>a_.Z,_shaderssphericalHarmonics:()=>Cx.Z,_shaderssrgbToLinear:()=>yx.Z,_shaderstangentToEyeSpaceMatrix:()=>Tx.Z,_shadersthreePiOver2:()=>r_.Z,_shaderstransformPlane:()=>Ex.Z,_shaderstranslateRelativeToEye:()=>zx.Z,_shaderstranslucentPhong:()=>Sx.Z,_shaderstranspose:()=>Ax.Z,_shaderstwoPi:()=>s_.Z,_shadersunpackDepth:()=>bx.Z,_shadersunpackFloat:()=>Px.Z,_shadersvertexLogDepth:()=>Dx.Z,_shaderswebMercatorMaxLatitude:()=>l_.Z,_shaderswindowToEyeCoordinates:()=>wx.Z,_shaderswriteDepthClamp:()=>Ix.Z,_shaderswriteLogDepth:()=>Zx.Z,_shaderswriteNonPerspective:()=>Fx.Z,addBuffer:()=>Qp.Z,addDefaults:()=>jp.Z,addExtensionsRequired:()=>Kp.Z,addExtensionsUsed:()=>Jp.Z,addPipelineExtras:()=>$p.Z,addToArray:()=>ef.Z,appendForwardSlash:()=>lo.Z,arrayFill:()=>co.Z,arrayRemoveDuplicates:()=>mo.Z,arraySlice:()=>uo.Z,barycentricCoordinates:()=>po.Z,binarySearch:()=>fo.Z,bitmap_sdf:()=>Cp.Z,buildDrawCommands:()=>ih.Z,buildModuleUrl:()=>ho.Z,cancelAnimationFrame:()=>vo.Z,clone:()=>go.Z,combine:()=>_o.Z,computeFlyToLocationForRectangle:()=>iu.Z,createBillboardPointCallback:()=>au.Z,createCommand:()=>kp.Z,createDefaultImageryProviderViewModels:()=>Zv.Z,createDefaultTerrainProviderViewModels:()=>Fv.Z,createElevationBandMaterial:()=>ru.Z,createGuid:()=>xo.Z,createMaterialPropertyDescriptor:()=>ja.Z,createOsmBuildings:()=>su.Z,createPropertyDescriptor:()=>Ka.Z,createRawPropertyDescriptor:()=>Ja.Z,createTangentSpaceDebugPrimitive:()=>lu.Z,createTaskProcessorWorker:()=>Wx.Z,createUniform:()=>Mr.Z,createUniformArray:()=>Or.Z,createWorldImagery:()=>cu.Z,createWorldTerrain:()=>Co.Z,decodeGoogleEarthEnterpriseData:()=>yo.Z,decodeVectorPolylinePositions:()=>To.Z,defaultValue:()=>Eo.Z,defined:()=>zo.Z,deprecationWarning:()=>So.Z,destroyObject:()=>Ao.Z,dompurify:()=>yp.Z,earcut:()=>Tp.Z,exportKml:()=>$a.Z,findAccessorMinMax:()=>nf.Z,findGroupMetadata:()=>du.Z,forEachTextureInMaterial:()=>tf.Z,formatError:()=>bo.Z,freezeRenderState:()=>Hr.Z,getAbsoluteUri:()=>Po.Z,getAccessorByteStride:()=>of.Z,getBaseUri:()=>Do.Z,getBinaryAccessor:()=>mu.Z,getClipAndStyleCode:()=>uu.Z,getClippingFunction:()=>pu.Z,getComponentReader:()=>af.Z,getElement:()=>Yp.Z,getExtensionFromUri:()=>wo.Z,getFilenameFromUri:()=>Io.Z,getImagePixels:()=>Zo.Z,getJsonFromTypedArray:()=>Fo.Z,getMagic:()=>Lo.Z,getStringFromTypedArray:()=>Ro.Z,getTimestamp:()=>No.Z,grapheme_splitter:()=>Ep.Z,hasExtension:()=>fu.Z,heightReferenceOnEntityPropertyChanged:()=>er.Z,isBitSet:()=>Mo.Z,isBlobUri:()=>Oo.Z,isCrossOriginUrl:()=>Ho.Z,isDataUri:()=>Go.Z,isLeapYear:()=>Uo.Z,jsep:()=>zp.Z,kdbush:()=>Sp.Z,knockout:()=>Pp.Z,knockout_3_5_1:()=>Ap.Z,knockout_es5:()=>bp.Z,ktx_parse:()=>Dp.Z,lerc:()=>wp.Z,loadAndExecuteScript:()=>Bo.Z,loadCubeMap:()=>Gr.Z,loadImageFromTypedArray:()=>Wo.Z,loadKTX2:()=>Vo.Z,mergeSort:()=>ko.Z,mersenne_twister:()=>Ip.Z,meshoptimizer:()=>Zp.Z,modernizeShader:()=>Ur.Z,moveTechniqueRenderStates:()=>rf.Z,moveTechniquesToExtension:()=>sf.Z,nosleep:()=>Fp.Z,numberOfComponentsForType:()=>lf.Z,objectToQuery:()=>Yo.Z,oneTimeWarning:()=>Xo.Z,pako:()=>Lp.Z,parseBatchTable:()=>hu.Z,parseBoundingVolumeSemantics:()=>vu.Z,parseFeatureMetadata:()=>gu.Z,parseFeatureMetadataLegacy:()=>_u.Z,parseGlb:()=>cf.Z,parseResponseHeaders:()=>qo.Z,pointInsideTriangle:()=>Qo.Z,preprocess3DTileContent:()=>xu.Z,processModelMaterialsCommon:()=>Cu.Z,processPbrMaterials:()=>yu.Z,protobufjs:()=>Rp.Z,queryToObject:()=>jo.Z,rbush:()=>Np.Z,readAccessorPacked:()=>df.Z,removeExtensionsRequired:()=>mf.Z,removeExtensionsUsed:()=>uf.Z,removePipelineExtras:()=>pf.Z,removeUnusedElements:()=>ff.Z,requestAnimationFrame:()=>Ko.Z,sampleTerrain:()=>Jo.Z,sampleTerrainMostDetailed:()=>$o.Z,scaleToGeodeticSurface:()=>ei.Z,subdivideArray:()=>ni.Z,subscribeAndEvaluate:()=>Xp.Z,topojson:()=>Mp.Z,updateAccessorComponentTypes:()=>hf.Z,updateVersion:()=>vf.Z,usesExtension:()=>gf.Z,viewerCesium3DTilesInspectorMixin:()=>Tg.Z,viewerCesiumInspectorMixin:()=>Eg.Z,viewerDragDropMixin:()=>zg.Z,viewerPerformanceWatchdogMixin:()=>Sg.Z,webGLConstantToGlslType:()=>ti.Z,when:()=>Op.Z,wrapFunction:()=>oi.Z,writeTextToCanvas:()=>ii.Z,zip:()=>Hp.Z});var o=t(140537),i=t(897626),a=t(726307),r=t(878438),s=t(247976),l=t(474421),c=t(742931),d=t(152124),m=t(360791),u=t(96823),p=t(101985),f=t(337968),h=t(919382),v=t(114754),g=t(698907),_=t(251652),x=t(512815),C=t(948518),y=t(357299),T=t(979649),E=t(862463),z=t(322380),S=t(449745),A=t(27210),b=t(545125),P=t(182934),D=t(997274),w=t(442832),I=t(528233),Z=t(930392),F=t(770919),L=t(422956),R=t(622548),N=t(397422),M=t(588780),O=t(846748),H=t(312690),G=t(700725),U=t(101878),B=t(269570),W=t(478241),V=t(211884),k=t(601767),Y=t(446938),X=t(744497),q=t(231432),Q=t(41076),j=t(208014),K=t(61461),J=t(280040),$=t(696047),ee=t(664279),ne=t(39538),te=t(526301),oe=t(253316),ie=t(974390),ae=t(675758),re=t(737212),se=t(889702),le=t(460117),ce=t(392690),de=t(532901),me=t(275949),ue=t(197685),pe=t(242100),fe=t(186174),he=t(655633),ve=t(488802),ge=t(157788),_e=t(834069),xe=t(529850),Ce=t(640839),ye=t(622866),Te=t(921099),Ee=t(910946),ze=t(915067),Se=t(611843),Ae=t(451628),be=t(88588),Pe=t(952254),De=t(194218),we=t(215925),Ie=t(423035),Ze=t(593242),Fe=t(218954),Le=t(198596),Re=t(744971),Ne=t(690708),Me=t(834033),Oe=t(542787),He=t(651279),Ge=t(80388),Ue=t(908647),Be=t(41532),We=t(520715),Ve=t(411593),ke=t(492581),Ye=t(92317),Xe=t(440066),qe=t(518605),Qe=t(777365),je=t(996563),Ke=t(581223),Je=t(816353),$e=t(546135),en=t(739719),nn=t(360382),tn=t(66172),on=t(917261),an=t(62001),rn=t(496899),sn=t(634566),ln=t(822302),cn=t(29699),dn=t(40080),mn=t(907321),un=t(734676),pn=t(325463),fn=t(611323),hn=t(751432),vn=t(24238),gn=t(853755),_n=t(761095),xn=t(362017),Cn=t(631145),yn=t(165373),Tn=t(583917),En=t(190004),zn=t(530109),Sn=t(817200),An=t(81203),bn=t(529527),Pn=t(126874),Dn=t(610490),wn=t(736404),In=t(350598),Zn=t(91788),Fn=t(489935),Ln=t(118121),Rn=t(348808),Nn=t(684066),Mn=t(100883),On=t(634878),Hn=t(900478),Gn=t(979790),Un=t(357385),Bn=t(189662),Wn=t(943418),Vn=t(697358),kn=t(944593),Yn=t(370530),Xn=t(372944),qn=t(61435),Qn=t(677308),jn=t(447104),Kn=t(195809),Jn=t(905342),$n=t(935963),et=t(863314),nt=t(96994),tt=t(129782),ot=t(913601),it=t(188684),at=t(24401),rt=t(523501),st=t(384072),lt=t(236915),ct=t(582908),dt=t(947989),mt=t(656331),ut=t(261045),pt=t(773651),ft=t(336217),ht=t(316954),vt=t(690220),gt=t(795788),_t=t(50128),xt=t(820074),Ct=t(940263),yt=t(122818),Tt=t(208613),Et=t(846264),zt=t(251299),St=t(675250),At=t(974403),bt=t(972252),Pt=t(54791),Dt=t(890357),wt=t(774329),It=t(569269),Zt=t(957443),Ft=t(931079),Lt=t(950714),Rt=t(854948),Nt=t(969698),Mt=t(856776),Ot=t(723822),Ht=t(638634),Gt=t(202712),Ut=t(446680),Bt=t(796319),Wt=t(841501),Vt=t(381442),kt=t(358198),Yt=t(988131),Xt=t(547097),qt=t(127204),Qt=t(456336),jt=t(172674),Kt=t(950326),Jt=t(137134),$t=t(918506),eo=t(441774),no=t(633208),to=t(916953),oo=t(619287),io=t(786409),ao=t(310526),ro=t(445363),so=t(674833),lo=t(611065),co=t(170099),mo=t(554875),uo=t(155597),po=t(176650),fo=t(693465),ho=t(913216),vo=t(124193),go=t(556592),_o=t(307260),xo=t(416974),Co=t(500166),yo=t(194442),To=t(814415),Eo=t(406144),zo=t(426468),So=t(859071),Ao=t(54879),bo=t(347296),Po=t(47628),Do=t(151298),wo=t(44537),Io=t(812655),Zo=t(33709),Fo=t(987606),Lo=t(707009),Ro=t(482103),No=t(485083),Mo=t(204088),Oo=t(566448),Ho=t(532242),Go=t(241634),Uo=t(766898),Bo=t(734724),Wo=t(312562),Vo=t(210510),ko=t(457345),Yo=t(847300),Xo=t(594798),qo=t(851749),Qo=t(667240),jo=t(632207),Ko=t(966487),Jo=t(830738),$o=t(477274),ei=t(547810),ni=t(206275),ti=t(770155),oi=t(654357),ii=t(986384),ai=t(552759),ri=t(941878),si=t(120896),li=t(959267),ci=t(317814),di=t(88934),mi=t(183938),ui=t(765175),pi=t(393589),fi=t(141653),hi=t(524458),vi=t(944813),gi=t(755058),_i=t(711656),xi=t(408335),Ci=t(243110),yi=t(102708),Ti=t(703018),Ei=t(859751),zi=t(426376),Si=t(183839),Ai=t(744402),bi=t(343387),Pi=t(293392),Di=t(83417),wi=t(354139),Ii=t(730029),Zi=t(955701),Fi=t(119927),Li=t(146352),Ri=t(237290),Ni=t(817652),Mi=t(55316),Oi=t(783781),Hi=t(63553),Gi=t(653552),Ui=t(391222),Bi=t(710923),Wi=t(21525),Vi=t(488024),ki=t(585156),Yi=t(620392),Xi=t(722901),qi=t(973918),Qi=t(96753),ji=t(914474),Ki=t(995183),Ji=t(320865),$i=t(381544),ea=t(784482),na=t(332315),ta=t(822638),oa=t(123082),ia=t(299169),aa=t(35811),ra=t(466853),sa=t(830511),la=t(605837),ca=t(717178),da=t(387666),ma=t(960446),ua=t(563367),pa=t(682448),fa=t(921279),ha=t(851969),va=t(179078),ga=t(450457),_a=t(673162),xa=t(675218),Ca=t(255451),ya=t(705682),Ta=t(70143),Ea=t(395948),za=t(444147),Sa=t(795729),Aa=t(339637),ba=t(517833),Pa=t(511121),Da=t(685596),wa=t(387570),Ia=t(617899),Za=t(404420),Fa=t(500590),La=t(587636),Ra=t(330382),Na=t(869306),Ma=t(644618),Oa=t(383695),Ha=t(240629),Ga=t(125781),Ua=t(885144),Ba=t(68750),Wa=t(95355),Va=t(280297),ka=t(466668),Ya=t(655272),Xa=t(44114),qa=t(13668),Qa=t(937157),ja=t(489351),Ka=t(528531),Ja=t(852376),$a=t(55062),er=t(565544),nr=t(346656),tr=t(636807),or=t(50720),ir=t(20209),ar=t(138012),rr=t(331154),sr=t(128745),lr=t(994589),cr=t(161842),dr=t(735657),mr=t(247913),ur=t(884980),pr=t(273642),fr=t(375983),hr=t(842649),vr=t(823989),gr=t(687931),_r=t(364232),xr=t(501327),Cr=t(840925),yr=t(270013),Tr=t(154774),Er=t(770748),zr=t(30171),Sr=t(374340),Ar=t(928096),br=t(279427),Pr=t(824050),Dr=t(283044),wr=t(688257),Ir=t(59102),Zr=t(636664),Fr=t(655499),Lr=t(634958),Rr=t(676311),Nr=t(311638),Mr=t(509624),Or=t(29448),Hr=t(92026),Gr=t(456824),Ur=t(339476),Br=t(843257),Wr=t(23851),Vr=t(74173),kr=t(295189),Yr=t(191786),Xr=t(39213),qr=t(86138),Qr=t(525688),jr=t(906864),Kr=t(598577),Jr=t(53649),$r=t(959064),es=t(631754),ns=t(42118),ts=t(475397),os=t(758409),is=t(601195),as=t(593478),rs=t(451356),ss=t(169526),ls=t(867505),cs=t(357526),ds=t(333473),ms=t(121033),us=t(919963),ps=t(249781),fs=t(709294),hs=t(657045),vs=t(12441),gs=t(253026),_s=t(720095),xs=t(765492),Cs=t(58277),ys=t(268053),Ts=t(447490),Es=t(645982),zs=t(880172),Ss=t(992722),As=t(78355),bs=t(616594),Ps=t(286400),Ds=t(670281),ws=t(76689),Is=t(465210),Zs=t(336316),Fs=t(210434),Ls=t(851046),Rs=t(728471),Ns=t(462090),Ms=t(927272),Os=t(730709),Hs=t(438420),Gs=t(213821),Us=t(576049),Bs=t(488395),Ws=t(586949),Vs=t(889877),ks=t(427763),Ys=t(567485),Xs=t(723711),qs=t(46597),Qs=t(191555),js=t(521941),Ks=t(690466),Js=t(921673),$s=t(466168),el=t(492183),nl=t(890600),tl=t(692021),ol=t(329286),il=t(380539),al=t(169705),rl=t(654270),sl=t(653098),ll=t(20387),cl=t(119998),dl=t(947941),ml=t(314685),ul=t(927886),pl=t(71577),fl=t(389518),hl=t(993716),vl=t(549773),gl=t(234523),_l=t(695089),xl=t(410137),Cl=t(614288),yl=t(74753),Tl=t(44685),El=t(503113),zl=t(199708),Sl=t(448795),Al=t(93413),bl=t(936552),Pl=t(926625),Dl=t(23998),wl=t(995755),Il=t(918797),Zl=t(698335),Fl=t(322932),Ll=t(705989),Rl=t(39919),Nl=t(139776),Ml=t(657104),Ol=t(771918),Hl=t(169474),Gl=t(162810),Ul=t(743391),Bl=t(145049),Wl=t(29422),Vl=t(557543),kl=t(284283),Yl=t(975023),Xl=t(881417),ql=t(110499),Ql=t(121015),jl=t(957312),Kl=t(101088),Jl=t(522032),$l=t(791939),ec=t(103198),nc=t(616007),tc=t(201142),oc=t(649479),ic=t(361180),ac=t(47661),rc=t(940736),sc=t(560849),lc=t(980854),cc=t(354845),dc=t(548463),mc=t(232804),uc=t(479932),pc=t(22995),fc=t(632145),hc=t(382106),vc=t(683919),gc=t(495589),_c=t(81108),xc=t(218978),Cc=t(892512),yc=t(234320),Tc=t(90754),Ec=t(456157),zc=t(923102),Sc=t(599364),Ac=t(172795),bc=t(112546),Pc=t(211303),Dc=t(219783),wc=t(53194),Ic=t(726422),Zc=t(75970),Fc=t(679523),Lc=t(518201),Rc=t(789340),Nc=t(933197),Mc=t(388847),Oc=t(991085),Hc=t(594193),Gc=t(427570),Uc=t(108418),Bc=t(953328),Wc=t(191495),Vc=t(723710),kc=t(77880),Yc=t(148306),Xc=t(777304),qc=t(788485),Qc=t(774664),jc=t(747085),Kc=t(436848),Jc=t(839186),$c=t(626507),ed=t(152823),nd=t(840558),td=t(695185),od=t(194657),id=t(295811),ad=t(520459),rd=t(152736),sd=t(846888),ld=t(599132),cd=t(902311),dd=t(449114),md=t(458874),ud=t(578721),pd=t(12965),fd=t(382566),hd=t(439653),vd=t(29900),gd=t(959889),_d=t(607890),xd=t(878186),Cd=t(495898),yd=t(332270),Td=t(715696),Ed=t(906602),zd=t(997023),Sd=t(905057),Ad=t(946096),bd=t(843658),Pd=t(957049),Dd=t(868e3),wd=t(172366),Id=t(41998),Zd=t(209682),Fd=t(804919),Ld=t(743131),Rd=t(939800),Nd=t(417067),Md=t(138323),Od=t(305722),Hd=t(785049),Gd=t(752593),Ud=t(951346),Bd=t(900199),Wd=t(88029),Vd=t(505697),kd=t(437358),Yd=t(938930),Xd=t(182370),qd=t(967697),Qd=t(81967),jd=t(646754),Kd=t(882852),Jd=t(384744),$d=t(140931),em=t(506678),nm=t(867536),tm=t(285483),om=t(377109),im=t(971480),am=t(982550),rm=t(556198),sm=t(816723),lm=t(131303),cm=t(310665),dm=t(490601),mm=t(298774),um=t(42973),pm=t(786861),fm=t(301859),hm=t(94257),vm=t(657324),gm=t(826020),_m=t(760868),xm=t(819796),Cm=t(245789),ym=t(226948),Tm=t(816471),Em=t(119507),zm=t(47854),Sm=t(608034),Am=t(153295),bm=t(913002),Pm=t(992968),Dm=t(560743),wm=t(618050),Im=t(392382),Zm=t(950412),Fm=t(554642),Lm=t(970941),Rm=t(363331),Nm=t(865356),Mm=t(824589),Om=t(952296),Hm=t(776585),Gm=t(257698),Um=t(319685),Bm=t(399364),Wm=t(193866),Vm=t(844702),km=t(570867),Ym=t(195204),Xm=t(624491),qm=t(757730),Qm=t(696469),jm=t(566542),Km=t(388181),Jm=t(578765),$m=t(825497),eu=t(786453),nu=t(398880),tu=t(108738),ou=t(226227),iu=t(648830),au=t(440778),ru=t(189999),su=t(69807),lu=t(307591),cu=t(418683),du=t(292336),mu=t(324628),uu=t(488818),pu=t(394088),fu=t(105385),hu=t(331508),vu=t(503728),gu=t(423129),_u=t(571109),xu=t(921778),Cu=t(102610),yu=t(883748),Tu=t(275457),Eu=t(825021),zu=t(719949),Su=t(690709),Au=t(800914),bu=t(633858),Pu=t(894782),Du=t(980880),wu=t(453619),Iu=t(23581),Zu=t(361097),Fu=t(173286),Lu=t(338),Ru=t(127137),Nu=t(742579),Mu=t(855420),Ou=t(867629),Hu=t(955110),Gu=t(563431),Uu=t(63130),Bu=t(282758),Wu=t(779975),Vu=t(364527),ku=t(648298),Yu=t(782223),Xu=t(452529),qu=t(868123),Qu=t(479019),ju=t(253137),Ku=t(564557),Ju=t(173209),$u=t(667281),ep=t(995838),np=t(413354),tp=t(936342),op=t(810286),ip=t(35532),ap=t(479009),rp=t(808840),sp=t(717574),lp=t(426231),cp=t(48590),dp=t(180120),mp=t(129583),up=t(135643),pp=t(310871),fp=t(108696),hp=t(56625),vp=t(901133),gp=t(489676),_p=t(860303),xp=t(111840),Cp=t(16325),yp=t(923717),Tp=t(686094),Ep=t(603034),zp=t(455280),Sp=t(384457),Ap=t(787222),bp=t(687256),Pp=t(412096),Dp=t(359202),wp=t(545973),Ip=t(761677),Zp=t(339761),Fp=t(977950),Lp=t(976250),Rp=t(735581),Np=t(376308),Mp=t(495431),Op=t(527758),Hp=t(108840),Gp=t(57698),Up=t(506041),Bp=t(67913),Wp=t(214798),Vp=t(494741),kp=t(264890),Yp=t(78320),Xp=t(264280),qp=t(794130),Qp=t(97523),jp=t(19632),Kp=t(586284),Jp=t(805523),$p=t(943244),ef=t(48564),nf=t(691741),tf=t(629226),of=t(675622),af=t(306333),rf=t(852593),sf=t(715797),lf=t(597722),cf=t(761766),df=t(707843),mf=t(921145),uf=t(740802),pf=t(529104),ff=t(769369),hf=t(626809),vf=t(68822),gf=t(934804),_f=t(5021),xf=t(672287),Cf=t(117695),yf=t(911440),Tf=t(96897),Ef=t(592892),zf=t(277153),Sf=t(208476),Af=t(997100),bf=t(678362),Pf=t(379176),Df=t(910903),wf=t(926286),If=t(595552),Zf=t(697278),Ff=t(547797),Lf=t(266093),Rf=t(138745),Nf=t(908566),Mf=t(201992),Of=t(877313),Hf=t(936353),Gf=t(841811),Uf=t(10146),Bf=t(936853),Wf=t(782670),Vf=t(3645),kf=t(377894),Yf=t(429156),Xf=t(661101),qf=t(242695),Qf=t(779848),jf=t(953969),Kf=t(821431),Jf=t(146778),$f=t(806361),eh=t(418477),nh=t(765233),th=t(808168),oh=t(739080),ih=t(963737),ah=t(577050),rh=t(474988),sh=t(504752),lh=t(800697),ch=t(649902),dh=t(971711),mh=t(321141),uh=t(42935),ph=t(116119),fh=t(546715),hh=t(36775),vh=t(641537),gh=t(563598),_h=t(122423),xh=t(179173),Ch=t(256504),yh=t(139281),Th=t(51596),Eh=t(977906),zh=t(49948),Sh=t(239972),Ah=t(86546),bh=t(810691),Ph=t(543184),Dh=t(960543),wh=t(280131),Ih=t(819438),Zh=t(357016),Fh=t(136607),Lh=t(991811),Rh=t(867647),Nh=t(676049),Mh=t(22812),Oh=t(870614),Hh=t(951782),Gh=t(608751),Uh=t(379220),Bh=t(73457),Wh=t(62687),Vh=t(830588),kh=t(430492),Yh=t(771304),Xh=t(67301),qh=t(835200),Qh=t(567909),jh=t(615822),Kh=t(473279),Jh=t(409683),$h=t(661025),ev=t(742543),nv=t(98012),tv=t(625377),ov=t(453492),iv=t(337040),av=t(994822),rv=t(125119),sv=t(95990),lv=t(756873),cv=t(494497),dv=t(751297),mv=t(135234),uv=t(975315),pv=t(214098);const fv="uniform sampler2D u_depthTexture;\n\nvarying vec2 v_textureCoordinates;\n\nvoid main()\n{\n float z_window = czm_unpackDepth(texture2D(u_depthTexture, v_textureCoordinates));\n z_window = czm_reverseLogDepth(z_window);\n float n_range = czm_depthRange.near;\n float f_range = czm_depthRange.far;\n float z_ndc = (2.0 * z_window - n_range - f_range) / (f_range - n_range);\n float scale = pow(z_ndc * 0.5 + 0.5, 8.0);\n gl_FragColor = vec4(mix(vec3(0.0), vec3(1.0), scale), 1.0);\n}\n";var hv=t(140418),vv=t(840616),gv=t(178727),_v=t(263295),xv=t(805637),Cv=t(757817),yv=t(466153),Tv=t(426301),Ev=t(831222),zv=t(579790),Sv=t(727766),Av=t(635217),bv=t(841650),Pv=t(695453),Dv=t(158136),wv=t(217689),Iv=t(3470),Zv=t(541296),Fv=t(45231),Lv=t(598476),Rv=t(123971),Nv=t(964582),Mv=t(232300),Ov=t(612130),Hv=t(605517),Gv=t(615876),Uv=t(237354),Bv=t(384287),Wv=t(191692),Vv=t(332163),kv=t(729058),Yv=t(951490),Xv=t(370422),qv=t(349108),Qv=t(300217),jv=t(797994),Kv=t(428812),Jv=t(477107),$v=t(220440),eg=t(487153),ng=t(240303),tg=t(332889),og=t(618198),ig=t(816850),ag=t(922255),rg=t(203411),sg=t(502369);const lg=new m.Z;function cg(e){const n=e.clock;n.currentTime=e.timeJulian,n.shouldAnimate=!1}function dg(e){const n=e.getPropertyNames();let t="";return n.forEach((function(n){const o=e.getProperty(n);(0,zo.Z)(o)&&(t+=""+n+""+o+"")})),t.length>0&&(t=''+t+"
"),t}function mg(e){let n;const t=[],o=e.getPropertyNames();for(n=0;n900?(d=169,e<=900&&(c.style.width="169px",c.style.height="112px",this._animation.resize())):t>=600?(d=136,(e<600||e>900)&&(c.style.width="136px",c.style.height="90px",this._animation.resize())):(d=106,(e>600||0===e)&&(c.style.width="106px",c.style.height="70px",this._animation.resize())),m=d+5}if(a&&"hidden"!==window.getComputedStyle(this._timeline.container).visibility){const e=this._fullscreenButton,n=this._vrButton,t=l.container,o=t.style;u=t.clientHeight+3,o.left=d+"px";let i=0;(0,zo.Z)(e)&&(i+=e.container.clientWidth),(0,zo.Z)(n)&&(i+=n.container.clientWidth),o.right=i+"px",l.resize()}this._bottomContainer.style.left=m+"px",this._bottomContainer.style.bottom=u+"px",this._lastWidth=t,this._lastHeight=o},gg.prototype.forceResize=function(){this._lastWidth=0,this.resize()},gg.prototype.render=function(){this._cesiumWidget.render()},gg.prototype.isDestroyed=function(){return!1},gg.prototype.destroy=function(){let e;this.screenSpaceEventHandler.removeInputAction(yt.Z.LEFT_CLICK),this.screenSpaceEventHandler.removeInputAction(yt.Z.LEFT_DOUBLE_CLICK);const n=this.dataSources,t=n.length;for(e=0;e0?this.clockTrackedDataSource=e.get(n-1):this.clockTrackedDataSource=void 0}},gg.prototype.zoomTo=function(e,n){return _g(this,e,{offset:n},!1)},gg.prototype.flyTo=function(e,n){return _g(this,e,n,!0)},gg.prototype._postRender=function(){!function(e){const n=e._zoomTarget;if(!(0,zo.Z)(n)||e.scene.mode===em.Z.MORPHING)return;const t=e.scene,o=t.camera,i=e._zoomPromise,a=(0,Eo.Z)(e._zoomOptions,{});let r;if(n instanceof Is.Z)return n.readyPromise.then((function(){const t=n.boundingSphere;(0,zo.Z)(a.offset)||(a.offset=new He.Z(0,-.5,t.radius)),r={offset:a.offset,duration:a.duration,maximumHeight:a.maximumHeight,complete:function(){i.resolve(!0)},cancel:function(){i.resolve(!1)}},e._zoomIsFlight?o.flyToBoundingSphere(n.boundingSphere,r):(o.viewBoundingSphere(t,a.offset),o.lookAtTransform(Tn.Z.IDENTITY),i.resolve(!0)),xg(e)}));if(n instanceof Hm.Z)return n.readyPromise.then((function(){const t=n.boundingSphere;(0,zo.Z)(a.offset)||(a.offset=new He.Z(0,-.5,t.radius)),r={offset:a.offset,duration:a.duration,maximumHeight:a.maximumHeight,complete:function(){i.resolve(!0)},cancel:function(){i.resolve(!1)}},e._zoomIsFlight?o.flyToBoundingSphere(t,r):(o.viewBoundingSphere(t,a.offset),o.lookAtTransform(Tn.Z.IDENTITY),i.resolve(!0)),xg(e)}));if(n instanceof g.Z)return r={destination:t.mapProjection.ellipsoid.cartographicToCartesian(n),duration:a.duration,maximumHeight:a.maximumHeight,complete:function(){i.resolve(!0)},cancel:function(){i.resolve(!1)}},e._zoomIsFlight?o.flyTo(r):(o.setView(r),i.resolve(!0)),void xg(e);const s=n,l=[];for(let n=0,t=s.length;n{"use strict";t.d(n,{Z:()=>o});const o=function(e,n,t,o,i){this.xPoleWander=e,this.yPoleWander=n,this.xPoleOffset=t,this.yPoleOffset=o,this.ut1MinusUtc=i}},834033:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o=function(e,n,t,o,i,a,r,s){this.year=e,this.month=n,this.day=t,this.hour=o,this.minute=i,this.second=a,this.millisecond=r,this.isLeapSecond=s}},996563:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o=function(e,n,t){this.x=e,this.y=n,this.s=t}},816353:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o=function(e,n,t,o){this.rightAscension=e,this.declination=n,this.rotation=t,this.rotationRate=o}},611323:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o=function(e,n){this.julianDate=e,this.offset=n}},943418:(e,n,t)=>{"use strict";t.d(n,{Z:()=>i});var o=t(426468);const i=function(e,n){this.positions=(0,o.Z)(e)?e:[],this.holes=(0,o.Z)(n)?n:[]}},523501:(e,n,t)=>{"use strict";t.d(n,{Z:()=>m});var o=t(698907),i=t(357299),a=t(406144),r=t(426468),s=t(253316),l=t(362017);function c(e,n,t,o){this.west=(0,a.Z)(e,0),this.south=(0,a.Z)(n,0),this.east=(0,a.Z)(t,0),this.north=(0,a.Z)(o,0)}Object.defineProperties(c.prototype,{width:{get:function(){return c.computeWidth(this)}},height:{get:function(){return c.computeHeight(this)}}}),c.packedLength=4,c.pack=function(e,n,t){return i.Z.typeOf.object("value",e),i.Z.defined("array",n),t=(0,a.Z)(t,0),n[t++]=e.west,n[t++]=e.south,n[t++]=e.east,n[t]=e.north,n},c.unpack=function(e,n,t){return i.Z.defined("array",e),n=(0,a.Z)(n,0),(0,r.Z)(t)||(t=new c),t.west=e[n++],t.south=e[n++],t.east=e[n++],t.north=e[n],t},c.computeWidth=function(e){i.Z.typeOf.object("rectangle",e);let n=e.east;const t=e.west;return n=0?i.longitude:i.longitude+l.Z.TWO_PI;a=Math.min(a,r),s=Math.max(s,r)}return o-t>s-a&&(t=a,o=s,o>l.Z.PI&&(o-=l.Z.TWO_PI),t>l.Z.PI&&(t-=l.Z.TWO_PI)),(0,r.Z)(n)?(n.west=t,n.south=d,n.east=o,n.north=m,n):new c(t,d,o,m)},c.fromCartesianArray=function(e,n,t){i.Z.defined("cartesians",e),n=(0,a.Z)(n,s.Z.WGS84);let o=Number.MAX_VALUE,d=-Number.MAX_VALUE,m=Number.MAX_VALUE,u=-Number.MAX_VALUE,p=Number.MAX_VALUE,f=-Number.MAX_VALUE;for(let t=0,i=e.length;t=0?i.longitude:i.longitude+l.Z.TWO_PI;m=Math.min(m,a),u=Math.max(u,a)}return d-o>u-m&&(o=m,d=u,d>l.Z.PI&&(d-=l.Z.TWO_PI),o>l.Z.PI&&(o-=l.Z.TWO_PI)),(0,r.Z)(t)?(t.west=o,t.south=p,t.east=d,t.north=f,t):new c(o,p,d,f)},c.clone=function(e,n){if((0,r.Z)(e))return(0,r.Z)(n)?(n.west=e.west,n.south=e.south,n.east=e.east,n.north=e.north,n):new c(e.west,e.south,e.east,e.north)},c.equalsEpsilon=function(e,n,t){return t=(0,a.Z)(t,0),e===n||(0,r.Z)(e)&&(0,r.Z)(n)&&Math.abs(e.west-n.west)<=t&&Math.abs(e.south-n.south)<=t&&Math.abs(e.east-n.east)<=t&&Math.abs(e.north-n.north)<=t},c.prototype.clone=function(e){return c.clone(this,e)},c.prototype.equals=function(e){return c.equals(this,e)},c.equals=function(e,n){return e===n||(0,r.Z)(e)&&(0,r.Z)(n)&&e.west===n.west&&e.south===n.south&&e.east===n.east&&e.north===n.north},c.prototype.equalsEpsilon=function(e,n){return c.equalsEpsilon(this,e,n)},c.validate=function(e){i.Z.typeOf.object("rectangle",e);const n=e.north;i.Z.typeOf.number.greaterThanOrEquals("north",n,-l.Z.PI_OVER_TWO),i.Z.typeOf.number.lessThanOrEquals("north",n,l.Z.PI_OVER_TWO);const t=e.south;i.Z.typeOf.number.greaterThanOrEquals("south",t,-l.Z.PI_OVER_TWO),i.Z.typeOf.number.lessThanOrEquals("south",t,l.Z.PI_OVER_TWO);const o=e.west;i.Z.typeOf.number.greaterThanOrEquals("west",o,-Math.PI),i.Z.typeOf.number.lessThanOrEquals("west",o,Math.PI);const a=e.east;i.Z.typeOf.number.greaterThanOrEquals("east",a,-Math.PI),i.Z.typeOf.number.lessThanOrEquals("east",a,Math.PI)},c.southwest=function(e,n){return i.Z.typeOf.object("rectangle",e),(0,r.Z)(n)?(n.longitude=e.west,n.latitude=e.south,n.height=0,n):new o.Z(e.west,e.south)},c.northwest=function(e,n){return i.Z.typeOf.object("rectangle",e),(0,r.Z)(n)?(n.longitude=e.west,n.latitude=e.north,n.height=0,n):new o.Z(e.west,e.north)},c.northeast=function(e,n){return i.Z.typeOf.object("rectangle",e),(0,r.Z)(n)?(n.longitude=e.east,n.latitude=e.north,n.height=0,n):new o.Z(e.east,e.north)},c.southeast=function(e,n){return i.Z.typeOf.object("rectangle",e),(0,r.Z)(n)?(n.longitude=e.east,n.latitude=e.south,n.height=0,n):new o.Z(e.east,e.south)},c.center=function(e,n){i.Z.typeOf.object("rectangle",e);let t=e.east;const a=e.west;t0?o+=l.Z.TWO_PI:s0&&(s+=l.Z.TWO_PI),o=f?void 0:(0,r.Z)(t)?(t.west=m,t.south=p,t.east=u,t.north=f,t):new c(m,p,u,f)},c.simpleIntersection=function(e,n,t){i.Z.typeOf.object("rectangle",e),i.Z.typeOf.object("otherRectangle",n);const o=Math.max(e.west,n.west),a=Math.max(e.south,n.south),s=Math.min(e.east,n.east),l=Math.min(e.north,n.north);if(!(a>=l||o>=s))return(0,r.Z)(t)?(t.west=o,t.south=a,t.east=s,t.north=l,t):new c(o,a,s,l)},c.union=function(e,n,t){i.Z.typeOf.object("rectangle",e),i.Z.typeOf.object("otherRectangle",n),(0,r.Z)(t)||(t=new c);let o=e.east,a=e.west,s=n.east,d=n.west;o0?o+=l.Z.TWO_PI:s0&&(s+=l.Z.TWO_PI),oa||l.Z.equalsEpsilon(t,a,l.Z.EPSILON14))&&(t=e.south&&o<=e.north};const d=new o.Z;c.subsample=function(e,n,t,o){i.Z.typeOf.object("rectangle",e),n=(0,a.Z)(n,s.Z.WGS84),t=(0,a.Z)(t,0),(0,r.Z)(o)||(o=[]);let m=0;const u=e.north,p=e.south,f=e.east,h=e.west,v=d;v.height=t,v.longitude=h,v.latitude=u,o[m]=n.cartographicToCartesian(v,o[m]),m++,v.longitude=f,o[m]=n.cartographicToCartesian(v,o[m]),m++,v.latitude=p,o[m]=n.cartographicToCartesian(v,o[m]),m++,v.longitude=h,o[m]=n.cartographicToCartesian(v,o[m]),m++,v.latitude=u<0?u:p>0?p:0;for(let t=1;t<8;++t)v.longitude=-Math.PI+t*l.Z.PI_OVER_TWO,c.contains(e,v)&&(o[m]=n.cartographicToCartesian(v,o[m]),m++);return 0===v.latitude&&(v.longitude=h,o[m]=n.cartographicToCartesian(v,o[m]),m++,v.longitude=f,o[m]=n.cartographicToCartesian(v,o[m]),m++),o.length=m,o},c.MAX_VALUE=Object.freeze(new c(-Math.PI,-l.Z.PI_OVER_TWO,Math.PI,l.Z.PI_OVER_TWO));const m=c},940263:(e,n,t)=>{"use strict";t.d(n,{Z:()=>X});var o=t(878438),i=t(337968),a=t(406144),r=t(426468),s=t(54879),l=t(446938),c=t(488802),d=t(485083),m=t(734676),u=t(122818);function p(e,n,t){const o=e._element;if(o===document)return t.x=n.clientX,t.y=n.clientY,t;const i=o.getBoundingClientRect();return t.x=n.clientX-i.left,t.y=n.clientY-i.top,t}function f(e,n){let t=e;return(0,r.Z)(n)&&(t+="+"+n),t}function h(e){return e.shiftKey?m.Z.SHIFT:e.ctrlKey?m.Z.CTRL:e.altKey?m.Z.ALT:void 0}function v(e,n,t,o){function i(n){o(e,n)}c.Z.isInternetExplorer()?t.addEventListener(n,i,!1):t.addEventListener(n,i,{capture:!1,passive:!1}),e._removalFunctions.push((function(){t.removeEventListener(n,i,!1)}))}const g={position:new i.Z};function _(e){e._lastSeenTouchEvent=(0,d.Z)()}function x(e){return(0,d.Z)()-e._lastSeenTouchEvent>Y.mouseEmulationIgnoreMilliseconds}function C(e,n,t){const o=e.x-n.x,i=e.y-n.y;return Math.sqrt(o*o+i*i)0?-120*n.detail:n.wheelDelta;if(!(0,r.Z)(t))return;const o=h(n),i=e.getInputAction(u.Z.WHEEL,o);(0,r.Z)(i)&&(i(t),n.preventDefault())}function I(e,n){_(e);const t=n.changedTouches;let o;const a=t.length;let r,s;const l=e._positions;for(o=0;o{"use strict";t.d(n,{Z:()=>o});const o=Object.freeze({LEFT_DOWN:0,LEFT_UP:1,LEFT_CLICK:2,LEFT_DOUBLE_CLICK:3,RIGHT_DOWN:5,RIGHT_UP:6,RIGHT_CLICK:7,MIDDLE_DOWN:10,MIDDLE_UP:11,MIDDLE_CLICK:12,MOUSE_MOVE:15,WHEEL:16,PINCH_START:17,PINCH_END:18,PINCH_MOVE:19})},611065:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o=function(e){return 0!==e.length&&"/"===e[e.length-1]||(e+="/"),e}},416974:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){const n=16*Math.random()|0;return("x"===e?n:3&n|8).toString(16)}))}},426468:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o=function(e){return null!=e}},347296:(e,n,t)=>{"use strict";t.d(n,{Z:()=>i});var o=t(426468);const i=function(e){let n;const t=e.name,i=e.message;n=(0,o.Z)(t)&&(0,o.Z)(i)?t+": "+i:e.toString();const a=e.stack;return(0,o.Z)(a)&&(n+="\n"+a),n}},47628:(e,n,t)=>{"use strict";t.d(n,{Z:()=>l});var o=t(111840),i=t(406144),a=t(426468),r=t(446938);function s(e,n){let t;return"undefined"!=typeof document&&(t=document),s._implementation(e,n,t)}s._implementation=function(e,n,t){if(!(0,a.Z)(e))throw new r.Z("relative uri is required.");if(!(0,a.Z)(n)){if(void 0===t)return e;n=(0,i.Z)(t.baseURI,t.location.href)}const s=new o.Z(e);return""!==s.scheme()?s.toString():s.absoluteTo(n).toString()};const l=s},204088:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o=function(e,n){return 0!=(e&n)}},532242:(e,n,t)=>{"use strict";t.d(n,{Z:()=>a});var o=t(426468);let i;const a=function(e){(0,o.Z)(i)||(i=document.createElement("a")),i.href=window.location.href;const n=i.host,t=i.protocol;return i.href=e,i.href=i.href,t!==i.protocol||n!==i.host}},851749:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o=function(e){const n={};if(!e)return n;const t=e.split("\r\n");for(let e=0;e0){const e=o.substring(0,i),t=o.substring(i+2);n[e]=t}}return n}},722901:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o=function(e,n){this.position=e,this.headingPitchRoll=n}},96753:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o=function(e,n){this.position=e,this.headingPitchRange=n}},823989:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o=function(e){this.context=e,this.framebuffer=void 0,this.blendingEnabled=void 0,this.scissorTest=void 0,this.viewport=void 0}},92026:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o=function e(n){if("object"!=typeof n||null===n)return n;let t;const o=Object.keys(n);for(let i=0;i{"use strict";t.d(n,{Z:()=>o});const o=function(e){switch(e){case"SCALAR":return 1;case"VEC2":return 2;case"VEC3":return 3;case"VEC4":case"MAT2":return 4;case"MAT3":return 9;case"MAT4":return 16}}},921145:(e,n,t)=>{"use strict";t.d(n,{Z:()=>i});var o=t(426468);const i=function(e,n){const t=e.extensionsRequired;if((0,o.Z)(t)){const o=t.indexOf(n);o>=0&&t.splice(o,1),0===t.length&&delete e.extensionsRequired}}},740802:(e,n,t)=>{"use strict";t.d(n,{Z:()=>a});var o=t(921145),i=t(426468);const a=function(e,n){const t=e.extensionsUsed;if((0,i.Z)(t)){const i=t.indexOf(n);i>=0&&t.splice(i,1),(0,o.Z)(e,n),0===t.length&&delete e.extensionsUsed}}},934804:(e,n,t)=>{"use strict";t.d(n,{Z:()=>i});var o=t(426468);const i=function(e,n){return(0,o.Z)(e.extensionsUsed)&&e.extensionsUsed.indexOf(n)>=0}},547797:(e,n,t)=>{"use strict";function o(){this.pass=void 0,this.alphaMode=void 0,this.alphaCutoff=void 0}t.d(n,{Z:()=>o})},844702:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o=function(e){this.offset=e.offset,this.count=e.count,this.color=e.color,this.batchIds=e.batchIds}},440778:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o=function(e,n,t,o,i){return function(){const a=document.createElement("canvas"),r=i+2*o;a.height=a.width=r;const s=a.getContext("2d");return s.clearRect(0,0,r,r),0!==o&&(s.beginPath(),s.arc(r/2,r/2,r/2,0,2*Math.PI,!0),s.closePath(),s.fillStyle=t,s.fill(),e<1&&(s.save(),s.globalCompositeOperation="destination-out",s.beginPath(),s.arc(r/2,r/2,i/2,0,2*Math.PI,!0),s.closePath(),s.fillStyle="black",s.fill(),s.restore())),s.beginPath(),s.arc(r/2,r/2,i/2,0,2*Math.PI,!0),s.closePath(),s.fillStyle=n,s.fill(),a}}},292336:(e,n,t)=>{"use strict";t.d(n,{Z:()=>i});var o=t(105385);function i(e,n){if((0,o.Z)(n,"3DTILES_metadata")){const t=n.extensions["3DTILES_metadata"].group;return e.metadata.groups[t]}}},105385:(e,n,t)=>{"use strict";t.d(n,{Z:()=>i});var o=t(426468);function i(e,n){return(0,o.Z)(e)&&(0,o.Z)(e.extensions)&&(0,o.Z)(e.extensions[n])}},275457:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="#ifdef MRT\n#extension GL_EXT_draw_buffers : enable\n#endif\n\nuniform vec4 u_bgColor;\nuniform sampler2D u_depthTexture;\n\nvarying vec2 v_textureCoordinates;\n\nvoid main()\n{\n if (texture2D(u_depthTexture, v_textureCoordinates).r < 1.0)\n {\n#ifdef MRT\n gl_FragData[0] = u_bgColor;\n gl_FragData[1] = vec4(u_bgColor.a);\n#else\n gl_FragColor = u_bgColor;\n#endif\n return;\n }\n \n discard;\n}\n"},577050:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="varying vec3 v_positionEC;\nvarying vec3 v_normalEC;\nvarying vec3 v_tangentEC;\nvarying vec3 v_bitangentEC;\nvarying vec2 v_st;\n\nvoid main()\n{\n vec3 positionToEyeEC = -v_positionEC;\n mat3 tangentToEyeMatrix = czm_tangentToEyeSpaceMatrix(v_normalEC, v_tangentEC, v_bitangentEC);\n\n vec3 normalEC = normalize(v_normalEC);\n#ifdef FACE_FORWARD\n normalEC = faceforward(normalEC, vec3(0.0, 0.0, 1.0), -normalEC);\n#endif\n\n czm_materialInput materialInput;\n materialInput.normalEC = normalEC;\n materialInput.tangentToEyeMatrix = tangentToEyeMatrix;\n materialInput.positionToEyeEC = positionToEyeEC;\n materialInput.st = v_st;\n czm_material material = czm_getMaterial(materialInput);\n\n#ifdef FLAT\n gl_FragColor = vec4(material.diffuse + material.emission, material.alpha);\n#else\n gl_FragColor = czm_phong(normalize(positionToEyeEC), material, czm_lightDirectionEC);\n#endif\n}\n"},474988:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="attribute vec3 position3DHigh;\nattribute vec3 position3DLow;\nattribute vec3 normal;\nattribute vec3 tangent;\nattribute vec3 bitangent;\nattribute vec2 st;\nattribute float batchId;\n\nvarying vec3 v_positionEC;\nvarying vec3 v_normalEC;\nvarying vec3 v_tangentEC;\nvarying vec3 v_bitangentEC;\nvarying vec2 v_st;\n\nvoid main()\n{\n vec4 p = czm_computePosition();\n\n v_positionEC = (czm_modelViewRelativeToEye * p).xyz; // position in eye coordinates\n v_normalEC = czm_normal * normal; // normal in eye coordinates\n v_tangentEC = czm_normal * tangent; // tangent in eye coordinates\n v_bitangentEC = czm_normal * bitangent; // bitangent in eye coordinates\n v_st = st;\n\n gl_Position = czm_modelViewProjectionRelativeToEye * p;\n}\n"},504752:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="varying vec3 v_positionEC;\nvarying vec3 v_normalEC;\n\nvoid main()\n{\n vec3 positionToEyeEC = -v_positionEC;\n\n vec3 normalEC = normalize(v_normalEC);\n#ifdef FACE_FORWARD\n normalEC = faceforward(normalEC, vec3(0.0, 0.0, 1.0), -normalEC);\n#endif\n\n czm_materialInput materialInput;\n materialInput.normalEC = normalEC;\n materialInput.positionToEyeEC = positionToEyeEC;\n czm_material material = czm_getMaterial(materialInput);\n\n#ifdef FLAT\n gl_FragColor = vec4(material.diffuse + material.emission, material.alpha);\n#else\n gl_FragColor = czm_phong(normalize(positionToEyeEC), material, czm_lightDirectionEC);\n#endif\n}\n"},800697:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="attribute vec3 position3DHigh;\nattribute vec3 position3DLow;\nattribute vec3 normal;\nattribute float batchId;\n\nvarying vec3 v_positionEC;\nvarying vec3 v_normalEC;\n\nvoid main()\n{\n vec4 p = czm_computePosition();\n\n v_positionEC = (czm_modelViewRelativeToEye * p).xyz; // position in eye coordinates\n v_normalEC = czm_normal * normal; // normal in eye coordinates\n\n gl_Position = czm_modelViewProjectionRelativeToEye * p;\n}\n"},649902:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="varying vec3 v_positionMC;\nvarying vec3 v_positionEC;\nvarying vec2 v_st;\n\nvoid main()\n{\n czm_materialInput materialInput;\n\n vec3 normalEC = normalize(czm_normal3D * czm_geodeticSurfaceNormal(v_positionMC, vec3(0.0), vec3(1.0)));\n#ifdef FACE_FORWARD\n normalEC = faceforward(normalEC, vec3(0.0, 0.0, 1.0), -normalEC);\n#endif\n\n materialInput.s = v_st.s;\n materialInput.st = v_st;\n materialInput.str = vec3(v_st, 0.0);\n\n // Convert tangent space material normal to eye space\n materialInput.normalEC = normalEC;\n materialInput.tangentToEyeMatrix = czm_eastNorthUpToEyeCoordinates(v_positionMC, materialInput.normalEC);\n\n // Convert view vector to world space\n vec3 positionToEyeEC = -v_positionEC;\n materialInput.positionToEyeEC = positionToEyeEC;\n\n czm_material material = czm_getMaterial(materialInput);\n\n#ifdef FLAT\n gl_FragColor = vec4(material.diffuse + material.emission, material.alpha);\n#else\n gl_FragColor = czm_phong(normalize(positionToEyeEC), material, czm_lightDirectionEC);\n#endif\n}\n"},971711:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="attribute vec3 position3DHigh;\nattribute vec3 position3DLow;\nattribute vec2 st;\nattribute float batchId;\n\nvarying vec3 v_positionMC;\nvarying vec3 v_positionEC;\nvarying vec2 v_st;\n\nvoid main()\n{\n vec4 p = czm_computePosition();\n\n v_positionMC = position3DHigh + position3DLow; // position in model coordinates\n v_positionEC = (czm_modelViewRelativeToEye * p).xyz; // position in eye coordinates\n v_st = st;\n\n gl_Position = czm_modelViewProjectionRelativeToEye * p;\n}\n"},321141:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="varying vec3 v_positionEC;\nvarying vec3 v_normalEC;\nvarying vec4 v_color;\n\nvoid main()\n{\n vec3 positionToEyeEC = -v_positionEC;\n\n vec3 normalEC = normalize(v_normalEC);\n#ifdef FACE_FORWARD\n normalEC = faceforward(normalEC, vec3(0.0, 0.0, 1.0), -normalEC);\n#endif\n\n vec4 color = czm_gammaCorrect(v_color);\n\n czm_materialInput materialInput;\n materialInput.normalEC = normalEC;\n materialInput.positionToEyeEC = positionToEyeEC;\n czm_material material = czm_getDefaultMaterial(materialInput);\n material.diffuse = color.rgb;\n material.alpha = color.a;\n\n gl_FragColor = czm_phong(normalize(positionToEyeEC), material, czm_lightDirectionEC);\n}\n"},42935:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="attribute vec3 position3DHigh;\nattribute vec3 position3DLow;\nattribute vec3 normal;\nattribute vec4 color;\nattribute float batchId;\n\nvarying vec3 v_positionEC;\nvarying vec3 v_normalEC;\nvarying vec4 v_color;\n\nvoid main()\n{\n vec4 p = czm_computePosition();\n\n v_positionEC = (czm_modelViewRelativeToEye * p).xyz; // position in eye coordinates\n v_normalEC = czm_normal * normal; // normal in eye coordinates\n v_color = color;\n\n gl_Position = czm_modelViewProjectionRelativeToEye * p;\n}\n"},116119:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="varying vec4 v_color;\n\nvoid main()\n{\n gl_FragColor = czm_gammaCorrect(v_color);\n}\n"},546715:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="attribute vec3 position3DHigh;\nattribute vec3 position3DLow;\nattribute vec4 color;\nattribute float batchId;\n\nvarying vec4 v_color;\n\nvoid main()\n{\n vec4 p = czm_computePosition();\n\n v_color = color;\n\n gl_Position = czm_modelViewProjectionRelativeToEye * p;\n}\n"},36775:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="attribute vec3 position3DHigh;\nattribute vec3 position3DLow;\nattribute vec3 prevPosition3DHigh;\nattribute vec3 prevPosition3DLow;\nattribute vec3 nextPosition3DHigh;\nattribute vec3 nextPosition3DLow;\nattribute vec2 expandAndWidth;\nattribute vec4 color;\nattribute float batchId;\n\nvarying vec4 v_color;\n\nvoid main()\n{\n float expandDir = expandAndWidth.x;\n float width = abs(expandAndWidth.y) + 0.5;\n bool usePrev = expandAndWidth.y < 0.0;\n\n vec4 p = czm_computePosition();\n vec4 prev = czm_computePrevPosition();\n vec4 next = czm_computeNextPosition();\n\n float angle;\n vec4 positionWC = getPolylineWindowCoordinates(p, prev, next, expandDir, width, usePrev, angle);\n gl_Position = czm_viewportOrthographic * positionWC;\n\n v_color = color;\n}\n"},641537:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="attribute vec3 position3DHigh;\nattribute vec3 position3DLow;\nattribute vec3 prevPosition3DHigh;\nattribute vec3 prevPosition3DLow;\nattribute vec3 nextPosition3DHigh;\nattribute vec3 nextPosition3DLow;\nattribute vec2 expandAndWidth;\nattribute vec2 st;\nattribute float batchId;\n\nvarying float v_width;\nvarying vec2 v_st;\nvarying float v_polylineAngle;\n\nvoid main()\n{\n float expandDir = expandAndWidth.x;\n float width = abs(expandAndWidth.y) + 0.5;\n bool usePrev = expandAndWidth.y < 0.0;\n\n vec4 p = czm_computePosition();\n vec4 prev = czm_computePrevPosition();\n vec4 next = czm_computeNextPosition();\n\n float angle;\n vec4 positionWC = getPolylineWindowCoordinates(p, prev, next, expandDir, width, usePrev, angle);\n gl_Position = czm_viewportOrthographic * positionWC;\n\n v_width = width;\n v_st.s = st.s;\n v_st.t = czm_writeNonPerspective(st.t, gl_Position.w);\n v_polylineAngle = angle;\n}\n"},563598:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="varying vec3 v_positionEC;\nvarying vec3 v_normalEC;\nvarying vec2 v_st;\n\nvoid main()\n{\n vec3 positionToEyeEC = -v_positionEC;\n\n vec3 normalEC = normalize(v_normalEC);\n#ifdef FACE_FORWARD\n normalEC = faceforward(normalEC, vec3(0.0, 0.0, 1.0), -normalEC);\n#endif\n\n czm_materialInput materialInput;\n materialInput.normalEC = normalEC;\n materialInput.positionToEyeEC = positionToEyeEC;\n materialInput.st = v_st;\n czm_material material = czm_getMaterial(materialInput);\n\n#ifdef FLAT\n gl_FragColor = vec4(material.diffuse + material.emission, material.alpha);\n#else\n gl_FragColor = czm_phong(normalize(positionToEyeEC), material, czm_lightDirectionEC);\n#endif\n}\n"},122423:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="attribute vec3 position3DHigh;\nattribute vec3 position3DLow;\nattribute vec3 normal;\nattribute vec2 st;\nattribute float batchId;\n\nvarying vec3 v_positionEC;\nvarying vec3 v_normalEC;\nvarying vec2 v_st;\n\nvoid main()\n{\n vec4 p = czm_computePosition();\n\n v_positionEC = (czm_modelViewRelativeToEye * p).xyz; // position in eye coordinates\n v_normalEC = czm_normal * normal; // normal in eye coordinates\n v_st = st;\n\n gl_Position = czm_modelViewProjectionRelativeToEye * p;\n}\n"},825021:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o='#ifdef GL_OES_standard_derivatives\n#extension GL_OES_standard_derivatives : enable\n#endif\n\nuniform sampler2D u_atlas;\n\n#ifdef VECTOR_TILE\nuniform vec4 u_highlightColor;\n#endif\n\nvarying vec2 v_textureCoordinates;\nvarying vec4 v_pickColor;\nvarying vec4 v_color;\n\n#ifdef SDF\nvarying vec4 v_outlineColor;\nvarying float v_outlineWidth;\n#endif\n\n#ifdef FRAGMENT_DEPTH_CHECK\nvarying vec4 v_textureCoordinateBounds; // the min and max x and y values for the texture coordinates\nvarying vec4 v_originTextureCoordinateAndTranslate; // texture coordinate at the origin, billboard translate (used for label glyphs)\nvarying vec4 v_compressed; // x: eyeDepth, y: applyTranslate & enableDepthCheck, z: dimensions, w: imageSize\nvarying mat2 v_rotationMatrix;\n\nconst float SHIFT_LEFT12 = 4096.0;\nconst float SHIFT_LEFT1 = 2.0;\n\nconst float SHIFT_RIGHT12 = 1.0 / 4096.0;\nconst float SHIFT_RIGHT1 = 1.0 / 2.0;\n\nfloat getGlobeDepth(vec2 adjustedST, vec2 depthLookupST, bool applyTranslate, vec2 dimensions, vec2 imageSize)\n{\n vec2 lookupVector = imageSize * (depthLookupST - adjustedST);\n lookupVector = v_rotationMatrix * lookupVector;\n vec2 labelOffset = (dimensions - imageSize) * (depthLookupST - vec2(0.0, v_originTextureCoordinateAndTranslate.y)); // aligns label glyph with bounding rectangle. Will be zero for billboards because dimensions and imageSize will be equal\n\n vec2 translation = v_originTextureCoordinateAndTranslate.zw;\n\n if (applyTranslate)\n {\n // this is only needed for labels where the horizontal origin is not LEFT\n // it moves the label back to where the "origin" should be since all label glyphs are set to HorizontalOrigin.LEFT\n translation += (dimensions * v_originTextureCoordinateAndTranslate.xy * vec2(1.0, 0.0));\n }\n\n vec2 st = ((lookupVector - translation + labelOffset) + gl_FragCoord.xy) / czm_viewport.zw;\n float logDepthOrDepth = czm_unpackDepth(texture2D(czm_globeDepthTexture, st));\n\n if (logDepthOrDepth == 0.0)\n {\n return 0.0; // not on the globe\n }\n\n vec4 eyeCoordinate = czm_windowToEyeCoordinates(gl_FragCoord.xy, logDepthOrDepth);\n return eyeCoordinate.z / eyeCoordinate.w;\n}\n#endif\n\n\n#ifdef SDF\n\n// Get the distance from the edge of a glyph at a given position sampling an SDF texture.\nfloat getDistance(vec2 position)\n{\n return texture2D(u_atlas, position).r;\n}\n\n// Samples the sdf texture at the given position and produces a color based on the fill color and the outline.\nvec4 getSDFColor(vec2 position, float outlineWidth, vec4 outlineColor, float smoothing)\n{\n float distance = getDistance(position);\n\n if (outlineWidth > 0.0)\n {\n // Don\'t get the outline edge exceed the SDF_EDGE\n float outlineEdge = clamp(SDF_EDGE - outlineWidth, 0.0, SDF_EDGE);\n float outlineFactor = smoothstep(SDF_EDGE - smoothing, SDF_EDGE + smoothing, distance);\n vec4 sdfColor = mix(outlineColor, v_color, outlineFactor);\n float alpha = smoothstep(outlineEdge - smoothing, outlineEdge + smoothing, distance);\n return vec4(sdfColor.rgb, sdfColor.a * alpha);\n }\n else\n {\n float alpha = smoothstep(SDF_EDGE - smoothing, SDF_EDGE + smoothing, distance);\n return vec4(v_color.rgb, v_color.a * alpha);\n }\n}\n#endif\n\nvoid main()\n{\n vec4 color = texture2D(u_atlas, v_textureCoordinates);\n\n#ifdef SDF\n float outlineWidth = v_outlineWidth;\n vec4 outlineColor = v_outlineColor;\n\n // Get the current distance\n float distance = getDistance(v_textureCoordinates);\n\n#ifdef GL_OES_standard_derivatives\n float smoothing = fwidth(distance);\n // Get an offset that is approximately half the distance to the neighbor pixels\n // 0.354 is approximately half of 1/sqrt(2)\n vec2 sampleOffset = 0.354 * vec2(dFdx(v_textureCoordinates) + dFdy(v_textureCoordinates));\n\n // Sample the center point\n vec4 center = getSDFColor(v_textureCoordinates, outlineWidth, outlineColor, smoothing);\n\n // Sample the 4 neighbors\n vec4 color1 = getSDFColor(v_textureCoordinates + vec2(sampleOffset.x, sampleOffset.y), outlineWidth, outlineColor, smoothing);\n vec4 color2 = getSDFColor(v_textureCoordinates + vec2(-sampleOffset.x, sampleOffset.y), outlineWidth, outlineColor, smoothing);\n vec4 color3 = getSDFColor(v_textureCoordinates + vec2(-sampleOffset.x, -sampleOffset.y), outlineWidth, outlineColor, smoothing);\n vec4 color4 = getSDFColor(v_textureCoordinates + vec2(sampleOffset.x, -sampleOffset.y), outlineWidth, outlineColor, smoothing);\n\n // Equally weight the center sample and the 4 neighboring samples\n color = (center + color1 + color2 + color3 + color4)/5.0;\n#else\n // Just do a single sample\n float smoothing = 1.0/32.0;\n color = getSDFColor(v_textureCoordinates, outlineWidth, outlineColor, smoothing);\n#endif\n\n color = czm_gammaCorrect(color);\n#else\n color = czm_gammaCorrect(color);\n color *= czm_gammaCorrect(v_color);\n#endif\n\n// Fully transparent parts of the billboard are not pickable.\n#if !defined(OPAQUE) && !defined(TRANSLUCENT)\n if (color.a < 0.005) // matches 0/255 and 1/255\n {\n discard;\n }\n#else\n// The billboard is rendered twice. The opaque pass discards translucent fragments\n// and the translucent pass discards opaque fragments.\n#ifdef OPAQUE\n if (color.a < 0.995) // matches < 254/255\n {\n discard;\n }\n#else\n if (color.a >= 0.995) // matches 254/255 and 255/255\n {\n discard;\n }\n#endif\n#endif\n\n#ifdef VECTOR_TILE\n color *= u_highlightColor;\n#endif\n gl_FragColor = color;\n\n#ifdef LOG_DEPTH\n czm_writeLogDepth();\n#endif\n\n#ifdef FRAGMENT_DEPTH_CHECK\n float temp = v_compressed.y;\n\n temp = temp * SHIFT_RIGHT1;\n\n float temp2 = (temp - floor(temp)) * SHIFT_LEFT1;\n bool enableDepthTest = temp2 != 0.0;\n bool applyTranslate = floor(temp) != 0.0;\n\n if (enableDepthTest) {\n temp = v_compressed.z;\n temp = temp * SHIFT_RIGHT12;\n\n vec2 dimensions;\n dimensions.y = (temp - floor(temp)) * SHIFT_LEFT12;\n dimensions.x = floor(temp);\n\n temp = v_compressed.w;\n temp = temp * SHIFT_RIGHT12;\n\n vec2 imageSize;\n imageSize.y = (temp - floor(temp)) * SHIFT_LEFT12;\n imageSize.x = floor(temp);\n\n vec2 adjustedST = v_textureCoordinates - v_textureCoordinateBounds.xy;\n adjustedST = adjustedST / vec2(v_textureCoordinateBounds.z - v_textureCoordinateBounds.x, v_textureCoordinateBounds.w - v_textureCoordinateBounds.y);\n\n float epsilonEyeDepth = v_compressed.x + czm_epsilon1;\n float globeDepth1 = getGlobeDepth(adjustedST, v_originTextureCoordinateAndTranslate.xy, applyTranslate, dimensions, imageSize);\n\n // negative values go into the screen\n if (globeDepth1 != 0.0 && globeDepth1 > epsilonEyeDepth)\n {\n float globeDepth2 = getGlobeDepth(adjustedST, vec2(0.0, 1.0), applyTranslate, dimensions, imageSize); // top left corner\n if (globeDepth2 != 0.0 && globeDepth2 > epsilonEyeDepth)\n {\n float globeDepth3 = getGlobeDepth(adjustedST, vec2(1.0, 1.0), applyTranslate, dimensions, imageSize); // top right corner\n if (globeDepth3 != 0.0 && globeDepth3 > epsilonEyeDepth)\n {\n discard;\n }\n }\n }\n }\n#endif\n\n}\n'},719949:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="#ifdef INSTANCED\nattribute vec2 direction;\n#endif\nattribute vec4 positionHighAndScale;\nattribute vec4 positionLowAndRotation;\nattribute vec4 compressedAttribute0; // pixel offset, translate, horizontal origin, vertical origin, show, direction, texture coordinates (texture offset)\nattribute vec4 compressedAttribute1; // aligned axis, translucency by distance, image width\nattribute vec4 compressedAttribute2; // label horizontal origin, image height, color, pick color, size in meters, valid aligned axis, 13 bits free\nattribute vec4 eyeOffset; // eye offset in meters, 4 bytes free (texture range)\nattribute vec4 scaleByDistance; // near, nearScale, far, farScale\nattribute vec4 pixelOffsetScaleByDistance; // near, nearScale, far, farScale\nattribute vec4 compressedAttribute3; // distance display condition near, far, disableDepthTestDistance, dimensions\nattribute vec2 sdf; // sdf outline color (rgb) and width (w)\n#if defined(VERTEX_DEPTH_CHECK) || defined(FRAGMENT_DEPTH_CHECK)\nattribute vec4 textureCoordinateBoundsOrLabelTranslate; // the min and max x and y values for the texture coordinates\n#endif\n#ifdef VECTOR_TILE\nattribute float a_batchId;\n#endif\n\nvarying vec2 v_textureCoordinates;\n#ifdef FRAGMENT_DEPTH_CHECK\nvarying vec4 v_textureCoordinateBounds;\nvarying vec4 v_originTextureCoordinateAndTranslate;\nvarying vec4 v_compressed; // x: eyeDepth, y: applyTranslate & enableDepthCheck, z: dimensions, w: imageSize\nvarying mat2 v_rotationMatrix;\n#endif\n\nvarying vec4 v_pickColor;\nvarying vec4 v_color;\n#ifdef SDF\nvarying vec4 v_outlineColor;\nvarying float v_outlineWidth;\n#endif\n\nconst float UPPER_BOUND = 32768.0;\n\nconst float SHIFT_LEFT16 = 65536.0;\nconst float SHIFT_LEFT12 = 4096.0;\nconst float SHIFT_LEFT8 = 256.0;\nconst float SHIFT_LEFT7 = 128.0;\nconst float SHIFT_LEFT5 = 32.0;\nconst float SHIFT_LEFT3 = 8.0;\nconst float SHIFT_LEFT2 = 4.0;\nconst float SHIFT_LEFT1 = 2.0;\n\nconst float SHIFT_RIGHT12 = 1.0 / 4096.0;\nconst float SHIFT_RIGHT8 = 1.0 / 256.0;\nconst float SHIFT_RIGHT7 = 1.0 / 128.0;\nconst float SHIFT_RIGHT5 = 1.0 / 32.0;\nconst float SHIFT_RIGHT3 = 1.0 / 8.0;\nconst float SHIFT_RIGHT2 = 1.0 / 4.0;\nconst float SHIFT_RIGHT1 = 1.0 / 2.0;\n\nvec4 addScreenSpaceOffset(vec4 positionEC, vec2 imageSize, float scale, vec2 direction, vec2 origin, vec2 translate, vec2 pixelOffset, vec3 alignedAxis, bool validAlignedAxis, float rotation, bool sizeInMeters, out mat2 rotationMatrix, out float mpp)\n{\n // Note the halfSize cannot be computed in JavaScript because it is sent via\n // compressed vertex attributes that coerce it to an integer.\n vec2 halfSize = imageSize * scale * 0.5;\n halfSize *= ((direction * 2.0) - 1.0);\n\n vec2 originTranslate = origin * abs(halfSize);\n\n#if defined(ROTATION) || defined(ALIGNED_AXIS)\n if (validAlignedAxis || rotation != 0.0)\n {\n float angle = rotation;\n if (validAlignedAxis)\n {\n vec4 projectedAlignedAxis = czm_modelViewProjection * vec4(alignedAxis, 0.0);\n angle += sign(-projectedAlignedAxis.x) * acos(sign(projectedAlignedAxis.y) * (projectedAlignedAxis.y * projectedAlignedAxis.y) /\n (projectedAlignedAxis.x * projectedAlignedAxis.x + projectedAlignedAxis.y * projectedAlignedAxis.y));\n }\n\n float cosTheta = cos(angle);\n float sinTheta = sin(angle);\n rotationMatrix = mat2(cosTheta, sinTheta, -sinTheta, cosTheta);\n halfSize = rotationMatrix * halfSize;\n }\n else\n {\n rotationMatrix = mat2(1.0, 0.0, 0.0, 1.0);\n }\n#endif\n\n mpp = czm_metersPerPixel(positionEC);\n positionEC.xy += (originTranslate + halfSize) * czm_branchFreeTernary(sizeInMeters, 1.0, mpp);\n positionEC.xy += (translate + pixelOffset) * mpp;\n\n return positionEC;\n}\n\n#ifdef VERTEX_DEPTH_CHECK\nfloat getGlobeDepth(vec4 positionEC)\n{\n vec4 posWC = czm_eyeToWindowCoordinates(positionEC);\n\n float globeDepth = czm_unpackDepth(texture2D(czm_globeDepthTexture, posWC.xy / czm_viewport.zw));\n\n if (globeDepth == 0.0)\n {\n return 0.0; // not on the globe\n }\n\n vec4 eyeCoordinate = czm_windowToEyeCoordinates(posWC.xy, globeDepth);\n return eyeCoordinate.z / eyeCoordinate.w;\n}\n#endif\nvoid main()\n{\n // Modifying this shader may also require modifications to Billboard._computeScreenSpacePosition\n\n // unpack attributes\n vec3 positionHigh = positionHighAndScale.xyz;\n vec3 positionLow = positionLowAndRotation.xyz;\n float scale = positionHighAndScale.w;\n\n#if defined(ROTATION) || defined(ALIGNED_AXIS)\n float rotation = positionLowAndRotation.w;\n#else\n float rotation = 0.0;\n#endif\n\n float compressed = compressedAttribute0.x;\n\n vec2 pixelOffset;\n pixelOffset.x = floor(compressed * SHIFT_RIGHT7);\n compressed -= pixelOffset.x * SHIFT_LEFT7;\n pixelOffset.x -= UPPER_BOUND;\n\n vec2 origin;\n origin.x = floor(compressed * SHIFT_RIGHT5);\n compressed -= origin.x * SHIFT_LEFT5;\n\n origin.y = floor(compressed * SHIFT_RIGHT3);\n compressed -= origin.y * SHIFT_LEFT3;\n\n#ifdef FRAGMENT_DEPTH_CHECK\n vec2 depthOrigin = origin.xy;\n#endif\n origin -= vec2(1.0);\n\n float show = floor(compressed * SHIFT_RIGHT2);\n compressed -= show * SHIFT_LEFT2;\n\n#ifdef INSTANCED\n vec2 textureCoordinatesBottomLeft = czm_decompressTextureCoordinates(compressedAttribute0.w);\n vec2 textureCoordinatesRange = czm_decompressTextureCoordinates(eyeOffset.w);\n vec2 textureCoordinates = textureCoordinatesBottomLeft + direction * textureCoordinatesRange;\n#else\n vec2 direction;\n direction.x = floor(compressed * SHIFT_RIGHT1);\n direction.y = compressed - direction.x * SHIFT_LEFT1;\n\n vec2 textureCoordinates = czm_decompressTextureCoordinates(compressedAttribute0.w);\n#endif\n\n float temp = compressedAttribute0.y * SHIFT_RIGHT8;\n pixelOffset.y = -(floor(temp) - UPPER_BOUND);\n\n vec2 translate;\n translate.y = (temp - floor(temp)) * SHIFT_LEFT16;\n\n temp = compressedAttribute0.z * SHIFT_RIGHT8;\n translate.x = floor(temp) - UPPER_BOUND;\n\n translate.y += (temp - floor(temp)) * SHIFT_LEFT8;\n translate.y -= UPPER_BOUND;\n\n temp = compressedAttribute1.x * SHIFT_RIGHT8;\n float temp2 = floor(compressedAttribute2.w * SHIFT_RIGHT2);\n\n vec2 imageSize = vec2(floor(temp), temp2);\n\n#ifdef FRAGMENT_DEPTH_CHECK\n float labelHorizontalOrigin = floor(compressedAttribute2.w - (temp2 * SHIFT_LEFT2));\n float applyTranslate = 0.0;\n if (labelHorizontalOrigin != 0.0) // is a billboard, so set apply translate to false\n {\n applyTranslate = 1.0;\n labelHorizontalOrigin -= 2.0;\n depthOrigin.x = labelHorizontalOrigin + 1.0;\n }\n\n depthOrigin = vec2(1.0) - (depthOrigin * 0.5);\n#endif\n\n#ifdef EYE_DISTANCE_TRANSLUCENCY\n vec4 translucencyByDistance;\n translucencyByDistance.x = compressedAttribute1.z;\n translucencyByDistance.z = compressedAttribute1.w;\n\n translucencyByDistance.y = ((temp - floor(temp)) * SHIFT_LEFT8) / 255.0;\n\n temp = compressedAttribute1.y * SHIFT_RIGHT8;\n translucencyByDistance.w = ((temp - floor(temp)) * SHIFT_LEFT8) / 255.0;\n#endif\n\n#if defined(VERTEX_DEPTH_CHECK) || defined(FRAGMENT_DEPTH_CHECK)\n temp = compressedAttribute3.w;\n temp = temp * SHIFT_RIGHT12;\n\n vec2 dimensions;\n dimensions.y = (temp - floor(temp)) * SHIFT_LEFT12;\n dimensions.x = floor(temp);\n#endif\n\n#ifdef ALIGNED_AXIS\n vec3 alignedAxis = czm_octDecode(floor(compressedAttribute1.y * SHIFT_RIGHT8));\n temp = compressedAttribute2.z * SHIFT_RIGHT5;\n bool validAlignedAxis = (temp - floor(temp)) * SHIFT_LEFT1 > 0.0;\n#else\n vec3 alignedAxis = vec3(0.0);\n bool validAlignedAxis = false;\n#endif\n\n vec4 pickColor;\n vec4 color;\n\n temp = compressedAttribute2.y;\n temp = temp * SHIFT_RIGHT8;\n pickColor.b = (temp - floor(temp)) * SHIFT_LEFT8;\n temp = floor(temp) * SHIFT_RIGHT8;\n pickColor.g = (temp - floor(temp)) * SHIFT_LEFT8;\n pickColor.r = floor(temp);\n\n temp = compressedAttribute2.x;\n temp = temp * SHIFT_RIGHT8;\n color.b = (temp - floor(temp)) * SHIFT_LEFT8;\n temp = floor(temp) * SHIFT_RIGHT8;\n color.g = (temp - floor(temp)) * SHIFT_LEFT8;\n color.r = floor(temp);\n\n temp = compressedAttribute2.z * SHIFT_RIGHT8;\n bool sizeInMeters = floor((temp - floor(temp)) * SHIFT_LEFT7) > 0.0;\n temp = floor(temp) * SHIFT_RIGHT8;\n\n pickColor.a = (temp - floor(temp)) * SHIFT_LEFT8;\n pickColor /= 255.0;\n\n color.a = floor(temp);\n color /= 255.0;\n\n ///////////////////////////////////////////////////////////////////////////\n\n vec4 p = czm_translateRelativeToEye(positionHigh, positionLow);\n vec4 positionEC = czm_modelViewRelativeToEye * p;\n\n#if defined(FRAGMENT_DEPTH_CHECK) || defined(VERTEX_DEPTH_CHECK)\n float eyeDepth = positionEC.z;\n#endif\n\n positionEC = czm_eyeOffset(positionEC, eyeOffset.xyz);\n positionEC.xyz *= show;\n\n ///////////////////////////////////////////////////////////////////////////\n\n#if defined(EYE_DISTANCE_SCALING) || defined(EYE_DISTANCE_TRANSLUCENCY) || defined(EYE_DISTANCE_PIXEL_OFFSET) || defined(DISTANCE_DISPLAY_CONDITION) || defined(DISABLE_DEPTH_DISTANCE)\n float lengthSq;\n if (czm_sceneMode == czm_sceneMode2D)\n {\n // 2D camera distance is a special case\n // treat all billboards as flattened to the z=0.0 plane\n lengthSq = czm_eyeHeight2D.y;\n }\n else\n {\n lengthSq = dot(positionEC.xyz, positionEC.xyz);\n }\n#endif\n\n#ifdef EYE_DISTANCE_SCALING\n float distanceScale = czm_nearFarScalar(scaleByDistance, lengthSq);\n scale *= distanceScale;\n translate *= distanceScale;\n // push vertex behind near plane for clipping\n if (scale == 0.0)\n {\n positionEC.xyz = vec3(0.0);\n }\n#endif\n\n float translucency = 1.0;\n#ifdef EYE_DISTANCE_TRANSLUCENCY\n translucency = czm_nearFarScalar(translucencyByDistance, lengthSq);\n // push vertex behind near plane for clipping\n if (translucency == 0.0)\n {\n positionEC.xyz = vec3(0.0);\n }\n#endif\n\n#ifdef EYE_DISTANCE_PIXEL_OFFSET\n float pixelOffsetScale = czm_nearFarScalar(pixelOffsetScaleByDistance, lengthSq);\n pixelOffset *= pixelOffsetScale;\n#endif\n\n#ifdef DISTANCE_DISPLAY_CONDITION\n float nearSq = compressedAttribute3.x;\n float farSq = compressedAttribute3.y;\n if (lengthSq < nearSq || lengthSq > farSq)\n {\n positionEC.xyz = vec3(0.0);\n }\n#endif\n\n mat2 rotationMatrix;\n float mpp;\n\n#ifdef DISABLE_DEPTH_DISTANCE\n float disableDepthTestDistance = compressedAttribute3.z;\n#endif\n\n#ifdef VERTEX_DEPTH_CHECK\nif (lengthSq < disableDepthTestDistance) {\n float depthsilon = 10.0;\n\n vec2 labelTranslate = textureCoordinateBoundsOrLabelTranslate.xy;\n vec4 pEC1 = addScreenSpaceOffset(positionEC, dimensions, scale, vec2(0.0), origin, labelTranslate, pixelOffset, alignedAxis, validAlignedAxis, rotation, sizeInMeters, rotationMatrix, mpp);\n float globeDepth1 = getGlobeDepth(pEC1);\n\n if (globeDepth1 != 0.0 && pEC1.z + depthsilon < globeDepth1)\n {\n vec4 pEC2 = addScreenSpaceOffset(positionEC, dimensions, scale, vec2(0.0, 1.0), origin, labelTranslate, pixelOffset, alignedAxis, validAlignedAxis, rotation, sizeInMeters, rotationMatrix, mpp);\n float globeDepth2 = getGlobeDepth(pEC2);\n\n if (globeDepth2 != 0.0 && pEC2.z + depthsilon < globeDepth2)\n {\n vec4 pEC3 = addScreenSpaceOffset(positionEC, dimensions, scale, vec2(1.0), origin, labelTranslate, pixelOffset, alignedAxis, validAlignedAxis, rotation, sizeInMeters, rotationMatrix, mpp);\n float globeDepth3 = getGlobeDepth(pEC3);\n if (globeDepth3 != 0.0 && pEC3.z + depthsilon < globeDepth3)\n {\n positionEC.xyz = vec3(0.0);\n }\n }\n }\n}\n#endif\n\n positionEC = addScreenSpaceOffset(positionEC, imageSize, scale, direction, origin, translate, pixelOffset, alignedAxis, validAlignedAxis, rotation, sizeInMeters, rotationMatrix, mpp);\n gl_Position = czm_projection * positionEC;\n v_textureCoordinates = textureCoordinates;\n\n#ifdef LOG_DEPTH\n czm_vertexLogDepth();\n#endif\n\n#ifdef DISABLE_DEPTH_DISTANCE\n if (disableDepthTestDistance == 0.0 && czm_minimumDisableDepthTestDistance != 0.0)\n {\n disableDepthTestDistance = czm_minimumDisableDepthTestDistance;\n }\n\n if (disableDepthTestDistance != 0.0)\n {\n // Don't try to \"multiply both sides\" by w. Greater/less-than comparisons won't work for negative values of w.\n float zclip = gl_Position.z / gl_Position.w;\n bool clipped = (zclip < -1.0 || zclip > 1.0);\n if (!clipped && (disableDepthTestDistance < 0.0 || (lengthSq > 0.0 && lengthSq < disableDepthTestDistance)))\n {\n // Position z on the near plane.\n gl_Position.z = -gl_Position.w;\n#ifdef LOG_DEPTH\n v_depthFromNearPlusOne = 1.0;\n#endif\n }\n }\n#endif\n\n#ifdef FRAGMENT_DEPTH_CHECK\n if (sizeInMeters) {\n translate /= mpp;\n dimensions /= mpp;\n imageSize /= mpp;\n }\n\n#if defined(ROTATION) || defined(ALIGNED_AXIS)\n v_rotationMatrix = rotationMatrix;\n#else\n v_rotationMatrix = mat2(1.0, 0.0, 0.0, 1.0);\n#endif\n\n float enableDepthCheck = 0.0;\n if (lengthSq < disableDepthTestDistance)\n {\n enableDepthCheck = 1.0;\n }\n\n float dw = floor(clamp(dimensions.x, 0.0, SHIFT_LEFT12));\n float dh = floor(clamp(dimensions.y, 0.0, SHIFT_LEFT12));\n\n float iw = floor(clamp(imageSize.x, 0.0, SHIFT_LEFT12));\n float ih = floor(clamp(imageSize.y, 0.0, SHIFT_LEFT12));\n\n v_compressed.x = eyeDepth;\n v_compressed.y = applyTranslate * SHIFT_LEFT1 + enableDepthCheck;\n v_compressed.z = dw * SHIFT_LEFT12 + dh;\n v_compressed.w = iw * SHIFT_LEFT12 + ih;\n v_originTextureCoordinateAndTranslate.xy = depthOrigin;\n v_originTextureCoordinateAndTranslate.zw = translate;\n v_textureCoordinateBounds = textureCoordinateBoundsOrLabelTranslate;\n\n#endif\n\n#ifdef SDF\n vec4 outlineColor;\n float outlineWidth;\n\n temp = sdf.x;\n temp = temp * SHIFT_RIGHT8;\n outlineColor.b = (temp - floor(temp)) * SHIFT_LEFT8;\n temp = floor(temp) * SHIFT_RIGHT8;\n outlineColor.g = (temp - floor(temp)) * SHIFT_LEFT8;\n outlineColor.r = floor(temp);\n\n temp = sdf.y;\n temp = temp * SHIFT_RIGHT8;\n float temp3 = (temp - floor(temp)) * SHIFT_LEFT8;\n temp = floor(temp) * SHIFT_RIGHT8;\n outlineWidth = (temp - floor(temp)) * SHIFT_LEFT8;\n outlineColor.a = floor(temp);\n outlineColor /= 255.0;\n\n v_outlineWidth = outlineWidth / 255.0;\n v_outlineColor = outlineColor;\n v_outlineColor.a *= translucency;\n#endif\n\n v_pickColor = pickColor;\n\n v_color = color;\n v_color.a *= translucency;\n\n}\n"},690709:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="varying vec2 v_textureCoordinates;\nconst float M_PI = 3.141592653589793;\n\nfloat vdcRadicalInverse(int i)\n{\n float r;\n float base = 2.0;\n float value = 0.0;\n float invBase = 1.0 / base;\n float invBi = invBase;\n for (int x = 0; x < 100; x++)\n {\n if (i <= 0)\n {\n break;\n }\n r = mod(float(i), base);\n value += r * invBi;\n invBi *= invBase;\n i = int(float(i) * invBase);\n }\n return value;\n}\n\nvec2 hammersley2D(int i, int N)\n{\n return vec2(float(i) / float(N), vdcRadicalInverse(i));\n}\n\nvec3 importanceSampleGGX(vec2 xi, float roughness, vec3 N)\n{\n float a = roughness * roughness;\n float phi = 2.0 * M_PI * xi.x;\n float cosTheta = sqrt((1.0 - xi.y) / (1.0 + (a * a - 1.0) * xi.y));\n float sinTheta = sqrt(1.0 - cosTheta * cosTheta);\n vec3 H = vec3(sinTheta * cos(phi), sinTheta * sin(phi), cosTheta);\n vec3 upVector = abs(N.z) < 0.999 ? vec3(0.0, 0.0, 1.0) : vec3(1.0, 0.0, 0.0);\n vec3 tangentX = normalize(cross(upVector, N));\n vec3 tangentY = cross(N, tangentX);\n return tangentX * H.x + tangentY * H.y + N * H.z;\n}\n\nfloat G1_Smith(float NdotV, float k)\n{\n return NdotV / (NdotV * (1.0 - k) + k);\n}\n\nfloat G_Smith(float roughness, float NdotV, float NdotL)\n{\n float k = roughness * roughness / 2.0;\n return G1_Smith(NdotV, k) * G1_Smith(NdotL, k);\n}\n\nvec2 integrateBrdf(float roughness, float NdotV)\n{\n vec3 V = vec3(sqrt(1.0 - NdotV * NdotV), 0.0, NdotV);\n float A = 0.0;\n float B = 0.0;\n const int NumSamples = 1024;\n for (int i = 0; i < NumSamples; i++)\n {\n vec2 xi = hammersley2D(i, NumSamples);\n vec3 H = importanceSampleGGX(xi, roughness, vec3(0.0, 0.0, 1.0));\n vec3 L = 2.0 * dot(V, H) * H - V;\n float NdotL = clamp(L.z, 0.0, 1.0);\n float NdotH = clamp(H.z, 0.0, 1.0);\n float VdotH = clamp(dot(V, H), 0.0, 1.0);\n if (NdotL > 0.0)\n {\n float G = G_Smith(roughness, NdotV, NdotL);\n float G_Vis = G * VdotH / (NdotH * NdotV);\n float Fc = pow(1.0 - VdotH, 5.0);\n A += (1.0 - Fc) * G_Vis;\n B += Fc * G_Vis;\n }\n }\n return vec2(A, B) / float(NumSamples);\n}\n\nvoid main()\n{\n gl_FragColor = vec4(integrateBrdf(v_textureCoordinates.y, v_textureCoordinates.x), 0.0, 1.0);\n}\n"},423711:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * A built-in GLSL floating-point constant for converting radians to degrees.\n *\n * @alias czm_degreesPerRadian\n * @glslConstant\n *\n * @see CesiumMath.DEGREES_PER_RADIAN\n *\n * @example\n * // GLSL declaration\n * const float czm_degreesPerRadian = ...;\n *\n * // Example\n * float deg = czm_degreesPerRadian * rad;\n */\nconst float czm_degreesPerRadian = 57.29577951308232;\n"},22688:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * A built-in GLSL vec2 constant for defining the depth range.\n * This is a workaround to a bug where IE11 does not implement gl_DepthRange.\n *\n * @alias czm_depthRange\n * @glslConstant\n *\n * @example\n * // GLSL declaration\n * float depthRangeNear = czm_depthRange.near;\n * float depthRangeFar = czm_depthRange.far;\n *\n */\nconst czm_depthRangeStruct czm_depthRange = czm_depthRangeStruct(0.0, 1.0);\n"},534682:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * 0.1\n *\n * @name czm_epsilon1\n * @glslConstant\n */\nconst float czm_epsilon1 = 0.1;\n"},494564:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * 0.01\n *\n * @name czm_epsilon2\n * @glslConstant\n */\nconst float czm_epsilon2 = 0.01;\n"},354213:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * 0.001\n *\n * @name czm_epsilon3\n * @glslConstant\n */\nconst float czm_epsilon3 = 0.001;\n"},932448:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * 0.0001\n *\n * @name czm_epsilon4\n * @glslConstant\n */\nconst float czm_epsilon4 = 0.0001;\n"},796312:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * 0.00001\n *\n * @name czm_epsilon5\n * @glslConstant\n */\nconst float czm_epsilon5 = 0.00001;\n"},972189:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * 0.000001\n *\n * @name czm_epsilon6\n * @glslConstant\n */\nconst float czm_epsilon6 = 0.000001;\n"},680784:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * 0.0000001\n *\n * @name czm_epsilon7\n * @glslConstant\n */\nconst float czm_epsilon7 = 0.0000001;\n"},797741:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * DOC_TBA\n *\n * @name czm_infinity\n * @glslConstant\n */\nconst float czm_infinity = 5906376272000.0; // Distance from the Sun to Pluto in meters. TODO: What is best given lowp, mediump, and highp?\n"},933543:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * A built-in GLSL floating-point constant for 1/pi.\n *\n * @alias czm_oneOverPi\n * @glslConstant\n *\n * @see CesiumMath.ONE_OVER_PI\n *\n * @example\n * // GLSL declaration\n * const float czm_oneOverPi = ...;\n *\n * // Example\n * float pi = 1.0 / czm_oneOverPi;\n */\nconst float czm_oneOverPi = 0.3183098861837907;\n"},933500:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * A built-in GLSL floating-point constant for 1/2pi.\n *\n * @alias czm_oneOverTwoPi\n * @glslConstant\n *\n * @see CesiumMath.ONE_OVER_TWO_PI\n *\n * @example\n * // GLSL declaration\n * const float czm_oneOverTwoPi = ...;\n *\n * // Example\n * float pi = 2.0 * czm_oneOverTwoPi;\n */\nconst float czm_oneOverTwoPi = 0.15915494309189535;\n"},186387:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * The automatic GLSL constant for {@link Pass#CESIUM_3D_TILE}\n *\n * @name czm_passCesium3DTile\n * @glslConstant\n *\n * @see czm_pass\n */\nconst float czm_passCesium3DTile = 4.0;\n"},189886:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * The automatic GLSL constant for {@link Pass#CESIUM_3D_TILE_CLASSIFICATION}\n *\n * @name czm_passCesium3DTileClassification\n * @glslConstant\n *\n * @see czm_pass\n */\nconst float czm_passCesium3DTileClassification = 5.0;\n"},968446:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * The automatic GLSL constant for {@link Pass#CESIUM_3D_TILE_CLASSIFICATION_IGNORE_SHOW}\n *\n * @name czm_passCesium3DTileClassificationIgnoreShow\n * @glslConstant\n *\n * @see czm_pass\n */\nconst float czm_passCesium3DTileClassificationIgnoreShow = 6.0;\n"},188615:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * The automatic GLSL constant for {@link Pass#CLASSIFICATION}\n *\n * @name czm_passClassification\n * @glslConstant\n *\n * @see czm_pass\n */\nconst float czm_passClassification = 7.0;\n"},435339:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * The automatic GLSL constant for {@link Pass#COMPUTE}\n *\n * @name czm_passCompute\n * @glslConstant\n *\n * @see czm_pass\n */\nconst float czm_passCompute = 1.0;\n"},668518:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * The automatic GLSL constant for {@link Pass#ENVIRONMENT}\n *\n * @name czm_passEnvironment\n * @glslConstant\n *\n * @see czm_pass\n */\nconst float czm_passEnvironment = 0.0;\n"},956910:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * The automatic GLSL constant for {@link Pass#GLOBE}\n *\n * @name czm_passGlobe\n * @glslConstant\n *\n * @see czm_pass\n */\nconst float czm_passGlobe = 2.0;\n"},828523:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * The automatic GLSL constant for {@link Pass#OPAQUE}\n *\n * @name czm_passOpaque\n * @glslConstant\n *\n * @see czm_pass\n */\nconst float czm_passOpaque = 7.0;\n"},864431:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * The automatic GLSL constant for {@link Pass#OVERLAY}\n *\n * @name czm_passOverlay\n * @glslConstant\n *\n * @see czm_pass\n */\nconst float czm_passOverlay = 9.0;\n"},790273:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * The automatic GLSL constant for {@link Pass#TERRAIN_CLASSIFICATION}\n *\n * @name czm_passTerrainClassification\n * @glslConstant\n *\n * @see czm_pass\n */\nconst float czm_passTerrainClassification = 3.0;\n"},475202:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * The automatic GLSL constant for {@link Pass#TRANSLUCENT}\n *\n * @name czm_passTranslucent\n * @glslConstant\n *\n * @see czm_pass\n */\nconst float czm_passTranslucent = 8.0;\n"},852332:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * A built-in GLSL floating-point constant for Math.PI.\n *\n * @alias czm_pi\n * @glslConstant\n *\n * @see CesiumMath.PI\n *\n * @example\n * // GLSL declaration\n * const float czm_pi = ...;\n *\n * // Example\n * float twoPi = 2.0 * czm_pi;\n */\nconst float czm_pi = 3.141592653589793;\n"},576316:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * A built-in GLSL floating-point constant for pi/4.\n *\n * @alias czm_piOverFour\n * @glslConstant\n *\n * @see CesiumMath.PI_OVER_FOUR\n *\n * @example\n * // GLSL declaration\n * const float czm_piOverFour = ...;\n *\n * // Example\n * float pi = 4.0 * czm_piOverFour;\n */\nconst float czm_piOverFour = 0.7853981633974483;\n"},607369:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * A built-in GLSL floating-point constant for pi/6.\n *\n * @alias czm_piOverSix\n * @glslConstant\n *\n * @see CesiumMath.PI_OVER_SIX\n *\n * @example\n * // GLSL declaration\n * const float czm_piOverSix = ...;\n *\n * // Example\n * float pi = 6.0 * czm_piOverSix;\n */\nconst float czm_piOverSix = 0.5235987755982988;\n"},216003:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * A built-in GLSL floating-point constant for pi/3.\n *\n * @alias czm_piOverThree\n * @glslConstant\n *\n * @see CesiumMath.PI_OVER_THREE\n *\n * @example\n * // GLSL declaration\n * const float czm_piOverThree = ...;\n *\n * // Example\n * float pi = 3.0 * czm_piOverThree;\n */\nconst float czm_piOverThree = 1.0471975511965976;\n"},105437:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * A built-in GLSL floating-point constant for pi/2.\n *\n * @alias czm_piOverTwo\n * @glslConstant\n *\n * @see CesiumMath.PI_OVER_TWO\n *\n * @example\n * // GLSL declaration\n * const float czm_piOverTwo = ...;\n *\n * // Example\n * float pi = 2.0 * czm_piOverTwo;\n */\nconst float czm_piOverTwo = 1.5707963267948966;\n"},135427:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * A built-in GLSL floating-point constant for converting degrees to radians.\n *\n * @alias czm_radiansPerDegree\n * @glslConstant\n *\n * @see CesiumMath.RADIANS_PER_DEGREE\n *\n * @example\n * // GLSL declaration\n * const float czm_radiansPerDegree = ...;\n *\n * // Example\n * float rad = czm_radiansPerDegree * deg;\n */\nconst float czm_radiansPerDegree = 0.017453292519943295;\n"},383152:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * The constant identifier for the 2D {@link SceneMode}\n *\n * @name czm_sceneMode2D\n * @glslConstant\n * @see czm_sceneMode\n * @see czm_sceneModeColumbusView\n * @see czm_sceneMode3D\n * @see czm_sceneModeMorphing\n */\nconst float czm_sceneMode2D = 2.0;\n"},29571:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * The constant identifier for the 3D {@link SceneMode}\n *\n * @name czm_sceneMode3D\n * @glslConstant\n * @see czm_sceneMode\n * @see czm_sceneMode2D\n * @see czm_sceneModeColumbusView\n * @see czm_sceneModeMorphing\n */\nconst float czm_sceneMode3D = 3.0;\n"},561229:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * The constant identifier for the Columbus View {@link SceneMode}\n *\n * @name czm_sceneModeColumbusView\n * @glslConstant\n * @see czm_sceneMode\n * @see czm_sceneMode2D\n * @see czm_sceneMode3D\n * @see czm_sceneModeMorphing\n */\nconst float czm_sceneModeColumbusView = 1.0;\n"},677989:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * The constant identifier for the Morphing {@link SceneMode}\n *\n * @name czm_sceneModeMorphing\n * @glslConstant\n * @see czm_sceneMode\n * @see czm_sceneMode2D\n * @see czm_sceneModeColumbusView\n * @see czm_sceneMode3D\n */\nconst float czm_sceneModeMorphing = 0.0;\n"},408012:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * A built-in GLSL floating-point constant for one solar radius.\n *\n * @alias czm_solarRadius\n * @glslConstant\n *\n * @see CesiumMath.SOLAR_RADIUS\n *\n * @example\n * // GLSL declaration\n * const float czm_solarRadius = ...;\n */\nconst float czm_solarRadius = 695500000.0;\n"},892900:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * A built-in GLSL floating-point constant for 3pi/2.\n *\n * @alias czm_threePiOver2\n * @glslConstant\n *\n * @see CesiumMath.THREE_PI_OVER_TWO\n *\n * @example\n * // GLSL declaration\n * const float czm_threePiOver2 = ...;\n *\n * // Example\n * float pi = (2.0 / 3.0) * czm_threePiOver2;\n */\nconst float czm_threePiOver2 = 4.71238898038469;\n"},412193:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * A built-in GLSL floating-point constant for 2pi.\n *\n * @alias czm_twoPi\n * @glslConstant\n *\n * @see CesiumMath.TWO_PI\n *\n * @example\n * // GLSL declaration\n * const float czm_twoPi = ...;\n *\n * // Example\n * float pi = czm_twoPi / 2.0;\n */\nconst float czm_twoPi = 6.283185307179586;\n"},783515:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * The maximum latitude, in radians, both North and South, supported by a Web Mercator\n * (EPSG:3857) projection. Technically, the Mercator projection is defined\n * for any latitude up to (but not including) 90 degrees, but it makes sense\n * to cut it off sooner because it grows exponentially with increasing latitude.\n * The logic behind this particular cutoff value, which is the one used by\n * Google Maps, Bing Maps, and Esri, is that it makes the projection\n * square. That is, the rectangle is equal in the X and Y directions.\n *\n * The constant value is computed as follows:\n * czm_pi * 0.5 - (2.0 * atan(exp(-czm_pi)))\n *\n * @name czm_webMercatorMaxLatitude\n * @glslConstant\n */\nconst float czm_webMercatorMaxLatitude = 1.4844222297453324;\n"},172999:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Converts an HSB color (hue, saturation, brightness) to RGB\n * HSB <-> RGB conversion with minimal branching: {@link http://lolengine.net/blog/2013/07/27/rgb-to-hsv-in-glsl}\n *\n * @name czm_HSBToRGB\n * @glslFunction\n * \n * @param {vec3} hsb The color in HSB.\n *\n * @returns {vec3} The color in RGB.\n *\n * @example\n * vec3 hsb = czm_RGBToHSB(rgb);\n * hsb.z *= 0.1;\n * rgb = czm_HSBToRGB(hsb);\n */\n\nconst vec4 K_HSB2RGB = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);\n\nvec3 czm_HSBToRGB(vec3 hsb)\n{\n vec3 p = abs(fract(hsb.xxx + K_HSB2RGB.xyz) * 6.0 - K_HSB2RGB.www);\n return hsb.z * mix(K_HSB2RGB.xxx, clamp(p - K_HSB2RGB.xxx, 0.0, 1.0), hsb.y);\n}\n"},104814:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Converts an HSL color (hue, saturation, lightness) to RGB\n * HSL <-> RGB conversion: {@link http://www.chilliant.com/rgb2hsv.html}\n *\n * @name czm_HSLToRGB\n * @glslFunction\n * \n * @param {vec3} rgb The color in HSL.\n *\n * @returns {vec3} The color in RGB.\n *\n * @example\n * vec3 hsl = czm_RGBToHSL(rgb);\n * hsl.z *= 0.1;\n * rgb = czm_HSLToRGB(hsl);\n */\n\nvec3 hueToRGB(float hue)\n{\n float r = abs(hue * 6.0 - 3.0) - 1.0;\n float g = 2.0 - abs(hue * 6.0 - 2.0);\n float b = 2.0 - abs(hue * 6.0 - 4.0);\n return clamp(vec3(r, g, b), 0.0, 1.0);\n}\n\nvec3 czm_HSLToRGB(vec3 hsl)\n{\n vec3 rgb = hueToRGB(hsl.x);\n float c = (1.0 - abs(2.0 * hsl.z - 1.0)) * hsl.y;\n return (rgb - 0.5) * c + hsl.z;\n}\n"},686587:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Converts an RGB color to HSB (hue, saturation, brightness)\n * HSB <-> RGB conversion with minimal branching: {@link http://lolengine.net/blog/2013/07/27/rgb-to-hsv-in-glsl}\n *\n * @name czm_RGBToHSB\n * @glslFunction\n * \n * @param {vec3} rgb The color in RGB.\n *\n * @returns {vec3} The color in HSB.\n *\n * @example\n * vec3 hsb = czm_RGBToHSB(rgb);\n * hsb.z *= 0.1;\n * rgb = czm_HSBToRGB(hsb);\n */\n\nconst vec4 K_RGB2HSB = vec4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0);\n\nvec3 czm_RGBToHSB(vec3 rgb)\n{\n vec4 p = mix(vec4(rgb.bg, K_RGB2HSB.wz), vec4(rgb.gb, K_RGB2HSB.xy), step(rgb.b, rgb.g));\n vec4 q = mix(vec4(p.xyw, rgb.r), vec4(rgb.r, p.yzx), step(p.x, rgb.r));\n\n float d = q.x - min(q.w, q.y);\n return vec3(abs(q.z + (q.w - q.y) / (6.0 * d + czm_epsilon7)), d / (q.x + czm_epsilon7), q.x);\n}\n"},968478:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Converts an RGB color to HSL (hue, saturation, lightness)\n * HSL <-> RGB conversion: {@link http://www.chilliant.com/rgb2hsv.html}\n *\n * @name czm_RGBToHSL\n * @glslFunction\n * \n * @param {vec3} rgb The color in RGB.\n *\n * @returns {vec3} The color in HSL.\n *\n * @example\n * vec3 hsl = czm_RGBToHSL(rgb);\n * hsl.z *= 0.1;\n * rgb = czm_HSLToRGB(hsl);\n */\n \nvec3 RGBtoHCV(vec3 rgb)\n{\n // Based on work by Sam Hocevar and Emil Persson\n vec4 p = (rgb.g < rgb.b) ? vec4(rgb.bg, -1.0, 2.0 / 3.0) : vec4(rgb.gb, 0.0, -1.0 / 3.0);\n vec4 q = (rgb.r < p.x) ? vec4(p.xyw, rgb.r) : vec4(rgb.r, p.yzx);\n float c = q.x - min(q.w, q.y);\n float h = abs((q.w - q.y) / (6.0 * c + czm_epsilon7) + q.z);\n return vec3(h, c, q.x);\n}\n\nvec3 czm_RGBToHSL(vec3 rgb)\n{\n vec3 hcv = RGBtoHCV(rgb);\n float l = hcv.z - hcv.y * 0.5;\n float s = hcv.y / (1.0 - abs(l * 2.0 - 1.0) + czm_epsilon7);\n return vec3(hcv.x, s, l);\n}\n"},33157:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Converts an RGB color to CIE Yxy.\n *

The conversion is described in\n * {@link http://content.gpwiki.org/index.php/D3DBook:High-Dynamic_Range_Rendering#Luminance_Transform|Luminance Transform}\n *

\n * \n * @name czm_RGBToXYZ\n * @glslFunction\n * \n * @param {vec3} rgb The color in RGB.\n *\n * @returns {vec3} The color in CIE Yxy.\n *\n * @example\n * vec3 xyz = czm_RGBToXYZ(rgb);\n * xyz.x = max(xyz.x - luminanceThreshold, 0.0);\n * rgb = czm_XYZToRGB(xyz);\n */\nvec3 czm_RGBToXYZ(vec3 rgb)\n{\n const mat3 RGB2XYZ = mat3(0.4124, 0.2126, 0.0193,\n 0.3576, 0.7152, 0.1192,\n 0.1805, 0.0722, 0.9505);\n vec3 xyz = RGB2XYZ * rgb;\n vec3 Yxy;\n Yxy.r = xyz.g;\n float temp = dot(vec3(1.0), xyz);\n Yxy.gb = xyz.rg / temp;\n return Yxy;\n}\n"},567435:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Converts a CIE Yxy color to RGB.\n *

The conversion is described in\n * {@link http://content.gpwiki.org/index.php/D3DBook:High-Dynamic_Range_Rendering#Luminance_Transform|Luminance Transform}\n *

\n * \n * @name czm_XYZToRGB\n * @glslFunction\n * \n * @param {vec3} Yxy The color in CIE Yxy.\n *\n * @returns {vec3} The color in RGB.\n *\n * @example\n * vec3 xyz = czm_RGBToXYZ(rgb);\n * xyz.x = max(xyz.x - luminanceThreshold, 0.0);\n * rgb = czm_XYZToRGB(xyz);\n */\nvec3 czm_XYZToRGB(vec3 Yxy)\n{\n const mat3 XYZ2RGB = mat3( 3.2405, -0.9693, 0.0556,\n -1.5371, 1.8760, -0.2040,\n -0.4985, 0.0416, 1.0572);\n vec3 xyz;\n xyz.r = Yxy.r * Yxy.g / Yxy.b;\n xyz.g = Yxy.r;\n xyz.b = Yxy.r * (1.0 - Yxy.g - Yxy.b) / Yxy.b;\n \n return XYZ2RGB * xyz;\n}\n"},174579:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="// See:\n// https://knarkowicz.wordpress.com/2016/01/06/aces-filmic-tone-mapping-curve/\n\nvec3 czm_acesTonemapping(vec3 color) {\n float g = 0.985;\n float a = 0.065;\n float b = 0.0001;\n float c = 0.433;\n float d = 0.238;\n\n color = (color * (color + a) - b) / (color * (g * color + c) + d);\n\n color = clamp(color, 0.0, 1.0);\n\n return color;\n}\n"},143185:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * @private\n */\nfloat czm_alphaWeight(float a)\n{\n float z = (gl_FragCoord.z - czm_viewportTransformation[3][2]) / czm_viewportTransformation[2][2];\n\n // See Weighted Blended Order-Independent Transparency for examples of different weighting functions:\n // http://jcgt.org/published/0002/02/09/\n return pow(a + 0.01, 4.0) + max(1e-2, min(3.0 * 1e3, 0.003 / (1e-5 + pow(abs(z) / 200.0, 4.0))));\n}\n"},219360:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Procedural anti-aliasing by blurring two colors that meet at a sharp edge.\n *\n * @name czm_antialias\n * @glslFunction\n *\n * @param {vec4} color1 The color on one side of the edge.\n * @param {vec4} color2 The color on the other side of the edge.\n * @param {vec4} currentcolor The current color, either color1 or color2.\n * @param {float} dist The distance to the edge in texture coordinates.\n * @param {float} [fuzzFactor=0.1] Controls the blurriness between the two colors.\n * @returns {vec4} The anti-aliased color.\n *\n * @example\n * // GLSL declarations\n * vec4 czm_antialias(vec4 color1, vec4 color2, vec4 currentColor, float dist, float fuzzFactor);\n * vec4 czm_antialias(vec4 color1, vec4 color2, vec4 currentColor, float dist);\n *\n * // get the color for a material that has a sharp edge at the line y = 0.5 in texture space\n * float dist = abs(textureCoordinates.t - 0.5);\n * vec4 currentColor = mix(bottomColor, topColor, step(0.5, textureCoordinates.t));\n * vec4 color = czm_antialias(bottomColor, topColor, currentColor, dist, 0.1);\n */\nvec4 czm_antialias(vec4 color1, vec4 color2, vec4 currentColor, float dist, float fuzzFactor)\n{\n float val1 = clamp(dist / fuzzFactor, 0.0, 1.0);\n float val2 = clamp((dist - 0.5) / fuzzFactor, 0.0, 1.0);\n val1 = val1 * (1.0 - val2);\n val1 = val1 * val1 * (3.0 - (2.0 * val1));\n val1 = pow(val1, 0.5); //makes the transition nicer\n \n vec4 midColor = (color1 + color2) * 0.5;\n return mix(midColor, currentColor, val1);\n}\n\nvec4 czm_antialias(vec4 color1, vec4 color2, vec4 currentColor, float dist)\n{\n return czm_antialias(color1, color2, currentColor, dist, 0.1);\n}\n"},647906:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Approximately computes spherical coordinates given a normal.\n * Uses approximate inverse trigonometry for speed and consistency,\n * since inverse trigonometry can differ from vendor-to-vendor and when compared with the CPU.\n *\n * @name czm_approximateSphericalCoordinates\n * @glslFunction\n *\n * @param {vec3} normal arbitrary-length normal.\n *\n * @returns {vec2} Approximate latitude and longitude spherical coordinates.\n */\nvec2 czm_approximateSphericalCoordinates(vec3 normal) {\n // Project into plane with vertical for latitude\n float latitudeApproximation = czm_fastApproximateAtan(sqrt(normal.x * normal.x + normal.y * normal.y), normal.z);\n float longitudeApproximation = czm_fastApproximateAtan(normal.x, normal.y);\n return vec2(latitudeApproximation, longitudeApproximation);\n}\n"},858048:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Determines if the fragment is back facing\n *\n * @name czm_backFacing\n * @glslFunction \n * \n * @returns {bool} true if the fragment is back facing; otherwise, false.\n */\nbool czm_backFacing()\n{\n // !gl_FrontFacing doesn't work as expected on Mac/Intel so use the more verbose form instead. See https://github.com/CesiumGS/cesium/pull/8494.\n return gl_FrontFacing == false;\n}\n"},166440:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Branchless ternary operator to be used when it's inexpensive to explicitly\n * evaluate both possibilities for a float expression.\n *\n * @name czm_branchFreeTernary\n * @glslFunction\n *\n * @param {bool} comparison A comparison statement\n * @param {float} a Value to return if the comparison is true.\n * @param {float} b Value to return if the comparison is false.\n *\n * @returns {float} equivalent of comparison ? a : b\n */\nfloat czm_branchFreeTernary(bool comparison, float a, float b) {\n float useA = float(comparison);\n return a * useA + b * (1.0 - useA);\n}\n\n/**\n * Branchless ternary operator to be used when it's inexpensive to explicitly\n * evaluate both possibilities for a vec2 expression.\n *\n * @name czm_branchFreeTernary\n * @glslFunction\n *\n * @param {bool} comparison A comparison statement\n * @param {vec2} a Value to return if the comparison is true.\n * @param {vec2} b Value to return if the comparison is false.\n *\n * @returns {vec2} equivalent of comparison ? a : b\n */\nvec2 czm_branchFreeTernary(bool comparison, vec2 a, vec2 b) {\n float useA = float(comparison);\n return a * useA + b * (1.0 - useA);\n}\n\n/**\n * Branchless ternary operator to be used when it's inexpensive to explicitly\n * evaluate both possibilities for a vec3 expression.\n *\n * @name czm_branchFreeTernary\n * @glslFunction\n *\n * @param {bool} comparison A comparison statement\n * @param {vec3} a Value to return if the comparison is true.\n * @param {vec3} b Value to return if the comparison is false.\n *\n * @returns {vec3} equivalent of comparison ? a : b\n */\nvec3 czm_branchFreeTernary(bool comparison, vec3 a, vec3 b) {\n float useA = float(comparison);\n return a * useA + b * (1.0 - useA);\n}\n\n/**\n * Branchless ternary operator to be used when it's inexpensive to explicitly\n * evaluate both possibilities for a vec4 expression.\n *\n * @name czm_branchFreeTernary\n * @glslFunction\n *\n * @param {bool} comparison A comparison statement\n * @param {vec3} a Value to return if the comparison is true.\n * @param {vec3} b Value to return if the comparison is false.\n *\n * @returns {vec3} equivalent of comparison ? a : b\n */\nvec4 czm_branchFreeTernary(bool comparison, vec4 a, vec4 b) {\n float useA = float(comparison);\n return a * useA + b * (1.0 - useA);\n}\n"},581911:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="\nvec4 czm_cascadeColor(vec4 weights)\n{\n return vec4(1.0, 0.0, 0.0, 1.0) * weights.x +\n vec4(0.0, 1.0, 0.0, 1.0) * weights.y +\n vec4(0.0, 0.0, 1.0, 1.0) * weights.z +\n vec4(1.0, 0.0, 1.0, 1.0) * weights.w;\n}\n"},404512:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="\nuniform vec4 shadowMap_cascadeDistances;\n\nfloat czm_cascadeDistance(vec4 weights)\n{\n return dot(shadowMap_cascadeDistances, weights);\n}\n"},115847:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="\nuniform mat4 shadowMap_cascadeMatrices[4];\n\nmat4 czm_cascadeMatrix(vec4 weights)\n{\n return shadowMap_cascadeMatrices[0] * weights.x +\n shadowMap_cascadeMatrices[1] * weights.y +\n shadowMap_cascadeMatrices[2] * weights.z +\n shadowMap_cascadeMatrices[3] * weights.w;\n}\n"},389149:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="\nuniform vec4 shadowMap_cascadeSplits[2];\n\nvec4 czm_cascadeWeights(float depthEye)\n{\n // One component is set to 1.0 and all others set to 0.0.\n vec4 near = step(shadowMap_cascadeSplits[0], vec4(depthEye));\n vec4 far = step(depthEye, shadowMap_cascadeSplits[1]);\n return near * far;\n}\n"},1133:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * DOC_TBA\n *\n * @name czm_columbusViewMorph\n * @glslFunction\n */\nvec4 czm_columbusViewMorph(vec4 position2D, vec4 position3D, float time)\n{\n // Just linear for now.\n vec3 p = mix(position2D.xyz, position3D.xyz, time);\n return vec4(p, 1.0);\n}\n"},69935:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Returns a position in model coordinates relative to eye taking into\n * account the current scene mode: 3D, 2D, or Columbus view.\n *

\n * This uses standard position attributes, position3DHigh, \n * position3DLow, position2DHigh, and position2DLow, \n * and should be used when writing a vertex shader for an {@link Appearance}.\n *

\n *\n * @name czm_computePosition\n * @glslFunction\n *\n * @returns {vec4} The position relative to eye.\n *\n * @example\n * vec4 p = czm_computePosition();\n * v_positionEC = (czm_modelViewRelativeToEye * p).xyz;\n * gl_Position = czm_modelViewProjectionRelativeToEye * p;\n *\n * @see czm_translateRelativeToEye\n */\nvec4 czm_computePosition();\n"},335615:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * @private\n */\nvec2 cordic(float angle)\n{\n// Scale the vector by the appropriate factor for the 24 iterations to follow.\n vec2 vector = vec2(6.0725293500888267e-1, 0.0);\n// Iteration 1\n float sense = (angle < 0.0) ? -1.0 : 1.0;\n // float factor = sense * 1.0; // 2^-0\n mat2 rotation = mat2(1.0, sense, -sense, 1.0);\n vector = rotation * vector;\n angle -= sense * 7.8539816339744828e-1; // atan(2^-0)\n// Iteration 2\n sense = (angle < 0.0) ? -1.0 : 1.0;\n float factor = sense * 5.0e-1; // 2^-1\n rotation[0][1] = factor;\n rotation[1][0] = -factor;\n vector = rotation * vector;\n angle -= sense * 4.6364760900080609e-1; // atan(2^-1)\n// Iteration 3\n sense = (angle < 0.0) ? -1.0 : 1.0;\n factor = sense * 2.5e-1; // 2^-2\n rotation[0][1] = factor;\n rotation[1][0] = -factor;\n vector = rotation * vector;\n angle -= sense * 2.4497866312686414e-1; // atan(2^-2)\n// Iteration 4\n sense = (angle < 0.0) ? -1.0 : 1.0;\n factor = sense * 1.25e-1; // 2^-3\n rotation[0][1] = factor;\n rotation[1][0] = -factor;\n vector = rotation * vector;\n angle -= sense * 1.2435499454676144e-1; // atan(2^-3)\n// Iteration 5\n sense = (angle < 0.0) ? -1.0 : 1.0;\n factor = sense * 6.25e-2; // 2^-4\n rotation[0][1] = factor;\n rotation[1][0] = -factor;\n vector = rotation * vector;\n angle -= sense * 6.2418809995957350e-2; // atan(2^-4)\n// Iteration 6\n sense = (angle < 0.0) ? -1.0 : 1.0;\n factor = sense * 3.125e-2; // 2^-5\n rotation[0][1] = factor;\n rotation[1][0] = -factor;\n vector = rotation * vector;\n angle -= sense * 3.1239833430268277e-2; // atan(2^-5)\n// Iteration 7\n sense = (angle < 0.0) ? -1.0 : 1.0;\n factor = sense * 1.5625e-2; // 2^-6\n rotation[0][1] = factor;\n rotation[1][0] = -factor;\n vector = rotation * vector;\n angle -= sense * 1.5623728620476831e-2; // atan(2^-6)\n// Iteration 8\n sense = (angle < 0.0) ? -1.0 : 1.0;\n factor = sense * 7.8125e-3; // 2^-7\n rotation[0][1] = factor;\n rotation[1][0] = -factor;\n vector = rotation * vector;\n angle -= sense * 7.8123410601011111e-3; // atan(2^-7)\n// Iteration 9\n sense = (angle < 0.0) ? -1.0 : 1.0;\n factor = sense * 3.90625e-3; // 2^-8\n rotation[0][1] = factor;\n rotation[1][0] = -factor;\n vector = rotation * vector;\n angle -= sense * 3.9062301319669718e-3; // atan(2^-8)\n// Iteration 10\n sense = (angle < 0.0) ? -1.0 : 1.0;\n factor = sense * 1.953125e-3; // 2^-9\n rotation[0][1] = factor;\n rotation[1][0] = -factor;\n vector = rotation * vector;\n angle -= sense * 1.9531225164788188e-3; // atan(2^-9)\n// Iteration 11\n sense = (angle < 0.0) ? -1.0 : 1.0;\n factor = sense * 9.765625e-4; // 2^-10\n rotation[0][1] = factor;\n rotation[1][0] = -factor;\n vector = rotation * vector;\n angle -= sense * 9.7656218955931946e-4; // atan(2^-10)\n// Iteration 12\n sense = (angle < 0.0) ? -1.0 : 1.0;\n factor = sense * 4.8828125e-4; // 2^-11\n rotation[0][1] = factor;\n rotation[1][0] = -factor;\n vector = rotation * vector;\n angle -= sense * 4.8828121119489829e-4; // atan(2^-11)\n// Iteration 13\n sense = (angle < 0.0) ? -1.0 : 1.0;\n factor = sense * 2.44140625e-4; // 2^-12\n rotation[0][1] = factor;\n rotation[1][0] = -factor;\n vector = rotation * vector;\n angle -= sense * 2.4414062014936177e-4; // atan(2^-12)\n// Iteration 14\n sense = (angle < 0.0) ? -1.0 : 1.0;\n factor = sense * 1.220703125e-4; // 2^-13\n rotation[0][1] = factor;\n rotation[1][0] = -factor;\n vector = rotation * vector;\n angle -= sense * 1.2207031189367021e-4; // atan(2^-13)\n// Iteration 15\n sense = (angle < 0.0) ? -1.0 : 1.0;\n factor = sense * 6.103515625e-5; // 2^-14\n rotation[0][1] = factor;\n rotation[1][0] = -factor;\n vector = rotation * vector;\n angle -= sense * 6.1035156174208773e-5; // atan(2^-14)\n// Iteration 16\n sense = (angle < 0.0) ? -1.0 : 1.0;\n factor = sense * 3.0517578125e-5; // 2^-15\n rotation[0][1] = factor;\n rotation[1][0] = -factor;\n vector = rotation * vector;\n angle -= sense * 3.0517578115526096e-5; // atan(2^-15)\n// Iteration 17\n sense = (angle < 0.0) ? -1.0 : 1.0;\n factor = sense * 1.52587890625e-5; // 2^-16\n rotation[0][1] = factor;\n rotation[1][0] = -factor;\n vector = rotation * vector;\n angle -= sense * 1.5258789061315762e-5; // atan(2^-16)\n// Iteration 18\n sense = (angle < 0.0) ? -1.0 : 1.0;\n factor = sense * 7.62939453125e-6; // 2^-17\n rotation[0][1] = factor;\n rotation[1][0] = -factor;\n vector = rotation * vector;\n angle -= sense * 7.6293945311019700e-6; // atan(2^-17)\n// Iteration 19\n sense = (angle < 0.0) ? -1.0 : 1.0;\n factor = sense * 3.814697265625e-6; // 2^-18\n rotation[0][1] = factor;\n rotation[1][0] = -factor;\n vector = rotation * vector;\n angle -= sense * 3.8146972656064961e-6; // atan(2^-18)\n// Iteration 20\n sense = (angle < 0.0) ? -1.0 : 1.0;\n factor = sense * 1.9073486328125e-6; // 2^-19\n rotation[0][1] = factor;\n rotation[1][0] = -factor;\n vector = rotation * vector;\n angle -= sense * 1.9073486328101870e-6; // atan(2^-19)\n// Iteration 21\n sense = (angle < 0.0) ? -1.0 : 1.0;\n factor = sense * 9.5367431640625e-7; // 2^-20\n rotation[0][1] = factor;\n rotation[1][0] = -factor;\n vector = rotation * vector;\n angle -= sense * 9.5367431640596084e-7; // atan(2^-20)\n// Iteration 22\n sense = (angle < 0.0) ? -1.0 : 1.0;\n factor = sense * 4.76837158203125e-7; // 2^-21\n rotation[0][1] = factor;\n rotation[1][0] = -factor;\n vector = rotation * vector;\n angle -= sense * 4.7683715820308884e-7; // atan(2^-21)\n// Iteration 23\n sense = (angle < 0.0) ? -1.0 : 1.0;\n factor = sense * 2.384185791015625e-7; // 2^-22\n rotation[0][1] = factor;\n rotation[1][0] = -factor;\n vector = rotation * vector;\n angle -= sense * 2.3841857910155797e-7; // atan(2^-22)\n// Iteration 24\n sense = (angle < 0.0) ? -1.0 : 1.0;\n factor = sense * 1.1920928955078125e-7; // 2^-23\n rotation[0][1] = factor;\n rotation[1][0] = -factor;\n vector = rotation * vector;\n// angle -= sense * 1.1920928955078068e-7; // atan(2^-23)\n\n return vector;\n}\n\n/**\n * Computes the cosine and sine of the provided angle using the CORDIC algorithm.\n *\n * @name czm_cosineAndSine\n * @glslFunction\n *\n * @param {float} angle The angle in radians.\n *\n * @returns {vec2} The resulting cosine of the angle (as the x coordinate) and sine of the angle (as the y coordinate).\n *\n * @example\n * vec2 v = czm_cosineAndSine(czm_piOverSix);\n * float cosine = v.x;\n * float sine = v.y;\n */\nvec2 czm_cosineAndSine(float angle)\n{\n if (angle < -czm_piOverTwo || angle > czm_piOverTwo)\n {\n if (angle < 0.0)\n {\n return -cordic(angle + czm_pi);\n }\n else\n {\n return -cordic(angle - czm_pi);\n }\n }\n else\n {\n return cordic(angle);\n }\n}\n"},682494:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Decompresses texture coordinates that were packed into a single float.\n *\n * @name czm_decompressTextureCoordinates\n * @glslFunction\n *\n * @param {float} encoded The compressed texture coordinates.\n * @returns {vec2} The decompressed texture coordinates.\n */\n vec2 czm_decompressTextureCoordinates(float encoded)\n {\n float temp = encoded / 4096.0;\n float xZeroTo4095 = floor(temp);\n float stx = xZeroTo4095 / 4095.0;\n float sty = (encoded - xZeroTo4095 * 4096.0) / 4095.0;\n return vec2(stx, sty);\n }\n"},564818:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Get default parameters for physically based rendering. These defaults\n * describe a rough dielectric (non-metal) surface (e.g. rough plastic).\n *\n * @return {czm_pbrParameters} Default parameters for {@link czm_pbrLighting}\n */\nczm_pbrParameters czm_defaultPbrMaterial()\n{\n czm_pbrParameters results;\n results.diffuseColor = vec3(1.0);\n results.roughness = 1.0;\n\n const vec3 REFLECTANCE_DIELECTRIC = vec3(0.04);\n results.f0 = REFLECTANCE_DIELECTRIC;\n return results;\n}\n"},716065:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="// emulated noperspective\n#if defined(GL_EXT_frag_depth) && !defined(LOG_DEPTH)\nvarying float v_WindowZ;\n#endif\n\n/**\n * Emulates GL_DEPTH_CLAMP, which is not available in WebGL 1 or 2.\n * GL_DEPTH_CLAMP clamps geometry that is outside the near and far planes, \n * capping the shadow volume. More information here: \n * https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_depth_clamp.txt.\n *\n * When GL_EXT_frag_depth is available we emulate GL_DEPTH_CLAMP by ensuring \n * no geometry gets clipped by setting the clip space z value to 0.0 and then\n * sending the unaltered screen space z value (using emulated noperspective\n * interpolation) to the frag shader where it is clamped to [0,1] and then\n * written with gl_FragDepth (see czm_writeDepthClamp). This technique is based on:\n * https://stackoverflow.com/questions/5960757/how-to-emulate-gl-depth-clamp-nv.\n *\n * When GL_EXT_frag_depth is not available, which is the case on some mobile \n * devices, we must attempt to fix this only in the vertex shader. \n * The approach is to clamp the z value to the far plane, which closes the \n * shadow volume but also distorts the geometry, so there can still be artifacts\n * on frustum seams.\n *\n * @name czm_depthClamp\n * @glslFunction\n *\n * @param {vec4} coords The vertex in clip coordinates.\n * @returns {vec4} The modified vertex.\n *\n * @example\n * gl_Position = czm_depthClamp(czm_modelViewProjection * vec4(position, 1.0));\n *\n * @see czm_writeDepthClamp\n */\nvec4 czm_depthClamp(vec4 coords)\n{\n#ifndef LOG_DEPTH\n#ifdef GL_EXT_frag_depth\n v_WindowZ = (0.5 * (coords.z / coords.w) + 0.5) * coords.w;\n coords.z = 0.0;\n#else\n coords.z = min(coords.z, coords.w);\n#endif\n#endif\n return coords;\n}\n"},257840:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Computes a 3x3 rotation matrix that transforms vectors from an ellipsoid's east-north-up coordinate system \n * to eye coordinates. In east-north-up coordinates, x points east, y points north, and z points along the \n * surface normal. East-north-up can be used as an ellipsoid's tangent space for operations such as bump mapping.\n *

\n * The ellipsoid is assumed to be centered at the model coordinate's origin.\n *\n * @name czm_eastNorthUpToEyeCoordinates\n * @glslFunction\n *\n * @param {vec3} positionMC The position on the ellipsoid in model coordinates.\n * @param {vec3} normalEC The normalized ellipsoid surface normal, at positionMC, in eye coordinates.\n *\n * @returns {mat3} A 3x3 rotation matrix that transforms vectors from the east-north-up coordinate system to eye coordinates.\n *\n * @example\n * // Transform a vector defined in the east-north-up coordinate \n * // system, (0, 0, 1) which is the surface normal, to eye \n * // coordinates.\n * mat3 m = czm_eastNorthUpToEyeCoordinates(positionMC, normalEC);\n * vec3 normalEC = m * vec3(0.0, 0.0, 1.0);\n */\nmat3 czm_eastNorthUpToEyeCoordinates(vec3 positionMC, vec3 normalEC)\n{\n vec3 tangentMC = normalize(vec3(-positionMC.y, positionMC.x, 0.0)); // normalized surface tangent in model coordinates\n vec3 tangentEC = normalize(czm_normal3D * tangentMC); // normalized surface tangent in eye coordiantes\n vec3 bitangentEC = normalize(cross(normalEC, tangentEC)); // normalized surface bitangent in eye coordinates\n\n return mat3(\n tangentEC.x, tangentEC.y, tangentEC.z,\n bitangentEC.x, bitangentEC.y, bitangentEC.z,\n normalEC.x, normalEC.y, normalEC.z);\n}\n"},713068:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * DOC_TBA\n *\n * @name czm_ellipsoidContainsPoint\n * @glslFunction\n *\n */\nbool czm_ellipsoidContainsPoint(vec3 ellipsoid_inverseRadii, vec3 point)\n{\n vec3 scaled = ellipsoid_inverseRadii * (czm_inverseModelView * vec4(point, 1.0)).xyz;\n return (dot(scaled, scaled) <= 1.0);\n}\n"},404800:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * DOC_TBA\n *\n * @name czm_ellipsoidWgs84TextureCoordinates\n * @glslFunction\n */\nvec2 czm_ellipsoidWgs84TextureCoordinates(vec3 normal)\n{\n return vec2(atan(normal.y, normal.x) * czm_oneOverTwoPi + 0.5, asin(normal.z) * czm_oneOverPi + 0.5);\n}\n"},869109:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Compares left and right componentwise. Returns true\n * if they are within epsilon and false otherwise. The inputs\n * left and right can be floats, vec2s,\n * vec3s, or vec4s.\n *\n * @name czm_equalsEpsilon\n * @glslFunction\n *\n * @param {} left The first vector.\n * @param {} right The second vector.\n * @param {float} epsilon The epsilon to use for equality testing.\n * @returns {bool} true if the components are within epsilon and false otherwise.\n *\n * @example\n * // GLSL declarations\n * bool czm_equalsEpsilon(float left, float right, float epsilon);\n * bool czm_equalsEpsilon(vec2 left, vec2 right, float epsilon);\n * bool czm_equalsEpsilon(vec3 left, vec3 right, float epsilon);\n * bool czm_equalsEpsilon(vec4 left, vec4 right, float epsilon);\n */\nbool czm_equalsEpsilon(vec4 left, vec4 right, float epsilon) {\n return all(lessThanEqual(abs(left - right), vec4(epsilon)));\n}\n\nbool czm_equalsEpsilon(vec3 left, vec3 right, float epsilon) {\n return all(lessThanEqual(abs(left - right), vec3(epsilon)));\n}\n\nbool czm_equalsEpsilon(vec2 left, vec2 right, float epsilon) {\n return all(lessThanEqual(abs(left - right), vec2(epsilon)));\n}\n\nbool czm_equalsEpsilon(float left, float right, float epsilon) {\n return (abs(left - right) <= epsilon);\n}\n"},904027:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * DOC_TBA\n *\n * @name czm_eyeOffset\n * @glslFunction\n *\n * @param {vec4} positionEC DOC_TBA.\n * @param {vec3} eyeOffset DOC_TBA.\n *\n * @returns {vec4} DOC_TBA.\n */\nvec4 czm_eyeOffset(vec4 positionEC, vec3 eyeOffset)\n{\n // This equation is approximate in x and y.\n vec4 p = positionEC;\n vec4 zEyeOffset = normalize(p) * eyeOffset.z;\n p.xy += eyeOffset.xy + zEyeOffset.xy;\n p.z += zEyeOffset.z;\n return p;\n}\n"},481849:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Transforms a position from eye to window coordinates. The transformation\n * from eye to clip coordinates is done using {@link czm_projection}.\n * The transform from normalized device coordinates to window coordinates is\n * done using {@link czm_viewportTransformation}, which assumes a depth range\n * of near = 0 and far = 1.\n *

\n * This transform is useful when there is a need to manipulate window coordinates\n * in a vertex shader as done by {@link BillboardCollection}.\n *\n * @name czm_eyeToWindowCoordinates\n * @glslFunction\n *\n * @param {vec4} position The position in eye coordinates to transform.\n *\n * @returns {vec4} The transformed position in window coordinates.\n *\n * @see czm_modelToWindowCoordinates\n * @see czm_projection\n * @see czm_viewportTransformation\n * @see BillboardCollection\n *\n * @example\n * vec4 positionWC = czm_eyeToWindowCoordinates(positionEC);\n */\nvec4 czm_eyeToWindowCoordinates(vec4 positionEC)\n{\n vec4 q = czm_projection * positionEC; // clip coordinates\n q.xyz /= q.w; // normalized device coordinates\n q.xyz = (czm_viewportTransformation * vec4(q.xyz, 1.0)).xyz; // window coordinates\n return q;\n}\n"},756600:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Approxiamtes atan over the range [0, 1]. Safe to flip output for negative input.\n *\n * Based on Michal Drobot's approximation from ShaderFastLibs, which in turn is based on\n * \"Efficient approximations for the arctangent function,\" Rajan, S. Sichun Wang Inkol, R. Joyal, A., May 2006.\n * Adapted from ShaderFastLibs under MIT License.\n *\n * Chosen for the following characteristics over range [0, 1]:\n * - basically no error at 0 and 1, important for getting around range limit (naive atan2 via atan requires infinite range atan)\n * - no visible artifacts from first-derivative discontinuities, unlike latitude via range-reduced sqrt asin approximations (at equator)\n *\n * The original code is x * (-0.1784 * abs(x) - 0.0663 * x * x + 1.0301);\n * Removed the abs() in here because it isn't needed, the input range is guaranteed as [0, 1] by how we're approximating atan2.\n *\n * @name czm_fastApproximateAtan\n * @glslFunction\n *\n * @param {float} x Value between 0 and 1 inclusive.\n *\n * @returns {float} Approximation of atan(x)\n */\nfloat czm_fastApproximateAtan(float x) {\n return x * (-0.1784 * x - 0.0663 * x * x + 1.0301);\n}\n\n/**\n * Approximation of atan2.\n *\n * Range reduction math based on nvidia's cg reference implementation for atan2: http://developer.download.nvidia.com/cg/atan2.html\n * However, we replaced their atan curve with Michael Drobot's (see above).\n *\n * @name czm_fastApproximateAtan\n * @glslFunction\n *\n * @param {float} x Value between -1 and 1 inclusive.\n * @param {float} y Value between -1 and 1 inclusive.\n *\n * @returns {float} Approximation of atan2(x, y)\n */\nfloat czm_fastApproximateAtan(float x, float y) {\n // atan approximations are usually only reliable over [-1, 1], or, in our case, [0, 1] due to modifications.\n // So range-reduce using abs and by flipping whether x or y is on top.\n float t = abs(x); // t used as swap and atan result.\n float opposite = abs(y);\n float adjacent = max(t, opposite);\n opposite = min(t, opposite);\n\n t = czm_fastApproximateAtan(opposite / adjacent);\n\n // Undo range reduction\n t = czm_branchFreeTernary(abs(y) > abs(x), czm_piOverTwo - t, t);\n t = czm_branchFreeTernary(x < 0.0, czm_pi - t, t);\n t = czm_branchFreeTernary(y < 0.0, -t, t);\n return t;\n}\n"},34759:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Gets the color with fog at a distance from the camera.\n *\n * @name czm_fog\n * @glslFunction\n *\n * @param {float} distanceToCamera The distance to the camera in meters.\n * @param {vec3} color The original color.\n * @param {vec3} fogColor The color of the fog.\n *\n * @returns {vec3} The color adjusted for fog at the distance from the camera.\n */\nvec3 czm_fog(float distanceToCamera, vec3 color, vec3 fogColor)\n{\n float scalar = distanceToCamera * czm_fogDensity;\n float fog = 1.0 - exp(-(scalar * scalar));\n return mix(color, fogColor, fog);\n}\n\n/**\n * Gets the color with fog at a distance from the camera.\n *\n * @name czm_fog\n * @glslFunction\n *\n * @param {float} distanceToCamera The distance to the camera in meters.\n * @param {vec3} color The original color.\n * @param {vec3} fogColor The color of the fog.\n * @param {float} fogModifierConstant A constant to modify the appearance of fog.\n *\n * @returns {vec3} The color adjusted for fog at the distance from the camera.\n */\nvec3 czm_fog(float distanceToCamera, vec3 color, vec3 fogColor, float fogModifierConstant)\n{\n float scalar = distanceToCamera * czm_fogDensity;\n float fog = 1.0 - exp(-((fogModifierConstant * scalar + fogModifierConstant) * (scalar * (1.0 + fogModifierConstant))));\n return mix(color, fogColor, fog);\n}\n"},694557:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Converts a color from RGB space to linear space.\n *\n * @name czm_gammaCorrect\n * @glslFunction\n *\n * @param {vec3} color The color in RGB space.\n * @returns {vec3} The color in linear space.\n */\nvec3 czm_gammaCorrect(vec3 color) {\n#ifdef HDR\n color = pow(color, vec3(czm_gamma));\n#endif\n return color;\n}\n\nvec4 czm_gammaCorrect(vec4 color) {\n#ifdef HDR\n color.rgb = pow(color.rgb, vec3(czm_gamma));\n#endif\n return color;\n}\n"},271021:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * DOC_TBA\n *\n * @name czm_geodeticSurfaceNormal\n * @glslFunction\n *\n * @param {vec3} positionOnEllipsoid DOC_TBA\n * @param {vec3} ellipsoidCenter DOC_TBA\n * @param {vec3} oneOverEllipsoidRadiiSquared DOC_TBA\n * \n * @returns {vec3} DOC_TBA.\n */\nvec3 czm_geodeticSurfaceNormal(vec3 positionOnEllipsoid, vec3 ellipsoidCenter, vec3 oneOverEllipsoidRadiiSquared)\n{\n return normalize((positionOnEllipsoid - ellipsoidCenter) * oneOverEllipsoidRadiiSquared);\n}\n"},891254:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * An czm_material with default values. Every material's czm_getMaterial\n * should use this default material as a base for the material it returns.\n * The default normal value is given by materialInput.normalEC.\n *\n * @name czm_getDefaultMaterial\n * @glslFunction\n *\n * @param {czm_materialInput} input The input used to construct the default material.\n *\n * @returns {czm_material} The default material.\n *\n * @see czm_materialInput\n * @see czm_material\n * @see czm_getMaterial\n */\nczm_material czm_getDefaultMaterial(czm_materialInput materialInput)\n{\n czm_material material;\n material.diffuse = vec3(0.0);\n material.specular = 0.0;\n material.shininess = 1.0;\n material.normal = materialInput.normalEC;\n material.emission = vec3(0.0);\n material.alpha = 1.0;\n return material;\n}\n"},92437:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Calculates the intensity of diffusely reflected light.\n *\n * @name czm_getLambertDiffuse\n * @glslFunction\n *\n * @param {vec3} lightDirectionEC Unit vector pointing to the light source in eye coordinates.\n * @param {vec3} normalEC The surface normal in eye coordinates.\n *\n * @returns {float} The intensity of the diffuse reflection.\n *\n * @see czm_phong\n *\n * @example\n * float diffuseIntensity = czm_getLambertDiffuse(lightDirectionEC, normalEC);\n * float specularIntensity = czm_getSpecular(lightDirectionEC, toEyeEC, normalEC, 200);\n * vec3 color = (diffuseColor * diffuseIntensity) + (specularColor * specularIntensity);\n */\nfloat czm_getLambertDiffuse(vec3 lightDirectionEC, vec3 normalEC)\n{\n return max(dot(lightDirectionEC, normalEC), 0.0);\n}\n"},523286:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Calculates the specular intensity of reflected light.\n *\n * @name czm_getSpecular\n * @glslFunction\n *\n * @param {vec3} lightDirectionEC Unit vector pointing to the light source in eye coordinates.\n * @param {vec3} toEyeEC Unit vector pointing to the eye position in eye coordinates.\n * @param {vec3} normalEC The surface normal in eye coordinates.\n * @param {float} shininess The sharpness of the specular reflection. Higher values create a smaller, more focused specular highlight.\n *\n * @returns {float} The intensity of the specular highlight.\n *\n * @see czm_phong\n *\n * @example\n * float diffuseIntensity = czm_getLambertDiffuse(lightDirectionEC, normalEC);\n * float specularIntensity = czm_getSpecular(lightDirectionEC, toEyeEC, normalEC, 200);\n * vec3 color = (diffuseColor * diffuseIntensity) + (specularColor * specularIntensity);\n */\nfloat czm_getSpecular(vec3 lightDirectionEC, vec3 toEyeEC, vec3 normalEC, float shininess)\n{\n vec3 toReflectedLight = reflect(-lightDirectionEC, normalEC);\n float specular = max(dot(toReflectedLight, toEyeEC), 0.0);\n\n // pow has undefined behavior if both parameters <= 0.\n // Prevent this by making sure shininess is at least czm_epsilon2.\n return pow(specular, max(shininess, czm_epsilon2));\n}\n"},504939:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * @private\n */\nvec4 czm_getWaterNoise(sampler2D normalMap, vec2 uv, float time, float angleInRadians)\n{\n float cosAngle = cos(angleInRadians);\n float sinAngle = sin(angleInRadians);\n\n // time dependent sampling directions\n vec2 s0 = vec2(1.0/17.0, 0.0);\n vec2 s1 = vec2(-1.0/29.0, 0.0);\n vec2 s2 = vec2(1.0/101.0, 1.0/59.0);\n vec2 s3 = vec2(-1.0/109.0, -1.0/57.0);\n\n // rotate sampling direction by specified angle\n s0 = vec2((cosAngle * s0.x) - (sinAngle * s0.y), (sinAngle * s0.x) + (cosAngle * s0.y));\n s1 = vec2((cosAngle * s1.x) - (sinAngle * s1.y), (sinAngle * s1.x) + (cosAngle * s1.y));\n s2 = vec2((cosAngle * s2.x) - (sinAngle * s2.y), (sinAngle * s2.x) + (cosAngle * s2.y));\n s3 = vec2((cosAngle * s3.x) - (sinAngle * s3.y), (sinAngle * s3.x) + (cosAngle * s3.y));\n\n vec2 uv0 = (uv/103.0) + (time * s0);\n vec2 uv1 = uv/107.0 + (time * s1) + vec2(0.23);\n vec2 uv2 = uv/vec2(897.0, 983.0) + (time * s2) + vec2(0.51);\n vec2 uv3 = uv/vec2(991.0, 877.0) + (time * s3) + vec2(0.71);\n\n uv0 = fract(uv0);\n uv1 = fract(uv1);\n uv2 = fract(uv2);\n uv3 = fract(uv3);\n vec4 noise = (texture2D(normalMap, uv0)) +\n (texture2D(normalMap, uv1)) +\n (texture2D(normalMap, uv2)) +\n (texture2D(normalMap, uv3));\n\n // average and scale to between -1 and 1\n return ((noise / 4.0) - 0.5) * 2.0;\n}\n"},400058:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Adjusts the hue of a color.\n * \n * @name czm_hue\n * @glslFunction\n * \n * @param {vec3} rgb The color.\n * @param {float} adjustment The amount to adjust the hue of the color in radians.\n *\n * @returns {float} The color with the hue adjusted.\n *\n * @example\n * vec3 adjustHue = czm_hue(color, czm_pi); // The same as czm_hue(color, -czm_pi)\n */\nvec3 czm_hue(vec3 rgb, float adjustment)\n{\n const mat3 toYIQ = mat3(0.299, 0.587, 0.114,\n 0.595716, -0.274453, -0.321263,\n 0.211456, -0.522591, 0.311135);\n const mat3 toRGB = mat3(1.0, 0.9563, 0.6210,\n 1.0, -0.2721, -0.6474,\n 1.0, -1.107, 1.7046);\n \n vec3 yiq = toYIQ * rgb;\n float hue = atan(yiq.z, yiq.y) + adjustment;\n float chroma = sqrt(yiq.z * yiq.z + yiq.y * yiq.y);\n \n vec3 color = vec3(yiq.x, chroma * cos(hue), chroma * sin(hue));\n return toRGB * color;\n}\n"},137379:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Converts a color in linear space to RGB space.\n *\n * @name czm_inverseGamma\n * @glslFunction\n *\n * @param {vec3} color The color in linear space.\n * @returns {vec3} The color in RGB space.\n */\nvec3 czm_inverseGamma(vec3 color) {\n return pow(color, vec3(1.0 / czm_gamma));\n}\n"},959429:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Determines if a time interval is empty.\n *\n * @name czm_isEmpty\n * @glslFunction \n * \n * @param {czm_raySegment} interval The interval to test.\n * \n * @returns {bool} true if the time interval is empty; otherwise, false.\n *\n * @example\n * bool b0 = czm_isEmpty(czm_emptyRaySegment); // true\n * bool b1 = czm_isEmpty(czm_raySegment(0.0, 1.0)); // false\n * bool b2 = czm_isEmpty(czm_raySegment(1.0, 1.0)); // false, contains 1.0.\n */\nbool czm_isEmpty(czm_raySegment interval)\n{\n return (interval.stop < 0.0);\n}\n"},544989:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Determines if a time interval is empty.\n *\n * @name czm_isFull\n * @glslFunction \n * \n * @param {czm_raySegment} interval The interval to test.\n * \n * @returns {bool} true if the time interval is empty; otherwise, false.\n *\n * @example\n * bool b0 = czm_isEmpty(czm_emptyRaySegment); // true\n * bool b1 = czm_isEmpty(czm_raySegment(0.0, 1.0)); // false\n * bool b2 = czm_isEmpty(czm_raySegment(1.0, 1.0)); // false, contains 1.0.\n */\nbool czm_isFull(czm_raySegment interval)\n{\n return (interval.start == 0.0 && interval.stop == czm_infinity);\n}\n"},820182:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Computes the fraction of a Web Wercator rectangle at which a given geodetic latitude is located.\n *\n * @name czm_latitudeToWebMercatorFraction\n * @glslFunction\n *\n * @param {float} latitude The geodetic latitude, in radians.\n * @param {float} southMercatorY The Web Mercator coordinate of the southern boundary of the rectangle.\n * @param {float} oneOverMercatorHeight The total height of the rectangle in Web Mercator coordinates.\n *\n * @returns {float} The fraction of the rectangle at which the latitude occurs. If the latitude is the southern\n * boundary of the rectangle, the return value will be zero. If it is the northern boundary, the return\n * value will be 1.0. Latitudes in between are mapped according to the Web Mercator projection.\n */ \nfloat czm_latitudeToWebMercatorFraction(float latitude, float southMercatorY, float oneOverMercatorHeight)\n{\n float sinLatitude = sin(latitude);\n float mercatorY = 0.5 * log((1.0 + sinLatitude) / (1.0 - sinLatitude));\n \n return (mercatorY - southMercatorY) * oneOverMercatorHeight;\n}\n"},194578:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Computes distance from an point in 2D to a line in 2D.\n *\n * @name czm_lineDistance\n * @glslFunction\n *\n * param {vec2} point1 A point along the line.\n * param {vec2} point2 A point along the line.\n * param {vec2} point A point that may or may not be on the line.\n * returns {float} The distance from the point to the line.\n */\nfloat czm_lineDistance(vec2 point1, vec2 point2, vec2 point) {\n return abs((point2.y - point1.y) * point.x - (point2.x - point1.x) * point.y + point2.x * point1.y - point2.y * point1.x) / distance(point2, point1);\n}\n"},299431:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Converts a linear RGB color to an sRGB color.\n *\n * @param {vec3|vec4} linearIn The color in linear color space.\n * @returns {vec3|vec4} The color in sRGB color space. The vector type matches the input.\n */\nvec3 czm_linearToSrgb(vec3 linearIn) \n{\n return pow(linearIn, vec3(1.0/2.2));\n}\n\nvec4 czm_linearToSrgb(vec4 linearIn) \n{\n vec3 srgbOut = pow(linearIn.rgb, vec3(1.0/2.2));\n return vec4(srgbOut, linearIn.a);\n}\n"},200914:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Computes the luminance of a color. \n *\n * @name czm_luminance\n * @glslFunction\n *\n * @param {vec3} rgb The color.\n * \n * @returns {float} The luminance.\n *\n * @example\n * float light = czm_luminance(vec3(0.0)); // 0.0\n * float dark = czm_luminance(vec3(1.0)); // ~1.0 \n */\nfloat czm_luminance(vec3 rgb)\n{\n // Algorithm from Chapter 10 of Graphics Shaders.\n const vec3 W = vec3(0.2125, 0.7154, 0.0721);\n return dot(rgb, W);\n}\n"},120347:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Computes the size of a pixel in meters at a distance from the eye.\n *

\n * Use this version when passing in a custom pixel ratio. For example, passing in 1.0 will return meters per native device pixel.\n *

\n * @name czm_metersPerPixel\n * @glslFunction\n *\n * @param {vec3} positionEC The position to get the meters per pixel in eye coordinates.\n * @param {float} pixelRatio The scaling factor from pixel space to coordinate space\n *\n * @returns {float} The meters per pixel at positionEC.\n */\nfloat czm_metersPerPixel(vec4 positionEC, float pixelRatio)\n{\n float width = czm_viewport.z;\n float height = czm_viewport.w;\n float pixelWidth;\n float pixelHeight;\n\n float top = czm_frustumPlanes.x;\n float bottom = czm_frustumPlanes.y;\n float left = czm_frustumPlanes.z;\n float right = czm_frustumPlanes.w;\n\n if (czm_sceneMode == czm_sceneMode2D || czm_orthographicIn3D == 1.0)\n {\n float frustumWidth = right - left;\n float frustumHeight = top - bottom;\n pixelWidth = frustumWidth / width;\n pixelHeight = frustumHeight / height;\n }\n else\n {\n float distanceToPixel = -positionEC.z;\n float inverseNear = 1.0 / czm_currentFrustum.x;\n float tanTheta = top * inverseNear;\n pixelHeight = 2.0 * distanceToPixel * tanTheta / height;\n tanTheta = right * inverseNear;\n pixelWidth = 2.0 * distanceToPixel * tanTheta / width;\n }\n\n return max(pixelWidth, pixelHeight) * pixelRatio;\n}\n\n/**\n * Computes the size of a pixel in meters at a distance from the eye.\n *

\n * Use this version when scaling by pixel ratio.\n *

\n * @name czm_metersPerPixel\n * @glslFunction\n *\n * @param {vec3} positionEC The position to get the meters per pixel in eye coordinates.\n *\n * @returns {float} The meters per pixel at positionEC.\n */\nfloat czm_metersPerPixel(vec4 positionEC)\n{\n return czm_metersPerPixel(positionEC, czm_pixelRatio);\n}\n"},916975:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Transforms a position from model to window coordinates. The transformation\n * from model to clip coordinates is done using {@link czm_modelViewProjection}.\n * The transform from normalized device coordinates to window coordinates is\n * done using {@link czm_viewportTransformation}, which assumes a depth range\n * of near = 0 and far = 1.\n *

\n * This transform is useful when there is a need to manipulate window coordinates\n * in a vertex shader as done by {@link BillboardCollection}.\n *

\n * This function should not be confused with {@link czm_viewportOrthographic},\n * which is an orthographic projection matrix that transforms from window \n * coordinates to clip coordinates.\n *\n * @name czm_modelToWindowCoordinates\n * @glslFunction\n *\n * @param {vec4} position The position in model coordinates to transform.\n *\n * @returns {vec4} The transformed position in window coordinates.\n *\n * @see czm_eyeToWindowCoordinates\n * @see czm_modelViewProjection\n * @see czm_viewportTransformation\n * @see czm_viewportOrthographic\n * @see BillboardCollection\n *\n * @example\n * vec4 positionWC = czm_modelToWindowCoordinates(positionMC);\n */\nvec4 czm_modelToWindowCoordinates(vec4 position)\n{\n vec4 q = czm_modelViewProjection * position; // clip coordinates\n q.xyz /= q.w; // normalized device coordinates\n q.xyz = (czm_viewportTransformation * vec4(q.xyz, 1.0)).xyz; // window coordinates\n return q;\n}\n"},847996:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * DOC_TBA\n *\n * @name czm_multiplyWithColorBalance\n * @glslFunction\n */\nvec3 czm_multiplyWithColorBalance(vec3 left, vec3 right)\n{\n // Algorithm from Chapter 10 of Graphics Shaders.\n const vec3 W = vec3(0.2125, 0.7154, 0.0721);\n \n vec3 target = left * right;\n float leftLuminance = dot(left, W);\n float rightLuminance = dot(right, W);\n float targetLuminance = dot(target, W);\n \n return ((leftLuminance + rightLuminance) / (2.0 * targetLuminance)) * target;\n}\n"},677136:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Computes a value that scales with distance. The scaling is clamped at the near and\n * far distances, and does not extrapolate. This function works with the\n * {@link NearFarScalar} JavaScript class.\n *\n * @name czm_nearFarScalar\n * @glslFunction\n *\n * @param {vec4} nearFarScalar A vector with 4 components: Near distance (x), Near value (y), Far distance (z), Far value (w).\n * @param {float} cameraDistSq The square of the current distance from the camera.\n *\n * @returns {float} The value at this distance.\n */\nfloat czm_nearFarScalar(vec4 nearFarScalar, float cameraDistSq)\n{\n float valueAtMin = nearFarScalar.y;\n float valueAtMax = nearFarScalar.w;\n float nearDistanceSq = nearFarScalar.x * nearFarScalar.x;\n float farDistanceSq = nearFarScalar.z * nearFarScalar.z;\n\n float t = (cameraDistSq - nearDistanceSq) / (farDistanceSq - nearDistanceSq);\n\n t = pow(clamp(t, 0.0, 1.0), 0.2);\n\n return mix(valueAtMin, valueAtMax, t);\n}\n"},716345:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o=" /**\n * Decodes a unit-length vector in 'oct' encoding to a normalized 3-component Cartesian vector.\n * The 'oct' encoding is described in \"A Survey of Efficient Representations of Independent Unit Vectors\",\n * Cigolle et al 2014: http://jcgt.org/published/0003/02/01/\n *\n * @name czm_octDecode\n * @param {vec2} encoded The oct-encoded, unit-length vector\n * @param {float} range The maximum value of the SNORM range. The encoded vector is stored in log2(rangeMax+1) bits.\n * @returns {vec3} The decoded and normalized vector\n */\n vec3 czm_octDecode(vec2 encoded, float range)\n {\n if (encoded.x == 0.0 && encoded.y == 0.0) {\n return vec3(0.0, 0.0, 0.0);\n }\n\n encoded = encoded / range * 2.0 - 1.0;\n vec3 v = vec3(encoded.x, encoded.y, 1.0 - abs(encoded.x) - abs(encoded.y));\n if (v.z < 0.0)\n {\n v.xy = (1.0 - abs(v.yx)) * czm_signNotZero(v.xy);\n }\n\n return normalize(v);\n }\n\n/**\n * Decodes a unit-length vector in 'oct' encoding to a normalized 3-component Cartesian vector.\n * The 'oct' encoding is described in \"A Survey of Efficient Representations of Independent Unit Vectors\",\n * Cigolle et al 2014: http://jcgt.org/published/0003/02/01/\n *\n * @name czm_octDecode\n * @param {vec2} encoded The oct-encoded, unit-length vector\n * @returns {vec3} The decoded and normalized vector\n */\n vec3 czm_octDecode(vec2 encoded)\n {\n return czm_octDecode(encoded, 255.0);\n }\n\n /**\n * Decodes a unit-length vector in 'oct' encoding packed into a floating-point number to a normalized 3-component Cartesian vector.\n * The 'oct' encoding is described in \"A Survey of Efficient Representations of Independent Unit Vectors\",\n * Cigolle et al 2014: http://jcgt.org/published/0003/02/01/\n *\n * @name czm_octDecode\n * @param {float} encoded The oct-encoded, unit-length vector\n * @returns {vec3} The decoded and normalized vector\n */\n vec3 czm_octDecode(float encoded)\n {\n float temp = encoded / 256.0;\n float x = floor(temp);\n float y = (temp - x) * 256.0;\n return czm_octDecode(vec2(x, y));\n }\n\n/**\n * Decodes three unit-length vectors in 'oct' encoding packed into two floating-point numbers to normalized 3-component Cartesian vectors.\n * The 'oct' encoding is described in \"A Survey of Efficient Representations of Independent Unit Vectors\",\n * Cigolle et al 2014: http://jcgt.org/published/0003/02/01/\n *\n * @name czm_octDecode\n * @param {vec2} encoded The packed oct-encoded, unit-length vectors.\n * @param {vec3} vector1 One decoded and normalized vector.\n * @param {vec3} vector2 One decoded and normalized vector.\n * @param {vec3} vector3 One decoded and normalized vector.\n */\n void czm_octDecode(vec2 encoded, out vec3 vector1, out vec3 vector2, out vec3 vector3)\n {\n float temp = encoded.x / 65536.0;\n float x = floor(temp);\n float encodedFloat1 = (temp - x) * 65536.0;\n\n temp = encoded.y / 65536.0;\n float y = floor(temp);\n float encodedFloat2 = (temp - y) * 65536.0;\n\n vector1 = czm_octDecode(encodedFloat1);\n vector2 = czm_octDecode(encodedFloat2);\n vector3 = czm_octDecode(vec2(x, y));\n }\n\n"},610320:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Packs a depth value into a vec3 that can be represented by unsigned bytes.\n *\n * @name czm_packDepth\n * @glslFunction\n *\n * @param {float} depth The floating-point depth.\n * @returns {vec3} The packed depth.\n */\nvec4 czm_packDepth(float depth)\n{\n // See Aras Pranckevičius' post Encoding Floats to RGBA\n // http://aras-p.info/blog/2009/07/30/encoding-floats-to-rgba-the-final/\n vec4 enc = vec4(1.0, 255.0, 65025.0, 16581375.0) * depth;\n enc = fract(enc);\n enc -= enc.yzww * vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);\n return enc;\n}\n"},704024:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="vec3 lambertianDiffuse(vec3 diffuseColor)\n{\n return diffuseColor / czm_pi;\n}\n\nvec3 fresnelSchlick2(vec3 f0, vec3 f90, float VdotH)\n{\n return f0 + (f90 - f0) * pow(clamp(1.0 - VdotH, 0.0, 1.0), 5.0);\n}\n\nfloat smithVisibilityG1(float NdotV, float roughness)\n{\n // this is the k value for direct lighting.\n // for image based lighting it will be roughness^2 / 2\n float k = (roughness + 1.0) * (roughness + 1.0) / 8.0;\n return NdotV / (NdotV * (1.0 - k) + k);\n}\n\nfloat smithVisibilityGGX(float roughness, float NdotL, float NdotV)\n{\n return (\n smithVisibilityG1(NdotL, roughness) *\n smithVisibilityG1(NdotV, roughness)\n );\n}\n\nfloat GGX(float roughness, float NdotH)\n{\n float roughnessSquared = roughness * roughness;\n float f = (NdotH * roughnessSquared - NdotH) * NdotH + 1.0;\n return roughnessSquared / (czm_pi * f * f);\n}\n\n/**\n * Compute the diffuse and specular contributions using physically based\n * rendering. This function only handles direct lighting.\n *

\n * This function only handles the lighting calculations. Metallic/roughness\n * and specular/glossy must be handled separately. See {@czm_pbrMetallicRoughnessMaterial}, {@czm_pbrSpecularGlossinessMaterial} and {@czm_defaultPbrMaterial}\n *

\n *\n * @name czm_pbrlighting\n * @glslFunction\n *\n * @param {vec3} positionEC The position of the fragment in eye coordinates\n * @param {vec3} normalEC The surface normal in eye coordinates\n * @param {vec3} lightDirectionEC Unit vector pointing to the light source in eye coordinates.\n * @param {vec3} lightColorHdr radiance of the light source. This is a HDR value.\n * @param {czm_pbrParameters} The computed PBR parameters.\n * @return {vec3} The computed HDR color\n *\n * @example\n * czm_pbrParameters pbrParameters = czm_pbrMetallicRoughnessMaterial(\n * baseColor,\n * metallic,\n * roughness\n * );\n * vec3 color = czm_pbrlighting(\n * positionEC,\n * normalEC,\n * lightDirectionEC,\n * lightColorHdr,\n * pbrParameters);\n */\nvec3 czm_pbrLighting(\n vec3 positionEC,\n vec3 normalEC,\n vec3 lightDirectionEC,\n vec3 lightColorHdr,\n czm_pbrParameters pbrParameters\n)\n{\n vec3 v = -normalize(positionEC);\n vec3 l = normalize(lightDirectionEC);\n vec3 h = normalize(v + l);\n vec3 n = normalEC;\n float NdotL = clamp(dot(n, l), 0.001, 1.0);\n float NdotV = abs(dot(n, v)) + 0.001;\n float NdotH = clamp(dot(n, h), 0.0, 1.0);\n float LdotH = clamp(dot(l, h), 0.0, 1.0);\n float VdotH = clamp(dot(v, h), 0.0, 1.0);\n\n vec3 f0 = pbrParameters.f0;\n float reflectance = max(max(f0.r, f0.g), f0.b);\n vec3 f90 = vec3(clamp(reflectance * 25.0, 0.0, 1.0));\n vec3 F = fresnelSchlick2(f0, f90, VdotH);\n\n float alpha = pbrParameters.roughness;\n float G = smithVisibilityGGX(alpha, NdotL, NdotV);\n float D = GGX(alpha, NdotH);\n vec3 specularContribution = F * G * D / (4.0 * NdotL * NdotV);\n\n vec3 diffuseColor = pbrParameters.diffuseColor;\n // F here represents the specular contribution\n vec3 diffuseContribution = (1.0 - F) * lambertianDiffuse(diffuseColor);\n\n // Lo = (diffuse + specular) * Li * NdotL\n return (diffuseContribution + specularContribution) * NdotL * lightColorHdr;\n}\n"},143992:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Compute parameters for physically based rendering using the\n * metallic/roughness workflow. All inputs are linear; sRGB texture values must\n * be decoded beforehand\n *\n * @name czm_pbrMetallicRoughnessMaterial\n * @glslFunction\n *\n * @param {vec3} baseColor For dielectrics, this is the base color. For metals, this is the f0 value (reflectance at normal incidence)\n * @param {float} metallic 0.0 indicates dielectric. 1.0 indicates metal. Values in between are allowed (e.g. to model rust or dirt);\n * @param {float} roughness A value between 0.0 and 1.0\n * @return {czm_pbrParameters} parameters to pass into {@link czm_pbrLighting}\n */\nczm_pbrParameters czm_pbrMetallicRoughnessMaterial(\n vec3 baseColor,\n float metallic,\n float roughness\n) \n{\n czm_pbrParameters results;\n\n // roughness is authored as perceptual roughness\n // square it to get material roughness\n roughness = clamp(roughness, 0.0, 1.0);\n results.roughness = roughness * roughness;\n\n // dielectrics us f0 = 0.04, metals use albedo as f0\n metallic = clamp(metallic, 0.0, 1.0);\n const vec3 REFLECTANCE_DIELECTRIC = vec3(0.04);\n vec3 f0 = mix(REFLECTANCE_DIELECTRIC, baseColor, metallic);\n results.f0 = f0;\n\n // diffuse only applies to dielectrics.\n results.diffuseColor = baseColor * (1.0 - f0) * (1.0 - metallic);\n\n return results;\n}\n"},253463:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Compute parameters for physically based rendering using the\n * specular/glossy workflow. All inputs are linear; sRGB texture values must\n * be decoded beforehand\n *\n * @name czm_pbrSpecularGlossinessMaterial\n * @glslFunction\n *\n * @param {vec3} diffuse The diffuse color for dielectrics (non-metals)\n * @param {vec3} specular The reflectance at normal incidence (f0)\n * @param {float} glossiness A number from 0.0 to 1.0 indicating how smooth the surface is.\n * @return {czm_pbrParameters} parameters to pass into {@link czm_pbrLighting}\n */\nczm_pbrParameters czm_pbrSpecularGlossinessMaterial(\n vec3 diffuse,\n vec3 specular,\n float glossiness\n) \n{\n czm_pbrParameters results;\n\n // glossiness is the opposite of roughness, but easier for artists to use.\n float roughness = 1.0 - glossiness;\n results.roughness = roughness * roughness;\n\n results.diffuseColor = diffuse * (1.0 - max(max(specular.r, specular.g), specular.b));\n results.f0 = specular;\n\n return results;\n}\n"},318884:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="float czm_private_getLambertDiffuseOfMaterial(vec3 lightDirectionEC, czm_material material)\n{\n return czm_getLambertDiffuse(lightDirectionEC, material.normal);\n}\n\nfloat czm_private_getSpecularOfMaterial(vec3 lightDirectionEC, vec3 toEyeEC, czm_material material)\n{\n return czm_getSpecular(lightDirectionEC, toEyeEC, material.normal, material.shininess);\n}\n\n/**\n * Computes a color using the Phong lighting model.\n *\n * @name czm_phong\n * @glslFunction\n *\n * @param {vec3} toEye A normalized vector from the fragment to the eye in eye coordinates.\n * @param {czm_material} material The fragment's material.\n *\n * @returns {vec4} The computed color.\n *\n * @example\n * vec3 positionToEyeEC = // ...\n * czm_material material = // ...\n * vec3 lightDirectionEC = // ...\n * gl_FragColor = czm_phong(normalize(positionToEyeEC), material, lightDirectionEC);\n *\n * @see czm_getMaterial\n */\nvec4 czm_phong(vec3 toEye, czm_material material, vec3 lightDirectionEC)\n{\n // Diffuse from directional light sources at eye (for top-down)\n float diffuse = czm_private_getLambertDiffuseOfMaterial(vec3(0.0, 0.0, 1.0), material);\n if (czm_sceneMode == czm_sceneMode3D) {\n // (and horizon views in 3D)\n diffuse += czm_private_getLambertDiffuseOfMaterial(vec3(0.0, 1.0, 0.0), material);\n }\n\n float specular = czm_private_getSpecularOfMaterial(lightDirectionEC, toEye, material);\n\n // Temporary workaround for adding ambient.\n vec3 materialDiffuse = material.diffuse * 0.5;\n\n vec3 ambient = materialDiffuse;\n vec3 color = ambient + material.emission;\n color += materialDiffuse * diffuse * czm_lightColor;\n color += material.specular * specular * czm_lightColor;\n\n return vec4(color, material.alpha);\n}\n\nvec4 czm_private_phong(vec3 toEye, czm_material material, vec3 lightDirectionEC)\n{\n float diffuse = czm_private_getLambertDiffuseOfMaterial(lightDirectionEC, material);\n float specular = czm_private_getSpecularOfMaterial(lightDirectionEC, toEye, material);\n\n vec3 ambient = vec3(0.0);\n vec3 color = ambient + material.emission;\n color += material.diffuse * diffuse * czm_lightColor;\n color += material.specular * specular * czm_lightColor;\n\n return vec4(color, material.alpha);\n}\n"},862433:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Computes distance from a point to a plane.\n *\n * @name czm_planeDistance\n * @glslFunction\n *\n * param {vec4} plane A Plane in Hessian Normal Form. See Plane.js\n * param {vec3} point A point in the same space as the plane.\n * returns {float} The distance from the point to the plane.\n */\nfloat czm_planeDistance(vec4 plane, vec3 point) {\n return (dot(plane.xyz, point) + plane.w);\n}\n\n/**\n * Computes distance from a point to a plane.\n *\n * @name czm_planeDistance\n * @glslFunction\n *\n * param {vec3} planeNormal Normal for a plane in Hessian Normal Form. See Plane.js\n * param {float} planeDistance Distance for a plane in Hessian Normal form. See Plane.js\n * param {vec3} point A point in the same space as the plane.\n * returns {float} The distance from the point to the plane.\n */\nfloat czm_planeDistance(vec3 planeNormal, float planeDistance, vec3 point) {\n return (dot(planeNormal, point) + planeDistance);\n}\n"},860771:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Computes the point along a ray at the given time. time can be positive, negative, or zero.\n *\n * @name czm_pointAlongRay\n * @glslFunction\n *\n * @param {czm_ray} ray The ray to compute the point along.\n * @param {float} time The time along the ray.\n * \n * @returns {vec3} The point along the ray at the given time.\n * \n * @example\n * czm_ray ray = czm_ray(vec3(0.0), vec3(1.0, 0.0, 0.0)); // origin, direction\n * vec3 v = czm_pointAlongRay(ray, 2.0); // (2.0, 0.0, 0.0)\n */\nvec3 czm_pointAlongRay(czm_ray ray, float time)\n{\n return ray.origin + (time * ray.direction);\n}\n"},494056:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * DOC_TBA\n *\n * @name czm_rayEllipsoidIntersectionInterval\n * @glslFunction\n */\nczm_raySegment czm_rayEllipsoidIntersectionInterval(czm_ray ray, vec3 ellipsoid_center, vec3 ellipsoid_inverseRadii)\n{\n // ray and ellipsoid center in eye coordinates. radii in model coordinates.\n vec3 q = ellipsoid_inverseRadii * (czm_inverseModelView * vec4(ray.origin, 1.0)).xyz;\n vec3 w = ellipsoid_inverseRadii * (czm_inverseModelView * vec4(ray.direction, 0.0)).xyz;\n\n q = q - ellipsoid_inverseRadii * (czm_inverseModelView * vec4(ellipsoid_center, 1.0)).xyz;\n\n float q2 = dot(q, q);\n float qw = dot(q, w);\n\n if (q2 > 1.0) // Outside ellipsoid.\n {\n if (qw >= 0.0) // Looking outward or tangent (0 intersections).\n {\n return czm_emptyRaySegment;\n }\n else // qw < 0.0.\n {\n float qw2 = qw * qw;\n float difference = q2 - 1.0; // Positively valued.\n float w2 = dot(w, w);\n float product = w2 * difference;\n\n if (qw2 < product) // Imaginary roots (0 intersections).\n {\n return czm_emptyRaySegment;\n }\n else if (qw2 > product) // Distinct roots (2 intersections).\n {\n float discriminant = qw * qw - product;\n float temp = -qw + sqrt(discriminant); // Avoid cancellation.\n float root0 = temp / w2;\n float root1 = difference / temp;\n if (root0 < root1)\n {\n czm_raySegment i = czm_raySegment(root0, root1);\n return i;\n }\n else\n {\n czm_raySegment i = czm_raySegment(root1, root0);\n return i;\n }\n }\n else // qw2 == product. Repeated roots (2 intersections).\n {\n float root = sqrt(difference / w2);\n czm_raySegment i = czm_raySegment(root, root);\n return i;\n }\n }\n }\n else if (q2 < 1.0) // Inside ellipsoid (2 intersections).\n {\n float difference = q2 - 1.0; // Negatively valued.\n float w2 = dot(w, w);\n float product = w2 * difference; // Negatively valued.\n float discriminant = qw * qw - product;\n float temp = -qw + sqrt(discriminant); // Positively valued.\n czm_raySegment i = czm_raySegment(0.0, temp / w2);\n return i;\n }\n else // q2 == 1.0. On ellipsoid.\n {\n if (qw < 0.0) // Looking inward.\n {\n float w2 = dot(w, w);\n czm_raySegment i = czm_raySegment(0.0, -qw / w2);\n return i;\n }\n else // qw >= 0.0. Looking outward or tangent.\n {\n return czm_emptyRaySegment;\n }\n }\n}\n"},41657:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="float czm_readDepth(sampler2D depthTexture, vec2 texCoords)\n{\n return czm_reverseLogDepth(texture2D(depthTexture, texCoords).r);\n}\n"},173354:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Reads a value previously transformed with {@link czm_writeNonPerspective}\n * by dividing it by `w`, the value used in the perspective divide.\n * This function is intended to be called in a fragment shader to access a\n * `varying` that should not be subject to perspective interpolation.\n * For example, screen-space texture coordinates. The value should have been\n * previously written in the vertex shader with a call to\n * {@link czm_writeNonPerspective}.\n *\n * @name czm_readNonPerspective\n * @glslFunction\n *\n * @param {float|vec2|vec3|vec4} value The non-perspective value to be read.\n * @param {float} oneOverW One over the perspective divide value, `w`. Usually this is simply `gl_FragCoord.w`.\n * @returns {float|vec2|vec3|vec4} The usable value.\n */\nfloat czm_readNonPerspective(float value, float oneOverW) {\n return value * oneOverW;\n}\n\nvec2 czm_readNonPerspective(vec2 value, float oneOverW) {\n return value * oneOverW;\n}\n\nvec3 czm_readNonPerspective(vec3 value, float oneOverW) {\n return value * oneOverW;\n}\n\nvec4 czm_readNonPerspective(vec4 value, float oneOverW) {\n return value * oneOverW;\n}\n"},611471:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="float czm_reverseLogDepth(float logZ)\n{\n#ifdef LOG_DEPTH\n float near = czm_currentFrustum.x;\n float far = czm_currentFrustum.y;\n float log2Depth = logZ * czm_log2FarDepthFromNearPlusOne;\n float depthFromNear = pow(2.0, log2Depth) - 1.0;\n return far * (1.0 - near / (depthFromNear + near)) / (far - near);\n#endif\n return logZ;\n}\n"},670042:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Samples the 4 neighboring pixels and return the weighted average.\n *\n * @private\n */\nvec3 czm_sampleOctahedralProjectionWithFiltering(sampler2D projectedMap, vec2 textureSize, vec3 direction, float lod)\n{\n direction /= dot(vec3(1.0), abs(direction));\n vec2 rev = abs(direction.zx) - vec2(1.0);\n vec2 neg = vec2(direction.x < 0.0 ? rev.x : -rev.x,\n direction.z < 0.0 ? rev.y : -rev.y);\n vec2 uv = direction.y < 0.0 ? neg : direction.xz;\n vec2 coord = 0.5 * uv + vec2(0.5);\n vec2 pixel = 1.0 / textureSize;\n\n if (lod > 0.0)\n {\n // Each subseqeuent mip level is half the size\n float scale = 1.0 / pow(2.0, lod);\n float offset = ((textureSize.y + 1.0) / textureSize.x);\n\n coord.x *= offset;\n coord *= scale;\n\n coord.x += offset + pixel.x;\n coord.y += (1.0 - (1.0 / pow(2.0, lod - 1.0))) + pixel.y * (lod - 1.0) * 2.0;\n }\n else\n {\n coord.x *= (textureSize.y / textureSize.x);\n }\n\n // Do bilinear filtering\n #ifndef OES_texture_float_linear\n vec3 color1 = texture2D(projectedMap, coord + vec2(0.0, pixel.y)).rgb;\n vec3 color2 = texture2D(projectedMap, coord + vec2(pixel.x, 0.0)).rgb;\n vec3 color3 = texture2D(projectedMap, coord + pixel).rgb;\n vec3 color4 = texture2D(projectedMap, coord).rgb;\n\n vec2 texturePosition = coord * textureSize;\n\n float fu = fract(texturePosition.x);\n float fv = fract(texturePosition.y);\n\n vec3 average1 = mix(color4, color2, fu);\n vec3 average2 = mix(color1, color3, fu);\n\n vec3 color = mix(average1, average2, fv);\n #else\n vec3 color = texture2D(projectedMap, coord).rgb;\n #endif\n\n return color;\n}\n\n\n/**\n * Samples from a cube map that has been projected using an octahedral projection from the given direction.\n *\n * @name czm_sampleOctahedralProjection\n * @glslFunction\n *\n * @param {sampler2D} projectedMap The texture with the octahedral projected cube map.\n * @param {vec2} textureSize The width and height dimensions in pixels of the projected map.\n * @param {vec3} direction The normalized direction used to sample the cube map.\n * @param {float} lod The level of detail to sample.\n * @param {float} maxLod The maximum level of detail.\n * @returns {vec3} The color of the cube map at the direction.\n */\nvec3 czm_sampleOctahedralProjection(sampler2D projectedMap, vec2 textureSize, vec3 direction, float lod, float maxLod) {\n float currentLod = floor(lod + 0.5);\n float nextLod = min(currentLod + 1.0, maxLod);\n\n vec3 colorCurrentLod = czm_sampleOctahedralProjectionWithFiltering(projectedMap, textureSize, direction, currentLod);\n vec3 colorNextLod = czm_sampleOctahedralProjectionWithFiltering(projectedMap, textureSize, direction, nextLod);\n\n return mix(colorNextLod, colorCurrentLod, nextLod - lod);\n}\n"},836213:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Adjusts the saturation of a color.\n * \n * @name czm_saturation\n * @glslFunction\n * \n * @param {vec3} rgb The color.\n * @param {float} adjustment The amount to adjust the saturation of the color.\n *\n * @returns {float} The color with the saturation adjusted.\n *\n * @example\n * vec3 greyScale = czm_saturation(color, 0.0);\n * vec3 doubleSaturation = czm_saturation(color, 2.0);\n */\nvec3 czm_saturation(vec3 rgb, float adjustment)\n{\n // Algorithm from Chapter 16 of OpenGL Shading Language\n const vec3 W = vec3(0.2125, 0.7154, 0.0721);\n vec3 intensity = vec3(dot(rgb, W));\n return mix(intensity, rgb, adjustment);\n}\n"},124460:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="\nfloat czm_sampleShadowMap(highp samplerCube shadowMap, vec3 d)\n{\n return czm_unpackDepth(textureCube(shadowMap, d));\n}\n\nfloat czm_sampleShadowMap(highp sampler2D shadowMap, vec2 uv)\n{\n#ifdef USE_SHADOW_DEPTH_TEXTURE\n return texture2D(shadowMap, uv).r;\n#else\n return czm_unpackDepth(texture2D(shadowMap, uv));\n#endif\n}\n\nfloat czm_shadowDepthCompare(samplerCube shadowMap, vec3 uv, float depth)\n{\n return step(depth, czm_sampleShadowMap(shadowMap, uv));\n}\n\nfloat czm_shadowDepthCompare(sampler2D shadowMap, vec2 uv, float depth)\n{\n return step(depth, czm_sampleShadowMap(shadowMap, uv));\n}\n"},175807:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="\nfloat czm_private_shadowVisibility(float visibility, float nDotL, float normalShadingSmooth, float darkness)\n{\n#ifdef USE_NORMAL_SHADING\n#ifdef USE_NORMAL_SHADING_SMOOTH\n float strength = clamp(nDotL / normalShadingSmooth, 0.0, 1.0);\n#else\n float strength = step(0.0, nDotL);\n#endif\n visibility *= strength;\n#endif\n\n visibility = max(visibility, darkness);\n return visibility;\n}\n\n#ifdef USE_CUBE_MAP_SHADOW\nfloat czm_shadowVisibility(samplerCube shadowMap, czm_shadowParameters shadowParameters)\n{\n float depthBias = shadowParameters.depthBias;\n float depth = shadowParameters.depth;\n float nDotL = shadowParameters.nDotL;\n float normalShadingSmooth = shadowParameters.normalShadingSmooth;\n float darkness = shadowParameters.darkness;\n vec3 uvw = shadowParameters.texCoords;\n\n depth -= depthBias;\n float visibility = czm_shadowDepthCompare(shadowMap, uvw, depth);\n return czm_private_shadowVisibility(visibility, nDotL, normalShadingSmooth, darkness);\n}\n#else\nfloat czm_shadowVisibility(sampler2D shadowMap, czm_shadowParameters shadowParameters)\n{\n float depthBias = shadowParameters.depthBias;\n float depth = shadowParameters.depth;\n float nDotL = shadowParameters.nDotL;\n float normalShadingSmooth = shadowParameters.normalShadingSmooth;\n float darkness = shadowParameters.darkness;\n vec2 uv = shadowParameters.texCoords;\n\n depth -= depthBias;\n#ifdef USE_SOFT_SHADOWS\n vec2 texelStepSize = shadowParameters.texelStepSize;\n float radius = 1.0;\n float dx0 = -texelStepSize.x * radius;\n float dy0 = -texelStepSize.y * radius;\n float dx1 = texelStepSize.x * radius;\n float dy1 = texelStepSize.y * radius;\n float visibility = (\n czm_shadowDepthCompare(shadowMap, uv, depth) +\n czm_shadowDepthCompare(shadowMap, uv + vec2(dx0, dy0), depth) +\n czm_shadowDepthCompare(shadowMap, uv + vec2(0.0, dy0), depth) +\n czm_shadowDepthCompare(shadowMap, uv + vec2(dx1, dy0), depth) +\n czm_shadowDepthCompare(shadowMap, uv + vec2(dx0, 0.0), depth) +\n czm_shadowDepthCompare(shadowMap, uv + vec2(dx1, 0.0), depth) +\n czm_shadowDepthCompare(shadowMap, uv + vec2(dx0, dy1), depth) +\n czm_shadowDepthCompare(shadowMap, uv + vec2(0.0, dy1), depth) +\n czm_shadowDepthCompare(shadowMap, uv + vec2(dx1, dy1), depth)\n ) * (1.0 / 9.0);\n#else\n float visibility = czm_shadowDepthCompare(shadowMap, uv, depth);\n#endif\n\n return czm_private_shadowVisibility(visibility, nDotL, normalShadingSmooth, darkness);\n}\n#endif\n"},908355:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Returns 1.0 if the given value is positive or zero, and -1.0 if it is negative. This is similar to the GLSL\n * built-in function sign except that returns 1.0 instead of 0.0 when the input value is 0.0.\n * \n * @name czm_signNotZero\n * @glslFunction\n *\n * @param {} value The value for which to determine the sign.\n * @returns {} 1.0 if the value is positive or zero, -1.0 if the value is negative.\n */\nfloat czm_signNotZero(float value)\n{\n return value >= 0.0 ? 1.0 : -1.0;\n}\n\nvec2 czm_signNotZero(vec2 value)\n{\n return vec2(czm_signNotZero(value.x), czm_signNotZero(value.y));\n}\n\nvec3 czm_signNotZero(vec3 value)\n{\n return vec3(czm_signNotZero(value.x), czm_signNotZero(value.y), czm_signNotZero(value.z));\n}\n\nvec4 czm_signNotZero(vec4 value)\n{\n return vec4(czm_signNotZero(value.x), czm_signNotZero(value.y), czm_signNotZero(value.z), czm_signNotZero(value.w));\n}\n"},671743:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Computes a color from the third order spherical harmonic coefficients and a normalized direction vector.\n *

\n * The order of the coefficients is [L00, L1_1, L10, L11, L2_2, L2_1, L20, L21, L22].\n *

\n *\n * @name czm_sphericalHarmonics\n * @glslFunction\n *\n * @param {vec3} normal The normalized direction.\n * @param {vec3[9]} coefficients The third order spherical harmonic coefficients.\n * @returns {vec3} The color at the direction.\n *\n * @see https://graphics.stanford.edu/papers/envmap/envmap.pdf\n */\nvec3 czm_sphericalHarmonics(vec3 normal, vec3 coefficients[9])\n{\n vec3 L00 = coefficients[0];\n vec3 L1_1 = coefficients[1];\n vec3 L10 = coefficients[2];\n vec3 L11 = coefficients[3];\n vec3 L2_2 = coefficients[4];\n vec3 L2_1 = coefficients[5];\n vec3 L20 = coefficients[6];\n vec3 L21 = coefficients[7];\n vec3 L22 = coefficients[8];\n\n float x = normal.x;\n float y = normal.y;\n float z = normal.z;\n\n return\n L00\n + L1_1 * y\n + L10 * z\n + L11 * x\n + L2_2 * (y * x)\n + L2_1 * (y * z)\n + L20 * (3.0 * z * z - 1.0)\n + L21 * (z * x)\n + L22 * (x * x - y * y);\n}\n"},742127:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Converts an sRGB color to a linear RGB color.\n *\n * @param {vec3|vec4} srgbIn The color in sRGB space\n * @returns {vec3|vec4} The color in linear color space. The vector type matches the input.\n */\nvec3 czm_srgbToLinear(vec3 srgbIn)\n{\n return pow(srgbIn, vec3(2.2));\n}\n\nvec4 czm_srgbToLinear(vec4 srgbIn) \n{\n vec3 linearOut = pow(srgbIn.rgb, vec3(2.2));\n return vec4(linearOut, srgbIn.a);\n}\n"},680105:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Creates a matrix that transforms vectors from tangent space to eye space.\n *\n * @name czm_tangentToEyeSpaceMatrix\n * @glslFunction\n *\n * @param {vec3} normalEC The normal vector in eye coordinates.\n * @param {vec3} tangentEC The tangent vector in eye coordinates.\n * @param {vec3} bitangentEC The bitangent vector in eye coordinates.\n *\n * @returns {mat3} The matrix that transforms from tangent space to eye space.\n *\n * @example\n * mat3 tangentToEye = czm_tangentToEyeSpaceMatrix(normalEC, tangentEC, bitangentEC);\n * vec3 normal = tangentToEye * texture2D(normalMap, st).xyz;\n */\nmat3 czm_tangentToEyeSpaceMatrix(vec3 normalEC, vec3 tangentEC, vec3 bitangentEC)\n{\n vec3 normal = normalize(normalEC);\n vec3 tangent = normalize(tangentEC);\n vec3 bitangent = normalize(bitangentEC);\n return mat3(tangent.x , tangent.y , tangent.z,\n bitangent.x, bitangent.y, bitangent.z,\n normal.x , normal.y , normal.z);\n}\n"},547528:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Transforms a plane.\n * \n * @name czm_transformPlane\n * @glslFunction\n *\n * @param {vec4} plane The plane in Hessian Normal Form.\n * @param {mat4} transform The inverse-transpose of a transformation matrix.\n */\nvec4 czm_transformPlane(vec4 plane, mat4 transform) {\n vec4 transformedPlane = transform * plane;\n // Convert the transformed plane to Hessian Normal Form\n float normalMagnitude = length(transformedPlane.xyz);\n return transformedPlane / normalMagnitude;\n}\n"},595599:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Translates a position (or any vec3) that was encoded with {@link EncodedCartesian3},\n * and then provided to the shader as separate high and low bits to\n * be relative to the eye. As shown in the example, the position can then be transformed in eye\n * or clip coordinates using {@link czm_modelViewRelativeToEye} or {@link czm_modelViewProjectionRelativeToEye},\n * respectively.\n *

\n * This technique, called GPU RTE, eliminates jittering artifacts when using large coordinates as\n * described in {@link http://help.agi.com/AGIComponents/html/BlogPrecisionsPrecisions.htm|Precisions, Precisions}.\n *

\n *\n * @name czm_translateRelativeToEye\n * @glslFunction\n *\n * @param {vec3} high The position's high bits.\n * @param {vec3} low The position's low bits.\n * @returns {vec3} The position translated to be relative to the camera's position.\n *\n * @example\n * attribute vec3 positionHigh;\n * attribute vec3 positionLow;\n *\n * void main()\n * {\n * vec4 p = czm_translateRelativeToEye(positionHigh, positionLow);\n * gl_Position = czm_modelViewProjectionRelativeToEye * p;\n * }\n *\n * @see czm_modelViewRelativeToEye\n * @see czm_modelViewProjectionRelativeToEye\n * @see czm_computePosition\n * @see EncodedCartesian3\n */\nvec4 czm_translateRelativeToEye(vec3 high, vec3 low)\n{\n vec3 highDifference = high - czm_encodedCameraPositionMCHigh;\n vec3 lowDifference = low - czm_encodedCameraPositionMCLow;\n\n return vec4(highDifference + lowDifference, 1.0);\n}\n"},759876:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * @private\n */\nvec4 czm_translucentPhong(vec3 toEye, czm_material material, vec3 lightDirectionEC)\n{\n // Diffuse from directional light sources at eye (for top-down and horizon views)\n float diffuse = czm_getLambertDiffuse(vec3(0.0, 0.0, 1.0), material.normal);\n\n if (czm_sceneMode == czm_sceneMode3D) {\n // (and horizon views in 3D)\n diffuse += czm_getLambertDiffuse(vec3(0.0, 1.0, 0.0), material.normal);\n }\n\n diffuse = clamp(diffuse, 0.0, 1.0);\n\n float specular = czm_getSpecular(lightDirectionEC, toEye, material.normal, material.shininess);\n\n // Temporary workaround for adding ambient.\n vec3 materialDiffuse = material.diffuse * 0.5;\n\n vec3 ambient = materialDiffuse;\n vec3 color = ambient + material.emission;\n color += materialDiffuse * diffuse * czm_lightColor;\n color += material.specular * specular * czm_lightColor;\n\n return vec4(color, material.alpha);\n}\n"},418759:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Returns the transpose of the matrix. The input matrix can be\n * a mat2, mat3, or mat4.\n *\n * @name czm_transpose\n * @glslFunction\n *\n * @param {} matrix The matrix to transpose.\n *\n * @returns {} The transposed matrix.\n *\n * @example\n * // GLSL declarations\n * mat2 czm_transpose(mat2 matrix);\n * mat3 czm_transpose(mat3 matrix);\n * mat4 czm_transpose(mat4 matrix);\n *\n * // Transpose a 3x3 rotation matrix to find its inverse.\n * mat3 eastNorthUpToEye = czm_eastNorthUpToEyeCoordinates(\n * positionMC, normalEC);\n * mat3 eyeToEastNorthUp = czm_transpose(eastNorthUpToEye);\n */\nmat2 czm_transpose(mat2 matrix)\n{\n return mat2(\n matrix[0][0], matrix[1][0],\n matrix[0][1], matrix[1][1]);\n}\n\nmat3 czm_transpose(mat3 matrix)\n{\n return mat3(\n matrix[0][0], matrix[1][0], matrix[2][0],\n matrix[0][1], matrix[1][1], matrix[2][1],\n matrix[0][2], matrix[1][2], matrix[2][2]);\n}\n\nmat4 czm_transpose(mat4 matrix)\n{\n return mat4(\n matrix[0][0], matrix[1][0], matrix[2][0], matrix[3][0],\n matrix[0][1], matrix[1][1], matrix[2][1], matrix[3][1],\n matrix[0][2], matrix[1][2], matrix[2][2], matrix[3][2],\n matrix[0][3], matrix[1][3], matrix[2][3], matrix[3][3]);\n}\n"},627598:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Unpacks a vec4 depth value to a float in [0, 1) range.\n *\n * @name czm_unpackDepth\n * @glslFunction\n *\n * @param {vec4} packedDepth The packed depth.\n *\n * @returns {float} The floating-point depth in [0, 1) range.\n */\n float czm_unpackDepth(vec4 packedDepth)\n {\n // See Aras Pranckevičius' post Encoding Floats to RGBA\n // http://aras-p.info/blog/2009/07/30/encoding-floats-to-rgba-the-final/\n return dot(packedDepth, vec4(1.0, 1.0 / 255.0, 1.0 / 65025.0, 1.0 / 16581375.0));\n }\n"},351634:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Unpack an IEEE 754 single-precision float that is packed as a little-endian unsigned normalized vec4.\n *\n * @name czm_unpackFloat\n * @glslFunction\n *\n * @param {vec4} packedFloat The packed float.\n *\n * @returns {float} The floating-point depth in arbitrary range.\n */\nfloat czm_unpackFloat(vec4 packedFloat)\n{\n // Convert to [0.0, 255.0] and round to integer\n packedFloat = floor(packedFloat * 255.0 + 0.5);\n float sign = 1.0 - step(128.0, packedFloat[3]) * 2.0;\n float exponent = 2.0 * mod(packedFloat[3], 128.0) + step(128.0, packedFloat[2]) - 127.0; \n if (exponent == -127.0)\n {\n return 0.0;\n }\n float mantissa = mod(packedFloat[2], 128.0) * 65536.0 + packedFloat[1] * 256.0 + packedFloat[0] + float(0x800000);\n float result = sign * exp2(exponent - 23.0) * mantissa;\n return result;\n}\n"},551845:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="#ifdef LOG_DEPTH\n// 1.0 at the near plane, increasing linearly from there.\nvarying float v_depthFromNearPlusOne;\n#ifdef SHADOW_MAP\nvarying vec3 v_logPositionEC;\n#endif\n#endif\n\nvec4 czm_updatePositionDepth(vec4 coords) {\n#if defined(LOG_DEPTH)\n\n#ifdef SHADOW_MAP\n vec3 logPositionEC = (czm_inverseProjection * coords).xyz;\n v_logPositionEC = logPositionEC;\n#endif\n\n // With the very high far/near ratios used with the logarithmic depth\n // buffer, floating point rounding errors can cause linear depth values\n // to end up on the wrong side of the far plane, even for vertices that\n // are really nowhere near it. Since we always write a correct logarithmic\n // depth value in the fragment shader anyway, we just need to make sure\n // such errors don't cause the primitive to be clipped entirely before\n // we even get to the fragment shader.\n coords.z = clamp(coords.z / coords.w, -1.0, 1.0) * coords.w;\n#endif\n\n return coords;\n}\n\n/**\n * Writes the logarithmic depth to gl_Position using the already computed gl_Position.\n *\n * @name czm_vertexLogDepth\n * @glslFunction\n */\nvoid czm_vertexLogDepth()\n{\n#ifdef LOG_DEPTH\n v_depthFromNearPlusOne = (gl_Position.w - czm_currentFrustum.x) + 1.0;\n gl_Position = czm_updatePositionDepth(gl_Position);\n#endif\n}\n\n/**\n * Writes the logarithmic depth to gl_Position using the provided clip coordinates.\n *

\n * An example use case for this function would be moving the vertex in window coordinates\n * before converting back to clip coordinates. Use the original vertex clip coordinates.\n *

\n * @name czm_vertexLogDepth\n * @glslFunction\n *\n * @param {vec4} clipCoords The vertex in clip coordinates.\n *\n * @example\n * czm_vertexLogDepth(czm_projection * vec4(positionEyeCoordinates, 1.0));\n */\nvoid czm_vertexLogDepth(vec4 clipCoords)\n{\n#ifdef LOG_DEPTH\n v_depthFromNearPlusOne = (clipCoords.w - czm_currentFrustum.x) + 1.0;\n czm_updatePositionDepth(clipCoords);\n#endif\n}\n"},518661:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Transforms a position from window to eye coordinates.\n * The transform from window to normalized device coordinates is done using components\n * of (@link czm_viewport} and {@link czm_viewportTransformation} instead of calculating\n * the inverse of czm_viewportTransformation. The transformation from\n * normalized device coordinates to clip coordinates is done using fragmentCoordinate.w,\n * which is expected to be the scalar used in the perspective divide. The transformation\n * from clip to eye coordinates is done using {@link czm_inverseProjection}.\n *\n * @name czm_windowToEyeCoordinates\n * @glslFunction\n *\n * @param {vec4} fragmentCoordinate The position in window coordinates to transform.\n *\n * @returns {vec4} The transformed position in eye coordinates.\n *\n * @see czm_modelToWindowCoordinates\n * @see czm_eyeToWindowCoordinates\n * @see czm_inverseProjection\n * @see czm_viewport\n * @see czm_viewportTransformation\n *\n * @example\n * vec4 positionEC = czm_windowToEyeCoordinates(gl_FragCoord);\n */\nvec4 czm_windowToEyeCoordinates(vec4 fragmentCoordinate)\n{\n // Reconstruct NDC coordinates\n float x = 2.0 * (fragmentCoordinate.x - czm_viewport.x) / czm_viewport.z - 1.0;\n float y = 2.0 * (fragmentCoordinate.y - czm_viewport.y) / czm_viewport.w - 1.0;\n float z = (fragmentCoordinate.z - czm_viewportTransformation[3][2]) / czm_viewportTransformation[2][2];\n vec4 q = vec4(x, y, z, 1.0);\n\n // Reverse the perspective division to obtain clip coordinates.\n q /= fragmentCoordinate.w;\n\n // Reverse the projection transformation to obtain eye coordinates.\n if (!(czm_inverseProjection == mat4(0.0))) // IE and Edge sometimes do something weird with != between mat4s\n {\n q = czm_inverseProjection * q;\n }\n else\n {\n float top = czm_frustumPlanes.x;\n float bottom = czm_frustumPlanes.y;\n float left = czm_frustumPlanes.z;\n float right = czm_frustumPlanes.w;\n\n float near = czm_currentFrustum.x;\n float far = czm_currentFrustum.y;\n\n q.x = (q.x * (right - left) + left + right) * 0.5;\n q.y = (q.y * (top - bottom) + bottom + top) * 0.5;\n q.z = (q.z * (near - far) - near - far) * 0.5;\n q.w = 1.0;\n }\n\n return q;\n}\n\n/**\n * Transforms a position given as window x/y and a depth or a log depth from window to eye coordinates.\n * This function produces more accurate results for window positions with log depth than\n * conventionally unpacking the log depth using czm_reverseLogDepth and using the standard version\n * of czm_windowToEyeCoordinates.\n *\n * @name czm_windowToEyeCoordinates\n * @glslFunction\n *\n * @param {vec2} fragmentCoordinateXY The XY position in window coordinates to transform.\n * @param {float} depthOrLogDepth A depth or log depth for the fragment.\n *\n * @see czm_modelToWindowCoordinates\n * @see czm_eyeToWindowCoordinates\n * @see czm_inverseProjection\n * @see czm_viewport\n * @see czm_viewportTransformation\n *\n * @returns {vec4} The transformed position in eye coordinates.\n */\nvec4 czm_windowToEyeCoordinates(vec2 fragmentCoordinateXY, float depthOrLogDepth)\n{\n // See reverseLogDepth.glsl. This is separate to re-use the pow.\n#ifdef LOG_DEPTH\n float near = czm_currentFrustum.x;\n float far = czm_currentFrustum.y;\n float log2Depth = depthOrLogDepth * czm_log2FarDepthFromNearPlusOne;\n float depthFromNear = pow(2.0, log2Depth) - 1.0;\n float depthFromCamera = depthFromNear + near;\n vec4 windowCoord = vec4(fragmentCoordinateXY, far * (1.0 - near / depthFromCamera) / (far - near), 1.0);\n vec4 eyeCoordinate = czm_windowToEyeCoordinates(windowCoord);\n eyeCoordinate.w = 1.0 / depthFromCamera; // Better precision\n return eyeCoordinate;\n#else\n vec4 windowCoord = vec4(fragmentCoordinateXY, depthOrLogDepth, 1.0);\n vec4 eyeCoordinate = czm_windowToEyeCoordinates(windowCoord);\n#endif\n return eyeCoordinate;\n}\n"},709445:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="// emulated noperspective\n#if defined(GL_EXT_frag_depth) && !defined(LOG_DEPTH)\nvarying float v_WindowZ;\n#endif\n\n/**\n * Emulates GL_DEPTH_CLAMP. Clamps a fragment to the near and far plane\n * by writing the fragment's depth. See czm_depthClamp for more details.\n *

\n * The shader must enable the GL_EXT_frag_depth extension.\n *

\n *\n * @name czm_writeDepthClamp\n * @glslFunction\n *\n * @example\n * gl_FragColor = color;\n * czm_writeDepthClamp();\n *\n * @see czm_depthClamp\n */\nvoid czm_writeDepthClamp()\n{\n#if defined(GL_EXT_frag_depth) && !defined(LOG_DEPTH)\n gl_FragDepthEXT = clamp(v_WindowZ * gl_FragCoord.w, 0.0, 1.0);\n#endif\n}\n"},139430:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="#ifdef LOG_DEPTH\nvarying float v_depthFromNearPlusOne;\n\n#ifdef POLYGON_OFFSET\nuniform vec2 u_polygonOffset;\n#endif\n\n#endif\n\n/**\n * Writes the fragment depth to the logarithmic depth buffer.\n *

\n * Use this when the vertex shader does not call {@link czm_vertexlogDepth}, for example, when\n * ray-casting geometry using a full screen quad.\n *

\n * @name czm_writeLogDepth\n * @glslFunction\n *\n * @param {float} depth The depth coordinate, where 1.0 is on the near plane and\n * depth increases in eye-space units from there\n *\n * @example\n * czm_writeLogDepth((czm_projection * v_positionEyeCoordinates).w + 1.0);\n */\nvoid czm_writeLogDepth(float depth)\n{\n#if defined(GL_EXT_frag_depth) && defined(LOG_DEPTH)\n // Discard the vertex if it's not between the near and far planes.\n // We allow a bit of epsilon on the near plane comparison because a 1.0\n // from the vertex shader (indicating the vertex should be _on_ the near\n // plane) will not necessarily come here as exactly 1.0.\n if (depth <= 0.9999999 || depth > czm_farDepthFromNearPlusOne) {\n discard;\n }\n\n#ifdef POLYGON_OFFSET\n // Polygon offset: m * factor + r * units\n float factor = u_polygonOffset[0];\n float units = u_polygonOffset[1];\n\n // If we can't compute derivatives, just leave out the factor I guess?\n#ifdef GL_OES_standard_derivatives\n // m = sqrt(dZdX^2 + dZdY^2);\n float x = dFdx(depth);\n float y = dFdy(depth);\n float m = sqrt(x * x + y * y);\n\n // Apply the factor before computing the log depth.\n depth += m * factor;\n#endif\n\n#endif\n\n gl_FragDepthEXT = log2(depth) * czm_oneOverLog2FarDepthFromNearPlusOne;\n\n#ifdef POLYGON_OFFSET\n // Apply the units after the log depth.\n gl_FragDepthEXT += czm_epsilon7 * units;\n#endif\n\n#endif\n}\n\n/**\n * Writes the fragment depth to the logarithmic depth buffer.\n *

\n * Use this when the vertex shader calls {@link czm_vertexlogDepth}.\n *

\n *\n * @name czm_writeLogDepth\n * @glslFunction\n */\nvoid czm_writeLogDepth() {\n#ifdef LOG_DEPTH\n czm_writeLogDepth(v_depthFromNearPlusOne);\n#endif\n}\n"},127086:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Transforms a value for non-perspective interpolation by multiplying\n * it by w, the value used in the perspective divide. This function is\n * intended to be called in a vertex shader to compute the value of a\n * `varying` that should not be subject to perspective interpolation.\n * For example, screen-space texture coordinates. The fragment shader\n * must call {@link czm_readNonPerspective} to retrieve the final\n * non-perspective value.\n *\n * @name czm_writeNonPerspective\n * @glslFunction\n *\n * @param {float|vec2|vec3|vec4} value The value to be interpolated without accounting for perspective.\n * @param {float} w The perspective divide value. Usually this is the computed `gl_Position.w`.\n * @returns {float|vec2|vec3|vec4} The transformed value, intended to be stored in a `varying` and read in the\n * fragment shader with {@link czm_readNonPerspective}.\n */\nfloat czm_writeNonPerspective(float value, float w) {\n return value * w;\n}\n\nvec2 czm_writeNonPerspective(vec2 value, float w) {\n return value * w;\n}\n\nvec3 czm_writeNonPerspective(vec3 value, float w) {\n return value * w;\n}\n\nvec4 czm_writeNonPerspective(vec4 value, float w) {\n return value * w;\n}\n"},386401:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * @name czm_depthRangeStruct\n * @glslStruct\n */\nstruct czm_depthRangeStruct\n{\n float near;\n float far;\n};\n"},204610:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Holds material information that can be used for lighting. Returned by all czm_getMaterial functions.\n *\n * @name czm_material\n * @glslStruct\n *\n * @property {vec3} diffuse Incoming light that scatters evenly in all directions.\n * @property {float} specular Intensity of incoming light reflecting in a single direction.\n * @property {float} shininess The sharpness of the specular reflection. Higher values create a smaller, more focused specular highlight.\n * @property {vec3} normal Surface's normal in eye coordinates. It is used for effects such as normal mapping. The default is the surface's unmodified normal.\n * @property {vec3} emission Light emitted by the material equally in all directions. The default is vec3(0.0), which emits no light.\n * @property {float} alpha Alpha of this material. 0.0 is completely transparent; 1.0 is completely opaque.\n */\nstruct czm_material\n{\n vec3 diffuse;\n float specular;\n float shininess;\n vec3 normal;\n vec3 emission;\n float alpha;\n};\n"},939021:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Used as input to every material's czm_getMaterial function.\n *\n * @name czm_materialInput\n * @glslStruct\n *\n * @property {float} s 1D texture coordinates.\n * @property {vec2} st 2D texture coordinates.\n * @property {vec3} str 3D texture coordinates.\n * @property {vec3} normalEC Unperturbed surface normal in eye coordinates.\n * @property {mat3} tangentToEyeMatrix Matrix for converting a tangent space normal to eye space.\n * @property {vec3} positionToEyeEC Vector from the fragment to the eye in eye coordinates. The magnitude is the distance in meters from the fragment to the eye.\n * @property {float} height The height of the terrain in meters above or below the WGS84 ellipsoid. Only available for globe materials.\n * @property {float} slope The slope of the terrain in radians. 0 is flat; pi/2 is vertical. Only available for globe materials.\n * @property {float} aspect The aspect of the terrain in radians. 0 is East, pi/2 is North, pi is West, 3pi/2 is South. Only available for globe materials.\n */\nstruct czm_materialInput\n{\n float s;\n vec2 st;\n vec3 str;\n vec3 normalEC;\n mat3 tangentToEyeMatrix;\n vec3 positionToEyeEC;\n float height;\n float slope;\n float aspect;\n};\n"},590753:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Struct for representing a material for a {@link ModelExperimental}. The model\n * rendering pipeline will pass this struct between material, custom shaders,\n * and lighting stages. This is not to be confused with {@link czm_material}\n * which is used by the older Fabric materials system, although they are similar\n *\n * @name czm_modelMaterial\n * @glslStruct\n *\n * @property {vec3} diffuse Incoming light that scatters evenly in all directions.\n * @property {float} alpha Alpha of this material. 0.0 is completely transparent; 1.0 is completely opaque.\n * @property {vec3} specular Color of reflected light at normal incidence in PBR materials. This is sometimes referred to as f0 in the literature.\n * @property {float} roughness A number from 0.0 to 1.0 representing how rough the surface is. Values near 0.0 produce glossy surfaces, while values near 1.0 produce rough surfaces.\n * @property {vec3} normalEC Surface's normal in eye coordinates. It is used for effects such as normal mapping. The default is the surface's unmodified normal.\n * @property {float} occlusion Ambient occlusion recieved at this point on the material. 1.0 means fully lit, 0.0 means fully occluded.\n * @property {vec3} emissive Light emitted by the material equally in all directions. The default is vec3(0.0), which emits no light.\n */\nstruct czm_modelMaterial {\n vec3 diffuse;\n float alpha;\n vec3 specular;\n float roughness;\n vec3 normalEC;\n float occlusion;\n vec3 emissive;\n};\n"},5072:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Struct for representing the output of a custom vertex shader.\n * \n * @name czm_modelVertexOutput\n * @glslStruct\n *\n * @see {@link CustomShader}\n * @see {@link ModelExperimental}\n *\n * @property {vec3} positionMC The position of the vertex in model coordinates\n * @property {float} pointSize A custom value for gl_PointSize. This is only used for point primitives. \n */\nstruct czm_modelVertexOutput {\n vec3 positionMC;\n float pointSize;\n};\n"},445927:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Parameters for {@link czm_pbrLighting}\n *\n * @name czm_material\n * @glslStruct\n *\n * @property {vec3} diffuseColor the diffuse color of the material for the lambert term of the rendering equation\n * @property {float} roughness a value from 0.0 to 1.0 that indicates how rough the surface of the material is.\n * @property {vec3} f0 The reflectance of the material at normal incidence\n */\nstruct czm_pbrParameters\n{\n vec3 diffuseColor;\n float roughness;\n vec3 f0;\n};\n"},756424:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * DOC_TBA\n *\n * @name czm_ray\n * @glslStruct\n */\nstruct czm_ray\n{\n vec3 origin;\n vec3 direction;\n};\n"},190909:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * DOC_TBA\n *\n * @name czm_raySegment\n * @glslStruct\n */\nstruct czm_raySegment\n{\n float start;\n float stop;\n};\n\n/**\n * DOC_TBA\n *\n * @name czm_emptyRaySegment\n * @glslConstant \n */\nconst czm_raySegment czm_emptyRaySegment = czm_raySegment(-czm_infinity, -czm_infinity);\n\n/**\n * DOC_TBA\n *\n * @name czm_fullRaySegment\n * @glslConstant \n */\nconst czm_raySegment czm_fullRaySegment = czm_raySegment(0.0, czm_infinity);\n"},144245:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="struct czm_shadowParameters\n{\n#ifdef USE_CUBE_MAP_SHADOW\n vec3 texCoords;\n#else\n vec2 texCoords;\n#endif\n\n float depthBias;\n float depth;\n float nDotL;\n vec2 texelStepSize;\n float normalShadingSmooth;\n float darkness;\n};\n"},800914:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D u_noiseTexture;\nuniform vec3 u_noiseTextureDimensions;\nuniform float u_noiseDetail;\nvarying vec2 v_offset;\nvarying vec3 v_maximumSize;\nvarying vec4 v_color;\nvarying float v_slice;\nvarying float v_brightness;\n\nfloat wrap(float value, float rangeLength) {\n if(value < 0.0) {\n float absValue = abs(value);\n float modValue = mod(absValue, rangeLength);\n return mod(rangeLength - modValue, rangeLength);\n }\n return mod(value, rangeLength);\n}\n\nvec3 wrapVec(vec3 value, float rangeLength) {\n return vec3(wrap(value.x, rangeLength),\n wrap(value.y, rangeLength),\n wrap(value.z, rangeLength));\n}\n\nfloat textureSliceWidth = u_noiseTextureDimensions.x;\nfloat noiseTextureRows = u_noiseTextureDimensions.y;\nfloat inverseNoiseTextureRows = u_noiseTextureDimensions.z;\n\nfloat textureSliceWidthSquared = textureSliceWidth * textureSliceWidth;\nvec2 inverseNoiseTextureDimensions = vec2(noiseTextureRows / textureSliceWidthSquared,\n inverseNoiseTextureRows / textureSliceWidth);\n\nvec2 voxelToUV(vec3 voxelIndex) {\n vec3 wrappedIndex = wrapVec(voxelIndex, textureSliceWidth);\n float column = mod(wrappedIndex.z, textureSliceWidth * inverseNoiseTextureRows);\n float row = floor(wrappedIndex.z / textureSliceWidth * noiseTextureRows);\n\n float xPixelCoord = wrappedIndex.x + column * textureSliceWidth;\n float yPixelCoord = wrappedIndex.y + row * textureSliceWidth;\n return vec2(xPixelCoord, yPixelCoord) * inverseNoiseTextureDimensions;\n}\n\n// Interpolate a voxel with its neighbor (along the positive X-axis)\nvec4 lerpSamplesX(vec3 voxelIndex, float x) {\n vec2 uv0 = voxelToUV(voxelIndex);\n vec2 uv1 = voxelToUV(voxelIndex + vec3(1.0, 0.0, 0.0));\n vec4 sample0 = texture2D(u_noiseTexture, uv0);\n vec4 sample1 = texture2D(u_noiseTexture, uv1);\n return mix(sample0, sample1, x);\n}\n\nvec4 sampleNoiseTexture(vec3 position) {\n vec3 recenteredPos = position + vec3(textureSliceWidth / 2.0);\n vec3 lerpValue = fract(recenteredPos);\n vec3 voxelIndex = floor(recenteredPos);\n\n vec4 xLerp00 = lerpSamplesX(voxelIndex, lerpValue.x);\n vec4 xLerp01 = lerpSamplesX(voxelIndex + vec3(0.0, 0.0, 1.0), lerpValue.x);\n vec4 xLerp10 = lerpSamplesX(voxelIndex + vec3(0.0, 1.0, 0.0), lerpValue.x);\n vec4 xLerp11 = lerpSamplesX(voxelIndex + vec3(0.0, 1.0, 1.0), lerpValue.x);\n\n vec4 yLerp0 = mix(xLerp00, xLerp10, lerpValue.y);\n vec4 yLerp1 = mix(xLerp01, xLerp11, lerpValue.y);\n return mix(yLerp0, yLerp1, lerpValue.z);\n}\n\n// Intersection with a unit sphere with radius 0.5 at center (0, 0, 0).\nbool intersectSphere(vec3 origin, vec3 dir, float slice,\n out vec3 point, out vec3 normal) {\n float A = dot(dir, dir);\n float B = dot(origin, dir);\n float C = dot(origin, origin) - 0.25;\n float discriminant = (B * B) - (A * C);\n if(discriminant < 0.0) {\n return false;\n }\n float root = sqrt(discriminant);\n float t = (-B - root) / A;\n if(t < 0.0) {\n t = (-B + root) / A;\n }\n point = origin + t * dir;\n\n if(slice >= 0.0) {\n point.z = (slice / 2.0) - 0.5;\n if(length(point) > 0.5) {\n return false;\n }\n }\n\n normal = normalize(point);\n point -= czm_epsilon2 * normal;\n return true;\n}\n\n// Transforms the ray origin and direction into unit sphere space,\n// then transforms the result back into the ellipsoid's space.\nbool intersectEllipsoid(vec3 origin, vec3 dir, vec3 center, vec3 scale, float slice,\n out vec3 point, out vec3 normal) {\n if(scale.x <= 0.01 || scale.y < 0.01 || scale.z < 0.01) {\n return false;\n }\n\n vec3 o = (origin - center) / scale;\n vec3 d = dir / scale;\n vec3 p, n;\n bool intersected = intersectSphere(o, d, slice, p, n);\n if(intersected) {\n point = (p * scale) + center;\n normal = n;\n }\n return intersected;\n}\n\n// Assume that if phase shift is being called for octave i,\n// the frequency is of i - 1. This saves us from doing extra\n// division / multiplication operations.\nvec2 phaseShift2D(vec2 p, vec2 freq) {\n return (czm_pi / 2.0) * sin(freq.yx * p.yx);\n}\n\nvec2 phaseShift3D(vec3 p, vec2 freq) {\n return phaseShift2D(p.xy, freq) + czm_pi * vec2(sin(freq.x * p.z));\n}\n\n// The cloud texture function derived from Gardner's 1985 paper,\n// \"Visual Simulation of Clouds.\"\n// https://www.cs.drexel.edu/~david/Classes/Papers/p297-gardner.pdf\nconst float T0 = 0.6; // contrast of the texture pattern\nconst float k = 0.1; // computed to produce a maximum value of 1\nconst float C0 = 0.8; // coefficient\nconst float FX0 = 0.6; // frequency X\nconst float FY0 = 0.6; // frequency Y\nconst int octaves = 5;\n\nfloat T(vec3 point) {\n vec2 sum = vec2(0.0);\n float Ci = C0;\n vec2 FXY = vec2(FX0, FY0);\n vec2 PXY = vec2(0.0);\n for(int i = 1; i <= octaves; i++) {\n PXY = phaseShift3D(point, FXY);\n Ci *= 0.707;\n FXY *= 2.0;\n vec2 sinTerm = sin(FXY * point.xy + PXY);\n sum += Ci * sinTerm + vec2(T0);\n }\n return k * sum.x * sum.y;\n}\n\nconst float a = 0.5; // fraction of surface reflection due to ambient or scattered light,\nconst float t = 0.4; // fraction of texture shading\nconst float s = 0.25; // fraction of specular reflection\n\nfloat I(float Id, float Is, float It) {\n return (1.0 - a) * ((1.0 - t) * ((1.0 - s) * Id + s * Is) + t * It) + a;\n}\n\nconst vec3 lightDir = normalize(vec3(0.2, -1.0, 0.7));\n\nvec4 drawCloud(vec3 rayOrigin, vec3 rayDir, vec3 cloudCenter, vec3 cloudScale, float cloudSlice,\n float brightness) {\n vec3 cloudPoint, cloudNormal;\n if(!intersectEllipsoid(rayOrigin, rayDir, cloudCenter, cloudScale, cloudSlice,\n cloudPoint, cloudNormal)) {\n return vec4(0.0);\n }\n\n float Id = clamp(dot(cloudNormal, -lightDir), 0.0, 1.0); // diffuse reflection\n float Is = max(pow(dot(-lightDir, -rayDir), 2.0), 0.0); // specular reflection\n float It = T(cloudPoint); // texture function\n float intensity = I(Id, Is, It);\n vec3 color = vec3(intensity * clamp(brightness, 0.1, 1.0));\n\n vec4 noise = sampleNoiseTexture(u_noiseDetail * cloudPoint);\n float W = noise.x;\n float W2 = noise.y;\n float W3 = noise.z;\n\n // The dot product between the cloud's normal and the ray's direction is greatest\n // in the center of the ellipsoid's surface. It decreases towards the edge.\n // Thus, it is used to blur the areas leading to the edges of the ellipsoid,\n // so that no harsh lines appear.\n\n // The first (and biggest) layer of worley noise is then subtracted from this.\n // The final result is scaled up so that the base cloud is not too translucent.\n float ndDot = clamp(dot(cloudNormal, -rayDir), 0.0, 1.0);\n float TR = pow(ndDot, 3.0) - W; // translucency\n TR *= 1.3;\n\n // Subtracting the second and third layers of worley noise is more complicated.\n // If these layers of noise were simply subtracted from the current translucency,\n // the shape derived from the first layer of noise would be completely deleted.\n // The erosion of this noise should thus be constricted to the edges of the cloud.\n // However, because the edges of the ellipsoid were already blurred away, mapping\n // the noise to (1.0 - ndDot) will have no impact on most of the cloud's appearance.\n // The value of (0.5 - ndDot) provides the best compromise.\n float minusDot = 0.5 - ndDot;\n\n // Even with the previous calculation, subtracting the second layer of wnoise\n // erode too much of the cloud. The addition of it, however, will detailed\n // volume to the cloud. As long as the noise is only added and not subtracted,\n // the results are aesthetically pleasing.\n\n // The minusDot product is mapped in a way that it is larger at the edges of\n // the ellipsoid, so a subtraction and min operation are used instead of\n // an addition and max one.\n TR -= min(minusDot * W2, 0.0);\n\n // The third level of worley noise is subtracted from the result, with some\n // modifications. First, a scalar is added to minusDot so that the noise\n // starts affecting the shape farther away from the center of the ellipsoid's\n // surface. Then, it is scaled down so its impact is not too intense.\n TR -= 0.8 * (minusDot + 0.25) * W3;\n\n // The texture function's shading does not correlate with the shape of the cloud\n // produced by the layers of noise, so an extra shading scalar is calculated.\n // The darkest areas of the cloud are assigned to be where the noise erodes\n // the cloud the most. This is then interpolated based on the translucency\n // and the diffuse shading term of that point in the cloud.\n float shading = mix(1.0 - 0.8 * W * W, 1.0, Id * TR);\n\n // To avoid values that are too dark, this scalar is increased by a small amount\n // and clamped so it never goes to zero.\n shading = clamp(shading + 0.2, 0.3, 1.0);\n\n // Finally, the contrast of the cloud's color is increased.\n vec3 finalColor = mix(vec3(0.5), shading * color, 1.15);\n return vec4(finalColor, clamp(TR, 0.0, 1.0)) * v_color;\n}\n\nvoid main() {\n#ifdef DEBUG_BILLBOARDS\n gl_FragColor = vec4(0.0, 0.5, 0.5, 1.0);\n#endif\n // To avoid calculations with high values,\n // we raycast from an arbitrarily smaller space.\n vec2 coordinate = v_maximumSize.xy * v_offset;\n\n vec3 ellipsoidScale = 0.82 * v_maximumSize;\n vec3 ellipsoidCenter = vec3(0.0);\n\n float zOffset = max(ellipsoidScale.z - 10.0, 0.0);\n vec3 eye = vec3(0, 0, -10.0 - zOffset);\n vec3 rayDir = normalize(vec3(coordinate, 1.0) - eye);\n vec3 rayOrigin = eye;\n#ifdef DEBUG_ELLIPSOIDS\n vec3 point, normal;\n if(intersectEllipsoid(rayOrigin, rayDir, ellipsoidCenter, ellipsoidScale, v_slice,\n point, normal)) {\n gl_FragColor = v_brightness * v_color;\n }\n#else\n#ifndef DEBUG_BILLBOARDS\n vec4 cloud = drawCloud(rayOrigin, rayDir,\n ellipsoidCenter, ellipsoidScale, v_slice, v_brightness);\n if(cloud.w < 0.01) {\n discard;\n }\n gl_FragColor = cloud;\n#endif\n#endif\n}\n"},633858:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="#ifdef INSTANCED\nattribute vec2 direction;\n#endif\nattribute vec4 positionHighAndScaleX;\nattribute vec4 positionLowAndScaleY;\nattribute vec4 packedAttribute0;\nattribute vec4 packedAttribute1;\nattribute vec4 color;\n\nvarying vec2 v_offset;\nvarying vec3 v_maximumSize;\nvarying vec4 v_color;\nvarying float v_slice;\nvarying float v_brightness;\n\nvoid main() {\n // Unpack attributes.\n vec3 positionHigh = positionHighAndScaleX.xyz;\n vec3 positionLow = positionLowAndScaleY.xyz;\n vec2 scale = vec2(positionHighAndScaleX.w, positionLowAndScaleY.w);\n\n float show = packedAttribute0.x;\n float brightness = packedAttribute0.y;\n vec2 coordinates = packedAttribute0.wz;\n vec3 maximumSize = packedAttribute1.xyz;\n float slice = packedAttribute1.w;\n\n#ifdef INSTANCED\n vec2 dir = direction;\n#else\n vec2 dir = coordinates;\n#endif\n\n vec2 offset = dir - vec2(0.5, 0.5);\n vec2 scaledOffset = scale * offset;\n vec4 p = czm_translateRelativeToEye(positionHigh, positionLow);\n vec4 positionEC = czm_modelViewRelativeToEye * p;\n positionEC.xy += scaledOffset;\n \n positionEC.xyz *= show;\n gl_Position = czm_projection * positionEC;\n\n v_offset = offset;\n v_maximumSize = maximumSize;\n v_color = color;\n v_slice = slice;\n v_brightness = brightness;\n}\n"},894782:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform vec3 u_noiseTextureDimensions;\nuniform float u_noiseDetail;\nuniform vec3 u_noiseOffset;\nvarying vec2 v_position;\n\nfloat textureSliceWidth = u_noiseTextureDimensions.x;\nfloat inverseNoiseTextureRows = u_noiseTextureDimensions.z;\n\nfloat wrap(float value, float rangeLength) {\n if(value < 0.0) {\n float absValue = abs(value);\n float modValue = mod(absValue, rangeLength);\n return mod(rangeLength - modValue, rangeLength);\n }\n return mod(value, rangeLength);\n}\n\nvec3 wrapVec(vec3 value, float rangeLength) {\n return vec3(wrap(value.x, rangeLength),\n wrap(value.y, rangeLength),\n wrap(value.z, rangeLength));\n}\n\nvec3 random3(vec3 p) {\n float dot1 = dot(p, vec3(127.1, 311.7, 932.8));\n float dot2 = dot(p, vec3(269.5, 183.3, 421.4));\n return fract(vec3(sin(dot1 - dot2), cos(dot1 * dot2), dot1 * dot2));\n}\n\n// Frequency corresponds to cell size.\n// The higher the frequency, the smaller the cell size.\nvec3 getWorleyCellPoint(vec3 centerCell, vec3 offset, float freq) {\n vec3 cell = centerCell + offset;\n cell = wrapVec(cell, textureSliceWidth / u_noiseDetail);\n cell += floor(u_noiseOffset / u_noiseDetail);\n vec3 p = offset + random3(cell);\n return p;\n}\n\nfloat worleyNoise(vec3 p, float freq) {\n vec3 centerCell = floor(p * freq);\n vec3 pointInCell = fract(p * freq);\n float shortestDistance = 1000.0;\n\n for(float z = -1.0; z <= 1.0; z++) {\n for(float y = -1.0; y <= 1.0; y++) {\n for(float x = -1.0; x <= 1.0; x++) {\n vec3 offset = vec3(x, y, z);\n vec3 point = getWorleyCellPoint(centerCell, offset, freq);\n\n float distance = length(pointInCell - point);\n if(distance < shortestDistance) {\n shortestDistance = distance;\n }\n }\n }\n }\n\n return shortestDistance;\n}\n\nconst float MAX_FBM_ITERATIONS = 10.0;\n\nfloat worleyFBMNoise(vec3 p, float octaves, float scale) {\n float noise = 0.0;\n float freq = 1.0;\n float persistence = 0.625;\n for(float i = 0.0; i < MAX_FBM_ITERATIONS; i++) {\n if(i >= octaves) {\n break;\n }\n\n noise += worleyNoise(p * scale, freq * scale) * persistence;\n persistence *= 0.5;\n freq *= 2.0;\n }\n return noise;\n}\n\nvoid main() {\n float x = mod(v_position.x, textureSliceWidth);\n float y = mod(v_position.y, textureSliceWidth);\n float sliceRow = floor(v_position.y / textureSliceWidth);\n float z = floor(v_position.x / textureSliceWidth) + sliceRow * inverseNoiseTextureRows * textureSliceWidth;\n\n vec3 position = vec3(x, y, z);\n position /= u_noiseDetail;\n float worley0 = clamp(worleyFBMNoise(position, 3.0, 1.0), 0.0, 1.0);\n float worley1 = clamp(worleyFBMNoise(position, 3.0, 2.0), 0.0, 1.0);\n float worley2 = clamp(worleyFBMNoise(position, 3.0, 3.0), 0.0, 1.0);\n gl_FragColor = vec4(worley0, worley1, worley2, 1.0);\n}\n"},980880:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform vec3 u_noiseTextureDimensions;\nattribute vec2 position;\n\nvarying vec2 v_position;\n\nvoid main()\n{\n gl_Position = vec4(position, 0.1, 1.0);\n\n float textureSliceWidth = u_noiseTextureDimensions.x;\n float noiseTextureRows = u_noiseTextureDimensions.y;\n float inverseNoiseTextureRows = u_noiseTextureDimensions.z;\n vec2 transformedPos = (position * 0.5) + vec2(0.5);\n transformedPos *= textureSliceWidth;\n transformedPos.x *= textureSliceWidth * inverseNoiseTextureRows;\n transformedPos.y *= noiseTextureRows;\n v_position = transformedPos;\n}\n"},453619:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D u_opaqueDepthTexture;\nuniform sampler2D u_translucentDepthTexture;\n\nvarying vec2 v_textureCoordinates;\n\nvoid main()\n{\n float opaqueDepth = texture2D(u_opaqueDepthTexture, v_textureCoordinates).r;\n float translucentDepth = texture2D(u_translucentDepthTexture, v_textureCoordinates).r;\n translucentDepth = czm_branchFreeTernary(translucentDepth > opaqueDepth, 1.0, translucentDepth);\n gl_FragColor = czm_packDepth(translucentDepth);\n}\n"},23581:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * Compositing for Weighted Blended Order-Independent Transparency. See:\n * - http://jcgt.org/published/0002/02/09/\n * - http://casual-effects.blogspot.com/2014/03/weighted-blended-order-independent.html\n */\n\nuniform sampler2D u_opaque;\nuniform sampler2D u_accumulation;\nuniform sampler2D u_revealage;\n\nvarying vec2 v_textureCoordinates;\n\nvoid main()\n{\n vec4 opaque = texture2D(u_opaque, v_textureCoordinates);\n vec4 accum = texture2D(u_accumulation, v_textureCoordinates);\n float r = texture2D(u_revealage, v_textureCoordinates).r;\n\n#ifdef MRT\n vec4 transparent = vec4(accum.rgb / clamp(r, 1e-4, 5e4), accum.a);\n#else\n vec4 transparent = vec4(accum.rgb / clamp(accum.a, 1e-4, 5e4), r);\n#endif\n\n gl_FragColor = (1.0 - transparent.a) * transparent + transparent.a * opaque;\n\n if (opaque != czm_backgroundColor)\n {\n gl_FragColor.a = 1.0;\n }\n}\n"},361097:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="varying vec4 positionEC;\n\nvoid main()\n{\n vec3 position;\n vec3 direction;\n if (czm_orthographicIn3D == 1.0)\n {\n vec2 uv = (gl_FragCoord.xy - czm_viewport.xy) / czm_viewport.zw;\n vec2 minPlane = vec2(czm_frustumPlanes.z, czm_frustumPlanes.y); // left, bottom\n vec2 maxPlane = vec2(czm_frustumPlanes.w, czm_frustumPlanes.x); // right, top\n position = vec3(mix(minPlane, maxPlane, uv), 0.0);\n direction = vec3(0.0, 0.0, -1.0);\n } \n else \n {\n position = vec3(0.0);\n direction = normalize(positionEC.xyz);\n }\n\n czm_ray ray = czm_ray(position, direction);\n\n vec3 ellipsoid_center = czm_view[3].xyz;\n\n czm_raySegment intersection = czm_rayEllipsoidIntersectionInterval(ray, ellipsoid_center, czm_ellipsoidInverseRadii);\n if (!czm_isEmpty(intersection))\n {\n gl_FragColor = vec4(1.0, 1.0, 0.0, 1.0);\n }\n else\n {\n discard;\n }\n\n czm_writeLogDepth();\n}\n"},173286:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="attribute vec4 position;\n\nvarying vec4 positionEC;\n\nvoid main()\n{\n positionEC = czm_modelView * position;\n gl_Position = czm_projection * positionEC;\n\n czm_vertexLogDepth();\n}\n"},338:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="#ifdef WRITE_DEPTH\n#ifdef GL_EXT_frag_depth\n#extension GL_EXT_frag_depth : enable\n#endif\n#endif\n\nuniform vec3 u_radii;\nuniform vec3 u_oneOverEllipsoidRadiiSquared;\n\nvarying vec3 v_positionEC;\n\nvec4 computeEllipsoidColor(czm_ray ray, float intersection, float side)\n{\n vec3 positionEC = czm_pointAlongRay(ray, intersection);\n vec3 positionMC = (czm_inverseModelView * vec4(positionEC, 1.0)).xyz;\n vec3 geodeticNormal = normalize(czm_geodeticSurfaceNormal(positionMC, vec3(0.0), u_oneOverEllipsoidRadiiSquared));\n vec3 sphericalNormal = normalize(positionMC / u_radii);\n vec3 normalMC = geodeticNormal * side; // normalized surface normal (always facing the viewer) in model coordinates\n vec3 normalEC = normalize(czm_normal * normalMC); // normalized surface normal in eye coordiantes\n\n vec2 st = czm_ellipsoidWgs84TextureCoordinates(sphericalNormal);\n vec3 positionToEyeEC = -positionEC;\n\n czm_materialInput materialInput;\n materialInput.s = st.s;\n materialInput.st = st;\n materialInput.str = (positionMC + u_radii) / u_radii;\n materialInput.normalEC = normalEC;\n materialInput.tangentToEyeMatrix = czm_eastNorthUpToEyeCoordinates(positionMC, normalEC);\n materialInput.positionToEyeEC = positionToEyeEC;\n czm_material material = czm_getMaterial(materialInput);\n\n#ifdef ONLY_SUN_LIGHTING\n return czm_private_phong(normalize(positionToEyeEC), material, czm_sunDirectionEC);\n#else\n return czm_phong(normalize(positionToEyeEC), material, czm_lightDirectionEC);\n#endif\n}\n\nvoid main()\n{\n // PERFORMANCE_TODO: When dynamic branching is available, compute ratio of maximum and minimum radii\n // in the vertex shader. Only when it is larger than some constant, march along the ray.\n // Otherwise perform one intersection test which will be the common case.\n\n // Test if the ray intersects a sphere with the ellipsoid's maximum radius.\n // For very oblate ellipsoids, using the ellipsoid's radii for an intersection test\n // may cause false negatives. This will discard fragments before marching the ray forward.\n float maxRadius = max(u_radii.x, max(u_radii.y, u_radii.z)) * 1.5;\n vec3 direction = normalize(v_positionEC);\n vec3 ellipsoidCenter = czm_modelView[3].xyz;\n\n float t1 = -1.0;\n float t2 = -1.0;\n\n float b = -2.0 * dot(direction, ellipsoidCenter);\n float c = dot(ellipsoidCenter, ellipsoidCenter) - maxRadius * maxRadius;\n\n float discriminant = b * b - 4.0 * c;\n if (discriminant >= 0.0) {\n t1 = (-b - sqrt(discriminant)) * 0.5;\n t2 = (-b + sqrt(discriminant)) * 0.5;\n }\n\n if (t1 < 0.0 && t2 < 0.0) {\n discard;\n }\n\n float t = min(t1, t2);\n if (t < 0.0) {\n t = 0.0;\n }\n\n // March ray forward to intersection with larger sphere and find\n czm_ray ray = czm_ray(t * direction, direction);\n\n vec3 ellipsoid_inverseRadii = vec3(1.0 / u_radii.x, 1.0 / u_radii.y, 1.0 / u_radii.z);\n\n czm_raySegment intersection = czm_rayEllipsoidIntersectionInterval(ray, ellipsoidCenter, ellipsoid_inverseRadii);\n\n if (czm_isEmpty(intersection))\n {\n discard;\n }\n\n // If the viewer is outside, compute outsideFaceColor, with normals facing outward.\n vec4 outsideFaceColor = (intersection.start != 0.0) ? computeEllipsoidColor(ray, intersection.start, 1.0) : vec4(0.0);\n\n // If the viewer either is inside or can see inside, compute insideFaceColor, with normals facing inward.\n vec4 insideFaceColor = (outsideFaceColor.a < 1.0) ? computeEllipsoidColor(ray, intersection.stop, -1.0) : vec4(0.0);\n\n gl_FragColor = mix(insideFaceColor, outsideFaceColor, outsideFaceColor.a);\n gl_FragColor.a = 1.0 - (1.0 - insideFaceColor.a) * (1.0 - outsideFaceColor.a);\n\n#ifdef WRITE_DEPTH\n#ifdef GL_EXT_frag_depth\n t = (intersection.start != 0.0) ? intersection.start : intersection.stop;\n vec3 positionEC = czm_pointAlongRay(ray, t);\n vec4 positionCC = czm_projection * vec4(positionEC, 1.0);\n#ifdef LOG_DEPTH\n czm_writeLogDepth(1.0 + positionCC.w);\n#else\n float z = positionCC.z / positionCC.w;\n\n float n = czm_depthRange.near;\n float f = czm_depthRange.far;\n\n gl_FragDepthEXT = (z * (f - n) + f + n) * 0.5;\n#endif\n#endif\n#endif\n}\n"},127137:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="attribute vec3 position;\n\nuniform vec3 u_radii;\n\nvarying vec3 v_positionEC;\n\nvoid main()\n{\n // In the vertex data, the cube goes from (-1.0, -1.0, -1.0) to (1.0, 1.0, 1.0) in model coordinates.\n // Scale to consider the radii. We could also do this once on the CPU when using the BoxGeometry,\n // but doing it here allows us to change the radii without rewriting the vertex data, and\n // allows all ellipsoids to reuse the same vertex data.\n vec4 p = vec4(u_radii * position, 1.0);\n\n v_positionEC = (czm_modelView * p).xyz; // position in eye coordinates\n gl_Position = czm_modelViewProjection * p; // position in clip coordinates\n\n // With multi-frustum, when the ellipsoid primitive is positioned on the intersection of two frustums\n // and close to terrain, the terrain (writes depth) in the closest frustum can overwrite part of the\n // ellipsoid (does not write depth) that was rendered in the farther frustum.\n //\n // Here, we clamp the depth in the vertex shader to avoid being overwritten; however, this creates\n // artifacts since some fragments can be alpha blended twice. This is solved by only rendering\n // the ellipsoid in the closest frustum to the viewer.\n gl_Position.z = clamp(gl_Position.z, czm_depthRange.near, czm_depthRange.far);\n\n czm_vertexLogDepth();\n}\n"},742579:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * @license\n * Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * * Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * * Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * * Neither the name of NVIDIA CORPORATION nor the names of its\n * contributors may be used to endorse or promote products derived\n * from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR\n * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\n * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n// NVIDIA GameWorks Graphics Samples GitHub link: https://github.com/NVIDIAGameWorks/GraphicsSamples\n// Original FXAA 3.11 shader link: https://github.com/NVIDIAGameWorks/GraphicsSamples/blob/master/samples/es3-kepler/FXAA/FXAA3_11.h\n\n// Steps used to integrate into Cesium:\n// * The following defines are set:\n// #define FXAA_PC 1\n// #define FXAA_WEBGL_1 1\n// #define FXAA_GREEN_AS_LUMA 1\n// #define FXAA_EARLY_EXIT 1\n// #define FXAA_GLSL_120 1\n// * All other preprocessor directives besides the FXAA_QUALITY__P* directives were removed.\n// * Double underscores are invalid for preprocessor directives so replace them with a single underscore. Replace\n// /FXAA_QUALITY__P(.*)/g with /FXAA_QUALITY__P$1/.\n// * There are no implicit conversions from ivec* to vec* so replace:\n// #define FxaaInt2 ivec2\n// with\n// #define FxaaInt2 vec2\n// * The texture2DLod function is only available in vertex shaders so replace:\n// #define FxaaTexTop(t, p) texture2DLod(t, p, 0.0)\n// #define FxaaTexOff(t, p, o, r) texture2DLod(t, p + (o * r), 0.0)\n// with\n// #define FxaaTexTop(t, p) texture2D(t, p)\n// #define FxaaTexOff(t, p, o, r) texture2D(t, p + (o * r))\n// * FXAA_QUALITY_PRESET is prepended in the javascript code. We may want to expose that setting in the future.\n// * The following parameters to FxaaPixelShader are unused and can be removed:\n// fxaaConsolePosPos\n// fxaaConsoleRcpFrameOpt\n// fxaaConsoleRcpFrameOpt2\n// fxaaConsole360RcpFrameOpt2\n// fxaaConsoleEdgeSharpness\n// fxaaConsoleEdgeThreshold\n// fxaaConsoleEdgeThresholdMi\n// fxaaConsole360ConstDir\n\n//\n// Choose the quality preset.\n// This needs to be compiled into the shader as it effects code.\n// Best option to include multiple presets is to\n// in each shader define the preset, then include this file.\n//\n// OPTIONS\n// -----------------------------------------------------------------------\n// 10 to 15 - default medium dither (10=fastest, 15=highest quality)\n// 20 to 29 - less dither, more expensive (20=fastest, 29=highest quality)\n// 39 - no dither, very expensive\n//\n// NOTES\n// -----------------------------------------------------------------------\n// 12 = slightly faster then FXAA 3.9 and higher edge quality (default)\n// 13 = about same speed as FXAA 3.9 and better than 12\n// 23 = closest to FXAA 3.9 visually and performance wise\n// _ = the lowest digit is directly related to performance\n// _ = the highest digit is directly related to style\n//\n//#define FXAA_QUALITY_PRESET 12\n\n\n#if (FXAA_QUALITY_PRESET == 10)\n #define FXAA_QUALITY_PS 3\n #define FXAA_QUALITY_P0 1.5\n #define FXAA_QUALITY_P1 3.0\n #define FXAA_QUALITY_P2 12.0\n#endif\n#if (FXAA_QUALITY_PRESET == 11)\n #define FXAA_QUALITY_PS 4\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 3.0\n #define FXAA_QUALITY_P3 12.0\n#endif\n#if (FXAA_QUALITY_PRESET == 12)\n #define FXAA_QUALITY_PS 5\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 4.0\n #define FXAA_QUALITY_P4 12.0\n#endif\n#if (FXAA_QUALITY_PRESET == 13)\n #define FXAA_QUALITY_PS 6\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 2.0\n #define FXAA_QUALITY_P4 4.0\n #define FXAA_QUALITY_P5 12.0\n#endif\n#if (FXAA_QUALITY_PRESET == 14)\n #define FXAA_QUALITY_PS 7\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 2.0\n #define FXAA_QUALITY_P4 2.0\n #define FXAA_QUALITY_P5 4.0\n #define FXAA_QUALITY_P6 12.0\n#endif\n#if (FXAA_QUALITY_PRESET == 15)\n #define FXAA_QUALITY_PS 8\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 2.0\n #define FXAA_QUALITY_P4 2.0\n #define FXAA_QUALITY_P5 2.0\n #define FXAA_QUALITY_P6 4.0\n #define FXAA_QUALITY_P7 12.0\n#endif\n#if (FXAA_QUALITY_PRESET == 20)\n #define FXAA_QUALITY_PS 3\n #define FXAA_QUALITY_P0 1.5\n #define FXAA_QUALITY_P1 2.0\n #define FXAA_QUALITY_P2 8.0\n#endif\n#if (FXAA_QUALITY_PRESET == 21)\n #define FXAA_QUALITY_PS 4\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 8.0\n#endif\n#if (FXAA_QUALITY_PRESET == 22)\n #define FXAA_QUALITY_PS 5\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 2.0\n #define FXAA_QUALITY_P4 8.0\n#endif\n#if (FXAA_QUALITY_PRESET == 23)\n #define FXAA_QUALITY_PS 6\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 2.0\n #define FXAA_QUALITY_P4 2.0\n #define FXAA_QUALITY_P5 8.0\n#endif\n#if (FXAA_QUALITY_PRESET == 24)\n #define FXAA_QUALITY_PS 7\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 2.0\n #define FXAA_QUALITY_P4 2.0\n #define FXAA_QUALITY_P5 3.0\n #define FXAA_QUALITY_P6 8.0\n#endif\n#if (FXAA_QUALITY_PRESET == 25)\n #define FXAA_QUALITY_PS 8\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 2.0\n #define FXAA_QUALITY_P4 2.0\n #define FXAA_QUALITY_P5 2.0\n #define FXAA_QUALITY_P6 4.0\n #define FXAA_QUALITY_P7 8.0\n#endif\n#if (FXAA_QUALITY_PRESET == 26)\n #define FXAA_QUALITY_PS 9\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 2.0\n #define FXAA_QUALITY_P4 2.0\n #define FXAA_QUALITY_P5 2.0\n #define FXAA_QUALITY_P6 2.0\n #define FXAA_QUALITY_P7 4.0\n #define FXAA_QUALITY_P8 8.0\n#endif\n#if (FXAA_QUALITY_PRESET == 27)\n #define FXAA_QUALITY_PS 10\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 2.0\n #define FXAA_QUALITY_P4 2.0\n #define FXAA_QUALITY_P5 2.0\n #define FXAA_QUALITY_P6 2.0\n #define FXAA_QUALITY_P7 2.0\n #define FXAA_QUALITY_P8 4.0\n #define FXAA_QUALITY_P9 8.0\n#endif\n#if (FXAA_QUALITY_PRESET == 28)\n #define FXAA_QUALITY_PS 11\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 2.0\n #define FXAA_QUALITY_P4 2.0\n #define FXAA_QUALITY_P5 2.0\n #define FXAA_QUALITY_P6 2.0\n #define FXAA_QUALITY_P7 2.0\n #define FXAA_QUALITY_P8 2.0\n #define FXAA_QUALITY_P9 4.0\n #define FXAA_QUALITY_P10 8.0\n#endif\n#if (FXAA_QUALITY_PRESET == 29)\n #define FXAA_QUALITY_PS 12\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 2.0\n #define FXAA_QUALITY_P4 2.0\n #define FXAA_QUALITY_P5 2.0\n #define FXAA_QUALITY_P6 2.0\n #define FXAA_QUALITY_P7 2.0\n #define FXAA_QUALITY_P8 2.0\n #define FXAA_QUALITY_P9 2.0\n #define FXAA_QUALITY_P10 4.0\n #define FXAA_QUALITY_P11 8.0\n#endif\n#if (FXAA_QUALITY_PRESET == 39)\n #define FXAA_QUALITY_PS 12\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.0\n #define FXAA_QUALITY_P2 1.0\n #define FXAA_QUALITY_P3 1.0\n #define FXAA_QUALITY_P4 1.0\n #define FXAA_QUALITY_P5 1.5\n #define FXAA_QUALITY_P6 2.0\n #define FXAA_QUALITY_P7 2.0\n #define FXAA_QUALITY_P8 2.0\n #define FXAA_QUALITY_P9 2.0\n #define FXAA_QUALITY_P10 4.0\n #define FXAA_QUALITY_P11 8.0\n#endif\n\n#define FxaaBool bool\n#define FxaaFloat float\n#define FxaaFloat2 vec2\n#define FxaaFloat3 vec3\n#define FxaaFloat4 vec4\n#define FxaaHalf float\n#define FxaaHalf2 vec2\n#define FxaaHalf3 vec3\n#define FxaaHalf4 vec4\n#define FxaaInt2 vec2\n#define FxaaTex sampler2D\n\n#define FxaaSat(x) clamp(x, 0.0, 1.0)\n#define FxaaTexTop(t, p) texture2D(t, p)\n#define FxaaTexOff(t, p, o, r) texture2D(t, p + (o * r))\n\nFxaaFloat FxaaLuma(FxaaFloat4 rgba) { return rgba.y; }\n\nFxaaFloat4 FxaaPixelShader(\n //\n // Use noperspective interpolation here (turn off perspective interpolation).\n // {xy} = center of pixel\n FxaaFloat2 pos,\n //\n // Input color texture.\n // {rgb_} = color in linear or perceptual color space\n // if (FXAA_GREEN_AS_LUMA == 0)\n // {___a} = luma in perceptual color space (not linear)\n FxaaTex tex,\n //\n // Only used on FXAA Quality.\n // This must be from a constant/uniform.\n // {x_} = 1.0/screenWidthInPixels\n // {_y} = 1.0/screenHeightInPixels\n FxaaFloat2 fxaaQualityRcpFrame,\n //\n // Only used on FXAA Quality.\n // This used to be the FXAA_QUALITY_SUBPIX define.\n // It is here now to allow easier tuning.\n // Choose the amount of sub-pixel aliasing removal.\n // This can effect sharpness.\n // 1.00 - upper limit (softer)\n // 0.75 - default amount of filtering\n // 0.50 - lower limit (sharper, less sub-pixel aliasing removal)\n // 0.25 - almost off\n // 0.00 - completely off\n FxaaFloat fxaaQualitySubpix,\n //\n // Only used on FXAA Quality.\n // This used to be the FXAA_QUALITY_EDGE_THRESHOLD define.\n // It is here now to allow easier tuning.\n // The minimum amount of local contrast required to apply algorithm.\n // 0.333 - too little (faster)\n // 0.250 - low quality\n // 0.166 - default\n // 0.125 - high quality\n // 0.063 - overkill (slower)\n FxaaFloat fxaaQualityEdgeThreshold,\n //\n // Only used on FXAA Quality.\n // This used to be the FXAA_QUALITY_EDGE_THRESHOLD_MIN define.\n // It is here now to allow easier tuning.\n // Trims the algorithm from processing darks.\n // 0.0833 - upper limit (default, the start of visible unfiltered edges)\n // 0.0625 - high quality (faster)\n // 0.0312 - visible limit (slower)\n // Special notes when using FXAA_GREEN_AS_LUMA,\n // Likely want to set this to zero.\n // As colors that are mostly not-green\n // will appear very dark in the green channel!\n // Tune by looking at mostly non-green content,\n // then start at zero and increase until aliasing is a problem.\n FxaaFloat fxaaQualityEdgeThresholdMin\n) {\n/*--------------------------------------------------------------------------*/\n FxaaFloat2 posM;\n posM.x = pos.x;\n posM.y = pos.y;\n FxaaFloat4 rgbyM = FxaaTexTop(tex, posM);\n #define lumaM rgbyM.y\n FxaaFloat lumaS = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 0, 1), fxaaQualityRcpFrame.xy));\n FxaaFloat lumaE = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 1, 0), fxaaQualityRcpFrame.xy));\n FxaaFloat lumaN = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 0,-1), fxaaQualityRcpFrame.xy));\n FxaaFloat lumaW = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(-1, 0), fxaaQualityRcpFrame.xy));\n/*--------------------------------------------------------------------------*/\n FxaaFloat maxSM = max(lumaS, lumaM);\n FxaaFloat minSM = min(lumaS, lumaM);\n FxaaFloat maxESM = max(lumaE, maxSM);\n FxaaFloat minESM = min(lumaE, minSM);\n FxaaFloat maxWN = max(lumaN, lumaW);\n FxaaFloat minWN = min(lumaN, lumaW);\n FxaaFloat rangeMax = max(maxWN, maxESM);\n FxaaFloat rangeMin = min(minWN, minESM);\n FxaaFloat rangeMaxScaled = rangeMax * fxaaQualityEdgeThreshold;\n FxaaFloat range = rangeMax - rangeMin;\n FxaaFloat rangeMaxClamped = max(fxaaQualityEdgeThresholdMin, rangeMaxScaled);\n FxaaBool earlyExit = range < rangeMaxClamped;\n/*--------------------------------------------------------------------------*/\n if(earlyExit)\n return rgbyM;\n/*--------------------------------------------------------------------------*/\n FxaaFloat lumaNW = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(-1,-1), fxaaQualityRcpFrame.xy));\n FxaaFloat lumaSE = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 1, 1), fxaaQualityRcpFrame.xy));\n FxaaFloat lumaNE = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 1,-1), fxaaQualityRcpFrame.xy));\n FxaaFloat lumaSW = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(-1, 1), fxaaQualityRcpFrame.xy));\n/*--------------------------------------------------------------------------*/\n FxaaFloat lumaNS = lumaN + lumaS;\n FxaaFloat lumaWE = lumaW + lumaE;\n FxaaFloat subpixRcpRange = 1.0/range;\n FxaaFloat subpixNSWE = lumaNS + lumaWE;\n FxaaFloat edgeHorz1 = (-2.0 * lumaM) + lumaNS;\n FxaaFloat edgeVert1 = (-2.0 * lumaM) + lumaWE;\n/*--------------------------------------------------------------------------*/\n FxaaFloat lumaNESE = lumaNE + lumaSE;\n FxaaFloat lumaNWNE = lumaNW + lumaNE;\n FxaaFloat edgeHorz2 = (-2.0 * lumaE) + lumaNESE;\n FxaaFloat edgeVert2 = (-2.0 * lumaN) + lumaNWNE;\n/*--------------------------------------------------------------------------*/\n FxaaFloat lumaNWSW = lumaNW + lumaSW;\n FxaaFloat lumaSWSE = lumaSW + lumaSE;\n FxaaFloat edgeHorz4 = (abs(edgeHorz1) * 2.0) + abs(edgeHorz2);\n FxaaFloat edgeVert4 = (abs(edgeVert1) * 2.0) + abs(edgeVert2);\n FxaaFloat edgeHorz3 = (-2.0 * lumaW) + lumaNWSW;\n FxaaFloat edgeVert3 = (-2.0 * lumaS) + lumaSWSE;\n FxaaFloat edgeHorz = abs(edgeHorz3) + edgeHorz4;\n FxaaFloat edgeVert = abs(edgeVert3) + edgeVert4;\n/*--------------------------------------------------------------------------*/\n FxaaFloat subpixNWSWNESE = lumaNWSW + lumaNESE;\n FxaaFloat lengthSign = fxaaQualityRcpFrame.x;\n FxaaBool horzSpan = edgeHorz >= edgeVert;\n FxaaFloat subpixA = subpixNSWE * 2.0 + subpixNWSWNESE;\n/*--------------------------------------------------------------------------*/\n if(!horzSpan) lumaN = lumaW;\n if(!horzSpan) lumaS = lumaE;\n if(horzSpan) lengthSign = fxaaQualityRcpFrame.y;\n FxaaFloat subpixB = (subpixA * (1.0/12.0)) - lumaM;\n/*--------------------------------------------------------------------------*/\n FxaaFloat gradientN = lumaN - lumaM;\n FxaaFloat gradientS = lumaS - lumaM;\n FxaaFloat lumaNN = lumaN + lumaM;\n FxaaFloat lumaSS = lumaS + lumaM;\n FxaaBool pairN = abs(gradientN) >= abs(gradientS);\n FxaaFloat gradient = max(abs(gradientN), abs(gradientS));\n if(pairN) lengthSign = -lengthSign;\n FxaaFloat subpixC = FxaaSat(abs(subpixB) * subpixRcpRange);\n/*--------------------------------------------------------------------------*/\n FxaaFloat2 posB;\n posB.x = posM.x;\n posB.y = posM.y;\n FxaaFloat2 offNP;\n offNP.x = (!horzSpan) ? 0.0 : fxaaQualityRcpFrame.x;\n offNP.y = ( horzSpan) ? 0.0 : fxaaQualityRcpFrame.y;\n if(!horzSpan) posB.x += lengthSign * 0.5;\n if( horzSpan) posB.y += lengthSign * 0.5;\n/*--------------------------------------------------------------------------*/\n FxaaFloat2 posN;\n posN.x = posB.x - offNP.x * FXAA_QUALITY_P0;\n posN.y = posB.y - offNP.y * FXAA_QUALITY_P0;\n FxaaFloat2 posP;\n posP.x = posB.x + offNP.x * FXAA_QUALITY_P0;\n posP.y = posB.y + offNP.y * FXAA_QUALITY_P0;\n FxaaFloat subpixD = ((-2.0)*subpixC) + 3.0;\n FxaaFloat lumaEndN = FxaaLuma(FxaaTexTop(tex, posN));\n FxaaFloat subpixE = subpixC * subpixC;\n FxaaFloat lumaEndP = FxaaLuma(FxaaTexTop(tex, posP));\n/*--------------------------------------------------------------------------*/\n if(!pairN) lumaNN = lumaSS;\n FxaaFloat gradientScaled = gradient * 1.0/4.0;\n FxaaFloat lumaMM = lumaM - lumaNN * 0.5;\n FxaaFloat subpixF = subpixD * subpixE;\n FxaaBool lumaMLTZero = lumaMM < 0.0;\n/*--------------------------------------------------------------------------*/\n lumaEndN -= lumaNN * 0.5;\n lumaEndP -= lumaNN * 0.5;\n FxaaBool doneN = abs(lumaEndN) >= gradientScaled;\n FxaaBool doneP = abs(lumaEndP) >= gradientScaled;\n if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P1;\n if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P1;\n FxaaBool doneNP = (!doneN) || (!doneP);\n if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P1;\n if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P1;\n/*--------------------------------------------------------------------------*/\n if(doneNP) {\n if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n doneN = abs(lumaEndN) >= gradientScaled;\n doneP = abs(lumaEndP) >= gradientScaled;\n if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P2;\n if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P2;\n doneNP = (!doneN) || (!doneP);\n if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P2;\n if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P2;\n/*--------------------------------------------------------------------------*/\n #if (FXAA_QUALITY_PS > 3)\n if(doneNP) {\n if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n doneN = abs(lumaEndN) >= gradientScaled;\n doneP = abs(lumaEndP) >= gradientScaled;\n if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P3;\n if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P3;\n doneNP = (!doneN) || (!doneP);\n if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P3;\n if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P3;\n/*--------------------------------------------------------------------------*/\n #if (FXAA_QUALITY_PS > 4)\n if(doneNP) {\n if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n doneN = abs(lumaEndN) >= gradientScaled;\n doneP = abs(lumaEndP) >= gradientScaled;\n if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P4;\n if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P4;\n doneNP = (!doneN) || (!doneP);\n if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P4;\n if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P4;\n/*--------------------------------------------------------------------------*/\n #if (FXAA_QUALITY_PS > 5)\n if(doneNP) {\n if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n doneN = abs(lumaEndN) >= gradientScaled;\n doneP = abs(lumaEndP) >= gradientScaled;\n if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P5;\n if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P5;\n doneNP = (!doneN) || (!doneP);\n if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P5;\n if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P5;\n/*--------------------------------------------------------------------------*/\n #if (FXAA_QUALITY_PS > 6)\n if(doneNP) {\n if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n doneN = abs(lumaEndN) >= gradientScaled;\n doneP = abs(lumaEndP) >= gradientScaled;\n if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P6;\n if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P6;\n doneNP = (!doneN) || (!doneP);\n if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P6;\n if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P6;\n/*--------------------------------------------------------------------------*/\n #if (FXAA_QUALITY_PS > 7)\n if(doneNP) {\n if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n doneN = abs(lumaEndN) >= gradientScaled;\n doneP = abs(lumaEndP) >= gradientScaled;\n if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P7;\n if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P7;\n doneNP = (!doneN) || (!doneP);\n if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P7;\n if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P7;\n/*--------------------------------------------------------------------------*/\n #if (FXAA_QUALITY_PS > 8)\n if(doneNP) {\n if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n doneN = abs(lumaEndN) >= gradientScaled;\n doneP = abs(lumaEndP) >= gradientScaled;\n if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P8;\n if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P8;\n doneNP = (!doneN) || (!doneP);\n if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P8;\n if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P8;\n/*--------------------------------------------------------------------------*/\n #if (FXAA_QUALITY_PS > 9)\n if(doneNP) {\n if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n doneN = abs(lumaEndN) >= gradientScaled;\n doneP = abs(lumaEndP) >= gradientScaled;\n if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P9;\n if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P9;\n doneNP = (!doneN) || (!doneP);\n if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P9;\n if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P9;\n/*--------------------------------------------------------------------------*/\n #if (FXAA_QUALITY_PS > 10)\n if(doneNP) {\n if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n doneN = abs(lumaEndN) >= gradientScaled;\n doneP = abs(lumaEndP) >= gradientScaled;\n if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P10;\n if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P10;\n doneNP = (!doneN) || (!doneP);\n if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P10;\n if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P10;\n/*--------------------------------------------------------------------------*/\n #if (FXAA_QUALITY_PS > 11)\n if(doneNP) {\n if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n doneN = abs(lumaEndN) >= gradientScaled;\n doneP = abs(lumaEndP) >= gradientScaled;\n if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P11;\n if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P11;\n doneNP = (!doneN) || (!doneP);\n if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P11;\n if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P11;\n/*--------------------------------------------------------------------------*/\n #if (FXAA_QUALITY_PS > 12)\n if(doneNP) {\n if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n doneN = abs(lumaEndN) >= gradientScaled;\n doneP = abs(lumaEndP) >= gradientScaled;\n if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P12;\n if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P12;\n doneNP = (!doneN) || (!doneP);\n if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P12;\n if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P12;\n/*--------------------------------------------------------------------------*/\n }\n #endif\n/*--------------------------------------------------------------------------*/\n }\n #endif\n/*--------------------------------------------------------------------------*/\n }\n #endif\n/*--------------------------------------------------------------------------*/\n }\n #endif\n/*--------------------------------------------------------------------------*/\n }\n #endif\n/*--------------------------------------------------------------------------*/\n }\n #endif\n/*--------------------------------------------------------------------------*/\n }\n #endif\n/*--------------------------------------------------------------------------*/\n }\n #endif\n/*--------------------------------------------------------------------------*/\n }\n #endif\n/*--------------------------------------------------------------------------*/\n }\n #endif\n/*--------------------------------------------------------------------------*/\n }\n/*--------------------------------------------------------------------------*/\n FxaaFloat dstN = posM.x - posN.x;\n FxaaFloat dstP = posP.x - posM.x;\n if(!horzSpan) dstN = posM.y - posN.y;\n if(!horzSpan) dstP = posP.y - posM.y;\n/*--------------------------------------------------------------------------*/\n FxaaBool goodSpanN = (lumaEndN < 0.0) != lumaMLTZero;\n FxaaFloat spanLength = (dstP + dstN);\n FxaaBool goodSpanP = (lumaEndP < 0.0) != lumaMLTZero;\n FxaaFloat spanLengthRcp = 1.0/spanLength;\n/*--------------------------------------------------------------------------*/\n FxaaBool directionN = dstN < dstP;\n FxaaFloat dst = min(dstN, dstP);\n FxaaBool goodSpan = directionN ? goodSpanN : goodSpanP;\n FxaaFloat subpixG = subpixF * subpixF;\n FxaaFloat pixelOffset = (dst * (-spanLengthRcp)) + 0.5;\n FxaaFloat subpixH = subpixG * fxaaQualitySubpix;\n/*--------------------------------------------------------------------------*/\n FxaaFloat pixelOffsetGood = goodSpan ? pixelOffset : 0.0;\n FxaaFloat pixelOffsetSubpix = max(pixelOffsetGood, subpixH);\n if(!horzSpan) posM.x += pixelOffsetSubpix * lengthSign;\n if( horzSpan) posM.y += pixelOffsetSubpix * lengthSign;\n return FxaaFloat4(FxaaTexTop(tex, posM).xyz, lumaM);\n}\n"},855420:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform vec4 u_initialColor;\n\n#if TEXTURE_UNITS > 0\nuniform sampler2D u_dayTextures[TEXTURE_UNITS];\nuniform vec4 u_dayTextureTranslationAndScale[TEXTURE_UNITS];\nuniform bool u_dayTextureUseWebMercatorT[TEXTURE_UNITS];\n\n#ifdef APPLY_ALPHA\nuniform float u_dayTextureAlpha[TEXTURE_UNITS];\n#endif\n\n#ifdef APPLY_DAY_NIGHT_ALPHA\nuniform float u_dayTextureNightAlpha[TEXTURE_UNITS];\nuniform float u_dayTextureDayAlpha[TEXTURE_UNITS];\n#endif\n\n#ifdef APPLY_SPLIT\nuniform float u_dayTextureSplit[TEXTURE_UNITS];\n#endif\n\n#ifdef APPLY_BRIGHTNESS\nuniform float u_dayTextureBrightness[TEXTURE_UNITS];\n#endif\n\n#ifdef APPLY_CONTRAST\nuniform float u_dayTextureContrast[TEXTURE_UNITS];\n#endif\n\n#ifdef APPLY_HUE\nuniform float u_dayTextureHue[TEXTURE_UNITS];\n#endif\n\n#ifdef APPLY_SATURATION\nuniform float u_dayTextureSaturation[TEXTURE_UNITS];\n#endif\n\n#ifdef APPLY_GAMMA\nuniform float u_dayTextureOneOverGamma[TEXTURE_UNITS];\n#endif\n\n#ifdef APPLY_IMAGERY_CUTOUT\nuniform vec4 u_dayTextureCutoutRectangles[TEXTURE_UNITS];\n#endif\n\n#ifdef APPLY_COLOR_TO_ALPHA\nuniform vec4 u_colorsToAlpha[TEXTURE_UNITS];\n#endif\n\nuniform vec4 u_dayTextureTexCoordsRectangle[TEXTURE_UNITS];\n#endif\n\n#ifdef SHOW_REFLECTIVE_OCEAN\nuniform sampler2D u_waterMask;\nuniform vec4 u_waterMaskTranslationAndScale;\nuniform float u_zoomedOutOceanSpecularIntensity;\n#endif\n\n#ifdef SHOW_OCEAN_WAVES\nuniform sampler2D u_oceanNormalMap;\n#endif\n\n#if defined(ENABLE_DAYNIGHT_SHADING) || defined(GROUND_ATMOSPHERE)\nuniform vec2 u_lightingFadeDistance;\n#endif\n\n#ifdef TILE_LIMIT_RECTANGLE\nuniform vec4 u_cartographicLimitRectangle;\n#endif\n\n#ifdef GROUND_ATMOSPHERE\nuniform vec2 u_nightFadeDistance;\n#endif\n\n#ifdef ENABLE_CLIPPING_PLANES\nuniform highp sampler2D u_clippingPlanes;\nuniform mat4 u_clippingPlanesMatrix;\nuniform vec4 u_clippingPlanesEdgeStyle;\n#endif\n\n#if defined(FOG) && defined(DYNAMIC_ATMOSPHERE_LIGHTING) && (defined(ENABLE_VERTEX_LIGHTING) || defined(ENABLE_DAYNIGHT_SHADING))\nuniform float u_minimumBrightness;\n#endif\n\n#ifdef COLOR_CORRECT\nuniform vec3 u_hsbShift; // Hue, saturation, brightness\n#endif\n\n#ifdef HIGHLIGHT_FILL_TILE\nuniform vec4 u_fillHighlightColor;\n#endif\n\n#ifdef TRANSLUCENT\nuniform vec4 u_frontFaceAlphaByDistance;\nuniform vec4 u_backFaceAlphaByDistance;\nuniform vec4 u_translucencyRectangle;\n#endif\n\n#ifdef UNDERGROUND_COLOR\nuniform vec4 u_undergroundColor;\nuniform vec4 u_undergroundColorAlphaByDistance;\n#endif\n\n#ifdef ENABLE_VERTEX_LIGHTING\nuniform float u_lambertDiffuseMultiplier;\n#endif\n\nvarying vec3 v_positionMC;\nvarying vec3 v_positionEC;\nvarying vec3 v_textureCoordinates;\nvarying vec3 v_normalMC;\nvarying vec3 v_normalEC;\n\n#ifdef APPLY_MATERIAL\nvarying float v_height;\nvarying float v_slope;\nvarying float v_aspect;\n#endif\n\n#if defined(FOG) || defined(GROUND_ATMOSPHERE) || defined(UNDERGROUND_COLOR) || defined(TRANSLUCENT)\nvarying float v_distance;\n#endif\n\n#if defined(FOG) || defined(GROUND_ATMOSPHERE)\nvarying vec3 v_fogRayleighColor;\nvarying vec3 v_fogMieColor;\n#endif\n\n#ifdef GROUND_ATMOSPHERE\nvarying vec3 v_rayleighColor;\nvarying vec3 v_mieColor;\n#endif\n\n#if defined(UNDERGROUND_COLOR) || defined(TRANSLUCENT)\nfloat interpolateByDistance(vec4 nearFarScalar, float distance)\n{\n float startDistance = nearFarScalar.x;\n float startValue = nearFarScalar.y;\n float endDistance = nearFarScalar.z;\n float endValue = nearFarScalar.w;\n float t = clamp((distance - startDistance) / (endDistance - startDistance), 0.0, 1.0);\n return mix(startValue, endValue, t);\n}\n#endif\n\n#if defined(UNDERGROUND_COLOR) || defined(TRANSLUCENT) || defined(APPLY_MATERIAL)\nvec4 alphaBlend(vec4 sourceColor, vec4 destinationColor)\n{\n return sourceColor * vec4(sourceColor.aaa, 1.0) + destinationColor * (1.0 - sourceColor.a);\n}\n#endif\n\n#ifdef TRANSLUCENT\nbool inTranslucencyRectangle()\n{\n return\n v_textureCoordinates.x > u_translucencyRectangle.x &&\n v_textureCoordinates.x < u_translucencyRectangle.z &&\n v_textureCoordinates.y > u_translucencyRectangle.y &&\n v_textureCoordinates.y < u_translucencyRectangle.w;\n}\n#endif\n\nvec4 sampleAndBlend(\n vec4 previousColor,\n sampler2D textureToSample,\n vec2 tileTextureCoordinates,\n vec4 textureCoordinateRectangle,\n vec4 textureCoordinateTranslationAndScale,\n float textureAlpha,\n float textureNightAlpha,\n float textureDayAlpha,\n float textureBrightness,\n float textureContrast,\n float textureHue,\n float textureSaturation,\n float textureOneOverGamma,\n float split,\n vec4 colorToAlpha,\n float nightBlend)\n{\n // This crazy step stuff sets the alpha to 0.0 if this following condition is true:\n // tileTextureCoordinates.s < textureCoordinateRectangle.s ||\n // tileTextureCoordinates.s > textureCoordinateRectangle.p ||\n // tileTextureCoordinates.t < textureCoordinateRectangle.t ||\n // tileTextureCoordinates.t > textureCoordinateRectangle.q\n // In other words, the alpha is zero if the fragment is outside the rectangle\n // covered by this texture. Would an actual 'if' yield better performance?\n vec2 alphaMultiplier = step(textureCoordinateRectangle.st, tileTextureCoordinates);\n textureAlpha = textureAlpha * alphaMultiplier.x * alphaMultiplier.y;\n\n alphaMultiplier = step(vec2(0.0), textureCoordinateRectangle.pq - tileTextureCoordinates);\n textureAlpha = textureAlpha * alphaMultiplier.x * alphaMultiplier.y;\n\n#if defined(APPLY_DAY_NIGHT_ALPHA) && defined(ENABLE_DAYNIGHT_SHADING)\n textureAlpha *= mix(textureDayAlpha, textureNightAlpha, nightBlend);\n#endif\n\n vec2 translation = textureCoordinateTranslationAndScale.xy;\n vec2 scale = textureCoordinateTranslationAndScale.zw;\n vec2 textureCoordinates = tileTextureCoordinates * scale + translation;\n vec4 value = texture2D(textureToSample, textureCoordinates);\n vec3 color = value.rgb;\n float alpha = value.a;\n\n#ifdef APPLY_COLOR_TO_ALPHA\n vec3 colorDiff = abs(color.rgb - colorToAlpha.rgb);\n colorDiff.r = max(max(colorDiff.r, colorDiff.g), colorDiff.b);\n alpha = czm_branchFreeTernary(colorDiff.r < colorToAlpha.a, 0.0, alpha);\n#endif\n\n#if !defined(APPLY_GAMMA)\n vec4 tempColor = czm_gammaCorrect(vec4(color, alpha));\n color = tempColor.rgb;\n alpha = tempColor.a;\n#else\n color = pow(color, vec3(textureOneOverGamma));\n#endif\n\n#ifdef APPLY_SPLIT\n float splitPosition = czm_imagerySplitPosition;\n // Split to the left\n if (split < 0.0 && gl_FragCoord.x > splitPosition) {\n alpha = 0.0;\n }\n // Split to the right\n else if (split > 0.0 && gl_FragCoord.x < splitPosition) {\n alpha = 0.0;\n }\n#endif\n\n#ifdef APPLY_BRIGHTNESS\n color = mix(vec3(0.0), color, textureBrightness);\n#endif\n\n#ifdef APPLY_CONTRAST\n color = mix(vec3(0.5), color, textureContrast);\n#endif\n\n#ifdef APPLY_HUE\n color = czm_hue(color, textureHue);\n#endif\n\n#ifdef APPLY_SATURATION\n color = czm_saturation(color, textureSaturation);\n#endif\n\n float sourceAlpha = alpha * textureAlpha;\n float outAlpha = mix(previousColor.a, 1.0, sourceAlpha);\n outAlpha += sign(outAlpha) - 1.0;\n\n vec3 outColor = mix(previousColor.rgb * previousColor.a, color, sourceAlpha) / outAlpha;\n\n // When rendering imagery for a tile in multiple passes,\n // some GPU/WebGL implementation combinations will not blend fragments in\n // additional passes correctly if their computation includes an unmasked\n // divide-by-zero operation,\n // even if it's not in the output or if the output has alpha zero.\n //\n // For example, without sanitization for outAlpha,\n // this renders without artifacts:\n // if (outAlpha == 0.0) { outColor = vec3(0.0); }\n //\n // but using czm_branchFreeTernary will cause portions of the tile that are\n // alpha-zero in the additional pass to render as black instead of blending\n // with the previous pass:\n // outColor = czm_branchFreeTernary(outAlpha == 0.0, vec3(0.0), outColor);\n //\n // So instead, sanitize against divide-by-zero,\n // store this state on the sign of outAlpha, and correct on return.\n\n return vec4(outColor, max(outAlpha, 0.0));\n}\n\nvec3 colorCorrect(vec3 rgb) {\n#ifdef COLOR_CORRECT\n // Convert rgb color to hsb\n vec3 hsb = czm_RGBToHSB(rgb);\n // Perform hsb shift\n hsb.x += u_hsbShift.x; // hue\n hsb.y = clamp(hsb.y + u_hsbShift.y, 0.0, 1.0); // saturation\n hsb.z = hsb.z > czm_epsilon7 ? hsb.z + u_hsbShift.z : 0.0; // brightness\n // Convert shifted hsb back to rgb\n rgb = czm_HSBToRGB(hsb);\n#endif\n return rgb;\n}\n\nvec4 computeDayColor(vec4 initialColor, vec3 textureCoordinates, float nightBlend);\nvec4 computeWaterColor(vec3 positionEyeCoordinates, vec2 textureCoordinates, mat3 enuToEye, vec4 imageryColor, float specularMapValue, float fade);\n\n#ifdef GROUND_ATMOSPHERE\nvec3 computeGroundAtmosphereColor(vec3 fogColor, vec4 finalColor, vec3 atmosphereLightDirection, float cameraDist);\n#endif\n\nconst float fExposure = 2.0;\n\nvoid main()\n{\n#ifdef TILE_LIMIT_RECTANGLE\n if (v_textureCoordinates.x < u_cartographicLimitRectangle.x || u_cartographicLimitRectangle.z < v_textureCoordinates.x ||\n v_textureCoordinates.y < u_cartographicLimitRectangle.y || u_cartographicLimitRectangle.w < v_textureCoordinates.y)\n {\n discard;\n }\n#endif\n\n#ifdef ENABLE_CLIPPING_PLANES\n float clipDistance = clip(gl_FragCoord, u_clippingPlanes, u_clippingPlanesMatrix);\n#endif\n\n#if defined(SHOW_REFLECTIVE_OCEAN) || defined(ENABLE_DAYNIGHT_SHADING) || defined(HDR)\n vec3 normalMC = czm_geodeticSurfaceNormal(v_positionMC, vec3(0.0), vec3(1.0)); // normalized surface normal in model coordinates\n vec3 normalEC = czm_normal3D * normalMC; // normalized surface normal in eye coordiantes\n#endif\n\n#if defined(APPLY_DAY_NIGHT_ALPHA) && defined(ENABLE_DAYNIGHT_SHADING)\n float nightBlend = 1.0 - clamp(czm_getLambertDiffuse(czm_lightDirectionEC, normalEC) * 5.0, 0.0, 1.0);\n#else\n float nightBlend = 0.0;\n#endif\n\n // The clamp below works around an apparent bug in Chrome Canary v23.0.1241.0\n // where the fragment shader sees textures coordinates < 0.0 and > 1.0 for the\n // fragments on the edges of tiles even though the vertex shader is outputting\n // coordinates strictly in the 0-1 range.\n vec4 color = computeDayColor(u_initialColor, clamp(v_textureCoordinates, 0.0, 1.0), nightBlend);\n\n#ifdef SHOW_TILE_BOUNDARIES\n if (v_textureCoordinates.x < (1.0/256.0) || v_textureCoordinates.x > (255.0/256.0) ||\n v_textureCoordinates.y < (1.0/256.0) || v_textureCoordinates.y > (255.0/256.0))\n {\n color = vec4(1.0, 0.0, 0.0, 1.0);\n }\n#endif\n\n#if defined(ENABLE_DAYNIGHT_SHADING) || defined(GROUND_ATMOSPHERE)\n float cameraDist;\n if (czm_sceneMode == czm_sceneMode2D)\n {\n cameraDist = max(czm_frustumPlanes.x - czm_frustumPlanes.y, czm_frustumPlanes.w - czm_frustumPlanes.z) * 0.5;\n }\n else if (czm_sceneMode == czm_sceneModeColumbusView)\n {\n cameraDist = -czm_view[3].z;\n }\n else\n {\n cameraDist = length(czm_view[3]);\n }\n float fadeOutDist = u_lightingFadeDistance.x;\n float fadeInDist = u_lightingFadeDistance.y;\n if (czm_sceneMode != czm_sceneMode3D) {\n vec3 radii = czm_ellipsoidRadii;\n float maxRadii = max(radii.x, max(radii.y, radii.z));\n fadeOutDist -= maxRadii;\n fadeInDist -= maxRadii;\n }\n float fade = clamp((cameraDist - fadeOutDist) / (fadeInDist - fadeOutDist), 0.0, 1.0);\n#else\n float fade = 0.0;\n#endif\n\n#ifdef SHOW_REFLECTIVE_OCEAN\n vec2 waterMaskTranslation = u_waterMaskTranslationAndScale.xy;\n vec2 waterMaskScale = u_waterMaskTranslationAndScale.zw;\n vec2 waterMaskTextureCoordinates = v_textureCoordinates.xy * waterMaskScale + waterMaskTranslation;\n waterMaskTextureCoordinates.y = 1.0 - waterMaskTextureCoordinates.y;\n\n float mask = texture2D(u_waterMask, waterMaskTextureCoordinates).r;\n\n if (mask > 0.0)\n {\n mat3 enuToEye = czm_eastNorthUpToEyeCoordinates(v_positionMC, normalEC);\n\n vec2 ellipsoidTextureCoordinates = czm_ellipsoidWgs84TextureCoordinates(normalMC);\n vec2 ellipsoidFlippedTextureCoordinates = czm_ellipsoidWgs84TextureCoordinates(normalMC.zyx);\n\n vec2 textureCoordinates = mix(ellipsoidTextureCoordinates, ellipsoidFlippedTextureCoordinates, czm_morphTime * smoothstep(0.9, 0.95, normalMC.z));\n\n color = computeWaterColor(v_positionEC, textureCoordinates, enuToEye, color, mask, fade);\n }\n#endif\n\n#ifdef APPLY_MATERIAL\n czm_materialInput materialInput;\n materialInput.st = v_textureCoordinates.st;\n materialInput.normalEC = normalize(v_normalEC);\n materialInput.positionToEyeEC = -v_positionEC;\n materialInput.tangentToEyeMatrix = czm_eastNorthUpToEyeCoordinates(v_positionMC, normalize(v_normalEC)); \n materialInput.slope = v_slope;\n materialInput.height = v_height;\n materialInput.aspect = v_aspect;\n czm_material material = czm_getMaterial(materialInput);\n vec4 materialColor = vec4(material.diffuse, material.alpha);\n color = alphaBlend(materialColor, color);\n#endif\n\n#ifdef ENABLE_VERTEX_LIGHTING\n float diffuseIntensity = clamp(czm_getLambertDiffuse(czm_lightDirectionEC, normalize(v_normalEC)) * u_lambertDiffuseMultiplier + 0.3, 0.0, 1.0);\n vec4 finalColor = vec4(color.rgb * czm_lightColor * diffuseIntensity, color.a);\n#elif defined(ENABLE_DAYNIGHT_SHADING)\n float diffuseIntensity = clamp(czm_getLambertDiffuse(czm_lightDirectionEC, normalEC) * 5.0 + 0.3, 0.0, 1.0);\n diffuseIntensity = mix(1.0, diffuseIntensity, fade);\n vec4 finalColor = vec4(color.rgb * czm_lightColor * diffuseIntensity, color.a);\n#else\n vec4 finalColor = color;\n#endif\n\n#ifdef ENABLE_CLIPPING_PLANES\n vec4 clippingPlanesEdgeColor = vec4(1.0);\n clippingPlanesEdgeColor.rgb = u_clippingPlanesEdgeStyle.rgb;\n float clippingPlanesEdgeWidth = u_clippingPlanesEdgeStyle.a;\n\n if (clipDistance < clippingPlanesEdgeWidth)\n {\n finalColor = clippingPlanesEdgeColor;\n }\n#endif\n\n#ifdef HIGHLIGHT_FILL_TILE\n finalColor = vec4(mix(finalColor.rgb, u_fillHighlightColor.rgb, u_fillHighlightColor.a), finalColor.a);\n#endif\n\n#if defined(FOG) || defined(GROUND_ATMOSPHERE)\n vec3 fogColor = colorCorrect(v_fogMieColor) + finalColor.rgb * colorCorrect(v_fogRayleighColor);\n#ifndef HDR\n fogColor = vec3(1.0) - exp(-fExposure * fogColor);\n#endif\n#endif\n\n#if defined(DYNAMIC_ATMOSPHERE_LIGHTING_FROM_SUN)\n vec3 atmosphereLightDirection = czm_sunDirectionWC;\n#else\n vec3 atmosphereLightDirection = czm_lightDirectionWC;\n#endif\n\n#ifdef FOG\n#if defined(DYNAMIC_ATMOSPHERE_LIGHTING) && (defined(ENABLE_VERTEX_LIGHTING) || defined(ENABLE_DAYNIGHT_SHADING))\n float darken = clamp(dot(normalize(czm_viewerPositionWC), atmosphereLightDirection), u_minimumBrightness, 1.0);\n fogColor *= darken;\n#endif\n\n#ifdef HDR\n const float modifier = 0.15;\n finalColor = vec4(czm_fog(v_distance, finalColor.rgb, fogColor, modifier), finalColor.a);\n#else\n finalColor = vec4(czm_fog(v_distance, finalColor.rgb, fogColor), finalColor.a);\n#endif\n#endif\n\n#ifdef GROUND_ATMOSPHERE\n if (!czm_backFacing())\n {\n vec3 groundAtmosphereColor = computeGroundAtmosphereColor(fogColor, finalColor, atmosphereLightDirection, cameraDist);\n finalColor = vec4(mix(finalColor.rgb, groundAtmosphereColor, fade), finalColor.a);\n }\n#endif\n\n#ifdef UNDERGROUND_COLOR\n if (czm_backFacing())\n {\n float distanceFromEllipsoid = max(czm_eyeHeight, 0.0);\n float distance = max(v_distance - distanceFromEllipsoid, 0.0);\n float blendAmount = interpolateByDistance(u_undergroundColorAlphaByDistance, distance);\n vec4 undergroundColor = vec4(u_undergroundColor.rgb, u_undergroundColor.a * blendAmount);\n finalColor = alphaBlend(undergroundColor, finalColor);\n }\n#endif\n\n#ifdef TRANSLUCENT\n if (inTranslucencyRectangle())\n {\n vec4 alphaByDistance = gl_FrontFacing ? u_frontFaceAlphaByDistance : u_backFaceAlphaByDistance;\n finalColor.a *= interpolateByDistance(alphaByDistance, v_distance);\n }\n#endif\n\n gl_FragColor = finalColor;\n}\n\n#ifdef GROUND_ATMOSPHERE\nvec3 computeGroundAtmosphereColor(vec3 fogColor, vec4 finalColor, vec3 atmosphereLightDirection, float cameraDist)\n{\n#if defined(PER_FRAGMENT_GROUND_ATMOSPHERE) && defined(DYNAMIC_ATMOSPHERE_LIGHTING) && (defined(ENABLE_DAYNIGHT_SHADING) || defined(ENABLE_VERTEX_LIGHTING))\n float mpp = czm_metersPerPixel(vec4(0.0, 0.0, -czm_currentFrustum.x, 1.0), 1.0);\n vec2 xy = gl_FragCoord.xy / czm_viewport.zw * 2.0 - vec2(1.0);\n xy *= czm_viewport.zw * mpp * 0.5;\n\n vec3 direction = normalize(vec3(xy, -czm_currentFrustum.x));\n czm_ray ray = czm_ray(vec3(0.0), direction);\n\n vec3 ellipsoid_center = czm_view[3].xyz;\n\n czm_raySegment intersection = czm_rayEllipsoidIntersectionInterval(ray, ellipsoid_center, czm_ellipsoidInverseRadii);\n\n vec3 ellipsoidPosition = czm_pointAlongRay(ray, intersection.start);\n ellipsoidPosition = (czm_inverseView * vec4(ellipsoidPosition, 1.0)).xyz;\n AtmosphereColor atmosColor = computeGroundAtmosphereFromSpace(ellipsoidPosition, true, atmosphereLightDirection);\n\n vec3 groundAtmosphereColor = colorCorrect(atmosColor.mie) + finalColor.rgb * colorCorrect(atmosColor.rayleigh);\n#ifndef HDR\n groundAtmosphereColor = vec3(1.0) - exp(-fExposure * groundAtmosphereColor);\n#endif\n\n float fadeInDist = u_nightFadeDistance.x;\n float fadeOutDist = u_nightFadeDistance.y;\n\n float sunlitAtmosphereIntensity = clamp((cameraDist - fadeOutDist) / (fadeInDist - fadeOutDist), 0.0, 1.0);\n\n#ifdef HDR\n // Some tweaking to make HDR look better\n sunlitAtmosphereIntensity = max(sunlitAtmosphereIntensity * sunlitAtmosphereIntensity, 0.03);\n#endif\n\n groundAtmosphereColor = mix(groundAtmosphereColor, fogColor, sunlitAtmosphereIntensity);\n#else\n vec3 groundAtmosphereColor = fogColor;\n#endif\n\n#ifdef HDR\n // Some tweaking to make HDR look better\n groundAtmosphereColor = czm_saturation(groundAtmosphereColor, 1.6);\n#endif\n\n return groundAtmosphereColor;\n}\n#endif\n\n#ifdef SHOW_REFLECTIVE_OCEAN\n\nfloat waveFade(float edge0, float edge1, float x)\n{\n float y = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);\n return pow(1.0 - y, 5.0);\n}\n\nfloat linearFade(float edge0, float edge1, float x)\n{\n return clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);\n}\n\n// Based on water rendering by Jonas Wagner:\n// http://29a.ch/2012/7/19/webgl-terrain-rendering-water-fog\n\n// low altitude wave settings\nconst float oceanFrequencyLowAltitude = 825000.0;\nconst float oceanAnimationSpeedLowAltitude = 0.004;\nconst float oceanOneOverAmplitudeLowAltitude = 1.0 / 2.0;\nconst float oceanSpecularIntensity = 0.5;\n\n// high altitude wave settings\nconst float oceanFrequencyHighAltitude = 125000.0;\nconst float oceanAnimationSpeedHighAltitude = 0.008;\nconst float oceanOneOverAmplitudeHighAltitude = 1.0 / 2.0;\n\nvec4 computeWaterColor(vec3 positionEyeCoordinates, vec2 textureCoordinates, mat3 enuToEye, vec4 imageryColor, float maskValue, float fade)\n{\n vec3 positionToEyeEC = -positionEyeCoordinates;\n float positionToEyeECLength = length(positionToEyeEC);\n\n // The double normalize below works around a bug in Firefox on Android devices.\n vec3 normalizedPositionToEyeEC = normalize(normalize(positionToEyeEC));\n\n // Fade out the waves as the camera moves far from the surface.\n float waveIntensity = waveFade(70000.0, 1000000.0, positionToEyeECLength);\n\n#ifdef SHOW_OCEAN_WAVES\n // high altitude waves\n float time = czm_frameNumber * oceanAnimationSpeedHighAltitude;\n vec4 noise = czm_getWaterNoise(u_oceanNormalMap, textureCoordinates * oceanFrequencyHighAltitude, time, 0.0);\n vec3 normalTangentSpaceHighAltitude = vec3(noise.xy, noise.z * oceanOneOverAmplitudeHighAltitude);\n\n // low altitude waves\n time = czm_frameNumber * oceanAnimationSpeedLowAltitude;\n noise = czm_getWaterNoise(u_oceanNormalMap, textureCoordinates * oceanFrequencyLowAltitude, time, 0.0);\n vec3 normalTangentSpaceLowAltitude = vec3(noise.xy, noise.z * oceanOneOverAmplitudeLowAltitude);\n\n // blend the 2 wave layers based on distance to surface\n float highAltitudeFade = linearFade(0.0, 60000.0, positionToEyeECLength);\n float lowAltitudeFade = 1.0 - linearFade(20000.0, 60000.0, positionToEyeECLength);\n vec3 normalTangentSpace =\n (highAltitudeFade * normalTangentSpaceHighAltitude) +\n (lowAltitudeFade * normalTangentSpaceLowAltitude);\n normalTangentSpace = normalize(normalTangentSpace);\n\n // fade out the normal perturbation as we move farther from the water surface\n normalTangentSpace.xy *= waveIntensity;\n normalTangentSpace = normalize(normalTangentSpace);\n#else\n vec3 normalTangentSpace = vec3(0.0, 0.0, 1.0);\n#endif\n\n vec3 normalEC = enuToEye * normalTangentSpace;\n\n const vec3 waveHighlightColor = vec3(0.3, 0.45, 0.6);\n\n // Use diffuse light to highlight the waves\n float diffuseIntensity = czm_getLambertDiffuse(czm_lightDirectionEC, normalEC) * maskValue;\n vec3 diffuseHighlight = waveHighlightColor * diffuseIntensity * (1.0 - fade);\n\n#ifdef SHOW_OCEAN_WAVES\n // Where diffuse light is low or non-existent, use wave highlights based solely on\n // the wave bumpiness and no particular light direction.\n float tsPerturbationRatio = normalTangentSpace.z;\n vec3 nonDiffuseHighlight = mix(waveHighlightColor * 5.0 * (1.0 - tsPerturbationRatio), vec3(0.0), diffuseIntensity);\n#else\n vec3 nonDiffuseHighlight = vec3(0.0);\n#endif\n\n // Add specular highlights in 3D, and in all modes when zoomed in.\n float specularIntensity = czm_getSpecular(czm_lightDirectionEC, normalizedPositionToEyeEC, normalEC, 10.0);\n float surfaceReflectance = mix(0.0, mix(u_zoomedOutOceanSpecularIntensity, oceanSpecularIntensity, waveIntensity), maskValue);\n float specular = specularIntensity * surfaceReflectance;\n\n#ifdef HDR\n specular *= 1.4;\n\n float e = 0.2;\n float d = 3.3;\n float c = 1.7;\n\n vec3 color = imageryColor.rgb + (c * (vec3(e) + imageryColor.rgb * d) * (diffuseHighlight + nonDiffuseHighlight + specular));\n#else\n vec3 color = imageryColor.rgb + diffuseHighlight + nonDiffuseHighlight + specular;\n#endif\n\n return vec4(color, imageryColor.a);\n}\n\n#endif // #ifdef SHOW_REFLECTIVE_OCEAN\n"},867629:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="#ifdef QUANTIZATION_BITS12\nattribute vec4 compressed0;\nattribute float compressed1;\n#else\nattribute vec4 position3DAndHeight;\nattribute vec4 textureCoordAndEncodedNormals;\n#endif\n\n#ifdef GEODETIC_SURFACE_NORMALS\nattribute vec3 geodeticSurfaceNormal;\n#endif\n\n#ifdef EXAGGERATION\nuniform vec2 u_terrainExaggerationAndRelativeHeight;\n#endif\n\nuniform vec3 u_center3D;\nuniform mat4 u_modifiedModelView;\nuniform mat4 u_modifiedModelViewProjection;\nuniform vec4 u_tileRectangle;\n\n// Uniforms for 2D Mercator projection\nuniform vec2 u_southAndNorthLatitude;\nuniform vec2 u_southMercatorYAndOneOverHeight;\n\nvarying vec3 v_positionMC;\nvarying vec3 v_positionEC;\n\nvarying vec3 v_textureCoordinates;\nvarying vec3 v_normalMC;\nvarying vec3 v_normalEC;\n\n#ifdef APPLY_MATERIAL\nvarying float v_slope;\nvarying float v_aspect;\nvarying float v_height;\n#endif\n\n#if defined(FOG) || defined(GROUND_ATMOSPHERE) || defined(UNDERGROUND_COLOR) || defined(TRANSLUCENT)\nvarying float v_distance;\n#endif\n\n#if defined(FOG) || defined(GROUND_ATMOSPHERE)\nvarying vec3 v_fogMieColor;\nvarying vec3 v_fogRayleighColor;\n#endif\n\n// These functions are generated at runtime.\nvec4 getPosition(vec3 position, float height, vec2 textureCoordinates);\nfloat get2DYPositionFraction(vec2 textureCoordinates);\n\nvec4 getPosition3DMode(vec3 position, float height, vec2 textureCoordinates)\n{\n return u_modifiedModelViewProjection * vec4(position, 1.0);\n}\n\nfloat get2DMercatorYPositionFraction(vec2 textureCoordinates)\n{\n // The width of a tile at level 11, in radians and assuming a single root tile, is\n // 2.0 * czm_pi / pow(2.0, 11.0)\n // We want to just linearly interpolate the 2D position from the texture coordinates\n // when we're at this level or higher. The constant below is the expression\n // above evaluated and then rounded up at the 4th significant digit.\n const float maxTileWidth = 0.003068;\n float positionFraction = textureCoordinates.y;\n float southLatitude = u_southAndNorthLatitude.x;\n float northLatitude = u_southAndNorthLatitude.y;\n if (northLatitude - southLatitude > maxTileWidth)\n {\n float southMercatorY = u_southMercatorYAndOneOverHeight.x;\n float oneOverMercatorHeight = u_southMercatorYAndOneOverHeight.y;\n\n float currentLatitude = mix(southLatitude, northLatitude, textureCoordinates.y);\n currentLatitude = clamp(currentLatitude, -czm_webMercatorMaxLatitude, czm_webMercatorMaxLatitude);\n positionFraction = czm_latitudeToWebMercatorFraction(currentLatitude, southMercatorY, oneOverMercatorHeight);\n }\n return positionFraction;\n}\n\nfloat get2DGeographicYPositionFraction(vec2 textureCoordinates)\n{\n return textureCoordinates.y;\n}\n\nvec4 getPositionPlanarEarth(vec3 position, float height, vec2 textureCoordinates)\n{\n float yPositionFraction = get2DYPositionFraction(textureCoordinates);\n vec4 rtcPosition2D = vec4(height, mix(u_tileRectangle.st, u_tileRectangle.pq, vec2(textureCoordinates.x, yPositionFraction)), 1.0);\n return u_modifiedModelViewProjection * rtcPosition2D;\n}\n\nvec4 getPosition2DMode(vec3 position, float height, vec2 textureCoordinates)\n{\n return getPositionPlanarEarth(position, 0.0, textureCoordinates);\n}\n\nvec4 getPositionColumbusViewMode(vec3 position, float height, vec2 textureCoordinates)\n{\n return getPositionPlanarEarth(position, height, textureCoordinates);\n}\n\nvec4 getPositionMorphingMode(vec3 position, float height, vec2 textureCoordinates)\n{\n // We do not do RTC while morphing, so there is potential for jitter.\n // This is unlikely to be noticeable, though.\n vec3 position3DWC = position + u_center3D;\n float yPositionFraction = get2DYPositionFraction(textureCoordinates);\n vec4 position2DWC = vec4(height, mix(u_tileRectangle.st, u_tileRectangle.pq, vec2(textureCoordinates.x, yPositionFraction)), 1.0);\n vec4 morphPosition = czm_columbusViewMorph(position2DWC, vec4(position3DWC, 1.0), czm_morphTime);\n return czm_modelViewProjection * morphPosition;\n}\n\n#ifdef QUANTIZATION_BITS12\nuniform vec2 u_minMaxHeight;\nuniform mat4 u_scaleAndBias;\n#endif\n\nvoid main()\n{\n#ifdef QUANTIZATION_BITS12\n vec2 xy = czm_decompressTextureCoordinates(compressed0.x);\n vec2 zh = czm_decompressTextureCoordinates(compressed0.y);\n vec3 position = vec3(xy, zh.x);\n float height = zh.y;\n vec2 textureCoordinates = czm_decompressTextureCoordinates(compressed0.z);\n\n height = height * (u_minMaxHeight.y - u_minMaxHeight.x) + u_minMaxHeight.x;\n position = (u_scaleAndBias * vec4(position, 1.0)).xyz;\n\n#if (defined(ENABLE_VERTEX_LIGHTING) || defined(GENERATE_POSITION_AND_NORMAL)) && defined(INCLUDE_WEB_MERCATOR_Y)\n float webMercatorT = czm_decompressTextureCoordinates(compressed0.w).x;\n float encodedNormal = compressed1;\n#elif defined(INCLUDE_WEB_MERCATOR_Y)\n float webMercatorT = czm_decompressTextureCoordinates(compressed0.w).x;\n float encodedNormal = 0.0;\n#elif defined(ENABLE_VERTEX_LIGHTING) || defined(GENERATE_POSITION_AND_NORMAL)\n float webMercatorT = textureCoordinates.y;\n float encodedNormal = compressed0.w;\n#else\n float webMercatorT = textureCoordinates.y;\n float encodedNormal = 0.0;\n#endif\n\n#else\n // A single float per element\n vec3 position = position3DAndHeight.xyz;\n float height = position3DAndHeight.w;\n vec2 textureCoordinates = textureCoordAndEncodedNormals.xy;\n\n#if (defined(ENABLE_VERTEX_LIGHTING) || defined(GENERATE_POSITION_AND_NORMAL) || defined(APPLY_MATERIAL)) && defined(INCLUDE_WEB_MERCATOR_Y)\n float webMercatorT = textureCoordAndEncodedNormals.z;\n float encodedNormal = textureCoordAndEncodedNormals.w;\n#elif defined(ENABLE_VERTEX_LIGHTING) || defined(GENERATE_POSITION_AND_NORMAL) || defined(APPLY_MATERIAL)\n float webMercatorT = textureCoordinates.y;\n float encodedNormal = textureCoordAndEncodedNormals.z;\n#elif defined(INCLUDE_WEB_MERCATOR_Y)\n float webMercatorT = textureCoordAndEncodedNormals.z;\n float encodedNormal = 0.0;\n#else\n float webMercatorT = textureCoordinates.y;\n float encodedNormal = 0.0;\n#endif\n\n#endif\n\n vec3 position3DWC = position + u_center3D;\n\n#ifdef GEODETIC_SURFACE_NORMALS\n vec3 ellipsoidNormal = geodeticSurfaceNormal;\n#else\n vec3 ellipsoidNormal = normalize(position3DWC);\n#endif\n\n#if defined(EXAGGERATION) && defined(GEODETIC_SURFACE_NORMALS)\n float exaggeration = u_terrainExaggerationAndRelativeHeight.x;\n float relativeHeight = u_terrainExaggerationAndRelativeHeight.y;\n float newHeight = (height - relativeHeight) * exaggeration + relativeHeight;\n\n // stop from going through center of earth\n float minRadius = min(min(czm_ellipsoidRadii.x, czm_ellipsoidRadii.y), czm_ellipsoidRadii.z);\n newHeight = max(newHeight, -minRadius);\n\n vec3 offset = ellipsoidNormal * (newHeight - height);\n position += offset;\n position3DWC += offset;\n height = newHeight;\n#endif\n\n gl_Position = getPosition(position, height, textureCoordinates);\n\n v_textureCoordinates = vec3(textureCoordinates, webMercatorT);\n\n#if defined(ENABLE_VERTEX_LIGHTING) || defined(GENERATE_POSITION_AND_NORMAL) || defined(APPLY_MATERIAL)\n v_positionEC = (u_modifiedModelView * vec4(position, 1.0)).xyz;\n v_positionMC = position3DWC; // position in model coordinates\n vec3 normalMC = czm_octDecode(encodedNormal);\n\n#if defined(EXAGGERATION) && defined(GEODETIC_SURFACE_NORMALS)\n vec3 projection = dot(normalMC, ellipsoidNormal) * ellipsoidNormal;\n vec3 rejection = normalMC - projection;\n normalMC = normalize(projection + rejection * exaggeration);\n#endif\n\n v_normalMC = normalMC;\n v_normalEC = czm_normal3D * v_normalMC;\n#elif defined(SHOW_REFLECTIVE_OCEAN) || defined(ENABLE_DAYNIGHT_SHADING) || defined(GENERATE_POSITION) || defined(HDR)\n v_positionEC = (u_modifiedModelView * vec4(position, 1.0)).xyz;\n v_positionMC = position3DWC; // position in model coordinates\n#endif\n\n#if defined(FOG) || defined(GROUND_ATMOSPHERE)\n AtmosphereColor atmosFogColor = computeGroundAtmosphereFromSpace(position3DWC, false, vec3(0.0));\n v_fogMieColor = atmosFogColor.mie;\n v_fogRayleighColor = atmosFogColor.rayleigh;\n#endif\n\n#if defined(FOG) || defined(GROUND_ATMOSPHERE) || defined(UNDERGROUND_COLOR) || defined(TRANSLUCENT)\n v_distance = length((czm_modelView3D * vec4(position3DWC, 1.0)).xyz);\n#endif\n\n#ifdef APPLY_MATERIAL\n float northPoleZ = czm_ellipsoidRadii.z;\n vec3 northPolePositionMC = vec3(0.0, 0.0, northPoleZ);\n vec3 vectorEastMC = normalize(cross(northPolePositionMC - v_positionMC, ellipsoidNormal));\n float dotProd = abs(dot(ellipsoidNormal, v_normalMC));\n v_slope = acos(dotProd);\n vec3 normalRejected = ellipsoidNormal * dotProd;\n vec3 normalProjected = v_normalMC - normalRejected;\n vec3 aspectVector = normalize(normalProjected);\n v_aspect = acos(dot(aspectVector, vectorEastMC));\n float determ = dot(cross(vectorEastMC, aspectVector), ellipsoidNormal);\n v_aspect = czm_branchFreeTernary(determ < 0.0, 2.0 * czm_pi - v_aspect, v_aspect);\n v_height = height;\n#endif\n}\n"},955110:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/*!\n * Atmosphere code:\n *\n * Copyright (c) 2000-2005, Sean O'Neil (s_p_oneil@hotmail.com)\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * this list of conditions and the following disclaimer.\n * * Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation\n * and/or other materials provided with the distribution.\n * * Neither the name of the project nor the names of its contributors may be\n * used to endorse or promote products derived from this software without\n * specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n *\n * Modifications made by Analytical Graphics, Inc.\n */\n\n // Atmosphere:\n // Code: http://sponeil.net/\n // GPU Gems 2 Article: https://developer.nvidia.com/gpugems/GPUGems2/gpugems2_chapter16.html\n\nconst float Kr = 0.0025;\nconst float Km = 0.0015;\nconst float ESun = 15.0;\n\nconst float fKrESun = Kr * ESun;\nconst float fKmESun = Km * ESun;\nconst float fKr4PI = Kr * 4.0 * czm_pi;\nconst float fKm4PI = Km * 4.0 * czm_pi;\n\n// Original: vec3(1.0 / pow(0.650, 4.0), 1.0 / pow(0.570, 4.0), 1.0 / pow(0.475, 4.0));\nconst vec3 v3InvWavelength = vec3(5.60204474633241, 9.473284437923038, 19.64380261047721);\n\nconst float fScaleDepth = 0.25;\n\nstruct AtmosphereColor\n{\n vec3 mie;\n vec3 rayleigh;\n};\n\nconst int nSamples = 2;\nconst float fSamples = 2.0;\n\nfloat scale(float fCos)\n{\n float x = 1.0 - fCos;\n return fScaleDepth * exp(-0.00287 + x*(0.459 + x*(3.83 + x*(-6.80 + x*5.25))));\n}\n\nAtmosphereColor computeGroundAtmosphereFromSpace(vec3 v3Pos, bool dynamicLighting, vec3 lightDirectionWC)\n{\n float fInnerRadius = czm_ellipsoidRadii.x;\n float fOuterRadius = czm_ellipsoidRadii.x * 1.025;\n float fOuterRadius2 = fOuterRadius * fOuterRadius;\n\n float fScale = 1.0 / (fOuterRadius - fInnerRadius);\n float fScaleOverScaleDepth = fScale / fScaleDepth;\n\n // Get the ray from the camera to the vertex and its length (which is the far point of the ray passing through the atmosphere)\n vec3 v3Ray = v3Pos - czm_viewerPositionWC;\n float fFar = length(v3Ray);\n v3Ray /= fFar;\n\n float fCameraHeight = length(czm_viewerPositionWC);\n float fCameraHeight2 = fCameraHeight * fCameraHeight;\n\n // This next line is an ANGLE workaround. It is equivalent to B = 2.0 * dot(czm_viewerPositionWC, v3Ray),\n // which is what it should be, but there are problems at the poles.\n float B = 2.0 * length(czm_viewerPositionWC) * dot(normalize(czm_viewerPositionWC), v3Ray);\n float C = fCameraHeight2 - fOuterRadius2;\n float fDet = max(0.0, B*B - 4.0 * C);\n float fNear = 0.5 * (-B - sqrt(fDet));\n\n // Calculate the ray's starting position, then calculate its scattering offset\n vec3 v3Start = czm_viewerPositionWC + v3Ray * fNear;\n fFar -= fNear;\n float fDepth = exp((fInnerRadius - fOuterRadius) / fScaleDepth);\n\n // The light angle based on the scene's light source would be:\n // dot(lightDirectionWC, v3Pos) / length(v3Pos);\n // When we want the atmosphere to be uniform over the globe so it is set to 1.0.\n\n float fLightAngle = czm_branchFreeTernary(dynamicLighting, dot(lightDirectionWC, v3Pos) / length(v3Pos), 1.0);\n float fCameraAngle = dot(-v3Ray, v3Pos) / length(v3Pos);\n float fCameraScale = scale(fCameraAngle);\n float fLightScale = scale(fLightAngle);\n float fCameraOffset = fDepth*fCameraScale;\n float fTemp = (fLightScale + fCameraScale);\n\n // Initialize the scattering loop variables\n float fSampleLength = fFar / fSamples;\n float fScaledLength = fSampleLength * fScale;\n vec3 v3SampleRay = v3Ray * fSampleLength;\n vec3 v3SamplePoint = v3Start + v3SampleRay * 0.5;\n\n // Now loop through the sample rays\n vec3 v3FrontColor = vec3(0.0);\n vec3 v3Attenuate = vec3(0.0);\n for(int i=0; i{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D image;\n\nczm_material czm_getMaterial(czm_materialInput materialInput)\n{\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec4 rampColor = texture2D(image, vec2(materialInput.aspect / (2.0 * czm_pi), 0.5));\n rampColor = czm_gammaCorrect(rampColor);\n material.diffuse = rampColor.rgb;\n material.alpha = rampColor.a;\n return material;\n}\n"},139281:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D image;\nuniform float strength;\nuniform vec2 repeat;\n\nczm_material czm_getMaterial(czm_materialInput materialInput)\n{\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n vec2 st = materialInput.st;\n\n vec2 centerPixel = fract(repeat * st);\n float centerBump = texture2D(image, centerPixel).channel;\n\n float imageWidth = float(imageDimensions.x);\n vec2 rightPixel = fract(repeat * (st + vec2(1.0 / imageWidth, 0.0)));\n float rightBump = texture2D(image, rightPixel).channel;\n\n float imageHeight = float(imageDimensions.y);\n vec2 leftPixel = fract(repeat * (st + vec2(0.0, 1.0 / imageHeight)));\n float topBump = texture2D(image, leftPixel).channel;\n\n vec3 normalTangentSpace = normalize(vec3(centerBump - rightBump, centerBump - topBump, clamp(1.0 - strength, 0.1, 1.0)));\n vec3 normalEC = materialInput.tangentToEyeMatrix * normalTangentSpace;\n\n material.normal = normalEC;\n material.diffuse = vec3(0.01);\n\n return material;\n}\n"},51596:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform vec4 lightColor;\nuniform vec4 darkColor;\nuniform vec2 repeat;\n\nczm_material czm_getMaterial(czm_materialInput materialInput)\n{\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n vec2 st = materialInput.st;\n\n // From Stefan Gustavson's Procedural Textures in GLSL in OpenGL Insights\n float b = mod(floor(repeat.s * st.s) + floor(repeat.t * st.t), 2.0); // 0.0 or 1.0\n\n // Find the distance from the closest separator (region between two colors)\n float scaledWidth = fract(repeat.s * st.s);\n scaledWidth = abs(scaledWidth - floor(scaledWidth + 0.5));\n float scaledHeight = fract(repeat.t * st.t);\n scaledHeight = abs(scaledHeight - floor(scaledHeight + 0.5));\n float value = min(scaledWidth, scaledHeight);\n\n vec4 currentColor = mix(lightColor, darkColor, b);\n vec4 color = czm_antialias(lightColor, darkColor, currentColor, value, 0.03);\n\n color = czm_gammaCorrect(color);\n material.diffuse = color.rgb;\n material.alpha = color.a;\n\n return material;\n}\n"},977906:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform vec4 lightColor;\nuniform vec4 darkColor;\nuniform vec2 repeat;\n\nczm_material czm_getMaterial(czm_materialInput materialInput)\n{\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n // From Stefan Gustavson's Procedural Textures in GLSL in OpenGL Insights\n float b = smoothstep(0.3, 0.32, length(fract(repeat * materialInput.st) - 0.5)); // 0.0 or 1.0\n\n vec4 color = mix(lightColor, darkColor, b);\n color = czm_gammaCorrect(color);\n material.diffuse = color.rgb;\n material.alpha = color.a;\n\n return material;\n}\n"},49948:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D heights;\nuniform sampler2D colors;\n\n// This material expects heights to be sorted from lowest to highest.\n\nfloat getHeight(int idx, float invTexSize)\n{\n vec2 uv = vec2((float(idx) + 0.5) * invTexSize, 0.5);\n#ifdef OES_texture_float\n return texture2D(heights, uv).x;\n#else\n return czm_unpackFloat(texture2D(heights, uv));\n#endif\n}\n\nczm_material czm_getMaterial(czm_materialInput materialInput)\n{\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n float height = materialInput.height;\n float invTexSize = 1.0 / float(heightsDimensions.x);\n\n float minHeight = getHeight(0, invTexSize);\n float maxHeight = getHeight(heightsDimensions.x - 1, invTexSize);\n\n // early-out when outside the height range\n if (height < minHeight || height > maxHeight) {\n material.diffuse = vec3(0.0);\n material.alpha = 0.0;\n return material;\n }\n\n // Binary search to find heights above and below.\n int idxBelow = 0;\n int idxAbove = heightsDimensions.x;\n float heightBelow = minHeight;\n float heightAbove = maxHeight;\n\n // while loop not allowed, so use for loop with max iterations.\n // maxIterations of 16 supports a texture size up to 65536 (2^16).\n const int maxIterations = 16;\n for (int i = 0; i < maxIterations; i++) {\n if (idxBelow >= idxAbove - 1) {\n break;\n }\n\n int idxMid = (idxBelow + idxAbove) / 2;\n float heightTex = getHeight(idxMid, invTexSize);\n\n if (height > heightTex) {\n idxBelow = idxMid;\n heightBelow = heightTex;\n } else {\n idxAbove = idxMid;\n heightAbove = heightTex;\n }\n }\n\n float lerper = heightBelow == heightAbove ? 1.0 : (height - heightBelow) / (heightAbove - heightBelow);\n vec2 colorUv = vec2(invTexSize * (float(idxBelow) + 0.5 + lerper), 0.5);\n vec4 color = texture2D(colors, colorUv);\n\n // undo preumultiplied alpha\n if (color.a > 0.0) \n {\n color.rgb /= color.a;\n }\n \n color.rgb = czm_gammaCorrect(color.rgb);\n\n material.diffuse = color.rgb;\n material.alpha = color.a;\n return material;\n}\n"},239972:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="#ifdef GL_OES_standard_derivatives\n #extension GL_OES_standard_derivatives : enable\n#endif\n\nuniform vec4 color;\nuniform float spacing;\nuniform float width;\n\nczm_material czm_getMaterial(czm_materialInput materialInput)\n{\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n float distanceToContour = mod(materialInput.height, spacing);\n\n#ifdef GL_OES_standard_derivatives\n float dxc = abs(dFdx(materialInput.height));\n float dyc = abs(dFdy(materialInput.height));\n float dF = max(dxc, dyc) * czm_pixelRatio * width;\n float alpha = (distanceToContour < dF) ? 1.0 : 0.0;\n#else\n float alpha = (distanceToContour < (czm_pixelRatio * width)) ? 1.0 : 0.0;\n#endif\n\n vec4 outColor = czm_gammaCorrect(vec4(color.rgb, alpha * color.a));\n material.diffuse = outColor.rgb;\n material.alpha = outColor.a;\n\n return material;\n}\n"},86546:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D image;\nuniform float minimumHeight;\nuniform float maximumHeight;\n\nczm_material czm_getMaterial(czm_materialInput materialInput)\n{\n czm_material material = czm_getDefaultMaterial(materialInput);\n float scaledHeight = clamp((materialInput.height - minimumHeight) / (maximumHeight - minimumHeight), 0.0, 1.0);\n vec4 rampColor = texture2D(image, vec2(scaledHeight, 0.5));\n rampColor = czm_gammaCorrect(rampColor);\n material.diffuse = rampColor.rgb;\n material.alpha = rampColor.a;\n return material;\n}\n"},810691:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform vec4 fadeInColor;\nuniform vec4 fadeOutColor;\nuniform float maximumDistance;\nuniform bool repeat;\nuniform vec2 fadeDirection;\nuniform vec2 time;\n\nfloat getTime(float t, float coord)\n{\n float scalar = 1.0 / maximumDistance;\n float q = distance(t, coord) * scalar;\n if (repeat)\n {\n float r = distance(t, coord + 1.0) * scalar;\n float s = distance(t, coord - 1.0) * scalar;\n q = min(min(r, s), q);\n }\n return clamp(q, 0.0, 1.0);\n}\n\nczm_material czm_getMaterial(czm_materialInput materialInput)\n{\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n vec2 st = materialInput.st;\n float s = getTime(time.x, st.s) * fadeDirection.s;\n float t = getTime(time.y, st.t) * fadeDirection.t;\n\n float u = length(vec2(s, t));\n vec4 color = mix(fadeInColor, fadeOutColor, u);\n\n color = czm_gammaCorrect(color);\n material.emission = color.rgb;\n material.alpha = color.a;\n\n return material;\n}\n"},543184:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o='#ifdef GL_OES_standard_derivatives\n #extension GL_OES_standard_derivatives : enable\n#endif\n\nuniform vec4 color;\nuniform float cellAlpha;\nuniform vec2 lineCount;\nuniform vec2 lineThickness;\nuniform vec2 lineOffset;\n\nczm_material czm_getMaterial(czm_materialInput materialInput)\n{\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n vec2 st = materialInput.st;\n\n float scaledWidth = fract(lineCount.s * st.s - lineOffset.s);\n scaledWidth = abs(scaledWidth - floor(scaledWidth + 0.5));\n float scaledHeight = fract(lineCount.t * st.t - lineOffset.t);\n scaledHeight = abs(scaledHeight - floor(scaledHeight + 0.5));\n\n float value;\n#ifdef GL_OES_standard_derivatives\n // Fuzz Factor - Controls blurriness of lines\n const float fuzz = 1.2;\n vec2 thickness = (lineThickness * czm_pixelRatio) - 1.0;\n\n // From "3D Engine Design for Virtual Globes" by Cozzi and Ring, Listing 4.13.\n vec2 dx = abs(dFdx(st));\n vec2 dy = abs(dFdy(st));\n vec2 dF = vec2(max(dx.s, dy.s), max(dx.t, dy.t)) * lineCount;\n value = min(\n smoothstep(dF.s * thickness.s, dF.s * (fuzz + thickness.s), scaledWidth),\n smoothstep(dF.t * thickness.t, dF.t * (fuzz + thickness.t), scaledHeight));\n#else\n // Fuzz Factor - Controls blurriness of lines\n const float fuzz = 0.05;\n\n vec2 range = 0.5 - (lineThickness * 0.05);\n value = min(\n 1.0 - smoothstep(range.s, range.s + fuzz, scaledWidth),\n 1.0 - smoothstep(range.t, range.t + fuzz, scaledHeight));\n#endif\n\n // Edges taken from RimLightingMaterial.glsl\n // See http://www.fundza.com/rman_shaders/surface/fake_rim/fake_rim1.html\n float dRim = 1.0 - abs(dot(materialInput.normalEC, normalize(materialInput.positionToEyeEC)));\n float sRim = smoothstep(0.8, 1.0, dRim);\n value *= (1.0 - sRim);\n\n vec4 halfColor;\n halfColor.rgb = color.rgb * 0.5;\n halfColor.a = color.a * (1.0 - ((1.0 - cellAlpha) * value));\n halfColor = czm_gammaCorrect(halfColor);\n material.diffuse = halfColor.rgb;\n material.emission = halfColor.rgb;\n material.alpha = halfColor.a;\n\n return material;\n}\n'},960543:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D image;\nuniform float strength;\nuniform vec2 repeat;\n\nczm_material czm_getMaterial(czm_materialInput materialInput)\n{\n czm_material material = czm_getDefaultMaterial(materialInput);\n \n vec4 textureValue = texture2D(image, fract(repeat * materialInput.st));\n vec3 normalTangentSpace = textureValue.channels;\n normalTangentSpace.xy = normalTangentSpace.xy * 2.0 - 1.0;\n normalTangentSpace.z = clamp(1.0 - strength, 0.1, 1.0);\n normalTangentSpace = normalize(normalTangentSpace);\n vec3 normalEC = materialInput.tangentToEyeMatrix * normalTangentSpace;\n \n material.normal = normalEC;\n \n return material;\n}\n"},280131:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="#ifdef GL_OES_standard_derivatives\n#extension GL_OES_standard_derivatives : enable\n#endif\n\nuniform vec4 color;\n\nfloat getPointOnLine(vec2 p0, vec2 p1, float x)\n{\n float slope = (p0.y - p1.y) / (p0.x - p1.x);\n return slope * (x - p0.x) + p0.y;\n}\n\nczm_material czm_getMaterial(czm_materialInput materialInput)\n{\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n vec2 st = materialInput.st;\n\n#ifdef GL_OES_standard_derivatives\n float base = 1.0 - abs(fwidth(st.s)) * 10.0 * czm_pixelRatio;\n#else\n float base = 0.975; // 2.5% of the line will be the arrow head\n#endif\n\n vec2 center = vec2(1.0, 0.5);\n float ptOnUpperLine = getPointOnLine(vec2(base, 1.0), center, st.s);\n float ptOnLowerLine = getPointOnLine(vec2(base, 0.0), center, st.s);\n\n float halfWidth = 0.15;\n float s = step(0.5 - halfWidth, st.t);\n s *= 1.0 - step(0.5 + halfWidth, st.t);\n s *= 1.0 - step(base, st.s);\n\n float t = step(base, materialInput.st.s);\n t *= 1.0 - step(ptOnUpperLine, st.t);\n t *= step(ptOnLowerLine, st.t);\n\n // Find the distance from the closest separator (region between two colors)\n float dist;\n if (st.s < base)\n {\n float d1 = abs(st.t - (0.5 - halfWidth));\n float d2 = abs(st.t - (0.5 + halfWidth));\n dist = min(d1, d2);\n }\n else\n {\n float d1 = czm_infinity;\n if (st.t < 0.5 - halfWidth && st.t > 0.5 + halfWidth)\n {\n d1 = abs(st.s - base);\n }\n float d2 = abs(st.t - ptOnUpperLine);\n float d3 = abs(st.t - ptOnLowerLine);\n dist = min(min(d1, d2), d3);\n }\n\n vec4 outsideColor = vec4(0.0);\n vec4 currentColor = mix(outsideColor, color, clamp(s + t, 0.0, 1.0));\n vec4 outColor = czm_antialias(outsideColor, color, currentColor, dist);\n\n outColor = czm_gammaCorrect(outColor);\n material.diffuse = outColor.rgb;\n material.alpha = outColor.a;\n return material;\n}\n"},819438:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform vec4 color;\nuniform vec4 gapColor;\nuniform float dashLength;\nuniform float dashPattern;\nvarying float v_polylineAngle;\n\nconst float maskLength = 16.0;\n\nmat2 rotate(float rad) {\n float c = cos(rad);\n float s = sin(rad);\n return mat2(\n c, s,\n -s, c\n );\n}\n\nczm_material czm_getMaterial(czm_materialInput materialInput)\n{\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n vec2 pos = rotate(v_polylineAngle) * gl_FragCoord.xy;\n\n // Get the relative position within the dash from 0 to 1\n float dashPosition = fract(pos.x / (dashLength * czm_pixelRatio));\n // Figure out the mask index.\n float maskIndex = floor(dashPosition * maskLength);\n // Test the bit mask.\n float maskTest = floor(dashPattern / pow(2.0, maskIndex));\n vec4 fragColor = (mod(maskTest, 2.0) < 1.0) ? gapColor : color;\n if (fragColor.a < 0.005) { // matches 0/255 and 1/255\n discard;\n }\n\n fragColor = czm_gammaCorrect(fragColor);\n material.emission = fragColor.rgb;\n material.alpha = fragColor.a;\n return material;\n}\n"},357016:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform vec4 color;\nuniform float glowPower;\nuniform float taperPower;\n\nczm_material czm_getMaterial(czm_materialInput materialInput)\n{\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n vec2 st = materialInput.st;\n float glow = glowPower / abs(st.t - 0.5) - (glowPower / 0.5);\n\n if (taperPower <= 0.99999) {\n glow *= min(1.0, taperPower / (0.5 - st.s * 0.5) - (taperPower / 0.5));\n }\n\n vec4 fragColor;\n fragColor.rgb = max(vec3(glow - 1.0 + color.rgb), color.rgb);\n fragColor.a = clamp(0.0, 1.0, glow) * color.a;\n fragColor = czm_gammaCorrect(fragColor);\n\n material.emission = fragColor.rgb;\n material.alpha = fragColor.a;\n\n return material;\n}\n"},136607:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform vec4 color;\nuniform vec4 outlineColor;\nuniform float outlineWidth;\n\nvarying float v_width;\n\nczm_material czm_getMaterial(czm_materialInput materialInput)\n{\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n vec2 st = materialInput.st;\n float halfInteriorWidth = 0.5 * (v_width - outlineWidth) / v_width;\n float b = step(0.5 - halfInteriorWidth, st.t);\n b *= 1.0 - step(0.5 + halfInteriorWidth, st.t);\n\n // Find the distance from the closest separator (region between two colors)\n float d1 = abs(st.t - (0.5 - halfInteriorWidth));\n float d2 = abs(st.t - (0.5 + halfInteriorWidth));\n float dist = min(d1, d2);\n\n vec4 currentColor = mix(outlineColor, color, b);\n vec4 outColor = czm_antialias(outlineColor, color, currentColor, dist);\n outColor = czm_gammaCorrect(outColor);\n\n material.diffuse = outColor.rgb;\n material.alpha = outColor.a;\n\n return material;\n}\n"},991811:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform vec4 color;\nuniform vec4 rimColor;\nuniform float width;\n\nczm_material czm_getMaterial(czm_materialInput materialInput)\n{\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n // See http://www.fundza.com/rman_shaders/surface/fake_rim/fake_rim1.html\n float d = 1.0 - dot(materialInput.normalEC, normalize(materialInput.positionToEyeEC));\n float s = smoothstep(1.0 - width, 1.0, d);\n\n vec4 outColor = czm_gammaCorrect(color);\n vec4 outRimColor = czm_gammaCorrect(rimColor);\n\n material.diffuse = outColor.rgb;\n material.emission = outRimColor.rgb * s;\n material.alpha = mix(outColor.a, outRimColor.a, s);\n\n return material;\n}\n"},867647:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D image;\n\nczm_material czm_getMaterial(czm_materialInput materialInput)\n{\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec4 rampColor = texture2D(image, vec2(materialInput.slope / (czm_pi / 2.0), 0.5));\n rampColor = czm_gammaCorrect(rampColor);\n material.diffuse = rampColor.rgb;\n material.alpha = rampColor.a;\n return material;\n}\n"},676049:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform vec4 evenColor;\nuniform vec4 oddColor;\nuniform float offset;\nuniform float repeat;\nuniform bool horizontal;\n\nczm_material czm_getMaterial(czm_materialInput materialInput)\n{\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n // Based on the Stripes Fragment Shader in the Orange Book (11.1.2)\n float coord = mix(materialInput.st.s, materialInput.st.t, float(horizontal));\n float value = fract((coord - offset) * (repeat * 0.5));\n float dist = min(value, min(abs(value - 0.5), 1.0 - value));\n\n vec4 currentColor = mix(evenColor, oddColor, step(0.5, value));\n vec4 color = czm_antialias(evenColor, oddColor, currentColor, dist);\n color = czm_gammaCorrect(color);\n\n material.diffuse = color.rgb;\n material.alpha = color.a;\n\n return material;\n}\n"},22812:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="// Thanks for the contribution Jonas\n// http://29a.ch/2012/7/19/webgl-terrain-rendering-water-fog\n\nuniform sampler2D specularMap;\nuniform sampler2D normalMap;\nuniform vec4 baseWaterColor;\nuniform vec4 blendColor;\nuniform float frequency;\nuniform float animationSpeed;\nuniform float amplitude;\nuniform float specularIntensity;\nuniform float fadeFactor;\n\nczm_material czm_getMaterial(czm_materialInput materialInput)\n{\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n float time = czm_frameNumber * animationSpeed;\n\n // fade is a function of the distance from the fragment and the frequency of the waves\n float fade = max(1.0, (length(materialInput.positionToEyeEC) / 10000000000.0) * frequency * fadeFactor);\n\n float specularMapValue = texture2D(specularMap, materialInput.st).r;\n\n // note: not using directional motion at this time, just set the angle to 0.0;\n vec4 noise = czm_getWaterNoise(normalMap, materialInput.st * frequency, time, 0.0);\n vec3 normalTangentSpace = noise.xyz * vec3(1.0, 1.0, (1.0 / amplitude));\n\n // fade out the normal perturbation as we move further from the water surface\n normalTangentSpace.xy /= fade;\n\n // attempt to fade out the normal perturbation as we approach non water areas (low specular map value)\n normalTangentSpace = mix(vec3(0.0, 0.0, 50.0), normalTangentSpace, specularMapValue);\n\n normalTangentSpace = normalize(normalTangentSpace);\n\n // get ratios for alignment of the new normal vector with a vector perpendicular to the tangent plane\n float tsPerturbationRatio = clamp(dot(normalTangentSpace, vec3(0.0, 0.0, 1.0)), 0.0, 1.0);\n\n // fade out water effect as specular map value decreases\n material.alpha = mix(blendColor.a, baseWaterColor.a, specularMapValue) * specularMapValue;\n\n // base color is a blend of the water and non-water color based on the value from the specular map\n // may need a uniform blend factor to better control this\n material.diffuse = mix(blendColor.rgb, baseWaterColor.rgb, specularMapValue);\n\n // diffuse highlights are based on how perturbed the normal is\n material.diffuse += (0.1 * tsPerturbationRatio);\n\n material.diffuse = material.diffuse;\n\n material.normal = normalize(materialInput.tangentToEyeMatrix * normalTangentSpace);\n\n material.specular = specularIntensity;\n material.shininess = 10.0;\n\n return material;\n}\n"},870614:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="void filterByPassType(vec4 featureColor)\n{\n bool styleTranslucent = (featureColor.a != 1.0);\n // Only render translucent features in the translucent pass (if the style or the original command has translucency).\n if (czm_pass == czm_passTranslucent && !styleTranslucent && !model_commandTranslucent)\n {\n discard;\n }\n // If the current pass is not the translucent pass and the style is not translucent, don't render the feature.\n else if (czm_pass != czm_passTranslucent && styleTranslucent)\n {\n discard;\n }\n}\n\nvoid cpuStylingStage(inout czm_modelMaterial material, SelectedFeature feature)\n{\n vec4 featureColor = feature.color;\n\n if (featureColor.a == 0.0)\n {\n discard;\n }\n\n // If a feature ID vertex attribute is used, the pass type filter is applied in the vertex shader.\n // So, we only apply in in the fragment shader if the feature ID texture is used.\n #ifdef HAS_SELECTED_FEAATURE_ID_TEXTURE\n filterByPassType(featureColor);\n #endif\n\n featureColor = czm_gammaCorrect(featureColor);\n\n float highlight = ceil(model_colorBlend);\n material.diffuse *= mix(featureColor.rgb, vec3(1.0), highlight);\n material.alpha *= featureColor.a;\n}\n"},951782:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="void filterByPassType(inout vec3 positionMC, vec4 featureColor)\n{\n bool styleTranslucent = (featureColor.a != 1.0);\n // Only render translucent features in the translucent pass (if the style or the original command has translucency).\n if (czm_pass == czm_passTranslucent && !styleTranslucent && !model_commandTranslucent)\n {\n positionMC *= 0.0;\n }\n // If the current pass is not the transluceny pass and the style is not translucent, don't rendeer the feature.\n else if (czm_pass != czm_passTranslucent && styleTranslucent)\n {\n positionMC *= 0.0;\n }\n}\n\nvoid cpuStylingStage(inout vec3 positionMC, inout SelectedFeature feature)\n{\n float show = ceil(feature.color.a);\n positionMC *= show;\n\n #ifdef HAS_SELECTED_FEATURE_ID_ATTRIBUTE\n filterByPassType(positionMC, feature.color);\n #endif\n}\n"},608751:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="void customShaderStage(\n inout czm_modelMaterial material,\n ProcessedAttributes attributes,\n FeatureIds featureIds\n) {\n // FragmentInput and initializeInputStruct() are dynamically generated in JS, \n // see CustomShaderPipelineStage.js\n FragmentInput fsInput;\n initializeInputStruct(fsInput, attributes);\n fsInput.featureIds = featureIds;\n fragmentMain(fsInput, material);\n}\n"},379220:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="void customShaderStage(\n inout czm_modelVertexOutput vsOutput, \n inout ProcessedAttributes attributes, \n FeatureIds featureIds\n) {\n // VertexInput and initializeInputStruct() are dynamically generated in JS, \n // see CustomShaderPipelineStage.js\n VertexInput vsInput;\n initializeInputStruct(vsInput, attributes);\n vsInput.featureIds = featureIds;\n vertexMain(vsInput, vsOutput);\n attributes.positionMC = vsOutput.positionMC;\n}\n"},73457:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="void featureIdStage(out FeatureIds featureIds, ProcessedAttributes attributes) {\n initializeFeatureIds(featureIds, attributes);\n}\n"},62687:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="void featureIdStage(out FeatureIds featureIds, ProcessedAttributes attributes) \n{\n initializeFeatureIds(featureIds, attributes);\n setFeatureIdVaryings();\n}\n"},830588:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="void geometryStage(out ProcessedAttributes attributes)\n{\n attributes.positionMC = v_positionMC;\n attributes.positionEC = v_positionEC;\n\n #ifdef COMPUTE_POSITION_WC\n attributes.positionWC = v_positionWC;\n #endif\n\n #ifdef HAS_NORMALS\n // renormalize after interpolation\n attributes.normalEC = normalize(v_normalEC);\n #endif\n\n #ifdef HAS_TANGENTS\n attributes.tangentEC = normalize(v_tangentEC);\n #endif\n\n #ifdef HAS_BITANGENTS\n attributes.bitangentEC = normalize(v_bitangentEC);\n #endif\n\n // Everything else is dynamically generated in GeometryPipelineStage\n setDynamicVaryings(attributes);\n}\n"},430492:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="void geometryStage(inout ProcessedAttributes attributes, mat4 modelView, mat3 normal) \n{\n // Compute positions in different coordinate systems\n vec3 positionMC = attributes.positionMC;\n v_positionMC = positionMC;\n v_positionEC = (modelView * vec4(positionMC, 1.0)).xyz;\n gl_Position = czm_projection * vec4(v_positionEC, 1.0);\n\n // Sometimes the fragment shader needs this (e.g. custom shaders)\n #ifdef COMPUTE_POSITION_WC\n // Note that this is a 32-bit position which may result in jitter on small\n // scales.\n v_positionWC = (czm_model * vec4(positionMC, 1.0)).xyz;\n #endif\n\n #ifdef HAS_NORMALS\n v_normalEC = normal * attributes.normalMC;\n #endif\n\n #ifdef HAS_TANGENTS\n v_tangentEC = normalize(normal * attributes.tangentMC); \n #endif\n\n #ifdef HAS_BITANGENTS\n v_bitangentEC = normalize(normal * attributes.bitangentMC);\n #endif\n\n // All other varyings need to be dynamically generated in\n // GeometryPipelineStage\n setDynamicVaryings(attributes);\n}\n"},771304:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="mat4 getInstancingTransform()\n{\n mat4 instancingTransform;\n\n #ifdef HAS_INSTANCE_MATRICES\n instancingTransform = mat4(\n a_instancingTransformRow0.x, a_instancingTransformRow1.x, a_instancingTransformRow2.x, 0.0, // Column 1\n a_instancingTransformRow0.y, a_instancingTransformRow1.y, a_instancingTransformRow2.y, 0.0, // Column 2\n a_instancingTransformRow0.z, a_instancingTransformRow1.z, a_instancingTransformRow2.z, 0.0, // Column 3\n a_instancingTransformRow0.w, a_instancingTransformRow1.w, a_instancingTransformRow2.w, 1.0 // Column 4\n );\n #else\n vec3 translation = vec3(0.0, 0.0, 0.0);\n vec3 scale = vec3(1.0, 1.0, 1.0);\n \n #ifdef HAS_INSTANCE_TRANSLATION\n translation = a_instanceTranslation;\n #endif\n #ifdef HAS_INSTANCE_SCALE\n scale = a_instanceScale;\n #endif\n\n instancingTransform = mat4(\n scale.x, 0.0, 0.0, 0.0,\n 0.0, scale.y, 0.0, 0.0,\n 0.0, 0.0, scale.z, 0.0,\n translation.x, translation.y, translation.z, 1.0\n ); \n #endif\n\n return instancingTransform;\n}\n"},67301:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="void instancingStage(inout vec3 positionMC) \n{\n mat4 instancingTransform = getInstancingTransform();\n\n positionMC = (instancingTransform * vec4(positionMC, 1.0)).xyz;\n}\n"},835200:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="void legacyInstancingStage(inout vec3 positionMC, out mat4 instanceModelView, out mat3 instanceModelViewInverseTranspose)\n{\n mat4 instancingTransform = getInstancingTransform();\n\n mat4 instanceModel = instancingTransform * u_instance_nodeTransform;\n instanceModelView = u_instance_modifiedModelView;\n instanceModelViewInverseTranspose = mat3(u_instance_modifiedModelView * instanceModel);\n\n positionMC = (instanceModel * vec4(positionMC, 1.0)).xyz;\n}\n"},567909:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="#ifdef LIGHTING_PBR\nvec3 computePbrLighting(czm_modelMaterial inputMaterial)\n{\n czm_pbrParameters pbrParameters;\n pbrParameters.diffuseColor = inputMaterial.diffuse;\n pbrParameters.f0 = inputMaterial.specular;\n pbrParameters.roughness = inputMaterial.roughness;\n \n vec3 lightColorHdr = czm_lightColorHdr;\n\n vec3 color = inputMaterial.diffuse;\n #ifdef HAS_NORMALS\n color = czm_pbrLighting(\n v_positionEC,\n inputMaterial.normalEC,\n czm_lightDirectionEC,\n lightColorHdr,\n pbrParameters\n );\n #endif\n\n color *= inputMaterial.occlusion;\n color += inputMaterial.emissive;\n\n // In HDR mode, the frame buffer is in linear color space. The\n // post-processing stages (see PostProcessStageCollection) will handle\n // tonemapping. However, if HDR is not enabled, we must tonemap else large\n // values may be clamped to 1.0\n #ifndef HDR \n color = czm_acesTonemapping(color);\n #endif \n\n return color;\n}\n#endif\n\nvoid lightingStage(inout czm_modelMaterial material)\n{\n // Even though the lighting will only set the diffuse color,\n // pass all other properties so further stages have access to them.\n vec3 color = vec3(0.0);\n\n #ifdef LIGHTING_PBR\n color = computePbrLighting(material);\n #else // unlit\n color = material.diffuse;\n #endif\n\n // If HDR is not enabled, the frame buffer stores sRGB colors rather than\n // linear colors so the linear value must be converted.\n #ifndef HDR\n color = czm_linearToSrgb(color);\n #endif\n\n material.diffuse = color;\n}\n"},615822:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="// If the style color is white, it implies the feature has not been styled.\nbool isDefaultStyleColor(vec3 color)\n{\n return all(greaterThan(color, vec3(1.0 - czm_epsilon3)));\n}\n\nvec3 blend(vec3 sourceColor, vec3 styleColor, float styleColorBlend)\n{\n vec3 blendColor = mix(sourceColor, styleColor, styleColorBlend);\n vec3 color = isDefaultStyleColor(styleColor.rgb) ? sourceColor : blendColor;\n return color;\n}\n\nvec2 computeTextureTransform(vec2 texCoord, mat3 textureTransform)\n{\n return vec2(textureTransform * vec3(texCoord, 1.0));\n}\n\n#ifdef HAS_NORMALS\nvec3 computeNormal(ProcessedAttributes attributes)\n{\n // Geometry normal. This is already normalized \n vec3 ng = attributes.normalEC;\n\n vec3 normal = ng;\n #ifdef HAS_NORMAL_TEXTURE\n vec2 normalTexCoords = TEXCOORD_NORMAL;\n #ifdef HAS_NORMAL_TEXTURE_TRANSFORM\n normalTexCoords = computeTextureTransform(normalTexCoords, u_normalTextureTransform);\n #endif\n\n // If HAS_BITANGENTS is set, then HAS_TANGENTS is also set\n #ifdef HAS_BITANGENTS\n vec3 t = attributes.tangentEC;\n vec3 b = attributes.bitangentEC;\n mat3 tbn = mat3(t, b, ng);\n vec3 n = texture2D(u_normalTexture, normalTexCoords).rgb;\n normal = normalize(tbn * (2.0 * n - 1.0));\n #elif defined(GL_OES_standard_derivatives)\n // Compute tangents\n vec3 positionEC = attributes.positionEC;\n vec3 pos_dx = dFdx(positionEC);\n vec3 pos_dy = dFdy(positionEC);\n vec3 tex_dx = dFdx(vec3(normalTexCoords,0.0));\n vec3 tex_dy = dFdy(vec3(normalTexCoords,0.0));\n vec3 t = (tex_dy.t * pos_dx - tex_dx.t * pos_dy) / (tex_dx.s * tex_dy.t - tex_dy.s * tex_dx.t);\n t = normalize(t - ng * dot(ng, t));\n vec3 b = normalize(cross(ng, t));\n mat3 tbn = mat3(t, b, ng);\n vec3 n = texture2D(u_normalTexture, normalTexCoords).rgb;\n normal = normalize(tbn * (2.0 * n - 1.0));\n #endif\n #endif\n\n return normal;\n}\n#endif\n\nvoid materialStage(inout czm_modelMaterial material, ProcessedAttributes attributes, SelectedFeature feature)\n{\n\n #ifdef HAS_NORMALS\n material.normalEC = computeNormal(attributes);\n #endif\n\n vec4 baseColorWithAlpha = vec4(1.0);\n // Regardless of whether we use PBR, set a base color\n #ifdef HAS_BASE_COLOR_TEXTURE\n vec2 baseColorTexCoords = TEXCOORD_BASE_COLOR;\n\n #ifdef HAS_BASE_COLOR_TEXTURE_TRANSFORM\n baseColorTexCoords = computeTextureTransform(baseColorTexCoords, u_baseColorTextureTransform);\n #endif\n\n baseColorWithAlpha = czm_srgbToLinear(texture2D(u_baseColorTexture, baseColorTexCoords));\n\n #ifdef HAS_BASE_COLOR_FACTOR\n baseColorWithAlpha *= u_baseColorFactor;\n #endif\n #elif defined(HAS_BASE_COLOR_FACTOR)\n baseColorWithAlpha = u_baseColorFactor;\n #endif\n\n #ifdef HAS_COLOR_0\n vec4 color = attributes.color_0;\n // .pnts files store colors in the sRGB color space\n #ifdef HAS_SRGB_COLOR\n color = czm_srgbToLinear(color);\n #endif\n baseColorWithAlpha *= color;\n #endif\n\n material.diffuse = baseColorWithAlpha.rgb;\n material.alpha = baseColorWithAlpha.a;\n\n #ifdef USE_CPU_STYLING\n material.diffuse = blend(material.diffuse, feature.color.rgb, model_colorBlend);\n #endif\n\n #ifdef HAS_OCCLUSION_TEXTURE\n vec2 occlusionTexCoords = TEXCOORD_OCCLUSION;\n #ifdef HAS_OCCLUSION_TEXTURE_TRANSFORM\n occlusionTexCoords = computeTextureTransform(occlusionTexCoords, u_occlusionTextureTransform);\n #endif\n material.occlusion = texture2D(u_occlusionTexture, occlusionTexCoords).r;\n #endif\n\n #ifdef HAS_EMISSIVE_TEXTURE\n vec2 emissiveTexCoords = TEXCOORD_EMISSIVE;\n #ifdef HAS_EMISSIVE_TEXTURE_TRANSFORM\n emissiveTexCoords = computeTextureTransform(emissiveTexCoords, u_emissiveTextureTransform);\n #endif\n\n vec3 emissive = czm_srgbToLinear(texture2D(u_emissiveTexture, emissiveTexCoords).rgb);\n #ifdef HAS_EMISSIVE_FACTOR\n emissive *= u_emissiveFactor;\n #endif\n material.emissive = emissive;\n #elif defined(HAS_EMISSIVE_FACTOR)\n material.emissive = u_emissiveFactor;\n #endif\n\n #if defined(LIGHTING_PBR) && defined(USE_SPECULAR_GLOSSINESS)\n #ifdef HAS_SPECULAR_GLOSSINESS_TEXTURE\n vec2 specularGlossinessTexCoords = TEXCOORD_SPECULAR_GLOSSINESS;\n #ifdef HAS_SPECULAR_GLOSSINESS_TEXTURE_TRANSFORM\n specularGlossinessTexCoords = computeTextureTransform(specularGlossinessTexCoords, u_specularGlossinessTextureTransform);\n #endif\n\n vec4 specularGlossiness = czm_srgbToLinear(texture2D(u_specularGlossinessTexture, specularGlossinessTexCoords));\n vec3 specular = specularGlossiness.rgb;\n float glossiness = specularGlossiness.a;\n #ifdef HAS_SPECULAR_FACTOR\n specular *= u_specularFactor;\n #endif\n\n #ifdef HAS_GLOSSINESS_FACTOR\n glossiness *= u_glossinessFactor;\n #endif\n #else\n #ifdef HAS_SPECULAR_FACTOR\n vec3 specular = clamp(u_specularFactor, vec3(0.0), vec3(1.0));\n #else\n vec3 specular = vec3(1.0);\n #endif\n\n #ifdef HAS_GLOSSINESS_FACTOR\n float glossiness = clamp(u_glossinessFactor, 0.0, 1.0);\n #else\n float glossiness = 1.0;\n #endif\n #endif\n\n #ifdef HAS_DIFFUSE_TEXTURE\n vec2 diffuseTexCoords = TEXCOORD_DIFFUSE;\n #ifdef HAS_DIFFUSE_TEXTURE_TRANSFORM\n diffuseTexCoords = computeTextureTransform(diffuseTexCoords, u_diffuseTextureTransform);\n #endif\n\n vec4 diffuse = czm_srgbToLinear(texture2D(u_diffuseTexture, diffuseTexCoords));\n #ifdef HAS_DIFFUSE_FACTOR\n diffuse *= u_diffuseFactor;\n #endif\n #elif defined(HAS_DIFFUSE_FACTOR)\n vec4 diffuse = clamp(u_diffuseFactor, vec4(0.0), vec4(1.0));\n #else\n vec4 diffuse = vec4(1.0);\n #endif\n czm_pbrParameters parameters = czm_pbrSpecularGlossinessMaterial(\n diffuse.rgb,\n specular,\n glossiness\n );\n material.diffuse = parameters.diffuseColor;\n // the specular glossiness extension's alpha overrides anything set\n // by the base material.\n material.alpha = diffuse.a;\n material.specular = parameters.f0;\n material.roughness = parameters.roughness;\n #elif defined(LIGHTING_PBR)\n #ifdef HAS_METALLIC_ROUGHNESS_TEXTURE\n vec2 metallicRoughnessTexCoords = TEXCOORD_METALLIC_ROUGHNESS;\n #ifdef HAS_METALLIC_ROUGHNESS_TEXTURE_TRANSFORM\n metallicRoughnessTexCoords = computeTextureTransform(metallicRoughnessTexCoords, u_metallicRoughnessTextureTransform);\n #endif\n\n vec3 metallicRoughness = texture2D(u_metallicRoughnessTexture, metallicRoughnessTexCoords).rgb;\n float metalness = clamp(metallicRoughness.b, 0.0, 1.0);\n float roughness = clamp(metallicRoughness.g, 0.04, 1.0);\n #ifdef HAS_METALLIC_FACTOR\n metalness *= u_metallicFactor;\n #endif\n\n #ifdef HAS_ROUGHNESS_FACTOR\n roughness *= u_roughnessFactor;\n #endif\n #else\n #ifdef HAS_METALLIC_FACTOR\n float metalness = clamp(u_metallicFactor, 0.0, 1.0);\n #else\n float metalness = 1.0;\n #endif\n\n #ifdef HAS_ROUGHNESS_FACTOR\n float roughness = clamp(u_roughnessFactor, 0.04, 1.0);\n #else\n float roughness = 1.0;\n #endif\n #endif\n czm_pbrParameters parameters = czm_pbrMetallicRoughnessMaterial(\n material.diffuse,\n metalness,\n roughness\n );\n material.diffuse = parameters.diffuseColor;\n material.specular = parameters.f0;\n material.roughness = parameters.roughness;\n #endif\n}\n"},473279:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="void modelColorStage(inout czm_modelMaterial material)\n{\n material.diffuse = mix(material.diffuse, model_color.rgb, model_colorBlend);\n float highlight = ceil(model_colorBlend);\n material.diffuse *= mix(model_color.rgb, vec3(1.0), highlight);\n material.alpha *= model_color.a;\n}"},409683:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="#if defined(HAS_NORMALS) && !defined(HAS_TANGENTS) && !defined(LIGHTING_UNLIT)\n #ifdef GL_OES_standard_derivatives\n #extension GL_OES_standard_derivatives : enable\n #endif\n#endif\n\nczm_modelMaterial defaultModelMaterial()\n{\n czm_modelMaterial material;\n material.diffuse = vec3(1.0);\n material.specular = vec3(0.04); // dielectric (non-metal)\n material.roughness = 0.0;\n material.occlusion = 1.0;\n material.normalEC = vec3(0.0, 0.0, 1.0);\n material.emissive = vec3(0.0);\n material.alpha = 1.0;\n return material;\n}\n\nvec4 handleAlpha(vec3 color, float alpha)\n{\n #ifdef ALPHA_MODE_MASK\n if (alpha < u_alphaCutoff) {\n discard;\n }\n return vec4(color, 1.0);\n #elif defined(ALPHA_MODE_BLEND)\n return vec4(color, alpha);\n #else // OPAQUE\n return vec4(color, 1.0);\n #endif\n}\n\nSelectedFeature selectedFeature;\n\nvoid main() \n{\n czm_modelMaterial material = defaultModelMaterial();\n\n ProcessedAttributes attributes;\n geometryStage(attributes);\n\n FeatureIds featureIds;\n featureIdStage(featureIds, attributes);\n\n #ifdef HAS_SELECTED_FEATURE_ID\n selectedFeatureIdStage(selectedFeature, featureIds);\n #endif\n\n #ifndef CUSTOM_SHADER_REPLACE_MATERIAL\n materialStage(material, attributes, selectedFeature);\n #endif\n\n #ifdef HAS_CUSTOM_FRAGMENT_SHADER\n customShaderStage(material, attributes, featureIds);\n #endif\n\n lightingStage(material);\n\n #ifdef HAS_SELECTED_FEATURE_ID\n cpuStylingStage(material, selectedFeature);\n #endif\n \n #ifdef HAS_MODEL_COLOR\n modelColorStage(material);\n #endif \n\n vec4 color = handleAlpha(material.diffuse, material.alpha);\n\n gl_FragColor = color;\n}\n"},661025:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="precision highp float;\n\nczm_modelVertexOutput defaultVertexOutput(vec3 positionMC) {\n czm_modelVertexOutput vsOutput;\n vsOutput.positionMC = positionMC;\n vsOutput.pointSize = 1.0;\n return vsOutput;\n}\n\nvoid main() \n{\n // Initialize the attributes struct with all\n // attributes except quantized ones.\n ProcessedAttributes attributes;\n initializeAttributes(attributes);\n\n // Dequantize the quantized ones and add them to the\n // attributes struct.\n #ifdef USE_DEQUANTIZATION\n dequantizationStage(attributes);\n #endif\n\n\n FeatureIds featureIds;\n featureIdStage(featureIds, attributes);\n\n #ifdef HAS_SELECTED_FEATURE_ID\n SelectedFeature feature;\n selectedFeatureIdStage(feature, featureIds);\n cpuStylingStage(attributes.positionMC, feature);\n #endif\n\n mat4 modelView = czm_modelView;\n mat3 normal = czm_normal;\n\n // Update the position for this instance in place\n #ifdef HAS_INSTANCING\n\n // The legacy instance stage is used when rendering I3DM models that \n // encode instances transforms in world space, as opposed to glTF models\n // that use EXT_mesh_gpu_instancing, where instance transforms are encoded\n // in object space.\n #ifdef USE_LEGACY_INSTANCING\n mat4 instanceModelView;\n mat3 instanceModelViewInverseTranspose;\n \n legacyInstancingStage(attributes.positionMC, instanceModelView, instanceModelViewInverseTranspose);\n\n modelView = instanceModelView;\n normal = instanceModelViewInverseTranspose;\n #else\n instancingStage(attributes.positionMC);\n #endif\n\n #ifdef USE_PICKING\n v_pickColor = a_pickColor;\n #endif\n\n #endif\n\n #ifdef HAS_CUSTOM_VERTEX_SHADER\n czm_modelVertexOutput vsOutput = defaultVertexOutput(attributes.positionMC);\n customShaderStage(vsOutput, attributes, featureIds);\n #endif\n\n // Compute the final position in each coordinate system needed.\n // This also sets gl_Position.\n geometryStage(attributes, modelView, normal); \n\n #ifdef PRIMITIVE_TYPE_POINTS\n #ifdef HAS_CUSTOM_VERTEX_SHADER\n gl_PointSize = vsOutput.pointSize;\n #elif defined(USE_POINT_CLOUD_ATTENUATION)\n gl_PointSize = pointCloudAttenuationStage(v_positionEC);\n #else\n gl_PointSize = 1.0;\n #endif\n #endif\n}\n"},742543:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="float pointCloudAttenuationStage(vec3 positionEC) {\n // Variables are packed into a single vector to minimize gl.uniformXXX() calls\n float pointSize = model_pointCloudAttenuation.x;\n float geometricError = model_pointCloudAttenuation.y;\n float depthMultiplier = model_pointCloudAttenuation.z;\n float depth = -positionEC.z;\n return min((geometricError / depth) * depthMultiplier, pointSize);\n}\n"},98012:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="vec2 computeSt(float featureId)\n{\n float stepX = model_textureStep.x;\n float centerX = model_textureStep.y;\n\n #ifdef MULTILINE_BATCH_TEXTURE\n float stepY = model_textureStep.z;\n float centerY = model_textureStep.w;\n\n float xId = mod(featureId, model_textureDimensions.x); \n float yId = floor(featureId / model_textureDimensions.x);\n \n return vec2(centerX + (xId * stepX), centerY + (yId * stepY));\n #else\n return vec2(centerX + (featureId * stepX), 0.5);\n #endif\n}\n\nvoid selectedFeatureIdStage(out SelectedFeature feature, FeatureIds featureIds)\n{ \n float featureId = featureIds.SELECTED_FEATURE_ID;\n\n if (featureId < model_featuresLength)\n {\n vec2 featureSt = computeSt(featureId);\n\n feature.id = int(featureId);\n feature.st = featureSt;\n feature.color = texture2D(model_batchTexture, featureSt);\n }\n // Floating point comparisons can be unreliable in GLSL, so we\n // increment the feature ID to make sure it's always greater\n // then the model_featuresLength - a condition we check for in the\n // pick ID, to avoid sampling the pick texture if the feature ID is\n // greater than the number of features.\n else\n {\n feature.id = int(model_featuresLength) + 1;\n feature.st = vec2(0.0);\n feature.color = vec4(1.0);\n }\n}\n"},563431:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="varying vec2 v_textureCoordinates;\n\nuniform float originalSize;\nuniform sampler2D texture0;\nuniform sampler2D texture1;\nuniform sampler2D texture2;\nuniform sampler2D texture3;\nuniform sampler2D texture4;\nuniform sampler2D texture5;\n\nconst float yMipLevel1 = 1.0 - (1.0 / pow(2.0, 1.0));\nconst float yMipLevel2 = 1.0 - (1.0 / pow(2.0, 2.0));\nconst float yMipLevel3 = 1.0 - (1.0 / pow(2.0, 3.0));\nconst float yMipLevel4 = 1.0 - (1.0 / pow(2.0, 4.0));\n\nvoid main()\n{\n vec2 uv = v_textureCoordinates;\n vec2 textureSize = vec2(originalSize * 1.5 + 2.0, originalSize);\n vec2 pixel = 1.0 / textureSize;\n\n float mipLevel = 0.0;\n\n if (uv.x - pixel.x > (textureSize.y / textureSize.x))\n {\n mipLevel = 1.0;\n if (uv.y - pixel.y > yMipLevel1)\n {\n mipLevel = 2.0;\n if (uv.y - pixel.y * 3.0 > yMipLevel2)\n {\n mipLevel = 3.0;\n if (uv.y - pixel.y * 5.0 > yMipLevel3)\n {\n mipLevel = 4.0;\n if (uv.y - pixel.y * 7.0 > yMipLevel4)\n {\n mipLevel = 5.0;\n }\n }\n }\n }\n }\n\n if (mipLevel > 0.0)\n {\n float scale = pow(2.0, mipLevel);\n\n uv.y -= (pixel.y * (mipLevel - 1.0) * 2.0);\n uv.x *= ((textureSize.x - 2.0) / textureSize.y);\n\n uv.x -= 1.0 + pixel.x;\n uv.y -= (1.0 - (1.0 / pow(2.0, mipLevel - 1.0)));\n uv *= scale;\n }\n else\n {\n uv.x *= (textureSize.x / textureSize.y);\n }\n\n if(mipLevel == 0.0)\n {\n gl_FragColor = texture2D(texture0, uv);\n }\n else if(mipLevel == 1.0)\n {\n gl_FragColor = texture2D(texture1, uv);\n }\n else if(mipLevel == 2.0)\n {\n gl_FragColor = texture2D(texture2, uv);\n }\n else if(mipLevel == 3.0)\n {\n gl_FragColor = texture2D(texture3, uv);\n }\n else if(mipLevel == 4.0)\n {\n gl_FragColor = texture2D(texture4, uv);\n }\n else if(mipLevel == 5.0)\n {\n gl_FragColor = texture2D(texture5, uv);\n }\n else\n {\n gl_FragColor = vec4(0.0);\n }\n}\n"},63130:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="varying vec3 v_cubeMapCoordinates;\nuniform samplerCube cubeMap;\n\nvoid main()\n{\n vec4 rgba = textureCube(cubeMap, v_cubeMapCoordinates);\n #ifdef RGBA_NORMALIZED\n gl_FragColor = vec4(rgba.rgb, 1.0);\n #else\n float m = rgba.a * 16.0;\n vec3 r = rgba.rgb * m;\n gl_FragColor = vec4(r * r, 1.0);\n #endif\n}\n"},282758:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="attribute vec4 position;\nattribute vec3 cubeMapCoordinates;\n\nvarying vec3 v_cubeMapCoordinates;\n\nvoid main()\n{\n gl_Position = position;\n v_cubeMapCoordinates = cubeMapCoordinates;\n}\n"},779975:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="varying vec4 v_color;\nvarying vec4 v_outlineColor;\nvarying float v_innerPercent;\nvarying float v_pixelDistance;\nvarying vec4 v_pickColor;\n\nvoid main()\n{\n // The distance in UV space from this fragment to the center of the point, at most 0.5.\n float distanceToCenter = length(gl_PointCoord - vec2(0.5));\n // The max distance stops one pixel shy of the edge to leave space for anti-aliasing.\n float maxDistance = max(0.0, 0.5 - v_pixelDistance);\n float wholeAlpha = 1.0 - smoothstep(maxDistance, 0.5, distanceToCenter);\n float innerAlpha = 1.0 - smoothstep(maxDistance * v_innerPercent, 0.5 * v_innerPercent, distanceToCenter);\n\n vec4 color = mix(v_outlineColor, v_color, innerAlpha);\n color.a *= wholeAlpha;\n\n// Fully transparent parts of the billboard are not pickable.\n#if !defined(OPAQUE) && !defined(TRANSLUCENT)\n if (color.a < 0.005) // matches 0/255 and 1/255\n {\n discard;\n }\n#else\n// The billboard is rendered twice. The opaque pass discards translucent fragments\n// and the translucent pass discards opaque fragments.\n#ifdef OPAQUE\n if (color.a < 0.995) // matches < 254/255\n {\n discard;\n }\n#else\n if (color.a >= 0.995) // matches 254/255 and 255/255\n {\n discard;\n }\n#endif\n#endif\n\n gl_FragColor = czm_gammaCorrect(color);\n czm_writeLogDepth();\n}\n"},364527:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o='uniform float u_maxTotalPointSize;\n\nattribute vec4 positionHighAndSize;\nattribute vec4 positionLowAndOutline;\nattribute vec4 compressedAttribute0; // color, outlineColor, pick color\nattribute vec4 compressedAttribute1; // show, translucency by distance, some free space\nattribute vec4 scaleByDistance; // near, nearScale, far, farScale\nattribute vec3 distanceDisplayConditionAndDisableDepth; // near, far, disableDepthTestDistance\n\nvarying vec4 v_color;\nvarying vec4 v_outlineColor;\nvarying float v_innerPercent;\nvarying float v_pixelDistance;\nvarying vec4 v_pickColor;\n\nconst float SHIFT_LEFT8 = 256.0;\nconst float SHIFT_RIGHT8 = 1.0 / 256.0;\n\nvoid main()\n{\n // Modifying this shader may also require modifications to PointPrimitive._computeScreenSpacePosition\n\n // unpack attributes\n vec3 positionHigh = positionHighAndSize.xyz;\n vec3 positionLow = positionLowAndOutline.xyz;\n float outlineWidthBothSides = 2.0 * positionLowAndOutline.w;\n float totalSize = positionHighAndSize.w + outlineWidthBothSides;\n float outlinePercent = outlineWidthBothSides / totalSize;\n // Scale in response to browser-zoom.\n totalSize *= czm_pixelRatio;\n // Add padding for anti-aliasing on both sides.\n totalSize += 3.0;\n\n float temp = compressedAttribute1.x * SHIFT_RIGHT8;\n float show = floor(temp);\n\n#ifdef EYE_DISTANCE_TRANSLUCENCY\n vec4 translucencyByDistance;\n translucencyByDistance.x = compressedAttribute1.z;\n translucencyByDistance.z = compressedAttribute1.w;\n\n translucencyByDistance.y = ((temp - floor(temp)) * SHIFT_LEFT8) / 255.0;\n\n temp = compressedAttribute1.y * SHIFT_RIGHT8;\n translucencyByDistance.w = ((temp - floor(temp)) * SHIFT_LEFT8) / 255.0;\n#endif\n\n ///////////////////////////////////////////////////////////////////////////\n\n vec4 color;\n vec4 outlineColor;\n vec4 pickColor;\n\n // compressedAttribute0.z => pickColor.rgb\n\n temp = compressedAttribute0.z * SHIFT_RIGHT8;\n pickColor.b = (temp - floor(temp)) * SHIFT_LEFT8;\n temp = floor(temp) * SHIFT_RIGHT8;\n pickColor.g = (temp - floor(temp)) * SHIFT_LEFT8;\n pickColor.r = floor(temp);\n\n // compressedAttribute0.x => color.rgb\n\n temp = compressedAttribute0.x * SHIFT_RIGHT8;\n color.b = (temp - floor(temp)) * SHIFT_LEFT8;\n temp = floor(temp) * SHIFT_RIGHT8;\n color.g = (temp - floor(temp)) * SHIFT_LEFT8;\n color.r = floor(temp);\n\n // compressedAttribute0.y => outlineColor.rgb\n\n temp = compressedAttribute0.y * SHIFT_RIGHT8;\n outlineColor.b = (temp - floor(temp)) * SHIFT_LEFT8;\n temp = floor(temp) * SHIFT_RIGHT8;\n outlineColor.g = (temp - floor(temp)) * SHIFT_LEFT8;\n outlineColor.r = floor(temp);\n\n // compressedAttribute0.w => color.a, outlineColor.a, pickColor.a\n\n temp = compressedAttribute0.w * SHIFT_RIGHT8;\n pickColor.a = (temp - floor(temp)) * SHIFT_LEFT8;\n pickColor = pickColor / 255.0;\n\n temp = floor(temp) * SHIFT_RIGHT8;\n outlineColor.a = (temp - floor(temp)) * SHIFT_LEFT8;\n outlineColor /= 255.0;\n color.a = floor(temp);\n color /= 255.0;\n\n ///////////////////////////////////////////////////////////////////////////\n\n vec4 p = czm_translateRelativeToEye(positionHigh, positionLow);\n vec4 positionEC = czm_modelViewRelativeToEye * p;\n\n ///////////////////////////////////////////////////////////////////////////\n\n#if defined(EYE_DISTANCE_SCALING) || defined(EYE_DISTANCE_TRANSLUCENCY) || defined(DISTANCE_DISPLAY_CONDITION) || defined(DISABLE_DEPTH_DISTANCE)\n float lengthSq;\n if (czm_sceneMode == czm_sceneMode2D)\n {\n // 2D camera distance is a special case\n // treat all billboards as flattened to the z=0.0 plane\n lengthSq = czm_eyeHeight2D.y;\n }\n else\n {\n lengthSq = dot(positionEC.xyz, positionEC.xyz);\n }\n#endif\n\n#ifdef EYE_DISTANCE_SCALING\n totalSize *= czm_nearFarScalar(scaleByDistance, lengthSq);\n#endif\n // Clamp to max point size.\n totalSize = min(totalSize, u_maxTotalPointSize);\n // If size is too small, push vertex behind near plane for clipping.\n // Note that context.minimumAliasedPointSize "will be at most 1.0".\n if (totalSize < 1.0)\n {\n positionEC.xyz = vec3(0.0);\n totalSize = 1.0;\n }\n\n float translucency = 1.0;\n#ifdef EYE_DISTANCE_TRANSLUCENCY\n translucency = czm_nearFarScalar(translucencyByDistance, lengthSq);\n // push vertex behind near plane for clipping\n if (translucency < 0.004)\n {\n positionEC.xyz = vec3(0.0);\n }\n#endif\n\n#ifdef DISTANCE_DISPLAY_CONDITION\n float nearSq = distanceDisplayConditionAndDisableDepth.x;\n float farSq = distanceDisplayConditionAndDisableDepth.y;\n if (lengthSq < nearSq || lengthSq > farSq) {\n // push vertex behind camera to force it to be clipped\n positionEC.xyz = vec3(0.0, 0.0, 1.0);\n }\n#endif\n\n gl_Position = czm_projection * positionEC;\n czm_vertexLogDepth();\n\n#ifdef DISABLE_DEPTH_DISTANCE\n float disableDepthTestDistance = distanceDisplayConditionAndDisableDepth.z;\n if (disableDepthTestDistance == 0.0 && czm_minimumDisableDepthTestDistance != 0.0)\n {\n disableDepthTestDistance = czm_minimumDisableDepthTestDistance;\n }\n\n if (disableDepthTestDistance != 0.0)\n {\n // Don\'t try to "multiply both sides" by w. Greater/less-than comparisons won\'t work for negative values of w.\n float zclip = gl_Position.z / gl_Position.w;\n bool clipped = (zclip < -1.0 || zclip > 1.0);\n if (!clipped && (disableDepthTestDistance < 0.0 || (lengthSq > 0.0 && lengthSq < disableDepthTestDistance)))\n {\n // Position z on the near plane.\n gl_Position.z = -gl_Position.w;\n#ifdef LOG_DEPTH\n czm_vertexLogDepth(vec4(czm_currentFrustum.x));\n#endif\n }\n }\n#endif\n\n v_color = color;\n v_color.a *= translucency * show;\n v_outlineColor = outlineColor;\n v_outlineColor.a *= translucency * show;\n\n v_innerPercent = 1.0 - outlinePercent;\n v_pixelDistance = 2.0 / totalSize;\n gl_PointSize = totalSize * show;\n gl_Position *= show;\n\n v_pickColor = pickColor;\n}\n'},648298:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="void clipLineSegmentToNearPlane(\n vec3 p0,\n vec3 p1,\n out vec4 positionWC,\n out bool clipped,\n out bool culledByNearPlane,\n out vec4 clippedPositionEC)\n{\n culledByNearPlane = false;\n clipped = false;\n\n vec3 p0ToP1 = p1 - p0;\n float magnitude = length(p0ToP1);\n vec3 direction = normalize(p0ToP1);\n\n // Distance that p0 is behind the near plane. Negative means p0 is\n // in front of the near plane.\n float endPoint0Distance = czm_currentFrustum.x + p0.z;\n\n // Camera looks down -Z.\n // When moving a point along +Z: LESS VISIBLE\n // * Points in front of the camera move closer to the camera.\n // * Points behind the camrea move farther away from the camera.\n // When moving a point along -Z: MORE VISIBLE\n // * Points in front of the camera move farther away from the camera.\n // * Points behind the camera move closer to the camera.\n\n // Positive denominator: -Z, becoming more visible\n // Negative denominator: +Z, becoming less visible\n // Nearly zero: parallel to near plane\n float denominator = -direction.z;\n\n if (endPoint0Distance > 0.0 && abs(denominator) < czm_epsilon7)\n {\n // p0 is behind the near plane and the line to p1 is nearly parallel to\n // the near plane, so cull the segment completely.\n culledByNearPlane = true;\n }\n else if (endPoint0Distance > 0.0)\n {\n // p0 is behind the near plane, and the line to p1 is moving distinctly\n // toward or away from it.\n\n // t = (-plane distance - dot(plane normal, ray origin)) / dot(plane normal, ray direction)\n float t = endPoint0Distance / denominator;\n if (t < 0.0 || t > magnitude)\n {\n // Near plane intersection is not between the two points.\n // We already confirmed p0 is behind the naer plane, so now\n // we know the entire segment is behind it.\n culledByNearPlane = true;\n }\n else\n {\n // Segment crosses the near plane, update p0 to lie exactly on it.\n p0 = p0 + t * direction;\n\n // Numerical noise might put us a bit on the wrong side of the near plane.\n // Don't let that happen.\n p0.z = min(p0.z, -czm_currentFrustum.x);\n\n clipped = true;\n }\n }\n\n clippedPositionEC = vec4(p0, 1.0);\n positionWC = czm_eyeToWindowCoordinates(clippedPositionEC);\n}\n\nvec4 getPolylineWindowCoordinatesEC(vec4 positionEC, vec4 prevEC, vec4 nextEC, float expandDirection, float width, bool usePrevious, out float angle)\n{\n // expandDirection +1 is to the _left_ when looking from positionEC toward nextEC.\n\n#ifdef POLYLINE_DASH\n // Compute the window coordinates of the points.\n vec4 positionWindow = czm_eyeToWindowCoordinates(positionEC);\n vec4 previousWindow = czm_eyeToWindowCoordinates(prevEC);\n vec4 nextWindow = czm_eyeToWindowCoordinates(nextEC);\n\n // Determine the relative screen space direction of the line.\n vec2 lineDir;\n if (usePrevious) {\n lineDir = normalize(positionWindow.xy - previousWindow.xy);\n }\n else {\n lineDir = normalize(nextWindow.xy - positionWindow.xy);\n }\n angle = atan(lineDir.x, lineDir.y) - 1.570796327; // precomputed atan(1,0)\n\n // Quantize the angle so it doesn't change rapidly between segments.\n angle = floor(angle / czm_piOverFour + 0.5) * czm_piOverFour;\n#endif\n\n vec4 clippedPrevWC, clippedPrevEC;\n bool prevSegmentClipped, prevSegmentCulled;\n clipLineSegmentToNearPlane(prevEC.xyz, positionEC.xyz, clippedPrevWC, prevSegmentClipped, prevSegmentCulled, clippedPrevEC);\n\n vec4 clippedNextWC, clippedNextEC;\n bool nextSegmentClipped, nextSegmentCulled;\n clipLineSegmentToNearPlane(nextEC.xyz, positionEC.xyz, clippedNextWC, nextSegmentClipped, nextSegmentCulled, clippedNextEC);\n\n bool segmentClipped, segmentCulled;\n vec4 clippedPositionWC, clippedPositionEC;\n clipLineSegmentToNearPlane(positionEC.xyz, usePrevious ? prevEC.xyz : nextEC.xyz, clippedPositionWC, segmentClipped, segmentCulled, clippedPositionEC);\n\n if (segmentCulled)\n {\n return vec4(0.0, 0.0, 0.0, 1.0);\n }\n\n vec2 directionToPrevWC = normalize(clippedPrevWC.xy - clippedPositionWC.xy);\n vec2 directionToNextWC = normalize(clippedNextWC.xy - clippedPositionWC.xy);\n\n // If a segment was culled, we can't use the corresponding direction\n // computed above. We should never see both of these be true without\n // `segmentCulled` above also being true.\n if (prevSegmentCulled)\n {\n directionToPrevWC = -directionToNextWC;\n }\n else if (nextSegmentCulled)\n {\n directionToNextWC = -directionToPrevWC;\n }\n\n vec2 thisSegmentForwardWC, otherSegmentForwardWC;\n if (usePrevious)\n {\n thisSegmentForwardWC = -directionToPrevWC;\n otherSegmentForwardWC = directionToNextWC;\n }\n else\n {\n thisSegmentForwardWC = directionToNextWC;\n otherSegmentForwardWC = -directionToPrevWC;\n }\n\n vec2 thisSegmentLeftWC = vec2(-thisSegmentForwardWC.y, thisSegmentForwardWC.x);\n\n vec2 leftWC = thisSegmentLeftWC;\n float expandWidth = width * 0.5;\n\n // When lines are split at the anti-meridian, the position may be at the\n // same location as the next or previous position, and we need to handle\n // that to avoid producing NaNs.\n if (!czm_equalsEpsilon(prevEC.xyz - positionEC.xyz, vec3(0.0), czm_epsilon1) && !czm_equalsEpsilon(nextEC.xyz - positionEC.xyz, vec3(0.0), czm_epsilon1))\n {\n vec2 otherSegmentLeftWC = vec2(-otherSegmentForwardWC.y, otherSegmentForwardWC.x);\n\n vec2 leftSumWC = thisSegmentLeftWC + otherSegmentLeftWC;\n float leftSumLength = length(leftSumWC);\n leftWC = leftSumLength < czm_epsilon6 ? thisSegmentLeftWC : (leftSumWC / leftSumLength);\n\n // The sine of the angle between the two vectors is given by the formula\n // |a x b| = |a||b|sin(theta)\n // which is\n // float sinAngle = length(cross(vec3(leftWC, 0.0), vec3(-thisSegmentForwardWC, 0.0)));\n // Because the z components of both vectors are zero, the x and y coordinate will be zero.\n // Therefore, the sine of the angle is just the z component of the cross product.\n vec2 u = -thisSegmentForwardWC;\n vec2 v = leftWC;\n float sinAngle = abs(u.x * v.y - u.y * v.x);\n expandWidth = clamp(expandWidth / sinAngle, 0.0, width * 2.0);\n }\n\n vec2 offset = leftWC * expandDirection * expandWidth * czm_pixelRatio;\n return vec4(clippedPositionWC.xy + offset, -clippedPositionWC.z, 1.0) * (czm_projection * clippedPositionEC).w;\n}\n\nvec4 getPolylineWindowCoordinates(vec4 position, vec4 previous, vec4 next, float expandDirection, float width, bool usePrevious, out float angle)\n{\n vec4 positionEC = czm_modelViewRelativeToEye * position;\n vec4 prevEC = czm_modelViewRelativeToEye * previous;\n vec4 nextEC = czm_modelViewRelativeToEye * next;\n return getPolylineWindowCoordinatesEC(positionEC, prevEC, nextEC, expandDirection, width, usePrevious, angle);\n}\n"},782223:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="#ifdef VECTOR_TILE\nuniform vec4 u_highlightColor;\n#endif\n\nvarying vec2 v_st;\n\nvoid main()\n{\n czm_materialInput materialInput;\n\n vec2 st = v_st;\n st.t = czm_readNonPerspective(st.t, gl_FragCoord.w);\n\n materialInput.s = st.s;\n materialInput.st = st;\n materialInput.str = vec3(st, 0.0);\n\n czm_material material = czm_getMaterial(materialInput);\n gl_FragColor = vec4(material.diffuse + material.emission, material.alpha);\n#ifdef VECTOR_TILE\n gl_FragColor *= u_highlightColor;\n#endif\n\n czm_writeLogDepth();\n}\n"},452529:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o='#ifdef GL_EXT_frag_depth\n#extension GL_EXT_frag_depth : enable\n#endif\n\nvarying vec4 v_startPlaneNormalEcAndHalfWidth;\nvarying vec4 v_endPlaneNormalEcAndBatchId;\nvarying vec4 v_rightPlaneEC; // Technically can compute distance for this here\nvarying vec4 v_endEcAndStartEcX;\nvarying vec4 v_texcoordNormalizationAndStartEcYZ;\n\n#ifdef PER_INSTANCE_COLOR\nvarying vec4 v_color;\n#endif\n\nvoid main(void)\n{\n float logDepthOrDepth = czm_branchFreeTernary(czm_sceneMode == czm_sceneMode2D, gl_FragCoord.z, czm_unpackDepth(texture2D(czm_globeDepthTexture, gl_FragCoord.xy / czm_viewport.zw)));\n vec3 ecStart = vec3(v_endEcAndStartEcX.w, v_texcoordNormalizationAndStartEcYZ.zw);\n\n // Discard for sky\n if (logDepthOrDepth == 0.0) {\n#ifdef DEBUG_SHOW_VOLUME\n gl_FragColor = vec4(1.0, 0.0, 0.0, 0.5);\n return;\n#else // DEBUG_SHOW_VOLUME\n discard;\n#endif // DEBUG_SHOW_VOLUME\n }\n\n vec4 eyeCoordinate = czm_windowToEyeCoordinates(gl_FragCoord.xy, logDepthOrDepth);\n eyeCoordinate /= eyeCoordinate.w;\n\n float halfMaxWidth = v_startPlaneNormalEcAndHalfWidth.w * czm_metersPerPixel(eyeCoordinate);\n // Check distance of the eye coordinate against the right-facing plane\n float widthwiseDistance = czm_planeDistance(v_rightPlaneEC, eyeCoordinate.xyz);\n\n // Check eye coordinate against the mitering planes\n float distanceFromStart = czm_planeDistance(v_startPlaneNormalEcAndHalfWidth.xyz, -dot(ecStart, v_startPlaneNormalEcAndHalfWidth.xyz), eyeCoordinate.xyz);\n float distanceFromEnd = czm_planeDistance(v_endPlaneNormalEcAndBatchId.xyz, -dot(v_endEcAndStartEcX.xyz, v_endPlaneNormalEcAndBatchId.xyz), eyeCoordinate.xyz);\n\n if (abs(widthwiseDistance) > halfMaxWidth || distanceFromStart < 0.0 || distanceFromEnd < 0.0) {\n#ifdef DEBUG_SHOW_VOLUME\n gl_FragColor = vec4(1.0, 0.0, 0.0, 0.5);\n return;\n#else // DEBUG_SHOW_VOLUME\n discard;\n#endif // DEBUG_SHOW_VOLUME\n }\n\n // Check distance of the eye coordinate against start and end planes with normals in the right plane.\n // For computing unskewed lengthwise texture coordinate.\n // Can also be used for clipping extremely pointy miters, but in practice unnecessary because of miter breaking.\n\n // aligned plane: cross the right plane normal with miter plane normal, then cross the result with right again to point it more "forward"\n vec3 alignedPlaneNormal;\n\n // start aligned plane\n alignedPlaneNormal = cross(v_rightPlaneEC.xyz, v_startPlaneNormalEcAndHalfWidth.xyz);\n alignedPlaneNormal = normalize(cross(alignedPlaneNormal, v_rightPlaneEC.xyz));\n distanceFromStart = czm_planeDistance(alignedPlaneNormal, -dot(alignedPlaneNormal, ecStart), eyeCoordinate.xyz);\n\n // end aligned plane\n alignedPlaneNormal = cross(v_rightPlaneEC.xyz, v_endPlaneNormalEcAndBatchId.xyz);\n alignedPlaneNormal = normalize(cross(alignedPlaneNormal, v_rightPlaneEC.xyz));\n distanceFromEnd = czm_planeDistance(alignedPlaneNormal, -dot(alignedPlaneNormal, v_endEcAndStartEcX.xyz), eyeCoordinate.xyz);\n\n#ifdef PER_INSTANCE_COLOR\n gl_FragColor = czm_gammaCorrect(v_color);\n#else // PER_INSTANCE_COLOR\n // Clamp - distance to aligned planes may be negative due to mitering,\n // so fragment texture coordinate might be out-of-bounds.\n float s = clamp(distanceFromStart / (distanceFromStart + distanceFromEnd), 0.0, 1.0);\n s = (s * v_texcoordNormalizationAndStartEcYZ.x) + v_texcoordNormalizationAndStartEcYZ.y;\n float t = (widthwiseDistance + halfMaxWidth) / (2.0 * halfMaxWidth);\n\n czm_materialInput materialInput;\n\n materialInput.s = s;\n materialInput.st = vec2(s, t);\n materialInput.str = vec3(s, t, 0.0);\n\n czm_material material = czm_getMaterial(materialInput);\n gl_FragColor = vec4(material.diffuse + material.emission, material.alpha);\n#endif // PER_INSTANCE_COLOR\n\n // Premultiply alpha. Required for classification primitives on translucent globe.\n gl_FragColor.rgb *= gl_FragColor.a;\n\n czm_writeDepthClamp();\n}\n'},868123:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="varying vec3 v_forwardDirectionEC;\nvarying vec3 v_texcoordNormalizationAndHalfWidth;\nvarying float v_batchId;\n\n#ifdef PER_INSTANCE_COLOR\nvarying vec4 v_color;\n#else\nvarying vec2 v_alignedPlaneDistances;\nvarying float v_texcoordT;\n#endif\n\nfloat rayPlaneDistanceUnsafe(vec3 origin, vec3 direction, vec3 planeNormal, float planeDistance) {\n // We don't expect the ray to ever be parallel to the plane\n return (-planeDistance - dot(planeNormal, origin)) / dot(planeNormal, direction);\n}\n\nvoid main(void)\n{\n vec4 eyeCoordinate = gl_FragCoord;\n eyeCoordinate /= eyeCoordinate.w;\n\n#ifdef PER_INSTANCE_COLOR\n gl_FragColor = czm_gammaCorrect(v_color);\n#else // PER_INSTANCE_COLOR\n // Use distances for planes aligned with segment to prevent skew in dashing\n float distanceFromStart = rayPlaneDistanceUnsafe(eyeCoordinate.xyz, -v_forwardDirectionEC, v_forwardDirectionEC.xyz, v_alignedPlaneDistances.x);\n float distanceFromEnd = rayPlaneDistanceUnsafe(eyeCoordinate.xyz, v_forwardDirectionEC, -v_forwardDirectionEC.xyz, v_alignedPlaneDistances.y);\n\n // Clamp - distance to aligned planes may be negative due to mitering\n distanceFromStart = max(0.0, distanceFromStart);\n distanceFromEnd = max(0.0, distanceFromEnd);\n\n float s = distanceFromStart / (distanceFromStart + distanceFromEnd);\n s = (s * v_texcoordNormalizationAndHalfWidth.x) + v_texcoordNormalizationAndHalfWidth.y;\n\n czm_materialInput materialInput;\n\n materialInput.s = s;\n materialInput.st = vec2(s, v_texcoordT);\n materialInput.str = vec3(s, v_texcoordT, 0.0);\n\n czm_material material = czm_getMaterial(materialInput);\n gl_FragColor = vec4(material.diffuse + material.emission, material.alpha);\n#endif // PER_INSTANCE_COLOR\n}\n"},479019:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o='attribute vec3 position3DHigh;\nattribute vec3 position3DLow;\n\nattribute vec4 startHiAndForwardOffsetX;\nattribute vec4 startLoAndForwardOffsetY;\nattribute vec4 startNormalAndForwardOffsetZ;\nattribute vec4 endNormalAndTextureCoordinateNormalizationX;\nattribute vec4 rightNormalAndTextureCoordinateNormalizationY;\nattribute vec4 startHiLo2D;\nattribute vec4 offsetAndRight2D;\nattribute vec4 startEndNormals2D;\nattribute vec2 texcoordNormalization2D;\n\nattribute float batchId;\n\nvarying vec3 v_forwardDirectionEC;\nvarying vec3 v_texcoordNormalizationAndHalfWidth;\nvarying float v_batchId;\n\n// For materials\n#ifdef WIDTH_VARYING\nvarying float v_width;\n#endif\n#ifdef ANGLE_VARYING\nvarying float v_polylineAngle;\n#endif\n\n#ifdef PER_INSTANCE_COLOR\nvarying vec4 v_color;\n#else\nvarying vec2 v_alignedPlaneDistances;\nvarying float v_texcoordT;\n#endif\n\n// Morphing planes using SLERP or NLERP doesn\'t seem to work, so instead draw the material directly on the shadow volume.\n// Morph views are from very far away and aren\'t meant to be used precisely, so this should be sufficient.\nvoid main()\n{\n v_batchId = batchId;\n\n // Start position\n vec4 posRelativeToEye2D = czm_translateRelativeToEye(vec3(0.0, startHiLo2D.xy), vec3(0.0, startHiLo2D.zw));\n vec4 posRelativeToEye3D = czm_translateRelativeToEye(startHiAndForwardOffsetX.xyz, startLoAndForwardOffsetY.xyz);\n vec4 posRelativeToEye = czm_columbusViewMorph(posRelativeToEye2D, posRelativeToEye3D, czm_morphTime);\n vec3 posEc2D = (czm_modelViewRelativeToEye * posRelativeToEye2D).xyz;\n vec3 posEc3D = (czm_modelViewRelativeToEye * posRelativeToEye3D).xyz;\n vec3 startEC = (czm_modelViewRelativeToEye * posRelativeToEye).xyz;\n\n // Start plane\n vec4 startPlane2D;\n vec4 startPlane3D;\n startPlane2D.xyz = czm_normal * vec3(0.0, startEndNormals2D.xy);\n startPlane3D.xyz = czm_normal * startNormalAndForwardOffsetZ.xyz;\n startPlane2D.w = -dot(startPlane2D.xyz, posEc2D);\n startPlane3D.w = -dot(startPlane3D.xyz, posEc3D);\n\n // Right plane\n vec4 rightPlane2D;\n vec4 rightPlane3D;\n rightPlane2D.xyz = czm_normal * vec3(0.0, offsetAndRight2D.zw);\n rightPlane3D.xyz = czm_normal * rightNormalAndTextureCoordinateNormalizationY.xyz;\n rightPlane2D.w = -dot(rightPlane2D.xyz, posEc2D);\n rightPlane3D.w = -dot(rightPlane3D.xyz, posEc3D);\n\n // End position\n posRelativeToEye2D = posRelativeToEye2D + vec4(0.0, offsetAndRight2D.xy, 0.0);\n posRelativeToEye3D = posRelativeToEye3D + vec4(startHiAndForwardOffsetX.w, startLoAndForwardOffsetY.w, startNormalAndForwardOffsetZ.w, 0.0);\n posRelativeToEye = czm_columbusViewMorph(posRelativeToEye2D, posRelativeToEye3D, czm_morphTime);\n posEc2D = (czm_modelViewRelativeToEye * posRelativeToEye2D).xyz;\n posEc3D = (czm_modelViewRelativeToEye * posRelativeToEye3D).xyz;\n vec3 endEC = (czm_modelViewRelativeToEye * posRelativeToEye).xyz;\n vec3 forwardEc3D = czm_normal * normalize(vec3(startHiAndForwardOffsetX.w, startLoAndForwardOffsetY.w, startNormalAndForwardOffsetZ.w));\n vec3 forwardEc2D = czm_normal * normalize(vec3(0.0, offsetAndRight2D.xy));\n\n // End plane\n vec4 endPlane2D;\n vec4 endPlane3D;\n endPlane2D.xyz = czm_normal * vec3(0.0, startEndNormals2D.zw);\n endPlane3D.xyz = czm_normal * endNormalAndTextureCoordinateNormalizationX.xyz;\n endPlane2D.w = -dot(endPlane2D.xyz, posEc2D);\n endPlane3D.w = -dot(endPlane3D.xyz, posEc3D);\n\n // Forward direction\n v_forwardDirectionEC = normalize(endEC - startEC);\n\n vec2 cleanTexcoordNormalization2D;\n cleanTexcoordNormalization2D.x = abs(texcoordNormalization2D.x);\n cleanTexcoordNormalization2D.y = czm_branchFreeTernary(texcoordNormalization2D.y > 1.0, 0.0, abs(texcoordNormalization2D.y));\n vec2 cleanTexcoordNormalization3D;\n cleanTexcoordNormalization3D.x = abs(endNormalAndTextureCoordinateNormalizationX.w);\n cleanTexcoordNormalization3D.y = rightNormalAndTextureCoordinateNormalizationY.w;\n cleanTexcoordNormalization3D.y = czm_branchFreeTernary(cleanTexcoordNormalization3D.y > 1.0, 0.0, abs(cleanTexcoordNormalization3D.y));\n\n v_texcoordNormalizationAndHalfWidth.xy = mix(cleanTexcoordNormalization2D, cleanTexcoordNormalization3D, czm_morphTime);\n\n#ifdef PER_INSTANCE_COLOR\n v_color = czm_batchTable_color(batchId);\n#else // PER_INSTANCE_COLOR\n // For computing texture coordinates\n\n v_alignedPlaneDistances.x = -dot(v_forwardDirectionEC, startEC);\n v_alignedPlaneDistances.y = -dot(-v_forwardDirectionEC, endEC);\n#endif // PER_INSTANCE_COLOR\n\n#ifdef WIDTH_VARYING\n float width = czm_batchTable_width(batchId);\n float halfWidth = width * 0.5;\n v_width = width;\n v_texcoordNormalizationAndHalfWidth.z = halfWidth;\n#else\n float halfWidth = 0.5 * czm_batchTable_width(batchId);\n v_texcoordNormalizationAndHalfWidth.z = halfWidth;\n#endif\n\n // Compute a normal along which to "push" the position out, extending the miter depending on view distance.\n // Position has already been "pushed" by unit length along miter normal, and miter normals are encoded in the planes.\n // Decode the normal to use at this specific vertex, push the position back, and then push to where it needs to be.\n // Since this is morphing, compute both 3D and 2D positions and then blend.\n\n // ****** 3D ******\n // Check distance to the end plane and start plane, pick the plane that is closer\n vec4 positionEc3D = czm_modelViewRelativeToEye * czm_translateRelativeToEye(position3DHigh, position3DLow); // w = 1.0, see czm_computePosition\n float absStartPlaneDistance = abs(czm_planeDistance(startPlane3D, positionEc3D.xyz));\n float absEndPlaneDistance = abs(czm_planeDistance(endPlane3D, positionEc3D.xyz));\n vec3 planeDirection = czm_branchFreeTernary(absStartPlaneDistance < absEndPlaneDistance, startPlane3D.xyz, endPlane3D.xyz);\n vec3 upOrDown = normalize(cross(rightPlane3D.xyz, planeDirection)); // Points "up" for start plane, "down" at end plane.\n vec3 normalEC = normalize(cross(planeDirection, upOrDown)); // In practice, the opposite seems to work too.\n\n // Nudge the top vertex upwards to prevent flickering\n vec3 geodeticSurfaceNormal = normalize(cross(normalEC, forwardEc3D));\n geodeticSurfaceNormal *= float(0.0 <= rightNormalAndTextureCoordinateNormalizationY.w && rightNormalAndTextureCoordinateNormalizationY.w <= 1.0);\n geodeticSurfaceNormal *= MAX_TERRAIN_HEIGHT;\n positionEc3D.xyz += geodeticSurfaceNormal;\n\n // Determine if this vertex is on the "left" or "right"\n normalEC *= sign(endNormalAndTextureCoordinateNormalizationX.w);\n\n // A "perfect" implementation would push along normals according to the angle against forward.\n // In practice, just pushing the normal out by halfWidth is sufficient for morph views.\n positionEc3D.xyz += halfWidth * max(0.0, czm_metersPerPixel(positionEc3D)) * normalEC; // prevent artifacts when czm_metersPerPixel is negative (behind camera)\n\n // ****** 2D ******\n // Check distance to the end plane and start plane, pick the plane that is closer\n vec4 positionEc2D = czm_modelViewRelativeToEye * czm_translateRelativeToEye(position2DHigh.zxy, position2DLow.zxy); // w = 1.0, see czm_computePosition\n absStartPlaneDistance = abs(czm_planeDistance(startPlane2D, positionEc2D.xyz));\n absEndPlaneDistance = abs(czm_planeDistance(endPlane2D, positionEc2D.xyz));\n planeDirection = czm_branchFreeTernary(absStartPlaneDistance < absEndPlaneDistance, startPlane2D.xyz, endPlane2D.xyz);\n upOrDown = normalize(cross(rightPlane2D.xyz, planeDirection)); // Points "up" for start plane, "down" at end plane.\n normalEC = normalize(cross(planeDirection, upOrDown)); // In practice, the opposite seems to work too.\n\n // Nudge the top vertex upwards to prevent flickering\n geodeticSurfaceNormal = normalize(cross(normalEC, forwardEc2D));\n geodeticSurfaceNormal *= float(0.0 <= texcoordNormalization2D.y && texcoordNormalization2D.y <= 1.0);\n geodeticSurfaceNormal *= MAX_TERRAIN_HEIGHT;\n positionEc2D.xyz += geodeticSurfaceNormal;\n\n // Determine if this vertex is on the "left" or "right"\n normalEC *= sign(texcoordNormalization2D.x);\n#ifndef PER_INSTANCE_COLOR\n // Use vertex\'s sidedness to compute its texture coordinate.\n v_texcoordT = clamp(sign(texcoordNormalization2D.x), 0.0, 1.0);\n#endif\n\n // A "perfect" implementation would push along normals according to the angle against forward.\n // In practice, just pushing the normal out by halfWidth is sufficient for morph views.\n positionEc2D.xyz += halfWidth * max(0.0, czm_metersPerPixel(positionEc2D)) * normalEC; // prevent artifacts when czm_metersPerPixel is negative (behind camera)\n\n // Blend for actual position\n gl_Position = czm_projection * mix(positionEc2D, positionEc3D, czm_morphTime);\n\n#ifdef ANGLE_VARYING\n // Approximate relative screen space direction of the line.\n vec2 approxLineDirection = normalize(vec2(v_forwardDirectionEC.x, -v_forwardDirectionEC.y));\n approxLineDirection.y = czm_branchFreeTernary(approxLineDirection.x == 0.0 && approxLineDirection.y == 0.0, -1.0, approxLineDirection.y);\n v_polylineAngle = czm_fastApproximateAtan(approxLineDirection.x, approxLineDirection.y);\n#endif\n}\n'},253137:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o='attribute vec3 position3DHigh;\nattribute vec3 position3DLow;\n\n// In 2D and in 3D, texture coordinate normalization component signs encodes:\n// * X sign - sidedness relative to right plane\n// * Y sign - is negative OR magnitude is greater than 1.0 if vertex is on bottom of volume\n#ifndef COLUMBUS_VIEW_2D\nattribute vec4 startHiAndForwardOffsetX;\nattribute vec4 startLoAndForwardOffsetY;\nattribute vec4 startNormalAndForwardOffsetZ;\nattribute vec4 endNormalAndTextureCoordinateNormalizationX;\nattribute vec4 rightNormalAndTextureCoordinateNormalizationY;\n#else\nattribute vec4 startHiLo2D;\nattribute vec4 offsetAndRight2D;\nattribute vec4 startEndNormals2D;\nattribute vec2 texcoordNormalization2D;\n#endif\n\nattribute float batchId;\n\nvarying vec4 v_startPlaneNormalEcAndHalfWidth;\nvarying vec4 v_endPlaneNormalEcAndBatchId;\nvarying vec4 v_rightPlaneEC;\nvarying vec4 v_endEcAndStartEcX;\nvarying vec4 v_texcoordNormalizationAndStartEcYZ;\n\n// For materials\n#ifdef WIDTH_VARYING\nvarying float v_width;\n#endif\n#ifdef ANGLE_VARYING\nvarying float v_polylineAngle;\n#endif\n\n#ifdef PER_INSTANCE_COLOR\nvarying vec4 v_color;\n#endif\n\nvoid main()\n{\n#ifdef COLUMBUS_VIEW_2D\n vec3 ecStart = (czm_modelViewRelativeToEye * czm_translateRelativeToEye(vec3(0.0, startHiLo2D.xy), vec3(0.0, startHiLo2D.zw))).xyz;\n\n vec3 forwardDirectionEC = czm_normal * vec3(0.0, offsetAndRight2D.xy);\n vec3 ecEnd = forwardDirectionEC + ecStart;\n forwardDirectionEC = normalize(forwardDirectionEC);\n\n // Right plane\n v_rightPlaneEC.xyz = czm_normal * vec3(0.0, offsetAndRight2D.zw);\n v_rightPlaneEC.w = -dot(v_rightPlaneEC.xyz, ecStart);\n\n // start plane\n vec4 startPlaneEC;\n startPlaneEC.xyz = czm_normal * vec3(0.0, startEndNormals2D.xy);\n startPlaneEC.w = -dot(startPlaneEC.xyz, ecStart);\n\n // end plane\n vec4 endPlaneEC;\n endPlaneEC.xyz = czm_normal * vec3(0.0, startEndNormals2D.zw);\n endPlaneEC.w = -dot(endPlaneEC.xyz, ecEnd);\n\n v_texcoordNormalizationAndStartEcYZ.x = abs(texcoordNormalization2D.x);\n v_texcoordNormalizationAndStartEcYZ.y = texcoordNormalization2D.y;\n\n#else // COLUMBUS_VIEW_2D\n vec3 ecStart = (czm_modelViewRelativeToEye * czm_translateRelativeToEye(startHiAndForwardOffsetX.xyz, startLoAndForwardOffsetY.xyz)).xyz;\n vec3 offset = czm_normal * vec3(startHiAndForwardOffsetX.w, startLoAndForwardOffsetY.w, startNormalAndForwardOffsetZ.w);\n vec3 ecEnd = ecStart + offset;\n\n vec3 forwardDirectionEC = normalize(offset);\n\n // start plane\n vec4 startPlaneEC;\n startPlaneEC.xyz = czm_normal * startNormalAndForwardOffsetZ.xyz;\n startPlaneEC.w = -dot(startPlaneEC.xyz, ecStart);\n\n // end plane\n vec4 endPlaneEC;\n endPlaneEC.xyz = czm_normal * endNormalAndTextureCoordinateNormalizationX.xyz;\n endPlaneEC.w = -dot(endPlaneEC.xyz, ecEnd);\n\n // Right plane\n v_rightPlaneEC.xyz = czm_normal * rightNormalAndTextureCoordinateNormalizationY.xyz;\n v_rightPlaneEC.w = -dot(v_rightPlaneEC.xyz, ecStart);\n\n v_texcoordNormalizationAndStartEcYZ.x = abs(endNormalAndTextureCoordinateNormalizationX.w);\n v_texcoordNormalizationAndStartEcYZ.y = rightNormalAndTextureCoordinateNormalizationY.w;\n\n#endif // COLUMBUS_VIEW_2D\n\n v_endEcAndStartEcX.xyz = ecEnd;\n v_endEcAndStartEcX.w = ecStart.x;\n v_texcoordNormalizationAndStartEcYZ.zw = ecStart.yz;\n\n#ifdef PER_INSTANCE_COLOR\n v_color = czm_batchTable_color(batchId);\n#endif // PER_INSTANCE_COLOR\n\n // Compute a normal along which to "push" the position out, extending the miter depending on view distance.\n // Position has already been "pushed" by unit length along miter normal, and miter normals are encoded in the planes.\n // Decode the normal to use at this specific vertex, push the position back, and then push to where it needs to be.\n vec4 positionRelativeToEye = czm_computePosition();\n\n // Check distance to the end plane and start plane, pick the plane that is closer\n vec4 positionEC = czm_modelViewRelativeToEye * positionRelativeToEye; // w = 1.0, see czm_computePosition\n float absStartPlaneDistance = abs(czm_planeDistance(startPlaneEC, positionEC.xyz));\n float absEndPlaneDistance = abs(czm_planeDistance(endPlaneEC, positionEC.xyz));\n vec3 planeDirection = czm_branchFreeTernary(absStartPlaneDistance < absEndPlaneDistance, startPlaneEC.xyz, endPlaneEC.xyz);\n vec3 upOrDown = normalize(cross(v_rightPlaneEC.xyz, planeDirection)); // Points "up" for start plane, "down" at end plane.\n vec3 normalEC = normalize(cross(planeDirection, upOrDown)); // In practice, the opposite seems to work too.\n\n // Extrude bottom vertices downward for far view distances, like for GroundPrimitives\n upOrDown = cross(forwardDirectionEC, normalEC);\n upOrDown = float(czm_sceneMode == czm_sceneMode3D) * upOrDown;\n upOrDown = float(v_texcoordNormalizationAndStartEcYZ.y > 1.0 || v_texcoordNormalizationAndStartEcYZ.y < 0.0) * upOrDown;\n upOrDown = min(GLOBE_MINIMUM_ALTITUDE, czm_geometricToleranceOverMeter * length(positionRelativeToEye.xyz)) * upOrDown;\n positionEC.xyz += upOrDown;\n\n v_texcoordNormalizationAndStartEcYZ.y = czm_branchFreeTernary(v_texcoordNormalizationAndStartEcYZ.y > 1.0, 0.0, abs(v_texcoordNormalizationAndStartEcYZ.y));\n\n // Determine distance along normalEC to push for a volume of appropriate width.\n // Make volumes about double pixel width for a conservative fit - in practice the\n // extra cost here is minimal compared to the loose volume heights.\n //\n // N = normalEC (guaranteed "right-facing")\n // R = rightEC\n // p = angle between N and R\n // w = distance to push along R if R == N\n // d = distance to push along N\n //\n // N R\n // { p| } * cos(p) = dot(N, R) = w / d\n // d | |w * d = w / dot(N, R)\n // { | }\n // o---------- polyline segment ----\x3e\n //\n float width = czm_batchTable_width(batchId);\n#ifdef WIDTH_VARYING\n v_width = width;\n#endif\n\n v_startPlaneNormalEcAndHalfWidth.xyz = startPlaneEC.xyz;\n v_startPlaneNormalEcAndHalfWidth.w = width * 0.5;\n\n v_endPlaneNormalEcAndBatchId.xyz = endPlaneEC.xyz;\n v_endPlaneNormalEcAndBatchId.w = batchId;\n\n width = width * max(0.0, czm_metersPerPixel(positionEC)); // width = distance to push along R\n width = width / dot(normalEC, v_rightPlaneEC.xyz); // width = distance to push along N\n\n // Determine if this vertex is on the "left" or "right"\n#ifdef COLUMBUS_VIEW_2D\n normalEC *= sign(texcoordNormalization2D.x);\n#else\n normalEC *= sign(endNormalAndTextureCoordinateNormalizationX.w);\n#endif\n\n positionEC.xyz += width * normalEC;\n gl_Position = czm_depthClamp(czm_projection * positionEC);\n\n#ifdef ANGLE_VARYING\n // Approximate relative screen space direction of the line.\n vec2 approxLineDirection = normalize(vec2(forwardDirectionEC.x, -forwardDirectionEC.y));\n approxLineDirection.y = czm_branchFreeTernary(approxLineDirection.x == 0.0 && approxLineDirection.y == 0.0, -1.0, approxLineDirection.y);\n v_polylineAngle = czm_fastApproximateAtan(approxLineDirection.x, approxLineDirection.y);\n#endif\n}\n'},564557:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="attribute vec3 position3DHigh;\nattribute vec3 position3DLow;\nattribute vec3 position2DHigh;\nattribute vec3 position2DLow;\nattribute vec3 prevPosition3DHigh;\nattribute vec3 prevPosition3DLow;\nattribute vec3 prevPosition2DHigh;\nattribute vec3 prevPosition2DLow;\nattribute vec3 nextPosition3DHigh;\nattribute vec3 nextPosition3DLow;\nattribute vec3 nextPosition2DHigh;\nattribute vec3 nextPosition2DLow;\nattribute vec4 texCoordExpandAndBatchIndex;\n\nvarying vec2 v_st;\nvarying float v_width;\nvarying vec4 v_pickColor;\nvarying float v_polylineAngle;\n\nvoid main()\n{\n float texCoord = texCoordExpandAndBatchIndex.x;\n float expandDir = texCoordExpandAndBatchIndex.y;\n bool usePrev = texCoordExpandAndBatchIndex.z < 0.0;\n float batchTableIndex = texCoordExpandAndBatchIndex.w;\n\n vec2 widthAndShow = batchTable_getWidthAndShow(batchTableIndex);\n float width = widthAndShow.x + 0.5;\n float show = widthAndShow.y;\n\n if (width < 1.0)\n {\n show = 0.0;\n }\n\n vec4 pickColor = batchTable_getPickColor(batchTableIndex);\n\n vec4 p, prev, next;\n if (czm_morphTime == 1.0)\n {\n p = czm_translateRelativeToEye(position3DHigh.xyz, position3DLow.xyz);\n prev = czm_translateRelativeToEye(prevPosition3DHigh.xyz, prevPosition3DLow.xyz);\n next = czm_translateRelativeToEye(nextPosition3DHigh.xyz, nextPosition3DLow.xyz);\n }\n else if (czm_morphTime == 0.0)\n {\n p = czm_translateRelativeToEye(position2DHigh.zxy, position2DLow.zxy);\n prev = czm_translateRelativeToEye(prevPosition2DHigh.zxy, prevPosition2DLow.zxy);\n next = czm_translateRelativeToEye(nextPosition2DHigh.zxy, nextPosition2DLow.zxy);\n }\n else\n {\n p = czm_columbusViewMorph(\n czm_translateRelativeToEye(position2DHigh.zxy, position2DLow.zxy),\n czm_translateRelativeToEye(position3DHigh.xyz, position3DLow.xyz),\n czm_morphTime);\n prev = czm_columbusViewMorph(\n czm_translateRelativeToEye(prevPosition2DHigh.zxy, prevPosition2DLow.zxy),\n czm_translateRelativeToEye(prevPosition3DHigh.xyz, prevPosition3DLow.xyz),\n czm_morphTime);\n next = czm_columbusViewMorph(\n czm_translateRelativeToEye(nextPosition2DHigh.zxy, nextPosition2DLow.zxy),\n czm_translateRelativeToEye(nextPosition3DHigh.xyz, nextPosition3DLow.xyz),\n czm_morphTime);\n }\n\n #ifdef DISTANCE_DISPLAY_CONDITION\n vec3 centerHigh = batchTable_getCenterHigh(batchTableIndex);\n vec4 centerLowAndRadius = batchTable_getCenterLowAndRadius(batchTableIndex);\n vec3 centerLow = centerLowAndRadius.xyz;\n float radius = centerLowAndRadius.w;\n vec2 distanceDisplayCondition = batchTable_getDistanceDisplayCondition(batchTableIndex);\n\n float lengthSq;\n if (czm_sceneMode == czm_sceneMode2D)\n {\n lengthSq = czm_eyeHeight2D.y;\n }\n else\n {\n vec4 center = czm_translateRelativeToEye(centerHigh.xyz, centerLow.xyz);\n lengthSq = max(0.0, dot(center.xyz, center.xyz) - radius * radius);\n }\n\n float nearSq = distanceDisplayCondition.x * distanceDisplayCondition.x;\n float farSq = distanceDisplayCondition.y * distanceDisplayCondition.y;\n if (lengthSq < nearSq || lengthSq > farSq)\n {\n show = 0.0;\n }\n #endif\n\n float polylineAngle;\n vec4 positionWC = getPolylineWindowCoordinates(p, prev, next, expandDir, width, usePrev, polylineAngle);\n gl_Position = czm_viewportOrthographic * positionWC * show;\n\n v_st.s = texCoord;\n v_st.t = czm_writeNonPerspective(clamp(expandDir, 0.0, 1.0), gl_Position.w);\n\n v_width = width;\n v_pickColor = pickColor;\n v_polylineAngle = polylineAngle;\n}\n"},625377:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D colorTexture;\n\nvarying vec2 v_textureCoordinates;\n\n#ifdef AUTO_EXPOSURE\nuniform sampler2D autoExposure;\n#endif\n\nvoid main()\n{\n vec4 fragmentColor = texture2D(colorTexture, v_textureCoordinates);\n vec3 color = fragmentColor.rgb;\n\n#ifdef AUTO_EXPOSURE\n color /= texture2D(autoExposure, vec2(0.5)).r;\n#endif\n color = czm_acesTonemapping(color);\n color = czm_inverseGamma(color);\n\n gl_FragColor = vec4(color, fragmentColor.a);\n}\n"},453492:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D colorTexture;\nuniform sampler2D colorTexture2;\n\nuniform vec2 center;\nuniform float radius;\n\nvarying vec2 v_textureCoordinates;\n\nvoid main()\n{\n vec4 color0 = texture2D(colorTexture, v_textureCoordinates);\n vec4 color1 = texture2D(colorTexture2, v_textureCoordinates);\n\n float x = length(gl_FragCoord.xy - center) / radius;\n float t = smoothstep(0.5, 0.8, x);\n gl_FragColor = mix(color0 + color1, color1, t);\n}\n"},337040:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D randomTexture;\nuniform sampler2D depthTexture;\nuniform float intensity;\nuniform float bias;\nuniform float lengthCap;\nuniform float stepSize;\nuniform float frustumLength;\n\nvarying vec2 v_textureCoordinates;\n\nvec4 clipToEye(vec2 uv, float depth)\n{\n vec2 xy = vec2((uv.x * 2.0 - 1.0), ((1.0 - uv.y) * 2.0 - 1.0));\n vec4 posEC = czm_inverseProjection * vec4(xy, depth, 1.0);\n posEC = posEC / posEC.w;\n return posEC;\n}\n\n//Reconstruct Normal Without Edge Removation\nvec3 getNormalXEdge(vec3 posInCamera, float depthU, float depthD, float depthL, float depthR, vec2 pixelSize)\n{\n vec4 posInCameraUp = clipToEye(v_textureCoordinates - vec2(0.0, pixelSize.y), depthU);\n vec4 posInCameraDown = clipToEye(v_textureCoordinates + vec2(0.0, pixelSize.y), depthD);\n vec4 posInCameraLeft = clipToEye(v_textureCoordinates - vec2(pixelSize.x, 0.0), depthL);\n vec4 posInCameraRight = clipToEye(v_textureCoordinates + vec2(pixelSize.x, 0.0), depthR);\n\n vec3 up = posInCamera.xyz - posInCameraUp.xyz;\n vec3 down = posInCameraDown.xyz - posInCamera.xyz;\n vec3 left = posInCamera.xyz - posInCameraLeft.xyz;\n vec3 right = posInCameraRight.xyz - posInCamera.xyz;\n\n vec3 DX = length(left) < length(right) ? left : right;\n vec3 DY = length(up) < length(down) ? up : down;\n\n return normalize(cross(DY, DX));\n}\n\nvoid main(void)\n{\n float depth = czm_readDepth(depthTexture, v_textureCoordinates);\n vec4 posInCamera = clipToEye(v_textureCoordinates, depth);\n\n if (posInCamera.z > frustumLength)\n {\n gl_FragColor = vec4(1.0);\n return;\n }\n\n vec2 pixelSize = czm_pixelRatio / czm_viewport.zw;\n float depthU = czm_readDepth(depthTexture, v_textureCoordinates - vec2(0.0, pixelSize.y));\n float depthD = czm_readDepth(depthTexture, v_textureCoordinates + vec2(0.0, pixelSize.y));\n float depthL = czm_readDepth(depthTexture, v_textureCoordinates - vec2(pixelSize.x, 0.0));\n float depthR = czm_readDepth(depthTexture, v_textureCoordinates + vec2(pixelSize.x, 0.0));\n vec3 normalInCamera = getNormalXEdge(posInCamera.xyz, depthU, depthD, depthL, depthR, pixelSize);\n\n float ao = 0.0;\n vec2 sampleDirection = vec2(1.0, 0.0);\n float gapAngle = 90.0 * czm_radiansPerDegree;\n\n // RandomNoise\n float randomVal = texture2D(randomTexture, v_textureCoordinates).x;\n\n //Loop for each direction\n for (int i = 0; i < 4; i++)\n {\n float newGapAngle = gapAngle * (float(i) + randomVal);\n float cosVal = cos(newGapAngle);\n float sinVal = sin(newGapAngle);\n\n //Rotate Sampling Direction\n vec2 rotatedSampleDirection = vec2(cosVal * sampleDirection.x - sinVal * sampleDirection.y, sinVal * sampleDirection.x + cosVal * sampleDirection.y);\n float localAO = 0.0;\n float localStepSize = stepSize;\n\n //Loop for each step\n for (int j = 0; j < 6; j++)\n {\n vec2 newCoords = v_textureCoordinates + rotatedSampleDirection * localStepSize * pixelSize;\n\n //Exception Handling\n if(newCoords.x > 1.0 || newCoords.y > 1.0 || newCoords.x < 0.0 || newCoords.y < 0.0)\n {\n break;\n }\n\n float stepDepthInfo = czm_readDepth(depthTexture, newCoords);\n vec4 stepPosInCamera = clipToEye(newCoords, stepDepthInfo);\n vec3 diffVec = stepPosInCamera.xyz - posInCamera.xyz;\n float len = length(diffVec);\n\n if (len > lengthCap)\n {\n break;\n }\n\n float dotVal = clamp(dot(normalInCamera, normalize(diffVec)), 0.0, 1.0 );\n float weight = len / lengthCap;\n weight = 1.0 - weight * weight;\n\n if (dotVal < bias)\n {\n dotVal = 0.0;\n }\n\n localAO = max(localAO, dotVal * weight);\n localStepSize += stepSize;\n }\n ao += localAO;\n }\n\n ao /= 4.0;\n ao = 1.0 - clamp(ao, 0.0, 1.0);\n ao = pow(ao, intensity);\n gl_FragColor = vec4(vec3(ao), 1.0);\n}\n"},994822:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D colorTexture;\nuniform sampler2D ambientOcclusionTexture;\nuniform bool ambientOcclusionOnly;\nvarying vec2 v_textureCoordinates;\n\nvoid main(void)\n{\n vec3 color = texture2D(colorTexture, v_textureCoordinates).rgb;\n vec3 ao = texture2D(ambientOcclusionTexture, v_textureCoordinates).rgb;\n gl_FragColor.rgb = ambientOcclusionOnly ? ao : ao * color;\n}\n"},125119:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D colorTexture;\nuniform float gradations;\n\nvarying vec2 v_textureCoordinates;\n\nvoid main(void)\n{\n vec3 rgb = texture2D(colorTexture, v_textureCoordinates).rgb;\n#ifdef CZM_SELECTED_FEATURE\n if (czm_selected()) {\n gl_FragColor = vec4(rgb, 1.0);\n return;\n }\n#endif\n float luminance = czm_luminance(rgb);\n float darkness = luminance * gradations;\n darkness = (darkness - fract(darkness)) / gradations;\n gl_FragColor = vec4(vec3(darkness), 1.0);\n}\n"},95990:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D colorTexture;\nuniform sampler2D bloomTexture;\nuniform bool glowOnly;\n\nvarying vec2 v_textureCoordinates;\n\nvoid main(void)\n{\n vec4 color = texture2D(colorTexture, v_textureCoordinates);\n\n#ifdef CZM_SELECTED_FEATURE\n if (czm_selected()) {\n gl_FragColor = color;\n return;\n }\n#endif\n\n vec4 bloom = texture2D(bloomTexture, v_textureCoordinates);\n gl_FragColor = glowOnly ? bloom : bloom + color;\n}\n"},756873:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o='uniform sampler2D colorTexture;\n\nuniform float avgLuminance;\nuniform float threshold;\nuniform float offset;\n\nvarying vec2 v_textureCoordinates;\n\nfloat key(float avg)\n{\n float guess = 1.5 - (1.5 / (avg * 0.1 + 1.0));\n return max(0.0, guess) + 0.1;\n}\n\n// See section 9. "The bright-pass filter" of Realtime HDR Rendering\n// http://www.cg.tuwien.ac.at/research/publications/2007/Luksch_2007_RHR/Luksch_2007_RHR-RealtimeHDR%20.pdf\n\nvoid main()\n{\n vec4 color = texture2D(colorTexture, v_textureCoordinates);\n vec3 xyz = czm_RGBToXYZ(color.rgb);\n float luminance = xyz.r;\n\n float scaledLum = key(avgLuminance) * luminance / avgLuminance;\n float brightLum = max(scaledLum - threshold, 0.0);\n float brightness = brightLum / (offset + brightLum);\n\n xyz.r = brightness;\n gl_FragColor = vec4(czm_XYZToRGB(xyz), 1.0);\n}\n'},494497:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D colorTexture;\nuniform float brightness;\n\nvarying vec2 v_textureCoordinates;\n\nvoid main(void)\n{\n vec3 rgb = texture2D(colorTexture, v_textureCoordinates).rgb;\n vec3 target = vec3(0.0);\n gl_FragColor = vec4(mix(target, rgb, brightness), 1.0);\n}\n"},751297:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D colorTexture;\n\n#ifdef DEBUG_SHOW_DEPTH\nuniform sampler2D u_packedTranslucentDepth;\n#endif\n\nvarying vec2 v_textureCoordinates;\n\nvoid main()\n{\n#ifdef DEBUG_SHOW_DEPTH\n if (v_textureCoordinates.x < 0.5)\n {\n gl_FragColor.rgb = vec3(czm_unpackDepth(texture2D(u_packedTranslucentDepth, v_textureCoordinates)));\n gl_FragColor.a = 1.0;\n }\n#else\n vec4 color = texture2D(colorTexture, v_textureCoordinates);\n\n#ifdef PICK\n if (color == vec4(0.0))\n {\n discard;\n }\n#else\n // Reverse premultiplication process to get the correct composited result of the classification primitives\n color.rgb /= color.a;\n#endif\n gl_FragColor = color;\n#endif\n}\n"},135234:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D colorTexture;\nuniform float contrast;\nuniform float brightness;\n\nvarying vec2 v_textureCoordinates;\n\nvoid main(void)\n{\n vec3 sceneColor = texture2D(colorTexture, v_textureCoordinates).xyz;\n sceneColor = czm_RGBToHSB(sceneColor);\n sceneColor.z += brightness;\n sceneColor = czm_HSBToRGB(sceneColor);\n\n float factor = (259.0 * (contrast + 255.0)) / (255.0 * (259.0 - contrast));\n sceneColor = factor * (sceneColor - vec3(0.5)) + vec3(0.5);\n gl_FragColor = vec4(sceneColor, 1.0);\n}\n"},975315:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D colorTexture;\nuniform sampler2D blurTexture;\nuniform sampler2D depthTexture;\nuniform float focalDistance;\n\nvarying vec2 v_textureCoordinates;\n\nvec4 toEye(vec2 uv, float depth)\n{\n vec2 xy = vec2((uv.x * 2.0 - 1.0), ((1.0 - uv.y) * 2.0 - 1.0));\n vec4 posInCamera = czm_inverseProjection * vec4(xy, depth, 1.0);\n posInCamera = posInCamera / posInCamera.w;\n return posInCamera;\n}\n\nfloat computeDepthBlur(float depth)\n{\n float f;\n if (depth < focalDistance)\n {\n f = (focalDistance - depth) / (focalDistance - czm_currentFrustum.x);\n }\n else\n {\n f = (depth - focalDistance) / (czm_currentFrustum.y - focalDistance);\n f = pow(f, 0.1);\n }\n f *= f;\n f = clamp(f, 0.0, 1.0);\n return pow(f, 0.5);\n}\n\nvoid main(void)\n{\n float depth = czm_readDepth(depthTexture, v_textureCoordinates);\n vec4 posInCamera = toEye(v_textureCoordinates, depth);\n float d = computeDepthBlur(-posInCamera.z);\n gl_FragColor = mix(texture2D(colorTexture, v_textureCoordinates), texture2D(blurTexture, v_textureCoordinates), d);\n}\n"},214098:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D depthTexture;\n\nvarying vec2 v_textureCoordinates;\n\nvoid main(void)\n{\n float depth = czm_readDepth(depthTexture, v_textureCoordinates);\n gl_FragColor = vec4(vec3(depth), 1.0);\n}\n"},140418:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D depthTexture;\nuniform float length;\nuniform vec4 color;\n\nvarying vec2 v_textureCoordinates;\n\nvoid main(void)\n{\n float directions[3];\n directions[0] = -1.0;\n directions[1] = 0.0;\n directions[2] = 1.0;\n\n float scalars[3];\n scalars[0] = 3.0;\n scalars[1] = 10.0;\n scalars[2] = 3.0;\n\n float padx = czm_pixelRatio / czm_viewport.z;\n float pady = czm_pixelRatio / czm_viewport.w;\n\n#ifdef CZM_SELECTED_FEATURE\n bool selected = false;\n for (int i = 0; i < 3; ++i)\n {\n float dir = directions[i];\n selected = selected || czm_selected(vec2(-padx, dir * pady));\n selected = selected || czm_selected(vec2(padx, dir * pady));\n selected = selected || czm_selected(vec2(dir * padx, -pady));\n selected = selected || czm_selected(vec2(dir * padx, pady));\n if (selected)\n {\n break;\n }\n }\n if (!selected)\n {\n gl_FragColor = vec4(color.rgb, 0.0);\n return;\n }\n#endif\n\n float horizEdge = 0.0;\n float vertEdge = 0.0;\n\n for (int i = 0; i < 3; ++i)\n {\n float dir = directions[i];\n float scale = scalars[i];\n\n horizEdge -= texture2D(depthTexture, v_textureCoordinates + vec2(-padx, dir * pady)).x * scale;\n horizEdge += texture2D(depthTexture, v_textureCoordinates + vec2(padx, dir * pady)).x * scale;\n\n vertEdge -= texture2D(depthTexture, v_textureCoordinates + vec2(dir * padx, -pady)).x * scale;\n vertEdge += texture2D(depthTexture, v_textureCoordinates + vec2(dir * padx, pady)).x * scale;\n }\n\n float len = sqrt(horizEdge * horizEdge + vertEdge * vertEdge);\n gl_FragColor = vec4(color.rgb, len > length ? color.a : 0.0);\n}\n"},840616:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="varying vec2 v_textureCoordinates;\n\nuniform sampler2D colorTexture;\n\nconst float fxaaQualitySubpix = 0.5;\nconst float fxaaQualityEdgeThreshold = 0.125;\nconst float fxaaQualityEdgeThresholdMin = 0.0833;\n\nvoid main()\n{\n vec2 fxaaQualityRcpFrame = vec2(1.0) / czm_viewport.zw;\n vec4 color = FxaaPixelShader(\n v_textureCoordinates,\n colorTexture,\n fxaaQualityRcpFrame,\n fxaaQualitySubpix,\n fxaaQualityEdgeThreshold,\n fxaaQualityEdgeThresholdMin);\n float alpha = texture2D(colorTexture, v_textureCoordinates).a;\n gl_FragColor = vec4(color.rgb, alpha);\n}\n"},178727:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D colorTexture;\n\nvarying vec2 v_textureCoordinates;\n\n#ifdef AUTO_EXPOSURE\nuniform sampler2D autoExposure;\n#endif\n\n// See slides 142 and 143:\n// http://www.gdcvault.com/play/1012459/Uncharted_2__HDR_Lighting\n\nvoid main()\n{\n vec4 fragmentColor = texture2D(colorTexture, v_textureCoordinates);\n vec3 color = fragmentColor.rgb;\n\n#ifdef AUTO_EXPOSURE\n float exposure = texture2D(autoExposure, vec2(0.5)).r;\n color /= exposure;\n#endif\n\n\tconst float A = 0.22; // shoulder strength\n\tconst float B = 0.30; // linear strength\n\tconst float C = 0.10; // linear angle\n\tconst float D = 0.20; // toe strength\n\tconst float E = 0.01; // toe numerator\n\tconst float F = 0.30; // toe denominator\n\n\tconst float white = 11.2; // linear white point value\n\n\tvec3 c = ((color * (A * color + C * B) + D * E) / (color * ( A * color + B) + D * F)) - E / F;\n\tfloat w = ((white * (A * white + C * B) + D * E) / (white * ( A * white + B) + D * F)) - E / F;\n\n\tc = czm_inverseGamma(c / w);\n\tgl_FragColor = vec4(c, fragmentColor.a);\n}\n"},263295:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="#define SAMPLES 8\n\nuniform float delta;\nuniform float sigma;\nuniform float direction; // 0.0 for x direction, 1.0 for y direction\n\nuniform sampler2D colorTexture;\n\n#ifdef USE_STEP_SIZE\nuniform float stepSize;\n#else\nuniform vec2 step;\n#endif\n\nvarying vec2 v_textureCoordinates;\n\n// Incremental Computation of the Gaussian:\n// https://developer.nvidia.com/gpugems/GPUGems3/gpugems3_ch40.html\n\nvoid main()\n{\n vec2 st = v_textureCoordinates;\n vec2 dir = vec2(1.0 - direction, direction);\n\n#ifdef USE_STEP_SIZE\n vec2 step = vec2(stepSize * (czm_pixelRatio / czm_viewport.zw));\n#else\n vec2 step = step;\n#endif\n\n vec3 g;\n g.x = 1.0 / (sqrt(czm_twoPi) * sigma);\n g.y = exp((-0.5 * delta * delta) / (sigma * sigma));\n g.z = g.y * g.y;\n\n vec4 result = texture2D(colorTexture, st) * g.x;\n for (int i = 1; i < SAMPLES; ++i)\n {\n g.xy *= g.yz;\n\n vec2 offset = float(i) * dir * step;\n result += texture2D(colorTexture, st - offset) * g.x;\n result += texture2D(colorTexture, st + offset) * g.x;\n }\n\n gl_FragColor = result;\n}\n"},805637:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D colorTexture;\nuniform sampler2D dirtTexture;\nuniform sampler2D starTexture;\nuniform vec2 dirtTextureDimensions;\nuniform float distortion;\nuniform float ghostDispersal;\nuniform float haloWidth;\nuniform float dirtAmount;\nuniform float earthRadius;\nuniform float intensity;\n\nvarying vec2 v_textureCoordinates;\n\n// whether it is in space or not\n// 6500000.0 is empirical value\n#define DISTANCE_TO_SPACE 6500000.0\n\n// return ndc from world coordinate biased earthRadius\nvec4 getNDCFromWC(vec3 WC, float earthRadius)\n{\n vec4 positionEC = czm_view * vec4(WC, 1.0);\n positionEC = vec4(positionEC.x + earthRadius, positionEC.y, positionEC.z, 1.0);\n vec4 positionWC = czm_eyeToWindowCoordinates(positionEC);\n return czm_viewportOrthographic * vec4(positionWC.xy, -positionWC.z, 1.0);\n}\n\n// Check if current pixel is included Earth\n// if then mask it gradually\nfloat isInEarth(vec2 texcoord, vec2 sceneSize)\n{\n vec2 NDC = texcoord * 2.0 - 1.0;\n vec4 earthPosSC = getNDCFromWC(vec3(0.0), 0.0);\n vec4 earthPosSCEdge = getNDCFromWC(vec3(0.0), earthRadius * 1.5);\n NDC.xy -= earthPosSC.xy;\n\n float X = abs(NDC.x) * sceneSize.x;\n float Y = abs(NDC.y) * sceneSize.y;\n\n return clamp(0.0, 1.0, max(sqrt(X * X + Y * Y) / max(abs(earthPosSCEdge.x * sceneSize.x), 1.0) - 0.8 , 0.0));\n}\n\n// For Chromatic effect\nvec4 textureDistorted(sampler2D tex, vec2 texcoord, vec2 direction, vec3 distortion, bool isSpace)\n{\n vec2 sceneSize = czm_viewport.zw;\n vec3 color;\n if(isSpace)\n {\n color.r = isInEarth(texcoord + direction * distortion.r, sceneSize) * texture2D(tex, texcoord + direction * distortion.r).r;\n color.g = isInEarth(texcoord + direction * distortion.g, sceneSize) * texture2D(tex, texcoord + direction * distortion.g).g;\n color.b = isInEarth(texcoord + direction * distortion.b, sceneSize) * texture2D(tex, texcoord + direction * distortion.b).b;\n }\n else\n {\n color.r = texture2D(tex, texcoord + direction * distortion.r).r;\n color.g = texture2D(tex, texcoord + direction * distortion.g).g;\n color.b = texture2D(tex, texcoord + direction * distortion.b).b;\n }\n return vec4(clamp(color, 0.0, 1.0), 0.0);\n}\n\nvoid main(void)\n{\n vec4 originalColor = texture2D(colorTexture, v_textureCoordinates);\n vec3 rgb = originalColor.rgb;\n bool isSpace = length(czm_viewerPositionWC.xyz) > DISTANCE_TO_SPACE;\n\n // Sun position\n vec4 sunPos = czm_morphTime == 1.0 ? vec4(czm_sunPositionWC, 1.0) : vec4(czm_sunPositionColumbusView.zxy, 1.0);\n vec4 sunPositionEC = czm_view * sunPos;\n vec4 sunPositionWC = czm_eyeToWindowCoordinates(sunPositionEC);\n sunPos = czm_viewportOrthographic * vec4(sunPositionWC.xy, -sunPositionWC.z, 1.0);\n\n // If sun is not in the screen space, use original color.\n if(!isSpace || !((sunPos.x >= -1.1 && sunPos.x <= 1.1) && (sunPos.y >= -1.1 && sunPos.y <= 1.1)))\n {\n // Lens flare is disabled when not in space until #5932 is fixed.\n // https://github.com/CesiumGS/cesium/issues/5932\n gl_FragColor = originalColor;\n return;\n }\n\n vec2 texcoord = vec2(1.0) - v_textureCoordinates;\n vec2 pixelSize = czm_pixelRatio / czm_viewport.zw;\n vec2 invPixelSize = 1.0 / pixelSize;\n vec3 distortionVec = pixelSize.x * vec3(-distortion, 0.0, distortion);\n\n // ghost vector to image centre:\n vec2 ghostVec = (vec2(0.5) - texcoord) * ghostDispersal;\n vec3 direction = normalize(vec3(ghostVec, 0.0));\n\n // sample ghosts:\n vec4 result = vec4(0.0);\n vec4 ghost = vec4(0.0);\n for (int i = 0; i < 4; ++i)\n {\n vec2 offset = fract(texcoord + ghostVec * float(i));\n // Only bright spots from the centre of the source image\n ghost += textureDistorted(colorTexture, offset, direction.xy, distortionVec, isSpace);\n }\n result += ghost;\n\n // sample halo\n vec2 haloVec = normalize(ghostVec) * haloWidth;\n float weightForHalo = length(vec2(0.5) - fract(texcoord + haloVec)) / length(vec2(0.5));\n weightForHalo = pow(1.0 - weightForHalo, 5.0);\n\n result += textureDistorted(colorTexture, texcoord + haloVec, direction.xy, distortionVec, isSpace) * weightForHalo * 1.5;\n\n // dirt on lens\n vec2 dirtTexCoords = (v_textureCoordinates * invPixelSize) / dirtTextureDimensions;\n if (dirtTexCoords.x > 1.0)\n {\n dirtTexCoords.x = mod(floor(dirtTexCoords.x), 2.0) == 1.0 ? 1.0 - fract(dirtTexCoords.x) : fract(dirtTexCoords.x);\n }\n if (dirtTexCoords.y > 1.0)\n {\n dirtTexCoords.y = mod(floor(dirtTexCoords.y), 2.0) == 1.0 ? 1.0 - fract(dirtTexCoords.y) : fract(dirtTexCoords.y);\n }\n result += dirtAmount * texture2D(dirtTexture, dirtTexCoords);\n\n // Rotating starburst texture's coordinate\n // dot(czm_view[0].xyz, vec3(0.0, 0.0, 1.0)) + dot(czm_view[1].xyz, vec3(0.0, 1.0, 0.0))\n float camrot = czm_view[0].z + czm_view[1].y;\n float cosValue = cos(camrot);\n float sinValue = sin(camrot);\n mat3 rotation = mat3(\n cosValue, -sinValue, 0.0,\n sinValue, cosValue, 0.0,\n 0.0, 0.0, 1.0\n );\n\n vec3 st1 = vec3(v_textureCoordinates * 2.0 - vec2(1.0), 1.0);\n vec3 st2 = vec3((rotation * st1).xy, 1.0);\n vec3 st3 = st2 * 0.5 + vec3(0.5);\n vec2 lensStarTexcoord = st3.xy;\n float weightForLensFlare = length(vec3(sunPos.xy, 0.0));\n float oneMinusWeightForLensFlare = max(1.0 - weightForLensFlare, 0.0);\n\n if (!isSpace)\n {\n result *= oneMinusWeightForLensFlare * intensity * 0.2;\n }\n else\n {\n result *= oneMinusWeightForLensFlare * intensity;\n result *= texture2D(starTexture, lensStarTexcoord) * pow(weightForLensFlare, 1.0) * max((1.0 - length(vec3(st1.xy, 0.0))), 0.0) * 2.0;\n }\n\n result += texture2D(colorTexture, v_textureCoordinates);\n\n gl_FragColor = result;\n}\n"},757817:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D colorTexture;\nuniform vec3 white;\n\nvarying vec2 v_textureCoordinates;\n\n#ifdef AUTO_EXPOSURE\nuniform sampler2D autoExposure;\n#endif\n\n// See equation 4:\n// http://www.cs.utah.edu/~reinhard/cdrom/tonemap.pdf\n\nvoid main()\n{\n vec4 fragmentColor = texture2D(colorTexture, v_textureCoordinates);\n vec3 color = fragmentColor.rgb;\n#ifdef AUTO_EXPOSURE\n float exposure = texture2D(autoExposure, vec2(0.5)).r;\n color /= exposure;\n#endif\n color = (color * (1.0 + color / white)) / (1.0 + color);\n color = czm_inverseGamma(color);\n gl_FragColor = vec4(color, fragmentColor.a);\n}\n"},466153:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D colorTexture;\n\nvarying vec2 v_textureCoordinates;\n\nfloat rand(vec2 co)\n{\n return fract(sin(dot(co.xy ,vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main(void)\n{\n float noiseValue = rand(v_textureCoordinates + sin(czm_frameNumber)) * 0.1;\n vec3 rgb = texture2D(colorTexture, v_textureCoordinates).rgb;\n vec3 green = vec3(0.0, 1.0, 0.0);\n gl_FragColor = vec4((noiseValue + rgb) * green, 1.0);\n}\n"},426301:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D colorTexture;\n\nvarying vec2 v_textureCoordinates;\n\nvoid main()\n{\n gl_FragColor = texture2D(colorTexture, v_textureCoordinates);\n}\n"},831222:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform highp sampler2D u_depthTexture;\n\nvarying vec2 v_textureCoordinates;\n\nvoid main()\n{\n gl_FragColor = czm_packDepth(texture2D(u_depthTexture, v_textureCoordinates).r);\n}\n"},579790:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="#extension GL_EXT_frag_depth : enable\n\nuniform sampler2D u_pointCloud_colorGBuffer;\nuniform sampler2D u_pointCloud_depthGBuffer;\nuniform vec2 u_distanceAndEdlStrength;\nvarying vec2 v_textureCoordinates;\n\nvec2 neighborContribution(float log2Depth, vec2 offset)\n{\n float dist = u_distanceAndEdlStrength.x;\n vec2 texCoordOrig = v_textureCoordinates + offset * dist;\n vec2 texCoord0 = v_textureCoordinates + offset * floor(dist);\n vec2 texCoord1 = v_textureCoordinates + offset * ceil(dist);\n\n float depthOrLogDepth0 = czm_unpackDepth(texture2D(u_pointCloud_depthGBuffer, texCoord0));\n float depthOrLogDepth1 = czm_unpackDepth(texture2D(u_pointCloud_depthGBuffer, texCoord1));\n\n // ignore depth values that are the clear depth\n if (depthOrLogDepth0 == 0.0 || depthOrLogDepth1 == 0.0) {\n return vec2(0.0);\n }\n\n // interpolate the two adjacent depth values\n float depthMix = mix(depthOrLogDepth0, depthOrLogDepth1, fract(dist));\n vec4 eyeCoordinate = czm_windowToEyeCoordinates(texCoordOrig, depthMix);\n return vec2(max(0.0, log2Depth - log2(-eyeCoordinate.z / eyeCoordinate.w)), 1.0);\n}\n\nvoid main()\n{\n float depthOrLogDepth = czm_unpackDepth(texture2D(u_pointCloud_depthGBuffer, v_textureCoordinates));\n\n vec4 eyeCoordinate = czm_windowToEyeCoordinates(gl_FragCoord.xy, depthOrLogDepth);\n eyeCoordinate /= eyeCoordinate.w;\n\n float log2Depth = log2(-eyeCoordinate.z);\n\n if (depthOrLogDepth == 0.0) // 0.0 is the clear value for the gbuffer\n {\n discard;\n }\n\n vec4 color = texture2D(u_pointCloud_colorGBuffer, v_textureCoordinates);\n\n // sample from neighbors left, right, down, up\n vec2 texelSize = 1.0 / czm_viewport.zw;\n\n vec2 responseAndCount = vec2(0.0);\n\n responseAndCount += neighborContribution(log2Depth, vec2(-texelSize.x, 0.0));\n responseAndCount += neighborContribution(log2Depth, vec2(+texelSize.x, 0.0));\n responseAndCount += neighborContribution(log2Depth, vec2(0.0, -texelSize.y));\n responseAndCount += neighborContribution(log2Depth, vec2(0.0, +texelSize.y));\n\n float response = responseAndCount.x / responseAndCount.y;\n float strength = u_distanceAndEdlStrength.y;\n float shade = exp(-response * 300.0 * strength);\n color.rgb *= shade;\n gl_FragColor = vec4(color);\n\n // Input and output depth are the same.\n gl_FragDepthEXT = depthOrLogDepth;\n}\n"},727766:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D colorTexture;\n\nvarying vec2 v_textureCoordinates;\n\n#ifdef AUTO_EXPOSURE\nuniform sampler2D autoExposure;\n#endif\n\n// See equation 3:\n// http://www.cs.utah.edu/~reinhard/cdrom/tonemap.pdf\n\nvoid main()\n{\n vec4 fragmentColor = texture2D(colorTexture, v_textureCoordinates);\n vec3 color = fragmentColor.rgb;\n#ifdef AUTO_EXPOSURE\n float exposure = texture2D(autoExposure, vec2(0.5)).r;\n color /= exposure;\n#endif\n color = color / (1.0 + color);\n color = czm_inverseGamma(color);\n gl_FragColor = vec4(color, fragmentColor.a);\n}\n"},635217:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D colorTexture;\nuniform sampler2D silhouetteTexture;\n\nvarying vec2 v_textureCoordinates;\n\nvoid main(void)\n{\n vec4 silhouetteColor = texture2D(silhouetteTexture, v_textureCoordinates);\n vec4 color = texture2D(colorTexture, v_textureCoordinates);\n gl_FragColor = mix(color, silhouetteColor, silhouetteColor.a);\n}\n"},173209:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D u_texture;\n\nvarying vec2 v_textureCoordinates;\n\nvoid main()\n{\n gl_FragColor = texture2D(u_texture, v_textureCoordinates);\n}\n"},667281:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="attribute vec4 position;\nattribute float webMercatorT;\n\nuniform vec2 u_textureDimensions;\n\nvarying vec2 v_textureCoordinates;\n\nvoid main()\n{\n v_textureCoordinates = vec2(position.x, webMercatorT);\n gl_Position = czm_viewportOrthographic * (position * vec4(u_textureDimensions, 1.0, 1.0));\n}\n"},995838:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="#ifdef GL_EXT_frag_depth\n#extension GL_EXT_frag_depth : enable\n#endif\n\n#ifdef TEXTURE_COORDINATES\n#ifdef SPHERICAL\nvarying vec4 v_sphericalExtents;\n#else // SPHERICAL\nvarying vec2 v_inversePlaneExtents;\nvarying vec4 v_westPlane;\nvarying vec4 v_southPlane;\n#endif // SPHERICAL\nvarying vec3 v_uvMinAndSphericalLongitudeRotation;\nvarying vec3 v_uMaxAndInverseDistance;\nvarying vec3 v_vMaxAndInverseDistance;\n#endif // TEXTURE_COORDINATES\n\n#ifdef PER_INSTANCE_COLOR\nvarying vec4 v_color;\n#endif\n\n#ifdef NORMAL_EC\nvec3 getEyeCoordinate3FromWindowCoordinate(vec2 fragCoord, float logDepthOrDepth) {\n vec4 eyeCoordinate = czm_windowToEyeCoordinates(fragCoord, logDepthOrDepth);\n return eyeCoordinate.xyz / eyeCoordinate.w;\n}\n\nvec3 vectorFromOffset(vec4 eyeCoordinate, vec2 positiveOffset) {\n vec2 glFragCoordXY = gl_FragCoord.xy;\n // Sample depths at both offset and negative offset\n float upOrRightLogDepth = czm_unpackDepth(texture2D(czm_globeDepthTexture, (glFragCoordXY + positiveOffset) / czm_viewport.zw));\n float downOrLeftLogDepth = czm_unpackDepth(texture2D(czm_globeDepthTexture, (glFragCoordXY - positiveOffset) / czm_viewport.zw));\n // Explicitly evaluate both paths\n // Necessary for multifrustum and for edges of the screen\n bvec2 upOrRightInBounds = lessThan(glFragCoordXY + positiveOffset, czm_viewport.zw);\n float useUpOrRight = float(upOrRightLogDepth > 0.0 && upOrRightInBounds.x && upOrRightInBounds.y);\n float useDownOrLeft = float(useUpOrRight == 0.0);\n vec3 upOrRightEC = getEyeCoordinate3FromWindowCoordinate(glFragCoordXY + positiveOffset, upOrRightLogDepth);\n vec3 downOrLeftEC = getEyeCoordinate3FromWindowCoordinate(glFragCoordXY - positiveOffset, downOrLeftLogDepth);\n return (upOrRightEC - (eyeCoordinate.xyz / eyeCoordinate.w)) * useUpOrRight + ((eyeCoordinate.xyz / eyeCoordinate.w) - downOrLeftEC) * useDownOrLeft;\n}\n#endif // NORMAL_EC\n\nvoid main(void)\n{\n#ifdef REQUIRES_EC\n float logDepthOrDepth = czm_unpackDepth(texture2D(czm_globeDepthTexture, gl_FragCoord.xy / czm_viewport.zw));\n vec4 eyeCoordinate = czm_windowToEyeCoordinates(gl_FragCoord.xy, logDepthOrDepth);\n#endif\n\n#ifdef REQUIRES_WC\n vec4 worldCoordinate4 = czm_inverseView * eyeCoordinate;\n vec3 worldCoordinate = worldCoordinate4.xyz / worldCoordinate4.w;\n#endif\n\n#ifdef TEXTURE_COORDINATES\n vec2 uv;\n#ifdef SPHERICAL\n // Treat world coords as a sphere normal for spherical coordinates\n vec2 sphericalLatLong = czm_approximateSphericalCoordinates(worldCoordinate);\n sphericalLatLong.y += v_uvMinAndSphericalLongitudeRotation.z;\n sphericalLatLong.y = czm_branchFreeTernary(sphericalLatLong.y < czm_pi, sphericalLatLong.y, sphericalLatLong.y - czm_twoPi);\n uv.x = (sphericalLatLong.y - v_sphericalExtents.y) * v_sphericalExtents.w;\n uv.y = (sphericalLatLong.x - v_sphericalExtents.x) * v_sphericalExtents.z;\n#else // SPHERICAL\n // Unpack planes and transform to eye space\n uv.x = czm_planeDistance(v_westPlane, eyeCoordinate.xyz / eyeCoordinate.w) * v_inversePlaneExtents.x;\n uv.y = czm_planeDistance(v_southPlane, eyeCoordinate.xyz / eyeCoordinate.w) * v_inversePlaneExtents.y;\n#endif // SPHERICAL\n#endif // TEXTURE_COORDINATES\n\n#ifdef PICK\n#ifdef CULL_FRAGMENTS\n // When classifying translucent geometry, logDepthOrDepth == 0.0\n // indicates a region that should not be classified, possibly due to there\n // being opaque pixels there in another buffer.\n // Check for logDepthOrDepth != 0.0 to make sure this should be classified.\n if (0.0 <= uv.x && uv.x <= 1.0 && 0.0 <= uv.y && uv.y <= 1.0 || logDepthOrDepth != 0.0) {\n gl_FragColor.a = 1.0; // 0.0 alpha leads to discard from ShaderSource.createPickFragmentShaderSource\n czm_writeDepthClamp();\n }\n#else // CULL_FRAGMENTS\n gl_FragColor.a = 1.0;\n#endif // CULL_FRAGMENTS\n#else // PICK\n\n#ifdef CULL_FRAGMENTS\n // When classifying translucent geometry, logDepthOrDepth == 0.0\n // indicates a region that should not be classified, possibly due to there\n // being opaque pixels there in another buffer.\n if (uv.x <= 0.0 || 1.0 <= uv.x || uv.y <= 0.0 || 1.0 <= uv.y || logDepthOrDepth == 0.0) {\n discard;\n }\n#endif\n\n#ifdef NORMAL_EC\n // Compute normal by sampling adjacent pixels in 2x2 block in screen space\n vec3 downUp = vectorFromOffset(eyeCoordinate, vec2(0.0, 1.0));\n vec3 leftRight = vectorFromOffset(eyeCoordinate, vec2(1.0, 0.0));\n vec3 normalEC = normalize(cross(leftRight, downUp));\n#endif\n\n\n#ifdef PER_INSTANCE_COLOR\n\n vec4 color = czm_gammaCorrect(v_color);\n#ifdef FLAT\n gl_FragColor = color;\n#else // FLAT\n czm_materialInput materialInput;\n materialInput.normalEC = normalEC;\n materialInput.positionToEyeEC = -eyeCoordinate.xyz;\n czm_material material = czm_getDefaultMaterial(materialInput);\n material.diffuse = color.rgb;\n material.alpha = color.a;\n\n gl_FragColor = czm_phong(normalize(-eyeCoordinate.xyz), material, czm_lightDirectionEC);\n#endif // FLAT\n\n // Premultiply alpha. Required for classification primitives on translucent globe.\n gl_FragColor.rgb *= gl_FragColor.a;\n\n#else // PER_INSTANCE_COLOR\n\n // Material support.\n // USES_ is distinct from REQUIRES_, because some things are dependencies of each other or\n // dependencies for culling but might not actually be used by the material.\n\n czm_materialInput materialInput;\n\n#ifdef USES_NORMAL_EC\n materialInput.normalEC = normalEC;\n#endif\n\n#ifdef USES_POSITION_TO_EYE_EC\n materialInput.positionToEyeEC = -eyeCoordinate.xyz;\n#endif\n\n#ifdef USES_TANGENT_TO_EYE\n materialInput.tangentToEyeMatrix = czm_eastNorthUpToEyeCoordinates(worldCoordinate, normalEC);\n#endif\n\n#ifdef USES_ST\n // Remap texture coordinates from computed (approximately aligned with cartographic space) to the desired\n // texture coordinate system, which typically forms a tight oriented bounding box around the geometry.\n // Shader is provided a set of reference points for remapping.\n materialInput.st.x = czm_lineDistance(v_uvMinAndSphericalLongitudeRotation.xy, v_uMaxAndInverseDistance.xy, uv) * v_uMaxAndInverseDistance.z;\n materialInput.st.y = czm_lineDistance(v_uvMinAndSphericalLongitudeRotation.xy, v_vMaxAndInverseDistance.xy, uv) * v_vMaxAndInverseDistance.z;\n#endif\n\n czm_material material = czm_getMaterial(materialInput);\n\n#ifdef FLAT\n gl_FragColor = vec4(material.diffuse + material.emission, material.alpha);\n#else // FLAT\n gl_FragColor = czm_phong(normalize(-eyeCoordinate.xyz), material, czm_lightDirectionEC);\n#endif // FLAT\n\n // Premultiply alpha. Required for classification primitives on translucent globe.\n gl_FragColor.rgb *= gl_FragColor.a;\n\n#endif // PER_INSTANCE_COLOR\n czm_writeDepthClamp();\n#endif // PICK\n}\n"},413354:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o='attribute vec3 position3DHigh;\nattribute vec3 position3DLow;\nattribute float batchId;\n\n#ifdef EXTRUDED_GEOMETRY\nattribute vec3 extrudeDirection;\n\nuniform float u_globeMinimumAltitude;\n#endif // EXTRUDED_GEOMETRY\n\n#ifdef PER_INSTANCE_COLOR\nvarying vec4 v_color;\n#endif // PER_INSTANCE_COLOR\n\n#ifdef TEXTURE_COORDINATES\n#ifdef SPHERICAL\nvarying vec4 v_sphericalExtents;\n#else // SPHERICAL\nvarying vec2 v_inversePlaneExtents;\nvarying vec4 v_westPlane;\nvarying vec4 v_southPlane;\n#endif // SPHERICAL\nvarying vec3 v_uvMinAndSphericalLongitudeRotation;\nvarying vec3 v_uMaxAndInverseDistance;\nvarying vec3 v_vMaxAndInverseDistance;\n#endif // TEXTURE_COORDINATES\n\nvoid main()\n{\n vec4 position = czm_computePosition();\n\n#ifdef EXTRUDED_GEOMETRY\n float delta = min(u_globeMinimumAltitude, czm_geometricToleranceOverMeter * length(position.xyz));\n delta *= czm_sceneMode == czm_sceneMode3D ? 1.0 : 0.0;\n\n //extrudeDirection is zero for the top layer\n position = position + vec4(extrudeDirection * delta, 0.0);\n#endif\n\n#ifdef TEXTURE_COORDINATES\n#ifdef SPHERICAL\n v_sphericalExtents = czm_batchTable_sphericalExtents(batchId);\n v_uvMinAndSphericalLongitudeRotation.z = czm_batchTable_longitudeRotation(batchId);\n#else // SPHERICAL\n#ifdef COLUMBUS_VIEW_2D\n vec4 planes2D_high = czm_batchTable_planes2D_HIGH(batchId);\n vec4 planes2D_low = czm_batchTable_planes2D_LOW(batchId);\n\n // If the primitive is split across the IDL (planes2D_high.x > planes2D_high.w):\n // - If this vertex is on the east side of the IDL (position3DLow.y > 0.0, comparison with position3DHigh may produce artifacts)\n // - existing "east" is on the wrong side of the world, far away (planes2D_high/low.w)\n // - so set "east" as beyond the eastmost extent of the projection (idlSplitNewPlaneHiLow)\n vec2 idlSplitNewPlaneHiLow = vec2(EAST_MOST_X_HIGH - (WEST_MOST_X_HIGH - planes2D_high.w), EAST_MOST_X_LOW - (WEST_MOST_X_LOW - planes2D_low.w));\n bool idlSplit = planes2D_high.x > planes2D_high.w && position3DLow.y > 0.0;\n planes2D_high.w = czm_branchFreeTernary(idlSplit, idlSplitNewPlaneHiLow.x, planes2D_high.w);\n planes2D_low.w = czm_branchFreeTernary(idlSplit, idlSplitNewPlaneHiLow.y, planes2D_low.w);\n\n // - else, if this vertex is on the west side of the IDL (position3DLow.y < 0.0)\n // - existing "west" is on the wrong side of the world, far away (planes2D_high/low.x)\n // - so set "west" as beyond the westmost extent of the projection (idlSplitNewPlaneHiLow)\n idlSplit = planes2D_high.x > planes2D_high.w && position3DLow.y < 0.0;\n idlSplitNewPlaneHiLow = vec2(WEST_MOST_X_HIGH - (EAST_MOST_X_HIGH - planes2D_high.x), WEST_MOST_X_LOW - (EAST_MOST_X_LOW - planes2D_low.x));\n planes2D_high.x = czm_branchFreeTernary(idlSplit, idlSplitNewPlaneHiLow.x, planes2D_high.x);\n planes2D_low.x = czm_branchFreeTernary(idlSplit, idlSplitNewPlaneHiLow.y, planes2D_low.x);\n\n vec3 southWestCorner = (czm_modelViewRelativeToEye * czm_translateRelativeToEye(vec3(0.0, planes2D_high.xy), vec3(0.0, planes2D_low.xy))).xyz;\n vec3 northWestCorner = (czm_modelViewRelativeToEye * czm_translateRelativeToEye(vec3(0.0, planes2D_high.x, planes2D_high.z), vec3(0.0, planes2D_low.x, planes2D_low.z))).xyz;\n vec3 southEastCorner = (czm_modelViewRelativeToEye * czm_translateRelativeToEye(vec3(0.0, planes2D_high.w, planes2D_high.y), vec3(0.0, planes2D_low.w, planes2D_low.y))).xyz;\n#else // COLUMBUS_VIEW_2D\n // 3D case has smaller "plane extents," so planes encoded as a 64 bit position and 2 vec3s for distances/direction\n vec3 southWestCorner = (czm_modelViewRelativeToEye * czm_translateRelativeToEye(czm_batchTable_southWest_HIGH(batchId), czm_batchTable_southWest_LOW(batchId))).xyz;\n vec3 northWestCorner = czm_normal * czm_batchTable_northward(batchId) + southWestCorner;\n vec3 southEastCorner = czm_normal * czm_batchTable_eastward(batchId) + southWestCorner;\n#endif // COLUMBUS_VIEW_2D\n\n vec3 eastWard = southEastCorner - southWestCorner;\n float eastExtent = length(eastWard);\n eastWard /= eastExtent;\n\n vec3 northWard = northWestCorner - southWestCorner;\n float northExtent = length(northWard);\n northWard /= northExtent;\n\n v_westPlane = vec4(eastWard, -dot(eastWard, southWestCorner));\n v_southPlane = vec4(northWard, -dot(northWard, southWestCorner));\n v_inversePlaneExtents = vec2(1.0 / eastExtent, 1.0 / northExtent);\n#endif // SPHERICAL\n vec4 uvMinAndExtents = czm_batchTable_uvMinAndExtents(batchId);\n vec4 uMaxVmax = czm_batchTable_uMaxVmax(batchId);\n\n v_uMaxAndInverseDistance = vec3(uMaxVmax.xy, uvMinAndExtents.z);\n v_vMaxAndInverseDistance = vec3(uMaxVmax.zw, uvMinAndExtents.w);\n v_uvMinAndSphericalLongitudeRotation.xy = uvMinAndExtents.xy;\n#endif // TEXTURE_COORDINATES\n\n#ifdef PER_INSTANCE_COLOR\n v_color = czm_batchTable_color(batchId);\n#endif\n\n gl_Position = czm_depthClamp(czm_modelViewProjectionRelativeToEye * position);\n}\n'},936342:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="#ifdef GL_EXT_frag_depth\n#extension GL_EXT_frag_depth : enable\n#endif\n\n#ifdef VECTOR_TILE\nuniform vec4 u_highlightColor;\n#endif\n\nvoid main(void)\n{\n#ifdef VECTOR_TILE\n gl_FragColor = czm_gammaCorrect(u_highlightColor);\n#else\n gl_FragColor = vec4(1.0);\n#endif\n czm_writeDepthClamp();\n}\n"},810286:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="/**\n * @license\n * Copyright (c) 2000-2005, Sean O'Neil (s_p_oneil@hotmail.com)\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * this list of conditions and the following disclaimer.\n * * Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation\n * and/or other materials provided with the distribution.\n * * Neither the name of the project nor the names of its contributors may be\n * used to endorse or promote products derived from this software without\n * specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n *\n * Modifications made by Cesium GS, Inc.\n */\n\n // Code: http://sponeil.net/\n // GPU Gems 2 Article: https://developer.nvidia.com/gpugems/GPUGems2/gpugems2_chapter16.html\n\nconst float Kr = 0.0025;\nconst float Kr4PI = Kr * 4.0 * czm_pi;\nconst float Km = 0.0015;\nconst float Km4PI = Km * 4.0 * czm_pi;\nconst float ESun = 15.0;\nconst float KmESun = Km * ESun;\nconst float KrESun = Kr * ESun;\nconst vec3 InvWavelength = vec3(\n 5.60204474633241, // Red = 1.0 / Math.pow(0.650, 4.0)\n 9.473284437923038, // Green = 1.0 / Math.pow(0.570, 4.0)\n 19.643802610477206); // Blue = 1.0 / Math.pow(0.475, 4.0)\nconst float rayleighScaleDepth = 0.25;\n\nconst int nSamples = 2;\nconst float fSamples = 2.0;\n\nconst float g = -0.95;\nconst float g2 = g * g;\n\n#ifdef COLOR_CORRECT\nuniform vec3 u_hsbShift; // Hue, saturation, brightness\n#endif\n\nuniform vec3 u_radiiAndDynamicAtmosphereColor; // outer radius, inner radius, dynamic atmosphere color flag\n\nfloat scale(float cosAngle)\n{\n float x = 1.0 - cosAngle;\n return rayleighScaleDepth * exp(-0.00287 + x*(0.459 + x*(3.83 + x*(-6.80 + x*5.25))));\n}\n\nvec3 getLightDirection(vec3 positionWC)\n{\n float lightEnum = u_radiiAndDynamicAtmosphereColor.z;\n vec3 lightDirection =\n positionWC * float(lightEnum == 0.0) +\n czm_lightDirectionWC * float(lightEnum == 1.0) +\n czm_sunDirectionWC * float(lightEnum == 2.0);\n return normalize(lightDirection);\n}\n\nvoid calculateRayScatteringFromSpace(in vec3 positionWC, in vec3 ray, in float innerRadius, in float outerRadius, inout float far, out vec3 start, out float startOffset)\n{\n // Calculate the closest intersection of the ray with the outer atmosphere (which is the near point of the ray passing through the atmosphere)\n float cameraHeight = length(positionWC);\n float B = 2.0 * dot(positionWC, ray);\n float C = cameraHeight * cameraHeight - outerRadius * outerRadius;\n float det = max(0.0, B * B - 4.0 * C);\n float near = 0.5 * (-B - sqrt(det));\n\n // Calculate the ray's starting position, then calculate its scattering offset\n start = positionWC + ray * near;\n far -= near;\n float startAngle = dot(ray, start) / outerRadius;\n float startDepth = exp(-1.0 / rayleighScaleDepth);\n startOffset = startDepth * scale(startAngle);\n}\n\nvoid calculateRayScatteringFromGround(in vec3 positionWC, in vec3 ray, in float atmosphereScale, in float innerRadius, out vec3 start, out float startOffset)\n{\n // Calculate the ray's starting position, then calculate its scattering offset\n float cameraHeight = length(positionWC);\n start = positionWC;\n float height = length(start);\n float depth = exp((atmosphereScale / rayleighScaleDepth ) * (innerRadius - cameraHeight));\n float startAngle = dot(ray, start) / height;\n startOffset = depth*scale(startAngle);\n}\n\nczm_raySegment rayEllipsoidIntersection(czm_ray ray, vec3 inverseRadii)\n{\n vec3 o = inverseRadii * (czm_inverseView * vec4(ray.origin, 1.0)).xyz;\n vec3 d = inverseRadii * (czm_inverseView * vec4(ray.direction, 0.0)).xyz;\n\n float a = dot(d, d);\n float b = dot(d, o);\n float c = dot(o, o) - 1.0;\n float discriminant = b * b - a * c;\n if (discriminant < 0.0)\n {\n return czm_emptyRaySegment;\n }\n discriminant = sqrt(discriminant);\n float t1 = (-b - discriminant) / a;\n float t2 = (-b + discriminant) / a;\n\n if (t1 < 0.0 && t2 < 0.0)\n {\n return czm_emptyRaySegment;\n }\n\n if (t1 < 0.0 && t2 >= 0.0)\n {\n t1 = 0.0;\n }\n\n return czm_raySegment(t1, t2);\n}\n\nvec3 getAdjustedPosition(vec3 positionWC, float innerRadius)\n{\n // Adjust the camera position so that atmosphere color looks the same wherever the eye height is the same\n float cameraHeight = czm_eyeHeight + innerRadius;\n return normalize(positionWC) * cameraHeight;\n}\n\nvec3 getTranslucentPosition(vec3 positionWC, vec3 outerPositionWC, float innerRadius, out bool intersectsEllipsoid)\n{\n vec3 directionWC = normalize(outerPositionWC - positionWC);\n vec3 directionEC = czm_viewRotation * directionWC;\n czm_ray viewRay = czm_ray(vec3(0.0), directionEC);\n czm_raySegment raySegment = rayEllipsoidIntersection(viewRay, czm_ellipsoidInverseRadii);\n intersectsEllipsoid = raySegment.start >= 0.0;\n\n if (intersectsEllipsoid)\n {\n return positionWC + raySegment.stop * directionWC;\n }\n\n return getAdjustedPosition(positionWC, innerRadius);\n}\n\nvoid calculateMieColorAndRayleighColor(vec3 outerPositionWC, out vec3 mieColor, out vec3 rayleighColor)\n{\n // Unpack attributes\n float outerRadius = u_radiiAndDynamicAtmosphereColor.x;\n float innerRadius = u_radiiAndDynamicAtmosphereColor.y;\n\n#ifdef GLOBE_TRANSLUCENT\n bool intersectsEllipsoid = false;\n vec3 startPositionWC = getTranslucentPosition(czm_viewerPositionWC, outerPositionWC, innerRadius, intersectsEllipsoid);\n#else\n vec3 startPositionWC = getAdjustedPosition(czm_viewerPositionWC, innerRadius);\n#endif\n\n vec3 lightDirection = getLightDirection(startPositionWC);\n\n // Get the ray from the start position to the outer position and its length (which is the far point of the ray passing through the atmosphere)\n vec3 ray = outerPositionWC - startPositionWC;\n float far = length(ray);\n ray /= far;\n\n float atmosphereScale = 1.0 / (outerRadius - innerRadius);\n\n vec3 start;\n float startOffset;\n\n#ifdef SKY_FROM_SPACE\n#ifdef GLOBE_TRANSLUCENT\n if (intersectsEllipsoid)\n {\n calculateRayScatteringFromGround(startPositionWC, ray, atmosphereScale, innerRadius, start, startOffset);\n }\n else\n {\n calculateRayScatteringFromSpace(startPositionWC, ray, innerRadius, outerRadius, far, start, startOffset);\n }\n#else\n calculateRayScatteringFromSpace(startPositionWC, ray, innerRadius, outerRadius, far, start, startOffset);\n#endif\n#else\n calculateRayScatteringFromGround(startPositionWC, ray, atmosphereScale, innerRadius, start, startOffset);\n#endif\n\n // Initialize the scattering loop variables\n float sampleLength = far / fSamples;\n float scaledLength = sampleLength * atmosphereScale;\n vec3 sampleRay = ray * sampleLength;\n vec3 samplePoint = start + sampleRay * 0.5;\n\n // Now loop through the sample rays\n vec3 frontColor = vec3(0.0, 0.0, 0.0);\n\n for (int i = 0; i czm_epsilon7 ? hsb.z + u_hsbShift.z : 0.0; // brightness\n // Convert shifted hsb back to rgb\n rgb = czm_HSBToRGB(hsb);\n#endif\n\n float outerRadius = u_radiiAndDynamicAtmosphereColor.x;\n float innerRadius = u_radiiAndDynamicAtmosphereColor.y;\n float lightEnum = u_radiiAndDynamicAtmosphereColor.z;\n\n float cameraHeight = czm_eyeHeight + innerRadius;\n\n // Alter alpha based on how close the viewer is to the ground (1.0 = on ground, 0.0 = at edge of atmosphere)\n float atmosphereAlpha = clamp((outerRadius - cameraHeight) / (outerRadius - innerRadius), 0.0, 1.0);\n\n // Alter alpha based on time of day (0.0 = night , 1.0 = day)\n float nightAlpha = (lightEnum != 0.0) ? clamp(dot(normalize(positionWC), lightDirection), 0.0, 1.0) : 1.0;\n atmosphereAlpha *= pow(nightAlpha, 0.5);\n\n vec4 finalColor = vec4(rgb, mix(clamp(rgbExposure.b, 0.0, 1.0), 1.0, atmosphereAlpha) * smoothstep(0.0, 1.0, czm_morphTime));\n\n if (mieColor.b > 1.0)\n {\n // Fade atmosphere below the ellipsoid. As the camera zooms further away from the ellipsoid draw\n // a larger atmosphere ring to cover empty space of lower LOD globe tiles.\n float strength = mieColor.b;\n float minDistance = outerRadius;\n float maxDistance = outerRadius * 3.0;\n float maxStrengthLerp = 1.0 - clamp((maxDistance - cameraHeight) / (maxDistance - minDistance), 0.0, 1.0);\n float maxStrength = mix(100.0, 10000.0, maxStrengthLerp);\n strength = min(strength, maxStrength);\n float alpha = 1.0 - (strength / maxStrength);\n finalColor.a = alpha;\n }\n\n return finalColor;\n}\n"},35532:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="varying vec3 v_outerPositionWC;\n\n#ifndef PER_FRAGMENT_ATMOSPHERE\nvarying vec3 v_mieColor;\nvarying vec3 v_rayleighColor;\n#endif\n\nvoid main (void)\n{\n vec3 toCamera = czm_viewerPositionWC - v_outerPositionWC;\n vec3 lightDirection = getLightDirection(czm_viewerPositionWC);\n vec3 mieColor;\n vec3 rayleighColor;\n\n#ifdef PER_FRAGMENT_ATMOSPHERE\n calculateMieColorAndRayleighColor(v_outerPositionWC, mieColor, rayleighColor);\n#else\n mieColor = v_mieColor;\n rayleighColor = v_rayleighColor;\n#endif\n\n gl_FragColor = calculateFinalColor(czm_viewerPositionWC, toCamera, lightDirection, mieColor, rayleighColor);\n}\n"},479009:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="attribute vec4 position;\n\nvarying vec3 v_outerPositionWC;\n\n#ifndef PER_FRAGMENT_ATMOSPHERE\nvarying vec3 v_mieColor;\nvarying vec3 v_rayleighColor;\n#endif\n\nvoid main(void)\n{\n vec4 positionWC = czm_model * position;\n\n#ifndef PER_FRAGMENT_ATMOSPHERE\n calculateMieColorAndRayleighColor(positionWC.xyz, v_mieColor, v_rayleighColor);\n#endif\n v_outerPositionWC = positionWC.xyz;\n gl_Position = czm_modelViewProjection * position;\n}\n"},808840:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform samplerCube u_cubeMap;\n\nvarying vec3 v_texCoord;\n\nvoid main()\n{\n vec4 color = textureCube(u_cubeMap, normalize(v_texCoord));\n gl_FragColor = vec4(czm_gammaCorrect(color).rgb, czm_morphTime);\n}\n"},717574:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="attribute vec3 position;\n\nvarying vec3 v_texCoord;\n\nvoid main()\n{\n vec3 p = czm_viewRotation * (czm_temeToPseudoFixed * (czm_entireFrustum.y * position));\n gl_Position = czm_projection * vec4(p, 1.0);\n v_texCoord = position.xyz;\n}\n"},426231:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform sampler2D u_texture;\n\nvarying vec2 v_textureCoordinates;\n\nvoid main()\n{\n vec4 color = texture2D(u_texture, v_textureCoordinates);\n gl_FragColor = czm_gammaCorrect(color);\n}\n"},48590:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="uniform float u_radiusTS;\n\nvarying vec2 v_textureCoordinates;\n\nvec2 rotate(vec2 p, vec2 direction)\n{\n return vec2(p.x * direction.x - p.y * direction.y, p.x * direction.y + p.y * direction.x);\n}\n\nvec4 addBurst(vec2 position, vec2 direction, float lengthScalar)\n{\n vec2 rotatedPosition = rotate(position, direction) * vec2(25.0, 0.75);\n float radius = length(rotatedPosition) * lengthScalar;\n float burst = 1.0 - smoothstep(0.0, 0.55, radius);\n return vec4(burst);\n}\n\nvoid main()\n{\n float lengthScalar = 2.0 / sqrt(2.0);\n vec2 position = v_textureCoordinates - vec2(0.5);\n float radius = length(position) * lengthScalar;\n float surface = step(radius, u_radiusTS);\n vec4 color = vec4(vec2(1.0), surface + 0.2, surface);\n\n float glow = 1.0 - smoothstep(0.0, 0.55, radius);\n color.ba += mix(vec2(0.0), vec2(1.0), glow) * 0.75;\n\n vec4 burst = vec4(0.0);\n\n // The following loop has been manually unrolled for speed, to\n // avoid sin() and cos().\n //\n //for (float i = 0.4; i < 3.2; i += 1.047) {\n // vec2 direction = vec2(sin(i), cos(i));\n // burst += 0.4 * addBurst(position, direction, lengthScalar);\n //\n // direction = vec2(sin(i - 0.08), cos(i - 0.08));\n // burst += 0.3 * addBurst(position, direction, lengthScalar);\n //}\n\n burst += 0.4 * addBurst(position, vec2(0.38942, 0.92106), lengthScalar); // angle == 0.4\n burst += 0.4 * addBurst(position, vec2(0.99235, 0.12348), lengthScalar); // angle == 0.4 + 1.047\n burst += 0.4 * addBurst(position, vec2(0.60327, -0.79754), lengthScalar); // angle == 0.4 + 1.047 * 2.0\n\n burst += 0.3 * addBurst(position, vec2(0.31457, 0.94924), lengthScalar); // angle == 0.4 - 0.08\n burst += 0.3 * addBurst(position, vec2(0.97931, 0.20239), lengthScalar); // angle == 0.4 + 1.047 - 0.08\n burst += 0.3 * addBurst(position, vec2(0.66507, -0.74678), lengthScalar); // angle == 0.4 + 1.047 * 2.0 - 0.08\n\n // End of manual loop unrolling.\n\n color += clamp(burst, vec4(0.0), vec4(1.0)) * 0.15;\n\n gl_FragColor = clamp(color, vec4(0.0), vec4(1.0));\n}\n"},180120:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="attribute vec2 direction;\n\nuniform float u_size;\n\nvarying vec2 v_textureCoordinates;\n\nvoid main() \n{\n vec4 position;\n if (czm_morphTime == 1.0)\n {\n position = vec4(czm_sunPositionWC, 1.0);\n }\n else\n {\n position = vec4(czm_sunPositionColumbusView.zxy, 1.0);\n }\n \n vec4 positionEC = czm_view * position;\n vec4 positionWC = czm_eyeToWindowCoordinates(positionEC);\n \n vec2 halfSize = vec2(u_size * 0.5);\n halfSize *= ((direction * 2.0) - 1.0);\n \n gl_Position = czm_viewportOrthographic * vec4(positionWC.xy + halfSize, -positionWC.z, 1.0);\n \n v_textureCoordinates = direction;\n}\n"},129583:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="#ifdef GL_EXT_frag_depth\n#extension GL_EXT_frag_depth : enable\n#endif\n\nvarying vec4 v_startPlaneEC;\nvarying vec4 v_endPlaneEC;\nvarying vec4 v_rightPlaneEC;\nvarying float v_halfWidth;\nvarying vec3 v_volumeUpEC;\n\nuniform vec4 u_highlightColor;\nvoid main()\n{\n float logDepthOrDepth = czm_branchFreeTernary(czm_sceneMode == czm_sceneMode2D, gl_FragCoord.z, czm_unpackDepth(texture2D(czm_globeDepthTexture, gl_FragCoord.xy / czm_viewport.zw)));\n\n // Discard for sky\n if (logDepthOrDepth == 0.0) {\n#ifdef DEBUG_SHOW_VOLUME\n gl_FragColor = vec4(0.0, 0.0, 1.0, 0.5);\n return;\n#else // DEBUG_SHOW_VOLUME\n discard;\n#endif // DEBUG_SHOW_VOLUME\n }\n\n vec4 eyeCoordinate = czm_windowToEyeCoordinates(gl_FragCoord.xy, logDepthOrDepth);\n eyeCoordinate /= eyeCoordinate.w;\n\n float halfMaxWidth = v_halfWidth * czm_metersPerPixel(eyeCoordinate);\n\n // Expand halfMaxWidth if direction to camera is almost perpendicular with the volume's up direction\n halfMaxWidth += halfMaxWidth * (1.0 - dot(-normalize(eyeCoordinate.xyz), v_volumeUpEC));\n\n // Check distance of the eye coordinate against the right-facing plane\n float widthwiseDistance = czm_planeDistance(v_rightPlaneEC, eyeCoordinate.xyz);\n\n // Check eye coordinate against the mitering planes\n float distanceFromStart = czm_planeDistance(v_startPlaneEC, eyeCoordinate.xyz);\n float distanceFromEnd = czm_planeDistance(v_endPlaneEC, eyeCoordinate.xyz);\n\n if (abs(widthwiseDistance) > halfMaxWidth || distanceFromStart < 0.0 || distanceFromEnd < 0.0) {\n#ifdef DEBUG_SHOW_VOLUME\n gl_FragColor = vec4(logDepthOrDepth, 0.0, 0.0, 0.5);\n return;\n#else // DEBUG_SHOW_VOLUME\n discard;\n#endif // DEBUG_SHOW_VOLUME\n }\n gl_FragColor = u_highlightColor;\n\n czm_writeDepthClamp();\n}\n"},135643:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o='attribute vec3 startEllipsoidNormal;\nattribute vec3 endEllipsoidNormal;\nattribute vec4 startPositionAndHeight;\nattribute vec4 endPositionAndHeight;\nattribute vec4 startFaceNormalAndVertexCorner;\nattribute vec4 endFaceNormalAndHalfWidth;\nattribute float a_batchId;\n\nuniform mat4 u_modifiedModelView;\nuniform vec2 u_minimumMaximumVectorHeights;\n\nvarying vec4 v_startPlaneEC;\nvarying vec4 v_endPlaneEC;\nvarying vec4 v_rightPlaneEC;\nvarying float v_halfWidth;\nvarying vec3 v_volumeUpEC;\n\nvoid main()\n{\n // vertex corner IDs\n // 3-----------7\n // /| left /|\n // / | 1 / |\n // 2-----------6 5 end\n // | / | /\n // start |/ right |/\n // 0-----------4\n //\n float isEnd = floor(startFaceNormalAndVertexCorner.w * 0.251); // 0 for front, 1 for end\n float isTop = floor(startFaceNormalAndVertexCorner.w * mix(0.51, 0.19, isEnd)); // 0 for bottom, 1 for top\n\n vec3 forward = endPositionAndHeight.xyz - startPositionAndHeight.xyz;\n vec3 right = normalize(cross(forward, startEllipsoidNormal));\n\n vec4 position = vec4(startPositionAndHeight.xyz, 1.0);\n position.xyz += forward * isEnd;\n\n v_volumeUpEC = czm_normal * normalize(cross(right, forward));\n\n // Push for volume height\n float offset;\n vec3 ellipsoidNormal = mix(startEllipsoidNormal, endEllipsoidNormal, isEnd);\n\n // offset height to create volume\n offset = mix(startPositionAndHeight.w, endPositionAndHeight.w, isEnd);\n offset = mix(u_minimumMaximumVectorHeights.y, u_minimumMaximumVectorHeights.x, isTop) - offset;\n position.xyz += offset * ellipsoidNormal;\n\n // move from RTC to EC\n position = u_modifiedModelView * position;\n right = czm_normal * right;\n\n // Push for width in a direction that is in the start or end plane and in a plane with right\n // N = normalEC ("right-facing" direction for push)\n // R = right\n // p = angle between N and R\n // w = distance to push along R if R == N\n // d = distance to push along N\n //\n // N R\n // { p| } * cos(p) = dot(N, R) = w / d\n // d | |w * d = w / dot(N, R)\n // { | }\n // o---------- polyline segment ----\x3e\n //\n vec3 scratchNormal = mix(-startFaceNormalAndVertexCorner.xyz, endFaceNormalAndHalfWidth.xyz, isEnd);\n scratchNormal = cross(scratchNormal, mix(startEllipsoidNormal, endEllipsoidNormal, isEnd));\n vec3 miterPushNormal = czm_normal * normalize(scratchNormal);\n\n offset = 2.0 * endFaceNormalAndHalfWidth.w * max(0.0, czm_metersPerPixel(position)); // offset = widthEC\n offset = offset / dot(miterPushNormal, right);\n position.xyz += miterPushNormal * (offset * sign(0.5 - mod(startFaceNormalAndVertexCorner.w, 2.0)));\n\n gl_Position = czm_depthClamp(czm_projection * position);\n\n position = u_modifiedModelView * vec4(startPositionAndHeight.xyz, 1.0);\n vec3 startNormalEC = czm_normal * startFaceNormalAndVertexCorner.xyz;\n v_startPlaneEC = vec4(startNormalEC, -dot(startNormalEC, position.xyz));\n v_rightPlaneEC = vec4(right, -dot(right, position.xyz));\n\n position = u_modifiedModelView * vec4(endPositionAndHeight.xyz, 1.0);\n vec3 endNormalEC = czm_normal * endFaceNormalAndHalfWidth.xyz;\n v_endPlaneEC = vec4(endNormalEC, -dot(endNormalEC, position.xyz));\n v_halfWidth = endFaceNormalAndHalfWidth.w;\n}\n'},310871:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="attribute vec4 currentPosition;\nattribute vec4 previousPosition;\nattribute vec4 nextPosition;\nattribute vec2 expandAndWidth;\nattribute float a_batchId;\n\nuniform mat4 u_modifiedModelView;\n\nvoid main()\n{\n float expandDir = expandAndWidth.x;\n float width = abs(expandAndWidth.y) + 0.5;\n bool usePrev = expandAndWidth.y < 0.0;\n\n vec4 p = u_modifiedModelView * currentPosition;\n vec4 prev = u_modifiedModelView * previousPosition;\n vec4 next = u_modifiedModelView * nextPosition;\n\n float angle;\n vec4 positionWC = getPolylineWindowCoordinatesEC(p, prev, next, expandDir, width, usePrev, angle);\n gl_Position = czm_viewportOrthographic * positionWC;\n}\n"},108696:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="attribute vec3 position;\nattribute float a_batchId;\n\nuniform mat4 u_modifiedModelViewProjection;\n\nvoid main()\n{\n gl_Position = czm_depthClamp(u_modifiedModelViewProjection * vec4(position, 1.0));\n}\n"},56625:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="\nvarying vec2 v_textureCoordinates;\n\nvoid main()\n{\n czm_materialInput materialInput;\n \n materialInput.s = v_textureCoordinates.s;\n materialInput.st = v_textureCoordinates;\n materialInput.str = vec3(v_textureCoordinates, 0.0);\n materialInput.normalEC = vec3(0.0, 0.0, -1.0);\n \n czm_material material = czm_getMaterial(materialInput);\n\n gl_FragColor = vec4(material.diffuse + material.emission, material.alpha);\n}\n"},901133:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});const o="attribute vec4 position;\nattribute vec2 textureCoordinates;\n\nvarying vec2 v_textureCoordinates;\n\nvoid main() \n{\n gl_Position = position;\n v_textureCoordinates = textureCoordinates;\n}\n"},614955:(e,n,t)=>{"use strict";t.d(n,{a:()=>o,c:()=>i});var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e,n,t){return e(t={path:n,exports:{},require:function(e,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&t.path)}},t.exports),t.exports}},16325:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});var o=function(e,n){n||(n={});var t,o,r,s,l,c,d,m,u,p,f,h=null==n.cutoff?.25:n.cutoff,v=null==n.radius?8:n.radius,g=n.channel||0;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!n.width||!n.height)throw Error("For raw data width and height should be provided by options");t=n.width,o=n.height,s=e,c=n.stride?n.stride:Math.floor(e.length/t/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(d=(m=e).getContext("2d"),t=m.width,o=m.height,s=(u=d.getImageData(0,0,t,o)).data,c=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(d=e,t=(m=e.canvas).width,o=m.height,s=(u=d.getImageData(0,0,t,o)).data,c=4):window.ImageData&&e instanceof window.ImageData&&(u=e,t=e.width,o=e.height,s=u.data,c=4);if(r=Math.max(t,o),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(l=s,s=Array(t*o),p=0,f=l.length;pb?b:S:SA?A:S);return P},i=1e20;function a(e,n,t,o,i,a,s){for(var l=0;l{"use strict";function o(e,n,t,a,r,s){if(r-a<=t)return;const l=a+r>>1;i(e,n,l,a,r,s%2),o(e,n,t,a,l-1,s+1),o(e,n,t,l+1,r,s+1)}function i(e,n,t,o,r,s){for(;r>o;){if(r-o>600){const a=r-o+1,l=t-o+1,c=Math.log(a),d=.5*Math.exp(2*c/3),m=.5*Math.sqrt(c*d*(a-d)/a)*(l-a/2<0?-1:1);i(e,n,t,Math.max(o,Math.floor(t-l*d/a+m)),Math.min(r,Math.floor(t+(a-l)*d/a+m)),s)}const l=n[2*t+s];let c=o,d=r;for(a(e,n,o,t),n[2*r+s]>l&&a(e,n,o,r);cl;)d--}n[2*o+s]===l?a(e,n,o,d):(d++,a(e,n,d,r)),d<=t&&(o=d+1),t<=d&&(r=d-1)}}function a(e,n,t,o){r(e,t,o),r(n,2*t,2*o),r(n,2*t+1,2*o+1)}function r(e,n,t){const o=e[n];e[n]=e[t],e[t]=o}function s(e,n,t,o){const i=e-t,a=n-o;return i*i+a*a}t.d(n,{Z:()=>d});const l=e=>e[0],c=e=>e[1];class d{constructor(e,n=l,t=c,i=64,a=Float64Array){this.nodeSize=i,this.points=e;const r=e.length<65536?Uint16Array:Uint32Array,s=this.ids=new r(e.length),d=this.coords=new a(2*e.length);for(let o=0;o=t&&c<=i&&d>=o&&d<=a&&l.push(e[r]);continue}const f=Math.floor((p+u)/2);c=n[2*f],d=n[2*f+1],c>=t&&c<=i&&d>=o&&d<=a&&l.push(e[f]);const h=(m+1)%2;(0===m?t<=c:o<=d)&&(s.push(p),s.push(f-1),s.push(h)),(0===m?i>=c:a>=d)&&(s.push(f+1),s.push(u),s.push(h))}return l}(this.ids,this.coords,e,n,t,o,this.nodeSize)}within(e,n,t){return function(e,n,t,o,i,a){const r=[0,e.length-1,0],l=[],c=i*i;for(;r.length;){const d=r.pop(),m=r.pop(),u=r.pop();if(m-u<=a){for(let i=u;i<=m;i++)s(n[2*i],n[2*i+1],t,o)<=c&&l.push(e[i]);continue}const p=Math.floor((u+m)/2),f=n[2*p],h=n[2*p+1];s(f,h,t,o)<=c&&l.push(e[p]);const v=(d+1)%2;(0===d?t-i<=f:o-i<=h)&&(r.push(u),r.push(p-1),r.push(v)),(0===d?t+i>=f:o+i>=h)&&(r.push(p+1),r.push(m),r.push(v))}return l}(this.ids,this.coords,e,n,t,this.nodeSize)}}},376308:(e,n,t)=>{"use strict";function o(e,n,t,o,a){i(e,n,t||0,o||e.length-1,a||r)}function i(e,n,t,o,r){for(;o>t;){if(o-t>600){var s=o-t+1,l=n-t+1,c=Math.log(s),d=.5*Math.exp(2*c/3),m=.5*Math.sqrt(c*d*(s-d)/s)*(l-s/2<0?-1:1);i(e,n,Math.max(t,Math.floor(n-l*d/s+m)),Math.min(o,Math.floor(n+(s-l)*d/s+m)),r)}var u=e[n],p=t,f=o;for(a(e,t,n),r(e[o],u)>0&&a(e,t,o);p0;)f--}0===r(e[t],u)?a(e,t,f):a(e,++f,o),f<=n&&(t=f+1),n<=f&&(o=f-1)}}function a(e,n,t){var o=e[n];e[n]=e[t],e[t]=o}function r(e,n){return en?1:0}t.d(n,{Z:()=>s});class s{constructor(e=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 n=this.data;const t=[];if(!_(e,n))return t;const o=this.toBBox,i=[];for(;n;){for(let a=0;a=0&&i[n].children.length>this._maxEntries;)this._split(i,n),n--;this._adjustParentBBoxes(o,i,n)}_split(e,n){const t=e[n],o=t.children.length,i=this._minEntries;this._chooseSplitAxis(t,i,o);const a=this._chooseSplitIndex(t,i,o),r=x(t.children.splice(a,t.children.length-a));r.height=t.height,r.leaf=t.leaf,c(t,this.toBBox),c(r,this.toBBox),n?e[n-1].children.push(r):this._splitRoot(t,r)}_splitRoot(e,n){this.data=x([e,n]),this.data.height=e.height+1,this.data.leaf=!1,c(this.data,this.toBBox)}_chooseSplitIndex(e,n,t){let o,i=1/0,a=1/0;for(let r=n;r<=t-n;r++){const n=d(e,0,r,this.toBBox),s=d(e,r,t,this.toBBox),l=v(n,s),c=f(n)+f(s);l=n;o--){const n=e.children[o];m(r,e.leaf?i(n):n),s+=h(r)}return s}_adjustParentBBoxes(e,n,t){for(let o=t;o>=0;o--)m(n[o],e)}_condense(e){for(let n,t=e.length-1;t>=0;t--)0===e[t].children.length?t>0?(n=e[t-1].children,n.splice(n.indexOf(e[t]),1)):this.clear():c(e[t],this.toBBox)}}function l(e,n,t){if(!t)return n.indexOf(e);for(let o=0;o=e.minX&&n.maxY>=e.minY}function x(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function C(e,n,t,i,a){const r=[n,t];for(;r.length;){if((t=r.pop())-(n=r.pop())<=i)continue;const s=n+Math.ceil((t-n)/i/2)*i;o(e,s,n,t,a),r.push(n,s,s,t)}}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/5916.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt b/geonode_mapstore_client/static/mapstore/dist/js/5916.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/5916.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt rename to geonode_mapstore_client/static/mapstore/dist/js/5916.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt diff --git a/geonode_mapstore_client/static/mapstore/dist/js/59173.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/59173.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/59173.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/59173.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/59350.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/59350.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/59350.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/59350.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/5950.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/5950.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/5950.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/5950.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/59615.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/59615.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/59615.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/59615.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/59637.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/59637.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/59637.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/59637.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/59645.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/59645.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/59645.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/59645.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/59698.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/59698.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/59698.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/59698.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/59718.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/59718.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/59718.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/59718.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/59931.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/59931.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/59931.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/59931.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/59937.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/59937.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/59937.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/59937.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/60177.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/60177.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/60177.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/60177.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/6030.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/6030.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/6030.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/6030.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/60318.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/60318.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/60318.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/60318.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/60533.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/60533.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/60533.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/60533.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/60568.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/60568.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/60568.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/60568.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/60602.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/60602.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/60602.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/60602.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/60617.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/60617.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/60617.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/60617.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/60619.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/60619.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/60619.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/60619.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/60622.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/60622.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/60622.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/60622.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/60770.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/60770.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/60770.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/60770.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/60861.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/60861.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/60861.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/60861.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/60872.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/60872.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/60872.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/60872.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61052.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61052.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61052.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61052.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61199.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61199.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61199.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61199.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61233.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61233.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61233.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61233.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61250.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61250.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61250.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61250.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61260.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61260.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61260.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61260.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61332.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61332.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61332.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61332.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61399.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61399.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61399.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61399.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61699.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61699.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61699.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61699.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61715.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61715.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61715.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61715.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61845.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61845.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61845.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61845.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61853.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61853.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61853.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61853.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61911.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61911.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61911.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61911.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61958.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61958.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61958.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61958.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/61969.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/61969.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/61969.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/61969.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/62081.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/62081.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/62081.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/62081.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/62154.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/62154.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/62154.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/62154.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/62358.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/62358.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/62358.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/62358.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/62412.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/62412.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/62412.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/62412.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/62521.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/62521.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/62521.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/62521.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/62702.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/62702.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/62702.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/62702.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/62739.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/62739.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/62739.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/62739.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/62752.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/62752.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/62752.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/62752.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/62816.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/62816.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/62816.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/62816.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/62903.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/62903.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/62903.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/62903.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63004.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63004.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63004.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63004.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63151.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63151.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63151.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63151.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63187.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63187.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63187.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63187.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63367.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63367.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63367.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63367.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63378.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63378.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63378.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63378.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63383.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63383.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63383.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63383.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63474.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63474.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63474.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63474.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63601.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63601.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63601.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63601.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63643.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63643.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63643.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63643.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63650.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63650.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63650.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63650.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/6368.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/6368.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/6368.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/6368.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63858.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63858.74fb1733f89b05e9e60d.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/js/63858.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63858.74fb1733f89b05e9e60d.chunk.js index a8b145879c..4202eaf2d1 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/63858.b32b32d2650f7cc681c9.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/63858.74fb1733f89b05e9e60d.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 63858.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt */ +/*! For license information please see 63858.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[63858],{318409:(t,e,i)=>{"use strict";i.d(e,{Z:()=>s});var o=i(923645),n=i.n(o)()((function(t){return t[1]}));n.push([t.id,'.msgapi .vis .overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10}.msgapi .vis-active{box-shadow:0 0 10px #86d5f8}.msgapi .vis [class*=span]{min-height:0;width:auto}.msgapi div.vis-configuration{position:relative;display:block;float:left;font-size:12px}.msgapi div.vis-configuration-wrapper{display:block;width:700px}.msgapi div.vis-configuration-wrapper::after{clear:both;content:"";display:block}.msgapi div.vis-configuration.vis-config-option-container{display:block;width:495px;background-color:#fff;border:2px solid #f7f8fa;border-radius:4px;margin-top:20px;left:10px;padding-left:5px}.msgapi div.vis-configuration.vis-config-button{display:block;width:495px;height:25px;vertical-align:middle;line-height:25px;background-color:#f7f8fa;border:2px solid #ceced0;border-radius:4px;margin-top:20px;left:10px;padding-left:5px;cursor:pointer;margin-bottom:30px}.msgapi div.vis-configuration.vis-config-button.hover{background-color:#4588e6;border:2px solid #214373;color:#fff}.msgapi div.vis-configuration.vis-config-item{display:block;float:left;width:495px;height:25px;vertical-align:middle;line-height:25px}.msgapi div.vis-configuration.vis-config-item.vis-config-s2{left:10px;background-color:#f7f8fa;padding-left:5px;border-radius:3px}.msgapi div.vis-configuration.vis-config-item.vis-config-s3{left:20px;background-color:#e4e9f0;padding-left:5px;border-radius:3px}.msgapi div.vis-configuration.vis-config-item.vis-config-s4{left:30px;background-color:#cfd8e6;padding-left:5px;border-radius:3px}.msgapi div.vis-configuration.vis-config-header{font-size:18px;font-weight:700}.msgapi div.vis-configuration.vis-config-label{width:120px;height:25px;line-height:25px}.msgapi div.vis-configuration.vis-config-label.vis-config-s3{width:110px}.msgapi div.vis-configuration.vis-config-label.vis-config-s4{width:100px}.msgapi div.vis-configuration.vis-config-colorBlock{top:1px;width:30px;height:19px;border:1px solid #444;border-radius:2px;padding:0;margin:0;cursor:pointer}.msgapi input.vis-configuration.vis-config-checkbox{left:-5px}.msgapi input.vis-configuration.vis-config-rangeinput{position:relative;top:-5px;width:60px;padding:1px;margin:0;pointer-events:none}.msgapi input.vis-configuration.vis-config-range{-webkit-appearance:none;border:0 solid #fff;background-color:rgba(0,0,0,0);width:300px;height:20px}.msgapi input.vis-configuration.vis-config-range::-webkit-slider-runnable-track{width:300px;height:5px;background:#dedede;background:-moz-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#dedede),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-o-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:linear-gradient(to bottom,#dedede 0,#c8c8c8 99%);border:1px solid #999;box-shadow:#aaa 0 0 3px 0;border-radius:3px}.msgapi input.vis-configuration.vis-config-range::-webkit-slider-thumb{-webkit-appearance:none;border:1px solid #14334b;height:17px;width:17px;border-radius:50%;background:#3876c2;background:-moz-linear-gradient(top,#3876c2 0,#385380 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#3876c2),color-stop(100%,#385380));background:-webkit-linear-gradient(top,#3876c2 0,#385380 100%);background:-o-linear-gradient(top,#3876c2 0,#385380 100%);background:-ms-linear-gradient(top,#3876c2 0,#385380 100%);background:linear-gradient(to bottom,#3876c2 0,#385380 100%);box-shadow:#111927 0 0 1px 0;margin-top:-7px}.msgapi input.vis-configuration.vis-config-range:focus{outline:0}.msgapi input.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track{background:#9d9d9d;background:-moz-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#9d9d9d),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:-o-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:linear-gradient(to bottom,#9d9d9d 0,#c8c8c8 99%)}.msgapi input.vis-configuration.vis-config-range::-moz-range-track{width:300px;height:10px;background:#dedede;background:-moz-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#dedede),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-o-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:linear-gradient(to bottom,#dedede 0,#c8c8c8 99%);border:1px solid #999;box-shadow:#aaa 0 0 3px 0;border-radius:3px}.msgapi input.vis-configuration.vis-config-range::-moz-range-thumb{border:none;height:16px;width:16px;border-radius:50%;background:#385380}.msgapi input.vis-configuration.vis-config-range:-moz-focusring{outline:1px solid #fff;outline-offset:-1px}.msgapi input.vis-configuration.vis-config-range::-ms-track{width:300px;height:5px;background:0 0;border-color:transparent;border-width:6px 0;color:transparent}.msgapi input.vis-configuration.vis-config-range::-ms-fill-lower{background:#777;border-radius:10px}.msgapi input.vis-configuration.vis-config-range::-ms-fill-upper{background:#ddd;border-radius:10px}.msgapi input.vis-configuration.vis-config-range::-ms-thumb{border:none;height:16px;width:16px;border-radius:50%;background:#385380}.msgapi input.vis-configuration.vis-config-range:focus::-ms-fill-lower{background:#888}.msgapi input.vis-configuration.vis-config-range:focus::-ms-fill-upper{background:#ccc}.msgapi .vis-configuration-popup{position:absolute;background:rgba(57,76,89,.85);border:2px solid #f2faff;line-height:30px;height:30px;width:150px;text-align:center;color:#fff;font-size:14px;border-radius:4px;-webkit-transition:opacity .3s ease-in-out;-moz-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}.msgapi .vis-configuration-popup:after,.msgapi .vis-configuration-popup:before{left:100%;top:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.msgapi .vis-configuration-popup:after{border-color:rgba(136,183,213,0);border-left-color:rgba(57,76,89,.85);border-width:8px;margin-top:-8px}.msgapi .vis-configuration-popup:before{border-color:rgba(194,225,245,0);border-left-color:#f2faff;border-width:12px;margin-top:-12px}.msgapi div.vis-tooltip{position:absolute;visibility:hidden;padding:5px;white-space:nowrap;font-family:verdana;font-size:14px;color:#000;background-color:#f5f4ed;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;border:1px solid #808074;box-shadow:3px 3px 10px rgba(0,0,0,.2);pointer-events:none;z-index:5}.msgapi .vis-current-time{background-color:#ff7f6e;width:2px;z-index:1;pointer-events:none}.msgapi .vis-rolling-mode-btn{height:40px;width:40px;position:absolute;top:7px;right:20px;border-radius:50%;font-size:28px;cursor:pointer;opacity:.8;color:#fff;font-weight:700;text-align:center;background:#3876c2}.msgapi .vis-rolling-mode-btn:before{content:"\\26F6"}.msgapi .vis-rolling-mode-btn:hover{opacity:1}.msgapi .vis-custom-time{background-color:#6e94ff;width:2px;cursor:move;z-index:1}.msgapi .vis-panel.vis-background.vis-horizontal .vis-grid.vis-horizontal{position:absolute;width:100%;height:0;border-bottom:1px solid}.msgapi .vis-panel.vis-background.vis-horizontal .vis-grid.vis-minor{border-color:#e5e5e5}.msgapi .vis-panel.vis-background.vis-horizontal .vis-grid.vis-major{border-color:#bfbfbf}.msgapi .vis-data-axis .vis-y-axis.vis-major{width:100%;position:absolute;color:#4d4d4d;white-space:nowrap}.msgapi .vis-data-axis .vis-y-axis.vis-major.vis-measure{padding:0;margin:0;border:0;visibility:hidden;width:auto}.msgapi .vis-data-axis .vis-y-axis.vis-minor{position:absolute;width:100%;color:#bebebe;white-space:nowrap}.msgapi .vis-data-axis .vis-y-axis.vis-minor.vis-measure{padding:0;margin:0;border:0;visibility:hidden;width:auto}.msgapi .vis-data-axis .vis-y-axis.vis-title{position:absolute;color:#4d4d4d;white-space:nowrap;bottom:20px;text-align:center}.msgapi .vis-data-axis .vis-y-axis.vis-title.vis-measure{padding:0;margin:0;visibility:hidden;width:auto}.msgapi .vis-data-axis .vis-y-axis.vis-title.vis-left{bottom:0;-webkit-transform-origin:left top;-moz-transform-origin:left top;-ms-transform-origin:left top;-o-transform-origin:left top;transform-origin:left bottom;-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-ms-transform:rotate(-90deg);-o-transform:rotate(-90deg);transform:rotate(-90deg)}.msgapi .vis-data-axis .vis-y-axis.vis-title.vis-right{bottom:0;-webkit-transform-origin:right bottom;-moz-transform-origin:right bottom;-ms-transform-origin:right bottom;-o-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}.msgapi .vis-legend{background-color:rgba(247,252,255,.65);padding:5px;border:1px solid #b3b3b3;box-shadow:2px 2px 10px rgba(154,154,154,.55)}.msgapi .vis-legend-text{white-space:nowrap;display:inline-block}.msgapi .vis-item{position:absolute;color:#1a1a1a;border-color:#97b0f8;border-width:1px;background-color:#d5ddf6;display:inline-block;z-index:1}.msgapi .vis-item.vis-selected{border-color:#ffc200;background-color:#fff785;z-index:2}.msgapi .vis-editable.vis-selected{cursor:move}.msgapi .vis-item.vis-point.vis-selected{background-color:#fff785}.msgapi .vis-item.vis-box{text-align:center;border-style:solid;border-radius:2px}.msgapi .vis-item.vis-point{background:0 0}.msgapi .vis-item.vis-dot{position:absolute;padding:0;border-width:4px;border-style:solid;border-radius:4px}.msgapi .vis-item.vis-range{border-style:solid;border-radius:2px;box-sizing:border-box}.msgapi .vis-item.vis-background{border:none;background-color:rgba(213,221,246,.4);box-sizing:border-box;padding:0;margin:0}.msgapi .vis-item .vis-item-overflow{position:relative;width:100%;height:100%;padding:0;margin:0;overflow:hidden}.msgapi .vis-item-visible-frame{white-space:nowrap}.msgapi .vis-item.vis-range .vis-item-content{position:relative;display:inline-block}.msgapi .vis-item.vis-background .vis-item-content{position:absolute;display:inline-block}.msgapi .vis-item.vis-line{padding:0;position:absolute;width:0;border-left-width:1px;border-left-style:solid}.msgapi .vis-item .vis-item-content{white-space:nowrap;box-sizing:border-box;padding:5px}.msgapi .vis-item .vis-onUpdateTime-tooltip{position:absolute;background:#4f81bd;color:#fff;width:200px;text-align:center;white-space:nowrap;padding:5px;border-radius:1px;transition:.4s;-o-transition:.4s;-moz-transition:.4s;-webkit-transition:.4s}.msgapi .vis-item .vis-delete,.msgapi .vis-item .vis-delete-rtl{position:absolute;top:0;width:24px;height:24px;box-sizing:border-box;padding:0 5px;cursor:pointer;-webkit-transition:background .2s linear;-moz-transition:background .2s linear;-ms-transition:background .2s linear;-o-transition:background .2s linear;transition:background .2s linear}.msgapi .vis-item .vis-delete{right:-24px}.msgapi .vis-item .vis-delete-rtl{left:-24px}.msgapi .vis-item .vis-delete-rtl:after,.msgapi .vis-item .vis-delete:after{content:"\\00D7";color:red;font-family:arial,sans-serif;font-size:22px;font-weight:700;-webkit-transition:color .2s linear;-moz-transition:color .2s linear;-ms-transition:color .2s linear;-o-transition:color .2s linear;transition:color .2s linear}.msgapi .vis-item .vis-delete-rtl:hover,.msgapi .vis-item .vis-delete:hover{background:red}.msgapi .vis-item .vis-delete-rtl:hover:after,.msgapi .vis-item .vis-delete:hover:after{color:#fff}.msgapi .vis-item .vis-drag-center{position:absolute;width:100%;height:100%;top:0;left:0;cursor:move}.msgapi .vis-item.vis-range .vis-drag-left{position:absolute;width:24px;max-width:20%;min-width:2px;height:100%;top:0;left:-4px;cursor:w-resize}.msgapi .vis-item.vis-range .vis-drag-right{position:absolute;width:24px;max-width:20%;min-width:2px;height:100%;top:0;right:-4px;cursor:e-resize}.msgapi .vis-range.vis-item.vis-readonly .vis-drag-left,.msgapi .vis-range.vis-item.vis-readonly .vis-drag-right{cursor:auto}.msgapi .vis-itemset{position:relative;padding:0;margin:0;box-sizing:border-box}.msgapi .vis-itemset .vis-background,.msgapi .vis-itemset .vis-foreground{position:absolute;width:100%;height:100%;overflow:visible}.msgapi .vis-axis{position:absolute;width:100%;height:0;left:0;z-index:1}.msgapi .vis-foreground .vis-group{position:relative;box-sizing:border-box;border-bottom:1px solid #bfbfbf}.msgapi .vis-foreground .vis-group:last-child{border-bottom:none}.msgapi .vis-nesting-group{cursor:pointer}.msgapi .vis-nested-group{background:#f5f5f5}.msgapi .vis-label.vis-nesting-group.expanded:before{content:"\\25BC"}.msgapi .vis-label.vis-nesting-group.collapsed-rtl:before{content:"\\25C0"}.msgapi .vis-label.vis-nesting-group.collapsed:before{content:"\\25B6"}.msgapi .vis-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10}.msgapi .vis-labelset{position:relative;overflow:hidden;box-sizing:border-box}.msgapi .vis-labelset .vis-label{position:relative;left:0;top:0;width:100%;color:#4d4d4d;box-sizing:border-box}.msgapi .vis-labelset .vis-label{border-bottom:1px solid #bfbfbf}.msgapi .vis-labelset .vis-label.draggable{cursor:pointer}.msgapi .vis-labelset .vis-label:last-child{border-bottom:none}.msgapi .vis-labelset .vis-label .vis-inner{display:inline-block;padding:5px}.msgapi .vis-labelset .vis-label .vis-inner.vis-hidden{padding:0}.msgapi .vis-panel{position:absolute;padding:0;margin:0;box-sizing:border-box}.msgapi .vis-panel.vis-bottom,.msgapi .vis-panel.vis-center,.msgapi .vis-panel.vis-left,.msgapi .vis-panel.vis-right,.msgapi .vis-panel.vis-top{border:1px #bfbfbf}.msgapi .vis-panel.vis-center,.msgapi .vis-panel.vis-left,.msgapi .vis-panel.vis-right{border-top-style:solid;border-bottom-style:solid;overflow:hidden}.msgapi .vis-left.vis-panel.vis-vertical-scroll,.msgapi .vis-right.vis-panel.vis-vertical-scroll{height:100%;overflow-x:hidden;overflow-y:scroll}.msgapi .vis-left.vis-panel.vis-vertical-scroll{direction:rtl}.msgapi .vis-left.vis-panel.vis-vertical-scroll .vis-content{direction:ltr}.msgapi .vis-right.vis-panel.vis-vertical-scroll{direction:ltr}.msgapi .vis-right.vis-panel.vis-vertical-scroll .vis-content{direction:rtl}.msgapi .vis-panel.vis-bottom,.msgapi .vis-panel.vis-center,.msgapi .vis-panel.vis-top{border-left-style:solid;border-right-style:solid}.msgapi .vis-background{overflow:hidden}.msgapi .vis-panel>.vis-content{position:relative}.msgapi .vis-panel .vis-shadow{position:absolute;width:100%;height:1px;box-shadow:0 0 10px rgba(0,0,0,.8)}.msgapi .vis-panel .vis-shadow.vis-top{top:-1px;left:0}.msgapi .vis-panel .vis-shadow.vis-bottom{bottom:-1px;left:0}.msgapi .vis-graph-group0{fill:#4f81bd;fill-opacity:0;stroke-width:2px;stroke:#4f81bd}.msgapi .vis-graph-group1{fill:#f79646;fill-opacity:0;stroke-width:2px;stroke:#f79646}.msgapi .vis-graph-group2{fill:#8c51cf;fill-opacity:0;stroke-width:2px;stroke:#8c51cf}.msgapi .vis-graph-group3{fill:#75c841;fill-opacity:0;stroke-width:2px;stroke:#75c841}.msgapi .vis-graph-group4{fill:#ff0100;fill-opacity:0;stroke-width:2px;stroke:#ff0100}.msgapi .vis-graph-group5{fill:#37d8e6;fill-opacity:0;stroke-width:2px;stroke:#37d8e6}.msgapi .vis-graph-group6{fill:#042662;fill-opacity:0;stroke-width:2px;stroke:#042662}.msgapi .vis-graph-group7{fill:#00ff26;fill-opacity:0;stroke-width:2px;stroke:#00ff26}.msgapi .vis-graph-group8{fill:#f0f;fill-opacity:0;stroke-width:2px;stroke:#f0f}.msgapi .vis-graph-group9{fill:#8f3938;fill-opacity:0;stroke-width:2px;stroke:#8f3938}.msgapi .vis-timeline .vis-fill{fill-opacity:.1;stroke:none}.msgapi .vis-timeline .vis-bar{fill-opacity:.5;stroke-width:1px}.msgapi .vis-timeline .vis-point{stroke-width:2px;fill-opacity:1}.msgapi .vis-timeline .vis-legend-background{stroke-width:1px;fill-opacity:.9;fill:#fff;stroke:#c2c2c2}.msgapi .vis-timeline .vis-outline{stroke-width:1px;fill-opacity:1;fill:#fff;stroke:#e5e5e5}.msgapi .vis-timeline .vis-icon-fill{fill-opacity:.3;stroke:none}.msgapi .vis-time-axis{position:relative;overflow:hidden}.msgapi .vis-time-axis.vis-foreground{top:0;left:0;width:100%}.msgapi .vis-time-axis.vis-background{position:absolute;top:0;left:0;width:100%;height:100%}.msgapi .vis-time-axis .vis-text{position:absolute;color:#4d4d4d;padding:3px;overflow:hidden;box-sizing:border-box;white-space:nowrap}.msgapi .vis-time-axis .vis-text.vis-measure{position:absolute;padding-left:0;padding-right:0;margin-left:0;margin-right:0;visibility:hidden}.msgapi .vis-time-axis .vis-grid.vis-vertical{position:absolute;border-left:1px solid}.msgapi .vis-time-axis .vis-grid.vis-vertical-rtl{position:absolute;border-right:1px solid}.msgapi .vis-time-axis .vis-grid.vis-minor{border-color:#e5e5e5}.msgapi .vis-time-axis .vis-grid.vis-major{border-color:#bfbfbf}.msgapi .vis-timeline{position:relative;border:1px solid #bfbfbf;overflow:hidden;padding:0;margin:0;box-sizing:border-box}',""]);const s=n},554290:(t,e,i)=>{var o=i(406557);t.exports=function(t){return"function"==typeof t?t:o}},23279:(t,e,i)=>{var o=i(513218),n=i(707771),s=i(14841),r=Math.max,a=Math.min;t.exports=function(t,e,i){var h,d,l,u,p,c,m=0,f=!1,g=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var i=h,o=d;return h=d=void 0,m=e,u=t.apply(o,i)}function b(t){return m=t,p=setTimeout(w,e),f?y(t):u}function _(t){var i=t-c;return void 0===c||i>=e||i<0||g&&t-m>=l}function w(){var t=n();if(_(t))return x(t);p=setTimeout(w,function(t){var i=e-(t-c);return g?a(i,l-(t-m)):i}(t))}function x(t){return p=void 0,v&&h?y(t):(h=d=void 0,u)}function D(){var t=n(),i=_(t);if(h=arguments,d=this,c=t,i){if(void 0===p)return b(c);if(g)return clearTimeout(p),p=setTimeout(w,e),y(c)}return void 0===p&&(p=setTimeout(w,e)),u}return e=s(e)||0,o(i)&&(f=!!i.leading,l=(g="maxWait"in i)?r(s(i.maxWait)||0,e):l,v="trailing"in i?!!i.trailing:v),D.cancel=function(){void 0!==p&&clearTimeout(p),m=0,h=c=d=p=void 0},D.flush=function(){return void 0===p?u:x(n())},D}},170735:(t,e,i)=>{var o=i(920731),n=i(121078),s=i(267206),r=i(105976),a=i(229246),h=i(610928),d=r((function(t,e){var i=h(e);return a(i)&&(i=void 0),a(t)?o(t,n(e,1,a,!0),s(i,2)):[]}));t.exports=d},966073:(t,e,i)=>{t.exports=i(784486)},784486:(t,e,i)=>{var o=i(477412),n=i(989881),s=i(554290),r=i(701469);t.exports=function(t,e){return(r(t)?o:n)(t,s(e))}},371843:(t,e,i)=>{var o=i(829932),n=i(247556),s=i(267206),r=i(105976),a=i(24387),h=i(610928),d=r((function(t){var e=h(t),i=o(t,a);return e===h(i)?e=void 0:i.pop(),i.length&&i[0]===t[0]?n(i,s(e,2)):[]}));t.exports=d},707771:(t,e,i)=>{var o=i(555639);t.exports=function(){return o.Date.now()}},414880:(t,e,i)=>{"use strict";var o=i(893379),n=i.n(o),s=i(318409);n()(s.Z,{insert:"head",singleton:!1}),s.Z.locals},816307:function(t){"use strict";t.exports=function(t){function e(o){if(i[o])return i[o].exports;var n=i[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,o){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=85)}([function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}function n(t,e,i,o){var n=!1;!0===o&&(n=null===e[i]&&void 0!==t[i]),n?delete t[i]:t[i]=e[i]}var s=o(i(86)),r=o(i(43)),a=o(i(4)),h=o(i(1)),d=i(3),l=i(126);e.isNumber=function(t){return t instanceof Number||"number"==typeof t},e.recursiveDOMDelete=function(t){if(t)for(;!0===t.hasChildNodes();)e.recursiveDOMDelete(t.firstChild),t.removeChild(t.firstChild)},e.giveRange=function(t,e,i,o){if(e==t)return.5;var n=1/(e-t);return Math.max(0,(o-t)*n)},e.isString=function(t){return t instanceof String||"string"==typeof t},e.isDate=function(t){if(t instanceof Date)return!0;if(e.isString(t)){if(u.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1},e.randomUUID=function(){return l.v4()},e.assignAllKeys=function(t,e){for(var i in t)t.hasOwnProperty(i)&&"object"!==(0,h.default)(t[i])&&(t[i]=e)},e.fillIfDefined=function(t,i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var s in t)void 0!==i[s]&&(null===i[s]||"object"!==(0,h.default)(i[s])?n(t,i,s,o):"object"===(0,h.default)(t[s])&&e.fillIfDefined(t[s],i[s],o))},e.extend=function(t,e){for(var i=1;i3&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(o))throw new TypeError("Arrays are not supported by deepExtend");for(var r=0;r3&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(o))throw new TypeError("Arrays are not supported by deepExtend");for(var r in o)if(o.hasOwnProperty(r)&&-1===t.indexOf(r))if(o[r]&&o[r].constructor===Object)void 0===i[r]&&(i[r]={}),i[r].constructor===Object?e.deepExtend(i[r],o[r]):n(i,o,r,s);else if(Array.isArray(o[r])){i[r]=[];for(var a=0;a2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var r in i)if(i.hasOwnProperty(r)||!0===o)if(i[r]&&i[r].constructor===Object)void 0===t[r]&&(t[r]={}),t[r].constructor===Object?e.deepExtend(t[r],i[r],o):n(t,i,r,s);else if(Array.isArray(i[r])){t[r]=[];for(var a=0;a=0&&(e="DOMMouseScroll"),t.addEventListener(e,i,o)):t.attachEvent("on"+e,i)},e.removeEventListener=function(t,e,i,o){t.removeEventListener?(void 0===o&&(o=!1),"mousewheel"===e&&navigator.userAgent.indexOf("Firefox")>=0&&(e="DOMMouseScroll"),t.removeEventListener(e,i,o)):t.detachEvent("on"+e,i)},e.preventDefault=function(t){t||(t=window.event),t.preventDefault?t.preventDefault():t.returnValue=!1},e.getTarget=function(t){var e;return t||(t=window.event),t.target?e=t.target:t.srcElement&&(e=t.srcElement),null!=e.nodeType&&3==e.nodeType&&(e=e.parentNode),e},e.hasParent=function(t,e){for(var i=t;i;){if(i===e)return!0;i=i.parentNode}return!1},e.option={},e.option.asBoolean=function(t,e){return"function"==typeof t&&(t=t()),null!=t?0!=t:e||null},e.option.asNumber=function(t,e){return"function"==typeof t&&(t=t()),null!=t?Number(t)||e||null:e||null},e.option.asString=function(t,e){return"function"==typeof t&&(t=t()),null!=t?String(t):e||null},e.option.asSize=function(t,i){return"function"==typeof t&&(t=t()),e.isString(t)?t:e.isNumber(t)?t+"px":i||null},e.option.asElement=function(t,e){return"function"==typeof t&&(t=t()),t||e||null},e.hexToRGB=function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,i,o){return e+e+i+i+o+o}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null},e.overrideOpacity=function(t,i){var o;return-1!=t.indexOf("rgba")?t:-1!=t.indexOf("rgb")?"rgba("+(o=t.substr(t.indexOf("(")+1).replace(")","").split(","))[0]+","+o[1]+","+o[2]+","+i+")":null==(o=e.hexToRGB(t))?t:"rgba("+o.r+","+o.g+","+o.b+","+i+")"},e.RGBToHex=function(t,e,i){return"#"+((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1)},e.parseColor=function(t){var i;if(!0===e.isString(t)){if(!0===e.isValidRGB(t)){var o=t.substr(4).substr(0,t.length-5).split(",").map((function(t){return parseInt(t)}));t=e.RGBToHex(o[0],o[1],o[2])}if(!0===e.isValidHex(t)){var n=e.hexToHSV(t),s={h:n.h,s:.8*n.s,v:Math.min(1,1.02*n.v)},r={h:n.h,s:Math.min(1,1.25*n.s),v:.8*n.v},a=e.HSVToHex(r.h,r.s,r.v),h=e.HSVToHex(s.h,s.s,s.v);i={background:t,border:a,highlight:{background:h,border:a},hover:{background:h,border:a}}}else i={background:t,border:t,highlight:{background:t,border:t},hover:{background:t,border:t}}}else(i={}).background=t.background||void 0,i.border=t.border||void 0,e.isString(t.highlight)?i.highlight={border:t.highlight,background:t.highlight}:(i.highlight={},i.highlight.background=t.highlight&&t.highlight.background||void 0,i.highlight.border=t.highlight&&t.highlight.border||void 0),e.isString(t.hover)?i.hover={border:t.hover,background:t.hover}:(i.hover={},i.hover.background=t.hover&&t.hover.background||void 0,i.hover.border=t.hover&&t.hover.border||void 0);return i},e.RGBToHSV=function(t,e,i){t/=255,e/=255,i/=255;var o=Math.min(t,Math.min(e,i)),n=Math.max(t,Math.max(e,i));return o==n?{h:0,s:0,v:o}:{h:60*((t==o?3:i==o?1:5)-(t==o?e-i:i==o?t-e:i-t)/(n-o))/360,s:(n-o)/n,v:n}};var p=function(t){var e={};return t.split(";").forEach((function(t){if(""!=t.trim()){var i=t.split(":"),o=i[0].trim(),n=i[1].trim();e[o]=n}})),e},c=function(t){return(0,a.default)(t).map((function(e){return e+": "+t[e]})).join("; ")};e.addCssText=function(t,i){var o=p(t.style.cssText),n=p(i),s=e.extend(o,n);t.style.cssText=c(s)},e.removeCssText=function(t,e){var i=p(t.style.cssText),o=p(e);for(var n in o)o.hasOwnProperty(n)&&delete i[n];t.style.cssText=c(i)},e.HSVToRGB=function(t,e,i){var o,n,s,r=Math.floor(6*t),a=6*t-r,h=i*(1-e),d=i*(1-a*e),l=i*(1-(1-a)*e);switch(r%6){case 0:o=i,n=l,s=h;break;case 1:o=d,n=i,s=h;break;case 2:o=h,n=i,s=l;break;case 3:o=h,n=d,s=i;break;case 4:o=l,n=h,s=i;break;case 5:o=i,n=h,s=d}return{r:Math.floor(255*o),g:Math.floor(255*n),b:Math.floor(255*s)}},e.HSVToHex=function(t,i,o){var n=e.HSVToRGB(t,i,o);return e.RGBToHex(n.r,n.g,n.b)},e.hexToHSV=function(t){var i=e.hexToRGB(t);return e.RGBToHSV(i.r,i.g,i.b)},e.isValidHex=function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},e.isValidRGB=function(t){return t=t.replace(" ",""),/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/i.test(t)},e.isValidRGBA=function(t){return t=t.replace(" ",""),/rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(.{1,3})\)/i.test(t)},e.selectiveBridgeObject=function(t,i){if(null!==i&&"object"===(void 0===i?"undefined":(0,h.default)(i))){for(var o=(0,r.default)(i),n=0;n0&&e(o,t[n-1])<0;n--)t[n]=t[n-1];t[n]=o}return t},e.mergeOptions=function(t,e,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=function(t){return null!=t},s=function(t){return null!==t&&"object"===(void 0===t?"undefined":(0,h.default)(t))};if(!s(t))throw new Error("Parameter mergeTarget must be an object");if(!s(e))throw new Error("Parameter options must be an object");if(!n(i))throw new Error("Parameter option must have a value");if(!s(o))throw new Error("Parameter globalOptions must be an object");var a=e[i],d=s(o)&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(o),l=d?o[i]:void 0,u=l?l.enabled:void 0;if(void 0!==a){if("boolean"==typeof a)return s(t[i])||(t[i]={}),void(t[i].enabled=a);if(null===a&&!s(t[i])){if(!n(l))return;t[i]=(0,r.default)(l)}if(s(a)){var p=!0;void 0!==a.enabled?p=a.enabled:void 0!==u&&(p=l.enabled),function(t,e,i){s(t[i])||(t[i]={});var o=e[i],n=t[i];for(var r in o)o.hasOwnProperty(r)&&(n[r]=o[r])}(t,e,i),t[i].enabled=p}}},e.binarySearchCustom=function(t,e,i,o){for(var n=0,s=0,r=t.length-1;s<=r&&n<1e4;){var a=Math.floor((s+r)/2),h=t[a],d=e(void 0===o?h[i]:h[i][o]);if(0==d)return a;-1==d?s=a+1:r=a-1,n++}return-1},e.binarySearchValue=function(t,e,i,o,n){var s,r,a,h,d=0,l=0,u=t.length-1;for(n=null!=n?n:function(t,e){return t==e?0:t0)return"before"==o?Math.max(0,h-1):h;if(n(r,e)<0&&n(a,e)>0)return"before"==o?h:Math.min(t.length-1,h+1);n(r,e)<0?l=h+1:u=h-1,d++}return-1},e.easingFunctions={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}},e.getScrollBarWidth=function(){var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);var i=t.offsetWidth;e.style.overflow="scroll";var o=t.offsetWidth;return i==o&&(o=e.clientWidth),document.body.removeChild(e),i-o},e.topMost=function(t,e){var i=void 0;Array.isArray(e)||(e=[e]);var o=!0,n=!1,r=void 0;try{for(var a,h=(0,s.default)(t);!(o=(a=h.next()).done);o=!0){var d=a.value;if(d){i=d[e[0]];for(var l=1;l0?(o=e[t].redundant[0],e[t].redundant.shift()):(o=document.createElementNS("http://www.w3.org/2000/svg",t),i.appendChild(o)):(o=document.createElementNS("http://www.w3.org/2000/svg",t),e[t]={used:[],redundant:[]},i.appendChild(o)),e[t].used.push(o),o},e.getDOMElement=function(t,e,i,o){var n;return e.hasOwnProperty(t)?e[t].redundant.length>0?(n=e[t].redundant[0],e[t].redundant.shift()):(n=document.createElement(t),void 0!==o?i.insertBefore(n,o):i.appendChild(n)):(n=document.createElement(t),e[t]={used:[],redundant:[]},void 0!==o?i.insertBefore(n,o):i.appendChild(n)),e[t].used.push(n),n},e.drawPoint=function(t,i,o,n,s,r){var a;if("circle"==o.style?((a=e.getSVGElement("circle",n,s)).setAttributeNS(null,"cx",t),a.setAttributeNS(null,"cy",i),a.setAttributeNS(null,"r",.5*o.size)):((a=e.getSVGElement("rect",n,s)).setAttributeNS(null,"x",t-.5*o.size),a.setAttributeNS(null,"y",i-.5*o.size),a.setAttributeNS(null,"width",o.size),a.setAttributeNS(null,"height",o.size)),void 0!==o.styles&&a.setAttributeNS(null,"style",o.styles),a.setAttributeNS(null,"class",o.className+" vis-point"),r){var h=e.getSVGElement("text",n,s);r.xOffset&&(t+=r.xOffset),r.yOffset&&(i+=r.yOffset),r.content&&(h.textContent=r.content),r.className&&h.setAttributeNS(null,"class",r.className+" vis-label"),h.setAttributeNS(null,"x",t),h.setAttributeNS(null,"y",i)}return a},e.drawBar=function(t,i,o,n,s,r,a,h){if(0!=n){n<0&&(i-=n*=-1);var d=e.getSVGElement("rect",r,a);d.setAttributeNS(null,"x",t-.5*o),d.setAttributeNS(null,"y",i),d.setAttributeNS(null,"width",o),d.setAttributeNS(null,"height",n),d.setAttributeNS(null,"class",s),h&&d.setAttributeNS(null,"style",h)}}},function(t,e,i){if("undefined"!=typeof window){var o=i(130),n=window.Hammer||i(131);t.exports=o(n,{preventDefault:"mouse"})}else t.exports=function(){return function(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:function(e){return{set:t}}}}()}},function(t,e,i){var o=i(91),n=i(34);t.exports=function(t){return o(n(t))}},function(t,e,i){var o=i(8),n=i(25);t.exports=i(9)?function(t,e,i){return o.f(t,e,n(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}function n(t,e){if(t&&!Array.isArray(t)&&(e=t,t=null),this._options=e||{},this._data={},this.length=0,this._fieldId=this._options.fieldId||"id",this._type={},this._options.type)for(var i=(0,a.default)(this._options.type),o=0,n=i.length;on?1:or)&&(s=h,r=d)}return s},n.prototype.min=function(t){var e,i,o=this._data,n=(0,a.default)(o),s=null,r=null;for(e=0,i=n.length;e=4*r){var l=0,u=s.clone();switch(o[a].repeat){case"daily":h.day()!=d.day()&&(l=1),h.dayOfYear(n.dayOfYear()),h.year(n.year()),h.subtract(7,"days"),d.dayOfYear(n.dayOfYear()),d.year(n.year()),d.subtract(7-l,"days"),u.add(1,"weeks");break;case"weekly":var p=d.diff(h,"days"),c=h.day();h.date(n.date()),h.month(n.month()),h.year(n.year()),d=h.clone(),h.day(c),d.day(c),d.add(p,"days"),h.subtract(1,"weeks"),d.subtract(1,"weeks"),u.add(1,"weeks");break;case"monthly":h.month()!=d.month()&&(l=1),h.month(n.month()),h.year(n.year()),h.subtract(1,"months"),d.month(n.month()),d.year(n.year()),d.subtract(1,"months"),d.add(l,"months"),u.add(1,"months");break;case"yearly":h.year()!=d.year()&&(l=1),h.year(n.year()),h.subtract(1,"years"),d.year(n.year()),d.subtract(1,"years"),d.add(l,"years"),u.add(1,"years");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",o[a].repeat)}for(;h=e[o].start&&e[n].end<=e[o].end?e[n].remove=!0:e[n].start>=e[o].start&&e[n].start<=e[o].end?(e[o].end=e[n].end,e[n].remove=!0):e[n].end>=e[o].start&&e[n].end<=e[o].end&&(e[o].start=e[n].start,e[n].remove=!0));for(o=0;o=r&&nt.range.end){var h={start:t.range.start,end:i};return i=e.correctTimeForHidden(t.options.moment,t.body.hiddenDates,h,i),n=t.range.conversion(o,r),(i.valueOf()-n.offset)*n.scale}return i=e.correctTimeForHidden(t.options.moment,t.body.hiddenDates,t.range,i),n=t.range.conversion(o,r),(i.valueOf()-n.offset)*n.scale},e.toTime=function(t,i,o){if(0==t.body.hiddenDates.length){var n=t.range.conversion(o);return new Date(i/n.scale+n.offset)}var s=e.getHiddenDurationBetween(t.body.hiddenDates,t.range.start,t.range.end),r=(t.range.end-t.range.start-s)*i/o,a=e.getAccumulatedHiddenDuration(t.body.hiddenDates,t.range,r);return new Date(a+r+t.range.start)},e.getHiddenDurationBetween=function(t,e,i){for(var o=0,n=0;n=e&&r=e&&r<=i&&(o+=r-s)}return o},e.correctTimeForHidden=function(t,i,o,n){return(n=t(n).toDate().valueOf())-e.getHiddenDurationBefore(t,i,o,n)},e.getHiddenDurationBefore=function(t,e,i,o){var n=0;o=t(o).toDate().valueOf();for(var s=0;s=i.start&&a=a&&(n+=a-r)}return n},e.getAccumulatedHiddenDuration=function(t,e,i){for(var o=0,n=0,s=e.start,r=0;r=e.start&&h=i)break;o+=h-a}}return o},e.snapAwayFromHidden=function(t,i,o,n){var s=e.isHidden(i,t);return 1==s.hidden?o<0?1==n?s.startDate-(s.endDate-i)-1:s.startDate-1:1==n?s.endDate+(i-s.startDate)+1:s.endDate+1:i},e.isHidden=function(t,e){for(var i=0;i=o&&t0){var e=[];if(Array.isArray(this.options.dataAttributes))e=this.options.dataAttributes;else{if("all"!=this.options.dataAttributes)return;e=(0,r.default)(this.data)}for(var i=0;i=.4*g,this.options.showMinorLabels&&f){var D=this._repaintMinorText(p,y,t,b);D.style.width=_+"px"}m&&this.options.showMajorLabels?(p>0&&(null==w&&(w=p),D=this._repaintMajorText(p,r.getLabelMajor(),t,b)),v=this._repaintMajorLine(p,_,t,b)):f?v=this._repaintMinorLine(p,_,t,b):v&&(v.style.width=parseInt(v.style.width)+_+"px")}if(1e3!==x||l||(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to 1000 lines."),l=!0),this.options.showMajorLabels){var k=this.body.util.toTime(0),S=r.getLabelMajor(k),T=S.length*(this.props.majorCharWidth||10)+10;(null==w||Ta.distance?" in "+t.printLocation(s.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(a.path,a.closestMatch,""):s.distance<=8?'. Did you mean "'+s.closestMatch+'"?'+t.printLocation(s.path,e):". Did you mean one of these: "+t.print((0,r.default)(i))+t.printLocation(o,e),console.log('%cUnknown option detected: "'+e+'"'+n,p),l=!0}},{key:"findInOptions",value:function(e,i,o){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=1e9,r="",a=[],h=e.toLowerCase(),l=void 0;for(var u in i){var p=void 0;if(void 0!==i[u].__type__&&!0===n){var c=t.findInOptions(e,i[u],d.copyAndExtendArray(o,u));s>c.distance&&(r=c.closestMatch,a=c.path,s=c.distance,l=c.indexMatch)}else-1!==u.toLowerCase().indexOf(h)&&(l=u),s>(p=t.levenshteinDistance(e,u))&&(r=u,a=d.copyArray(o),s=p)}return{closestMatch:r,path:a,distance:s,indexMatch:l}}},{key:"printLocation",value:function(t,e){for(var i="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n",o=0;odocument.F=Object<\/script>"),t.close(),h=t.F;o--;)delete h.prototype[s[o]];return h()};t.exports=Object.create||function(t,e){var i;return null!==t?(a.prototype=o(t),i=new a,a.prototype=null,i[r]=t):i=h(),void 0===e?i:n(i,e)}},function(t,e){var i=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:i)(t)}},function(t,e,i){var o=i(40)("keys"),n=i(27);t.exports=function(t){return o[t]||(o[t]=n(t))}},function(t,e,i){var o=i(6),n=o["__core-js_shared__"]||(o["__core-js_shared__"]={});t.exports=function(t){return n[t]||(n[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,i){var o=i(8).f,n=i(10),s=i(7)("toStringTag");t.exports=function(t,e,i){t&&!n(t=i?t:t.prototype,s)&&o(t,s,{configurable:!0,value:e})}},function(t,e,i){t.exports={default:i(105),__esModule:!0}},function(t,e,i){e.f=i(7)},function(t,e,i){var o=i(6),n=i(2),s=i(35),r=i(44),a=i(8).f;t.exports=function(t){var e=n.Symbol||(n.Symbol=s?{}:o.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:r.f(t)})}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}function n(t,e){var i=l().hours(0).minutes(0).seconds(0).milliseconds(0),o=i.clone().add(-3,"days").valueOf(),n=i.clone().add(3,"days").valueOf();this.millisecondsPerPixelCache=void 0,void 0===e?(this.start=o,this.end=n):(this.start=e.start||o,this.end=e.end||n),this.rolling=!1,this.body=t,this.deltaDifference=0,this.scaleOffset=0,this.startToFront=!1,this.endToFront=!0,this.defaultOptions={rtl:!1,start:null,end:null,moment:l,direction:"horizontal",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:31536e10,rollingMode:{follow:!1,offset:.5}},this.options=d.extend({},this.defaultOptions),this.props={touch:{}},this.animationTimer=null,this.body.emitter.on("panstart",this._onDragStart.bind(this)),this.body.emitter.on("panmove",this._onDrag.bind(this)),this.body.emitter.on("panend",this._onDragEnd.bind(this)),this.body.emitter.on("mousewheel",this._onMouseWheel.bind(this)),this.body.emitter.on("touch",this._onTouch.bind(this)),this.body.emitter.on("pinch",this._onPinch.bind(this)),this.body.dom.rollingModeBtn.addEventListener("click",this.startRolling.bind(this)),this.setOptions(e)}function s(t){if("horizontal"!=t&&"vertical"!=t)throw new TypeError('Unknown direction "'+t+'". Choose "horizontal" or "vertical".')}var r=o(i(4)),a=o(i(16)),h=o(i(1)),d=i(0),l=i(3),u=i(5),p=i(21);n.prototype=new u,n.prototype.setOptions=function(t){if(t){d.selectiveExtend(["animation","direction","min","max","zoomMin","zoomMax","moveable","zoomable","moment","activate","hiddenDates","zoomKey","rtl","showCurrentTime","rollingMode","horizontalScroll"],this.options,t),t.rollingMode&&t.rollingMode.follow&&this.startRolling(),("start"in t||"end"in t)&&this.setRange(t.start,t.end)}},n.prototype.startRolling=function(){var t=this;!function e(){t.stopRolling(),t.rolling=!0;var i=t.end-t.start,o=d.convert(new Date,"Date").valueOf(),n=o-i*t.options.rollingMode.offset,s=o+i*(1-t.options.rollingMode.offset);t.setRange(n,s,{animation:!1}),(i=1/t.conversion(t.body.domProps.center.width).scale/10)<30&&(i=30),i>1e3&&(i=1e3),t.body.dom.rollingModeBtn.style.visibility="hidden",t.currentTimeTimer=setTimeout(e,i)}()},n.prototype.stopRolling=function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility="visible")},n.prototype.setRange=function(t,e,i,o,n){i||(i={}),!0!==i.byUser&&(i.byUser=!1);var s=this,l=null!=t?d.convert(t,"Date").valueOf():null,u=null!=e?d.convert(e,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,i.animation){var c=this.start,m=this.end,f="object"===(0,h.default)(i.animation)&&"duration"in i.animation?i.animation.duration:500,g="object"===(0,h.default)(i.animation)&&"easingFunction"in i.animation?i.animation.easingFunction:"easeInOutQuad",v=d.easingFunctions[g];if(!v)throw new Error("Unknown easing function "+(0,a.default)(g)+". Choose from: "+(0,r.default)(d.easingFunctions).join(", "));var y=(new Date).valueOf(),b=!1;return function t(){if(!s.props.touch.dragging){var e=(new Date).valueOf()-y,r=v(e/f),a=e>f,h=a||null===l?l:c+(l-c)*r,d=a||null===u?u:m+(u-m)*r;_=s._applyRange(h,d),p.updateHiddenDates(s.options.moment,s.body,s.options.hiddenDates),b=b||_;var g={start:new Date(s.start),end:new Date(s.end),byUser:i.byUser,event:i.event};if(n&&n(r,_,a),_&&s.body.emitter.emit("rangechange",g),a){if(b&&(s.body.emitter.emit("rangechanged",g),o))return o()}else s.animationTimer=setTimeout(t,20)}}()}var _=this._applyRange(l,u);if(p.updateHiddenDates(this.options.moment,this.body,this.options.hiddenDates),_){var w={start:new Date(this.start),end:new Date(this.end),byUser:i.byUser,event:i.event};if(this.body.emitter.emit("rangechange",w),clearTimeout(s.timeoutID),s.timeoutID=setTimeout((function(){s.body.emitter.emit("rangechanged",w)}),200),o)return o()}},n.prototype.getMillisecondsPerPixel=function(){return void 0===this.millisecondsPerPixelCache&&(this.millisecondsPerPixelCache=(this.end-this.start)/this.body.dom.center.clientWidth),this.millisecondsPerPixelCache},n.prototype._cancelAnimation=function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)},n.prototype._applyRange=function(t,e){var i,o=null!=t?d.convert(t,"Date").valueOf():this.start,n=null!=e?d.convert(e,"Date").valueOf():this.end,s=null!=this.options.max?d.convert(this.options.max,"Date").valueOf():null,r=null!=this.options.min?d.convert(this.options.min,"Date").valueOf():null;if(isNaN(o)||null===o)throw new Error('Invalid start "'+t+'"');if(isNaN(n)||null===n)throw new Error('Invalid end "'+e+'"');if(ns&&(n=s)),null!==s&&n>s&&(o-=i=n-s,n-=i,null!=r&&o=this.start-.5&&n<=this.end?(o=this.start,n=this.end):(o-=(i=a-(n-o))/2,n+=i/2))}if(null!==this.options.zoomMax){var h=parseFloat(this.options.zoomMax);h<0&&(h=0),n-o>h&&(this.end-this.start===h&&othis.end?(o=this.start,n=this.end):(o+=(i=n-o-h)/2,n-=i/2))}var l=this.start!=o||this.end!=n;return o>=this.start&&o<=this.end||n>=this.start&&n<=this.end||this.start>=o&&this.start<=n||this.end>=o&&this.end<=n||this.body.emitter.emit("checkRangedItems"),this.start=o,this.end=n,l},n.prototype.getRange=function(){return{start:this.start,end:this.end}},n.prototype.conversion=function(t,e){return n.conversion(this.start,this.end,t,e)},n.conversion=function(t,e,i,o){return void 0===o&&(o=0),0!=i&&e-t!=0?{offset:t,scale:i/(e-t-o)}:{offset:0,scale:1}},n.prototype._onDragStart=function(t){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(t)&&this.props.touch.allowDragging&&(this.stopRolling(),this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.dragging=!0,this.body.dom.root&&(this.body.dom.root.style.cursor="move"))},n.prototype._onDrag=function(t){if(t&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging){var e=this.options.direction;s(e);var i="horizontal"==e?t.deltaX:t.deltaY;i-=this.deltaDifference;var o=this.props.touch.end-this.props.touch.start;o-=p.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end);var n,r="horizontal"==e?this.body.domProps.center.width:this.body.domProps.center.height;n=this.options.rtl?i/r*o:-i/r*o;var a=this.props.touch.start+n,h=this.props.touch.end+n,d=p.snapAwayFromHidden(this.body.hiddenDates,a,this.previousDelta-i,!0),l=p.snapAwayFromHidden(this.body.hiddenDates,h,this.previousDelta-i,!0);if(d!=a||l!=h)return this.deltaDifference+=i,this.props.touch.start=d,this.props.touch.end=l,void this._onDrag(t);this.previousDelta=i,this._applyRange(a,h);var u=new Date(this.start),c=new Date(this.end);this.body.emitter.emit("rangechange",{start:u,end:c,byUser:!0,event:t}),this.body.emitter.emit("panmove")}},n.prototype._onDragEnd=function(t){this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging&&(this.props.touch.dragging=!1,this.body.dom.root&&(this.body.dom.root.style.cursor="auto"),this.body.emitter.emit("rangechanged",{start:new Date(this.start),end:new Date(this.end),byUser:!0,event:t}))},n.prototype._onMouseWheel=function(t){var e=0;if(t.wheelDelta?e=t.wheelDelta/120:t.detail&&(e=-t.detail/3),!(this.options.zoomKey&&!t[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable)&&this.options.zoomable&&this.options.moveable&&this._isInsideRange(t)&&e){var i,o;if(i=e<0?1-e/5:1/(1+e/5),this.rolling)o=this.start+(this.end-this.start)*this.options.rollingMode.offset;else{var n=this.getPointer({x:t.clientX,y:t.clientY},this.body.dom.center);o=this._pointerToDate(n)}this.zoom(i,o,e,t),t.preventDefault()}},n.prototype._onTouch=function(t){this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.allowDragging=!0,this.props.touch.center=null,this.scaleOffset=0,this.deltaDifference=0,d.preventDefault(t)},n.prototype._onPinch=function(t){if(this.options.zoomable&&this.options.moveable){d.preventDefault(t),this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(t.center,this.body.dom.center)),this.stopRolling();var e=1/(t.scale+this.scaleOffset),i=this._pointerToDate(this.props.touch.center),o=p.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end),n=p.getHiddenDurationBefore(this.options.moment,this.body.hiddenDates,this,i),s=o-n,r=i-n+(this.props.touch.start-(i-n))*e,a=i+s+(this.props.touch.end-(i+s))*e;this.startToFront=1-e<=0,this.endToFront=e-1<=0;var h=p.snapAwayFromHidden(this.body.hiddenDates,r,1-e,!0),l=p.snapAwayFromHidden(this.body.hiddenDates,a,e-1,!0);h==r&&l==a||(this.props.touch.start=h,this.props.touch.end=l,this.scaleOffset=1-t.scale,r=h,a=l);var u={animation:!1,byUser:!0,event:t};this.setRange(r,a,u),this.startToFront=!1,this.endToFront=!0}},n.prototype._isInsideRange=function(t){var e,i=t.center?t.center.x:t.clientX;e=this.options.rtl?i-d.getAbsoluteLeft(this.body.dom.centerContainer):d.getAbsoluteRight(this.body.dom.centerContainer)-i;var o=this.body.util.toTime(e);return o>=this.start&&o<=this.end},n.prototype._pointerToDate=function(t){var e,i=this.options.direction;if(s(i),"horizontal"==i)return this.body.util.toTime(t.x).valueOf();var o=this.body.domProps.center.height;return e=this.conversion(o),t.y/e.scale+e.offset},n.prototype.getPointer=function(t,e){return this.options.rtl?{x:d.getAbsoluteRight(e)-t.x,y:t.y-d.getAbsoluteTop(e)}:{x:t.x-d.getAbsoluteLeft(e),y:t.y-d.getAbsoluteTop(e)}},n.prototype.zoom=function(t,e,i,o){null==e&&(e=(this.start+this.end)/2);var n=p.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end),s=p.getHiddenDurationBefore(this.options.moment,this.body.hiddenDates,this,e),r=n-s,a=e-s+(this.start-(e-s))*t,h=e+r+(this.end-(e+r))*t;this.startToFront=!(i>0),this.endToFront=!(-i>0);var d=p.snapAwayFromHidden(this.body.hiddenDates,a,i,!0),l=p.snapAwayFromHidden(this.body.hiddenDates,h,-i,!0);d==a&&l==h||(a=d,h=l);var u={animation:!1,byUser:!0,event:o};this.setRange(a,h,u),this.startToFront=!1,this.endToFront=!0},n.prototype.move=function(t){var e=this.end-this.start,i=this.start+e*t,o=this.end+e*t;this.start=i,this.end=o},n.prototype.moveTo=function(t){var e=(this.start+this.end)/2-t,i=this.start-e,o=this.end-e;this.setRange(i,o,{animation:!1,byUser:!0,event:null})},t.exports=n},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}function n(){}var s=o(i(16)),r=o(i(1)),a=i(66),h=i(12),d=i(67),l=i(0),u=i(28),p=i(132),c=i(21),m=i(29);a(n.prototype),n.prototype._create=function(t){function e(t){this.isActive()&&this.emit("mousewheel",t);var e=0,i=0;if("detail"in t&&(i=-1*t.detail),"wheelDelta"in t&&(i=t.wheelDelta),"wheelDeltaY"in t&&(i=t.wheelDeltaY),"wheelDeltaX"in t&&(e=-1*t.wheelDeltaX),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=-1*i,i=0),"deltaY"in t&&(i=-1*t.deltaY),"deltaX"in t&&(e=t.deltaX),this.options.zoomKey&&!t[this.options.zoomKey])if(t.preventDefault(),this.options.verticalScroll&&Math.abs(i)>=Math.abs(e)){var o=this.props.scrollTop+i;this.isActive()&&(this._setScrollTop(o),this._redraw(),this.emit("scroll",t))}else if(this.options.horizontalScroll){var n=(Math.abs(e)>=Math.abs(i)?e:i)/120*(this.range.end-this.range.start)/20,s=this.range.start+n,r=this.range.end+n,a={animation:!1,byUser:!0,event:t};this.range.setRange(s,r,a)}}function i(t){if(o.options.verticalScroll&&(t.preventDefault(),o.isActive())){var e=-t.target.scrollTop;o._setScrollTop(e),o._redraw(),o.emit("scrollSide",t)}}this.dom={},this.dom.container=t,this.dom.root=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.backgroundVertical=document.createElement("div"),this.dom.backgroundHorizontal=document.createElement("div"),this.dom.centerContainer=document.createElement("div"),this.dom.leftContainer=document.createElement("div"),this.dom.rightContainer=document.createElement("div"),this.dom.center=document.createElement("div"),this.dom.left=document.createElement("div"),this.dom.right=document.createElement("div"),this.dom.top=document.createElement("div"),this.dom.bottom=document.createElement("div"),this.dom.shadowTop=document.createElement("div"),this.dom.shadowBottom=document.createElement("div"),this.dom.shadowTopLeft=document.createElement("div"),this.dom.shadowBottomLeft=document.createElement("div"),this.dom.shadowTopRight=document.createElement("div"),this.dom.shadowBottomRight=document.createElement("div"),this.dom.rollingModeBtn=document.createElement("div"),this.dom.root.className="vis-timeline",this.dom.background.className="vis-panel vis-background",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical",this.dom.backgroundHorizontal.className="vis-panel vis-background vis-horizontal",this.dom.centerContainer.className="vis-panel vis-center",this.dom.leftContainer.className="vis-panel vis-left",this.dom.rightContainer.className="vis-panel vis-right",this.dom.top.className="vis-panel vis-top",this.dom.bottom.className="vis-panel vis-bottom",this.dom.left.className="vis-content",this.dom.center.className="vis-content",this.dom.right.className="vis-content",this.dom.shadowTop.className="vis-shadow vis-top",this.dom.shadowBottom.className="vis-shadow vis-bottom",this.dom.shadowTopLeft.className="vis-shadow vis-top",this.dom.shadowBottomLeft.className="vis-shadow vis-bottom",this.dom.shadowTopRight.className="vis-shadow vis-top",this.dom.shadowBottomRight.className="vis-shadow vis-bottom",this.dom.rollingModeBtn.className="vis-rolling-mode-btn",this.dom.root.appendChild(this.dom.background),this.dom.root.appendChild(this.dom.backgroundVertical),this.dom.root.appendChild(this.dom.backgroundHorizontal),this.dom.root.appendChild(this.dom.centerContainer),this.dom.root.appendChild(this.dom.leftContainer),this.dom.root.appendChild(this.dom.rightContainer),this.dom.root.appendChild(this.dom.top),this.dom.root.appendChild(this.dom.bottom),this.dom.root.appendChild(this.dom.bottom),this.dom.root.appendChild(this.dom.rollingModeBtn),this.dom.centerContainer.appendChild(this.dom.center),this.dom.leftContainer.appendChild(this.dom.left),this.dom.rightContainer.appendChild(this.dom.right),this.dom.centerContainer.appendChild(this.dom.shadowTop),this.dom.centerContainer.appendChild(this.dom.shadowBottom),this.dom.leftContainer.appendChild(this.dom.shadowTopLeft),this.dom.leftContainer.appendChild(this.dom.shadowBottomLeft),this.dom.rightContainer.appendChild(this.dom.shadowTopRight),this.dom.rightContainer.appendChild(this.dom.shadowBottomRight),this.props={root:{},background:{},centerContainer:{},leftContainer:{},rightContainer:{},center:{},left:{},right:{},top:{},bottom:{},border:{},scrollTop:0,scrollTopMin:0},this.on("rangechange",function(){!0===this.initialDrawDone&&this._redraw()}.bind(this)),this.on("rangechanged",function(){this.initialRangeChangeDone||(this.initialRangeChangeDone=!0)}.bind(this)),this.on("touch",this._onTouch.bind(this)),this.on("panmove",this._onDrag.bind(this));var o=this;this._origRedraw=this._redraw.bind(this),this._redraw=l.throttle(this._origRedraw),this.on("_change",(function(t){o.itemSet&&o.itemSet.initialItemSetDrawn&&t&&1==t.queue?o._redraw():o._origRedraw()})),this.hammer=new h(this.dom.root);var n=this.hammer.get("pinch").set({enable:!0});d.disablePreventDefaultVertically(n),this.hammer.get("pan").set({threshold:5,direction:h.DIRECTION_HORIZONTAL}),this.listeners={},["tap","doubletap","press","pinch","pan","panstart","panmove","panend"].forEach((function(t){var e=function(e){o.isActive()&&o.emit(t,e)};o.hammer.on(t,e),o.listeners[t]=e})),d.onTouch(this.hammer,function(t){o.emit("touch",t)}.bind(this)),d.onRelease(this.hammer,function(t){o.emit("release",t)}.bind(this)),this.dom.centerContainer.addEventListener?(this.dom.centerContainer.addEventListener("mousewheel",e.bind(this),!1),this.dom.centerContainer.addEventListener("DOMMouseScroll",e.bind(this),!1)):this.dom.centerContainer.attachEvent("onmousewheel",e.bind(this)),this.dom.left.parentNode.addEventListener("scroll",i.bind(this)),this.dom.right.parentNode.addEventListener("scroll",i.bind(this));var s=!1;if(this.dom.center.addEventListener("dragover",function(t){if(t.preventDefault&&t.preventDefault(),!(!t.target.className.indexOf("vis")>-1||s))return t.dataTransfer.dropEffect="move",s=!0,!1}.bind(this),!1),this.dom.center.addEventListener("drop",function(t){t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation();try{var e=JSON.parse(t.dataTransfer.getData("text"));if(!e||!e.content)return}catch(t){return!1}return s=!1,t.center={x:t.clientX,y:t.clientY},"item"!==e.target?o.itemSet._onAddItem(t):o.itemSet._onDropObjectOnItem(t),o.emit("drop",o.getEventProperties(t)),!1}.bind(this),!1),this.customTimes=[],this.touch={},this.redrawCount=0,this.initialDrawDone=!1,this.initialRangeChangeDone=!1,!t)throw new Error("No container provided");t.appendChild(this.dom.root)},n.prototype.setOptions=function(t){if(t){if(l.selectiveExtend(["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","rtl","zoomKey","horizontalScroll","verticalScroll"],this.options,t),this.dom.rollingModeBtn.style.visibility="hidden",this.options.rtl&&(this.dom.container.style.direction="rtl",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical-rtl"),this.options.verticalScroll&&(this.options.rtl?this.dom.rightContainer.className="vis-panel vis-right vis-vertical-scroll":this.dom.leftContainer.className="vis-panel vis-left vis-vertical-scroll"),"object"!==(0,r.default)(this.options.orientation)&&(this.options.orientation={item:void 0,axis:void 0}),"orientation"in t&&("string"==typeof t.orientation?this.options.orientation={item:t.orientation,axis:t.orientation}:"object"===(0,r.default)(t.orientation)&&("item"in t.orientation&&(this.options.orientation.item=t.orientation.item),"axis"in t.orientation&&(this.options.orientation.axis=t.orientation.axis))),"both"===this.options.orientation.axis){if(!this.timeAxis2){var e=this.timeAxis2=new u(this.body);e.setOptions=function(t){var i=t?l.extend({},t):{};i.orientation="top",u.prototype.setOptions.call(e,i)},this.components.push(e)}}else if(this.timeAxis2){var i=this.components.indexOf(this.timeAxis2);-1!==i&&this.components.splice(i,1),this.timeAxis2.destroy(),this.timeAxis2=null}if("function"==typeof t.drawPoints&&(t.drawPoints={onRender:t.drawPoints}),"hiddenDates"in this.options&&c.convertHiddenOptions(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in t&&(t.clickToUse?this.activator||(this.activator=new p(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),"showCustomTime"in t)throw new Error("Option `showCustomTime` is deprecated. Create a custom time bar via timeline.addCustomTime(time [, id])");this._initAutoResize()}if(this.components.forEach((function(e){return e.setOptions(t)})),"configure"in t){this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(t.configure);var o=l.deepExtend({},this.options);this.components.forEach((function(t){l.deepExtend(o,t.options)})),this.configurator.setModuleOptions({global:o})}this._redraw()},n.prototype.isActive=function(){return!this.activator||this.activator.active},n.prototype.destroy=function(){for(var t in this.setItems(null),this.setGroups(null),this.off(),this._stopAutoResize(),this.dom.root.parentNode&&this.dom.root.parentNode.removeChild(this.dom.root),this.dom=null,this.activator&&(this.activator.destroy(),delete this.activator),this.listeners)this.listeners.hasOwnProperty(t)&&delete this.listeners[t];this.listeners=null,this.hammer=null,this.components.forEach((function(t){return t.destroy()})),this.body=null},n.prototype.setCustomTime=function(t,e){var i=this.customTimes.filter((function(t){return e===t.options.id}));if(0===i.length)throw new Error("No custom time bar found with id "+(0,s.default)(e));i.length>0&&i[0].setCustomTime(t)},n.prototype.getCustomTime=function(t){var e=this.customTimes.filter((function(e){return e.options.id===t}));if(0===e.length)throw new Error("No custom time bar found with id "+(0,s.default)(t));return e[0].getCustomTime()},n.prototype.setCustomTimeTitle=function(t,e){var i=this.customTimes.filter((function(t){return t.options.id===e}));if(0===i.length)throw new Error("No custom time bar found with id "+(0,s.default)(e));if(i.length>0)return i[0].setCustomTitle(t)},n.prototype.getEventProperties=function(t){return{event:t}},n.prototype.addCustomTime=function(t,e){var i=void 0!==t?l.convert(t,"Date").valueOf():new Date;if(this.customTimes.some((function(t){return t.options.id===e})))throw new Error("A custom time with id "+(0,s.default)(e)+" already exists");var o=new m(this.body,l.extend({},this.options,{time:i,id:e}));return this.customTimes.push(o),this.components.push(o),this._redraw(),e},n.prototype.removeCustomTime=function(t){var e=this.customTimes.filter((function(e){return e.options.id===t}));if(0===e.length)throw new Error("No custom time bar found with id "+(0,s.default)(t));e.forEach(function(t){this.customTimes.splice(this.customTimes.indexOf(t),1),this.components.splice(this.components.indexOf(t),1),t.destroy()}.bind(this))},n.prototype.getVisibleItems=function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]},n.prototype.fit=function(t,e){var i=this.getDataRange();if(null!==i.min||null!==i.max){var o=i.max-i.min,n=new Date(i.min.valueOf()-.01*o),s=new Date(i.max.valueOf()+.01*o),r=!t||void 0===t.animation||t.animation;this.range.setRange(n,s,{animation:r},e)}},n.prototype.getDataRange=function(){throw new Error("Cannot invoke abstract method getDataRange")},n.prototype.setWindow=function(t,e,i,o){var n,s;"function"==typeof arguments[2]&&(o=arguments[2],i={}),1==arguments.length?(n=void 0===(s=arguments[0]).animation||s.animation,this.range.setRange(s.start,s.end,{animation:n})):2==arguments.length&&"function"==typeof arguments[1]?(o=arguments[1],n=void 0===(s=arguments[0]).animation||s.animation,this.range.setRange(s.start,s.end,{animation:n},o)):(n=!i||void 0===i.animation||i.animation,this.range.setRange(t,e,{animation:n},o))},n.prototype.moveTo=function(t,e,i){"function"==typeof arguments[1]&&(i=arguments[1],e={});var o=this.range.end-this.range.start,n=l.convert(t,"Date").valueOf(),s=n-o/2,r=n+o/2,a=!e||void 0===e.animation||e.animation;this.range.setRange(s,r,{animation:a},i)},n.prototype.getWindow=function(){var t=this.range.getRange();return{start:new Date(t.start),end:new Date(t.end)}},n.prototype.zoomIn=function(t,e,i){if(!(!t||t<0||t>1)){"function"==typeof arguments[1]&&(i=arguments[1],e={});var o=this.getWindow(),n=o.start.valueOf(),s=o.end.valueOf(),r=s-n,a=(r-r/(1+t))/2,h=n+a,d=s-a;this.setWindow(h,d,e,i)}},n.prototype.zoomOut=function(t,e,i){if(!(!t||t<0||t>1)){"function"==typeof arguments[1]&&(i=arguments[1],e={});var o=this.getWindow(),n=o.start.valueOf(),s=o.end.valueOf(),r=s-n,a=n-r*t/2,h=s+r*t/2;this.setWindow(a,h,e,i)}},n.prototype.redraw=function(){this._redraw()},n.prototype._redraw=function(){this.redrawCount++;var t=!1,e=this.options,i=this.props,o=this.dom;if(o&&o.container&&0!=o.root.offsetWidth){c.updateHiddenDates(this.options.moment,this.body,this.options.hiddenDates),"top"==e.orientation?(l.addClassName(o.root,"vis-top"),l.removeClassName(o.root,"vis-bottom")):(l.removeClassName(o.root,"vis-top"),l.addClassName(o.root,"vis-bottom")),o.root.style.maxHeight=l.option.asSize(e.maxHeight,""),o.root.style.minHeight=l.option.asSize(e.minHeight,""),o.root.style.width=l.option.asSize(e.width,""),i.border.left=(o.centerContainer.offsetWidth-o.centerContainer.clientWidth)/2,i.border.right=i.border.left,i.border.top=(o.centerContainer.offsetHeight-o.centerContainer.clientHeight)/2,i.border.bottom=i.border.top,i.borderRootHeight=o.root.offsetHeight-o.root.clientHeight,i.borderRootWidth=o.root.offsetWidth-o.root.clientWidth,0===o.centerContainer.clientHeight&&(i.border.left=i.border.top,i.border.right=i.border.left),0===o.root.clientHeight&&(i.borderRootWidth=i.borderRootHeight),i.center.height=o.center.offsetHeight,i.left.height=o.left.offsetHeight,i.right.height=o.right.offsetHeight,i.top.height=o.top.clientHeight||-i.border.top,i.bottom.height=o.bottom.clientHeight||-i.border.bottom;var n=Math.max(i.left.height,i.center.height,i.right.height),s=i.top.height+n+i.bottom.height+i.borderRootHeight+i.border.top+i.border.bottom;o.root.style.height=l.option.asSize(e.height,s+"px"),i.root.height=o.root.offsetHeight,i.background.height=i.root.height-i.borderRootHeight;var r=i.root.height-i.top.height-i.bottom.height-i.borderRootHeight;i.centerContainer.height=r,i.leftContainer.height=r,i.rightContainer.height=i.leftContainer.height,i.root.width=o.root.offsetWidth,i.background.width=i.root.width-i.borderRootWidth,this.initialDrawDone||(i.scrollbarWidth=l.getScrollBarWidth()),e.verticalScroll?e.rtl?(i.left.width=o.leftContainer.clientWidth||-i.border.left,i.right.width=o.rightContainer.clientWidth+i.scrollbarWidth||-i.border.right):(i.left.width=o.leftContainer.clientWidth+i.scrollbarWidth||-i.border.left,i.right.width=o.rightContainer.clientWidth||-i.border.right):(i.left.width=o.leftContainer.clientWidth||-i.border.left,i.right.width=o.rightContainer.clientWidth||-i.border.right),this._setDOM();var a=this._updateScrollTop();"top"!=e.orientation.item&&(a+=Math.max(i.centerContainer.height-i.center.height-i.border.top-i.border.bottom,0)),o.center.style.top=a+"px";var d=0==i.scrollTop?"hidden":"",u=i.scrollTop==i.scrollTopMin?"hidden":"";o.shadowTop.style.visibility=d,o.shadowBottom.style.visibility=u,o.shadowTopLeft.style.visibility=d,o.shadowBottomLeft.style.visibility=u,o.shadowTopRight.style.visibility=d,o.shadowBottomRight.style.visibility=u,e.verticalScroll&&(o.rightContainer.className="vis-panel vis-right vis-vertical-scroll",o.leftContainer.className="vis-panel vis-left vis-vertical-scroll",o.shadowTopRight.style.visibility="hidden",o.shadowBottomRight.style.visibility="hidden",o.shadowTopLeft.style.visibility="hidden",o.shadowBottomLeft.style.visibility="hidden",o.left.style.top="0px",o.right.style.top="0px"),(!e.verticalScroll||i.center.heighti.centerContainer.height;if(this.hammer.get("pan").set({direction:p?h.DIRECTION_ALL:h.DIRECTION_HORIZONTAL}),this.components.forEach((function(e){t=e.redraw()||t})),t){if(this.redrawCount<5)return void this.body.emitter.emit("_change");console.log("WARNING: infinite loop in redraw?")}else this.redrawCount=0;this.body.emitter.emit("changed")}},n.prototype._setDOM=function(){var t=this.props,e=this.dom;t.leftContainer.width=t.left.width,t.rightContainer.width=t.right.width;var i=t.root.width-t.left.width-t.right.width-t.borderRootWidth;t.center.width=i,t.centerContainer.width=i,t.top.width=i,t.bottom.width=i,e.background.style.height=t.background.height+"px",e.backgroundVertical.style.height=t.background.height+"px",e.backgroundHorizontal.style.height=t.centerContainer.height+"px",e.centerContainer.style.height=t.centerContainer.height+"px",e.leftContainer.style.height=t.leftContainer.height+"px",e.rightContainer.style.height=t.rightContainer.height+"px",e.background.style.width=t.background.width+"px",e.backgroundVertical.style.width=t.centerContainer.width+"px",e.backgroundHorizontal.style.width=t.background.width+"px",e.centerContainer.style.width=t.center.width+"px",e.top.style.width=t.top.width+"px",e.bottom.style.width=t.bottom.width+"px",e.background.style.left="0",e.background.style.top="0",e.backgroundVertical.style.left=t.left.width+t.border.left+"px",e.backgroundVertical.style.top="0",e.backgroundHorizontal.style.left="0",e.backgroundHorizontal.style.top=t.top.height+"px",e.centerContainer.style.left=t.left.width+"px",e.centerContainer.style.top=t.top.height+"px",e.leftContainer.style.left="0",e.leftContainer.style.top=t.top.height+"px",e.rightContainer.style.left=t.left.width+t.center.width+"px",e.rightContainer.style.top=t.top.height+"px",e.top.style.left=t.left.width+"px",e.top.style.top="0",e.bottom.style.left=t.left.width+"px",e.bottom.style.top=t.top.height+t.centerContainer.height+"px",e.center.style.left="0",e.left.style.left="0",e.right.style.left="0"},n.prototype.repaint=function(){throw new Error("Function repaint is deprecated. Use redraw instead.")},n.prototype.setCurrentTime=function(t){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");this.currentTime.setCurrentTime(t)},n.prototype.getCurrentTime=function(){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");return this.currentTime.getCurrentTime()},n.prototype._toTime=function(t){return c.toTime(this,t,this.props.center.width)},n.prototype._toGlobalTime=function(t){return c.toTime(this,t,this.props.root.width)},n.prototype._toScreen=function(t){return c.toScreen(this,t,this.props.center.width)},n.prototype._toGlobalScreen=function(t){return c.toScreen(this,t,this.props.root.width)},n.prototype._initAutoResize=function(){1==this.options.autoResize?this._startAutoResize():this._stopAutoResize()},n.prototype._startAutoResize=function(){var t=this;this._stopAutoResize(),this._onResize=function(){1==t.options.autoResize?t.dom.root&&(t.dom.root.offsetWidth==t.props.lastWidth&&t.dom.root.offsetHeight==t.props.lastHeight||(t.props.lastWidth=t.dom.root.offsetWidth,t.props.lastHeight=t.dom.root.offsetHeight,t.props.scrollbarWidth=l.getScrollBarWidth(),t.body.emitter.emit("_change"))):t._stopAutoResize()},l.addEventListener(window,"resize",this._onResize),t.dom.root&&(t.props.lastWidth=t.dom.root.offsetWidth,t.props.lastHeight=t.dom.root.offsetHeight),this.watchTimer=setInterval(this._onResize,1e3)},n.prototype._stopAutoResize=function(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0),this._onResize&&(l.removeEventListener(window,"resize",this._onResize),this._onResize=null)},n.prototype._onTouch=function(t){this.touch.allowDragging=!0,this.touch.initialScrollTop=this.props.scrollTop},n.prototype._onPinch=function(t){this.touch.allowDragging=!1},n.prototype._onDrag=function(t){if(t&&this.touch.allowDragging){var e=t.deltaY,i=this._getScrollTop(),o=this._setScrollTop(this.touch.initialScrollTop+e);this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),o!=i&&this.emit("verticalDrag")}},n.prototype._setScrollTop=function(t){return this.props.scrollTop=t,this._updateScrollTop(),this.props.scrollTop},n.prototype._updateScrollTop=function(){var t=Math.min(this.props.centerContainer.height-this.props.center.height,0);return t!=this.props.scrollTopMin&&("top"!=this.options.orientation.item&&(this.props.scrollTop+=t-this.props.scrollTopMin),this.props.scrollTopMin=t),this.props.scrollTop>0&&(this.props.scrollTop=0),this.props.scrollTop0&&this.current.milliseconds()0&&this.current.seconds()0&&this.current.minutes()0&&this.current.hours()0?t.step:1,this.autoScale=!1)},o.prototype.setAutoScale=function(t){this.autoScale=t},o.prototype.setMinimumStep=function(t){null!=t&&(31104e9>t&&(this.scale="year",this.step=1e3),15552e9>t&&(this.scale="year",this.step=500),31104e8>t&&(this.scale="year",this.step=100),15552e8>t&&(this.scale="year",this.step=50),31104e7>t&&(this.scale="year",this.step=10),15552e7>t&&(this.scale="year",this.step=5),31104e6>t&&(this.scale="year",this.step=1),7776e6>t&&(this.scale="month",this.step=3),2592e6>t&&(this.scale="month",this.step=1),432e6>t&&(this.scale="day",this.step=5),1728e5>t&&(this.scale="day",this.step=2),864e5>t&&(this.scale="day",this.step=1),432e5>t&&(this.scale="weekday",this.step=1),144e5>t&&(this.scale="hour",this.step=4),36e5>t&&(this.scale="hour",this.step=1),9e5>t&&(this.scale="minute",this.step=15),6e5>t&&(this.scale="minute",this.step=10),3e5>t&&(this.scale="minute",this.step=5),6e4>t&&(this.scale="minute",this.step=1),15e3>t&&(this.scale="second",this.step=15),1e4>t&&(this.scale="second",this.step=10),5e3>t&&(this.scale="second",this.step=5),1e3>t&&(this.scale="second",this.step=1),200>t&&(this.scale="millisecond",this.step=200),100>t&&(this.scale="millisecond",this.step=100),50>t&&(this.scale="millisecond",this.step=50),10>t&&(this.scale="millisecond",this.step=10),5>t&&(this.scale="millisecond",this.step=5),1>t&&(this.scale="millisecond",this.step=1))},o.snap=function(t,e,i){var o=n(t);if("year"==e){var s=o.year()+Math.round(o.month()/12);o.year(Math.round(s/i)*i),o.month(0),o.date(0),o.hours(0),o.minutes(0),o.seconds(0),o.milliseconds(0)}else if("month"==e)o.date()>15?(o.date(1),o.add(1,"month")):o.date(1),o.hours(0),o.minutes(0),o.seconds(0),o.milliseconds(0);else if("week"==e)o.weekday()>2?(o.weekday(0),o.add(1,"week")):o.weekday(0),o.hours(0),o.minutes(0),o.seconds(0),o.milliseconds(0);else if("day"==e){switch(i){case 5:case 2:o.hours(24*Math.round(o.hours()/24));break;default:o.hours(12*Math.round(o.hours()/12))}o.minutes(0),o.seconds(0),o.milliseconds(0)}else if("weekday"==e){switch(i){case 5:case 2:o.hours(12*Math.round(o.hours()/12));break;default:o.hours(6*Math.round(o.hours()/6))}o.minutes(0),o.seconds(0),o.milliseconds(0)}else if("hour"==e)4===i?o.minutes(60*Math.round(o.minutes()/60)):o.minutes(30*Math.round(o.minutes()/30)),o.seconds(0),o.milliseconds(0);else if("minute"==e){switch(i){case 15:case 10:o.minutes(5*Math.round(o.minutes()/5)),o.seconds(0);break;case 5:o.seconds(60*Math.round(o.seconds()/60));break;default:o.seconds(30*Math.round(o.seconds()/30))}o.milliseconds(0)}else if("second"==e)switch(i){case 15:case 10:o.seconds(5*Math.round(o.seconds()/5)),o.milliseconds(0);break;case 5:o.milliseconds(1e3*Math.round(o.milliseconds()/1e3));break;default:o.milliseconds(500*Math.round(o.milliseconds()/500))}else if("millisecond"==e){var r=i>5?i/2:1;o.milliseconds(Math.round(o.milliseconds()/r)*r)}return o},o.prototype.isMajor=function(){if(1==this.switchedYear)switch(this.scale){case"year":case"month":case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(1==this.switchedMonth)switch(this.scale){case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(1==this.switchedDay)switch(this.scale){case"millisecond":case"second":case"minute":case"hour":return!0;default:return!1}var t=this.moment(this.current);switch(this.scale){case"millisecond":return 0==t.milliseconds();case"second":return 0==t.seconds();case"minute":return 0==t.hours()&&0==t.minutes();case"hour":return 0==t.hours();case"weekday":case"day":case"week":return 1==t.date();case"month":return 0==t.month();default:return!1}},o.prototype.getLabelMinor=function(t){if(null==t&&(t=this.current),t instanceof Date&&(t=this.moment(t)),"function"==typeof this.format.minorLabels)return this.format.minorLabels(t,this.scale,this.step);var e=this.format.minorLabels[this.scale];return"week"===this.scale&&this.isMajor()&&0!==t.weekday()?"":e&&e.length>0?this.moment(t).format(e):""},o.prototype.getLabelMajor=function(t){if(null==t&&(t=this.current),t instanceof Date&&(t=this.moment(t)),"function"==typeof this.format.majorLabels)return this.format.majorLabels(t,this.scale,this.step);var e=this.format.majorLabels[this.scale];return e&&e.length>0?this.moment(t).format(e):""},o.prototype.getClassName=function(){function t(t){return t/a%2==0?" vis-even":" vis-odd"}function e(t){return t.isSame(new Date,"day")?" vis-today":t.isSame(n().add(1,"day"),"day")?" vis-tomorrow":t.isSame(n().add(-1,"day"),"day")?" vis-yesterday":""}function i(t){return t.isSame(new Date,"week")?" vis-current-week":""}function o(t){return t.isSame(new Date,"month")?" vis-current-month":""}var n=this.moment,s=this.moment(this.current),r=s.locale?s.locale("en"):s.lang("en"),a=this.step,h=[];switch(this.scale){case"millisecond":h.push(e(r)),h.push(t(r.milliseconds()));break;case"second":h.push(e(r)),h.push(t(r.seconds()));break;case"minute":h.push(e(r)),h.push(t(r.minutes()));break;case"hour":h.push("vis-h"+r.hours()+(4==this.step?"-h"+(r.hours()+4):"")),h.push(e(r)),h.push(t(r.hours()));break;case"weekday":h.push("vis-"+r.format("dddd").toLowerCase()),h.push(e(r)),h.push(i(r)),h.push(t(r.date()));break;case"day":h.push("vis-day"+r.date()),h.push("vis-"+r.format("MMMM").toLowerCase()),h.push(e(r)),h.push(o(r)),h.push(this.step<=2?e(r):""),h.push(this.step<=2?"vis-"+r.format("dddd").toLowerCase():""),h.push(t(r.date()-1));break;case"week":h.push("vis-week"+r.format("w")),h.push(i(r)),h.push(t(r.week()));break;case"month":h.push("vis-"+r.format("MMMM").toLowerCase()),h.push(o(r)),h.push(t(r.month()));break;case"year":h.push("vis-year"+r.year()),h.push(function(t){return t.isSame(new Date,"year")?" vis-current-year":""}(r)),h.push(t(r.year()))}return h.filter(String).join(" ")},t.exports=o},function(t,e,i){function o(t,e){this.body=t,this.defaultOptions={rtl:!1,showCurrentTime:!0,moment:r,locales:a,locale:"en"},this.options=n.extend({},this.defaultOptions),this.offset=0,this._create(),this.setOptions(e)}var n=i(0),s=i(5),r=i(3),a=i(69);o.prototype=new s,o.prototype._create=function(){var t=document.createElement("div");t.className="vis-current-time",t.style.position="absolute",t.style.top="0px",t.style.height="100%",this.bar=t},o.prototype.destroy=function(){this.options.showCurrentTime=!1,this.redraw(),this.body=null},o.prototype.setOptions=function(t){t&&n.selectiveExtend(["rtl","showCurrentTime","moment","locale","locales"],this.options,t)},o.prototype.redraw=function(){if(this.options.showCurrentTime){var t=this.body.dom.backgroundVertical;this.bar.parentNode!=t&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),t.appendChild(this.bar),this.start());var e=this.options.moment((new Date).valueOf()+this.offset),i=this.body.util.toScreen(e),o=this.options.locales[this.options.locale];o||(this.warned||(console.log("WARNING: options.locales['"+this.options.locale+"'] not found. See http://visjs.org/docs/timeline/#Localization"),this.warned=!0),o=this.options.locales.en);var n=o.current+" "+o.time+": "+e.format("dddd, MMMM Do YYYY, H:mm:ss");n=n.charAt(0).toUpperCase()+n.substring(1),this.options.rtl?this.bar.style.right=i+"px":this.bar.style.left=i+"px",this.bar.title=n}else this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),this.stop();return!1},o.prototype.start=function(){var t=this;!function e(){t.stop();var i=1/t.body.range.conversion(t.body.domProps.center.width).scale/10;i<30&&(i=30),i>1e3&&(i=1e3),t.redraw(),t.body.emitter.emit("currentTimeTick"),t.currentTimeTimer=setTimeout(e,i)}()},o.prototype.stop=function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)},o.prototype.setCurrentTime=function(t){var e=n.convert(t,"Date").valueOf(),i=(new Date).valueOf();this.offset=e-i,this.redraw()},o.prototype.getCurrentTime=function(){return new Date((new Date).valueOf()+this.offset)},t.exports=o},function(t,e,i){function o(t,e,i){if(this.groupId=t,this.subgroups={},this.subgroupStack={},this.subgroupStackAll=!1,this.doInnerStack=!1,this.subgroupIndex=0,this.subgroupOrderer=e&&e.subgroupOrder,this.itemSet=i,this.isVisible=null,this.stackDirty=!0,e&&e.nestedGroups&&(this.nestedGroups=e.nestedGroups,0==e.showNested?this.showNested=!1:this.showNested=!0),e&&e.subgroupStack)if("boolean"==typeof e.subgroupStack)this.doInnerStack=e.subgroupStack,this.subgroupStackAll=e.subgroupStack;else for(var o in e.subgroupStack)this.subgroupStack[o]=e.subgroupStack[o],this.doInnerStack=this.doInnerStack||e.subgroupStack[o];this.nestedInGroup=null,this.dom={},this.props={label:{width:0,height:0}},this.className=null,this.items={},this.visibleItems=[],this.itemsInRange=[],this.orderedItems={byStart:[],byEnd:[]},this.checkRangedItems=!1;var n=this;this.itemSet.body.emitter.on("checkRangedItems",(function(){n.checkRangedItems=!0})),this._create(),this.setData(e)}var n=function(t){return t&&t.__esModule?t:{default:t}}(i(4)),s=i(0),r=i(71);o.prototype._create=function(){var t=document.createElement("div");this.itemSet.options.groupEditable.order?t.className="vis-label draggable":t.className="vis-label",this.dom.label=t;var e=document.createElement("div");e.className="vis-inner",t.appendChild(e),this.dom.inner=e;var i=document.createElement("div");i.className="vis-group",i["timeline-group"]=this,this.dom.foreground=i,this.dom.background=document.createElement("div"),this.dom.background.className="vis-group",this.dom.axis=document.createElement("div"),this.dom.axis.className="vis-group",this.dom.marker=document.createElement("div"),this.dom.marker.style.visibility="hidden",this.dom.marker.style.position="absolute",this.dom.marker.innerHTML="",this.dom.background.appendChild(this.dom.marker)},o.prototype.setData=function(t){var e,i;if((e=this.itemSet.options&&this.itemSet.options.groupTemplate?(i=this.itemSet.options.groupTemplate.bind(this))(t,this.dom.inner):t&&t.content)instanceof Element){for(this.dom.inner.appendChild(e);this.dom.inner.firstChild;)this.dom.inner.removeChild(this.dom.inner.firstChild);this.dom.inner.appendChild(e)}else e instanceof Object?i(t,this.dom.inner):this.dom.inner.innerHTML=null!=e?e:this.groupId||"";if(this.dom.label.title=t&&t.title||"",this.dom.inner.firstChild?s.removeClassName(this.dom.inner,"vis-hidden"):s.addClassName(this.dom.inner,"vis-hidden"),t&&t.nestedGroups){this.nestedGroups&&this.nestedGroups==t.nestedGroups||(this.nestedGroups=t.nestedGroups),void 0===t.showNested&&void 0!==this.showNested||(0==t.showNested?this.showNested=!1:this.showNested=!0),s.addClassName(this.dom.label,"vis-nesting-group");var o=this.itemSet.options.rtl?"collapsed-rtl":"collapsed";this.showNested?(s.removeClassName(this.dom.label,o),s.addClassName(this.dom.label,"expanded")):(s.removeClassName(this.dom.label,"expanded"),s.addClassName(this.dom.label,o))}else this.nestedGroups&&(this.nestedGroups=null,o=this.itemSet.options.rtl?"collapsed-rtl":"collapsed",s.removeClassName(this.dom.label,o),s.removeClassName(this.dom.label,"expanded"),s.removeClassName(this.dom.label,"vis-nesting-group"));t&&t.nestedInGroup&&(s.addClassName(this.dom.label,"vis-nested-group"),this.itemSet.options&&this.itemSet.options.rtl?this.dom.inner.style.paddingRight="30px":this.dom.inner.style.paddingLeft="30px");var n=t&&t.className||null;n!=this.className&&(this.className&&(s.removeClassName(this.dom.label,this.className),s.removeClassName(this.dom.foreground,this.className),s.removeClassName(this.dom.background,this.className),s.removeClassName(this.dom.axis,this.className)),s.addClassName(this.dom.label,n),s.addClassName(this.dom.foreground,n),s.addClassName(this.dom.background,n),s.addClassName(this.dom.axis,n),this.className=n),this.style&&(s.removeCssText(this.dom.label,this.style),this.style=null),t&&t.style&&(s.addCssText(this.dom.label,t.style),this.style=t.style)},o.prototype.getLabelWidth=function(){return this.props.label.width},o.prototype._didMarkerHeightChange=function(){var t=this.dom.marker.clientHeight;if(t!=this.lastMarkerHeight){this.lastMarkerHeight=t;var e={},i=0;if(s.forEach(this.items,(function(t,o){t.dirty=!0,t.displayed&&(e[o]=t.redraw(!0),i=e[o].length)})),i>0)for(var o=0;o0)for(var u=0;u0){var e=this;this.resetSubgroups(),s.forEach(this.visibleItems,(function(i){void 0!==i.data.subgroup&&(e.subgroups[i.data.subgroup].height=Math.max(e.subgroups[i.data.subgroup].height,i.height+t.item.vertical),e.subgroups[i.data.subgroup].visible=!0)}))}},o.prototype._isGroupVisible=function(t,e){return this.top<=t.body.domProps.centerContainer.height-t.body.domProps.scrollTop+e.axis&&this.top+this.height+e.axis>=-t.body.domProps.scrollTop},o.prototype._calculateHeight=function(t){var e,i=this.visibleItems;if(i.length>0){var o=i[0].top,n=i[0].top+i[0].height;if(s.forEach(i,(function(t){o=Math.min(o,t.top),n=Math.max(n,t.top+t.height)})),o>t.axis){var r=o-t.axis;n-=r,s.forEach(i,(function(t){t.top-=r}))}e=n+t.item.vertical/2}else e=0;return Math.max(e,this.props.label.height)},o.prototype.show=function(){this.dom.label.parentNode||this.itemSet.dom.labelSet.appendChild(this.dom.label),this.dom.foreground.parentNode||this.itemSet.dom.foreground.appendChild(this.dom.foreground),this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background),this.dom.axis.parentNode||this.itemSet.dom.axis.appendChild(this.dom.axis)},o.prototype.hide=function(){var t=this.dom.label;t.parentNode&&t.parentNode.removeChild(t);var e=this.dom.foreground;e.parentNode&&e.parentNode.removeChild(e);var i=this.dom.background;i.parentNode&&i.parentNode.removeChild(i);var o=this.dom.axis;o.parentNode&&o.parentNode.removeChild(o)},o.prototype.add=function(t){if(this.items[t.id]=t,t.setParent(this),this.stackDirty=!0,void 0!==t.data.subgroup&&(this._addToSubgroup(t),this.orderSubgroups()),-1==this.visibleItems.indexOf(t)){var e=this.itemSet.body.range;this._checkIfVisible(t,this.visibleItems,e)}},o.prototype._addToSubgroup=function(t,e){null!=(e=e||t.data.subgroup)&&void 0===this.subgroups[e]&&(this.subgroups[e]={height:0,top:0,start:t.data.start,end:t.data.end||t.data.start,visible:!1,index:this.subgroupIndex,items:[],stack:this.subgroupStackAll||this.subgroupStack[e]||!1},this.subgroupIndex++),new Date(t.data.start)new Date(this.subgroups[e].end)&&(this.subgroups[e].end=i),this.subgroups[e].items.push(t)},o.prototype._updateSubgroupsSizes=function(){var t=this;if(t.subgroups)for(var e in t.subgroups){var i=t.subgroups[e].items[0].data.end||t.subgroups[e].items[0].data.start,o=t.subgroups[e].items[0].data.start,n=i-1;t.subgroups[e].items.forEach((function(t){new Date(t.data.start)new Date(n)&&(n=e)})),t.subgroups[e].start=o,t.subgroups[e].end=new Date(n-1)}},o.prototype.orderSubgroups=function(){if(void 0!==this.subgroupOrderer){var t,e=[];if("string"==typeof this.subgroupOrderer){for(t in this.subgroups)e.push({subgroup:t,sortField:this.subgroups[t].items[0].data[this.subgroupOrderer]});e.sort((function(t,e){return t.sortField-e.sortField}))}else if("function"==typeof this.subgroupOrderer){for(t in this.subgroups)e.push(this.subgroups[t].items[0].data);e.sort(this.subgroupOrderer)}if(e.length>0)for(var i=0;i=0&&(i.items.splice(o,1),i.items.length?this._updateSubgroupsSizes():delete this.subgroups[e])}}},o.prototype.removeFromDataSet=function(t){this.itemSet.removeItem(t.id)},o.prototype.order=function(){for(var t=s.toArray(this.items),e=[],i=[],o=0;o0)for(var l=0;lh})),1==this.checkRangedItems)for(this.checkRangedItems=!1,l=0;lh}))}var c={},m=0;for(l=0;l0)for(var g=0;g=0&&!n(r=e[s]);s--)void 0===o[r.id]&&(o[r.id]=!0,i.push(r));for(s=t+1;st.start},o.prototype._createDomElement=function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.visibleFrame=document.createElement("div"),this.dom.visibleFrame.className="vis-item-visible-frame",this.dom.box.appendChild(this.dom.visibleFrame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dom.box["timeline-item"]=this,this.dirty=!0)},o.prototype._appendDomElement=function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var t=this.parent.dom.foreground;if(!t)throw new Error("Cannot redraw item: parent has no foreground container element");t.appendChild(this.dom.box)}this.displayed=!0},o.prototype._updateDirtyDomComponents=function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var t=this.editable.updateTime||this.editable.updateGroup,e=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(t?" vis-editable":" vis-readonly");this.dom.box.className=this.baseClassName+e,this.dom.content.style.maxWidth="none"}},o.prototype._getDomComponentsSizes=function(){return this.overflow="hidden"!==window.getComputedStyle(this.dom.frame).overflow,{content:{width:this.dom.content.offsetWidth},box:{height:this.dom.box.offsetHeight}}},o.prototype._updateDomComponentsSizes=function(t){this.props.content.width=t.content.width,this.height=t.box.height,this.dom.content.style.maxWidth="",this.dirty=!1},o.prototype._repaintDomAdditionals=function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDeleteButton(this.dom.box),this._repaintDragCenter(),this._repaintDragLeft(),this._repaintDragRight()},o.prototype.redraw=function(t){var e,i,o=[this._createDomElement.bind(this),this._appendDomElement.bind(this),this._updateDirtyDomComponents.bind(this),function(){this.dirty&&(e=this._getDomComponentsSizes.bind(this)())}.bind(this),function(){this.dirty&&this._updateDomComponentsSizes.bind(this)(e)}.bind(this),this._repaintDomAdditionals.bind(this)];return t?o:(o.forEach((function(t){i=t()})),i)},o.prototype.show=function(){this.displayed||this.redraw()},o.prototype.hide=function(){if(this.displayed){var t=this.dom.box;t.parentNode&&t.parentNode.removeChild(t),this.displayed=!1}},o.prototype.repositionX=function(t){var e,i,o=this.parent.width,n=this.conversion.toScreen(this.data.start),s=this.conversion.toScreen(this.data.end),r=void 0===this.data.align?this.options.align:this.data.align;!1===this.data.limitSize||void 0!==t&&!0!==t||(n<-o&&(n=-o),s>2*o&&(s=2*o));var a=Math.max(s-n+.5,1);switch(this.overflow?(this.options.rtl?this.right=n:this.left=n,this.width=a+this.props.content.width,i=this.props.content.width):(this.options.rtl?this.right=n:this.left=n,this.width=a,i=Math.min(s-n,this.props.content.width)),this.options.rtl?this.dom.box.style.right=this.right+"px":this.dom.box.style.left=this.left+"px",this.dom.box.style.width=a+"px",r){case"left":this.options.rtl?this.dom.content.style.right="0":this.dom.content.style.left="0";break;case"right":this.options.rtl?this.dom.content.style.right=Math.max(a-i,0)+"px":this.dom.content.style.left=Math.max(a-i,0)+"px";break;case"center":this.options.rtl?this.dom.content.style.right=Math.max((a-i)/2,0)+"px":this.dom.content.style.left=Math.max((a-i)/2,0)+"px";break;default:e=this.overflow?s>0?Math.max(-n,0):-i:n<0?-n:0,this.options.rtl?this.dom.content.style.right=e+"px":(this.dom.content.style.left=e+"px",this.dom.content.style.width="calc(100% - "+e+"px)")}},o.prototype.repositionY=function(){var t=this.options.orientation.item;this.dom.box.style.top="top"==t?this.top+"px":this.parent.height-this.top-this.height+"px"},o.prototype._repaintDragLeft=function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.options.editable.updateTime&&!this.dom.dragLeft){var t=document.createElement("div");t.className="vis-drag-left",t.dragLeftItem=this,this.dom.box.appendChild(t),this.dom.dragLeft=t}else this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragLeft||(this.dom.dragLeft.parentNode&&this.dom.dragLeft.parentNode.removeChild(this.dom.dragLeft),this.dom.dragLeft=null)},o.prototype._repaintDragRight=function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.options.editable.updateTime&&!this.dom.dragRight){var t=document.createElement("div");t.className="vis-drag-right",t.dragRightItem=this,this.dom.box.appendChild(t),this.dom.dragRight=t}else this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragRight||(this.dom.dragRight.parentNode&&this.dom.dragRight.parentNode.removeChild(this.dom.dragRight),this.dom.dragRight=null)},t.exports=o},function(t,e,i){function o(t,e){}function n(t,e){return{style:(e=void 0===e?{}:e).style||t.options.drawPoints.style,styles:e.styles||t.options.drawPoints.styles,size:e.size||t.options.drawPoints.size,className:e.className||t.className}}var s=function(t){return t&&t.__esModule?t:{default:t}}(i(1)),r=i(11);o.draw=function(t,e,i,o){o=o||0;for(var a=function(t,e){var i=void 0;return t.options&&t.options.drawPoints&&t.options.drawPoints.onRender&&"function"==typeof t.options.drawPoints.onRender&&(i=t.options.drawPoints.onRender),e.group.options&&e.group.options.drawPoints&&e.group.options.drawPoints.onRender&&"function"==typeof e.group.options.drawPoints.onRender&&(i=e.group.options.drawPoints.onRender),i}(i,e),h=0;hh;)o(a,i=e[h++])&&(~s(d,i)||d.push(i));return d}},function(t,e,i){var o=i(34);t.exports=function(t){return Object(o(t))}},function(t,e,i){var o=i(101)(!0);i(56)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=o(e,i),this._i+=t.length,{value:t,done:!1})}))},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,i){var o=i(60),n=i(41).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,n)}},function(t,e,i){function o(t){this.delay=null,this.max=1/0,this._queue=[],this._timeout=null,this._extended=null,this.setOptions(t)}o.prototype.setOptions=function(t){t&&void 0!==t.delay&&(this.delay=t.delay),t&&void 0!==t.max&&(this.max=t.max),this._flushIfNeeded()},o.extend=function(t,e){var i=new o(e);if(void 0!==t.flush)throw new Error("Target object already has a property flush");t.flush=function(){i.flush()};var n=[{name:"flush",original:void 0}];if(e&&e.replace)for(var s=0;sthis.max&&this.flush(),clearTimeout(this._timeout),this.queue.length>0&&"number"==typeof this.delay){var t=this;this._timeout=setTimeout((function(){t.flush()}),this.delay)}},o.prototype.flush=function(){for(;this._queue.length>0;){var t=this._queue.shift();t.fn.apply(t.context||t.fn,t.args||[])}},t.exports=o},function(t,e){function i(t){if(t)return function(t){for(var e in i.prototype)t[e]=i.prototype[e];return t}(t)}t.exports=i,i.prototype.on=i.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[t]=this._callbacks[t]||[]).push(e),this},i.prototype.once=function(t,e){function i(){o.off(t,i),e.apply(this,arguments)}var o=this;return this._callbacks=this._callbacks||{},i.fn=e,this.on(t,i),this},i.prototype.off=i.prototype.removeListener=i.prototype.removeAllListeners=i.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i=this._callbacks[t];if(!i)return this;if(1==arguments.length)return delete this._callbacks[t],this;for(var o,n=0;n0){var n=i.groupsData.getDataSet();n.get().forEach((function(t){if(t.nestedGroups){0!=t.showNested&&(t.showNested=!0);var e=[];t.nestedGroups.forEach((function(i){var o=n.get(i);o&&(o.nestedInGroup=t.id,0==t.showNested&&(o.visible=!1),e=e.concat(o))})),n.update(e,o)}}))}},update:function(t,e,o){i._onUpdateGroups(e.items)},remove:function(t,e,o){i._onRemoveGroups(e.items)}},this.items={},this.groups={},this.groupIds=[],this.selection=[],this.popup=null,this.touchParams={},this.groupTouchParams={},this._create(),this.setOptions(e)}var s=o(i(43)),r=o(i(1)),a=i(12),h=i(0),d=i(15),l=i(20),u=i(49),p=i(5),c=i(51),m=i(52),f=i(72),g=i(73),v=i(53),y=i(74),b=i(133).default,_="__ungrouped__",w="__background__";n.prototype=new p,n.types={background:y,box:f,range:v,point:g},n.prototype._create=function(){var t=document.createElement("div");t.className="vis-itemset",t["timeline-itemset"]=this,this.dom.frame=t;var e=document.createElement("div");e.className="vis-background",t.appendChild(e),this.dom.background=e;var i=document.createElement("div");i.className="vis-foreground",t.appendChild(i),this.dom.foreground=i;var o=document.createElement("div");o.className="vis-axis",this.dom.axis=o;var n=document.createElement("div");n.className="vis-labelset",this.dom.labelSet=n,this._updateUngrouped();var s=new m(w,null,this);s.show(),this.groups[w]=s,this.hammer=new a(this.body.dom.centerContainer),this.hammer.on("hammer.input",function(t){t.isFirst&&this._onTouch(t)}.bind(this)),this.hammer.on("panstart",this._onDragStart.bind(this)),this.hammer.on("panmove",this._onDrag.bind(this)),this.hammer.on("panend",this._onDragEnd.bind(this)),this.hammer.get("pan").set({threshold:5,direction:a.DIRECTION_HORIZONTAL}),this.hammer.on("tap",this._onSelectItem.bind(this)),this.hammer.on("press",this._onMultiSelectItem.bind(this)),this.hammer.on("doubletap",this._onAddItem.bind(this)),this.options.rtl?this.groupHammer=new a(this.body.dom.rightContainer):this.groupHammer=new a(this.body.dom.leftContainer),this.groupHammer.on("tap",this._onGroupClick.bind(this)),this.groupHammer.on("panstart",this._onGroupDragStart.bind(this)),this.groupHammer.on("panmove",this._onGroupDrag.bind(this)),this.groupHammer.on("panend",this._onGroupDragEnd.bind(this)),this.groupHammer.get("pan").set({threshold:5,direction:a.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",this._onMouseOver.bind(this)),this.body.dom.centerContainer.addEventListener("mouseout",this._onMouseOut.bind(this)),this.body.dom.centerContainer.addEventListener("mousemove",this._onMouseMove.bind(this)),this.body.dom.centerContainer.addEventListener("contextmenu",this._onDragEnd.bind(this)),this.body.dom.centerContainer.addEventListener("mousewheel",this._onMouseWheel.bind(this)),this.show()},n.prototype.setOptions=function(t){if(t){h.selectiveExtend(["type","rtl","align","order","stack","stackSubgroups","selectable","multiselect","multiselectPerGroup","groupOrder","dataAttributes","template","groupTemplate","visibleFrameTemplate","hide","snap","groupOrderSwap","showTooltips","tooltip","tooltipOnItemUpdateTime"],this.options,t),"itemsAlwaysDraggable"in t&&("boolean"==typeof t.itemsAlwaysDraggable?(this.options.itemsAlwaysDraggable.item=t.itemsAlwaysDraggable,this.options.itemsAlwaysDraggable.range=!1):"object"===(0,r.default)(t.itemsAlwaysDraggable)&&(h.selectiveExtend(["item","range"],this.options.itemsAlwaysDraggable,t.itemsAlwaysDraggable),this.options.itemsAlwaysDraggable.item||(this.options.itemsAlwaysDraggable.range=!1))),"orientation"in t&&("string"==typeof t.orientation?this.options.orientation.item="top"===t.orientation?"top":"bottom":"object"===(0,r.default)(t.orientation)&&"item"in t.orientation&&(this.options.orientation.item=t.orientation.item)),"margin"in t&&("number"==typeof t.margin?(this.options.margin.axis=t.margin,this.options.margin.item.horizontal=t.margin,this.options.margin.item.vertical=t.margin):"object"===(0,r.default)(t.margin)&&(h.selectiveExtend(["axis"],this.options.margin,t.margin),"item"in t.margin&&("number"==typeof t.margin.item?(this.options.margin.item.horizontal=t.margin.item,this.options.margin.item.vertical=t.margin.item):"object"===(0,r.default)(t.margin.item)&&h.selectiveExtend(["horizontal","vertical"],this.options.margin.item,t.margin.item)))),"editable"in t&&("boolean"==typeof t.editable?(this.options.editable.updateTime=t.editable,this.options.editable.updateGroup=t.editable,this.options.editable.add=t.editable,this.options.editable.remove=t.editable,this.options.editable.overrideItems=!1):"object"===(0,r.default)(t.editable)&&h.selectiveExtend(["updateTime","updateGroup","add","remove","overrideItems"],this.options.editable,t.editable)),"groupEditable"in t&&("boolean"==typeof t.groupEditable?(this.options.groupEditable.order=t.groupEditable,this.options.groupEditable.add=t.groupEditable,this.options.groupEditable.remove=t.groupEditable):"object"===(0,r.default)(t.groupEditable)&&h.selectiveExtend(["order","add","remove"],this.options.groupEditable,t.groupEditable)),["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"].forEach(function(e){var i=t[e];if(i){if(!(i instanceof Function))throw new Error("option "+e+" must be a function "+e+"(item, callback)");this.options[e]=i}}.bind(this)),this.markDirty()}},n.prototype.markDirty=function(t){this.groupIds=[],t&&t.refreshItems&&h.forEach(this.items,(function(t){t.dirty=!0,t.displayed&&t.redraw()}))},n.prototype.destroy=function(){this.hide(),this.setItems(null),this.setGroups(null),this.hammer=null,this.body=null,this.conversion=null},n.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.axis.parentNode&&this.dom.axis.parentNode.removeChild(this.dom.axis),this.dom.labelSet.parentNode&&this.dom.labelSet.parentNode.removeChild(this.dom.labelSet)},n.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame),this.dom.axis.parentNode||this.body.dom.backgroundVertical.appendChild(this.dom.axis),this.dom.labelSet.parentNode||(this.options.rtl?this.body.dom.right.appendChild(this.dom.labelSet):this.body.dom.left.appendChild(this.dom.labelSet))},n.prototype.setSelection=function(t){var e,i,o,n;for(null==t&&(t=[]),Array.isArray(t)||(t=[t]),e=0,i=this.selection.length;et&&o.push(h.id):h.lefte&&o.push(h.id)}return o},n.prototype._deselect=function(t){for(var e=this.selection,i=0,o=e.length;i0){for(var x={},D=0;D<_;D++)h.forEach(b,(function(t,e){x[e]=t[D]()}));h.forEach(this.groups,(function(t,e){if(e!==w){var i=x[e];s=i||s,v+=t.height}})),v=Math.max(v,y)}return v=Math.max(v,y),r.style.height=i(v),this.props.width=r.offsetWidth,this.props.height=v,this.dom.axis.style.top=i("top"==n?this.body.domProps.top.height+this.body.domProps.border.top:this.body.domProps.top.height+this.body.domProps.centerContainer.height),this.options.rtl?this.dom.axis.style.right="0":this.dom.axis.style.left="0",this.initialItemSetDrawn=!0,s=this._isResized()||s},n.prototype._firstGroup=function(){var t="top"==this.options.orientation.item?0:this.groupIds.length-1,e=this.groupIds[t];return this.groups[e]||this.groups[_]||null},n.prototype._updateUngrouped=function(){var t,e,i=this.groups[_];if(this.groupsData){if(i)for(e in i.hide(),delete this.groups[_],this.items)if(this.items.hasOwnProperty(e)){(t=this.items[e]).parent&&t.parent.remove(t);var o=this._getGroupId(t.data),n=this.groups[o];n&&n.add(t)||t.hide()}}else if(!i){for(e in i=new c(null,null,this),this.groups[_]=i,this.items)this.items.hasOwnProperty(e)&&(t=this.items[e],i.add(t));i.show()}},n.prototype.getLabelSet=function(){return this.dom.labelSet},n.prototype.setItems=function(t){var e,i=this,o=this.itemsData;if(t){if(!(t instanceof d||t instanceof l))throw new TypeError("Data must be an instance of DataSet or DataView");this.itemsData=t}else this.itemsData=null;if(o&&(h.forEach(this.itemListeners,(function(t,e){o.off(e,t)})),e=o.getIds(),this._onRemove(e)),this.itemsData){var n=this.id;h.forEach(this.itemListeners,(function(t,e){i.itemsData.on(e,t,n)})),e=this.itemsData.getIds(),this._onAdd(e),this._updateUngrouped()}this.body.emitter.emit("_change",{queue:!0})},n.prototype.getItems=function(){return this.itemsData},n.prototype.setGroups=function(t){var e,i=this;if(this.groupsData&&(h.forEach(this.groupListeners,(function(t,e){i.groupsData.off(e,t)})),e=this.groupsData.getIds(),this.groupsData=null,this._onRemoveGroups(e)),t){if(!(t instanceof d||t instanceof l))throw new TypeError("Data must be an instance of DataSet or DataView");this.groupsData=t}else this.groupsData=null;if(this.groupsData){var o=this.groupsData;this.groupsData instanceof l&&(o=this.groupsData.getDataSet()),o.get().forEach((function(t){t.nestedGroups&&t.nestedGroups.forEach((function(e){var i=o.get(e);i.nestedInGroup=t.id,0==t.showNested&&(i.visible=!1),o.update(i)}))}));var n=this.id;h.forEach(this.groupListeners,(function(t,e){i.groupsData.on(e,t,n)})),e=this.groupsData.getIds(),this._onAddGroups(e)}this._updateUngrouped(),this._order(),this.body.emitter.emit("_change",{queue:!0})},n.prototype.getGroups=function(){return this.groupsData},n.prototype.removeItem=function(t){var e=this.itemsData.get(t),i=this.itemsData.getDataSet();e&&this.options.onRemove(e,(function(e){e&&i.remove(t)}))},n.prototype._getType=function(t){return t.type||this.options.type||(t.end?"range":"box")},n.prototype._getGroupId=function(t){return"background"==this._getType(t)&&null==t.group?w:this.groupsData?t.group:_},n.prototype._onUpdate=function(t){var e=this;t.forEach(function(t){var i,o=e.itemsData.get(t,e.itemOptions),s=e.items[t],r=o?e._getType(o):null,a=n.types[r];if(s&&(a&&s instanceof a?e._updateItem(s,o):(i=s.selected,e._removeItem(s),s=null)),!s&&o){if(!a)throw"rangeoverflow"==r?new TypeError('Item type "rangeoverflow" is deprecated. Use css styling instead: .vis-item.vis-range .vis-item-content {overflow: visible;}'):new TypeError('Unknown item type "'+r+'"');(s=new a(o,e.conversion,e.options)).id=t,e._addItem(s),i&&(this.selection.push(t),s.select())}}.bind(this)),this._order(),this.body.emitter.emit("_change",{queue:!0})},n.prototype._onAdd=n.prototype._onUpdate,n.prototype._onRemove=function(t){var e=0,i=this;t.forEach((function(t){var o=i.items[t];o&&(e++,i._removeItem(o))})),e&&(this._order(),this.body.emitter.emit("_change",{queue:!0}))},n.prototype._order=function(){h.forEach(this.groups,(function(t){t.order()}))},n.prototype._onUpdateGroups=function(t){this._onAddGroups(t)},n.prototype._onAddGroups=function(t){var e=this;t.forEach((function(t){var i=e.groupsData.get(t),o=e.groups[t];if(o)o.setData(i);else{if(t==_||t==w)throw new Error("Illegal group id. "+t+" is a reserved id.");var n=(0,s.default)(e.options);for(var r in h.extend(n,{height:null}),o=new c(t,i,e),e.groups[t]=o,e.items)if(e.items.hasOwnProperty(r)){var a=e.items[r];a.data.group==t&&o.add(a)}o.order(),o.show()}})),this.body.emitter.emit("_change",{queue:!0})},n.prototype._onRemoveGroups=function(t){var e=this.groups;t.forEach((function(t){var i=e[t];i&&(i.hide(),delete e[t])})),this.markDirty(),this.body.emitter.emit("_change",{queue:!0})},n.prototype._orderGroups=function(){if(this.groupsData){var t=this.groupsData.getIds({order:this.options.groupOrder});t=this._orderNestedGroups(t);var e=!h.equalArray(t,this.groupIds);if(e){var i=this.groups;t.forEach((function(t){i[t].hide()})),t.forEach((function(t){i[t].show()})),this.groupIds=t}return e}return!1},n.prototype._orderNestedGroups=function(t){var e=[];return t.forEach((function(t){var i=this.groupsData.get(t);if(i.nestedInGroup||e.push(t),i.nestedGroups){var o=this.groupsData.get({filter:function(e){return e.nestedInGroup==t},order:this.options.groupOrder}),n=o.map((function(t){return t.id}));e=e.concat(n)}}),this),e},n.prototype._addItem=function(t){this.items[t.id]=t;var e=this._getGroupId(t.data),i=this.groups[e];i?i&&i.data&&i.data.showNested&&(t.groupShowing=!0):t.groupShowing=!1,i&&i.add(t)},n.prototype._updateItem=function(t,e){t.setData(e);var i=this._getGroupId(t.data),o=this.groups[i];o?o&&o.data&&o.data.showNested&&(t.groupShowing=!0):t.groupShowing=!1},n.prototype._removeItem=function(t){t.hide(),delete this.items[t.id];var e=this.selection.indexOf(t.id);-1!=e&&this.selection.splice(e,1),t.parent&&t.parent.remove(t)},n.prototype._constructByEndArray=function(t){for(var e=[],i=0;in)return}if(i&&i!=this.groupTouchParams.group){var a=e.get(i.groupId),d=e.get(this.groupTouchParams.group.groupId);d&&a&&(this.options.groupOrderSwap(d,a,e),e.update(d),e.update(a));var u=e.getIds({order:this.options.groupOrder});if(!h.equalArray(u,this.groupTouchParams.originalOrder))for(var p=this.groupTouchParams.originalOrder,c=this.groupTouchParams.group.groupId,m=Math.min(p.length,u.length),f=0,g=0,v=0;f=m)break;if(u[f+g]==c)g=1;else if(p[f+v]==c)v=1;else{var y=u.indexOf(p[f+v]),b=e.get(u[f+g]),_=e.get(p[f+v]);this.options.groupOrderSwap(b,_,e),e.update(b),e.update(_);var w=u[f+g];u[f+g]=p[f+v],u[y]=w,f++}}}}},n.prototype._onGroupDragEnd=function(t){if(this.options.groupEditable.order&&this.groupTouchParams.group){t.stopPropagation();var e=this,i=e.groupTouchParams.group.groupId,o=e.groupsData.getDataSet(),n=h.extend({},o.get(i));e.options.onMoveGroup(n,(function(t){if(t)t[o._fieldId]=i,o.update(t);else{var n=o.getIds({order:e.options.groupOrder});if(!h.equalArray(n,e.groupTouchParams.originalOrder))for(var s=e.groupTouchParams.originalOrder,r=Math.min(s.length,n.length),a=0;a=r)break;var d=n.indexOf(s[a]),l=o.get(n[a]),u=o.get(s[a]);e.options.groupOrderSwap(l,u,o),o.update(l),o.update(u);var p=n[a];n[a]=s[a],n[d]=p,a++}}})),e.body.emitter.emit("groupDragged",{groupId:i})}},n.prototype._onSelectItem=function(t){if(this.options.selectable){var e=t.srcEvent&&(t.srcEvent.ctrlKey||t.srcEvent.metaKey),i=t.srcEvent&&t.srcEvent.shiftKey;if(e||i)return void this._onMultiSelectItem(t);var o=this.getSelection(),n=this.itemFromTarget(t),s=n?[n.id]:[];this.setSelection(s);var r=this.getSelection();(r.length>0||o.length>0)&&this.body.emitter.emit("select",{items:r,event:t})}},n.prototype._onMouseOver=function(t){var e=this.itemFromTarget(t);if(e&&e!==this.itemFromRelatedTarget(t)){var i=e.getTitle();if(this.options.showTooltips&&i){null==this.popup&&(this.popup=new b(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(i);var o=this.body.dom.centerContainer;this.popup.setPosition(t.clientX-h.getAbsoluteLeft(o)+o.offsetLeft,t.clientY-h.getAbsoluteTop(o)+o.offsetTop),this.popup.show()}else null!=this.popup&&this.popup.hide();this.body.emitter.emit("itemover",{item:e.id,event:t})}},n.prototype._onMouseOut=function(t){var e=this.itemFromTarget(t);e&&e!==this.itemFromRelatedTarget(t)&&(null!=this.popup&&this.popup.hide(),this.body.emitter.emit("itemout",{item:e.id,event:t}))},n.prototype._onMouseMove=function(t){if(this.itemFromTarget(t)&&this.options.showTooltips&&this.options.tooltip.followMouse&&this.popup&&!this.popup.hidden){var e=this.body.dom.centerContainer;this.popup.setPosition(t.clientX-h.getAbsoluteLeft(e)+e.offsetLeft,t.clientY-h.getAbsoluteTop(e)+e.offsetTop),this.popup.show()}},n.prototype._onMouseWheel=function(t){this.touchParams.itemIsDragging&&this._onDragEnd(t)},n.prototype._onUpdateItem=function(t){if(this.options.selectable&&this.options.editable.add){var e=this;if(t){var i=e.itemsData.get(t.id);this.options.onUpdate(i,(function(t){t&&e.itemsData.getDataSet().update(t)}))}}},n.prototype._onDropObjectOnItem=function(t){var e=this.itemFromTarget(t),i=JSON.parse(t.dataTransfer.getData("text"));this.options.onDropObjectOnItem(i,e)},n.prototype._onAddItem=function(t){if(this.options.selectable&&this.options.editable.add){var e,i,o=this,n=this.options.snap||null;this.options.rtl?i=(e=h.getAbsoluteRight(this.dom.frame))-t.center.x:(e=h.getAbsoluteLeft(this.dom.frame),i=t.center.x-e);var s,r,a=this.body.util.toTime(i),d=this.body.util.getScale(),l=this.body.util.getStep();"drop"==t.type?((r=JSON.parse(t.dataTransfer.getData("text"))).content=r.content?r.content:"new item",r.start=r.start?r.start:n?n(a,d,l):a,r.type=r.type||"box",r[this.itemsData._fieldId]=r.id||h.randomUUID(),"range"!=r.type||r.end||(s=this.body.util.toTime(i+this.props.width/5),r.end=n?n(s,d,l):s)):((r={start:n?n(a,d,l):a,content:"new item"})[this.itemsData._fieldId]=h.randomUUID(),"range"===this.options.type&&(s=this.body.util.toTime(i+this.props.width/5),r.end=n?n(s,d,l):s));var u=this.groupFromTarget(t);u&&(r.group=u.groupId),r=this._cloneItemData(r),this.options.onAdd(r,(function(e){e&&(o.itemsData.getDataSet().add(e),"drop"==t.type&&o.setSelection([e.id]))}))}},n.prototype._onMultiSelectItem=function(t){if(this.options.selectable){var e=this.itemFromTarget(t);if(e){var i=this.options.multiselect?this.getSelection():[];if(t.srcEvent&&t.srcEvent.shiftKey&&this.options.multiselect){var o=this.itemsData.get(e.id).group,s=void 0;this.options.multiselectPerGroup&&i.length>0&&(s=this.itemsData.get(i[0]).group),this.options.multiselectPerGroup&&null!=s&&s!=o||i.push(e.id);var r=n._getItemRange(this.itemsData.get(i,this.itemOptions));if(!this.options.multiselectPerGroup||s==o)for(var a in i=[],this.items)if(this.items.hasOwnProperty(a)){var h=this.items[a],d=h.data.start,l=void 0!==h.data.end?h.data.end:d;!(d>=r.min&&l<=r.max)||this.options.multiselectPerGroup&&s!=this.itemsData.get(h.id).group||h instanceof y||i.push(h.id)}}else{var u=i.indexOf(e.id);-1==u?i.push(e.id):i.splice(u,1)}this.setSelection(i),this.body.emitter.emit("select",{items:this.getSelection(),event:t})}}},n._getItemRange=function(t){var e=null,i=null;return t.forEach((function(t){(null==i||t.starte)&&(e=t.end):(null==e||t.start>e)&&(e=t.start)})),{min:i,max:e}},n.prototype.itemFromElement=function(t){for(var e=t;e;){if(e.hasOwnProperty("timeline-item"))return e["timeline-item"];e=e.parentNode}return null},n.prototype.itemFromTarget=function(t){return this.itemFromElement(t.target)},n.prototype.itemFromRelatedTarget=function(t){return this.itemFromElement(t.relatedTarget)},n.prototype.groupFromTarget=function(t){var e=t.center?t.center.y:t.clientY,i=this.groupIds;i.length<=0&&this.groupsData&&(i=this.groupsData.getIds({order:this.options.groupOrder}));for(var o=0;oa&&ea)return s}else if(0===o&&es&&(s=r.top+r.height)}while(a)}}o.height=s-o.top+.5*i.item.vertical},e.nostack=function(t,i,o,n){for(var s=0;so[r].index&&e.collisionByTimes(o[n],o[r])){s=o[r];break}null!=s&&(o[n].top=s.top+s.height)}while(s)}for(var a=0;ao[h].index&&(o[r].top+=o[h].height);for(var d=t[r],l=0;le.right&&t.top-i.vertical+.001e.top:t.left-i.horizontal+.001e.left&&t.top-i.vertical+.001e.top},e.collisionByTimes=function(t,e){return t.start<=e.start&&t.end>=e.start&&t.tope.top||e.start<=t.start&&e.end>=t.start&&e.topt.top}},function(t,e,i){function o(t,e,i){if(this.props={dot:{width:0,height:0},line:{width:0,height:0}},this.options=i,t&&null==t.start)throw new Error('Property "start" missing in item '+t);n.call(this,t,e,i)}var n=i(22);o.prototype=new n(null,null,null),o.prototype.isVisible=function(t){var e=this.options.align,i=this.width*t.getMillisecondsPerPixel();return"right"==e?this.data.start.getTime()>t.start&&this.data.start.getTime()-it.start&&this.data.start.getTime()t.start&&this.data.start.getTime()-i/2t.start&&this.data.startt.start},o.prototype._createDomElement=function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dirty=!0)},o.prototype._appendDomElement=function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var t=this.parent.dom.background;if(!t)throw new Error("Cannot redraw item: parent has no background container element");t.appendChild(this.dom.box)}this.displayed=!0},o.prototype._updateDirtyDomComponents=function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.content),this._updateStyle(this.dom.box);var t=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"");this.dom.box.className=this.baseClassName+t}},o.prototype._getDomComponentsSizes=function(){return this.overflow="hidden"!==window.getComputedStyle(this.dom.content).overflow,{content:{width:this.dom.content.offsetWidth}}},o.prototype._updateDomComponentsSizes=function(t){this.props.content.width=t.content.width,this.height=0,this.dirty=!1},o.prototype._repaintDomAdditionals=function(){},o.prototype.redraw=function(t){var e,i,o=[this._createDomElement.bind(this),this._appendDomElement.bind(this),this._updateDirtyDomComponents.bind(this),function(){this.dirty&&(e=this._getDomComponentsSizes.bind(this)())}.bind(this),function(){this.dirty&&this._updateDomComponentsSizes.bind(this)(e)}.bind(this),this._repaintDomAdditionals.bind(this)];return t?o:(o.forEach((function(t){i=t()})),i)},o.prototype.show=r.prototype.show,o.prototype.hide=r.prototype.hide,o.prototype.repositionX=r.prototype.repositionX,o.prototype.repositionY=function(t){var e,i=this.options.orientation.item;if(void 0!==this.data.subgroup){var o=this.data.subgroup;this.dom.box.style.height=this.parent.subgroups[o].height+"px",this.dom.box.style.top="top"==i?this.parent.top+this.parent.subgroups[o].top+"px":this.parent.top+this.parent.height-this.parent.subgroups[o].top-this.parent.subgroups[o].height+"px",this.dom.box.style.bottom=""}else this.parent instanceof s?(e=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom="bottom"==i?"0":"",this.dom.box.style.top="top"==i?"0":""):(e=this.parent.height,this.dom.box.style.top=this.parent.top+"px",this.dom.box.style.bottom="");this.dom.box.style.height=e+"px"},t.exports=o},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var o="string",n="boolean",s="number",r="object",a={configure:{enabled:{boolean:n},filter:{boolean:n,function:"function"},container:{dom:"dom"},__type__:{object:r,boolean:n,function:"function"}},align:{string:o},rtl:{boolean:n,undefined:"undefined"},rollingMode:{follow:{boolean:n},offset:{number:s,undefined:"undefined"},__type__:{object:r}},verticalScroll:{boolean:n,undefined:"undefined"},horizontalScroll:{boolean:n,undefined:"undefined"},autoResize:{boolean:n},throttleRedraw:{number:s},clickToUse:{boolean:n},dataAttributes:{string:o,array:"array"},editable:{add:{boolean:n,undefined:"undefined"},remove:{boolean:n,undefined:"undefined"},updateGroup:{boolean:n,undefined:"undefined"},updateTime:{boolean:n,undefined:"undefined"},overrideItems:{boolean:n,undefined:"undefined"},__type__:{boolean:n,object:r}},end:{number:s,date:"date",string:o,moment:"moment"},format:{minorLabels:{millisecond:{string:o,undefined:"undefined"},second:{string:o,undefined:"undefined"},minute:{string:o,undefined:"undefined"},hour:{string:o,undefined:"undefined"},weekday:{string:o,undefined:"undefined"},day:{string:o,undefined:"undefined"},week:{string:o,undefined:"undefined"},month:{string:o,undefined:"undefined"},year:{string:o,undefined:"undefined"},__type__:{object:r,function:"function"}},majorLabels:{millisecond:{string:o,undefined:"undefined"},second:{string:o,undefined:"undefined"},minute:{string:o,undefined:"undefined"},hour:{string:o,undefined:"undefined"},weekday:{string:o,undefined:"undefined"},day:{string:o,undefined:"undefined"},week:{string:o,undefined:"undefined"},month:{string:o,undefined:"undefined"},year:{string:o,undefined:"undefined"},__type__:{object:r,function:"function"}},__type__:{object:r}},moment:{function:"function"},groupOrder:{string:o,function:"function"},groupEditable:{add:{boolean:n,undefined:"undefined"},remove:{boolean:n,undefined:"undefined"},order:{boolean:n,undefined:"undefined"},__type__:{boolean:n,object:r}},groupOrderSwap:{function:"function"},height:{string:o,number:s},hiddenDates:{start:{date:"date",number:s,string:o,moment:"moment"},end:{date:"date",number:s,string:o,moment:"moment"},repeat:{string:o},__type__:{object:r,array:"array"}},itemsAlwaysDraggable:{item:{boolean:n,undefined:"undefined"},range:{boolean:n,undefined:"undefined"},__type__:{boolean:n,object:r}},limitSize:{boolean:n},locale:{string:o},locales:{__any__:{any:"any"},__type__:{object:r}},margin:{axis:{number:s},item:{horizontal:{number:s,undefined:"undefined"},vertical:{number:s,undefined:"undefined"},__type__:{object:r,number:s}},__type__:{object:r,number:s}},max:{date:"date",number:s,string:o,moment:"moment"},maxHeight:{number:s,string:o},maxMinorChars:{number:s},min:{date:"date",number:s,string:o,moment:"moment"},minHeight:{number:s,string:o},moveable:{boolean:n},multiselect:{boolean:n},multiselectPerGroup:{boolean:n},onAdd:{function:"function"},onDropObjectOnItem:{function:"function"},onUpdate:{function:"function"},onMove:{function:"function"},onMoving:{function:"function"},onRemove:{function:"function"},onAddGroup:{function:"function"},onMoveGroup:{function:"function"},onRemoveGroup:{function:"function"},onInitialDrawComplete:{function:"function"},order:{function:"function"},orientation:{axis:{string:o,undefined:"undefined"},item:{string:o,undefined:"undefined"},__type__:{string:o,object:r}},selectable:{boolean:n},showCurrentTime:{boolean:n},showMajorLabels:{boolean:n},showMinorLabels:{boolean:n},stack:{boolean:n},stackSubgroups:{boolean:n},snap:{function:"function",null:"null"},start:{date:"date",number:s,string:o,moment:"moment"},template:{function:"function"},groupTemplate:{function:"function"},visibleFrameTemplate:{string:o,function:"function"},showTooltips:{boolean:n},tooltip:{followMouse:{boolean:n},overflowMethod:{string:["cap","flip"]},__type__:{object:r}},tooltipOnItemUpdateTime:{template:{function:"function"},__type__:{boolean:n,object:r}},timeAxis:{scale:{string:o,undefined:"undefined"},step:{number:s,undefined:"undefined"},__type__:{object:r}},type:{string:o},width:{string:o,number:s},zoomable:{boolean:n},zoomKey:{string:["ctrlKey","altKey","metaKey",""]},zoomMax:{number:s},zoomMin:{number:s},__type__:{object:r}};e.allOptions=a,e.configureOptions={global:{align:["center","left","right"],direction:!1,autoResize:!0,clickToUse:!1,editable:{add:!1,remove:!1,updateGroup:!1,updateTime:!1},end:"",format:{minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",year:""}},groupsDraggable:!1,height:"",locale:"",margin:{axis:[20,0,100,1],item:{horizontal:[10,0,100,1],vertical:[10,0,100,1]}},max:"",maxHeight:"",maxMinorChars:[7,0,20,1],min:"",minHeight:"",moveable:!1,multiselect:!1,multiselectPerGroup:!1,orientation:{axis:["both","bottom","top"],item:["bottom","top"]},selectable:!0,showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,stack:!0,stackSubgroups:!0,start:"",showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip"},tooltipOnItemUpdateTime:!1,type:["box","point","range","background"],width:"100%",zoomable:!0,zoomKey:["ctrlKey","altKey","metaKey",""],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1]}}},function(t,e,i){function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(i(16)),s=o(i(1)),r=o(i(30)),a=o(i(31)),h=i(0),d=i(137).default,l=function(){function t(e,i,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;(0,r.default)(this,t),this.parent=e,this.changedOptions=[],this.container=i,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},h.extend(this.options,this.defaultOptions),this.configureOptions=o,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new d(n),this.wrapper=void 0}return(0,a.default)(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;"string"==typeof t?this.options.filter=t:t instanceof Array?this.options.filter=t.join():"object"===(void 0===t?"undefined":(0,s.default)(t))?(void 0!==t.container&&(this.options.container=t.container),void 0!==t.filter&&(this.options.filter=t.filter),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)):"boolean"==typeof t?(this.options.filter=!0,e=t):"function"==typeof t&&(this.options.filter=t,e=!0),!1===this.options.filter&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){var t=this;this._clean(),this.changedOptions=[];var e=this.options.filter,i=0,o=!1;for(var n in this.configureOptions)this.configureOptions.hasOwnProperty(n)&&(this.allowCreation=!1,o=!1,"function"==typeof e?o=(o=e(n,[]))||this._handleObject(this.configureOptions[n],[n],!0):!0!==e&&-1===e.indexOf(n)||(o=!0),!1!==o&&(this.allowCreation=!0,i>0&&this._makeItem([]),this._makeHeader(n),this._handleObject(this.configureOptions[n],[n])),i++);if(!0===this.options.showButton){var s=document.createElement("div");s.className="vis-configuration vis-config-button",s.innerHTML="generate options",s.onclick=function(){t._printOptions()},s.onmouseover=function(){s.className="vis-configuration vis-config-button hover"},s.onmouseout=function(){s.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(s)}this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t1?i-1:0),n=1;n2&&void 0!==arguments[2]&&arguments[2],o=document.createElement("div");return o.className="vis-configuration vis-config-label vis-config-s"+e.length,o.innerHTML=!0===i?""+t+":":t+":",o}},{key:"_makeDropdown",value:function(t,e,i){var o=document.createElement("select");o.className="vis-configuration vis-config-select";var n=0;void 0!==e&&-1!==t.indexOf(e)&&(n=t.indexOf(e));for(var s=0;ss&&1!==s&&(a.max=Math.ceil(1.2*e),d=a.max,h="range increased"),a.value=e):a.value=o;var l=document.createElement("input");l.className="vis-configuration vis-config-rangeinput",l.value=a.value;var u=this;a.onchange=function(){l.value=this.value,u._update(Number(this.value),i)},a.oninput=function(){l.value=this.value};var p=this._makeLabel(i[i.length-1],i),c=this._makeItem(i,p,a,l);""!==h&&this.popupHistory[c]!==d&&(this.popupHistory[c]=d,this._setupPopup(h,c))}},{key:"_setupPopup",value:function(t,e){var i=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!1,n=this.options.filter,s=!1;for(var r in t)if(t.hasOwnProperty(r)){o=!0;var a=t[r],d=h.copyAndExtendArray(e,r);if("function"==typeof n&&!1===(o=n(r,e))&&!(a instanceof Array)&&"string"!=typeof a&&"boolean"!=typeof a&&a instanceof Object&&(this.allowCreation=!1,o=this._handleObject(a,d,!0),this.allowCreation=!1===i),!1!==o){s=!0;var l=this._getValue(d);if(a instanceof Array)this._handleArray(a,l,d);else if("string"==typeof a)this._makeTextInput(a,l,d);else if("boolean"==typeof a)this._makeCheckbox(a,l,d);else if(a instanceof Object){var u=!0;if(-1!==e.indexOf("physics")&&this.moduleOptions.physics.solver!==r&&(u=!1),!0===u)if(void 0!==a.enabled){var p=h.copyAndExtendArray(d,"enabled"),c=this._getValue(p);if(!0===c){var m=this._makeLabel(r,d,!0);this._makeItem(d,m),s=this._handleObject(a,d)||s}else this._makeCheckbox(a,c,d)}else{var f=this._makeLabel(r,d,!0);this._makeItem(d,f),s=this._handleObject(a,d)||s}}else console.error("dont know how to handle",a,r,d)}}return s}},{key:"_handleArray",value:function(t,e,i){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,i),t[1]!==e&&this.changedOptions.push({path:i,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:Number(e)}))}},{key:"_update",value:function(t,e){var i=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",i),this.initialized=!0,this.parent.setOptions(i)}},{key:"_constructOptions",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i;t="false"!==(t="true"===t||t)&&t;for(var n=0;nvar options = "+(0,n.default)(t,null,2)+""}},{key:"getOptions",value:function(){for(var t={},e=0;e0){var a={};for(this._getRelevantData(s,a,o,n),this._applySampling(s,a),e=0;e0)switch(t.options.style){case"line":d.hasOwnProperty(s[e])||(d[s[e]]=m.calcPath(a[s[e]],t)),m.draw(d[s[e]],t,this.framework);case"point":case"points":"point"!=t.options.style&&"points"!=t.options.style&&1!=t.options.drawPoints.enabled||f.draw(a[s[e]],t,this.framework)}}}return r.cleanupElements(this.svgElements),!1},o.prototype._stack=function(t,e){var i,o,n,s,r;i=0;for(var a=0;at[a].x){r=e[h],s=0==h?r:e[h-1],i=h;break}}void 0===r&&(s=e[e.length-1],r=e[e.length-1]),o=r.x-s.x,n=r.y-s.y,t[a].y=0==o?t[a].orginalY+r.y:t[a].orginalY+n/o*(t[a].x-s.x)+s.y}},o.prototype._getRelevantData=function(t,e,i,o){var n,r,a,h;if(t.length>0)for(r=0;r0)for(var i=0;i0){var n,s=o.length,r=s/(this.body.util.toGlobalScreen(o[o.length-1].x)-this.body.util.toGlobalScreen(o[0].x));n=Math.min(Math.ceil(.2*s),Math.max(1,Math.round(r)));for(var a=new Array(s),h=0;h0){for(s=0;s0&&(n=this.groups[t[s]],!0===r.stack&&"bar"===r.style?"left"===r.yAxisOrientation?a=a.concat(o):h=h.concat(o):i[t[s]]=n.getYRange(o,t[s]));c.getStackedYRange(a,i,t,"__barStackLeft","left"),c.getStackedYRange(h,i,t,"__barStackRight","right")}},o.prototype._updateYAxis=function(t,e){var i,o,n=!1,s=!1,r=!1,a=1e9,h=1e9,d=-1e9,l=-1e9;if(t.length>0){for(var u=0;ui?i:a,d=di?i:h,l=l=0&&t._redrawLabel(o-2,e.val,i,"vis-y-axis vis-major",t.props.majorCharHeight),!0===t.master&&(n?t._redrawLine(o,i,"vis-grid vis-horizontal vis-major",t.options.majorLinesOffset,t.props.majorLineWidth):t._redrawLine(o,i,"vis-grid vis-horizontal vis-minor",t.options.minorLinesOffset,t.props.minorLineWidth))}));var a=0;void 0!==this.options[i].title&&void 0!==this.options[i].title.text&&(a=this.props.titleCharHeight);var d=!0===this.options.icons?Math.max(this.options.iconWidth,a)+this.options.labelOffsetX+15:a+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-d&&!0===this.options.visible?(this.width=this.maxLabelSize+d,this.options.width=this.width+"px",r.cleanupElements(this.DOMelements.lines),r.cleanupElements(this.DOMelements.labels),this.redraw(),e=!0):this.maxLabelSizethis.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+d),this.options.width=this.width+"px",r.cleanupElements(this.DOMelements.lines),r.cleanupElements(this.DOMelements.labels),this.redraw(),e=!0):(r.cleanupElements(this.DOMelements.lines),r.cleanupElements(this.DOMelements.labels),e=!1),e},o.prototype.convertValue=function(t){return this.scale.convertValue(t)},o.prototype.screenToValue=function(t){return this.scale.screenToValue(t)},o.prototype._redrawLabel=function(t,e,i,o,n){var s=r.getDOMElement("div",this.DOMelements.labels,this.dom.frame);s.className=o,s.innerHTML=e,"left"===i?(s.style.left="-"+this.options.labelOffsetX+"px",s.style.textAlign="right"):(s.style.right="-"+this.options.labelOffsetX+"px",s.style.textAlign="left"),s.style.top=t-.5*n+this.options.labelOffsetY+"px",e+="";var a=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize6&&void 0!==arguments[6]&&arguments[6],a=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=n,this.majorCharHeight=s,this._start=t,this._end=e,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=r,this.autoScaleStart=i,this.autoScaleEnd=o,this.formattingFunction=a,i||o){var h=this,d=function(t){var e=t-t%(h.magnitudefactor*h.minorSteps[h.minorStepIdx]);return t%(h.magnitudefactor*h.minorSteps[h.minorStepIdx])>h.magnitudefactor*h.minorSteps[h.minorStepIdx]*.5?e+h.magnitudefactor*h.minorSteps[h.minorStepIdx]:e};i&&(this._start-=2*this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._start=d(this._start)),o&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=d(this._end)),this.determineScale()}}o.prototype.setCharHeight=function(t){this.majorCharHeight=t},o.prototype.setHeight=function(t){this.containerHeight=t},o.prototype.determineScale=function(){var t=this._end-this._start;this.scale=this.containerHeight/t;var e=this.majorCharHeight/this.scale,i=t>0?Math.round(Math.log(t)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,i);var o=0;i<0&&(o=i);for(var n=!1,s=o;Math.abs(s)<=Math.abs(i);s++){this.magnitudefactor=Math.pow(10,s);for(var r=0;r=e){n=!0,this.minorStepIdx=r;break}if(!0===n)break}},o.prototype.is_major=function(t){return t%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])==0},o.prototype.getStep=function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]},o.prototype.getFirstMajor=function(){var t=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(t-this._start%t)%t)},o.prototype.formatValue=function(t){var e=t.toPrecision(5);return"function"==typeof this.formattingFunction&&(e=this.formattingFunction(t)),"number"==typeof e?""+e:"string"==typeof e?e:t.toPrecision(5)},o.prototype.getLines=function(){for(var t=[],e=this.getStep(),i=(e-this._start%e)%e,o=this._start+i;this._end-o>1e-5;o+=e)o!=this._start&&t.push({major:this.is_major(o),y:this.convertValue(o),val:this.formatValue(o)});return t},o.prototype.followScale=function(t){var e=this.minorStepIdx,i=this._start,o=this._end,n=this,s=function(){n.magnitudefactor*=2},r=function(){n.magnitudefactor/=2};t.minorStepIdx<=1&&this.minorStepIdx<=1||t.minorStepIdx>1&&this.minorStepIdx>1||(t.minorStepIdxo+1e-5)r(),d=!1;else{if(!this.autoScaleStart&&this._start=0)){r(),d=!1;continue}console.warn("Can't adhere to given 'min' range, due to zeroalign")}this.autoScaleStart&&this.autoScaleEnd&&ue.x?1:-1}))):this.itemsData=[]},o.prototype.getItems=function(){return this.itemsData},o.prototype.setZeroPosition=function(t){this.zeroPosition=t},o.prototype.setOptions=function(t){if(void 0!==t){s.selectiveDeepExtend(["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"],this.options,t),"function"==typeof t.drawPoints&&(t.drawPoints={onRender:t.drawPoints}),s.mergeOptions(this.options,t,"interpolation"),s.mergeOptions(this.options,t,"drawPoints"),s.mergeOptions(this.options,t,"shaded"),t.interpolation&&"object"==(0,n.default)(t.interpolation)&&t.interpolation.parametrization&&("uniform"==t.interpolation.parametrization?this.options.interpolation.alpha=0:"chordal"==t.interpolation.parametrization?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5))}},o.prototype.update=function(t){this.group=t,this.content=t.content||"graph",this.className=t.className||this.className||"vis-graph-group"+this.groupsUsingDefaultStyles[0]%10,this.visible=void 0===t.visible||t.visible,this.style=t.style,this.setOptions(t.options)},o.prototype.getLegend=function(t,e,i,o,n){switch(null!=i&&null!=i||(i={svg:document.createElementNS("http://www.w3.org/2000/svg","svg"),svgElements:{},options:this.options,groups:[this]}),null!=o&&null!=o||(o=0),null!=n&&null!=n||(n=.5*e),this.options.style){case"line":a.drawIcon(this,o,n,t,e,i);break;case"points":case"point":h.drawIcon(this,o,n,t,e,i);break;case"bar":r.drawIcon(this,o,n,t,e,i)}return{icon:i.svg,label:this.content,orientation:this.options.yAxisOrientation}},o.prototype.getYRange=function(t){for(var e=t[0].y,i=t[0].y,o=0;ot[o].y?t[o].y:e,i=i0&&(i=Math.min(i,Math.abs(e[o-1].screen_x-e[o].screen_x))),0===i&&(void 0===t[e[o].screen_x]&&(t[e[o].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),t[e[o].screen_x].amount+=1)},o._getSafeDrawData=function(t,e,i){var o,n;return t0?(o=t0){t.sort((function(t,e){return t.screen_x===e.screen_x?t.groupIde[s].screen_y?e[s].screen_y:o,n=nt[r].accumulatedNegative?t[r].accumulatedNegative:o)>t[r].accumulatedPositive?t[r].accumulatedPositive:o,n=(n=n0)return 1==e.options.interpolation.enabled?o._catmullRom(t,e):o._linear(t)},o.drawIcon=function(t,e,i,o,s,r){var a,h,d=.5*s,l=n.getSVGElement("rect",r.svgElements,r.svg);if(l.setAttributeNS(null,"x",e),l.setAttributeNS(null,"y",i-d),l.setAttributeNS(null,"width",o),l.setAttributeNS(null,"height",2*d),l.setAttributeNS(null,"class","vis-outline"),(a=n.getSVGElement("path",r.svgElements,r.svg)).setAttributeNS(null,"class",t.className),void 0!==t.style&&a.setAttributeNS(null,"style",t.style),a.setAttributeNS(null,"d","M"+e+","+i+" L"+(e+o)+","+i),1==t.options.shaded.enabled&&(h=n.getSVGElement("path",r.svgElements,r.svg),"top"==t.options.shaded.orientation?h.setAttributeNS(null,"d","M"+e+", "+(i-d)+"L"+e+","+i+" L"+(e+o)+","+i+" L"+(e+o)+","+(i-d)):h.setAttributeNS(null,"d","M"+e+","+i+" L"+e+","+(i+d)+" L"+(e+o)+","+(i+d)+"L"+(e+o)+","+i),h.setAttributeNS(null,"class",t.className+" vis-icon-fill"),void 0!==t.options.shaded.style&&""!==t.options.shaded.style&&h.setAttributeNS(null,"style",t.options.shaded.style)),1==t.options.drawPoints.enabled){var u={style:t.options.drawPoints.style,styles:t.options.drawPoints.styles,size:t.options.drawPoints.size,className:t.className};n.drawPoint(e+.5*o,i,u,r.svgElements,r.svg)}},o.drawShading=function(t,e,i,o){if(1==e.options.shaded.enabled){var s=Number(o.svg.style.height.replace("px","")),r=n.getSVGElement("path",o.svgElements,o.svg),a="L";1==e.options.interpolation.enabled&&(a="C");var h,d;d="top"==e.options.shaded.orientation?0:"bottom"==e.options.shaded.orientation?s:Math.min(Math.max(0,e.zeroPosition),s),h="group"==e.options.shaded.orientation&&null!=i&&null!=i?"M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,a,!1)+" L"+i[i.length-1][0]+","+i[i.length-1][1]+" "+this.serializePath(i,a,!0)+i[0][0]+","+i[0][1]+" Z":"M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,a,!1)+" V"+d+" H"+t[0][0]+" Z",r.setAttributeNS(null,"class",e.className+" vis-fill"),void 0!==e.options.shaded.style&&r.setAttributeNS(null,"style",e.options.shaded.style),r.setAttributeNS(null,"d",h)}},o.draw=function(t,e,i){if(null!=t&&null!=t){var o=n.getSVGElement("path",i.svgElements,i.svg);o.setAttributeNS(null,"class",e.className),void 0!==e.style&&o.setAttributeNS(null,"style",e.style);var s="L";1==e.options.interpolation.enabled&&(s="C"),o.setAttributeNS(null,"d","M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,s,!1))}},o.serializePath=function(t,e,i){if(t.length<2)return"";var o,n=e;if(i)for(o=t.length-2;o>0;o--)n+=t[o][0]+","+t[o][1]+" ";else for(o=1;o0&&(m=1/m),(f=3*g*(g+v))>0&&(f=1/f),a={screen_x:(-b*o.screen_x+p*n.screen_x+_*s.screen_x)*m,screen_y:(-b*o.screen_y+p*n.screen_y+_*s.screen_y)*m},h={screen_x:(y*n.screen_x+c*s.screen_x-b*r.screen_x)*f,screen_y:(y*n.screen_y+c*s.screen_y-b*r.screen_y)*f},0==a.screen_x&&0==a.screen_y&&(a=n),0==h.screen_x&&0==h.screen_y&&(h=s),x.push([a.screen_x,a.screen_y]),x.push([h.screen_x,h.screen_y]),x.push([s.screen_x,s.screen_y]);return x},o._linear=function(t){for(var e=[],i=0;i");this.dom.textArea.innerHTML=r,this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}},o.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var t=(0,n.default)(this.groups);t.sort((function(t,e){return t=t.length?(this._t=void 0,n(1)):n(0,"keys"==e?i:"values"==e?t[i]:[i,t[i]])}),"values"),s.Arguments=s.Array,o("keys"),o("values"),o("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,i){var o=i(33);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)}},function(t,e,i){var o=i(93);t.exports=function(t,e,i){if(o(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,o){return t.call(e,i,o)};case 3:return function(i,o,n){return t.call(e,i,o,n)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,i){var o=i(37),n=i(25),s=i(42),r={};i(14)(r,i(7)("iterator"),(function(){return this})),t.exports=function(t,e,i){t.prototype=o(r,{next:n(1,i)}),s(t,e+" Iterator")}},function(t,e,i){var o=i(8),n=i(18),s=i(26);t.exports=i(9)?Object.defineProperties:function(t,e){n(t);for(var i,r=s(e),a=r.length,h=0;a>h;)o.f(t,i=r[h++],e[i]);return t}},function(t,e,i){var o=i(13),n=i(97),s=i(98);t.exports=function(t){return function(e,i,r){var a,h=o(e),d=n(h.length),l=s(r,d);if(t&&i!=i){for(;d>l;)if((a=h[l++])!=a)return!0}else for(;d>l;l++)if((t||l in h)&&h[l]===i)return t||l||0;return!t&&-1}}},function(t,e,i){var o=i(38),n=Math.min;t.exports=function(t){return t>0?n(o(t),9007199254740991):0}},function(t,e,i){var o=i(38),n=Math.max,s=Math.min;t.exports=function(t,e){return(t=o(t))<0?n(t+e,0):s(t,e)}},function(t,e,i){var o=i(6).document;t.exports=o&&o.documentElement},function(t,e,i){var o=i(10),n=i(61),s=i(39)("IE_PROTO"),r=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=n(t),o(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?r:null}},function(t,e,i){var o=i(38),n=i(34);t.exports=function(t){return function(e,i){var s,r,a=String(n(e)),h=o(i),d=a.length;return h<0||h>=d?t?"":void 0:(s=a.charCodeAt(h))<55296||s>56319||h+1===d||(r=a.charCodeAt(h+1))<56320||r>57343?t?a.charAt(h):s:t?a.slice(h,h+2):r-56320+(s-55296<<10)+65536}}},function(t,e,i){var o=i(18),n=i(103);t.exports=i(2).getIterator=function(t){var e=n(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return o(e.call(t))}},function(t,e,i){var o=i(104),n=i(7)("iterator"),s=i(23);t.exports=i(2).getIteratorMethod=function(t){if(null!=t)return t[n]||t["@@iterator"]||s[o(t)]}},function(t,e,i){var o=i(33),n=i(7)("toStringTag"),s="Arguments"==o(function(){return arguments}());t.exports=function(t){var e,i,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),n))?i:s?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},function(t,e,i){i(106);var o=i(2).Object;t.exports=function(t,e){return o.create(t,e)}},function(t,e,i){var o=i(17);o(o.S,"Object",{create:i(37)})},function(t,e,i){i(108),t.exports=i(2).Object.keys},function(t,e,i){var o=i(61),n=i(26);i(109)("keys",(function(){return function(t){return n(o(t))}}))},function(t,e,i){var o=i(17),n=i(2),s=i(19);t.exports=function(t,e){var i=(n.Object||{})[t]||Object[t],r={};r[t]=e(i),o(o.S+o.F*s((function(){i(1)})),"Object",r)}},function(t,e,i){t.exports={default:i(111),__esModule:!0}},function(t,e,i){i(62),i(55),t.exports=i(44).f("iterator")},function(t,e,i){t.exports={default:i(113),__esModule:!0}},function(t,e,i){i(114),i(120),i(121),i(122),t.exports=i(2).Symbol},function(t,e,i){var o=i(6),n=i(10),s=i(9),r=i(17),a=i(59),h=i(115).KEY,d=i(19),l=i(40),u=i(42),p=i(27),c=i(7),m=i(44),f=i(45),g=i(116),v=i(117),y=i(18),b=i(13),_=i(36),w=i(25),x=i(37),D=i(118),k=i(119),S=i(8),T=i(26),C=k.f,M=S.f,O=D.f,E=o.Symbol,P=o.JSON,I=P&&P.stringify,N=c("_hidden"),A=c("toPrimitive"),R={}.propertyIsEnumerable,L=l("symbol-registry"),F=l("symbols"),H=l("op-symbols"),j=Object.prototype,Y="function"==typeof E,z=o.QObject,G=!z||!z.prototype||!z.prototype.findChild,W=s&&d((function(){return 7!=x(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a}))?function(t,e,i){var o=C(j,e);o&&delete j[e],M(t,e,i),o&&t!==j&&M(j,e,o)}:M,V=function(t){var e=F[t]=x(E.prototype);return e._k=t,e},B=Y&&"symbol"==typeof E.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof E},U=function(t,e,i){return t===j&&U(H,e,i),y(t),e=_(e,!0),y(i),n(F,e)?(i.enumerable?(n(t,N)&&t[N][e]&&(t[N][e]=!1),i=x(i,{enumerable:w(0,!1)})):(n(t,N)||M(t,N,w(1,{})),t[N][e]=!0),W(t,e,i)):M(t,e,i)},q=function(t,e){y(t);for(var i,o=g(e=b(e)),n=0,s=o.length;s>n;)U(t,i=o[n++],e[i]);return t},X=function(t){var e=R.call(this,t=_(t,!0));return!(this===j&&n(F,t)&&!n(H,t))&&(!(e||!n(this,t)||!n(F,t)||n(this,N)&&this[N][t])||e)},Z=function(t,e){if(t=b(t),e=_(e,!0),t!==j||!n(F,e)||n(H,e)){var i=C(t,e);return!i||!n(F,e)||n(t,N)&&t[N][e]||(i.enumerable=!0),i}},K=function(t){for(var e,i=O(b(t)),o=[],s=0;i.length>s;)n(F,e=i[s++])||e==N||e==h||o.push(e);return o},J=function(t){for(var e,i=t===j,o=O(i?H:b(t)),s=[],r=0;o.length>r;)!n(F,e=o[r++])||i&&!n(j,e)||s.push(F[e]);return s};Y||(E=function(){if(this instanceof E)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(i){this===j&&e.call(H,i),n(this,N)&&n(this[N],t)&&(this[N][t]=!1),W(this,t,w(1,i))};return s&&G&&W(j,t,{configurable:!0,set:e}),V(t)},a(E.prototype,"toString",(function(){return this._k})),k.f=Z,S.f=U,i(64).f=D.f=K,i(46).f=X,i(63).f=J,s&&!i(35)&&a(j,"propertyIsEnumerable",X,!0),m.f=function(t){return V(c(t))}),r(r.G+r.W+r.F*!Y,{Symbol:E});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Q=0;$.length>Q;)c($[Q++]);for(var tt=T(c.store),et=0;tt.length>et;)f(tt[et++]);r(r.S+r.F*!Y,"Symbol",{for:function(t){return n(L,t+="")?L[t]:L[t]=E(t)},keyFor:function(t){if(!B(t))throw TypeError(t+" is not a symbol!");for(var e in L)if(L[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),r(r.S+r.F*!Y,"Object",{create:function(t,e){return void 0===e?x(t):q(x(t),e)},defineProperty:U,defineProperties:q,getOwnPropertyDescriptor:Z,getOwnPropertyNames:K,getOwnPropertySymbols:J}),P&&r(r.S+r.F*(!Y||d((function(){var t=E();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))}))),"JSON",{stringify:function(t){if(void 0!==t&&!B(t)){for(var e,i,o=[t],n=1;arguments.length>n;)o.push(arguments[n++]);return"function"==typeof(e=o[1])&&(i=e),!i&&v(e)||(e=function(t,e){if(i&&(e=i.call(this,t,e)),!B(e))return e}),o[1]=e,I.apply(P,o)}}}),E.prototype[A]||i(14)(E.prototype,A,E.prototype.valueOf),u(E,"Symbol"),u(Math,"Math",!0),u(o.JSON,"JSON",!0)},function(t,e,i){var o=i(27)("meta"),n=i(24),s=i(10),r=i(8).f,a=0,h=Object.isExtensible||function(){return!0},d=!i(19)((function(){return h(Object.preventExtensions({}))})),l=function(t){r(t,o,{value:{i:"O"+ ++a,w:{}}})},u=t.exports={KEY:o,NEED:!1,fastKey:function(t,e){if(!n(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,o)){if(!h(t))return"F";if(!e)return"E";l(t)}return t[o].i},getWeak:function(t,e){if(!s(t,o)){if(!h(t))return!0;if(!e)return!1;l(t)}return t[o].w},onFreeze:function(t){return d&&u.NEED&&h(t)&&!s(t,o)&&l(t),t}}},function(t,e,i){var o=i(26),n=i(63),s=i(46);t.exports=function(t){var e=o(t),i=n.f;if(i)for(var r,a=i(t),h=s.f,d=0;a.length>d;)h.call(t,r=a[d++])&&e.push(r);return e}},function(t,e,i){var o=i(33);t.exports=Array.isArray||function(t){return"Array"==o(t)}},function(t,e,i){var o=i(13),n=i(64).f,s={}.toString,r="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return r&&"[object Window]"==s.call(t)?function(t){try{return n(t)}catch(t){return r.slice()}}(t):n(o(t))}},function(t,e,i){var o=i(46),n=i(25),s=i(13),r=i(36),a=i(10),h=i(57),d=Object.getOwnPropertyDescriptor;e.f=i(9)?d:function(t,e){if(t=s(t),e=r(e,!0),h)try{return d(t,e)}catch(t){}if(a(t,e))return n(!o.f.call(t,e),t[e])}},function(t,e){},function(t,e,i){i(45)("asyncIterator")},function(t,e,i){i(45)("observable")},function(t,e,i){(function(t){t.exports=function(){function e(){return Co.apply(null,arguments)}function i(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function n(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}function s(t){return void 0===t}function r(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function a(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(t,e){var i,o=[];for(i=0;i0)for(i=0;i0?"future":"past"];return S(i)?i(e):i.replace(/%s/i,e)}function R(t,e){var i=t.toLowerCase();Fo[i]=Fo[i+"s"]=Fo[e]=t}function L(t){return"string"==typeof t?Fo[t]||Fo[t.toLowerCase()]:void 0}function F(t){var e,i,o={};for(i in t)d(t,i)&&(e=L(i))&&(o[e]=t[i]);return o}function H(t,e){Ho[t]=e}function j(t){var e=[];for(var i in t)e.push({unit:i,priority:Ho[i]});return e.sort((function(t,e){return t.priority-e.priority})),e}function Y(t,e,i){var o=""+Math.abs(t),n=e-o.length;return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+o}function z(t,e,i,o){var n=o;"string"==typeof o&&(n=function(){return this[o]()}),t&&(Go[t]=n),e&&(Go[e[0]]=function(){return Y(n.apply(this,arguments),e[1],e[2])}),i&&(Go[i]=function(){return this.localeData().ordinal(n.apply(this,arguments),t)})}function G(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function W(t){var e,i,o=t.match(jo);for(e=0,i=o.length;e=0&&Yo.test(t);)t=t.replace(Yo,i),Yo.lastIndex=0,o-=1;return t}function U(t,e,i){an[t]=S(e)?e:function(t,o){return t&&i?i:e}}function q(t,e){return d(an,t)?an[t](e._strict,e._locale):new RegExp(X(t))}function X(t){return Z(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,o,n){return e||i||o||n})))}function Z(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function K(t,e){var i,o=e;for("string"==typeof t&&(t=[t]),r(e)&&(o=function(t,i){i[e]=_(t)}),i=0;i=0&&isFinite(a.getFullYear())&&a.setFullYear(t),a}function _t(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function wt(t,e,i){var o=7+e-i;return-(7+_t(t,0,o).getUTCDay()-e)%7+o-1}function xt(t,e,i,o,n){var s,r,a=1+7*(e-1)+(7+i-o)%7+wt(t,o,n);return a<=0?r=Q(s=t-1)+a:a>Q(t)?(s=t+1,r=a-Q(t)):(s=t,r=a),{year:s,dayOfYear:r}}function Dt(t,e,i){var o,n,s=wt(t.year(),e,i),r=Math.floor((t.dayOfYear()-s-1)/7)+1;return r<1?o=r+kt(n=t.year()-1,e,i):r>kt(t.year(),e,i)?(o=r-kt(t.year(),e,i),n=t.year()+1):(n=t.year(),o=r),{week:o,year:n}}function kt(t,e,i){var o=wt(t,e,i),n=wt(t+1,e,i);return(Q(t)-o+n)/7}function St(t){return Dt(t,this._week.dow,this._week.doy).week}function Tt(){return this._week.dow}function Ct(){return this._week.doy}function Mt(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Ot(t){var e=Dt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Et(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Pt(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function It(t,e){return t?i(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:i(this._weekdays)?this._weekdays:this._weekdays.standalone}function Nt(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort}function At(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Rt(t,e,i){var o,n,s,r=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)s=u([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(s,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(n=yn.call(this._weekdaysParse,r))?n:null:"ddd"===e?-1!==(n=yn.call(this._shortWeekdaysParse,r))?n:null:-1!==(n=yn.call(this._minWeekdaysParse,r))?n:null:"dddd"===e?-1!==(n=yn.call(this._weekdaysParse,r))||-1!==(n=yn.call(this._shortWeekdaysParse,r))||-1!==(n=yn.call(this._minWeekdaysParse,r))?n:null:"ddd"===e?-1!==(n=yn.call(this._shortWeekdaysParse,r))||-1!==(n=yn.call(this._weekdaysParse,r))||-1!==(n=yn.call(this._minWeekdaysParse,r))?n:null:-1!==(n=yn.call(this._minWeekdaysParse,r))||-1!==(n=yn.call(this._weekdaysParse,r))||-1!==(n=yn.call(this._shortWeekdaysParse,r))?n:null}function Lt(t,e,i){var o,n,s;if(this._weekdaysParseExact)return Rt.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(n=u([2e3,1]).day(o),i&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(n,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(n,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(n,"").replace(".",".?")+"$","i")),this._weekdaysParse[o]||(s="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[o]=new RegExp(s.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[o].test(t))return o;if(i&&"ddd"===e&&this._shortWeekdaysParse[o].test(t))return o;if(i&&"dd"===e&&this._minWeekdaysParse[o].test(t))return o;if(!i&&this._weekdaysParse[o].test(t))return o}}function Ft(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Et(t,this.localeData()),this.add(t-e,"d")):e}function Ht(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function jt(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Pt(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Yt(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Wt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=On),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function zt(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Wt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=En),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Gt(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Wt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Pn),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Wt(){function t(t,e){return e.length-t.length}var e,i,o,n,s,r=[],a=[],h=[],d=[];for(e=0;e<7;e++)i=u([2e3,1]).day(e),o=this.weekdaysMin(i,""),n=this.weekdaysShort(i,""),s=this.weekdays(i,""),r.push(o),a.push(n),h.push(s),d.push(o),d.push(n),d.push(s);for(r.sort(t),a.sort(t),h.sort(t),d.sort(t),e=0;e<7;e++)a[e]=Z(a[e]),h[e]=Z(h[e]),d[e]=Z(d[e]);this._weekdaysRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Vt(){return this.hours()%12||12}function Bt(){return this.hours()||24}function Ut(t,e){z(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function qt(t,e){return e._meridiemParse}function Xt(t){return"p"===(t+"").toLowerCase().charAt(0)}function Zt(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"}function Kt(t){return t?t.toLowerCase().replace("_","-"):t}function Jt(t){for(var e,i,o,n,s=0;s0;){if(o=$t(n.slice(0,e).join("-")))return o;if(i&&i.length>=e&&w(n,i,!0)>=e-1)break;e--}s++}return null}function $t(e){var i=null;if(!Ln[e]&&void 0!==t&&t&&t.exports)try{i=In._abbr,function(){var t=new Error('Cannot find module "./locale"');throw t.code="MODULE_NOT_FOUND",t}(),Qt(i)}catch(t){}return Ln[e]}function Qt(t,e){var i;return t&&(i=s(e)?ie(t):te(t,e))&&(In=i),In._abbr}function te(t,e){if(null!==e){var i=Rn;if(e.abbr=t,null!=Ln[t])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=Ln[t]._config;else if(null!=e.parentLocale){if(null==Ln[e.parentLocale])return Fn[e.parentLocale]||(Fn[e.parentLocale]=[]),Fn[e.parentLocale].push({name:t,config:e}),null;i=Ln[e.parentLocale]._config}return Ln[t]=new M(C(i,e)),Fn[t]&&Fn[t].forEach((function(t){te(t.name,t.config)})),Qt(t),Ln[t]}return delete Ln[t],null}function ee(t,e){if(null!=e){var i,o=Rn;null!=Ln[t]&&(o=Ln[t]._config),(i=new M(e=C(o,e))).parentLocale=Ln[t],Ln[t]=i,Qt(t)}else null!=Ln[t]&&(null!=Ln[t].parentLocale?Ln[t]=Ln[t].parentLocale:null!=Ln[t]&&delete Ln[t]);return Ln[t]}function ie(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return In;if(!i(t)){if(e=$t(t))return e;t=[t]}return Jt(t)}function oe(){return Oo(Ln)}function ne(t){var e,i=t._a;return i&&-2===c(t).overflow&&(e=i[ln]<0||i[ln]>11?ln:i[un]<1||i[un]>ht(i[dn],i[ln])?un:i[pn]<0||i[pn]>24||24===i[pn]&&(0!==i[cn]||0!==i[mn]||0!==i[fn])?pn:i[cn]<0||i[cn]>59?cn:i[mn]<0||i[mn]>59?mn:i[fn]<0||i[fn]>999?fn:-1,c(t)._overflowDayOfYear&&(eun)&&(e=un),c(t)._overflowWeeks&&-1===e&&(e=gn),c(t)._overflowWeekday&&-1===e&&(e=vn),c(t).overflow=e),t}function se(t,e,i){return null!=t?t:null!=e?e:i}function re(t){var i=new Date(e.now());return t._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}function ae(t){var e,i,o,n,s=[];if(!t._d){for(o=re(t),t._w&&null==t._a[un]&&null==t._a[ln]&&he(t),null!=t._dayOfYear&&(n=se(t._a[dn],o[dn]),(t._dayOfYear>Q(n)||0===t._dayOfYear)&&(c(t)._overflowDayOfYear=!0),i=_t(n,0,t._dayOfYear),t._a[ln]=i.getUTCMonth(),t._a[un]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=o[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[pn]&&0===t._a[cn]&&0===t._a[mn]&&0===t._a[fn]&&(t._nextDay=!0,t._a[pn]=0),t._d=(t._useUTC?_t:bt).apply(null,s),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[pn]=24),t._w&&void 0!==t._w.d&&t._w.d!==t._d.getDay()&&(c(t).weekdayMismatch=!0)}}function he(t){var e,i,o,n,s,r,a,h;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)s=1,r=4,i=se(e.GG,t._a[dn],Dt(Se(),1,4).year),o=se(e.W,1),((n=se(e.E,1))<1||n>7)&&(h=!0);else{s=t._locale._week.dow,r=t._locale._week.doy;var d=Dt(Se(),s,r);i=se(e.gg,t._a[dn],d.year),o=se(e.w,d.week),null!=e.d?((n=e.d)<0||n>6)&&(h=!0):null!=e.e?(n=e.e+s,(e.e<0||e.e>6)&&(h=!0)):n=s}o<1||o>kt(i,s,r)?c(t)._overflowWeeks=!0:null!=h?c(t)._overflowWeekday=!0:(a=xt(i,o,n,s,r),t._a[dn]=a.year,t._dayOfYear=a.dayOfYear)}function de(t){var e,i,o,n,s,r,a=t._i,h=Hn.exec(a)||jn.exec(a);if(h){for(c(t).iso=!0,e=0,i=zn.length;e0&&c(t).unusedInput.push(r),a=a.slice(a.indexOf(o)+o.length),d+=o.length),Go[s]?(o?c(t).empty=!1:c(t).unusedTokens.push(s),$(s,o,t)):t._strict&&!o&&c(t).unusedTokens.push(s);c(t).charsLeftOver=h-d,a.length>0&&c(t).unusedInput.push(a),t._a[pn]<=12&&!0===c(t).bigHour&&t._a[pn]>0&&(c(t).bigHour=void 0),c(t).parsedDateParts=t._a.slice(0),c(t).meridiem=t._meridiem,t._a[pn]=ye(t._locale,t._a[pn],t._meridiem),ae(t),ne(t)}else fe(t);else de(t)}function ye(t,e,i){var o;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((o=t.isPM(i))&&e<12&&(e+=12),o||12!==e||(e=0),e):e}function be(t){var e,i,o,n,s;if(0===t._f.length)return c(t).invalidFormat=!0,void(t._d=new Date(NaN));for(n=0;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ue(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),(t=xe(t))._a){var e=t._isUTC?u(t._a):Se(t._a);this._isDSTShifted=this.isValid()&&w(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function qe(){return!!this.isValid()&&!this._isUTC}function Xe(){return!!this.isValid()&&this._isUTC}function Ze(){return!!this.isValid()&&this._isUTC&&0===this._offset}function Ke(t,e){var i,o,n,s=t,a=null;return Ne(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:r(t)?(s={},e?s[e]=t:s.milliseconds=t):(a=Jn.exec(t))?(i="-"===a[1]?-1:1,s={y:0,d:_(a[un])*i,h:_(a[pn])*i,m:_(a[cn])*i,s:_(a[mn])*i,ms:_(Ae(1e3*a[fn]))*i}):(a=$n.exec(t))?(i="-"===a[1]?-1:(a[1],1),s={y:Je(a[2],i),M:Je(a[3],i),w:Je(a[4],i),d:Je(a[5],i),h:Je(a[6],i),m:Je(a[7],i),s:Je(a[8],i)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(n=Qe(Se(s.from),Se(s.to)),(s={}).ms=n.milliseconds,s.M=n.months),o=new Ie(s),Ne(t)&&d(t,"_locale")&&(o._locale=t._locale),o}function Je(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function $e(t,e){var i={milliseconds:0,months:0};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function Qe(t,e){var i;return t.isValid()&&e.isValid()?(e=Fe(e,t),t.isBefore(e)?i=$e(t,e):((i=$e(e,t)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function ti(t,e){return function(i,o){var n;return null===o||isNaN(+o)||(k(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=i,i=o,o=n),ei(this,Ke(i="string"==typeof i?+i:i,o),t),this}}function ei(t,i,o,n){var s=i._milliseconds,r=Ae(i._days),a=Ae(i._months);t.isValid()&&(n=null==n||n,a&&ct(t,ot(t,"Month")+a*o),r&&nt(t,"Date",ot(t,"Date")+r*o),s&&t._d.setTime(t._d.valueOf()+s*o),n&&e.updateOffset(t,r||a))}function ii(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function oi(t,i){var o=t||Se(),n=Fe(o,this).startOf("day"),s=e.calendarFormat(this,n)||"sameElse",r=i&&(S(i[s])?i[s].call(this,o):i[s]);return this.format(r||this.localeData().calendar(s,this,Se(o)))}function ni(){return new v(this)}function si(t,e){var i=y(t)?t:Se(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=L(s(e)?"millisecond":e))?this.valueOf()>i.valueOf():i.valueOf()9999?V(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):S(Date.prototype.toISOString)?this.toDate().toISOString():V(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function fi(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var i="["+t+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=e+'[")]';return this.format(i+o+"-MM-DD[T]HH:mm:ss.SSS"+n)}function gi(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var i=V(this,t);return this.localeData().postformat(i)}function vi(t,e){return this.isValid()&&(y(t)&&t.isValid()||Se(t).isValid())?Ke({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function yi(t){return this.from(Se(),t)}function bi(t,e){return this.isValid()&&(y(t)&&t.isValid()||Se(t).isValid())?Ke({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function _i(t){return this.to(Se(),t)}function wi(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ie(t))&&(this._locale=e),this)}function xi(){return this._locale}function Di(t){switch(t=L(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function ki(t){return void 0===(t=L(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))}function Si(){return this._d.valueOf()-6e4*(this._offset||0)}function Ti(){return Math.floor(this.valueOf()/1e3)}function Ci(){return new Date(this.valueOf())}function Mi(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Oi(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Ei(){return this.isValid()?this.toISOString():null}function Pi(){return m(this)}function Ii(){return l({},c(this))}function Ni(){return c(this).overflow}function Ai(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ri(t,e){z(0,[t,t.length],0,e)}function Li(t){return Yi.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Fi(t){return Yi.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Hi(){return kt(this.year(),1,4)}function ji(){var t=this.localeData()._week;return kt(this.year(),t.dow,t.doy)}function Yi(t,e,i,o,n){var s;return null==t?Dt(this,o,n).year:(e>(s=kt(t,o,n))&&(e=s),zi.call(this,t,e,i,o,n))}function zi(t,e,i,o,n){var s=xt(t,e,i,o,n),r=_t(s.year,0,s.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}function Gi(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Wi(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function Vi(t,e){e[fn]=_(1e3*("0."+t))}function Bi(){return this._isUTC?"UTC":""}function Ui(){return this._isUTC?"Coordinated Universal Time":""}function qi(t){return Se(1e3*t)}function Xi(){return Se.apply(null,arguments).parseZone()}function Zi(t){return t}function Ki(t,e,i,o){var n=ie(),s=u().set(o,e);return n[i](s,t)}function Ji(t,e,i){if(r(t)&&(e=t,t=void 0),t=t||"",null!=e)return Ki(t,e,i,"month");var o,n=[];for(o=0;o<12;o++)n[o]=Ki(t,o,i,"month");return n}function $i(t,e,i,o){"boolean"==typeof t?(r(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,r(e)&&(i=e,e=void 0),e=e||"");var n=ie(),s=t?n._week.dow:0;if(null!=i)return Ki(e,(i+s)%7,o,"day");var a,h=[];for(a=0;a<7;a++)h[a]=Ki(e,(a+s)%7,o,"day");return h}function Qi(t,e){return Ji(t,e,"months")}function to(t,e){return Ji(t,e,"monthsShort")}function eo(t,e,i){return $i(t,e,i,"weekdays")}function io(t,e,i){return $i(t,e,i,"weekdaysShort")}function oo(t,e,i){return $i(t,e,i,"weekdaysMin")}function no(){var t=this._data;return this._milliseconds=ds(this._milliseconds),this._days=ds(this._days),this._months=ds(this._months),t.milliseconds=ds(t.milliseconds),t.seconds=ds(t.seconds),t.minutes=ds(t.minutes),t.hours=ds(t.hours),t.months=ds(t.months),t.years=ds(t.years),this}function so(t,e,i,o){var n=Ke(e,i);return t._milliseconds+=o*n._milliseconds,t._days+=o*n._days,t._months+=o*n._months,t._bubble()}function ro(t,e){return so(this,t,e,1)}function ao(t,e){return so(this,t,e,-1)}function ho(t){return t<0?Math.floor(t):Math.ceil(t)}function lo(){var t,e,i,o,n,s=this._milliseconds,r=this._days,a=this._months,h=this._data;return s>=0&&r>=0&&a>=0||s<=0&&r<=0&&a<=0||(s+=864e5*ho(po(a)+r),r=0,a=0),h.milliseconds=s%1e3,t=b(s/1e3),h.seconds=t%60,e=b(t/60),h.minutes=e%60,i=b(e/60),h.hours=i%24,r+=b(i/24),a+=n=b(uo(r)),r-=ho(po(n)),o=b(a/12),a%=12,h.days=r,h.months=a,h.years=o,this}function uo(t){return 4800*t/146097}function po(t){return 146097*t/4800}function co(t){if(!this.isValid())return NaN;var e,i,o=this._milliseconds;if("month"===(t=L(t))||"year"===t)return e=this._days+o/864e5,i=this._months+uo(e),"month"===t?i:i/12;switch(e=this._days+Math.round(po(this._months)),t){case"week":return e/7+o/6048e5;case"day":return e+o/864e5;case"hour":return 24*e+o/36e5;case"minute":return 1440*e+o/6e4;case"second":return 86400*e+o/1e3;case"millisecond":return Math.floor(864e5*e)+o;default:throw new Error("Unknown unit "+t)}}function mo(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*_(this._months/12):NaN}function fo(t){return function(){return this.as(t)}}function go(){return Ke(this)}function vo(t){return t=L(t),this.isValid()?this[t+"s"]():NaN}function yo(t){return function(){return this.isValid()?this._data[t]:NaN}}function bo(){return b(this.days()/7)}function _o(t,e,i,o,n){return n.relativeTime(e||1,!!i,t,o)}function wo(t,e,i){var o=Ke(t).abs(),n=Ss(o.as("s")),s=Ss(o.as("m")),r=Ss(o.as("h")),a=Ss(o.as("d")),h=Ss(o.as("M")),d=Ss(o.as("y")),l=n<=Ts.ss&&["s",n]||n0,l[4]=i,_o.apply(null,l)}function xo(t){return void 0===t?Ss:"function"==typeof t&&(Ss=t,!0)}function Do(t,e){return void 0!==Ts[t]&&(void 0===e?Ts[t]:(Ts[t]=e,"s"===t&&(Ts.ss=e-1),!0))}function ko(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),i=wo(this,!t,e);return t&&(i=e.pastFuture(+this,i)),e.postformat(i)}function So(t){return(t>0)-(t<0)||+t}function To(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i=Cs(this._milliseconds)/1e3,o=Cs(this._days),n=Cs(this._months);t=b(i/60),e=b(t/60),i%=60,t%=60;var s=b(n/12),r=n%=12,a=o,h=e,d=t,l=i?i.toFixed(3).replace(/\.?0+$/,""):"",u=this.asSeconds();if(!u)return"P0D";var p=u<0?"-":"",c=So(this._months)!==So(u)?"-":"",m=So(this._days)!==So(u)?"-":"",f=So(this._milliseconds)!==So(u)?"-":"";return p+"P"+(s?c+s+"Y":"")+(r?c+r+"M":"")+(a?m+a+"D":"")+(h||d||l?"T":"")+(h?f+h+"H":"")+(d?f+d+"M":"")+(l?f+l+"S":"")}var Co,Mo;Mo=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),i=e.length>>>0,o=0;o68?1900:2e3)};var yn,bn=it("FullYear",!0);yn=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;ethis?this:t:f()})),Xn=function(){return Date.now?Date.now():+new Date},Zn=["year","quarter","month","week","day","hour","minute","second","millisecond"];Re("Z",":"),Re("ZZ",""),U("Z",nn),U("ZZ",nn),K(["Z","ZZ"],(function(t,e,i){i._useUTC=!0,i._tzm=Le(nn,t)}));var Kn=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Jn=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,$n=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Ke.fn=Ie.prototype,Ke.invalid=Pe;var Qn=ti(1,"add"),ts=ti(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var es=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));z(0,["gg",2],0,(function(){return this.weekYear()%100})),z(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ri("gggg","weekYear"),Ri("ggggg","weekYear"),Ri("GGGG","isoWeekYear"),Ri("GGGGG","isoWeekYear"),R("weekYear","gg"),R("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),U("G",en),U("g",en),U("GG",Xo,Vo),U("gg",Xo,Vo),U("GGGG",$o,Uo),U("gggg",$o,Uo),U("GGGGG",Qo,qo),U("ggggg",Qo,qo),J(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,i,o){e[o.substr(0,2)]=_(t)})),J(["gg","GG"],(function(t,i,o,n){i[n]=e.parseTwoDigitYear(t)})),z("Q",0,"Qo","quarter"),R("quarter","Q"),H("quarter",7),U("Q",Wo),K("Q",(function(t,e){e[ln]=3*(_(t)-1)})),z("D",["DD",2],"Do","date"),R("date","D"),H("date",9),U("D",Xo),U("DD",Xo,Vo),U("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),K(["D","DD"],un),K("Do",(function(t,e){e[un]=_(t.match(Xo)[0],10)}));var is=it("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),R("dayOfYear","DDD"),H("dayOfYear",4),U("DDD",Jo),U("DDDD",Bo),K(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=_(t)})),z("m",["mm",2],0,"minute"),R("minute","m"),H("minute",14),U("m",Xo),U("mm",Xo,Vo),K(["m","mm"],cn);var os=it("Minutes",!1);z("s",["ss",2],0,"second"),R("second","s"),H("second",15),U("s",Xo),U("ss",Xo,Vo),K(["s","ss"],mn);var ns,ss=it("Seconds",!1);for(z("S",0,0,(function(){return~~(this.millisecond()/100)})),z(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),z(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),z(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),z(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),z(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),z(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),R("millisecond","ms"),H("millisecond",16),U("S",Jo,Wo),U("SS",Jo,Vo),U("SSS",Jo,Bo),ns="SSSS";ns.length<=9;ns+="S")U(ns,tn);for(ns="S";ns.length<=9;ns+="S")K(ns,Vi);var rs=it("Milliseconds",!1);z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var as=v.prototype;as.add=Qn,as.calendar=oi,as.clone=ni,as.diff=ui,as.endOf=ki,as.format=gi,as.from=vi,as.fromNow=yi,as.to=bi,as.toNow=_i,as.get=st,as.invalidAt=Ni,as.isAfter=si,as.isBefore=ri,as.isBetween=ai,as.isSame=hi,as.isSameOrAfter=di,as.isSameOrBefore=li,as.isValid=Pi,as.lang=es,as.locale=wi,as.localeData=xi,as.max=qn,as.min=Un,as.parsingFlags=Ii,as.set=rt,as.startOf=Di,as.subtract=ts,as.toArray=Mi,as.toObject=Oi,as.toDate=Ci,as.toISOString=mi,as.inspect=fi,as.toJSON=Ei,as.toString=ci,as.unix=Ti,as.valueOf=Si,as.creationData=Ai,as.year=bn,as.isLeapYear=et,as.weekYear=Li,as.isoWeekYear=Fi,as.quarter=as.quarters=Gi,as.month=mt,as.daysInMonth=ft,as.week=as.weeks=Mt,as.isoWeek=as.isoWeeks=Ot,as.weeksInYear=ji,as.isoWeeksInYear=Hi,as.date=is,as.day=as.days=Ft,as.weekday=Ht,as.isoWeekday=jt,as.dayOfYear=Wi,as.hour=as.hours=An,as.minute=as.minutes=os,as.second=as.seconds=ss,as.millisecond=as.milliseconds=rs,as.utcOffset=je,as.utc=ze,as.local=Ge,as.parseZone=We,as.hasAlignedHourOffset=Ve,as.isDST=Be,as.isLocal=qe,as.isUtcOffset=Xe,as.isUtc=Ze,as.isUTC=Ze,as.zoneAbbr=Bi,as.zoneName=Ui,as.dates=D("dates accessor is deprecated. Use date instead.",is),as.months=D("months accessor is deprecated. Use month instead",mt),as.years=D("years accessor is deprecated. Use year instead",bn),as.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ye),as.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ue);var hs=M.prototype;hs.calendar=O,hs.longDateFormat=E,hs.invalidDate=P,hs.ordinal=I,hs.preparse=Zi,hs.postformat=Zi,hs.relativeTime=N,hs.pastFuture=A,hs.set=T,hs.months=dt,hs.monthsShort=lt,hs.monthsParse=pt,hs.monthsRegex=vt,hs.monthsShortRegex=gt,hs.week=St,hs.firstDayOfYear=Ct,hs.firstDayOfWeek=Tt,hs.weekdays=It,hs.weekdaysMin=At,hs.weekdaysShort=Nt,hs.weekdaysParse=Lt,hs.weekdaysRegex=Yt,hs.weekdaysShortRegex=zt,hs.weekdaysMinRegex=Gt,hs.isPM=Xt,hs.meridiem=Zt,Qt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===_(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),e.lang=D("moment.lang is deprecated. Use moment.locale instead.",Qt),e.langData=D("moment.langData is deprecated. Use moment.localeData instead.",ie);var ds=Math.abs,ls=fo("ms"),us=fo("s"),ps=fo("m"),cs=fo("h"),ms=fo("d"),fs=fo("w"),gs=fo("M"),vs=fo("y"),ys=yo("milliseconds"),bs=yo("seconds"),_s=yo("minutes"),ws=yo("hours"),xs=yo("days"),Ds=yo("months"),ks=yo("years"),Ss=Math.round,Ts={ss:44,s:45,m:45,h:22,d:26,M:11},Cs=Math.abs,Ms=Ie.prototype;return Ms.isValid=Ee,Ms.abs=no,Ms.add=ro,Ms.subtract=ao,Ms.as=co,Ms.asMilliseconds=ls,Ms.asSeconds=us,Ms.asMinutes=ps,Ms.asHours=cs,Ms.asDays=ms,Ms.asWeeks=fs,Ms.asMonths=gs,Ms.asYears=vs,Ms.valueOf=mo,Ms._bubble=lo,Ms.clone=go,Ms.get=vo,Ms.milliseconds=ys,Ms.seconds=bs,Ms.minutes=_s,Ms.hours=ws,Ms.days=xs,Ms.weeks=bo,Ms.months=Ds,Ms.years=ks,Ms.humanize=ko,Ms.toISOString=To,Ms.toString=To,Ms.toJSON=To,Ms.locale=wi,Ms.localeData=xi,Ms.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",To),Ms.lang=es,z("X",0,0,"unix"),z("x",0,0,"valueOf"),U("x",en),U("X",sn),K("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))})),K("x",(function(t,e,i){i._d=new Date(_(t))})),e.version="2.19.1",function(t){Co=t}(Se),e.fn=as,e.min=Ce,e.max=Me,e.now=Xn,e.utc=u,e.unix=qi,e.months=Qi,e.isDate=a,e.locale=Qt,e.invalid=f,e.duration=Ke,e.isMoment=y,e.weekdays=eo,e.parseZone=Xi,e.localeData=ie,e.isDuration=Ne,e.monthsShort=to,e.weekdaysMin=oo,e.defineLocale=te,e.updateLocale=ee,e.locales=oe,e.weekdaysShort=io,e.normalizeUnits=L,e.relativeTimeRounding=xo,e.relativeTimeThreshold=Do,e.calendarFormat=ii,e.prototype=as,e}()}).call(e,i(124)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){function i(t){throw new Error("Cannot find module '"+t+"'.")}i.keys=function(){return[]},i.resolve=i,t.exports=i,i.id=125},function(t,e,i){(function(e){function i(t,e){var i=e||0,o=h;return o[t[i++]]+o[t[i++]]+o[t[i++]]+o[t[i++]]+"-"+o[t[i++]]+o[t[i++]]+"-"+o[t[i++]]+o[t[i++]]+"-"+o[t[i++]]+o[t[i++]]+"-"+o[t[i++]]+o[t[i++]]+o[t[i++]]+o[t[i++]]+o[t[i++]]+o[t[i++]]}function o(t,e,o){var s=e&&o||0;"string"==typeof t&&(e="binary"==t?new Array(16):null,t=null);var r=(t=t||{}).random||(t.rng||n)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e)for(var a=0;a<16;a++)e[s+a]=r[a];return e||i(r)}var n,s="undefined"!=typeof window?window:void 0!==e?e:null;if(s&&s.crypto&&crypto.getRandomValues){var r=new Uint8Array(16);n=function(){return crypto.getRandomValues(r),r}}if(!n){var a=new Array(16);n=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),a[e]=t>>>((3&e)<<3)&255;return a}}for(var h=[],d={},l=0;l<256;l++)h[l]=(l+256).toString(16).substr(1),d[h[l]]=l;var u=n(),p=[1|u[0],u[1],u[2],u[3],u[4],u[5]],c=16383&(u[6]<<8|u[7]),m=0,f=0,g=o;g.v1=function(t,e,o){var n=e&&o||0,s=e||[],r=void 0!==(t=t||{}).clockseq?t.clockseq:c,a=void 0!==t.msecs?t.msecs:(new Date).getTime(),h=void 0!==t.nsecs?t.nsecs:f+1,d=a-m+(h-f)/1e4;if(d<0&&void 0===t.clockseq&&(r=r+1&16383),(d<0||a>m)&&void 0===t.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");m=a,f=h,c=r;var l=(1e4*(268435455&(a+=122192928e5))+h)%4294967296;s[n++]=l>>>24&255,s[n++]=l>>>16&255,s[n++]=l>>>8&255,s[n++]=255&l;var u=a/4294967296*1e4&268435455;s[n++]=u>>>8&255,s[n++]=255&u,s[n++]=u>>>24&15|16,s[n++]=u>>>16&255,s[n++]=r>>>8|128,s[n++]=255&r;for(var g=t.node||p,v=0;v<6;v++)s[n+v]=g[v];return e||i(s)},g.v4=o,g.parse=function(t,e,i){var o=e&&i||0,n=0;for(e=e||[],t.toLowerCase().replace(/[0-9a-f]{2}/g,(function(t){n<16&&(e[o+n++]=d[t])}));n<16;)e[o+n++]=0;return e},g.unparse=i,t.exports=g}).call(e,i(127))},function(t,e){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){var o=i(2),n=o.JSON||(o.JSON={stringify:JSON.stringify});t.exports=function(t){return n.stringify.apply(n,arguments)}},function(t,e,i){function o(t,e,i,n){if(!(this instanceof o))throw new SyntaxError("Constructor must be called with the new operator");if(!(Array.isArray(i)||i instanceof d||i instanceof l)&&i instanceof Object){var s=n;n=i,i=s}n&&n.throttleRedraw&&console.warn('Timeline option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var r=this;if(this.defaultOptions={start:null,end:null,autoResize:!0,orientation:{axis:"bottom",item:"bottom"},moment:a,width:null,height:null,maxHeight:null,minHeight:null},this.options=h.deepExtend({},this.defaultOptions),this._create(t),!n||n&&void 0===n.rtl){this.dom.root.style.visibility="hidden";for(var p,f=this.dom.root;!p&&f;)p=window.getComputedStyle(f,null).direction,f=f.parentElement;this.options.rtl=p&&"rtl"==p.toLowerCase()}else this.options.rtl=n.rtl;this.options.rollingMode=n&&n.rollingMode,this.options.onInitialDrawComplete=n&&n.onInitialDrawComplete,this.components=[],this.body={dom:this.dom,domProps:this.props,emitter:{on:this.on.bind(this),off:this.off.bind(this),emit:this.emit.bind(this)},hiddenDates:[],util:{getScale:function(){return r.timeAxis.step.scale},getStep:function(){return r.timeAxis.step.step},toScreen:r._toScreen.bind(r),toGlobalScreen:r._toGlobalScreen.bind(r),toTime:r._toTime.bind(r),toGlobalTime:r._toGlobalTime.bind(r)}},this.range=new u(this.body,this.options),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new c(this.body,this.options),this.timeAxis2=null,this.components.push(this.timeAxis),this.currentTime=new m(this.body,this.options),this.components.push(this.currentTime),this.itemSet=new g(this.body,this.options),this.components.push(this.itemSet),this.itemsData=null,this.groupsData=null,this.dom.root.onclick=function(t){r.emit("click",r.getEventProperties(t))},this.dom.root.ondblclick=function(t){r.emit("doubleClick",r.getEventProperties(t))},this.dom.root.oncontextmenu=function(t){r.emit("contextmenu",r.getEventProperties(t))},this.dom.root.onmouseover=function(t){r.emit("mouseOver",r.getEventProperties(t))},window.PointerEvent?(this.dom.root.onpointerdown=function(t){r.emit("mouseDown",r.getEventProperties(t))},this.dom.root.onpointermove=function(t){r.emit("mouseMove",r.getEventProperties(t))},this.dom.root.onpointerup=function(t){r.emit("mouseUp",r.getEventProperties(t))}):(this.dom.root.onmousemove=function(t){r.emit("mouseMove",r.getEventProperties(t))},this.dom.root.onmousedown=function(t){r.emit("mouseDown",r.getEventProperties(t))},this.dom.root.onmouseup=function(t){r.emit("mouseUp",r.getEventProperties(t))}),this.initialFitDone=!1,this.on("changed",(function(){if(null!=this.itemsData&&!this.options.rollingMode){if(!r.initialFitDone)if(r.initialFitDone=!0,null!=r.options.start||null!=r.options.end){if(null==r.options.start||null==r.options.end)var t=r.getItemRange();var e=null!=r.options.start?r.options.start:t.min,i=null!=r.options.end?r.options.end:t.max;r.setWindow(e,i,{animation:!1})}else r.fit({animation:!1});!r.initialDrawDone&&r.initialRangeChangeDone&&(r.initialDrawDone=!0,r.dom.root.style.visibility="visible",r.options.onInitialDrawComplete&&setTimeout((function(){return r.options.onInitialDrawComplete()}),0))}})),n&&this.setOptions(n),i&&this.setGroups(i),e&&this.setItems(e),this._redraw()}function n(t){return h.convert(t.data.start,"Date").valueOf()}function s(t){var e=null!=t.data.end?t.data.end:t.data.start;return h.convert(e,"Date").valueOf()}function r(t,e){var i=t.props.leftContainer.height,o=t.props.left.height,n=e.parent,s=n.top,r=!0,a=t.timeAxis.options.orientation.axis,h=function(){return"bottom"==a?n.height-e.top-e.height:e.top},d=-1*t._getScrollTop(),l=s+h(),u=e.height;return ld+i?s+=h()+u-i+t.itemSet.options.margin.item.vertical:r=!1,{shouldScroll:r,scrollOffset:s=Math.min(s,o-i),itemTop:l}}var a=i(3),h=i(0),d=i(15),l=i(20),u=i(47),p=i(48),c=i(28),m=i(50),f=i(29),g=i(70),v=i(32).printStyle,y=i(75).allOptions,b=i(75).configureOptions,_=i(76).default,w=i(32).default;o.prototype=new p,o.prototype._createConfigurator=function(){return new _(this,this.dom.container,b)},o.prototype.redraw=function(){this.itemSet&&this.itemSet.markDirty({refreshItems:!0}),this._redraw()},o.prototype.setOptions=function(t){if(!0===w.validate(t,y)&&console.log("%cErrors have been found in the supplied options object.",v),p.prototype.setOptions.call(this,t),"type"in t&&t.type!==this.options.type){this.options.type=t.type;var e=this.itemsData;if(e){var i=this.getSelection();this.setItems(null),this.setItems(e),this.setSelection(i)}}},o.prototype.setItems=function(t){var e;e=t?t instanceof d||t instanceof l?t:new d(t,{type:{start:"Date",end:"Date"}}):null,this.itemsData=e,this.itemSet&&this.itemSet.setItems(e)},o.prototype.setGroups=function(t){var e;if(t){var i=function(t){return!1!==t.visible};e=t instanceof d||t instanceof l?new l(t,{filter:i}):new d(t.filter(i))}else e=null;this.groupsData=e,this.itemSet.setGroups(e)},o.prototype.setData=function(t){t&&t.groups&&this.setGroups(t.groups),t&&t.items&&this.setItems(t.items)},o.prototype.setSelection=function(t,e){this.itemSet&&this.itemSet.setSelection(t),e&&e.focus&&this.focus(t,e)},o.prototype.getSelection=function(){return this.itemSet&&this.itemSet.getSelection()||[]},o.prototype.focus=function(t,e){if(this.itemsData&&null!=t){var i=Array.isArray(t)?t:[t],o=this.itemsData.getDataSet().get(i,{type:{start:"Date",end:"Date"}}),n=null,s=null;if(o.forEach((function(t){var e=t.start.valueOf(),i="end"in t?t.end.valueOf():t.start.valueOf();(null===n||es)&&(s=i)})),null!==n&&null!==s){var a=this,h=this.itemSet.items[i[0]],d=-1*this._getScrollTop(),l=null,u=function(){var t=r(a,h);t.shouldScroll&&t.itemTop!=l.itemTop&&(a._setScrollTop(-t.scrollOffset),a._redraw())},p=(n+s)/2,c=Math.max(this.range.end-this.range.start,1.1*(s-n)),m=!e||void 0===e.animation||e.animation;m||(l={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.setRange(p-c/2,p+c/2,{animation:m},(function(){u(),setTimeout(u,100)}),(function(t,e,i){var o=r(a,h);if(l||(l=o),l.itemTop!=o.itemTop||l.shouldScroll){l.itemTop!=o.itemTop&&o.shouldScroll&&(l=o,d=-1*a._getScrollTop());var n=d,s=l.scrollOffset,u=i?s:n+(s-n)*t;a._setScrollTop(-u),e||a._redraw()}}))}}},o.prototype.fit=function(t,e){var i,o=!t||void 0===t.animation||t.animation,n=this.itemsData&&this.itemsData.getDataSet();1===n.length&&void 0===n.get()[0].end?(i=this.getDataRange(),this.moveTo(i.min.valueOf(),{animation:o},e)):(i=this.getItemRange(),this.range.setRange(i.min,i.max,{animation:o},e))},o.prototype.getItemRange=function(){var t=this.getDataRange(),e=null!==t.min?t.min.valueOf():null,i=null!==t.max?t.max.valueOf():null,o=null,r=null;if(null!=e&&null!=i){var a=i-e;a<=0&&(a=10);var d=a/this.props.center.width,l={},u=0;if(h.forEach(this.itemSet.items,(function(t,e){t.groupShowing&&(l[e]=t.redraw(!0),u=l[e].length)})),u>0)for(var p=0;pi&&(i=h,r=t)}.bind(this)),o&&r){var c=o.getWidthLeft()+10,m=r.getWidthRight()+10,f=this.props.center.width-c-m;f>0&&(this.options.rtl?(e=n(o)-m*a/f,i=s(r)+c*a/f):(e=n(o)-c*a/f,i=s(r)+m*a/f))}}return{min:null!=e?new Date(e):null,max:null!=i?new Date(i):null}},o.prototype.getDataRange=function(){var t=null,e=null,i=this.itemsData&&this.itemsData.getDataSet();return i&&i.forEach((function(i){var o=h.convert(i.start,"Date").valueOf(),n=h.convert(null!=i.end?i.end:i.start,"Date").valueOf();(null===t||oe)&&(e=n)})),{min:null!=t?new Date(t):null,max:null!=e?new Date(e):null}},o.prototype.getEventProperties=function(t){var e,i=t.center?t.center.x:t.clientX,o=t.center?t.center.y:t.clientY;e=this.options.rtl?h.getAbsoluteRight(this.dom.centerContainer)-i:i-h.getAbsoluteLeft(this.dom.centerContainer);var n=o-h.getAbsoluteTop(this.dom.centerContainer),s=this.itemSet.itemFromTarget(t),r=this.itemSet.groupFromTarget(t),a=f.customTimeFromTarget(t),d=this.itemSet.options.snap||null,l=this.body.util.getScale(),u=this.body.util.getStep(),p=this._toTime(e),c=d?d(p,l,u):p,m=h.getTarget(t),g=null;return null!=s?g="item":null!=a?g="custom-time":h.hasParent(m,this.timeAxis.dom.foreground)||this.timeAxis2&&h.hasParent(m,this.timeAxis2.dom.foreground)?g="axis":h.hasParent(m,this.itemSet.dom.labelSet)?g="group-label":h.hasParent(m,this.currentTime.bar)?g="current-time":h.hasParent(m,this.dom.center)&&(g="background"),{event:t,item:s?s.id:null,group:r?r.groupId:null,what:g,pageX:t.srcEvent?t.srcEvent.pageX:t.pageX,pageY:t.srcEvent?t.srcEvent.pageY:t.pageY,x:e,y:n,time:p,snappedTime:c}},o.prototype.toggleRollingMode=function(){this.range.rolling?this.range.stopRolling():(null==this.options.rollingMode&&this.setOptions(this.options),this.range.startRolling())},t.exports=o},function(t,e,i){var o,n,s;n=[],void 0!==(s="function"==typeof(o=function(){var t=null;return function e(i,o){function n(t){return t.match(/[^ ]+/g)}function s(e){if("hammer.input"!==e.type){if(e.srcEvent._handled||(e.srcEvent._handled={}),e.srcEvent._handled[e.type])return;e.srcEvent._handled[e.type]=!0}var i=!1;e.stopPropagation=function(){i=!0};var o=e.srcEvent.stopPropagation.bind(e.srcEvent);"function"==typeof o&&(e.srcEvent.stopPropagation=function(){o(),e.stopPropagation()}),e.firstTarget=t;for(var n=t;n&&!i;){var s=n.hammer;if(s)for(var r,a=0;a0?d._handlers[t]=o:(i.off(t,s),delete d._handlers[t]))})),d},d.emit=function(e,o){t=o.target,i.emit(e,o)},d.destroy=function(){var t=i.element.hammer,e=t.indexOf(d);-1!==e&&t.splice(e,1),t.length||delete i.element.hammer,d._handlers={},i.destroy()},d}})?o.apply(e,n):o)&&(t.exports=s)},function(t,e,i){var o;!function(n,s,r,a){function h(t,e,i){return setTimeout(c(t,i),e)}function d(t,e,i){return!!Array.isArray(t)&&(l(t,i[e],i),!0)}function l(t,e,i){var o;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==a)for(o=0;o\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=n.console&&(n.console.warn||n.console.log);return s&&s.call(n.console,o,i),t.apply(this,arguments)}}function p(t,e,i){var o,n=e.prototype;(o=t.prototype=Object.create(n)).constructor=t,o._super=n,i&&rt(o,i)}function c(t,e){return function(){return t.apply(e,arguments)}}function m(t,e){return typeof t==dt?t.apply(e&&e[0]||a,e):t}function f(t,e){return t===a?e:t}function g(t,e,i){l(_(e),(function(e){t.addEventListener(e,i,!1)}))}function v(t,e,i){l(_(e),(function(e){t.removeEventListener(e,i,!1)}))}function y(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function b(t,e){return t.indexOf(e)>-1}function _(t){return t.trim().split(/\s+/g)}function w(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var o=0;oi[e]})):o.sort()),o}function k(t,e){for(var i,o,n=e[0].toUpperCase()+e.slice(1),s=0;s1&&!i.firstMultiple?i.firstMultiple=O(e):1===n&&(i.firstMultiple=!1);var s=i.firstInput,r=i.firstMultiple,a=r?r.center:s.center,h=e.center=E(o);e.timeStamp=pt(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=A(a,h),e.distance=N(a,h),function(t,e){var i=e.center,o=t.offsetDelta||{},n=t.prevDelta||{},s=t.prevInput||{};e.eventType!==_t&&s.eventType!==xt||(n=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},o=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=n.x+(i.x-o.x),e.deltaY=n.y+(i.y-o.y)}(i,e),e.offsetDirection=I(e.deltaX,e.deltaY);var d=P(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=d.x,e.overallVelocityY=d.y,e.overallVelocity=ut(d.x)>ut(d.y)?d.x:d.y,e.scale=r?function(t,e){return N(e[0],e[1],Nt)/N(t[0],t[1],Nt)}(r.pointers,o):1,e.rotation=r?function(t,e){return A(e[1],e[0],Nt)+A(t[1],t[0],Nt)}(r.pointers,o):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,M(i,e);var l=t.element;y(e.srcEvent.target,l)&&(l=e.srcEvent.target),e.target=l}(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function M(t,e){var i,o,n,s,r=t.lastInterval||e,h=e.timeStamp-r.timeStamp;if(e.eventType!=Dt&&(h>bt||r.velocity===a)){var d=e.deltaX-r.deltaX,l=e.deltaY-r.deltaY,u=P(h,d,l);o=u.x,n=u.y,i=ut(u.x)>ut(u.y)?u.x:u.y,s=I(d,l),t.lastInterval=e}else i=r.velocity,o=r.velocityX,n=r.velocityY,s=r.direction;e.velocity=i,e.velocityX=o,e.velocityY=n,e.direction=s}function O(t){for(var e=[],i=0;i=ut(e)?t<0?St:Tt:e<0?Ct:Mt}function N(t,e,i){i||(i=It);var o=e[i[0]]-t[i[0]],n=e[i[1]]-t[i[1]];return Math.sqrt(o*o+n*n)}function A(t,e,i){i||(i=It);var o=e[i[0]]-t[i[0]],n=e[i[1]]-t[i[1]];return 180*Math.atan2(n,o)/Math.PI}function R(){this.evEl=Rt,this.evWin=Lt,this.pressed=!1,T.apply(this,arguments)}function L(){this.evEl=jt,this.evWin=Yt,T.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function F(){this.evTarget=Gt,this.evWin=Wt,this.started=!1,T.apply(this,arguments)}function H(t,e){var i=x(t.touches),o=x(t.changedTouches);return e&(xt|Dt)&&(i=D(i.concat(o),"identifier",!0)),[i,o]}function j(){this.evTarget=Bt,this.targetIds={},T.apply(this,arguments)}function Y(t,e){var i=x(t.touches),o=this.targetIds;if(e&(_t|wt)&&1===i.length)return o[i[0].identifier]=!0,[i,i];var n,s,r=x(t.changedTouches),a=[],h=this.target;if(s=i.filter((function(t){return y(t.target,h)})),e===_t)for(n=0;n-1&&o.splice(t,1)}),Ut)}}function V(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,o=0;o-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){i.manager.emit(e,t)}var i=this,o=this.state;o=se&&e(i.options.event+q(o))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;te.threshold&&n&e.direction},attrTest:function(t){return K.prototype.attrTest.call(this,t)&&(this.state&oe||!(this.state&oe)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=X(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),p($,K,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[$t]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&oe)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),p(Q,U,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Kt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,o=t.distancee.time;if(this._input=t,!o||!i||t.eventType&(xt|Dt)&&!n)this.reset();else if(t.eventType&_t)this.reset(),this._timer=h((function(){this.state=re,this.tryEmit()}),e.time,this);else if(t.eventType&xt)return re;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===re&&(t&&t.eventType&xt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=pt(),this.manager.emit(this.options.event,this._input)))}}),p(tt,K,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[$t]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&oe)}}),p(et,K,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Ot|Et,pointers:1},getTouchAction:function(){return J.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(Ot|Et)?e=t.overallVelocity:i&Ot?e=t.overallVelocityX:i&Et&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&ut(e)>this.options.velocity&&t.eventType&xt},emit:function(t){var e=X(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),p(it,U,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Jt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,o=t.distancen-this.padding&&(a=!0),s=a?this.x-i:this.x,r=h?this.y-e:this.y}else(r=this.y-e)+e+this.padding>o&&(r=o-e-this.padding),rn&&(s=n-i-this.padding),s0&&void 0!==arguments[0]?arguments[0]:1;(0,s.default)(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return(0,r.default)(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}},{key:"setCloseCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}},{key:"_isColorString",value:function(t){if("string"==typeof t)return{black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"}[t]}},{key:"setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var i=void 0,o=this._isColorString(t);if(void 0!==o&&(t=o),!0===d.isString(t)){if(!0===d.isValidRGB(t)){var s=t.substr(4).substr(0,t.length-5).split(",");i={r:s[0],g:s[1],b:s[2],a:1}}else if(!0===d.isValidRGBA(t)){var r=t.substr(5).substr(0,t.length-6).split(",");i={r:r[0],g:r[1],b:r[2],a:r[3]}}else if(!0===d.isValidHex(t)){var a=d.hexToRGB(t);i={r:a.r,g:a.g,b:a.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var h=void 0!==t.a?t.a:"1.0";i={r:t.r,g:t.g,b:t.b,a:h}}if(void 0===i)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+(0,n.default)(t));this._setColor(i,e)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this;!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=d.extend({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",setTimeout((function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=d.extend({},t)),this.color=t;var e=d.RGBToHSV(t.r,t.g,t.b),i=2*Math.PI,o=this.r*e.s,n=this.centerCoordinates.x+o*Math.sin(i*e.h),s=this.centerCoordinates.y+o*Math.cos(i*e.h);this.colorPickerSelector.style.left=n-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=s-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=d.RGBToHSV(this.color.r,this.color.g,this.color.b);e.v=t/100;var i=d.HSVToRGB(e.h,e.s,e.v);i.a=this.color.a,this.color=i,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=d.RGBToHSV(t.r,t.g,t.b),i=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1)),i.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var o=this.colorPickerCanvas.clientWidth,n=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,o,n),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-e.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),i.fill(),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var t=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var e=document.createElement("DIV");e.style.color="red",e.style.fontWeight="bold",e.style.padding="10px",e.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(e)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var i=this;this.opacityRange.onchange=function(){i._setOpacity(this.value)},this.opacityRange.oninput=function(){i._setOpacity(this.value)},this.brightnessRange.onchange=function(){i._setBrightness(this.value)},this.brightnessRange.oninput=function(){i._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerHTML="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerHTML="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerHTML="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerHTML="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerHTML="cancel",this.cancelButton.onclick=this._hide.bind(this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerHTML="apply",this.applyButton.onclick=this._apply.bind(this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=this._save.bind(this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=this._loadLast.bind(this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new a(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),h.onTouch(this.hammer,(function(e){t._moveSelector(e)})),this.hammer.on("tap",(function(e){t._moveSelector(e)})),this.hammer.on("panstart",(function(e){t._moveSelector(e)})),this.hammer.on("panmove",(function(e){t._moveSelector(e)})),this.hammer.on("panend",(function(e){t._moveSelector(e)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,e,i);var o=void 0,n=void 0,s=void 0,r=void 0;this.centerCoordinates={x:.5*e,y:.5*i},this.r=.49*e;var a=2*Math.PI/360,h=1/this.r,l=void 0;for(s=0;s<360;s++)for(r=0;rr?r:t,e=null==e||e0&&l.push(u.screenToValue(n)),!c.hidden&&this.itemsData.length>0&&l.push(c.screenToValue(n)),{event:t,what:d,pageX:t.srcEvent?t.srcEvent.pageX:t.pageX,pageY:t.srcEvent?t.srcEvent.pageY:t.pageY,x:o,y:n,time:r,value:l}},o.prototype._createConfigurator=function(){return new v(this,this.dom.container,g)},t.exports=o}])}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63858.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt b/geonode_mapstore_client/static/mapstore/dist/js/63858.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63858.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt rename to geonode_mapstore_client/static/mapstore/dist/js/63858.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63887.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63887.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63887.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63887.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63934.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63934.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63934.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63934.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63958.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63958.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63958.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63958.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/63971.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/63971.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/63971.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/63971.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/64191.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/64191.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/64191.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/64191.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/64208.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/64208.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/64208.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/64208.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/6430.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/6430.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/6430.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/6430.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/64496.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/64496.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/64496.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/64496.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/64538.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/64538.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/64538.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/64538.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/64607.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/64607.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/64607.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/64607.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/6469.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/6469.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/6469.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/6469.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/64891.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/64891.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/64891.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/64891.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/64920.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/64920.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/64920.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/64920.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/64952.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/64952.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/64952.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/64952.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/64985.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/64985.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/64985.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/64985.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/65002.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/65002.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/65002.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/65002.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/65066.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/65066.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/65066.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/65066.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/65214.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/65214.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/65214.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/65214.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/65255.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/65255.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/65255.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/65255.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/65287.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/65287.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/65287.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/65287.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/65455.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/65455.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/65455.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/65455.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/65475.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/65475.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/65475.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/65475.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/65528.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/65528.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/65528.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/65528.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/65604.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/65604.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/65604.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/65604.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/65723.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/65723.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/65723.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/65723.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/6573.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/6573.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/6573.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/6573.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/66007.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/66007.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/66007.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/66007.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/66014.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/66014.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/66014.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/66014.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/66372.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/66372.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/66372.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/66372.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/66551.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/66551.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/66551.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/66551.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/66621.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/66621.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/66621.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/66621.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/66673.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/66673.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/66673.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/66673.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/66784.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/66784.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/66784.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/66784.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/66791.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/66791.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/66791.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/66791.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/66806.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/66806.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/66806.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/66806.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/66935.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/66935.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/66935.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/66935.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/66991.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/66991.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/66991.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/66991.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/67063.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/67063.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/67063.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/67063.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/67092.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/67092.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/67092.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/67092.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/67260.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/67260.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/67260.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/67260.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/67305.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/67305.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/67305.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/67305.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/67414.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/67414.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/67414.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/67414.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/67435.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/67435.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/67435.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/67435.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/67489.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/67489.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/67489.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/67489.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/6756.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/6756.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/6756.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/6756.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/67587.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/67587.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/67587.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/67587.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/6769.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/6769.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/6769.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/6769.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/67721.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/67721.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/67721.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/67721.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/67823.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/67823.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/67823.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/67823.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/6795.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/6795.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/6795.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/6795.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/68030.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/68030.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/68030.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/68030.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/68228.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/68228.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/68228.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/68228.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/68296.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/68296.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/68296.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/68296.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/68370.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/68370.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/68370.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/68370.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/68482.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/68482.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/68482.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/68482.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/68752.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/68752.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/68752.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/68752.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/68980.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/68980.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/68980.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/68980.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/69002.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/69002.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/69002.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/69002.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/69014.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/69014.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/69014.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/69014.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/69037.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/69037.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/69037.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/69037.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/6909.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/6909.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/6909.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/6909.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/69140.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/69140.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/69140.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/69140.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/69141.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/69141.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/69141.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/69141.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/69245.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/69245.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/69245.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/69245.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/69305.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/69305.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/69305.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/69305.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/69327.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/69327.74fb1733f89b05e9e60d.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/js/69327.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/69327.74fb1733f89b05e9e60d.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/js/69334.b32b32d2650f7cc681c9.chunk.js b/geonode_mapstore_client/static/mapstore/dist/js/69334.74fb1733f89b05e9e60d.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/js/69334.b32b32d2650f7cc681c9.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/js/69334.74fb1733f89b05e9e60d.chunk.js index 09f7cc3e19..02e43d052e 100644 --- a/geonode_mapstore_client/static/mapstore/dist/js/69334.b32b32d2650f7cc681c9.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/js/69334.74fb1733f89b05e9e60d.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 69334.b32b32d2650f7cc681c9.chunk.js.LICENSE.txt */ +/*! For license information please see 69334.74fb1733f89b05e9e60d.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[69334],{896156:(e,t,n)=>{"use strict";function o(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,{Z:()=>o})},315897:(e,t,n)=>{"use strict";t.__esModule=!0;var o=n(124852),r=(s(o),s(n(675263))),i=s(n(847815));function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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}function c(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)}s(n(725506));var u=1073741823;function l(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,o){e=n,t.forEach((function(t){return t(e,o)}))}}}t.default=function(e,t){var n,s,f="__create-react-context-"+(0,i.default)()+"__",d=function(e){function n(){var t,o;a(this,n);for(var r=arguments.length,i=Array(r),s=0;s{"use strict";t.__esModule=!0;var o=i(n(124852)),r=i(n(315897));function i(e){return e&&e.__esModule?e:{default:e}}t.default=o.default.createContext||r.default,e.exports=t.default},725506:e=>{"use strict";e.exports=function(){}},553369:(e,t,n)=>{"use strict";var o=n(595318);t.__esModule=!0,t.default=function(e){var t=(0,r.default)(e);return t&&t.defaultView||t.parentWindow};var r=o(n(99981));e.exports=t.default},644838:(e,t,n)=>{"use strict";var o=n(595318);t.__esModule=!0,t.default=function(e,t){var n=(0,i.default)(e);return n?n.innerHeight:t?e.clientHeight:(0,r.default)(e).height};var r=o(n(292565)),i=o(n(507624));e.exports=t.default},768604:(e,t,n)=>{"use strict";var o=n(595318);t.__esModule=!0,t.default=function(e,t){if(!r&&i.default){var n=document.body,o=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;r=o?function(e,t){return o.call(e,t)}:a}return r?r(e,t):null};var r,i=o(n(250139)),s=o(n(96792));function a(e,t){for(var n=(0,s.default)(e.document||e.ownerDocument,t),o=0;n[o]&&n[o]!==e;)o++;return!!n[o]}e.exports=t.default},847815:(e,t,n)=>{"use strict";var o="__global_unique_id__";e.exports=function(){return n.g[o]=(n.g[o]||0)+1}},928981:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ie});var o="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=0)return 1;return 0}(),i=o&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function s(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function p(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function c(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+o)?e:c(p(e))}function u(e){return e&&e.referenceNode?e.referenceNode:e}var l=o&&!(!window.MSInputMethodContext||!document.documentMode),f=o&&/MSIE 10/.test(navigator.userAgent);function d(e){return 11===e?l:10===e?f:l||f}function h(e){if(!e)return document.documentElement;for(var t=d(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?h(n):n:e?e.ownerDocument.documentElement:document.documentElement}function m(e){return null!==e.parentNode?m(e.parentNode):e}function v(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?e:t,r=n?t:e,i=document.createRange();i.setStart(o,0),i.setEnd(r,0);var s,a,p=i.commonAncestorContainer;if(e!==p&&t!==p||o.contains(r))return"BODY"===(a=(s=p).nodeName)||"HTML"!==a&&h(s.firstElementChild)!==s?h(p):p;var c=m(e);return c.host?v(c.host,t):v(e,m(t).host)}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",o=e.nodeName;if("BODY"===o||"HTML"===o){var r=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||r;return i[n]}return e[n]}function y(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=g(t,"top"),r=g(t,"left"),i=n?-1:1;return e.top+=o*i,e.bottom+=o*i,e.left+=r*i,e.right+=r*i,e}function b(e,t){var n="x"===t?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+o+"Width"])}function w(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],d(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function E(e){var t=e.body,n=e.documentElement,o=d(10)&&getComputedStyle(n);return{height:w("Height",t,n,o),width:w("Width",t,n,o)}}var x=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},O=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],o=d(10),r="HTML"===t.nodeName,i=N(e),s=N(t),p=c(e),u=a(t),l=parseFloat(u.borderTopWidth),f=parseFloat(u.borderLeftWidth);n&&r&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=T({top:i.top-s.top-l,left:i.left-s.left-f,width:i.width,height:i.height});if(h.marginTop=0,h.marginLeft=0,!o&&r){var m=parseFloat(u.marginTop),v=parseFloat(u.marginLeft);h.top-=l-m,h.bottom-=l-m,h.left-=f-v,h.right-=f-v,h.marginTop=m,h.marginLeft=v}return(o&&!n?t.contains(p):t===p&&"BODY"!==p.nodeName)&&(h=y(h,t)),h}function M(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,o=S(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:g(n),a=t?0:g(n,"left"),p={top:s-o.top+o.marginTop,left:a-o.left+o.marginLeft,width:r,height:i};return T(p)}function _(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=p(e);return!!n&&_(n)}function k(e){if(!e||!e.parentElement||d())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function R(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},s=r?k(e):v(e,u(t));if("viewport"===o)i=M(s,r);else{var a=void 0;"scrollParent"===o?"BODY"===(a=c(p(t))).nodeName&&(a=e.ownerDocument.documentElement):a="window"===o?e.ownerDocument.documentElement:o;var l=S(a,s,r);if("HTML"!==a.nodeName||_(s))i=l;else{var f=E(e.ownerDocument),d=f.height,h=f.width;i.top+=l.top-l.marginTop,i.bottom=d+l.top,i.left+=l.left-l.marginLeft,i.right=h+l.left}}var m="number"==typeof(n=n||0);return i.left+=m?n:n.left||0,i.top+=m?n:n.top||0,i.right-=m?n:n.right||0,i.bottom-=m?n:n.bottom||0,i}function D(e){return e.width*e.height}function P(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var s=R(n,o,i,r),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},p=Object.keys(a).map((function(e){return Z({key:e},a[e],{area:D(a[e])})})).sort((function(e,t){return t.area-e.area})),c=p.filter((function(e){var t=e.width,o=e.height;return t>=n.clientWidth&&o>=n.clientHeight})),u=c.length>0?c[0].key:p[0].key,l=e.split("-")[1];return u+(l?"-"+l:"")}function L(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=o?k(t):v(t,u(n));return S(n,r,o)}function F(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),o=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+o,height:e.offsetHeight+n}}function A(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function j(e,t,n){n=n.split("-")[0];var o=F(e),r={width:o.width,height:o.height},i=-1!==["right","left"].indexOf(n),s=i?"top":"left",a=i?"left":"top",p=i?"height":"width",c=i?"width":"height";return r[s]=t[s]+t[p]/2-o[p]/2,r[a]=n===a?t[a]-o[c]:t[A(a)],r}function U(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function B(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e.name===n}));var o=U(e,(function(e){return e.name===n}));return e.indexOf(o)}(e,0,n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&s(n)&&(t.offsets.popper=T(t.offsets.popper),t.offsets.reference=T(t.offsets.reference),t=n(t,e))})),t}function H(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=L(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=P(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=j(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=B(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function I(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function W(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o1&&void 0!==arguments[1]&&arguments[1],n=te.indexOf(e),o=te.slice(n+1).concat(te.slice(0,n));return t?o.reverse():o}var oe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],o=t.split("-")[1];if(o){var r=e.offsets,i=r.reference,s=r.popper,a=-1!==["bottom","top"].indexOf(n),p=a?"left":"top",c=a?"width":"height",u={start:C({},p,i[p]),end:C({},p,i[p]+i[c]-s[c])};e.offsets.popper=Z({},s,u[o])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,o=t.offset,r=e.placement,i=e.offsets,s=i.popper,a=i.reference,p=r.split("-")[0];return n=$(+o)?[+o,0]:function(e,t,n,o){var r=[0,0],i=-1!==["right","left"].indexOf(o),s=e.split(/(\+|\-)/).map((function(e){return e.trim()})),a=s.indexOf(U(s,(function(e){return-1!==e.search(/,|\s/)})));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var p=/\s*,\s*|\s+/,c=-1!==a?[s.slice(0,a).concat([s[a].split(p)[0]]),[s[a].split(p)[1]].concat(s.slice(a+1))]:[s];return c=c.map((function(e,o){var r=(1===o?!i:i)?"height":"width",s=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,o){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+r[1],s=r[2];return i?0===s.indexOf("%")?T("%p"===s?n:o)[t]/100*i:"vh"===s||"vw"===s?("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i:i:e}(e,r,t,n)}))})),c.forEach((function(e,t){e.forEach((function(n,o){$(n)&&(r[t]+=n*("-"===e[o-1]?-1:1))}))})),r}(o,s,a,p),"left"===p?(s.top+=n[0],s.left-=n[1]):"right"===p?(s.top+=n[0],s.left+=n[1]):"top"===p?(s.left+=n[0],s.top-=n[1]):"bottom"===p&&(s.left+=n[0],s.top+=n[1]),e.popper=s,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||h(e.instance.popper);e.instance.reference===n&&(n=h(n));var o=W("transform"),r=e.instance.popper.style,i=r.top,s=r.left,a=r[o];r.top="",r.left="",r[o]="";var p=R(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=i,r.left=s,r[o]=a,t.boundaries=p;var c=t.priority,u=e.offsets.popper,l={primary:function(e){var n=u[e];return u[e]p[e]&&!t.escapeWithReference&&(o=Math.min(u[n],p[e]-("right"===e?u.width:u.height))),C({},n,o)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=Z({},u,l[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,r=e.placement.split("-")[0],i=Math.floor,s=-1!==["top","bottom"].indexOf(r),a=s?"right":"bottom",p=s?"left":"top",c=s?"width":"height";return n[a]i(o[a])&&(e.offsets.popper[p]=i(o[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Q(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],i=e.offsets,s=i.popper,p=i.reference,c=-1!==["left","right"].indexOf(r),u=c?"height":"width",l=c?"Top":"Left",f=l.toLowerCase(),d=c?"left":"top",h=c?"bottom":"right",m=F(o)[u];p[h]-ms[h]&&(e.offsets.popper[f]+=p[f]+m-s[h]),e.offsets.popper=T(e.offsets.popper);var v=p[f]+p[u]/2-m/2,g=a(e.instance.popper),y=parseFloat(g["margin"+l]),b=parseFloat(g["border"+l+"Width"]),w=v-e.offsets.popper[f]-y-b;return w=Math.max(Math.min(s[u]-m,w),0),e.arrowElement=o,e.offsets.arrow=(C(n={},f,Math.round(w)),C(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(I(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=R(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],r=A(o),i=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case"flip":s=[o,r];break;case"clockwise":s=ne(o);break;case"counterclockwise":s=ne(o,!0);break;default:s=t.behavior}return s.forEach((function(a,p){if(o!==a||s.length===p+1)return e;o=e.placement.split("-")[0],r=A(o);var c=e.offsets.popper,u=e.offsets.reference,l=Math.floor,f="left"===o&&l(c.right)>l(u.left)||"right"===o&&l(c.left)l(u.top)||"bottom"===o&&l(c.top)l(n.right),m=l(c.top)l(n.bottom),g="left"===o&&d||"right"===o&&h||"top"===o&&m||"bottom"===o&&v,y=-1!==["top","bottom"].indexOf(o),b=!!t.flipVariations&&(y&&"start"===i&&d||y&&"end"===i&&h||!y&&"start"===i&&m||!y&&"end"===i&&v),w=!!t.flipVariationsByContent&&(y&&"start"===i&&h||y&&"end"===i&&d||!y&&"start"===i&&v||!y&&"end"===i&&m),E=b||w;(f||g||E)&&(e.flipped=!0,(f||g)&&(o=s[p+1]),E&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=o+(i?"-"+i:""),e.offsets.popper=Z({},e.offsets.popper,j(e.instance.popper,e.offsets.reference,e.placement)),e=B(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,r=o.popper,i=o.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return r[s?"left":"top"]=i[n]-(a?r[s?"width":"height"]:0),e.placement=A(t),e.offsets.popper=T(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Q(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=U(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};x(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=i(this.update.bind(this)),this.options=Z({},e.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Z({},e.Defaults.modifiers,r.modifiers)).forEach((function(t){o.options.modifiers[t]=Z({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return Z({name:e},o.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&s(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)})),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return O(e,[{key:"update",value:function(){return H.call(this)}},{key:"destroy",value:function(){return K.call(this)}},{key:"enableEventListeners",value:function(){return V.call(this)}},{key:"disableEventListeners",value:function(){return G.call(this)}}]),e}();re.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,re.placements=ee,re.Defaults=oe;const ie=re},372423:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e,t){var n=t.displayName,o=t.propTypes,i=t.defaultProps,s=t.allowFallback,a=void 0!==s&&s,p=function(t,n){return e(t,n)};return Object.assign(p,{displayName:n}),r.default.forwardRef||!a?Object.assign(r.default.forwardRef(p),{propTypes:o,defaultProps:i}):Object.assign((function(e){return p(e,null)}),{displayName:n,propTypes:o,defaultProps:i})};var o,r=(o=n(124852))&&o.__esModule?o:{default:o}},380151:(e,t,n)=>{"use strict";t.Z=function(e,t,n){return 2===arguments.length?c(e,t):c({consumers:e,mapToProps:t},n)};var o=i(n(124852)),r=i(n(372423));function i(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign||function(e){for(var t=1;t{"use strict";n.d(t,{Z:()=>M});var o=n(148941),r=n.n(o),i=n(644838),s=n.n(i),a=n(292565),p=n.n(a),c=n(218093),u=n.n(c),l=n(682939),f=n.n(l),d=n(390504),h=n.n(d),m=n(945177),v=n.n(m),g=n(675263),y=n.n(g),b=n(124852),w=n.n(b),E=n(180307),x=n.n(E),O=n(171560),C=n(131527),Z=n(590414);function T(){return T=Object.assign||function(e){for(var t=1;to.getPositionTopMax()?"bottom"===o.state.affixed?o.updateStateAtBottom():o.setState({affixed:"bottom",position:"absolute",top:null},(function(){o._isMounted&&o.updateStateAtBottom()})):o.updateState("affix","fixed",n)}},o.getPositionTopMax=function(){return(0,O.Z)((0,C.Z)(N(N(o))))-s()(x().findDOMNode(N(N(o))))-o.props.offsetBottom},o.updateState=function(e,t,n){if(e!==o.state.affixed||t!==o.state.position||n!==o.state.top){var r="affix"===e?"":e.charAt(0).toUpperCase()+e.substr(1);o.props["onAffix"+r]&&o.props["onAffix"+r](),o.setState({affixed:e,position:t,top:n},(function(){o.props["onAffixed"+r]&&o.props["onAffixed"+r]()}))}},o.updateStateAtBottom=function(){var e=o.getPositionTopMax(),t=f()(x().findDOMNode(N(N(o)))),n=p()(t).top;o.updateState("bottom","absolute",e-n)},o.state={affixed:"top",position:null,top:null},o}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=o.prototype;return i.componentDidMount=function(){var e=this;this._isMounted=!0,this.removeScrollListener=u()((0,Z.Z)(this),"scroll",(function(){return e.onWindowScroll()})),this.removeClickListener=u()((0,C.Z)(this),"click",(function(){return e.onDocumentClick()})),this.onUpdate()},i.componentDidUpdate=function(e){e!==this.props&&this.onUpdate()},i.componentWillUnmount=function(){this._isMounted=!1,this.removeClickListener&&this.removeClickListener(),this.removeScrollListener&&this.removeScrollListener()},i.render=function(){var e,t,n=w().Children.only(this.props.children),o=n.props,i=o.className,s=o.style,a=this.state,p=a.affixed,c={position:a.position,top:a.top};return"top"===p?(e=this.props.topClassName,t=this.props.topStyle):"bottom"===p?(e=this.props.bottomClassName,t=this.props.bottomStyle):(e=this.props.affixClassName,t=this.props.affixStyle),w().cloneElement(n,{className:r()(e,i),style:T({},c,t,s)})},o}(w().Component);S.propTypes={offsetTop:y().number,viewportOffsetTop:y().number,offsetBottom:y().number,topClassName:y().string,topStyle:y().object,affixClassName:y().string,affixStyle:y().object,bottomClassName:y().string,bottomStyle:y().object,onAffix:y().func,onAffixed:y().func,onAffixTop:y().func,onAffixedTop:y().func,onAffixBottom:y().func,onAffixedBottom:y().func},S.defaultProps={offsetTop:0,viewportOffsetTop:null,offsetBottom:0};const M=S},550301:(e,t,n)=>{"use strict";var o=n(292565),r=n.n(o),i=n(218093),s=n.n(i),a=n(945177),p=n.n(a),c=n(675263),u=n.n(c),l=n(690621),f=n.n(l),d=n(124852),h=n.n(d),m=n(463298),v=n(147915),g=n(171560),y=n(131527),b=n(590414);function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(){return E=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}(t,["autoWidth","viewportOffsetTop","children"]),s=this.state,a=s.offsetTop,p=s.offsetBottom,c=s.width;delete i.container;var u=Math.max(a,o||0),l=this.props,f=l.affixStyle,d=l.bottomStyle;return n&&(f=E({width:c},f),d=E({width:c},d)),h().createElement("div",null,h().createElement("div",{ref:function(t){e.positioner=t}}),h().createElement(m.Z,E({},i,{offsetTop:u,viewportOffsetTop:o,offsetBottom:p,affixStyle:f,bottomStyle:d}),r))},o}(h().Component);O.displayName="AutoAffix",O.propTypes=x,O.defaultProps={viewportOffsetTop:0,autoWidth:!0}},994540:(e,t,n)=>{"use strict";var o=n(768604),r=n.n(o),i=n(96792),s=n.n(i),a=n(124852),p=n.n(a),c=n(180307),u=n.n(c),l=n(675263),f=n.n(l),d=n(551835),h=n(481385),m=n(495729),v=n(505563),g=n(375940);function y(){return y=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,["children"]).onToggle,this.menu&&this.state.lastShow&&!this.props.show&&(this._focusInDropdown=this.menu.contains(document.activeElement)),p().createElement(m.Z.Provider,{value:this.state.context},p().createElement(h.ZP,null,t({props:{onKeyDown:this.handleKeyDown}})))},o}(p().Component);w.displayName="ReactOverlaysDropdown",w.propTypes=b,w.defaultProps={itemSelector:"* > *"};var E=(0,d.ZP)(w,{show:"onToggle"});E.Menu=v.Z,E.Toggle=g.Z},495729:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(124852);const r=n.n(o)().createContext({menuRef:function(){},toggleRef:function(){},onToggle:function(){},toggleNode:void 0,alignEnd:null,show:null,drop:null})},505563:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var o=n(675263),r=n.n(o),i=n(124852),s=n.n(i),a=n(174688),p=n(495729),c=n(415538),u=n(380151);function l(){return l=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}(t,["ref","style"]);return e.scheduleUpdate=r.scheduleUpdate,e.props.children(l({},r,b,{props:l({},y,{ref:n,style:o})}))}))):g=this.props.children(l({},b,{props:y})),g&&s().createElement(c.Z,{disabled:!n,event:d,onRootClose:this.handleClose},g)},o}(s().Component);f.displayName="ReactOverlaysDropdownMenu",f.propTypes={children:r().func.isRequired,show:r().bool,alignEnd:r().bool,flip:r().bool,usePopper:r().oneOf([!0,!1]),popperConfig:r().object,rootCloseEvent:r().string,onToggle:r().func,menuRef:r().func,drop:r().string,toggleNode:r().any},f.defaultProps={usePopper:!0};const d=(0,u.Z)(p.Z,(function(e,t){var n=e.show,o=e.alignEnd,r=e.toggle;return{drop:e.drop,menuRef:e.menuRef,toggleNode:e.toggleNode,onToggle:r,show:null==n?t.show:n,alignEnd:null==o?t.alignEnd:o}}),f)},375940:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=n(675263),r=n.n(o),i=n(124852),s=n.n(i),a=n(495729),p={children:r().func.isRequired};function c(e){var t=e.children;return s().createElement(a.Z.Consumer,null,(function(e){var n=e.show,o=e.toggle,r=e.toggleRef;return t({show:n,toggle:o,props:{ref:r,"aria-haspopup":!0,"aria-expanded":!!n}})}))}c.displayName="ReactOverlaysDropdownToggle",c.propTypes=p;const u=c},234524:(e,t,n)=>{"use strict";var o=n(753465),r=n.n(o),i=n(781629),s=n.n(i),a=n(250139),p=n.n(a),c=n(218093),u=n.n(c),l=n(675263),f=n.n(l),d=n(690621),h=n.n(d),m=n(728853),v=n.n(m),g=n(124852),y=n.n(g),b=n(180307),w=n.n(b),E=n(361274),x=n(464515),O=n(147915),C=n(131527);function Z(){return Z=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,["show","container","children","renderDialog","role","transition","backdrop","className","style","onExit","onExiting","onEnter","onEntering","onEntered"]);if(!(t||p&&!this.state.exited))return null;var b=Z({role:a,ref:this.setDialogRef,"aria-modal":"dialog"===a||void 0},function(e,t){var n=Object.keys(e),o={};return n.map((function(n){Object.prototype.hasOwnProperty.call(t,n)||(o[n]=e[n])})),o}(g,o.propTypes),{style:l,className:u,tabIndex:"-1"}),w=i?i(b):y().createElement("div",b,y().cloneElement(r,{role:"document"}));return p&&(w=y().createElement(p,{appear:!0,unmountOnExit:!0,in:t,onExit:f,onExiting:d,onExited:this.handleHidden,onEnter:h,onEntering:m,onEntered:v},w)),y().createElement(x.Z,{container:n,onRendered:this.onPortalRendered},y().createElement(y().Fragment,null,c&&this.renderBackdrop(),w))},o}(y().Component);S.propTypes={show:f().bool,container:f().oneOfType([h(),f().func]),onShow:f().func,onHide:f().func,backdrop:f().oneOfType([f().bool,f().oneOf(["static"])]),renderDialog:f().func,renderBackdrop:f().func,onEscapeKeyDown:f().func,onBackdropClick:f().func,containerClassName:f().string,keyboard:f().bool,transition:v(),backdropTransition:v(),autoFocus:f().bool,enforceFocus:f().bool,restoreFocus:f().bool,onEnter:f().func,onEntering:f().func,onEntered:f().func,onExit:f().func,onExiting:f().func,onExited:f().func,manager:f().object.isRequired},S.defaultProps={show:!1,role:"dialog",backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,onHide:function(){},manager:N,renderBackdrop:function(e){return y().createElement("div",e)}},S.Manager=E.Z},361274:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=n(850580),r=n(410162),i=n.n(r),s=n(144825),a=n.n(s),p=n(816204),c=n(362639);const u=function(){function e(e){var t=void 0===e?{}:e,n=t.hideSiblingNodes,o=void 0===n||n,r=t.handleContainerOverflow,i=void 0===r||r;this.hideSiblingNodes=o,this.handleContainerOverflow=i,this.modals=[],this.containers=[],this.data=[],this.scrollbarSize=a()()}var t=e.prototype;return t.isContainerOverflowing=function(e){var t=this.data[this.containerIndexFromModal(e)];return t&&t.overflowing},t.containerIndexFromModal=function(e){return t=this.data,n=function(t){return-1!==t.modals.indexOf(e)},o=-1,t.some((function(e,t){if(n(e))return o=t,!0})),o;var t,n,o},t.setContainerStyle=function(e,t){var n={overflow:"hidden"};e.style={overflow:t.style.overflow,paddingRight:t.style.paddingRight},e.overflowing&&(n.paddingRight=parseInt(i()(t,"paddingRight")||0,10)+this.scrollbarSize+"px"),i()(t,n)},t.removeContainerStyle=function(e,t){var n=e.style;Object.keys(n).forEach((function(e){t.style[e]=n[e]}))},t.add=function(e,t,n){var r=this.modals.indexOf(e),i=this.containers.indexOf(t);if(-1!==r)return r;if(r=this.modals.length,this.modals.push(e),this.hideSiblingNodes&&(0,c.GM)(t,e),-1!==i)return this.data[i].modals.push(e),r;var s={modals:[e],classes:n?n.split(/\s+/):[],overflowing:(0,p.Z)(t)};return this.handleContainerOverflow&&this.setContainerStyle(s,t),s.classes.forEach(o.default.addClass.bind(null,t)),this.containers.push(t),this.data.push(s),r},t.remove=function(e){var t=this.modals.indexOf(e);if(-1!==t){var n=this.containerIndexFromModal(e),r=this.data[n],i=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.classes.forEach(o.default.removeClass.bind(null,i)),this.handleContainerOverflow&&this.removeContainerStyle(r,i),this.hideSiblingNodes&&(0,c.dY)(i,e),this.containers.splice(n,1),this.data.splice(n,1);else if(this.hideSiblingNodes){var s=r.modals[r.modals.length-1],a=s.backdrop,p=s.dialog;(0,c.GU)(!1,p),(0,c.GU)(!1,a)}}},t.isTopModal=function(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e},e}()},489028:(e,t,n)=>{"use strict";var o=n(675263),r=n.n(o),i=n(728853),s=n.n(i),a=n(690621),p=n.n(a),c=n(124852),u=n.n(c),l=n(180307),f=n.n(l),d=n(464515),h=n(415538),m=n(174688),v=n(372423),g=n(491813);function y(){return y=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var E=function(e){var t,n;function o(t,n){var o;return(o=e.call(this,t,n)||this).handleHidden=function(){var e;o.setState({exited:!0}),o.props.onExited&&(e=o.props).onExited.apply(e,arguments)},o.state={exited:!t.show},o.onHiddenListener=o.handleHidden.bind(w(w(o))),o._lastTarget=null,o}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.getDerivedStateFromProps=function(e){return e.show?{exited:!1}:e.transition?null:{exited:!0}};var r=o.prototype;return r.componentDidMount=function(){this.setState({target:this.getTarget()})},r.componentDidUpdate=function(e){if(this.props!==e){var t=this.getTarget();t!==this.state.target&&this.setState({target:t})}},r.getTarget=function(){var e=this.props.target;return(e="function"==typeof e?e():e)&&f().findDOMNode(e)||null},r.render=function(){var e=this,t=this.props,n=(t.target,t.container),o=t.containerPadding,r=t.placement,i=t.rootClose,s=t.children,a=t.flip,p=t.popperConfig,c=void 0===p?{}:p,l=t.transition,f=b(t,["target","container","containerPadding","placement","rootClose","children","flip","popperConfig","transition"]),v=this.state.target;if(!(f.show||l&&!this.state.exited))return null;var g=s,w=c.modifiers,E=void 0===w?{}:w,x=y({},c,{placement:r,referenceElement:v,enableEvents:f.show,modifiers:y({},E,{preventOverflow:y({padding:o||5},E.preventOverflow),flip:y({enabled:!!a},E.preventOverflow)})});return g=u().createElement(m.ZP,x,(function(t){var n=t.arrowProps,o=t.style,i=t.ref,s=b(t,["arrowProps","style","ref"]);e.popper=s;var a=e.props.children(y({},s,{placement:s.placement||r,show:f.show,arrowProps:n,props:{ref:i,style:o}}));if(l){var p=f.onExit,c=f.onExiting,d=f.onEnter,h=f.onEntering,m=f.onEntered;a=u().createElement(l,{in:f.show,appear:!0,onExit:p,onExiting:c,onExited:e.onHiddenListener,onEnter:d,onEntering:h,onEntered:m},a)}return a})),i&&(g=u().createElement(h.Z,{onRootClose:f.onHide,event:f.rootCloseEvent,disabled:f.rootCloseDisabled},g)),u().createElement(d.Z,{container:n},g)},o}(u().Component);E.propTypes=y({},d.Z.propTypes,{show:r().bool,placement:r().oneOf(m.Ct),container:r().oneOfType([p(),r().func]),flip:r().bool,children:r().func.isRequired,popperConfig:r().object,rootClose:r().bool,rootCloseEvent:h.Z.propTypes.event,rootCloseDisabled:h.Z.propTypes.disabled,onHide:function(e){var t=r().func;e.rootClose&&(t=t.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i{"use strict";n.d(t,{Z:()=>d});var o=n(675263),r=n.n(o),i=n(690621),s=n.n(i),a=n(124852),p=n.n(a),c=n(180307),u=n.n(c),l=n(491813),f=function(e){var t,n;function o(){return e.apply(this,arguments)||this}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.prototype.render=function(){var e=this;return this.props.children?p().createElement(l.Z,{container:this.props.container,onContainerResolved:this.props.onRendered},(function(t){return u().createPortal(e.props.children,t)})):null},o}(p().Component);f.displayName="Portal",f.propTypes={container:r().oneOfType([s(),r().func]),onRendered:r().func};const d=f},415538:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var o=n(781629),r=n.n(o),i=n(218093),s=n.n(i),a=n(675263),p=n.n(a),c=n(124852),u=n.n(c),l=n(180307),f=n.n(l),d=n(131527);function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var m=function(){},v=function(e){var t,n;function o(t,n){var o;return(o=e.call(this,t,n)||this).addEventListeners=function(){var e=o.props.event,t=(0,d.Z)(h(h(o)));o.removeMouseCaptureListener=s()(t,e,o.handleMouseCapture,!0),o.removeMouseListener=s()(t,e,o.handleMouse),o.removeKeyupListener=s()(t,"keyup",o.handleKeyUp),"ontouchstart"in t.documentElement&&(o.mobileSafariHackListeners=[].slice.call(document.body.children).map((function(e){return s()(e,"mousemove",m)})))},o.removeEventListeners=function(){o.removeMouseCaptureListener&&o.removeMouseCaptureListener(),o.removeMouseListener&&o.removeMouseListener(),o.removeKeyupListener&&o.removeKeyupListener(),o.mobileSafariHackListeners&&o.mobileSafariHackListeners.forEach((function(e){return e()}))},o.handleMouseCapture=function(e){var t;o.preventMouseRootClose=!!((t=e).metaKey||t.altKey||t.ctrlKey||t.shiftKey)||!function(e){return 0===e.button}(e)||r()(f().findDOMNode(h(h(o))),e.target)},o.handleMouse=function(e){!o.preventMouseRootClose&&o.props.onRootClose&&o.props.onRootClose(e)},o.handleKeyUp=function(e){27===e.keyCode&&o.props.onRootClose&&o.props.onRootClose(e)},o.preventMouseRootClose=!1,o}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=o.prototype;return i.componentDidMount=function(){this.props.disabled||this.addEventListeners()},i.componentDidUpdate=function(e){!this.props.disabled&&e.disabled?this.addEventListeners():this.props.disabled&&!e.disabled&&this.removeEventListeners()},i.componentWillUnmount=function(){this.props.disabled||this.removeEventListeners()},i.render=function(){return this.props.children},o}(u().Component);v.displayName="RootCloseWrapper",v.propTypes={onRootClose:p().func,children:p().element,disabled:p().bool,event:p().oneOf(["click","mousedown"])},v.defaultProps={event:"click"};const g=v},491813:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var o=n(675263),r=n.n(o),i=n(690621),s=n.n(i),a=n(250139),p=n.n(a),c=n(99981),u=n.n(c),l=n(124852),f=n.n(l),d=n(180307),h=n.n(d),m=n(147915);function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var g={container:r().oneOfType([s(),r().func]),onContainerResolved:r().func},y=function(e){var t,n;function o(){for(var t,n=arguments.length,o=new Array(n),r=0;r{"use strict";n.d(t,{h_:()=>o.Z}),n(463298),n(550301),n(234524),n(489028);var o=n(464515);n(415538),n(994540)},147915:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(180307),r=n.n(o);function i(e,t){return null==e?t:(e="function"==typeof e?e():e,r().findDOMNode(e)||null)}},171560:(e,t,n)=>{"use strict";function o(e){return Math.max(e.documentElement.offsetHeight||0,e.height||0,e.body.scrollHeight||0,e.body.offsetHeight||0)}n.d(t,{Z:()=>o})},816204:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(507624),r=n.n(o),i=n(99981),s=n.n(i);function a(e){var t;return r()(e)||(t=e)&&"body"===t.tagName.toLowerCase()?function(e){var t=s()(e),n=r()(t);return t.body.clientWidthe.clientHeight}},362639:(e,t,n)=>{"use strict";n.d(t,{GU:()=>i,GM:()=>s,dY:()=>a});var o=["template","script","style"],r=function(e,t,n){t=[].concat(t),[].forEach.call(e.children,(function(e){var r,i,s;-1===t.indexOf(e)&&(i=(r=e).nodeType,s=r.tagName,1===i&&-1===o.indexOf(s.toLowerCase()))&&n(e)}))};function i(e,t){t&&(e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden"))}function s(e,t){var n=t.root,o=t.backdrop;r(e,[n,o],(function(e){return i(!0,e)}))}function a(e,t){var n=t.root,o=t.backdrop;r(e,[n,o],(function(e){return i(!1,e)}))}},131527:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(180307),r=n.n(o),i=n(99981),s=n.n(i);function a(e){return s()(r().findDOMNode(e))}},590414:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(180307),r=n.n(o),i=n(553369),s=n.n(i);function a(e){return s()(r().findDOMNode(e))}},148941:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t{"use strict";n(124852),n(967317)},551835:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l});var o=n(722122),r=n(419756),i=n(393552),s=n(124852),a=n.n(s),p=n(441143),c=n.n(p),u=n(967317);n(705757);const l=function e(t,n,s){void 0===s&&(s=[]);var p=t.displayName||t.name||"Component",l=u.d_(t),f=Object.keys(n),d=f.map(u.oN);!l&&s.length&&c()(!1);var h=function(e){function p(){for(var t,o=arguments.length,r=new Array(o),i=0;i1?i-1:0),a=1;a{"use strict";n.d(t,{E0:()=>r,Yq:()=>i,oN:()=>s,d_:()=>a}),n(441143);var o=function(){};function r(e,t){var n={};return Object.keys(e).forEach((function(e){n[s(e)]=o})),n}function i(e,t){return void 0!==e[t]}function s(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function a(e){return!!e&&("function"!=typeof e||e.prototype&&e.prototype.isReactComponent)}},481385:(e,t,n)=>{"use strict";n.d(t,{C8:()=>c,ZP:()=>l});var o=n(393552),r=n(663349),i=n(896156),s=n(124852),a=n(988740),p=n.n(a),c=p()(),u=p()(),l=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),s=0;s{"use strict";n.d(t,{Ct:()=>g,ZP:()=>y});var o=n(419756),r=n(722122),i=n(393552),s=n(663349),a=n(896156),p=n(110251),c=n.n(p),u=n(124852),l=n(928981),f=n(481385),d=n(67139),h={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},m={},v=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),i=0;i{"use strict";n.d(t,{$p:()=>o,k$:()=>r});var o=function(e){return Array.isArray(e)?e[0]:e},r=function(e,t){if("function"==typeof e)return function(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o{"use strict";n.d(t,{Z:()=>Z});var i=n(809980),r=n.n(i),o=n(900011),a=n.n(o),s=n(250840),c=n.n(s),u=n(857023),l=n.n(u),p=n(390719),d=/(.|\s)*<\/html>/im,h=new(r())({html:!0,linkify:!0});h.use(a(),{imageClass:"",removeUnbalanced:!1,removeUnknown:!1});function f(e){var t=e;if(t instanceof HTMLAnchorElement&&(t.target="_blank"),t.childNodes&&t.childNodes.length>0)for(var n=0;n=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=l,t.lengthToRadians=p,t.lengthToDegrees=function(e,t){return d(p(e,t))},t.bearingToAzimuth=function(e){var t=e%360;return t<0&&(t+=360),t},t.radiansToDegrees=d,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 l(p(e,t),n)},t.convertArea=function(e,n,i){if(void 0===n&&(n="meters"),void 0===i&&(i="kilometers"),!(e>=0))throw new Error("area must be a positive number");var r=t.areaFactors[n];if(!r)throw new Error("invalid original units");var o=t.areaFactors[i];if(!o)throw new Error("invalid final units");return e/r*o},t.isNumber=h,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(!h(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")},t.radians2degrees=function(){throw new Error("method has been renamed to `radiansToDegrees`")},t.degrees2radians=function(){throw new Error("method has been renamed to `degreesToRadians`")},t.distanceToDegrees=function(){throw new Error("method has been renamed to `lengthToDegrees`")},t.distanceToRadians=function(){throw new Error("method has been renamed to `lengthToRadians`")},t.radiansToDistance=function(){throw new Error("method has been renamed to `radiansToLength`")},t.bearingToAngle=function(){throw new Error("method has been renamed to `bearingToAzimuth`")},t.convertDistance=function(){throw new Error("method has been renamed to `convertLength`")}}(b={exports:{}},b.exports),b.exports);(v=y)&&v.__esModule&&Object.prototype.hasOwnProperty.call(v,"default")&&v.default,y.earthRadius,y.factors,y.unitsFactors,y.areaFactors,y.feature,y.geometry,y.point,y.points,y.polygon,y.polygons,y.lineString,y.lineStrings,y.featureCollection,y.multiLineString,y.multiPoint,y.multiPolygon,y.geometryCollection,y.round,y.radiansToLength,y.lengthToRadians,y.lengthToDegrees,y.bearingToAzimuth,y.radiansToDegrees,y.degreesToRadians;var k=y.convertLength,w=(y.convertArea,y.isNumber,y.isObject,y.validateBBox,y.validateId,y.radians2degrees,y.degrees2radians,y.distanceToDegrees,y.distanceToRadians,y.radiansToDistance,y.bearingToAngle,y.convertDistance,new p.Cartographic),x=new p.Ray;function _(e,t,n){var i=n,r=e.scene,o=r.camera;if(r.mode!==p.SceneMode.MORPHING&&((0,p.defined)(i)||(i=new p.Cartesian3),(0,p.defined)(e.trackedEntity)?i=e.trackedEntity.position.getValue(e.clock.currentTime,i):(x.origin=o.positionWC,x.direction=o.directionWC,i=r.globe.pick(x,r,i)),(0,p.defined)(i)))return r.mode===p.SceneMode.SCENE2D||r.mode===p.SceneMode.COLUMBUS_VIEW?(i=o.worldToCameraCoordinatesPoint(i,i),t&&(i=r.globe.ellipsoid.cartographicToCartesian(r.mapProjection.unproject(i,w),i))):t||(i=o.worldToCameraCoordinatesPoint(i,i)),i}var C={meters:"m",millimeters:"mm",centimeters:"cm",kilometers:"km",acres:"ac",miles:"mi",nauticalmiles:"nm",inches:"inch",yards:"yd",feet:"ft",radians:"rad",degrees:"deg"};function E(e,t){var n=1;return e<1&&(n=2,"kilometers"===t&&(e=k(e,"kilometers",t="meters"))),e.toFixed(n)+" "+C[t]}function A(e){if(!(0,p.defined)(e)||!(0,p.defined)(e.terria))throw new p.DeveloperError("options.terria is required.");this.terria=e.terria,this._removeSubscription=void 0,this._lastLegendUpdate=void 0,this.eventHelper=new p.EventHelper,this.distanceLabel=void 0,this.barWidth=void 0,this.enableDistanceLegend=!(0,p.defined)(e.enableDistanceLegend)||e.enableDistanceLegend,l().track(this,["distanceLabel","barWidth"]),this.eventHelper.add(this.terria.afterWidgetChanged,(function(){(0,p.defined)(this._removeSubscription)&&(this._removeSubscription(),this._removeSubscription=void 0)}),this);var t=this;function n(){if((0,p.defined)(t.terria)){var n=t.terria.scene;t._removeSubscription=n.postRender.addEventListener((function(){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.units,r=void 0===i?"kilometers":i,o=n.distanceLabelFormatter,a=void 0===o?E:o,s=e;if(!s.enableDistanceLegend)return s.barWidth=void 0,void(s.distanceLabel=void 0);var c=(0,p.getTimestamp)();if(!(c=0;--_)T[_]/y
':'',e,this)},A.create=function(e){var t=new A(e);return t.show(e.container),t};var D=new p.EllipsoidGeodesic,T=[1,2,3,5,10,20,30,50,100,200,300,500,1e3,2e3,3e3,5e3,1e4,2e4,3e4,5e4,1e5,2e5,3e5,5e5,1e6,2e6,3e6,5e6,1e7,2e7,3e7,5e7];function S(e){if(!(0,p.defined)(e))throw new p.DeveloperError("terria is required");this._terria=e,this.name="Unnamed Control",this.text=void 0,this.svgIcon=void 0,this.svgHeight=void 0,this.svgWidth=void 0,this.cssClass=void 0,this.isActive=!1,l().track(this,["name","svgIcon","svgHeight","svgWidth","cssClass","isActive"])}function M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(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}Object.defineProperties(S.prototype,{terria:{get:function(){return this._terria}},hasText:{get:function(){return(0,p.defined)(this.text)&&"string"==typeof this.text}}}),S.prototype.activate=function(){throw new p.DeveloperError("activate must be implemented in the derived class.")};var F=function(e){function t(){return M(this,t),L(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}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),t}(S),P="M 7.5,0 C 3.375,0 0,3.375 0,7.5 0,11.625 3.375,15 7.5,15 c 3.46875,0 6.375,-2.4375 7.21875,-5.625 l -1.96875,0 C 12,11.53125 9.9375,13.125 7.5,13.125 4.40625,13.125 1.875,10.59375 1.875,7.5 1.875,4.40625 4.40625,1.875 7.5,1.875 c 1.59375,0 2.90625,0.65625 3.9375,1.6875 l -3,3 6.5625,0 L 15,0 12.75,2.25 C 11.4375,0.84375 9.5625,0 7.5,0 z";function z(){for(var e=arguments.length,t=Array(e),n=0;n1&&this.controls[1].setNavigationLocked(this.navigationLocked)},this.eventHelper.add(this.terria.afterWidgetChanged,n,this),n()}I.prototype.zoom=function(e){if(this.isActive=!0,(0,p.defined)(this.terria)){var t=this.terria.scene,n=t.screenSpaceCameraController;if(!n.enableInputs||!n.enableZoom)return;var i=t.camera,r=void 0;switch(t.mode){case p.SceneMode.MORPHING:break;case p.SceneMode.SCENE2D:i.zoomIn(i.positionCartographic.height*(1-this.relativeAmount));break;default:var o=void 0;if(o=(0,p.defined)(this.terria.trackedEntity)?new p.Cartesian3:_(this.terria,!1),(0,p.defined)(o))r={direction:i.direction,up:i.up};else{var a=new p.Ray(i.worldToCameraCoordinatesPoint(t.globe.ellipsoid.cartographicToCartesian(i.positionCartographic)),i.directionWC);o=p.IntersectionTests.grazingAltitudeLocation(a,t.globe.ellipsoid),r={heading:i.heading,pitch:i.pitch,roll:i.roll}}var s=p.Cartesian3.subtract(i.position,o,R),c=p.Cartesian3.multiplyByScalar(s,e,s),u=p.Cartesian3.add(o,c,o);(0,p.defined)(this.terria.trackedEntity)||t.mode===p.SceneMode.COLUMBUS_VIEW?i.position=u:i.flyTo({destination:u,orientation:r,duration:.5,convert:!1})}}this.isActive=!1},q.prototype.destroy=function(){this.eventHelper.removeAll()},q.prototype.show=function(e){var t=void 0;this.enableZoomControls&&this.enableCompass?t='
':!this.enableZoomControls&&this.enableCompass?t='
':this.enableZoomControls&&!this.enableCompass?t='':this.enableZoomControls||this.enableCompass||(t=''),g(t,e,this)},q.prototype.add=function(e){this.controls.push(e)},q.prototype.remove=function(e){this.controls.remove(e)},q.prototype.isLastControl=function(e){return e===this.controls[this.controls.length-1]};var N=new p.Cartesian2;q.prototype.handleMouseDown=function(e,t){if(this.terria.scene.mode===p.SceneMode.MORPHING)return!0;if(e.navigationLocked)return!0;var n=t.currentTarget,i=t.currentTarget.getBoundingClientRect(),r=i.width/2,o=new p.Cartesian2((i.right-i.left)/2,(i.bottom-i.top)/2),a=new p.Cartesian2(t.clientX-i.left,t.clientY-i.top),s=p.Cartesian2.subtract(a,o,N),c=p.Cartesian2.magnitude(s)/r;if(c<50/145)!function(e,t,n){var i=e,r=i.terria.scene,o=r.screenSpaceCameraController;if(r.mode!==p.SceneMode.MORPHING&&o.enableInputs){if(i.navigationLocked)return!0;switch(r.mode){case p.SceneMode.COLUMBUS_VIEW:if(o.enableLook)break;if(!o.enableTranslate||!o.enableTilt)return;break;case p.SceneMode.SCENE3D:if(o.enableLook)break;if(!o.enableTilt||!o.enableRotate)return;break;case p.SceneMode.SCENE2D:if(!o.enableTranslate)return;break;default:console.warn("scene.mode:"+r.mode+" bad case")}document.removeEventListener("mousemove",i.orbitMouseMoveFunction,!1),document.removeEventListener("mouseup",i.orbitMouseUpFunction,!1),(0,p.defined)(i.orbitTickFunction)&&i.terria.clock.onTick.removeEventListener(i.orbitTickFunction),i.orbitMouseMoveFunction=void 0,i.orbitMouseUpFunction=void 0,i.orbitTickFunction=void 0,i.isOrbiting=!0,i.orbitLastTimestamp=(0,p.getTimestamp)();var a=r.camera;if((0,p.defined)(i.terria.trackedEntity))i.orbitFrame=void 0,i.orbitIsLook=!1;else{var s=_(i.terria,!0,j);(0,p.defined)(s)?(i.orbitFrame=p.Transforms.eastNorthUpToFixedFrame(s,r.globe.ellipsoid,B),i.orbitIsLook=!1):(i.orbitFrame=p.Transforms.eastNorthUpToFixedFrame(a.positionWC,r.globe.ellipsoid,B),i.orbitIsLook=!0)}i.orbitTickFunction=function(e){var t=(0,p.getTimestamp)(),n=(t-i.orbitLastTimestamp)*(2.5*(i.orbitCursorOpacity-.5)/1e3),o=i.orbitCursorAngle+p.Math.PI_OVER_TWO,s=Math.cos(o)*n,c=Math.sin(o)*n,u=void 0;if(i.navigationLocked)return!0;(0,p.defined)(i.orbitFrame)&&(u=p.Matrix4.clone(a.transform,O),a.lookAtTransform(i.orbitFrame)),r.mode===p.SceneMode.SCENE2D?a.move(new p.Cartesian3(s,c,0),Math.max(r.canvas.clientWidth,r.canvas.clientHeight)/100*a.positionCartographic.height*n):i.orbitIsLook?(a.look(p.Cartesian3.UNIT_Z,-s),a.look(a.right,-c)):(a.rotateLeft(s),a.rotateUp(c)),(0,p.defined)(i.orbitFrame)&&a.lookAtTransform(u),i.orbitLastTimestamp=t},i.orbitMouseMoveFunction=function(e){var n=t.getBoundingClientRect(),i=new p.Cartesian2((n.right-n.left)/2,(n.bottom-n.top)/2),r=new p.Cartesian2(e.clientX-n.left,e.clientY-n.top);c(p.Cartesian2.subtract(r,i,N),n.width)},i.orbitMouseUpFunction=function(e){i.isOrbiting=!1,document.removeEventListener("mousemove",i.orbitMouseMoveFunction,!1),document.removeEventListener("mouseup",i.orbitMouseUpFunction,!1),(0,p.defined)(i.orbitTickFunction)&&i.terria.clock.onTick.removeEventListener(i.orbitTickFunction),i.orbitMouseMoveFunction=void 0,i.orbitMouseUpFunction=void 0,i.orbitTickFunction=void 0},document.addEventListener("mousemove",i.orbitMouseMoveFunction,!1),document.addEventListener("mouseup",i.orbitMouseUpFunction,!1),i.terria.clock.onTick.addEventListener(i.orbitTickFunction),c(n,t.getBoundingClientRect().width)}function c(e,t){var n=Math.atan2(-e.y,e.x);i.orbitCursorAngle=p.Math.zeroToTwoPi(n-p.Math.PI_OVER_TWO);var r=p.Cartesian2.magnitude(e),o=t/2,a=Math.min(r/o,1),s=.5*a*a+.5;i.orbitCursorOpacity=s}}(this,n,s);else{if(!(c<1))return!0;!function(e,t,n){var i=e,r=i.terria.scene,o=r.camera,a=r.screenSpaceCameraController;if(r.mode!==p.SceneMode.MORPHING&&r.mode!==p.SceneMode.SCENE2D&&a.enableInputs){if(i.navigationLocked)return!0;if(a.enableLook||r.mode!==p.SceneMode.COLUMBUS_VIEW&&(r.mode!==p.SceneMode.SCENE3D||a.enableRotate)){if(document.removeEventListener("mousemove",i.rotateMouseMoveFunction,!1),document.removeEventListener("mouseup",i.rotateMouseUpFunction,!1),i.rotateMouseMoveFunction=void 0,i.rotateMouseUpFunction=void 0,i.isRotating=!0,i.rotateInitialCursorAngle=Math.atan2(-n.y,n.x),(0,p.defined)(i.terria.trackedEntity))i.rotateFrame=void 0,i.rotateIsLook=!1;else{var s=_(i.terria,!0,j);(0,p.defined)(s)&&(r.mode!==p.SceneMode.COLUMBUS_VIEW||a.enableLook||a.enableTranslate)?(i.rotateFrame=p.Transforms.eastNorthUpToFixedFrame(s,r.globe.ellipsoid,B),i.rotateIsLook=!1):(i.rotateFrame=p.Transforms.eastNorthUpToFixedFrame(o.positionWC,r.globe.ellipsoid,B),i.rotateIsLook=!0)}var c=void 0;(0,p.defined)(i.rotateFrame)&&(c=p.Matrix4.clone(o.transform,O),o.lookAtTransform(i.rotateFrame)),i.rotateInitialCameraAngle=-o.heading,(0,p.defined)(i.rotateFrame)&&o.lookAtTransform(c),i.rotateMouseMoveFunction=function(e){var n=t.getBoundingClientRect(),r=new p.Cartesian2((n.right-n.left)/2,(n.bottom-n.top)/2),a=new p.Cartesian2(e.clientX-n.left,e.clientY-n.top),s=p.Cartesian2.subtract(a,r,N),u=Math.atan2(-s.y,s.x)-i.rotateInitialCursorAngle,l=p.Math.zeroToTwoPi(i.rotateInitialCameraAngle-u);o=i.terria.scene.camera,(0,p.defined)(i.rotateFrame)&&(c=p.Matrix4.clone(o.transform,O),o.lookAtTransform(i.rotateFrame));var d=-o.heading;o.rotateRight(l-d),(0,p.defined)(i.rotateFrame)&&o.lookAtTransform(c)},i.rotateMouseUpFunction=function(e){i.isRotating=!1,document.removeEventListener("mousemove",i.rotateMouseMoveFunction,!1),document.removeEventListener("mouseup",i.rotateMouseUpFunction,!1),i.rotateMouseMoveFunction=void 0,i.rotateMouseUpFunction=void 0},document.addEventListener("mousemove",i.rotateMouseMoveFunction,!1),document.addEventListener("mouseup",i.rotateMouseUpFunction,!1)}}}(this,n,s)}};var O=new p.Matrix4,B=new p.Matrix4,j=new p.Cartesian3;q.prototype.handleDoubleClick=function(e){var t=e.terria.scene,n=t.camera,i=t.screenSpaceCameraController;if(t.mode===p.SceneMode.MORPHING||!i.enableInputs)return!0;if(e.navigationLocked)return!0;if(t.mode!==p.SceneMode.COLUMBUS_VIEW||i.enableTranslate){if(t.mode===p.SceneMode.SCENE3D||t.mode===p.SceneMode.COLUMBUS_VIEW){if(!i.enableLook)return;if(t.mode===p.SceneMode.SCENE3D&&!i.enableRotate)return}var r=_(e.terria,!0,j);if((0,p.defined)(r)){var o=t.globe.ellipsoid.cartographicToCartesian(n.positionCartographic,new p.Cartesian3),a=t.globe.ellipsoid.geodeticSurfaceNormal(r),s=new p.BoundingSphere(r,0);n.flyToBoundingSphere(s,{offset:new p.HeadingPitchRange(0,p.Math.PI_OVER_TWO-p.Cartesian3.angleBetween(a,n.directionWC),p.Cartesian3.distance(o,r)),duration:1.5})}else this.controls[1].resetView()}},q.create=function(e){var t=new q(e);return t.show(e.container),t};var V=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{units:"kilometers"};if(!(0,p.defined)(e))throw new p.DeveloperError("CesiumWidget or Viewer is required.");var n=(0,p.defined)(e.cesiumWidget)?e.cesiumWidget:e,i=document.createElement("div");i.className="cesium-widget-cesiumNavigationContainer",n.container.appendChild(i),this.terria=e,this.terria.options=(0,p.defined)(t)?t:{},this.terria.afterWidgetChanged=new p.Event,this.terria.beforeWidgetChanged=new p.Event,this.container=i,m(),(0,p.defined)(this.terria.options.enableDistanceLegend)&&!this.terria.options.enableDistanceLegend||(this.distanceLegendDiv=document.createElement("div"),i.appendChild(this.distanceLegendDiv),this.distanceLegendDiv.setAttribute("id","distanceLegendDiv"),this.distanceLegendViewModel=A.create(V({},t,{container:this.distanceLegendDiv,terria:this.terria,mapElement:i,enableDistanceLegend:!0}))),(0,p.defined)(this.terria.options.enableZoomControls)&&!this.terria.options.enableZoomControls||(0,p.defined)(this.terria.options.enableCompass)&&!this.terria.options.enableCompass?!(0,p.defined)(this.terria.options.enableZoomControls)||this.terria.options.enableZoomControls||(0,p.defined)(this.terria.options.enableCompass)&&!this.terria.options.enableCompass?(0,p.defined)(this.terria.options.enableZoomControls)&&!this.terria.options.enableZoomControls||!(0,p.defined)(this.terria.options.enableCompass)||this.terria.options.enableCompass?(0,p.defined)(this.terria.options.enableZoomControls)&&!this.terria.options.enableZoomControls&&(0,p.defined)(this.terria.options.enableCompass)&&this.terria.options.enableCompass:(this.navigationDiv=document.createElement("div"),this.navigationDiv.setAttribute("id","navigationDiv"),i.appendChild(this.navigationDiv),this.navigationViewModel=q.create({container:this.navigationDiv,terria:this.terria,enableZoomControls:!0,enableCompass:!1})):(this.navigationDiv=document.createElement("div"),this.navigationDiv.setAttribute("id","navigationDiv"),i.appendChild(this.navigationDiv),this.navigationViewModel=q.create({container:this.navigationDiv,terria:this.terria,enableZoomControls:!1,enableCompass:!0})):(this.navigationDiv=document.createElement("div"),this.navigationDiv.setAttribute("id","navigationDiv"),i.appendChild(this.navigationDiv),this.navigationViewModel=q.create({container:this.navigationDiv,terria:this.terria,enableZoomControls:!0,enableCompass:!0}))}function H(e,t){if(!(0,p.defined)(e))throw new p.DeveloperError("viewer is required.");var n;W(e,t).addOnDestroyListener((n=e,function(){delete n.cesiumNavigation})),Object.defineProperties(e,{cesiumNavigation:{configurable:!0,get:function(){return e.cesiumWidget.cesiumNavigation}}})}$.prototype.distanceLegendViewModel=void 0,$.prototype.navigationViewModel=void 0,$.prototype.navigationDiv=void 0,$.prototype.distanceLegendDiv=void 0,$.prototype.terria=void 0,$.prototype.container=void 0,$.prototype._onDestroyListeners=void 0,$.prototype._navigationLocked=!1,$.prototype.setNavigationLocked=function(e){this._navigationLocked=e,this.navigationViewModel.setNavigationLocked(this._navigationLocked)},$.prototype.getNavigationLocked=function(){return this._navigationLocked},$.prototype.destroy=function(){(0,p.defined)(this.navigationViewModel)&&this.navigationViewModel.destroy(),(0,p.defined)(this.distanceLegendViewModel)&&this.distanceLegendViewModel.destroy(),(0,p.defined)(this.navigationDiv)&&this.navigationDiv.parentNode.removeChild(this.navigationDiv),delete this.navigationDiv,(0,p.defined)(this.distanceLegendDiv)&&this.distanceLegendDiv.parentNode.removeChild(this.distanceLegendDiv),delete this.distanceLegendDiv,(0,p.defined)(this.container)&&this.container.parentNode.removeChild(this.container),delete this.container;for(var e=0;e{"use strict";n.d(t,{Z:()=>o});var i=n(923645),r=n.n(i)()((function(e){return e[1]}));r.push([e.id,"/*html {\n height: 100%;\n -webkit-font-smoothing: antialiased;\n}\n\nbody {\n height: 100%;\n width: 100%;\n margin: 0;\n overflow: hidden;\n padding: 0;\n background: #000;\n font-size: 15px;\n font-family: @default-font;\n}*/\n.msgapi .full-window {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n margin: 0;\n overflow: hidden;\n padding: 0;\n -webkit-transition: left 0.25s ease-out;\n -moz-transition: left 0.25s ease-out;\n -ms-transition: left 0.25s ease-out;\n -o-transition: left 0.25s ease-out;\n transition: left 0.25s ease-out;\n}\n.msgapi .transparent-to-input {\n pointer-events: none;\n}\n.msgapi .opaque-to-input {\n pointer-events: auto;\n}\n.msgapi .clickable {\n cursor: pointer;\n}\n/*a {\n text-decoration: none;\n color: @highlight-color;\n}*/\n.msgapi a:hover {\n text-decoration: underline;\n}\n/*\n@modal-background-color: @panel-background-color;\n@modal-text-color: @panel-emphasized-text-color;\n@modal-header-background-color: rgba(0,0,0,0.2);\n@modal-header-text-color: @panel-emphasized-text-color;*/\n/*.modal-background {\n .opaque-to-input;\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background-color: rgba(0,0,0,0.5);\n z-index: 1000; required for IE9 \n}*/\n/*\n.modal {\n position: absolute;\n margin: auto;\n background-color: @modal-background-color;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n max-height: 100%;\n max-width: 100%;\n font-family: @default-font;\n color: @modal-text-color;\n}\n\n.modal-header {\n background-color: @modal-header-background-color;\n border-bottom: @panel-element-border;\n font-size: 15px;\n line-height: 40px;\n margin: 0;\n}\n\n.modal-header h1 {\n font-size: 15px;\n color: @modal-header-text-color;\n margin-left: 15px;\n}*/\n/* Commented out due to conflicts with client apps. \n.modal-content {\n margin-left: 15px;\n margin-right: 15px;\n margin-bottom: 15px;\n padding-top: 15px;\n overflow: auto;\n}*/\n/*.modal-close-button {\n position: absolute;\n right: 15px;\n cursor: pointer;\n font-size: 18px;\n color: @modal-header-text-color;\n}*/\n.msgapi #ui {\n z-index: 2100;\n}\n@media print {\n .msgapi .full-window {\n position: initial;\n }\n}\n/* input[type=text] {\n height: 38px;\n background-color: #eeeeee;\n color: @input-text-color;\n font-size: 14px;\n}\n\n::-webkit-input-placeholder {\n color: fade(@input-text-color, 75%);\n font-style: italic;\n}\n\n:-moz-placeholder { /* Firefox 18- \n color: fade(@input-text-color, 75%);\n font-style: italic;\n}\n\n::-moz-placeholder { /* Firefox 19+ \n color: fade(@input-text-color, 75%);\n font-style: italic;\n}\n\n:-ms-input-placeholder {\n color: fade(@input-text-color, 75%);\n font-style: italic;\n}\n\ninput:focus {\n outline-color: #FFFFFF;\n}\n*/\n/*select {\n display: block;\n background-color: @panel-form-input-background-color;\n color: @panel-form-input-text-color;\n height: 40px;\n border: 0;\n margin-top: 10px;\n font-size: 14px;\n padding-left: 5px;\n}*/\n.msgapi .markdown img {\n max-width: 100%;\n}\n.msgapi .markdown svg {\n max-height: 100%;\n}\n.msgapi .markdown input,\n.msgapi .markdown select,\n.msgapi .markdown textarea,\n.msgapi .markdown fieldset {\n font-family: inherit;\n font-size: 1rem;\n box-sizing: border-box;\n margin-top: 0;\n margin-bottom: 0;\n}\n.msgapi .markdown label {\n vertical-align: middle;\n}\n.msgapi .markdown h1,\n.msgapi .markdown h2,\n.msgapi .markdown h3,\n.msgapi .markdown h4,\n.msgapi .markdown h5,\n.msgapi .markdown h6 {\n font-family: inherit;\n font-weight: bold;\n line-height: 1.25;\n margin-top: 1em;\n margin-bottom: .5em;\n}\n.msgapi .markdown h1 {\n font-size: 2rem;\n}\n.msgapi .markdown h2 {\n font-size: 1.5rem;\n}\n.msgapi .markdown h3 {\n font-size: 1.25rem;\n}\n.msgapi .markdown h4 {\n font-size: 1rem;\n}\n.msgapi .markdown h5 {\n font-size: 0.875rem;\n}\n.msgapi .markdown h6 {\n font-size: 0.75rem;\n}\n.msgapi .markdown p {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n.msgapi .markdown strong {\n font-weight: bold;\n}\n.msgapi .markdown em {\n font-style: italic;\n}\n.msgapi .markdown small {\n font-size: 80%;\n}\n.msgapi .markdown mark {\n color: #000;\n background: #ff0;\n}\n.msgapi .markdown u {\n text-decoration: underline;\n}\n.msgapi .markdown s {\n text-decoration: line-through;\n}\n.msgapi .markdown dl,\n.msgapi .markdown ol,\n.msgapi .markdown ul {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n.msgapi .markdown ol {\n list-style: decimal inside;\n}\n.msgapi .markdown ul {\n list-style: disc inside;\n}\n.msgapi .markdown pre,\n.msgapi .markdown code,\n.msgapi .markdown samp {\n font-family: monospace;\n font-size: inherit;\n}\n.msgapi .markdown pre {\n margin-top: 0;\n margin-bottom: 1rem;\n overflow-x: scroll;\n}\n.msgapi .markdown a {\n color: #68ADFE;\n text-decoration: none;\n}\n.msgapi .markdown a:hover {\n text-decoration: underline;\n}\n.msgapi .markdown pre,\n.msgapi .markdown code {\n background-color: transparent;\n border-radius: 3px;\n}\n.msgapi .markdown hr {\n border: 0;\n border-bottom-style: solid;\n border-bottom-width: 1px;\n border-bottom-color: rgba(0, 0, 0, 0.125);\n}\n.msgapi .markdown .left-align {\n text-align: left;\n}\n.msgapi .markdown .center {\n text-align: center;\n}\n.msgapi .markdown .right-align {\n text-align: right;\n}\n.msgapi .markdown .justify {\n text-align: justify;\n}\n.msgapi .markdown .truncate {\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.msgapi .markdown ol.upper-roman {\n list-style-type: upper-roman;\n}\n.msgapi .markdown ol.lower-alpha {\n list-style-type: lower-alpha;\n}\n.msgapi .markdown ul.circle {\n list-style-type: circle;\n}\n.msgapi .markdown ul.square {\n list-style-type: square;\n}\n.msgapi .markdown .list-reset {\n list-style: none;\n padding-left: 0;\n}\n.msgapi .floating {\n pointer-events: auto;\n position: absolute;\n border-radius: 15px;\n background-color: rgba(47, 53, 60, 0.8);\n}\n.msgapi .floating-horizontal {\n pointer-events: auto;\n position: absolute;\n border-radius: 15px;\n background-color: rgba(47, 53, 60, 0.8);\n padding-left: 5px;\n padding-right: 5px;\n}\n.msgapi .floating-vertical {\n pointer-events: auto;\n position: absolute;\n border-radius: 15px;\n background-color: rgba(47, 53, 60, 0.8);\n padding-top: 5px;\n padding-bottom: 5px;\n}\n@media print {\n .msgapi .floating {\n display: none;\n }\n}\n.msgapi .distance-legend {\n pointer-events: auto;\n position: absolute;\n border-radius: 15px;\n background-color: rgba(47, 53, 60, 0.8);\n padding-left: 5px;\n padding-right: 5px;\n right: 25px;\n bottom: 30px;\n height: 30px;\n width: 125px;\n border: 1px solid rgba(255, 255, 255, 0.1);\n box-sizing: content-box;\n}\n.msgapi .distance-legend-label {\n display: inline-block;\n font-family: 'Roboto', sans-serif;\n font-size: 14px;\n font-weight: lighter;\n line-height: 30px;\n color: #ffffff;\n width: 125px;\n text-align: center;\n}\n.msgapi .distance-legend-scale-bar {\n border-left: 1px solid #ffffff;\n border-right: 1px solid #ffffff;\n border-bottom: 1px solid #ffffff;\n position: absolute;\n height: 10px;\n top: 15px;\n}\n@media print {\n .msgapi .distance-legend {\n display: none;\n }\n}\n@media screen and (max-width: 700px), screen and (max-height: 420px) {\n .msgapi .distance-legend {\n display: none;\n }\n}\n.msgapi .navigation-controls {\n position: absolute;\n right: 30px;\n top: 210px;\n width: 30px;\n border: 1px solid rgba(255, 255, 255, 0.1);\n font-weight: 300;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.msgapi .navigation-control {\n cursor: pointer;\n border-bottom: 1px solid #555555;\n}\n.msgapi .naviagation-control:active {\n color: #FFF;\n}\n.msgapi .navigation-control-last {\n cursor: pointer;\n border-bottom: 1px solid #555555;\n border-bottom: 0;\n}\n.msgapi .navigation-control-icon-zoom-in {\n position: relative;\n text-align: center;\n font-size: 20px;\n color: #ffffff;\n padding-bottom: 4px;\n}\n.msgapi .navigation-control-icon-zoom-out {\n position: relative;\n text-align: center;\n font-size: 20px;\n color: #ffffff;\n}\n.msgapi .navigation-control-icon-reset {\n position: relative;\n left: 10px;\n width: 10px;\n height: 10px;\n fill: rgba(255, 255, 255, 0.8);\n padding-top: 6px;\n padding-bottom: 6px;\n box-sizing: content-box;\n}\n.msgapi .compass {\n pointer-events: auto;\n position: absolute;\n right: 0px;\n top: 100px;\n width: 95px;\n height: 95px;\n overflow: hidden;\n}\n.msgapi .compass-outer-ring {\n position: absolute;\n top: 0;\n width: 95px;\n height: 95px;\n fill: rgba(255, 255, 255, 0.5);\n}\n.msgapi .compass-outer-ring-background {\n position: absolute;\n top: 14px;\n left: 14px;\n width: 44px;\n height: 44px;\n border-radius: 44px;\n border: 12px solid rgba(47, 53, 60, 0.8);\n box-sizing: content-box;\n}\n.msgapi .compass-gyro {\n pointer-events: none;\n position: absolute;\n top: 0;\n width: 95px;\n height: 95px;\n fill: #CCC;\n}\n.msgapi .compass-gyro-active {\n fill: #68adfe;\n}\n.msgapi .compass-gyro-background {\n position: absolute;\n top: 30px;\n left: 30px;\n width: 33px;\n height: 33px;\n border-radius: 33px;\n background-color: rgba(47, 53, 60, 0.8);\n border: 1px solid rgba(255, 255, 255, 0.2);\n box-sizing: content-box;\n}\n.msgapi .compass-gyro-background:hover + .compass-gyro {\n fill: #68adfe;\n}\n.msgapi .compass-rotation-marker {\n position: absolute;\n top: 0;\n width: 95px;\n height: 95px;\n fill: #68adfe;\n}\n@media screen and (max-width: 700px), screen and (max-height: 420px) {\n .msgapi .navigation-controls {\n display: none;\n }\n .msgapi .compass {\n display: none;\n }\n}\n@media print {\n .msgapi .navigation-controls {\n display: none;\n }\n .msgapi .compass {\n display: none;\n }\n}\n",""]);const o=r},25925:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(923645),r=n.n(i),o=n(861667),a=n.n(o),s=n(143059),c=n.n(s),u=r()((function(e){return e[1]})),l=a()(c());u.push([e.id,'.msgapi .cesium-svgPath-svg{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden}.msgapi .cesium-button{display:inline-block;position:relative;background:#303336;border:1px solid #444;color:#edffff;fill:#edffff;border-radius:4px;padding:5px 12px;margin:2px 3px;cursor:pointer;overflow:hidden;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.msgapi .cesium-button:focus{color:#fff;fill:#fff;border-color:#ea4;outline:0}.msgapi .cesium-button:hover{color:#fff;fill:#fff;background:#48b;border-color:#aef;box-shadow:0 0 8px #fff}.msgapi .cesium-button:active{color:#000;fill:#000;background:#adf;border-color:#fff;box-shadow:0 0 8px #fff}.msgapi .cesium-button-disabled,.msgapi .cesium-button-disabled:active,.msgapi .cesium-button-disabled:focus,.msgapi .cesium-button-disabled:hover,.msgapi .cesium-button:disabled{background:#303336;border-color:#444;color:#646464;fill:#646464;box-shadow:none;cursor:default}.msgapi .cesium-button option{background-color:#000;color:#eee}.msgapi .cesium-button option:disabled{color:#777}.msgapi .cesium-button input,.msgapi .cesium-button label{cursor:pointer}.msgapi .cesium-button input{vertical-align:sub}.msgapi .cesium-toolbar-button{box-sizing:border-box;width:32px;height:32px;border-radius:14%;padding:0;vertical-align:middle;z-index:0}.msgapi .cesium-performanceDisplay-defaultContainer{position:absolute;top:50px;right:10px;text-align:right}.msgapi .cesium-performanceDisplay{background-color:rgba(40,40,40,.7);padding:7px;border-radius:5px;border:1px solid #444;font:bold 12px sans-serif}.msgapi .cesium-performanceDisplay-fps{color:#e52}.msgapi .cesium-performanceDisplay-throttled{color:#a42}.msgapi .cesium-performanceDisplay-ms{color:#de3}.msgapi .cesium-animation-theme{visibility:hidden;display:block;position:absolute;z-index:-100}.msgapi .cesium-animation-themeNormal{color:#222}.msgapi .cesium-animation-themeHover{color:#4488b0}.msgapi .cesium-animation-themeSelect{color:#242}.msgapi .cesium-animation-themeDisabled{color:#333}.msgapi .cesium-animation-themeKnob{color:#222}.msgapi .cesium-animation-themePointer{color:#2e2}.msgapi .cesium-animation-themeSwoosh{color:#8ac}.msgapi .cesium-animation-themeSwooshHover{color:#aef}.msgapi .cesium-animation-svgText{fill:#edffff;font-family:Sans-Serif;font-size:15px;text-anchor:middle}.msgapi .cesium-animation-blank{fill:#000;fill-opacity:.01;stroke:none}.msgapi .cesium-animation-rectButton{cursor:pointer;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.msgapi .cesium-animation-rectButton .cesium-animation-buttonGlow{fill:#fff;stroke:none;display:none}.msgapi .cesium-animation-rectButton:hover .cesium-animation-buttonGlow{display:block}.msgapi .cesium-animation-rectButton .cesium-animation-buttonPath{fill:#edffff}.msgapi .cesium-animation-rectButton .cesium-animation-buttonMain{stroke:#444;stroke-width:1.2}.msgapi .cesium-animation-rectButton:hover .cesium-animation-buttonMain{stroke:#aef}.msgapi .cesium-animation-rectButton:active .cesium-animation-buttonMain{fill:#abd6ff}.msgapi .cesium-animation-buttonDisabled{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.msgapi .cesium-animation-buttonDisabled .cesium-animation-buttonMain{stroke:#555}.msgapi .cesium-animation-buttonDisabled .cesium-animation-buttonPath{fill:#818181}.msgapi .cesium-animation-buttonDisabled .cesium-animation-buttonGlow{display:none}.msgapi .cesium-animation-buttonToggled .cesium-animation-buttonGlow{display:block;fill:#2e2}.msgapi .cesium-animation-buttonToggled .cesium-animation-buttonMain{stroke:#2e2}.msgapi .cesium-animation-buttonToggled:hover .cesium-animation-buttonGlow{fill:#fff}.msgapi .cesium-animation-buttonToggled:hover .cesium-animation-buttonMain{stroke:#2e2}.msgapi .cesium-animation-shuttleRingG{cursor:pointer}.msgapi .cesium-animation-shuttleRingPointer{cursor:pointer}.msgapi .cesium-animation-shuttleRingPausePointer{cursor:pointer}.msgapi .cesium-animation-shuttleRingBack{fill:#181818;fill-opacity:.8;stroke:#333;stroke-width:1.2}.msgapi .cesium-animation-shuttleRingSwoosh line{stroke:#8ac;stroke-width:3;stroke-opacity:.2;stroke-linecap:round}.msgapi .cesium-animation-knobOuter{cursor:pointer;stroke:#444;stroke-width:1.2}.msgapi .cesium-animation-knobInner{cursor:pointer}.msgapi .cesium-baseLayerPicker-selected{position:absolute;top:0;left:0;width:100%;height:100%;border:none}.msgapi .cesium-baseLayerPicker-dropDown{display:block;position:absolute;box-sizing:content-box;top:auto;right:0;width:320px;max-height:500px;margin-top:5px;background-color:rgba(38,38,38,.75);border:1px solid #444;padding:6px;overflow:auto;border-radius:10px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;transform:translate(0,-20%);visibility:hidden;opacity:0;transition:visibility 0s .2s,opacity .2s ease-in,transform .2s ease-in}.msgapi .cesium-baseLayerPicker-dropDown-visible{transform:translate(0,0);visibility:visible;opacity:1;transition:opacity .2s ease-out,transform .2s ease-out}.msgapi .cesium-baseLayerPicker-sectionTitle{display:block;font-family:sans-serif;font-size:16pt;text-align:left;color:#edffff;margin-bottom:4px}.msgapi .cesium-baseLayerPicker-choices{margin-bottom:5px}.msgapi .cesium-baseLayerPicker-categoryTitle{color:#edffff;font-size:11pt}.msgapi .cesium-baseLayerPicker-choices{display:block;border:1px solid #888;border-radius:5px;padding:5px 0}.msgapi .cesium-baseLayerPicker-item{display:inline-block;vertical-align:top;margin:2px 5px;width:64px;text-align:center;cursor:pointer}.msgapi .cesium-baseLayerPicker-itemLabel{display:block;font-family:sans-serif;font-size:8pt;text-align:center;vertical-align:middle;color:#edffff;cursor:pointer;word-wrap:break-word}.msgapi .cesium-baseLayerPicker-item:focus .cesium-baseLayerPicker-itemLabel,.msgapi .cesium-baseLayerPicker-item:hover .cesium-baseLayerPicker-itemLabel{text-decoration:underline}.msgapi .cesium-baseLayerPicker-itemIcon{display:inline-block;position:relative;width:inherit;height:auto;background-size:100% 100%;border:solid 1px #444;border-radius:9px;color:#edffff;margin:0;padding:0;cursor:pointer;box-sizing:border-box}.msgapi .cesium-baseLayerPicker-item:hover .cesium-baseLayerPicker-itemIcon{border-color:#fff;box-shadow:0 0 8px #fff,0 0 8px #fff}.msgapi .cesium-baseLayerPicker-selectedItem .cesium-baseLayerPicker-itemLabel{color:#bdecf8}.msgapi .cesium-baseLayerPicker-selectedItem .cesium-baseLayerPicker-itemIcon{border:double 4px #bdecf8}.msgapi .cesium-widget{position:relative}.msgapi .cesium-widget,.msgapi .cesium-widget canvas{width:100%;height:100%;touch-action:none}.msgapi .cesium-widget-credits{display:block;position:absolute;bottom:0;left:0;color:#fff;font-size:10px;text-shadow:0 0 2px #000;padding-right:5px}.msgapi .cesium-widget-credits a,.msgapi .cesium-widget-credits a:visited{color:#fff}.msgapi .cesium-widget-errorPanel{position:absolute;top:0;right:0;bottom:0;left:0;text-align:center;background:rgba(0,0,0,.7);z-index:99999}.msgapi .cesium-widget-errorPanel:before{display:inline-block;vertical-align:middle;height:100%;content:""}.msgapi .cesium-widget-errorPanel-content{width:75%;max-width:500px;display:inline-block;text-align:left;vertical-align:middle;border:1px solid #510c00;border-radius:7px;background-color:#f0d9d5;font-size:14px;color:#510c00}.msgapi .cesium-widget-errorPanel-content.expanded{max-width:75%}.msgapi .cesium-widget-errorPanel-header{font-size:18px;font-family:"Open Sans",Verdana,Geneva,sans-serif;background:#d69d93;border-bottom:2px solid #510c00;padding-bottom:10px;border-radius:3px 3px 0 0;padding:15px}.msgapi .cesium-widget-errorPanel-scroll{overflow:auto;font-family:"Open Sans",Verdana,Geneva,sans-serif;white-space:pre-wrap;padding:0 15px;margin:10px 0 20px 0}.msgapi .cesium-widget-errorPanel-buttonPanel{padding:0 15px;margin:10px 0 20px 0;text-align:right}.msgapi .cesium-widget-errorPanel-buttonPanel button{border-color:#510c00;background:#d69d93;color:#202020;margin:0}.msgapi .cesium-widget-errorPanel-buttonPanel button:focus{border-color:#510c00;background:#f0d9d5;color:#510c00}.msgapi .cesium-widget-errorPanel-buttonPanel button:hover{border-color:#510c00;background:#f0d9d5;color:#510c00}.msgapi .cesium-widget-errorPanel-buttonPanel button:active{border-color:#510c00;background:#b17b72;color:#510c00}.msgapi .cesium-widget-errorPanel-more-details{text-decoration:underline;cursor:pointer}.msgapi .cesium-widget-errorPanel-more-details:hover{color:#2b0700}.msgapi .cesium-cesiumInspector{border-radius:5px;transition:width ease-in-out .25s;background:rgba(48,51,54,.8);border:1px solid #444;color:#edffff;display:inline-block;position:relative;padding:4px 12px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden}.msgapi .cesium-cesiumInspector-button{text-align:center;font-size:11pt}.msgapi .cesium-cesiumInspector-visible .cesium-cesiumInspector-button{border-bottom:1px solid #aaa;padding-bottom:3px}.msgapi .cesium-cesiumInspector input:enabled,.msgapi .cesium-cesiumInspector-button{cursor:pointer}.msgapi .cesium-cesiumInspector-visible{width:185px;height:auto}.msgapi .cesium-cesiumInspector-hidden{width:122px;height:17px}.msgapi .cesium-cesiumInspector-sectionContent{max-height:500px}.msgapi .cesium-cesiumInspector-section-collapsed .cesium-cesiumInspector-sectionContent{max-height:0;padding:0!important;overflow:hidden}.msgapi .cesium-cesiumInspector-dropDown{margin:5px 0;font-family:sans-serif;font-size:10pt;width:185px}.msgapi .cesium-cesiumInspector-frustumStatistics{padding-left:10px;padding:5px;background-color:rgba(80,80,80,.75)}.msgapi .cesium-cesiumInspector-pickButton{background-color:rgba(0,0,0,.3);border:1px solid #444;color:#edffff;border-radius:5px;padding:3px 7px;cursor:pointer;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;margin:0 auto}.msgapi .cesium-cesiumInspector-pickButton:focus{outline:0}.msgapi .cesium-cesiumInspector-pickButton:active,.msgapi .cesium-cesiumInspector-pickButtonHighlight{color:#000;background:#adf;border-color:#fff;box-shadow:0 0 8px #fff}.msgapi .cesium-cesiumInspector-center{text-align:center}.msgapi .cesium-cesiumInspector-sectionHeader{font-weight:700;font-size:10pt;margin:0;cursor:pointer}.msgapi .cesium-cesiumInspector-pickSection{border:1px solid #aaa;border-radius:5px;padding:3px;margin-bottom:5px}.msgapi .cesium-cesiumInspector-sectionContent{margin-bottom:10px;transition:max-height .25s}.msgapi .cesium-cesiumInspector-tileText{padding-bottom:10px;border-bottom:1px solid #aaa}.msgapi .cesium-cesiumInspector-relativeText{padding-top:10px}.msgapi .cesium-cesiumInspector-sectionHeader::before{margin-right:5px;content:"-";width:1ch;display:inline-block}.msgapi .cesium-cesiumInspector-section-collapsed .cesium-cesiumInspector-sectionHeader::before{content:"+"}.msgapi ul.cesium-cesiumInspector-statistics{margin:0;padding-top:3px;padding-bottom:3px}.msgapi ul.cesium-cesiumInspector-statistics+ul.cesium-cesiumInspector-statistics{border-top:1px solid #aaa}.msgapi .cesium-cesiumInspector-slider{margin-top:5px}.msgapi .cesium-cesiumInspector-slider input[type=number]{text-align:left;background-color:#222;outline:0;border:1px solid #444;color:#edffff;width:100px;border-radius:3px;padding:1px;margin-left:10px;cursor:auto}.msgapi .cesium-cesiumInspector-slider input[type=number]::-webkit-inner-spin-button,.msgapi .cesium-cesiumInspector-slider input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.msgapi .cesium-cesiumInspector-slider input[type=range]{margin-left:5px;vertical-align:middle}.msgapi .cesium-cesiumInspector-hide .cesium-cesiumInspector-styleEditor{display:none}.msgapi .cesium-cesiumInspector-styleEditor{padding:10px;border-radius:5px;background:rgba(48,51,54,.8);border:1px solid #444}.msgapi .cesium-cesiumInspector-styleEditor textarea{width:100%;height:300px;background:0 0;color:#edffff;border:none;padding:0;white-space:pre;overflow-wrap:normal;overflow-x:auto}.msgapi .cesium-3DTilesInspector{width:300px;pointer-events:all}.msgapi .cesium-3DTilesInspector-statistics{font-size:11px}.msgapi .cesium-3DTilesInspector div,.msgapi .cesium-3DTilesInspector input[type=range]{width:100%;box-sizing:border-box}.msgapi .cesium-cesiumInspector-error{color:#ff9e9e;overflow:auto}.msgapi .cesium-3DTilesInspector .cesium-cesiumInspector-section{margin-top:3px}.msgapi .cesium-3DTilesInspector .cesium-cesiumInspector-sectionHeader+.cesium-cesiumInspector-show{border-top:1px solid #fff}.msgapi input.cesium-cesiumInspector-url{overflow:hidden;white-space:nowrap;overflow-x:scroll;background-color:transparent;color:#fff;outline:0;border:none;height:1em;width:100%}.msgapi .cesium-cesiumInspector .field-group{display:table}.msgapi .cesium-cesiumInspector .field-group>label{display:table-cell;font-weight:700}.msgapi .cesium-cesiumInspector .field-group>.field{display:table-cell;width:100%}.msgapi .cesium-button.cesium-fullscreenButton{display:block;width:100%;height:100%;margin:0;border-radius:0}.msgapi .cesium-button.cesium-vrButton{display:block;width:100%;height:100%;margin:0;border-radius:0}.msgapi .cesium-viewer-geocoderContainer .cesium-geocoder-input{border:solid 1px #444;background-color:rgba(40,40,40,.7);color:#fff;display:inline-block;vertical-align:middle;width:0;height:32px;margin:0;padding:0 32px 0 0;border-radius:0;box-sizing:border-box;transition:width ease-in-out .25s,background-color .2s ease-in-out;-webkit-appearance:none}.msgapi .cesium-viewer-geocoderContainer:hover .cesium-geocoder-input{border-color:#aef;box-shadow:0 0 8px #fff}.msgapi .cesium-viewer-geocoderContainer .cesium-geocoder-input:focus{border-color:#ea4;background-color:rgba(15,15,15,.9);box-shadow:none;outline:0}.msgapi .cesium-viewer-geocoderContainer .cesium-geocoder-input-wide,.msgapi .cesium-viewer-geocoderContainer .cesium-geocoder-input:focus,.msgapi .cesium-viewer-geocoderContainer:hover .cesium-geocoder-input{padding-left:4px;width:250px}.msgapi .cesium-viewer-geocoderContainer .search-results{position:absolute;background-color:#000;color:#eee;overflow-y:auto;opacity:.8;width:100%}.msgapi .cesium-viewer-geocoderContainer .search-results ul{list-style-type:none;margin:0;padding:0}.msgapi .cesium-viewer-geocoderContainer .search-results ul li{font-size:14px;padding:3px 10px}.msgapi .cesium-viewer-geocoderContainer .search-results ul li:hover{cursor:pointer}.msgapi .cesium-viewer-geocoderContainer .search-results ul li.active{background:#48b}.msgapi .cesium-geocoder-searchButton{background-color:#303336;display:inline-block;position:absolute;cursor:pointer;width:32px;top:1px;right:1px;height:30px;vertical-align:middle;fill:#edffff}.msgapi .cesium-geocoder-searchButton:hover{background-color:#48b}.msgapi .cesium-infoBox{display:block;position:absolute;top:50px;right:0;width:40%;max-width:480px;background:rgba(38,38,38,.95);color:#edffff;border:1px solid #444;border-right:none;border-top-left-radius:7px;border-bottom-left-radius:7px;box-shadow:0 0 10px 1px #000;transform:translate(100%,0);visibility:hidden;opacity:0;transition:visibility 0s .2s,opacity .2s ease-in,transform .2s ease-in}.msgapi .cesium-infoBox-visible{transform:translate(0,0);visibility:visible;opacity:1;transition:opacity .2s ease-out,transform .2s ease-out}.msgapi .cesium-infoBox-title{display:block;height:20px;padding:5px 30px 5px 25px;background:#545454;border-top-left-radius:7px;text-align:center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;box-sizing:content-box}.msgapi .cesium-infoBox-bodyless .cesium-infoBox-title{border-bottom-left-radius:7px}.msgapi button.cesium-infoBox-camera{display:block;position:absolute;top:4px;left:4px;width:22px;height:22px;background:0 0;border-color:transparent;border-radius:3px;padding:0 5px;margin:0}.msgapi button.cesium-infoBox-close{display:block;position:absolute;top:5px;right:5px;height:20px;background:0 0;border:none;border-radius:2px;font-weight:700;font-size:16px;padding:0 5px;margin:0;color:#edffff}.msgapi button.cesium-infoBox-close:focus{background:rgba(238,136,0,.44);outline:0}.msgapi button.cesium-infoBox-close:hover{background:#888;color:#000}.msgapi button.cesium-infoBox-close:active{background:#a00;color:#000}.msgapi .cesium-infoBox-bodyless .cesium-infoBox-iframe{display:none}.msgapi .cesium-infoBox-iframe{border:none;width:100%;width:calc(100% - 2px)}.msgapi span.cesium-sceneModePicker-wrapper{display:inline-block;position:relative;margin:0 3px}.msgapi .cesium-sceneModePicker-visible{visibility:visible;opacity:1;transition:opacity .25s linear}.msgapi .cesium-sceneModePicker-hidden{visibility:hidden;opacity:0;transition:visibility 0s .25s,opacity .25s linear}.msgapi .cesium-sceneModePicker-wrapper .cesium-sceneModePicker-none{display:none}.msgapi .cesium-sceneModePicker-slide-svg{transition:left 2s;top:0;left:0}.msgapi .cesium-sceneModePicker-wrapper .cesium-sceneModePicker-dropDown-icon{box-sizing:border-box;padding:0;margin:3px 0}.msgapi .cesium-sceneModePicker-wrapper .cesium-sceneModePicker-button2D,.msgapi .cesium-sceneModePicker-wrapper .cesium-sceneModePicker-button3D,.msgapi .cesium-sceneModePicker-wrapper .cesium-sceneModePicker-buttonColumbusView{margin:0 0 3px 0}.msgapi .cesium-sceneModePicker-wrapper .cesium-sceneModePicker-button3D .cesium-sceneModePicker-icon2D{left:100%}.msgapi .cesium-sceneModePicker-wrapper .cesium-sceneModePicker-button3D .cesium-sceneModePicker-iconColumbusView{left:200%}.msgapi .cesium-sceneModePicker-wrapper .cesium-sceneModePicker-buttonColumbusView .cesium-sceneModePicker-icon3D{left:-200%}.msgapi .cesium-sceneModePicker-wrapper .cesium-sceneModePicker-buttonColumbusView .cesium-sceneModePicker-icon2D{left:-100%}.msgapi .cesium-sceneModePicker-wrapper .cesium-sceneModePicker-button2D .cesium-sceneModePicker-icon3D{left:-100%}.msgapi .cesium-sceneModePicker-wrapper .cesium-sceneModePicker-button2D .cesium-sceneModePicker-iconColumbusView{left:100%}.msgapi .cesium-sceneModePicker-wrapper .cesium-sceneModePicker-selected{border-color:#2e2;box-shadow:0 0 8px #fff,0 0 8px #fff}.msgapi span.cesium-projectionPicker-wrapper{display:inline-block;position:relative;margin:0 3px}.msgapi .cesium-projectionPicker-visible{visibility:visible;opacity:1;transition:opacity .25s linear}.msgapi .cesium-projectionPicker-hidden{visibility:hidden;opacity:0;transition:visibility 0s .25s,opacity .25s linear}.msgapi .cesium-projectionPicker-wrapper .cesium-projectionPicker-none{display:none}.msgapi .cesium-projectionPicker-wrapper .cesium-projectionPicker-dropDown-icon{box-sizing:border-box;padding:0;margin:3px 0}.msgapi .cesium-projectionPicker-wrapper .cesium-projectionPicker-buttonOrthographic,.msgapi .cesium-projectionPicker-wrapper .cesium-projectionPicker-buttonPerspective{margin:0 0 3px 0}.msgapi .cesium-projectionPicker-wrapper .cesium-projectionPicker-buttonPerspective .cesium-projectionPicker-iconOrthographic{left:100%}.msgapi .cesium-projectionPicker-wrapper .cesium-projectionPicker-buttonOrthographic .cesium-projectionPicker-iconPerspective{left:-100%}.msgapi .cesium-projectionPicker-wrapper .cesium-projectionPicker-selected{border-color:#2e2;box-shadow:0 0 8px #fff,0 0 8px #fff}.msgapi .cesium-performance-watchdog-message-area{position:relative;background-color:#ff0;color:#000;padding:10px}.msgapi .cesium-performance-watchdog-message{margin-right:30px}.msgapi .cesium-performance-watchdog-message-dismiss{position:absolute;right:0;margin:0 10px 0 0}.msgapi .cesium-navigationHelpButton-wrapper{position:relative;display:inline-block}.msgapi .cesium-navigation-help{visibility:hidden;position:absolute;top:38px;right:2px;width:250px;border-radius:10px;transform:scale(.01);transform-origin:234px -10px;transition:visibility 0s .25s,transform .25s ease-in}.msgapi .cesium-navigation-help-visible{visibility:visible;transform:scale(1);transition:transform .25s ease-out}.msgapi .cesium-navigation-help-instructions{border:1px solid #444;background-color:rgba(38,38,38,.75);padding-bottom:5px;border-radius:0 0 10px 10px}.msgapi .cesium-click-navigation-help{display:none}.msgapi .cesium-touch-navigation-help{display:none;padding-top:5px}.msgapi .cesium-click-navigation-help-visible{display:block}.msgapi .cesium-touch-navigation-help-visible{display:block}.msgapi .cesium-navigation-help-pan{color:#6cf;font-weight:700}.msgapi .cesium-navigation-help-zoom{color:#65fd00;font-weight:700}.msgapi .cesium-navigation-help-rotate{color:#ffd800;font-weight:700}.msgapi .cesium-navigation-help-tilt{color:#d800d8;font-weight:700}.msgapi .cesium-navigation-help-details{color:#fff}.msgapi .cesium-navigation-button{color:#fff;background-color:transparent;border-bottom:none;border-top:1px solid #444;border-right:1px solid #444;margin:0;width:50%;cursor:pointer}.msgapi .cesium-navigation-button-icon{vertical-align:middle;padding:5px 1px}.msgapi .cesium-navigation-button:focus{outline:0}.msgapi .cesium-navigation-button-left{border-radius:10px 0 0 0;border-left:1px solid #444}.msgapi .cesium-navigation-button-right{border-radius:0 10px 0 0;border-left:none}.msgapi .cesium-navigation-button-selected{background-color:rgba(38,38,38,.75)}.msgapi .cesium-navigation-button-unselected{background-color:rgba(0,0,0,.75)}.msgapi .cesium-navigation-button-unselected:hover{background-color:rgba(76,76,76,.75)}.msgapi .cesium-selection-wrapper{position:absolute;width:160px;height:160px;pointer-events:none;visibility:hidden;opacity:0;transition:visibility 0s .2s,opacity .2s ease-in}.msgapi .cesium-selection-wrapper-visible{visibility:visible;opacity:1;transition:opacity .2s ease-out}.msgapi .cesium-selection-wrapper svg{fill:#2e2;stroke:#000;stroke-width:1.1px}.msgapi .cesium-timeline-main{position:relative;left:0;bottom:0;overflow:hidden;border:solid 1px #888}.msgapi .cesium-timeline-trackContainer{width:100%;overflow:auto;border-top:solid 1px #888;position:relative;top:0;left:0}.msgapi .cesium-timeline-tracks{position:absolute;top:0;left:0;width:100%}.msgapi .cesium-timeline-needle{position:absolute;left:0;top:1.7em;bottom:0;width:1px;background:red}.msgapi .cesium-timeline-bar{position:relative;left:0;top:0;overflow:hidden;cursor:pointer;width:100%;height:1.7em;background:linear-gradient(to bottom,rgba(116,117,119,.8) 0,rgba(58,68,82,.8) 11%,rgba(46,50,56,.8) 46%,rgba(53,53,53,.8) 81%,rgba(53,53,53,.8) 100%)}.msgapi .cesium-timeline-ruler{visibility:hidden;white-space:nowrap;font-size:80%;z-index:-200}.msgapi .cesium-timeline-highlight{position:absolute;bottom:0;left:0;background:#08f}.msgapi .cesium-timeline-ticLabel{position:absolute;top:0;left:0;white-space:nowrap;font-size:80%;color:#eee}.msgapi .cesium-timeline-ticMain{position:absolute;bottom:0;left:0;width:1px;height:50%;background:#eee}.msgapi .cesium-timeline-ticSub{position:absolute;bottom:0;left:0;width:1px;height:33%;background:#aaa}.msgapi .cesium-timeline-ticTiny{position:absolute;bottom:0;left:0;width:1px;height:25%;background:#888}.msgapi .cesium-timeline-icon16{display:block;position:absolute;width:16px;height:16px;background-image:url('+l+");background-repeat:no-repeat}.msgapi .cesium-viewer{font-family:sans-serif;font-size:16px;overflow:hidden;display:block;position:relative;top:0;left:0;width:100%;height:100%}.msgapi .cesium-viewer-cesiumWidgetContainer{width:100%;height:100%}.msgapi .cesium-viewer-bottom{display:block;position:absolute;bottom:0;left:0;padding-right:5px}.msgapi .cesium-viewer .cesium-widget-credits{display:inline;position:static;bottom:auto;left:auto;padding-right:0;color:#fff;font-size:10px;text-shadow:0 0 2px #000}.msgapi .cesium-viewer-timelineContainer{position:absolute;bottom:0;left:169px;right:29px;height:27px;padding:0;margin:0;overflow:hidden;font-size:14px}.msgapi .cesium-viewer-animationContainer{position:absolute;bottom:0;left:0;padding:0;width:169px;height:112px}.msgapi .cesium-viewer-fullscreenContainer{position:absolute;bottom:0;right:0;padding:0;width:29px;height:29px;overflow:hidden}.msgapi .cesium-viewer-vrContainer{position:absolute;bottom:0;right:0;padding:0;width:29px;height:29px;overflow:hidden}.msgapi .cesium-viewer-toolbar{display:block;position:absolute;top:5px;right:5px}.msgapi .cesium-viewer-cesiumInspectorContainer{display:block;position:absolute;top:50px;right:10px}.msgapi .cesium-viewer-geocoderContainer{position:relative;display:inline-block;margin:0 3px}.msgapi .cesium-viewer-cesium3DTilesInspectorContainer{display:block;position:absolute;top:50px;right:10px;max-height:calc(100% - 120px);box-sizing:border-box;overflow-y:auto;overflow-x:hidden}",""]);const p=u},861667:e=>{"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},270752:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')},250840:(e,t,n)=>{var i;!function(r,o,a,s){"use strict";var c,u=["","webkit","Moz","MS","ms","o"],l=o.createElement("div"),p=Math.round,d=Math.abs,h=Date.now;function f(e,t,n){return setTimeout(w(e,n),t)}function m(e,t,n){return!!Array.isArray(e)&&(g(e,n[t],n),!0)}function g(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(i=0;i\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,i,n),e.apply(this,arguments)}}c="function"!=typeof Object.assign?function(e){if(e===s||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n-1}function T(e){return e.trim().split(/\s+/g)}function S(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;in[t]})):i.sort()),i}function F(e,t){for(var n,i,r=t[0].toUpperCase()+t.slice(1),o=0;o1&&!n.firstMultiple?n.firstMultiple=U(t):1===r&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,c=a?a.center:o.center,u=t.center=H(i);t.timeStamp=h(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=Y(c,u),t.distance=G(c,u),function(e,t){var n=t.center,i=e.offsetDelta||{},r=e.prevDelta||{},o=e.prevInput||{};1!==t.eventType&&4!==o.eventType||(r=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=r.x+(n.x-i.x),t.deltaY=r.y+(n.y-i.y)}(n,t),t.offsetDirection=Z(t.deltaX,t.deltaY);var l,p,f=W(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=f.x,t.overallVelocityY=f.y,t.overallVelocity=d(f.x)>d(f.y)?f.x:f.y,t.scale=a?(l=a.pointers,G((p=i)[0],p[1],j)/G(l[0],l[1],j)):1,t.rotation=a?function(e,t){return Y(t[1],t[0],j)+Y(e[1],e[0],j)}(a.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,i,r,o,a=e.lastInterval||t,c=t.timeStamp-a.timeStamp;if(8!=t.eventType&&(c>25||a.velocity===s)){var u=t.deltaX-a.deltaX,l=t.deltaY-a.deltaY,p=W(c,u,l);i=p.x,r=p.y,n=d(p.x)>d(p.y)?p.x:p.y,o=Z(u,l),e.lastInterval=t}else n=a.velocity,i=a.velocityX,r=a.velocityY,o=a.direction;t.velocity=n,t.velocityX=i,t.velocityY=r,t.direction=o}(n,t);var m=e.element;A(t.srcEvent.target,m)&&(m=t.srcEvent.target),t.target=m}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function U(e){for(var t=[],n=0;n=d(t)?e<0?2:4:t<0?8:16}function G(e,t,n){n||(n=B);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return Math.sqrt(i*i+r*r)}function Y(e,t,n){n||(n=B);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return 180*Math.atan2(r,i)/Math.PI}V.prototype={handler:function(){},init:function(){this.evEl&&C(this.element,this.evEl,this.domHandler),this.evTarget&&C(this.target,this.evTarget,this.domHandler),this.evWin&&C(z(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(z(this.element),this.evWin,this.domHandler)}};var J={mousedown:1,mousemove:2,mouseup:4},X="mousedown",K="mousemove mouseup";function Q(){this.evEl=X,this.evWin=K,this.pressed=!1,V.apply(this,arguments)}k(Q,V,{handler:function(e){var t=J[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:O,srcEvent:e}))}});var ee={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},te={2:N,3:"pen",4:O,5:"kinect"},ne="pointerdown",ie="pointermove pointerup pointercancel";function re(){this.evEl=ne,this.evWin=ie,V.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(ne="MSPointerDown",ie="MSPointerMove MSPointerUp MSPointerCancel"),k(re,V,{handler:function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),r=ee[i],o=te[e.pointerType]||e.pointerType,a=o==N,s=S(t,e.pointerId,"pointerId");1&r&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):12&r&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,r,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var oe={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ae="touchstart",se="touchstart touchmove touchend touchcancel";function ce(){this.evTarget=ae,this.evWin=se,this.started=!1,V.apply(this,arguments)}function ue(e,t){var n=M(e.touches),i=M(e.changedTouches);return 12&t&&(n=L(n.concat(i),"identifier",!0)),[n,i]}k(ce,V,{handler:function(e){var t=oe[e.type];if(1===t&&(this.started=!0),this.started){var n=ue.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:N,srcEvent:e})}}});var le={touchstart:1,touchmove:2,touchend:4,touchcancel:8},pe="touchstart touchmove touchend touchcancel";function de(){this.evTarget=pe,this.targetIds={},V.apply(this,arguments)}function he(e,t){var n=M(e.touches),i=this.targetIds;if(3&t&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=M(e.changedTouches),s=[],c=this.target;if(o=n.filter((function(e){return A(e.target,c)})),1===t)for(r=0;r-1&&i.splice(e,1)}),2500)}}function be(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function i(n){t.manager.emit(n,e)}n<8&&i(t.options.event+Me(n)),i(t.options.event),e.additionalEvent&&i(e.additionalEvent),n>=8&&i(t.options.event+Me(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=Te},canEmit:function(){for(var e=0;et.threshold&&r&t.direction},attrTest:function(e){return Pe.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Le(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),k(Ie,Pe,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[_e]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),k(Re,Se,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[we]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distancet.time;if(this._input=e,!i||!n||12&e.eventType&&!r)this.reset();else if(1&e.eventType)this.reset(),this._timer=f((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return Te},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=h(),this.manager.emit(this.options.event,this._input)))}}),k(qe,Pe,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[_e]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),k(Ne,Pe,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return ze.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:24&n&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&d(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=Le(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),k(Oe,Se,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[xe]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance{!function(t,n,i){var r=Object.getOwnPropertyNames,o="object"==typeof window?Object.getOwnPropertyNames(window):[],a=Object.defineProperty,s=Function.prototype.toString,c=Object.create,u=Object.prototype.hasOwnProperty,l=/^\n?function\s?(\w*)?_?\(/;function p(e,t,n){return"function"==typeof t&&(t=d(n=t).replace(/_$/,"")),a(e,t,{configurable:!0,writable:!0,value:n})}function d(e){return"function"!=typeof e?"":"_name"in e?e._name:"name"in e?e.name:s.call(e).match(l)[1]}function h(e,t){return t._name=e,t}var f=function(){var e={value:{writable:!0,value:i}},t=c(null),n=function(){var e=Math.random().toString(36).slice(2);return e in t?n():t[e]=e},s=n();function l(){var t=n(),i={};this.unlock=function(n){var r=function(e){if(u.call(e,s))return e[s];if(!Object.isExtensible(e))throw new TypeError("Object must be extensible");var t=c(null);return a(e,s,{value:t}),t}(n);if(u.call(r,t))return r[t](i);var o=c(null,e);return a(r,t,{value:function(e){if(e===i)return o}}),o}}return p(Object,h("getOwnPropertyNames",(function(e){var t,n=Object(e);if(n!==Window.prototype&&"toString"in n&&"[object Window]"===n.toString())try{t=r(e)}catch(e){t=o}else t=r(e);return u.call(e,s)&&t.splice(t.indexOf(s),1),t}))),p(l.prototype,h("get",(function(e){return this.unlock(e).value}))),p(l.prototype,h("set",(function(e,t){this.unlock(e).value=t}))),l}(),m=function(e){var r=function(e){if(null==e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Invalid WeakMap key")},o=function(t){var n=e.unlock(t).value;if(!n)throw new TypeError("WeakMap is not generic");return n};function a(n){if(this===t||null==this||this===a.prototype)return new a(n);!function(t,n){var i=e.unlock(t);if(i.value)throw new TypeError("Object is already a WeakMap");i.value=n}(this,new f),function(e,t){null!==t&&"object"==typeof t&&"function"==typeof t.forEach&&t.forEach((function(n,i){n instanceof Array&&2===n.length&&c.call(e,t[i][0],t[i][1])}))}(this,n)}function s(e){r(e);var t=o(this).get(e);return t===n?i:t}function c(e,t){r(e),o(this).set(e,t===i?n:t)}function u(e){return r(e),o(this).get(e)!==i}function l(){return o(this),"[object WeakMap]"}s._name="get",c._name="set",u._name="has",l._name="toString";var m=(""+Object).split("Object"),g=h("toString",(function(){return m[0]+d(this)+m[1]}));p(g,g);var b={__proto__:[]}instanceof Array?function(e){e.__proto__=g}:function(e){p(e,g)};return b(a),[l,s,c,u,function(e){r(e);var t=o(this),n=t.get(e)!==i;return t.set(e,i),n}].forEach((function(e){p(a.prototype,e),b(e)})),a}(new f),g=Object.create?function(){return Object.create(null)}:function(){return{}};function b(e){var t=new m;return e||(e=g),function(n,r){return r||2===arguments.length?t.set(n,r):(r=t.get(n))===i&&(r=e(n),t.set(n,r)),r}}e.exports=m,m.createStorage=b,t.WeakMap&&(t.WeakMap.createStorage=b)}(function(){return this}())},857023:function(e,t,n){!function(t,i){"use strict";var r,o;function a(e,t){if(!e||"object"!=typeof e)throw new Error("When calling ko.track, you must pass an object as the first parameter.");return function(e){return!!e&&"object"==typeof e&&e.constructor===Object}(t)?(t.deep=t.deep||!1,t.fields=t.fields||Object.getOwnPropertyNames(e),t.lazy=t.lazy||!1,d(e,t.fields,t)):d(e,t||Object.getOwnPropertyNames(e),{}),e}var s,c,u=/^function\s*([^\s(]+)/;function l(e,t,n){var i=r.isObservable(e),o=!i&&Array.isArray(e),a=i?e:o?r.observableArray(e):r.observable(e);return n[t]=function(){return a},(o||i&&"push"in a)&&g(r,a),{configurable:!0,enumerable:!0,get:a,set:r.isWriteableObservable(a)?a:void 0}}function p(e,t,n){if(r.isObservable(e))return l(e,t,n);var i;function o(e,t){return i?t?i(e):i:Array.isArray(e)?(i=r.observableArray(e),g(r,i),i):i=r.observable(e)}return n[t]=function(){return o(e)},{configurable:!0,enumerable:!0,get:function(){return o(e)()},set:function(e){o(e,!0)}}}function d(e,t,n){if(t.length){var i=h(e,!0),r={};t.forEach((function(t){if(!(t in i)&&!1!==Object.getOwnPropertyDescriptor(e,t).configurable){var o=e[t];r[t]=(n.lazy?p:l)(o,t,i),n.deep&&function(e){return e&&"object"==typeof e&&"Object"===((t=e.constructor).name?t.name:(t.toString().trim().match(u)||[])[1]);var t}(o)&&d(o,Object.keys(o),n)}})),Object.defineProperties(e,r)}}function h(e,t){s||(s=o());var n=s.get(e);return!n&&t&&(n={},s.set(e,n)),n}function f(e,t){if(s)if(1===arguments.length)s.delete(e);else{var n=h(e,!1);n&&t.forEach((function(e){delete n[e]}))}}function m(e,t,n){var i={owner:e,deferEvaluation:!0};if("function"==typeof n)i.read=n;else{if("value"in n)throw new Error('For ko.defineProperty, you must not specify a "value" for the property. You must provide a "get" function.');if("function"!=typeof n.get)throw new Error('For ko.defineProperty, the third parameter must be either an evaluator function, or an options object containing a function called "get".');i.read=n.get,i.write=n.set}return e[t]=this.computed(i),a.call(this,e,[t]),e}function g(e,t){var n=null;e.computed((function(){n&&(n.dispose(),n=null);var i=t();i instanceof Array&&(n=function(e,t,n){return function(e,t){c||(c=o());var n=c.get(t);if(!n){n=new e.subscribable,c.set(t,n);var i={};!function(e,t,n){["pop","push","reverse","shift","sort","splice","unshift"].forEach((function(i){var r=e[i];e[i]=function(){var e=r.apply(this,arguments);return!0!==n.pause&&t.notifySubscribers(this),e}}))}(t,n,i),function(e,t,n,i){["remove","removeAll","destroy","destroyAll","replace"].forEach((function(r){Object.defineProperty(t,r,{enumerable:!1,value:function(){var o;i.pause=!0;try{o=e.observableArray.fn[r].apply(e.observableArray(t),arguments)}finally{i.pause=!1}return n.notifySubscribers(t),o}})}))}(e,t,n,i)}return n}(e,n).subscribe(t)}(e,t,i))}))}function b(e,t){if(!e||"object"!=typeof e)return null;var n=h(e,!1);return n&&t in n?n[t]():null}function v(e,t){if(!e||"object"!=typeof e)return!1;var n=h(e,!1);return!!n&&t in n}function y(e,t){var n=b(e,t);n&&n.valueHasMutated()}!function(){r=n(448527);var i=t.WeakMap||n(735335);!function(e){e.track=a,e.untrack=f,e.getObservable=b,e.valueHasMutated=y,e.defineProperty=m,e.es5={getAllObservablesForObject:h,notifyWhenPresentOrFutureArrayValuesMutate:g,isTracked:v}}(r),o=function(){return new i},e.exports=r}()}("undefined"!=typeof window?window:void 0!==n.g?n.g:this)},448527:(e,t,n)=>{var i,r,o;!function(a){var s=this||(0,eval)("this"),c=s.document,u=s.navigator,l=s.jQuery,p=s.JSON;l||"undefined"==typeof jQuery||(l=jQuery),function(a){r=[t,n],void 0===(o="function"==typeof(i=a)?i.apply(t,r):i)||(e.exports=o)}((function(e,t){function n(e,t){return(null===e||typeof e in w)&&e===t}function i(e,t){var n;return function(){n||(n=k.a.setTimeout((function(){n=a,e()}),t))}}function r(e,t){var n;return function(){clearTimeout(n),n=k.a.setTimeout(e,t)}}function o(e,t){t&&"change"!==t?"beforeChange"===t?this.pc(e):this.gb(e,t):this.qc(e)}function d(e,t){null!==t&&t.s&&t.s()}function h(e,t){var n=this.qd,i=n[A];i.ra||(this.Qb&&this.mb[t]?(n.uc(t,e,this.mb[t]),this.mb[t]=null,--this.Qb):i.I[t]||n.uc(t,e,i.J?{da:e}:n.$c(e)),e.Ja&&e.gd())}var f,m,g,b,v,y,k=void 0!==e?e:{};k.b=function(e,t){for(var n=e.split("."),i=k,r=0;rk.a.A(t,e)&&t.push(e)})),t},Mb:function(e,t,n){var i=[];if(e)for(var r=0,o=e.length;ri?n&&e.push(t):n||e.splice(i,1)},Ba:o,extend:t,setPrototypeOf:n,Ab:o?n:t,P:e,Ga:function(e,t,n){if(!e)return e;var i,o={};for(i in e)r.call(e,i)&&(o[i]=t.call(n,e[i],i,e));return o},Tb:function(e){for(;e.firstChild;)k.removeNode(e.firstChild)},Yb:function(e){for(var t=((e=k.a.la(e))[0]&&e[0].ownerDocument||c).createElement("div"),n=0,i=e.length;nb?e.setAttribute("selected",t):e.selected=t},Db:function(e){return null===e||e===a?"":e.trim?e.trim():e.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ud:function(e,t){return e=e||"",!(t.length>e.length)&&e.substring(0,t.length)===t},vd:function(e,t){if(e===t)return!0;if(11===e.nodeType)return!1;if(t.contains)return t.contains(1!==e.nodeType?e.parentNode:e);if(t.compareDocumentPosition)return 16==(16&t.compareDocumentPosition(e));for(;e&&e!=t;)e=e.parentNode;return!!e},Sb:function(e){return k.a.vd(e,e.ownerDocument.documentElement)},kd:function(e){return!!k.a.Lb(e,k.a.Sb)},R:function(e){return e&&e.tagName&&e.tagName.toLowerCase()},Ac:function(e){return k.onError?function(){try{return e.apply(this,arguments)}catch(e){throw k.onError&&k.onError(e),e}}:e},setTimeout:function(e,t){return setTimeout(k.a.Ac(e),t)},Gc:function(e){setTimeout((function(){throw k.onError&&k.onError(e),e}),0)},B:function(e,t,n){var i=k.a.Ac(n);if(n=g[t],k.options.useOnlyNativeEvents||n||!l)if(n||"function"!=typeof e.addEventListener){if(void 0===e.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");var r=function(t){i.call(e,t)},o="on"+t;e.attachEvent(o,r),k.a.K.za(e,(function(){e.detachEvent(o,r)}))}else e.addEventListener(t,i,!1);else m||(m="function"==typeof l(e).on?"on":"bind"),l(e)[m](t,i)},Fb:function(e,t){if(!e||!e.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var n;if(n=!("input"!==k.a.R(e)||!e.type||"click"!=t.toLowerCase()||"checkbox"!=(n=e.type)&&"radio"!=n),k.options.useOnlyNativeEvents||!l||n)if("function"==typeof c.createEvent){if("function"!=typeof e.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");(n=c.createEvent(f[t]||"HTMLEvents")).initEvent(t,!0,!0,s,0,0,0,0,0,!1,!1,!1,!1,0,e),e.dispatchEvent(n)}else if(n&&e.click)e.click();else{if(void 0===e.fireEvent)throw Error("Browser doesn't support triggering events");e.fireEvent("on"+t)}else l(e).trigger(t)},f:function(e){return k.O(e)?e():e},bc:function(e){return k.O(e)?e.v():e},Eb:function(e,t,n){var r;t&&("object"==typeof e.classList?(r=e.classList[n?"add":"remove"],k.a.D(t.match(v),(function(t){r.call(e.classList,t)}))):"string"==typeof e.className.baseVal?i(e.className,"baseVal",t,n):i(e,"className",t,n))},Bb:function(e,t){var n=k.a.f(t);null!==n&&n!==a||(n="");var i=k.h.firstChild(e);!i||3!=i.nodeType||k.h.nextSibling(i)?k.h.va(e,[e.ownerDocument.createTextNode(n)]):i.data=n,k.a.Ad(e)},Yc:function(e,t){if(e.name=t,7>=b)try{var n=e.name.replace(/[&<>'"]/g,(function(e){return"&#"+e.charCodeAt(0)+";"}));e.mergeAttributes(c.createElement(""),!1)}catch(e){}},Ad:function(e){9<=b&&(e=1==e.nodeType?e:e.parentNode).style&&(e.style.zoom=e.style.zoom)},wd:function(e){if(b){var t=e.style.width;e.style.width=0,e.style.width=t}},Pd:function(e,t){e=k.a.f(e),t=k.a.f(t);for(var n=[],i=e;i<=t;i++)n.push(i);return n},la:function(e){for(var t=[],n=0,i=e.length;n",""],tbody:m,tfoot:m,tr:[2,"","
"],td:g=[3,"","
"],th:g,option:b=[1,""],optgroup:b},y=8>=k.a.W,k.a.ua=function(e,t){var n;if(l){if(l.parseHTML)n=l.parseHTML(e,t)||[];else if((n=l.clean([e],t))&&n[0]){for(var i=n[0];i.parentNode&&11!==i.parentNode.nodeType;)i=i.parentNode;i.parentNode&&i.parentNode.removeChild(i)}}else{(n=t)||(n=c),i=n.parentWindow||n.defaultView||s;var r,o=k.a.Db(e).toLowerCase(),a=n.createElement("div");for(r=(o=o.match(/^(?:\x3c!--.*?--\x3e\s*?)*?<([a-z]+)[\s>]/))&&v[o[1]]||f,o=r[0],r="ignored
"+r[1]+e+r[2]+"
","function"==typeof i.innerShiv?a.appendChild(i.innerShiv(r)):(y&&n.body.appendChild(a),a.innerHTML=r,y&&a.parentNode.removeChild(a));o--;)a=a.lastChild;n=k.a.la(a.lastChild.childNodes)}return n},k.a.Md=function(e,t){var n=k.a.ua(e,t);return n.length&&n[0].parentElement||k.a.Yb(n)},k.a.fc=function(e,t){if(k.a.Tb(e),null!==(t=k.a.f(t))&&t!==a)if("string"!=typeof t&&(t=t.toString()),l)l(e).html(t);else for(var n=k.a.ua(t,e.ownerDocument),i=0;it){if(5e3<=++n){a=r,k.a.Gc(Error("'Too much recursion' after processing "+n+" task groups."));break}t=r}try{e()}catch(e){k.a.Gc(e)}}}function t(){e(),a=r=i.length=0}var n,i=[],r=0,o=1,a=0;return n=s.MutationObserver?function(e){var t=c.createElement("div");return new MutationObserver(e).observe(t,{attributes:!0}),function(){t.classList.toggle("foo")}}(t):c&&"onreadystatechange"in c.createElement("script")?function(e){var t=c.createElement("script");t.onreadystatechange=function(){t.onreadystatechange=null,c.documentElement.removeChild(t),t=null,e()},c.documentElement.appendChild(t)}:function(e){setTimeout(e,0)},{scheduler:n,zb:function(e){return r||k.na.scheduler(t),i[r++]=e,o++},cancel:function(e){(e-=o-r)>=a&&en[0]?o+n[0]:n[0]),o),o=1===a?o:Math.min(t+(n[1]||0),o),a=t+a-2,l=Math.max(o,a);for(var p=[],d=[],h=2;tt;t++)e=e();return e}))},k.toJSON=function(e,t,n){return e=k.ad(e),k.a.hc(e,t,n)},t.prototype={constructor:t,save:function(e,t){var n=k.a.A(this.keys,e);0<=n?this.values[n]=t:(this.keys.push(e),this.values.push(t))},get:function(e){return 0<=(e=k.a.A(this.keys,e))?this.values[e]:a}}}(),k.b("toJS",k.ad),k.b("toJSON",k.toJSON),k.Wd=function(e,t,n){function i(t){var i=k.xb(e,n).extend({ma:"always"}),r=i.subscribe((function(e){e&&(r.s(),t(e))}));return i.notifySubscribers(i.v()),r}return"function"!=typeof Promise||t?i(t.bind(n)):new Promise(i)},k.b("when",k.Wd),k.w={M:function(e){switch(k.a.R(e)){case"option":return!0===e.__ko__hasDomDataOptionValue__?k.a.g.get(e,k.c.options.$b):7>=k.a.W?e.getAttributeNode("value")&&e.getAttributeNode("value").specified?e.value:e.text:e.value;case"select":return 0<=e.selectedIndex?k.w.M(e.options[e.selectedIndex]):a;default:return e.value}},cb:function(e,t,n){switch(k.a.R(e)){case"option":"string"==typeof t?(k.a.g.set(e,k.c.options.$b,a),"__ko__hasDomDataOptionValue__"in e&&delete e.__ko__hasDomDataOptionValue__,e.value=t):(k.a.g.set(e,k.c.options.$b,t),e.__ko__hasDomDataOptionValue__=!0,e.value="number"==typeof t?t:"");break;case"select":""!==t&&null!==t||(t=a);for(var i,r=-1,o=0,s=e.options.length;o=c){n.push(t&&s.length?{key:t,value:s.join("")}:{unknown:t||s.join("")}),t=c=0,s=[];continue}}else if(58===p){if(!c&&!t&&1===s.length){t=s.pop();continue}}else{if(47===p&&1arguments.length){if(!(t=c.body))throw Error("ko.applyBindings: could not find document.body; has the document been loaded?")}else if(!t||1!==t.nodeType&&8!==t.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");d(f(e,n),t)},k.Dc=function(e){return!e||1!==e.nodeType&&8!==e.nodeType?a:k.Td(e)},k.Ec=function(e){return(e=k.Dc(e))?e.$data:a},k.b("bindingHandlers",k.c),k.b("bindingEvent",k.i),k.b("bindingEvent.subscribe",k.i.subscribe),k.b("bindingEvent.startPossiblyAsyncContentBinding",k.i.Cb),k.b("applyBindings",k.vc),k.b("applyBindingsToDescendants",k.Oa),k.b("applyBindingAccessorsToNode",k.ib),k.b("applyBindingsToNode",k.ld),k.b("contextFor",k.Dc),k.b("dataFor",k.Ec)}(),function(e){function t(t,i){var a,s=Object.prototype.hasOwnProperty.call(r,t)?r[t]:e;s?s.subscribe(i):((s=r[t]=new k.T).subscribe(i),n(t,(function(e,n){var i=!(!n||!n.synchronous);o[t]={definition:e,Gd:i},delete r[t],a||i?s.notifySubscribers(e):k.na.zb((function(){s.notifySubscribers(e)}))})),a=!0)}function n(e,t){i("getConfig",[e],(function(n){n?i("loadComponent",[e,n],(function(e){t(e,n)})):t(null,null)}))}function i(t,n,r,o){o||(o=k.j.loaders.slice(0));var a=o.shift();if(a){var s=a[t];if(s){var c=!1;if(s.apply(a,n.concat((function(e){c?r(null):null!==e?r(e):i(t,n,r,o)})))!==e&&(c=!0,!a.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else i(t,n,r,o)}else r(null)}var r={},o={};k.j={get:function(n,i){var r=Object.prototype.hasOwnProperty.call(o,n)?o[n]:e;r?r.Gd?k.u.G((function(){i(r.definition)})):k.na.zb((function(){i(r.definition)})):t(n,i)},Bc:function(e){delete o[e]},oc:i},k.j.loaders=[],k.b("components",k.j),k.b("components.get",k.j.get),k.b("components.clearCachedDefinition",k.j.Bc)}(),function(){function e(e,t,n,i){function r(){0==--s&&i(a)}var a={},s=2,c=n.template;n=n.viewModel,c?o(t,c,(function(t){k.j.oc("loadTemplate",[e,t],(function(e){a.template=e,r()}))})):r(),n?o(t,n,(function(t){k.j.oc("loadViewModel",[e,t],(function(e){a[l]=e,r()}))})):r()}function n(e,t,i){if("function"==typeof t)i((function(e){return new t(e)}));else if("function"==typeof t[l])i(t[l]);else if("instance"in t){var r=t.instance;i((function(){return r}))}else"viewModel"in t?n(e,t.viewModel,i):e("Unknown viewModel value: "+t)}function i(e){switch(k.a.R(e)){case"script":return k.a.ua(e.text);case"textarea":return k.a.ua(e.value);case"template":if(r(e.content))return k.a.Ca(e.content.childNodes)}return k.a.Ca(e.childNodes)}function r(e){return s.DocumentFragment?e instanceof DocumentFragment:e&&11===e.nodeType}function o(e,n,i){"string"==typeof n.require?t||s.require?(t||s.require)([n.require],(function(e){e&&"object"==typeof e&&e.Xd&&e.default&&(e=e.default),i(e)})):e("Uses require, but no AMD loader is present"):i(n)}function a(e){return function(t){throw Error("Component '"+e+"': "+t)}}var u={};k.j.register=function(e,t){if(!t)throw Error("Invalid configuration for "+e);if(k.j.tb(e))throw Error("Component "+e+" is already registered");u[e]=t},k.j.tb=function(e){return Object.prototype.hasOwnProperty.call(u,e)},k.j.unregister=function(e){delete u[e],k.j.Bc(e)},k.j.Fc={getConfig:function(e,t){t(k.j.tb(e)?u[e]:null)},loadComponent:function(t,n,i){var r=a(t);o(r,n,(function(n){e(t,r,n,i)}))},loadTemplate:function(e,t,n){if(e=a(e),"string"==typeof t)n(k.a.ua(t));else if(t instanceof Array)n(t);else if(r(t))n(k.a.la(t.childNodes));else if(t.element)if(t=t.element,s.HTMLElement?t instanceof HTMLElement:t&&t.tagName&&1===t.nodeType)n(i(t));else if("string"==typeof t){var o=c.getElementById(t);o?n(i(o)):e("Cannot find element with ID "+t)}else e("Unknown element type: "+t);else e("Unknown template value: "+t)},loadViewModel:function(e,t,i){n(a(e),t,i)}};var l="createViewModel";k.b("components.register",k.j.register),k.b("components.isRegistered",k.j.tb),k.b("components.unregister",k.j.unregister),k.b("components.defaultLoader",k.j.Fc),k.j.loaders.push(k.j.Fc),k.j.dd=u}(),function(){function e(e,n){if(i=e.getAttribute("params")){var i=t.parseBindingsString(i,n,e,{valueAccessors:!0,bindingParams:!0}),r=(i=k.a.Ga(i,(function(t){return k.o(t,null,{l:e})})),k.a.Ga(i,(function(t){var n=t.v();return t.ja()?k.o({read:function(){return k.a.f(t())},write:k.Za(n)&&function(e){t()(e)},l:e}):n})));return Object.prototype.hasOwnProperty.call(r,"$raw")||(r.$raw=i),r}return{$raw:{}}}k.j.getComponentNameForNode=function(e){var t=k.a.R(e);if(k.j.tb(t)&&(-1!=t.indexOf("-")||"[object HTMLUnknownElement]"==""+e||8>=k.a.W&&e.tagName===t))return t},k.j.tc=function(t,n,i,r){if(1===n.nodeType){var o=k.j.getComponentNameForNode(n);if(o){if((t=t||{}).component)throw Error('Cannot use the "component" binding on a custom element matching a component');var a={name:o,params:e(n,i)};t.component=r?function(){return a}:a}}return t};var t=new k.ga;9>k.a.W&&(k.j.register=function(e){return function(t){return e.apply(this,arguments)}}(k.j.register),c.createDocumentFragment=function(e){return function(){var t,n=e(),i=k.j.dd;for(t in i);return n}}(c.createDocumentFragment))}(),function(){var e=0;k.c.component={init:function(t,n,i,r,o){function a(){var e=s&&s.dispose;"function"==typeof e&&e.call(s),u&&u.s(),c=s=u=null}var s,c,u,l=k.a.la(k.h.childNodes(t));return k.h.Ea(t),k.a.K.za(t,a),k.o((function(){var i,r,p=k.a.f(n());if("string"==typeof p?i=p:(i=k.a.f(p.name),r=k.a.f(p.params)),!i)throw Error("No component name specified");var d=k.i.Cb(t,o),h=c=++e;k.j.get(i,(function(e){if(c===h){if(a(),!e)throw Error("Unknown component '"+i+"'");!function(e,t,n){if(!(t=t.template))throw Error("Component '"+e+"' has no template");e=k.a.Ca(t),k.h.va(n,e)}(i,e,t);var n=function(e,t,n){var i=e.createViewModel;return i?i.call(e,t,n):t}(e,r,{element:t,templateNodes:l});e=d.createChildContext(n,{extend:function(e){e.$component=n,e.$componentTemplateNodes=l}}),n&&n.koDescendantsComplete&&(u=k.i.subscribe(t,k.i.pa,n.koDescendantsComplete,n)),s=n,k.Oa(e,t)}}))}),null,{l:t}),{controlsDescendantBindings:!0}}},k.h.ea.component=!0}();var L={class:"className",for:"htmlFor"};k.c.attr={update:function(e,t){var n=k.a.f(t())||{};k.a.P(n,(function(t,n){n=k.a.f(n);var i=t.indexOf(":"),r=(i="lookupNamespaceURI"in e&&0=k.a.W&&t in L?(t=L[t],r?e.removeAttribute(t):e[t]=n):r||(i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)),"name"===t&&k.a.Yc(e,r?"":n)}))}},k.c.checked={after:["value","attr"],init:function(e,t,n){function i(){var i=e.checked,c=r();if(!k.S.Ya()&&(i||!s&&!k.S.qa())){var p=k.u.G(t);if(u){var h=l?p.v():p,f=d;d=c,f!==c?i&&(k.a.Na(h,c,!0),k.a.Na(h,f,!1)):k.a.Na(h,c,i),l&&k.Za(p)&&p(h)}else o&&(c===a?c=i:i||(c=a)),k.m.eb(p,n,"checked",c,!0)}}var r=k.xb((function(){return n.has("checkedValue")?k.a.f(n.get("checkedValue")):p?n.has("value")?k.a.f(n.get("value")):e.value:void 0})),o="checkbox"==e.type,s="radio"==e.type;if(o||s){var c=t(),u=o&&k.a.f(c)instanceof Array,l=!(u&&c.push&&c.splice),p=s||u,d=u?r():a;s&&!e.name&&k.c.uniqueName.init(e,(function(){return!0})),k.o(i,null,{l:e}),k.a.B(e,"click",i),k.o((function(){var n=k.a.f(t()),i=r();u?(e.checked=0<=k.a.A(n,i),d=i):e.checked=o&&i===a?!!n:r()===n}),null,{l:e}),c=a}}},k.m.wa.checked=!0,k.c.checkedValue={update:function(e,t){e.value=k.a.f(t())}},k.c.class={update:function(e,t){var n=k.a.Db(k.a.f(t()));k.a.Eb(e,e.__ko__cssValue,!1),e.__ko__cssValue=n,k.a.Eb(e,n,!0)}},k.c.css={update:function(e,t){var n=k.a.f(t());null!==n&&"object"==typeof n?k.a.P(n,(function(t,n){n=k.a.f(n),k.a.Eb(e,t,n)})):k.c.class.update(e,t)}},k.c.enable={update:function(e,t){var n=k.a.f(t());n&&e.disabled?e.removeAttribute("disabled"):n||e.disabled||(e.disabled=!0)}},k.c.disable={update:function(e,t){k.c.enable.update(e,(function(){return!k.a.f(t())}))}},k.c.event={init:function(e,t,n,i,r){var o=t()||{};k.a.P(o,(function(o){"string"==typeof o&&k.a.B(e,o,(function(e){var a,s=t()[o];if(s){try{var c=k.a.la(arguments);i=r.$data,c.unshift(i),a=s.apply(i,c)}finally{!0!==a&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}!1===n.get(o+"Bubble")&&(e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}}))}))}},k.c.foreach={Rc:function(e){return function(){var t=e(),n=k.a.bc(t);return n&&"number"!=typeof n.length?(k.a.f(t),{foreach:n.data,as:n.as,noChildContext:n.noChildContext,includeDestroyed:n.includeDestroyed,afterAdd:n.afterAdd,beforeRemove:n.beforeRemove,afterRender:n.afterRender,beforeMove:n.beforeMove,afterMove:n.afterMove,templateEngine:k.ba.Ma}):{foreach:t,templateEngine:k.ba.Ma}}},init:function(e,t){return k.c.template.init(e,k.c.foreach.Rc(t))},update:function(e,t,n,i,r){return k.c.template.update(e,k.c.foreach.Rc(t),n,i,r)}},k.m.Ra.foreach=!1,k.h.ea.foreach=!0,k.c.hasfocus={init:function(e,t,n){function i(i){e.__ko_hasfocusUpdating=!0;var r=e.ownerDocument;if("activeElement"in r){var o;try{o=r.activeElement}catch(e){o=r.body}i=o===e}r=t(),k.m.eb(r,n,"hasfocus",i,!0),e.__ko_hasfocusLastValue=i,e.__ko_hasfocusUpdating=!1}var r=i.bind(null,!0),o=i.bind(null,!1);k.a.B(e,"focus",r),k.a.B(e,"focusin",r),k.a.B(e,"blur",o),k.a.B(e,"focusout",o),e.__ko_hasfocusLastValue=!1},update:function(e,t){var n=!!k.a.f(t());e.__ko_hasfocusUpdating||e.__ko_hasfocusLastValue===n||(n?e.focus():e.blur(),!n&&e.__ko_hasfocusLastValue&&e.ownerDocument.body.focus(),k.u.G(k.a.Fb,null,[e,n?"focusin":"focusout"]))}},k.m.wa.hasfocus=!0,k.c.hasFocus=k.c.hasfocus,k.m.wa.hasFocus="hasfocus",k.c.html={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){k.a.fc(e,t())}},function(){function e(e,t,n){k.c[e]={init:function(e,i,r,o,a){var s,c,u,l,p,d={};if(t){o=r.get("as");var h=r.get("noChildContext");d={as:o,noChildContext:h,exportDependencies:p=!(o&&h)}}return l=(u="render"==r.get("completeOn"))||r.has(k.i.pa),k.o((function(){var r,o=k.a.f(i()),h=!n!=!o,f=!c;(p||h!==s)&&(l&&(a=k.i.Cb(e,a)),h&&(t&&!p||(d.dataDependency=k.S.o()),r=t?a.createChildContext("function"==typeof o?o:i,d):k.S.qa()?a.extend(null,d):a),f&&k.S.qa()&&(c=k.a.Ca(k.h.childNodes(e),!0)),h?(f||k.h.va(e,k.a.Ca(c)),k.Oa(r,e)):(k.h.Ea(e),u||k.i.ma(e,k.i.H)),s=h)}),null,{l:e}),{controlsDescendantBindings:!0}}},k.m.Ra[e]=!1,k.h.ea[e]=!0}e("if"),e("ifnot",!1,!0),e("with",!0)}(),k.c.let={init:function(e,t,n,i,r){return t=r.extend(t),k.Oa(t,e),{controlsDescendantBindings:!0}}},k.h.ea.let=!0;var F={};k.c.options={init:function(e){if("select"!==k.a.R(e))throw Error("options binding applies only to SELECT elements");for(;0i)var u=k.a.g.Z(),l=k.a.g.Z(),p=function(e){var t=this.activeElement;(t=t&&k.a.g.get(t,l))&&t(e)},d=function(e,t){var n=e.ownerDocument;k.a.g.get(n,u)||(k.a.g.set(n,u,!0),k.a.B(n,"selectionchange",p)),k.a.g.set(e,l,t)};k.c.textInput={init:function(o,s,c){function u(e,t){k.a.B(o,e,t)}function l(){h||(f=o.value,h=k.a.setTimeout(p,4))}function p(){clearTimeout(h),f=h=a;var e=o.value;m!==e&&(m=e,k.m.eb(s(),c,"textInput",e))}var h,f,m=o.value,g=9==k.a.W?l:p,b=!1;i&&u("keypress",p),11>i&&u("propertychange",(function(e){b||"value"!==e.propertyName||g(e)})),8==i&&(u("keyup",p),u("keydown",p)),d&&(d(o,g),u("dragend",l)),(!i||9<=i)&&u("input",g),5>t&&"textarea"===k.a.R(o)?(u("keydown",l),u("paste",l),u("cut",l)):11>e?u("keydown",l):4>n?(u("DOMAutoComplete",p),u("dragdrop",p),u("drop",p)):r&&"number"===o.type&&u("keydown",l),u("change",p),u("blur",p),k.o((function e(){var t=k.a.f(s());null!==t&&t!==a||(t=""),f!==a&&t===f?k.a.setTimeout(e,4):o.value!==t&&(b=!0,o.value=t,b=!1,m=o.value)}),null,{l:o})}},k.m.wa.textInput=!0,k.c.textinput={preprocess:function(e,t,n){n("textInput",e)}}}(),k.c.uniqueName={init:function(e,t){if(t()){var n="ko_unique_"+ ++k.c.uniqueName.rd;k.a.Yc(e,n)}}},k.c.uniqueName.rd=0,k.c.using={init:function(e,t,n,i,r){var o;return n.has("as")&&(o={as:n.get("as"),noChildContext:n.get("noChildContext")}),t=r.createChildContext(t,o),k.Oa(t,e),{controlsDescendantBindings:!0}}},k.h.ea.using=!0,k.c.value={init:function(e,t,n){var i=k.a.R(e),r="input"==i;if(!r||"checkbox"!=e.type&&"radio"!=e.type){var o=[],s=n.get("valueUpdate"),c=!1,u=null;s&&(o="string"==typeof s?[s]:k.a.wc(s),k.a.Pa(o,"change"));var l,p,d=function(){u=null,c=!1;var i=t(),r=k.w.M(e);k.m.eb(i,n,"value",r)};!k.a.W||!r||"text"!=e.type||"off"==e.autocomplete||e.form&&"off"==e.form.autocomplete||-1!=k.a.A(o,"propertychange")||(k.a.B(e,"propertychange",(function(){c=!0})),k.a.B(e,"focus",(function(){c=!1})),k.a.B(e,"blur",(function(){c&&d()}))),k.a.D(o,(function(t){var n=d;k.a.Ud(t,"after")&&(n=function(){u=k.w.M(e),k.a.setTimeout(d,0)},t=t.substring(5)),k.a.B(e,t,n)})),l=r&&"file"==e.type?function(){var n=k.a.f(t());null===n||n===a||""===n?e.value="":k.u.G(d)}:function(){var r=k.a.f(t()),o=k.w.M(e);null!==u&&r===u?k.a.setTimeout(l,0):r===o&&o!==a||("select"===i?(o=n.get("valueAllowUnset"),k.w.cb(e,r,o),o||r===k.w.M(e)||k.u.G(d)):k.w.cb(e,r))},"select"===i?k.i.subscribe(e,k.i.H,(function(){p?n.get("valueAllowUnset")?l():d():(k.a.B(e,"change",d),p=k.o(l,null,{l:e}))}),null,{notifyImmediately:!0}):(k.a.B(e,"change",d),k.o(l,null,{l:e}))}else k.ib(e,{checkedValue:t})},update:function(){}},k.m.wa.value=!0,k.c.visible={update:function(e,t){var n=k.a.f(t()),i="none"!=e.style.display;n&&!i?e.style.display="":!n&&i&&(e.style.display="none")}},k.c.hidden={update:function(e,t){k.c.visible.update(e,(function(){return!k.a.f(t())}))}},function(e){k.c[e]={init:function(t,n,i,r,o){return k.c.event.init.call(this,t,(function(){var t={};return t[e]=n(),t}),i,r,o)}}}("click"),k.ca=function(){},k.ca.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource")},k.ca.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock")},k.ca.prototype.makeTemplateSource=function(e,t){if("string"==typeof e){var n=(t=t||c).getElementById(e);if(!n)throw Error("Cannot find template with ID "+e);return new k.C.F(n)}if(1==e.nodeType||8==e.nodeType)return new k.C.ia(e);throw Error("Unknown template type: "+e)},k.ca.prototype.renderTemplate=function(e,t,n,i){return e=this.makeTemplateSource(e,i),this.renderTemplateSource(e,t,n,i)},k.ca.prototype.isTemplateRewritten=function(e,t){return!1===this.allowTemplateRewriting||this.makeTemplateSource(e,t).data("isRewritten")},k.ca.prototype.rewriteTemplate=function(e,t,n){t=t((e=this.makeTemplateSource(e,n)).text()),e.text(t),e.data("isRewritten",!0)},k.b("templateEngine",k.ca),k.kc=function(){function e(e,t,n,i){e=k.m.ac(e);for(var r=k.m.Ra,o=0;o]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,n=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{xd:function(e,t,n){t.isTemplateRewritten(e,n)||t.rewriteTemplate(e,(function(e){return k.kc.Ld(e,t)}),n)},Ld:function(i,r){return i.replace(t,(function(t,n,i,o,a){return e(a,n,i,r)})).replace(n,(function(t,n){return e(n,"\x3c!-- ko --\x3e","#comment",r)}))},md:function(e,t){return k.aa.Xb((function(n,i){var r=n.nextSibling;r&&r.nodeName.toLowerCase()===t&&k.ib(r,e,i)}))}}}(),k.b("__tr_ambtns",k.kc.md),function(){k.C={},k.C.F=function(e){if(this.F=e){var t=k.a.R(e);this.ab="script"===t?1:"textarea"===t?2:"template"==t&&e.content&&11===e.content.nodeType?3:4}},k.C.F.prototype.text=function(){var e=1===this.ab?"text":2===this.ab?"value":"innerHTML";if(0==arguments.length)return this.F[e];var t=arguments[0];"innerHTML"===e?k.a.fc(this.F,t):this.F[e]=t};var e=k.a.g.Z()+"_";k.C.F.prototype.data=function(t){if(1===arguments.length)return k.a.g.get(this.F,e+t);k.a.g.set(this.F,e+t,arguments[1])};var t=k.a.g.Z();k.C.F.prototype.nodes=function(){var e=this.F;if(0==arguments.length){var n=k.a.g.get(e,t)||{},i=n.lb||(3===this.ab?e.content:4===this.ab?e:a);if(!i||n.jd){var r=this.text();r&&r!==n.bb&&(i=k.a.Md(r,e.ownerDocument),k.a.g.set(e,t,{lb:i,bb:r,jd:!0}))}return i}n=arguments[0],this.ab!==a&&this.text(""),k.a.g.set(e,t,{lb:n})},k.C.ia=function(e){this.F=e},k.C.ia.prototype=new k.C.F,k.C.ia.prototype.constructor=k.C.ia,k.C.ia.prototype.text=function(){if(0==arguments.length){var e=k.a.g.get(this.F,t)||{};return e.bb===a&&e.lb&&(e.bb=e.lb.innerHTML),e.bb}k.a.g.set(this.F,t,{bb:arguments[0]})},k.b("templateSources",k.C),k.b("templateSources.domElement",k.C.F),k.b("templateSources.anonymousTemplate",k.C.ia)}(),function(){function e(e,t,n){var i;for(t=k.h.nextSibling(t);e&&(i=e)!==t;)n(i,e=k.h.nextSibling(i))}function t(t,n){if(t.length){var i=t[0],r=t[t.length-1],o=i.parentNode,a=k.ga.instance,s=a.preprocessNode;if(s){if(e(i,r,(function(e,t){var n=e.previousSibling,o=s.call(a,e);o&&(e===i&&(i=o[0]||t),e===r&&(r=o[o.length-1]||n))})),t.length=0,!i)return;i===r?t.push(i):(t.push(i,r),k.a.Ua(t,o))}e(i,r,(function(e){1!==e.nodeType&&8!==e.nodeType||k.vc(n,e)})),e(i,r,(function(e){1!==e.nodeType&&8!==e.nodeType||k.aa.cd(e,[n])})),k.a.Ua(t,o)}}function n(e){return e.nodeType?e:0k.a.W||!e.nodes?null:e.nodes())?k.a.la(t.cloneNode(!0).childNodes):(e=e.text(),k.a.ua(e,i))},k.ba.Ma=new k.ba,k.gc(k.ba.Ma),k.b("nativeTemplateEngine",k.ba),function(){k.$a=function(){var e=this.Hd=function(){if(!l||!l.tmpl)return 0;try{if(0<=l.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(e){}return 1}();this.renderTemplateSource=function(t,n,i,r){if(r=r||c,i=i||{},2>e)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var o=t.data("precompiled");return o||(o=t.text()||"",o=l.template(null,"{{ko_with $item.koBindingContext}}"+o+"{{/ko_with}}"),t.data("precompiled",o)),t=[n.$data],n=l.extend({koBindingContext:n},i.templateOptions),(n=l.tmpl(o,t,n)).appendTo(r.createElement("div")),l.fragments={},n},this.createJavaScriptEvaluatorBlock=function(e){return"{{ko_code ((function() { return "+e+" })()) }}"},this.addTemplate=function(e,t){c.write("