PageSourceSearch

https://liser-app.vercel.app/_next/static/chunks/7397-989b83cf970cdd49.js

js liser-app.vercel.app collected 2026-10-03 07:14:41 UTC 68,388 bytes, 22 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7397],{80241:function(t,e){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */e.read=function(t,e,i,s,r){var n,o,a=8*r-s-1,h=(1<<a)-1,l=h>>1,u=-7,c=i?r-1:0,d=i?-1:1,f=t[e+c];for(c+=d,n=f&(1<<-u)-1,f>>=-u,u+=a;u>0;n=256*n+t[e+c],c+=d,u-=8);for(o=n&(1<<-u)-1,n>>=-u,u+=s;u>0;o=256*o+t[e+c],c+=d,u-=8);if(0===n)n=1-l;else{if(n===h)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,s),n-=l}return(f?-1:1)*o*Math.pow(2,n-s)},e.write=function(t,e,i,s,r,n){var o,a,h,l=8*n-r-1,u=(1<<l)-1,c=u>>1,d=23===r?5960464477539062e-23:0,f=s?0:n-1,p=s?1:-1,m=e<0||0===e&&1/e<0?1:0;for(isNaN(e=Math.abs(e))||e===1/0?(a=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(h=Math.pow(2,-o))<1&&(o--,h*=2),o+c>=1?e+=d/h:e+=d*Math.pow(2,1-c),e*h>=2&&(o++,h/=2),o+c>=u?(a=0,o=u):o+c>=1?(a=(e*h-1)*Math.pow(2,r),o+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,r),o=0));r>=8;t[i+f]=255&a,f+=p,a/=256,r-=8);for(o=o<<r|a,l+=r;l>0;t[i+f]=255&o,f+=p,o/=256,l-=8);t[i+f-p]|=128*m}},66797:function(t,e,i){"use strict";t.exports=r;var s=i(80241);function r(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}r.Varint=0,r.Fixed64=1,r.Bytes=2,r.Fixed32=5;var n="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function o(t){return t.type===r.Bytes?t.readVarint()+t.pos:t.pos+1}function a(t,e,i){var s=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));i.realloc(s);for(var r=i.pos-1;r>=t;r--)i.buf[r+s]=i.buf[r]}function h(t,e){for(var i=0;i<t.length;i++)e.writeVarint(t[i])}function l(t,e){for(var i=0;i<t.length;i++)e.writeSVarint(t[i])}function u(t,e){for(var i=0;i<t.length;i++)e.writeFloat(t[i])}function c(t,e){for(var i=0;i<t.length;i++)e.writeDouble(t[i])}function d(t,e){for(var i=0;i<t.length;i++)e.writeBoolean(t[i])}function f(t,e){for(var i=0;i<t.length;i++)e.writeFixed32(t[i])}function p(t,e){for(var i=0;i<t.length;i++)e.writeSFixed32(t[i])}function m(t,e){for(var i=0;i<t.length;i++)e.writeFixed64(t[i])}function g(t,e){for(var i=0;i<t.length;i++)e.writeSFixed64(t[i])}function y(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function b(t,e,i){t[i]=e,t[i+1]=e>>>8,t[i+2]=e>>>16,t[i+3]=e>>>24}function _(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}r.prototype={destroy:function(){this.buf=null},readFields:function(t,e,i){for(i=i||this.length;this.pos<i;){var s=this.readVarint(),r=s>>3,n=this.pos;this.type=7&s,t(r,e,this),this.pos===n&&this.skip(s)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=y(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=_(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=y(this.buf,this.pos)+4294967296*y(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=y(this.buf,this.pos)+4294967296*_(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=s.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=s.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,i,s=this.buf;return(e=127&(i=s[this.pos++]),i<128)?e:(e|=(127&(i=s[this.pos++]))<<7,i<128)?e:(e|=(127&(i=s[this.pos++]))<<14,i<128)?e:(e|=(127&(i=s[this.pos++]))<<21,i<128)?e:function(t,e,i){var s,r,n,o,a=i.buf;if(n=(112&(o=a[i.pos++]))>>4,o<128||(n|=(127&(o=a[i.pos++]))<<3,o<128)||(n|=(127&(o=a[i.pos++]))<<10,o<128)||(n|=(127&(o=a[i.pos++]))<<17,o<128)||(n|=(127&(o=a[i.pos++]))<<24,o<128)||(n|=(1&(o=a[i.pos++]))<<31,o<128)){return s=t,r=n,e?4294967296*r+(s>>>0):(r>>>0)*4294967296+(s>>>0)}throw Error("Expected varint not more than 10 bytes")}(e|=(15&(i=s[this.pos]))<<28,t,this)},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?-((t+1)/2):t/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var t,e=this.readVarint()+this.pos,i=this.pos;return(this.pos=e,e-i>
1=12&&n)?(t=this.buf,n.decode(t.subarray(i,e))):function(t,e,i){for(var s="",r=e;r<i;){var n,o,a,h=t[r],l=null,u=h>239?4:h>223?3:h>191?2:1;if(r+u>i)break;1===u?h<128&&(l=h):2===u?(192&(n=t[r+1]))==128&&(l=(31&h)<<6|63&n)<=127&&(l=null):3===u?(n=t[r+1],o=t[r+2],(192&n)==128&&(192&o)==128&&((l=(15&h)<<12|(63&n)<<6|63&o)<=2047||l>=55296&&l<=57343)&&(l=null)):4===u&&(n=t[r+1],o=t[r+2],a=t[r+3],(192&n)==128&&(192&o)==128&&(192&a)==128&&((l=(15&h)<<18|(63&n)<<12|(63&o)<<6|63&a)<=65535||l>=1114112)&&(l=null)),null===l?(l=65533,u=1):l>65535&&(l-=65536,s+=String.fromCharCode(l>>>10&1023|55296),l=56320|1023&l),s+=String.fromCharCode(l),r+=u}return s}(this.buf,i,e)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==r.Bytes)return t.push(this.readVarint(e));var i=o(this);for(t=t||[];this.pos<i;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==r.Bytes)return t.push(this.readSVarint());var e=o(this);for(t=t||[];this.pos<e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==r.Bytes)return t.push(this.readBoolean());var e=o(this);for(t=t||[];this.pos<e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==r.Bytes)return t.push(this.readFloat());var e=o(this);for(t=t||[];this.pos<e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==r.Bytes)return t.push(this.readDouble());var e=o(this);for(t=t||[];this.pos<e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==r.Bytes)return t.push(this.readFixed32());var e=o(this);for(t=t||[];this.pos<e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==r.Bytes)return t.push(this.readSFixed32());var e=o(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==r.Bytes)return t.push(this.readFixed64());var e=o(this);for(t=t||[];this.pos<e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==r.Bytes)return t.push(this.readSFixed64());var e=o(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===r.Varint)for(;this.buf[this.pos++]>127;);else if(e===r.Bytes)this.pos=this.readVarint()+this.pos;else if(e===r.Fixed32)this.pos+=4;else if(e===r.Fixed64)this.pos+=8;else throw Error("Unimplemented type: "+e)},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var i=new Uint8Array(e);i.set(this.buf),this.buf=i,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),b(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),b(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),b(this.buf,-1&t,this.pos),b(this.buf,Math.floor(23283064365386963e-26*t),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),b(this.buf,-1&t,this.pos),b(this.buf,Math.floor(23283064365386963e-26*t),this.pos+4),this.pos+=8},writeVarint:function(t){if((t=+t||0)>268435455||t<0){!function(t,e){var i,s,r,n,o,a;if(t>=0?(i=t%4294967296|0,s=t/4294967296|0):(i=~(-t%4294967296),s=~(-t/4294967296),4294967295^i?i=i+1|0:(i=0,s=s+1|0)),t>=18446744073709552e3||t<-18446744073709552e3)throw Error("Given varint doesn't fit into 10 bytes");e.realloc(10),r=i,e.buf[e.pos++]=127&r|128,r>>>=7,e.buf[e.pos++]=127&r|128,r>>>=7,e.buf[e.pos++]=127&r|128,r>>>=7,e.buf[e.pos++]=127&r|128,r>>>=7,e.buf[e.pos]=127&r,n=s,o=e,a=(7&n)<<4,o.buf[o.pos++]|=a|((n>>>=3)?128:0),!n||(o.buf[o.pos++]=127&n|((n>>>=7)?128:0),!n)||(o.buf[o.pos++]=127&n|((n>>>=7)?128:0),!n)||(o.buf[o.pos++]=127&n|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=127&n|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=127&n)))}(t,this);return}this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127)))},writeSVarint:function(t){this.writeVarint(t<0?-(2*t)-1:2*t)},writeBoolean:function(t){this.writeVarint(!!t)},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;
1this.pos=function(t,e,i){for(var s,r,n=0;n<e.length;n++){if((s=e.charCodeAt(n))>55295&&s<57344){if(r){if(s<56320){t[i++]=239,t[i++]=191,t[i++]=189,r=s;continue}s=r-55296<<10|s-56320|65536,r=null}else{s>56319||n+1===e.length?(t[i++]=239,t[i++]=191,t[i++]=189):r=s;continue}}else r&&(t[i++]=239,t[i++]=191,t[i++]=189,r=null);s<128?t[i++]=s:(s<2048?t[i++]=s>>6|192:(s<65536?t[i++]=s>>12|224:(t[i++]=s>>18|240,t[i++]=s>>12&63|128),t[i++]=s>>6&63|128),t[i++]=63&s|128)}return i}(this.buf,t,this.pos);var i=this.pos-e;i>=128&&a(e,i,this),this.pos=e-1,this.writeVarint(i),this.pos+=i},writeFloat:function(t){this.realloc(4),s.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),s.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var i=0;i<e;i++)this.buf[this.pos++]=t[i]},writeRawMessage:function(t,e){this.pos++;var i=this.pos;t(e,this);var s=this.pos-i;s>=128&&a(i,s,this),this.pos=i-1,this.writeVarint(s),this.pos+=s},writeMessage:function(t,e,i){this.writeTag(t,r.Bytes),this.writeRawMessage(e,i)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,h,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,l,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,d,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,u,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,c,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,f,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,p,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,m,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,g,e)},writeBytesField:function(t,e){this.writeTag(t,r.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,r.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,r.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,r.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,r.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,r.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,r.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,r.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,r.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,r.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,!!e)}}},7397:function(t,e,i){"use strict";let s,r,n,o,a,h,l,u,c;i.d(e,{Z:function(){return eq}});var d,f,p=i(7021),m=i(17514),g=i(78736),y=i(61625);let b={clipBounds:[0,0,1,1],clipByInstance:void 0},_=`
2uniform vec4 clip_bounds;
3bool clip_isInBounds(vec2 position) {
4return position.x >= clip_bounds[0] && position.y >= clip_bounds[1] && position.x < clip_bounds[2] && position.y < clip_bounds[3];
5}
6`,w={name:"clip-vs",vs:_},x={"vs:#decl":`
7out float clip_isVisible;
8`,"vs:DECKGL_FILTER_GL_POSITION":`
9clip_isVisible = float(clip_isInBounds(geometry.worldPosition.xy));
10`,"fs:#decl":`
11in float clip_isVisible;
12`,"fs:DECKGL_FILTER_COLOR":`
13if (clip_isVisible < 0.5) discard;
14`},M={name:"clip-fs",fs:_},v={"vs:#decl":`
15out vec2 clip_commonPosition;
16`,"vs:DECKGL_FILTER_GL_POSITION":`
17clip_commonPosition = geometry.position.xy;
18`,"fs:#decl":`
19in vec2 clip_commonPosition;
20`,"fs:DECKGL_FILTER_COLOR":`
21if (!clip_isInBounds(clip_commonPosition)) discard;
22`};class S extends y.Z{static{this.defaultProps=b}static{this.extensionName="ClipExtension"}getShaders(){let t="instancePositions"in this.getAttributeManager().attributes;return void 0!==this.props.clipByInstance&&(t=!!this.props.clipByInstance),this.state.clipByInstance=t,t?{modules:[w],inject:x}:{modules:[M],inject:v}}draw({uniforms:t}){let{clipBounds:e}=this.props;if(this.state.clipByInstance)t.clip_bounds=e;else{let i=this.projectPosition([e[0],e[1],0]),s=this.projectPosition([e[2],e[3],0]);t.clip_bounds=[Math.min(i[0],s[0]),Math.min(i[1],s[1]),Math.max(i[0],s[0]),Math.max(i[1],s[1])]}}}var T=i(90395),P=i(77989);function I(t,e){let i={};for(let s in t)i[s]={value:t[s],size:e};return i}function C(t,e,i,s){for(let r in t.numericProps)if(r in e){let n=e[r];t.numericProps[r].fill(n,i,i+s)}}function F(t,e){let i={};for(let s in t)e.includes(s)||(i[s]=t[s]);return i}var V=i(66797);function L(t,e,i){e&&i&&(1===t?e.id=i.readVarint():2===t?function(t,e){let i=t.readVarint()+t.pos;for(;t.pos<i;){let i=e._keys[t.readVarint()],s=e._values[t.readVarint()];e.properties[i]=s}}(i,e):3===t?e.type=i.readVarint():4===t&&(e._geometry=i.pos))}class A{properties;extent;type;id;_pbf;_geometry;_keys;_values;static get types(){return["Unknown","Point","LineString","Polygon"]}constructor(t,e,i,s,r){this.properties={},this.extent=i,this.type=0,this.id=null,this._pbf=t,this._geometry=-1,this._keys=s,this._values=r,t.readFields(L,this,e)}loadGeometry(){let t;let e=this._pbf;e.pos=this._geometry;let i=e.readVarint()+e.pos,s=1,r=0,n=0,o=0,a=[];for(;e.pos<i;){if(r<=0){let t=e.readVarint();s=7&t,r=t>>3}if(r--,1===s||2===s)n+=e.readSVarint(),o+=e.readSVarint(),1===s&&(t&&a.push(t),t=[]),t&&t.push([n,o]
22);else if(7===s)t&&t.push(t[0].slice());else throw Error(`unknown command ${s}`)}return t&&a.push(t),a}bbox(){let t=this._pbf;t.pos=this._geometry;let e=t.readVarint()+t.pos,i=1,s=0,r=0,n=0,o=1/0,a=-1/0,h=1/0,l=-1/0;for(;t.pos<e;){if(s<=0){let e=t.readVarint();i=7&e,s=e>>3}if(s--,1===i||2===i)r+=t.readSVarint(),n+=t.readSVarint(),r<o&&(o=r),r>a&&(a=r),n<h&&(h=n),n>l&&(l=n);else if(7!==i)throw Error(`unknown command ${i}`)}return[o,h,a,l]}_toGeoJSON(t){let e,i,s=this.loadGeometry(),r=A.types[this.type];switch(this.type){case 1:let n=[];for(e=0;e<s.length;e++)n[e]=s[e][0];t(s=n,this);break;case 2:for(e=0;e<s.length;e++)t(s[e],this);break;case 3:for(e=0,s=function(t){let e,i;let s=t.length;if(s<=1)return[t];let r=[];for(let n=0;n<s;n++){let s=function(t){let e=0;for(let i=0,s=t.length-1,r,n;i<t.length;s=i++)r=t[i],e+=((n=t[s])[0]-r[0])*(r[1]+n[1]);return e}(t[n]);0!==s&&(void 0===i&&(i=s<0),i===s<0?(e&&r.push(e),e=[t[n]]):e&&e.push(t[n]))}return e&&r.push(e),r}(s);e<s.length;e++)for(i=0;i<s[e].length;i++)t(s[e][i],this)}1===s.length?s=s[0]:r=`Multi${r}`;let o={type:"Feature",geometry:{type:r,coordinates:s},properties:this.properties};return null!==this.id&&(o.id=this.id),o}toGeoJSON(t){if("function"==typeof t)return this._toGeoJSON(t);let{x:e,y:i,z:s}=t,r=this.extent*Math.pow(2,s),n=this.extent*e,o=this.extent*i;return this._toGeoJSON(function(t){for(let e=0;e<t.length;e++){let i=t[e];i[0]=(i[0]+n)*360/r-180;let s=180-(i[1]+o)*360/r;i[1]=360/Math.PI*Math.atan(Math.exp(s*Math.PI/180))-90}})}}class N{version;name;extent;length;_pbf;_keys;_values;_features;constructor(t,e){this.version=1,this.name="",this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(k,this,e),this.length=this._features.length}feature(t){if(t<0||t>=this._features.length)throw Error("feature index out of bounds");this._pbf.pos=this._features[t];let e=this._pbf.readVarint()+this._pbf.pos;return new A(this._pbf,e,this.extent,this._keys,this._values)}}function k(t,e,i){e&&i&&(15===t?e.version=i.readVarint():1===t?e.name=i.readString():5===t?e.extent=i.readVarint():2===t?e._features.push(i.pos):3===t?e._keys.push(i.readString()):4===t&&e._values.push(function(t){let e=null,i=t.readVarint()+t.pos;for(;t.pos<i;){let i=t.readVarint()>>3;e=1===i?t.readString():2===i?t.readFloat():3===i?t.readDouble():4===i?t.readVarint64():5===i?t.readVarint():6===i?t.readSVarint():7===i?t.readBoolean():null}return e}(i)))}class E{layers;constructor(t,e){this.layers=t.readFields(O,{},e)}}function O(t,e,i){if(3===t&&i){let t=new N(i,i.readVarint()+i.pos);t.length&&e&&(e[t.name]=t)}}function R(t,e,i){e&&i&&(1===t?e.id=i.readVarint():2===t?function(t,e){let i=t.readVarint()+t.pos;for(;t.pos<i;){let i=e._keys[t.readVarint()],s=e._values[t.readVarint()];e.properties[i]=s}}(i,e):3===t?e.type=i.readVarint():4===t&&(e._geometry=i.pos))}class z{properties;extent;type;id;_pbf;_geometry;_keys;_values;_geometryInfo;constructor(t,e,i,s,r,n){this.properties={},this.extent=i,this.type=0,this.id=null,this._pbf=t,this._geometry=-1,this._keys=s,this._values=r,this._geometryInfo=n,t.readFields(R,this,e)}loadGeometry(){let t=this._pbf;t.pos=this._geometry,s=t.readVarint()+t.pos,r=1,o=0,a=0,h=0,l=0;let e=[],i=[];for(;t.pos<s;)if(o<=0&&(r=7&(n=t.readVarint()),o=n>>3),o--,1===r||2===r)a+=t.readSVarint(),h+=t.readSVarint(),1===r&&e.push(l),i.push(a,h),l+=2;else if(7===r){if(l>0){let t=e[e.length-1];i.push(i[t],i[t+1]),l+=2}}else throw Error(`unknown command ${r}`);return{data:i,indices:e}}_toBinaryCoordinates(t){let e;let i=this.loadGeometry();switch(t(i.data,this),this.type){case 1:this._geometryInfo.pointFeaturesCount++,this._geometryInfo.pointPositionsCount+=i.indices.length,e={type:"Point",...i};break;case 2:this._geometryInfo.lineFeaturesCount++,this._geometryInfo.linePathsCount+=i.indices.length,this._geometryInfo.linePositionsCount+=i.data.length/2,e={type:"LineString",...i};break;case 3:for(let t of(e=function(t){let e;let i=t.indices.length,s="Polygon";if(i<=1)return{type:s,data:t.data,areas:[[(0,P.ap)(t.data)]],indices:[t.indices]};let r=[],n=[],o=[],a=[],h=0;for(let s,l=0,u;l<i;l++){u=t.indices[l]-h,s=t.indices[l+1]-h||t.data.length;let i=t.data.slice(u,s),c=(0,P.ap)(i);if(0===c){let e=t.data.slice(0,u),i=t.data.slice(s);t.data=e.concat(i),h+=s-u;continue}void 0===e&&(e=c<0),e===c<0?(a.length&&(r.push(o),n.push(a)),a=[u],o=[c]):(o.push(c),a.push(u))}return o&&r.push(o),a.length&&n.push(a),{type:s,areas:r,indices:n,data:t.data}}(i),this._geometryInfo.polygonFeaturesCount++,this._geometryInfo.polygonObjectsCount+=e.indices.length,e.indices))this._geometryInfo.polygonRingsCount+=t.length;this._geometryInfo.polygonPositionsCount+=e.data.length/2;break;default:throw Error(`Invalid geometry type: ${this.type}`)}let s={type:"Feature",geometry:e,properties:this.properties};return null!==this.id&&(s.id=this.id),s}toBinaryCoordinates(t){if("function"==typeof t)return this._toBinaryCoordinates(t);let{x:e,y:i,z:s}=t,r=this.extent*Math.pow(2,s),n=this.extent*e,o=this.extent*i;return this._toBinaryCoordinates(t=>
22(function(t,e,i,s){for(let r=0,n=t.length;r<n;r+=2){t[r]=(t[r]+e)*360/s-180;let n=180-(t[r+1]+i)*360/s;t[r+1]=360/Math.PI*Math.atan(Math.exp(n*Math.PI/180))-90}})(t,n,o,r))}}class q{version;name;extent;length;_pbf;_keys;_values;_features;constructor(t,e){this.version=1,this.name="",this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(B,this,e),this.length=this._features.length}feature(t,e){if(t<0||t>=this._features.length)throw Error("feature index out of bounds");this._pbf.pos=this._features[t];let i=this._pbf.readVarint()+this._pbf.pos;return new z(this._pbf,i,this.extent,this._keys,this._values,e)}}function B(t,e,i){e&&i&&(15===t?e.version=i.readVarint():1===t?e.name=i.readString():5===t?e.extent=i.readVarint():2===t?e._features.push(i.pos):3===t?e._keys.push(i.readString()):4===t&&e._values.push(function(t){let e=null,i=t.readVarint()+t.pos;for(;t.pos<i;){let i=t.readVarint()>>3;e=1===i?t.readString():2===i?t.readFloat():3===i?t.readDouble():4===i?t.readVarint64():5===i?t.readVarint():6===i?t.readSVarint():7===i?t.readBoolean():null}return e}(i)))}class D{layers;constructor(t,e){this.layers=t.readFields(j,{},e)}}function j(t,e,i){if(3===t&&i){let t=new q(i,i.readVarint()+i.pos);t.length&&e&&(e[t.name]=t)}}function G(t,e){let{extent:i}=e;for(let e=0;e<t.length;e++){let s=t[e];s[0]/=i,s[1]/=i}}function Z(t,e){let{extent:i}=e;for(let e=0,s=t.length;e<s;++e)t[e]/=i}let U={dataType:null,batchType:null,name:"Mapbox Vector Tile",id:"mvt",module:"mvt",version:"4.2.0",extensions:["mvt","pbf"],mimeTypes:["application/vnd.mapbox-vector-tile","application/x-protobuf"],worker:!0,category:"geometry",options:{mvt:{shape:"geojson",coordinates:"local",layerProperty:"layerName",layers:void 0,tileIndex:null}}};function W(t,e){let i=e?.globalFeatureId;return void 0!==i?function(t,e){for(let i of K(t)){let t=0,s=i.featureIds.value[0];for(let r=0;r<i.featureIds.value.length;r++){let n=i.featureIds.value[r];if(n!==s){if(e===i.globalFeatureIds.value[t])return $(i,t,r);t=r,s=n}}if(e===i.globalFeatureIds.value[t])return $(i,t,i.featureIds.value.length)}throw Error(`featureId:${e} not found`)}(t,i):function(t){let e=[];for(let i of t){if(0===i.featureIds.value.length)continue;let t=0,s=i.featureIds.value[0];for(let r=0;r<i.featureIds.value.length;r++){let n=i.featureIds.value[r];n!==s&&(e.push($(i,t,r)),t=r,s=n)}e.push($(i,t,i.featureIds.value.length))}return e}(K(t,e?.type))}function K(t,e){let i=[];return t.points&&(t.points.type="Point",i.push(t.points)),t.lines&&(t.lines.type="LineString",i.push(t.lines)),t.polygons&&(t.polygons.type="Polygon",i.push(t.polygons)),i}function $(t,e,i){return{type:"Feature",geometry:function(t,e,i){switch(t.type){case"Point":return function(t,e,i){let{positions:s}=t,r=J(s,e,i);return r.length>1?{type:"MultiPoint",coordinates:r}:{type:"Point",coordinates:r[0]}}(t,e,i);case"LineString":return function(t,e=-1/0,i=1/0){let{positions:s}=t,r=t.pathIndices.value.filter(t=>t>=e&&t<=i);if(!(r.length>2))return{type:"LineString",coordinates:J(s,r[0],r[1])};let n=[];for(let t=0;t<r.length-1;t++){let e=J(s,r[t],r[t+1]);n.push(e)}return{type:"MultiLineString",coordinates:n}}(t,e,i);case"Polygon":return function t(e,i=-1/0,s=1/0){let{positions:r}=e,n=e.polygonIndices.value.filter(t=>t>=i&&t<=s),o=e.primitivePolygonIndices.value.filter(t=>t>=i&&t<=s);if(!(n.length>2)){let t=[];for(let e=0;e<o.length-1;e++){let i=J(r,o[e],o[e+1]);t.push(i)}return{type:"Polygon",coordinates:t}}let a=[];for(let i=0;i<n.length-1;i++){let s=t(e,n[i],n[i+1]).coordinates;a.push(s)}return{type:"MultiPolygon",coordinates:a}}(t,e,i);default:throw Error(`Unsupported geometry type: ${t?.type}`)}}(t,e,i),properties:function(t,e=0,i){let s=Object.assign({},t.properties[t.featureIds.value[e]]);for(let i in t.numericProps)s[i]=t.numericProps[i].value[e];return s}(t,e,0),...function(t,e=0,i){return t.fields&&t.fields[t.featureIds.value[e]]}(t,e,0)}}function J(t,e,i){e=e||0,i=i||t.value.length/t.size;let s=[];for(let r=e;r<i;r++){let e=[];for(let i=r*t.size;i<(r+1)*t.size;i++)e.push(Number(t.value[i]));s.push(e)}return s}({...U});var Q=i(96972);
22let H={Point:X,MultiPoint:function(t,e,i){return Y(t,e,i)},LineString:function(t,e,i){return Y(t,e,i)},MultiLineString:function(t,e,i){return t.map(t=>Y(t,e,i))},Polygon:tt,MultiPolygon:function(t,e,i){return t.map(t=>tt(t,e,i))}};function X([t,e],[i,s],r){let n=(0,Q.t7)(i[0],s[0],t),o=(0,Q.t7)(i[1],s[1],e);return r.unprojectFlat([n,o])}function Y(t,e,i){return t.map(t=>X(t,e,i))}function tt(t,e,i){return t.map(t=>Y(t,e,i))}let te=["points","lines","polygons"];function ti(t,e,i,s){for(let r=i;r<s;r++)if(e(t[r],r))return r;return -1}var ts=i(99965),tr=i(68049),tn=i(56750);let to={id:"request-scheduler",throttleRequests:!0,maxRequests:6,debounceTime:0};class ta{props;stats;activeRequestCount=0;requestQueue=[];requestMap=new Map;updateTimer=null;constructor(t={}){this.props={...to,...t},this.stats=new tn.jk({id:this.props.id}),this.stats.get("Queued Requests"),this.stats.get("Active Requests"),this.stats.get("Cancelled Requests"),this.stats.get("Queued Requests Ever"),this.stats.get("Active Requests Ever")}scheduleRequest(t,e=()=>0){if(!this.props.throttleRequests)return Promise.resolve({done:()=>{}});if(this.requestMap.has(t))return this.requestMap.get(t);let i={handle:t,priority:0,getPriority:e},s=new Promise(t=>(i.resolve=t,i));return this.requestQueue.push(i),this.requestMap.set(t,s),this._issueNewRequests(),s}_issueRequest(t){let{handle:e,resolve:i}=t,s=!1,r=()=>{s||(s=!0,this.requestMap.delete(e),this.activeRequestCount--,this._issueNewRequests())};return this.activeRequestCount++,i?i({done:r}):Promise.resolve({done:r})}_issueNewRequests(){null!==this.updateTimer&&clearTimeout(this.updateTimer),this.updateTimer=setTimeout(()=>this._issueNewRequestsAsync(),this.props.debounceTime)}_issueNewRequestsAsync(){null!==this.updateTimer&&clearTimeout(this.updateTimer),this.updateTimer=null;let t=Math.max(this.props.maxRequests-this.activeRequestCount,0);if(0!==t){this._updateAllRequests();for(let e=0;e<t;++e){let t=this.requestQueue.shift();t&&this._issueRequest(t)}}}_updateAllRequests(){let t=this.requestQueue;for(let e=0;e<t.length;++e){let i=t[e];!this._updateRequest(i)&&(t.splice(e,1),this.requestMap.delete(i.handle),e--)}t.sort((t,e)=>t.priority-e.priority)}_updateRequest(t){return t.priority=t.getPriority(t.handle),!(t.priority<0)||(t.resolve(null),!1)}}class th{constructor(t){this.index=t,this.isVisible=!1,this.isSelected=!1,this.parent=null,this.children=[],this.content=null,this._loader=void 0,this._abortController=null,this._loaderId=0,this._isLoaded=!1,this._isCancelled=!1,this._needsReload=!1}get bbox(){return this._bbox}set bbox(t){this._bbox||(this._bbox=t,"west"in t?this.boundingBox=[[t.west,t.south],[t.east,t.north]]:this.boundingBox=[[t.left,t.top],[t.right,t.bottom]])}get data(){return this.isLoading&&this._loader?this._loader.then(()=>this.data):this.content}get isLoaded(){return this._isLoaded&&!this._needsReload}get isLoading(){return!!this._loader&&!this._isCancelled}get needsReload(){return this._needsReload||this._isCancelled}get byteLength(){let t=this.content?this.content.byteLength:0;return Number.isFinite(t)||console.error("byteLength not defined in tile data"),t}async _loadData({getData:t,requestScheduler:e,onLoad:i,onError:s}){let r;let{index:n,id:o,bbox:a,userData:h,zoom:l}=this,u=this._loaderId;this._abortController=new AbortController;let{signal:c}=this._abortController,d=await e.scheduleRequest(this,t=>t.isSelected?1:-1);if(!d){this._isCancelled=!0;return}if(this._isCancelled){d.done();return}let f=null;try{f=await t({index:n,id:o,bbox:a,userData:h,zoom:l,signal:c})}catch(t){r=t||!0}finally{d.done()}if(u===this._loaderId){if(this._loader=void 0,this.content=f,this._isCancelled&&!f){this._isLoaded=!1;return}this._isLoaded=!0,this._isCancelled=!1,r?s(r,this):i(this)}}loadData(t){return this._isLoaded=!1,this._isCancelled=!1,this._needsReload=!1,this._loaderId++,this._loader=this._loadData(t),this._loader}setNeedsReload(){this.isLoading&&(this.abort(),this._loader=void 0),this._needsReload=!0}abort(){this.isLoaded||(this._isCancelled=!0,this._abortController?.abort())}}var tl=i(45646),tu=i(33824),tc=i(72605);let td=Math.PI/180,tf=180/Math.PI;class tp extends tl.Z{constructor(t={}){let{latitude:e=0,longitude:i=0,zoom:s=0,nearZMultiplier:r=.1,farZMultiplier:n=2,resolution:o=10}=t,{height:a,altitude:h=1.5}=t;a=a||1,h=Math.max(.75,h);let l=new T.y().lookAt({eye:[0,-h,0],up:[0,0,1]}),u=Math.pow(2,s);l.rotateX(e*td),l.rotateZ(-i*td),l.scale(u/a),super({...t,height:a,viewMatrix:l,longitude:i,latitude:e,zoom:s,distanceScales:function(){let t=Math.PI/180*256;return{unitsPerMeter:[4018225162502676e-20,4018225162502676e-20,4018225162502676e-20],unitsPerMeter2:[
220,0,0],metersPerUnit:[24886.609375,24886.609375,24886.609375],unitsPerDegree:[t,t,4018225162502676e-20],unitsPerDegree2:[0,0,0],degreesPerUnit:[1/t,1/t,24886.609375]}}(),fovyRadians:2*Math.atan(.5/h),focalDistance:h,near:r,far:Math.min(2,1/(512*u/a)+1)*h*n}),this.latitude=e,this.longitude=i,this.resolution=o}get projectionMode(){return p.zG.GLOBE}getDistanceScales(){return this.distanceScales}getBounds(t={}){let e={targetZ:t.z||0},i=this.unproject([0,this.height/2],e),s=this.unproject([this.width/2,0],e),r=this.unproject([this.width,this.height/2],e),n=this.unproject([this.width/2,this.height],e);return r[0]<this.longitude&&(r[0]+=360),i[0]>this.longitude&&(i[0]-=360),[Math.min(i[0],r[0],s[0],n[0]),Math.min(i[1],r[1],s[1],n[1]),Math.max(i[0],r[0],s[0],n[0]),Math.max(i[1],r[1],s[1],n[1])]}unproject(t,{topLeft:e=!0,targetZ:i}={}){let s;let[r,n,o]=t,a=e?n:this.height-n,{pixelUnprojectionMatrix:h}=this;if(Number.isFinite(o))s=tm(h,[r,a,o,1]);else{let t=tm(h,[r,a,-1,1]),e=tm(h,[r,a,1,1]),n=((i||0)/6370972+1)*256,o=tu.x9(tu.lu([],t,e)),l=tu.x9(t),u=tu.x9(e),c=(4*l*u-(o-l-u)**2)/16*4/o;s=tu.t7([],t,e,(Math.sqrt(l-c)-Math.sqrt(Math.max(0,n*n-c)))/Math.sqrt(o))}let[l,u,c]=this.unprojectPosition(s);return Number.isFinite(o)?[l,u,c]:Number.isFinite(i)?[l,u,i]:[l,u]}projectPosition(t){let[e,i,s=0]=t,r=e*td,n=i*td,o=Math.cos(n),a=(s/6370972+1)*256;return[Math.sin(r)*o*a,-Math.cos(r)*o*a,Math.sin(n)*a]}unprojectPosition(t){let[e,i,s]=t,r=tu.Zh(t);return[Math.atan2(e,-i)*tf,Math.asin(s/r)*tf,(r/256-1)*6370972]}projectFlat(t){return t}unprojectFlat(t){return t}panByPosition(t,e){let i=this.unproject(e);return{longitude:t[0]-i[0]+this.longitude,latitude:t[1]-i[1]+this.latitude}}}function tm(t,e){let i=tc.fF([],e,t);return tc.bA(i,i,1/i[3]),i}var tg=i(52756);let ty={OUTSIDE:-1,INTERSECTING:0,INSIDE:1};var tb=i(92416);let t_=new tb.P,tw=new tb.P;class tx{constructor(t=[0,0,0],e=[0,0,0],i){i=i||t_.copy(t).add(e).scale(.5),this.center=new tb.P(i),this.halfDiagonal=new tb.P(e).subtract(this.center),this.minimum=new tb.P(t),this.maximum=new tb.P(e)}clone(){return new tx(this.minimum,this.maximum,this.center)}equals(t){return this===t||!!t&&this.minimum.equals(t.minimum)&&this.maximum.equals(t.maximum)}transform(t){return this.center.transformAsPoint(t),this.halfDiagonal.transform(t),this.minimum.transform(t),this.maximum.transform(t),this}intersectPlane(t){let{halfDiagonal:e}=this,i=tw.from(t.normal),s=e.x*Math.abs(i.x)+e.y*Math.abs(i.y)+e.z*Math.abs(i.z),r=this.center.dot(i)+t.distance;return r-s>0?ty.INSIDE:r+s<0?ty.OUTSIDE:ty.INTERSECTING}distanceTo(t){return Math.sqrt(this.distanceSquaredTo(t))}distanceSquaredTo(t){let e;let i=t_.from(t).subtract(this.center),{halfDiagonal:s}=this,r=0;return(e=Math.abs(i.x)-s.x)>0&&(r+=e*e),(e=Math.abs(i.y)-s.y)>0&&(r+=e*e),(e=Math.abs(i.z)-s.z)>0&&(r+=e*e),r}}var tM=i(55019);let tv=new tb.P,tS=new tb.P;class tT{constructor(t=[0,0,0],e=0){this.radius=-0,this.center=new tb.P,this.fromCenterRadius(t,e)}fromCenterRadius(t,e){return this.center.from(t),this.radius=e,this}fromCornerPoints(t,e){return e=tv.from(e),this.center=new tb.P().from(t).add(e).scale(.5),this.radius=this.center.distance(e),this}equals(t){return this===t||!!t&&this.center.equals(t.center)&&this.radius===t.radius}clone(){return new tT(this.center,this.radius)}union(t){let e=this.center,i=this.radius,s=t.center,r=t.radius,n=tv.copy(s).subtract(e),o=n.magnitude();if(i>=o+r)return this.clone();if(r>=o+i)return t.clone();let a=(i+o+r)*.5;return tS.copy(n).scale((-i+a)/o).add(e),this.center.copy(tS),this.radius=a,this}expand(t){let e=tv.from(t).subtract(this.center).magnitude();return e>this.radius&&(this.radius=e),this}transform(t){this.center.transform(t);let e=tM.Q$(tv,t);return this.radius=Math.max(e[0],Math.max(e[1],e[2]))*this.radius,this}distanceSquaredTo(t){let e=this.distanceTo(t);return e*e}distanceTo(t){return Math.max(0,tv.from(t).subtract(this.center).len()-this.radius)}intersectPlane(t){let e=this.center,i=this.radius,s=t.normal.dot(e)+t.distance;return s<-i?ty.OUTSIDE:s<i?ty.INTERSECTING:ty.INSIDE}}var tP=i(23342),tI=i(53305),tC=i(70473),tF=i(96447);function tV(t,e,i){let s=e[0],r=e[1],n=e[2],o=e[3],a=e[4],h=e[5],l=e[6],u=e[7],c=e[8],d=i[0],f=i[1],p=i[2],m=i[3],g=i[4],y=i[5],b=i[6],_=i[7],w=i[8];return t[0]=d*s+f*o+p*l,t[1]=d*r+f*a+p*u,t[2]=d*n+f*h+p*c,t[3]=m*s+g*o+y*l,t[4]=m*r+g*a+y*u,t[5]=m*n+g*h+y*c,t[6]=b*s+_*o+w*l,t[7]=b*r+_*a+w*u,t[8]=b*n+_*h+w*c,t}function tL(t,e,i){let s=i[0],r=i[1];return t[0]=s*e[0],t[1]=s*e[1],t[2]=s*e[2],t[3]=r*e[3],t[4]=r*e[4],t[5]=r*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}var tA=i(48857);(d=f||(f={}))[d.COL0ROW0=0]="COL0ROW0",d[d.COL0ROW1=1]="COL0ROW1",d[d.COL0ROW2=2]="COL0ROW2",d[d.COL1ROW0=3]="COL1ROW0",d[d.COL1ROW1=4]="COL1ROW1",d[d.COL1ROW2=5]="COL1ROW2",d[d.COL2ROW0=6]="COL2ROW0",d[d.COL2ROW1=7]="COL2ROW1",d[d.COL2ROW2=8]="COL2ROW2";let tN=Object.freeze([1,0,0,0,1,0,0,0,1]);class tk extends tP.y{static get IDENTITY(){return tE||Object.freeze(tE=new tk),tE}static get ZERO(){return u||Object.freeze(u=new tk([0,0,0,0,0,0,0,0,0])),u}get ELEMENTS(){return 9}get RANK(){return 3}get INDICES(){return f}constructor(t,...e){super(-0,-0,-0,-0,-0,-0,-0,-0,-0),1==arguments.length&&Array.isArray(t)?this.copy(t):e.length>0?this.copy([t,...e]):this.identity()}copy(t){return this[0]=t[0],this[1]=t[1],this[2]=t[2],this[3]=t[3],this[4]=t[4],this[5
22]=t[5],this[6]=t[6],this[7]=t[7],this[8]=t[8],this.check()}identity(){return this.copy(tN)}fromObject(t){return this.check()}fromQuaternion(t){return!function(t,e){let i=e[0],s=e[1],r=e[2],n=e[3],o=i+i,a=s+s,h=r+r,l=i*o,u=s*o,c=s*a,d=r*o,f=r*a,p=r*h,m=n*o,g=n*a,y=n*h;t[0]=1-c-p,t[3]=u-y,t[6]=d+g,t[1]=u+y,t[4]=1-l-p,t[7]=f-m,t[2]=d-g,t[5]=f+m,t[8]=1-l-c}(this,t),this.check()}set(t,e,i,s,r,n,o,a,h){return this[0]=t,this[1]=e,this[2]=i,this[3]=s,this[4]=r,this[5]=n,this[6]=o,this[7]=a,this[8]=h,this.check()}setRowMajor(t,e,i,s,r,n,o,a,h){return this[0]=t,this[1]=s,this[2]=o,this[3]=e,this[4]=r,this[5]=a,this[6]=i,this[7]=n,this[8]=h,this.check()}determinant(){return function(t){let e=t[0],i=t[1],s=t[2],r=t[3],n=t[4],o=t[5],a=t[6],h=t[7],l=t[8];return e*(l*n-o*h)+i*(-l*r+o*a)+s*(h*r-n*a)}(this)}transpose(){return!function(t,e){if(t===e){let i=e[1],s=e[2],r=e[5];t[1]=e[3],t[2]=e[6],t[3]=i,t[5]=e[7],t[6]=s,t[7]=r}else 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]}(this,this),this.check()}invert(){return!function(t,e){let i=e[0],s=e[1],r=e[2],n=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],c=u*o-a*l,d=-u*n+a*h,f=l*n-o*h,p=i*c+s*d+r*f;p&&(p=1/p,t[0]=c*p,t[1]=(-u*s+r*l)*p,t[2]=(a*s-r*o)*p,t[3]=d*p,t[4]=(u*i-r*h)*p,t[5]=(-a*i+r*n)*p,t[6]=f*p,t[7]=(-l*i+s*h)*p,t[8]=(o*i-s*n)*p)}(this,this),this.check()}multiplyLeft(t){return tV(this,t,this),this.check()}multiplyRight(t){return tV(this,this,t),this.check()}rotate(t){return!function(t,e,i){let s=e[0],r=e[1],n=e[2],o=e[3],a=e[4],h=e[5],l=e[6],u=e[7],c=e[8],d=Math.sin(i),f=Math.cos(i);t[0]=f*s+d*o,t[1]=f*r+d*a,t[2]=f*n+d*h,t[3]=f*o-d*s,t[4]=f*a-d*r,t[5]=f*h-d*n,t[6]=l,t[7]=u,t[8]=c}(this,this,t),this.check()}scale(t){return Array.isArray(t)?tL(this,this,t):tL(this,this,[t,t]),this.check()}translate(t){return!function(t,e,i){let s=e[0],r=e[1],n=e[2],o=e[3],a=e[4],h=e[5],l=e[6],u=e[7],c=e[8],d=i[0],f=i[1];t[0]=s,t[1]=r,t[2]=n,t[3]=o,t[4]=a,t[5]=h,t[6]=d*s+f*o+l,t[7]=d*r+f*a+u,t[8]=d*n+f*h+c}(this,this,t),this.check()}transform(t,e){let i;switch(t.length){case 2:i=(0,tA.kK)(e||[-0,-0],t,this);break;case 3:i=(0,tu.kK)(e||[-0,-0,-0],t,this);break;case 4:i=(0,tC._x)(e||[-0,-0,-0,-0],t,this);break;default:throw Error("Illegal vector")}return(0,tI.IL)(i,t.length),i}transformVector(t,e){return this.transform(t,e)}transformVector2(t,e){return this.transform(t,e)}transformVector3(t,e){return this.transform(t,e)}}let tE=null;var tO=i(74778),tR=i(31957);class tz extends tR.O{static get ZERO(){return c||Object.freeze(c=new tz(0,0,0,0)),c}constructor(t=0,e=0,i=0,s=0){super(-0,-0,-0,-0),(0,Q.kJ)(t)&&1==arguments.length?this.copy(t):(Q.vc.debug&&((0,tI.u5)(t),(0,tI.u5)(e),(0,tI.u5)(i),(0,tI.u5)(s)),this[0]=t,this[1]=e,this[2]=i,this[3]=s)}set(t,e,i,s){return this[0]=t,this[1]=e,this[2]=i,this[3]=s,this.check()}copy(t){return this[0]=t[0],this[1]=t[1],this[2]=t[2],this[3]=t[3],this.check()}fromObject(t){return Q.vc.debug&&((0,tI.u5)(t.x),(0,tI.u5)(t.y),(0,tI.u5)(t.z),(0,tI.u5)(t.w)),this[0]=t.x,this[1]=t.y,this[2]=t.z,this[3]=t.w,this}toObject(t){return t.x=this[0],t.y=this[1],t.z=this[2],t.w=this[3],t}get ELEMENTS(){return 4}get z(){return this[2]}set z(t){this[2]=(0,tI.u5)(t)}get w(){return this[3]}set w(t){this[3]=(0,tI.u5)(t)}transform(t){return(0,tu.fF)(this,this,t),this.check()}transformByMatrix3(t){return(0,tC._x)(this,this,t),this.check()}transformByMatrix2(t){return(0,tC.G7)(this,this,t),this.check()}transformByQuaternion(t){return(0,tu.VC)(this,this,t),this.check()}applyMatrix4(t){return t.transform(this,this),this}}function tq(){let t=new tF.WT(4);return tF.WT!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function tB(t,e,i){let s=Math.sin(i*=.5);return t[0]=s*e[0],t[1]=s*e[1],t[2]=s*e[2],t[3]=Math.cos(i),t}function tD(t,e,i){let s=e[0],r=e[1],n=e[2],o=e[3],a=i[0],h=i[1],l=i[2],u=i[3];return t[0]=s*u+o*a+r*l-n*h,t[1]=r*u+o*h+n*a-s*l,t[2]=n*u+o*l+s*h-r*a,t[3]=o*u-s*a-r*h-n*l,t}tc.d9,tc.al,tc.JG,tc.t8;let tj=tc.IH,tG=tc.bA,tZ=tc.AK,tU=tc.t7,tW=tc.kE,tK=tc.we,t$=tc.Fv;tc.I6;let tJ=function(){let t=tu.Ue(),e=tu.al(1,0,0),i=tu.al(0,1,0);return function(s,r,n){let o=tu.AK(r,n);return o<-.999999?(tu.kC(t,e,r),1e-6>tu.Zh(t)&&tu.kC(t,i,r),tu.Fv(t,t),tB(s,t,Math.PI),s):o>.999999?(s[0]=0,s[1]=0,s[2]=0,s[3]=1,s):(tu.kC(t,r,n),s[0]=t[0],s[1]=t[1],s[2]=t[2],s[3]=1+o,t$(s,s))}}();tq(),tq(),function(){let t=new tF.WT(9);tF.WT!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1}();let tQ=[0,0,0,1];class tH extends tO.Z{constructor(t=0,e=0,i=0,s=1){super(-0,-0,-0,-0),Array.isArray(t)&&1==arguments.length?this.copy(t):this.set(t,e,i,s)}copy(t){return this[0]=t[0],this[1]=t[1],this[2]=t[2],this[3]=t[3],this.check()}set(t,e,i,s){return this[0]=t,this[1]=e,this[2]=i,this[3]=s,this.check()}fromObject(t){return this[0]=t.x,this[1]=t.y,this[2]=t.z,this[3]=t.w,this.check()}fromMatrix3(t){return!function(t,e){let i;let s=e[0]+e[4]+e[8];if(s>0)i=Math.sqrt(s+1),t[3]=.5*i,i=.5/i,t[0]=(e[5]-e[7])*i,t[1]=(e[6]-e[2])*i,t[2]=(e[1]-e[3])*i;else{let s=0;e[4]>e[0]&&(s=1),e[8]>e[3*s+s]&&(s=2);let r=(s+1)%3,n=(s+2)%3;i=Math.sqrt(e[3*s+s]-e[3*r+r]-e[3*n+n]+1),t[s]=.5*i,i=.5/i,t[3]=(e[3*r+n]-e[3*n+r])*i,t[r]=(e[3*r+s]+e[3*s+r])*i,t[n]=(e[3*n+s]+e[3*s+n])*i}}(this,t),this.check()}fromAxisRotation(t,e){return tB(this,t,e),this.check()}identity(){return this[0]=0,this[1]=0,this[2]=0,this[3]=1,this.check()}setAxisAngle(t,e){return this.fromAxisRotation(t,e)}get ELEMENTS(){return 4}get x(){return this[0]}set x(t){this[0]=(0,tI.u5)(t)}get y(){return this[1]}set y(t){this[1]=(0,tI.u5)(t)}get z(){return this[2]}set z(t){this[2]=(0,tI.u5)(t)}get w(){return this[3]}set w(t){this[3]=(0,tI.u5)(t)}len(){return tW(this)}lengthSquared(){return tK(this)}dot(t){return tZ(this,t)}rotationTo(t,e){return tJ(this,t,e),this.check()}add(t){return tj(this,this,t),this.check()}calculateW(){return!function(t,e){let i=e[0],s=e[1],r=e[2];t[0]=i,t[1]=s,t[2]=r,t[3]=Math.sqrt(Math.abs(1-i*i-s*s-r*r))}(this,this),this.check()}conjugate(){return this[0]=-this[0],this[1]=-this[1],this[2]=-this[2],this[3]=this[3],this.check()}invert(){return!function(t,e){let i=e[0],s=e[1],r=e[2],n=e[3],o=i*i+s*s+r*r+n*n,a=o?1/o:0;t[0]=-i*a,t[1]=-s*a,t[2]=-r*a,t[3]=n*a}(this,this),this.check()}
22lerp(t,e,i){return void 0===i?this.lerp(this,t,e):(tU(this,t,e,i),this.check())}multiplyRight(t){return tD(this,this,t),this.check()}multiplyLeft(t){return tD(this,t,this),this.check()}normalize(){let t=this.len(),e=t>0?1/t:0;return this[0]=this[0]*e,this[1]=this[1]*e,this[2]=this[2]*e,this[3]=this[3]*e,0===t&&(this[3]=1),this.check()}rotateX(t){return!function(t,e,i){i*=.5;let s=e[0],r=e[1],n=e[2],o=e[3],a=Math.sin(i),h=Math.cos(i);t[0]=s*h+o*a,t[1]=r*h+n*a,t[2]=n*h-r*a,t[3]=o*h-s*a}(this,this,t),this.check()}rotateY(t){return!function(t,e,i){i*=.5;let s=e[0],r=e[1],n=e[2],o=e[3],a=Math.sin(i),h=Math.cos(i);t[0]=s*h-n*a,t[1]=r*h+o*a,t[2]=n*h+s*a,t[3]=o*h-r*a}(this,this,t),this.check()}rotateZ(t){return!function(t,e,i){i*=.5;let s=e[0],r=e[1],n=e[2],o=e[3],a=Math.sin(i),h=Math.cos(i);t[0]=s*h+r*a,t[1]=r*h-s*a,t[2]=n*h+o*a,t[3]=o*h-n*a}(this,this,t),this.check()}scale(t){return tG(this,this,t),this.check()}slerp(t,e,i){let s,r,n;switch(arguments.length){case 1:({start:s=tQ,target:r,ratio:n}=t);break;case 2:s=this,r=t,n=e;break;default:s=t,r=e,n=i}return!function(t,e,i,s){let r,n,o,a,h;let l=e[0],u=e[1],c=e[2],d=e[3],f=i[0],p=i[1],m=i[2],g=i[3];(r=l*f+u*p+c*m+d*g)<0&&(r=-r,f=-f,p=-p,m=-m,g=-g),1-r>tF.Ib?(h=Math.sin(n=Math.acos(r)),o=Math.sin((1-s)*n)/h,a=Math.sin(s*n)/h):(o=1-s,a=s),t[0]=o*l+a*f,t[1]=o*u+a*p,t[2]=o*c+a*m,t[3]=o*d+a*g}
22(this,s,r,n),this.check()}transformVector4(t,e=new tz){return(0,tc.VC)(e,t,this),(0,tI.IL)(e,4)}lengthSq(){return this.lengthSquared()}setFromAxisAngle(t,e){return this.setAxisAngle(t,e)}premultiply(t){return this.multiplyLeft(t)}multiply(t){return this.multiplyRight(t)}}let tX=new tb.P,tY=new tb.P,t0=new tb.P,t1=new tb.P,t2=new tb.P,t3=new tb.P,t6=new tb.P;class t5{constructor(t=[0,0,0],e=[0,0,0,0,0,0,0,0,0]){this.center=new tb.P().from(t),this.halfAxes=new tk(e)}get halfSize(){let t=this.halfAxes.getColumn(0),e=this.halfAxes.getColumn(1),i=this.halfAxes.getColumn(2);return[new tb.P(t).len(),new tb.P(e).len(),new tb.P(i).len()]}get quaternion(){let t=this.halfAxes.getColumn(0),e=this.halfAxes.getColumn(1),i=this.halfAxes.getColumn(2),s=new tb.P(t).normalize(),r=new tb.P(e).normalize(),n=new tb.P(i).normalize();return new tH().fromMatrix3(new tk([...s,...r,...n]))}fromCenterHalfSizeQuaternion(t,e,i){let s=new tH(i),r=new tk().fromQuaternion(s);return r[0]=r[0]*e[0],r[1]=r[1]*e[0],r[2]=r[2]*e[0],r[3]=r[3]*e[1],r[4]=r[4]*e[1],r[5]=r[5]*e[1],r[6]=r[6]*e[2],r[7]=r[7]*e[2],r[8]=r[8]*e[2],this.center=new tb.P().from(t),this.halfAxes=r,this}clone(){return new t5(this.center,this.halfAxes)}equals(t){return this===t||!!t&&this.center.equals(t.center)&&this.halfAxes.equals(t.halfAxes)}getBoundingSphere(t=new tT){let e=this.halfAxes,i=e.getColumn(0,t0),s=e.getColumn(1,t1),r=e.getColumn(2,t2),n=tX.copy(i).add(s).add(r);return t.center.copy(this.center),t.radius=n.magnitude(),t}intersectPlane(t){let e=this.center,i=t.normal,s=this.halfAxes,r=i.x,n=i.y,o=i.z,a=Math.abs(r*s[0]+n*s[1]+o*s[2])+Math.abs(r*s[3]+n*s[4]+o*s[5])+Math.abs(r*s[6]+n*s[7]+o*s[8]),h=i.dot(e)+t.distance;return h<=-a?ty.OUTSIDE:h>=a?ty.INSIDE:ty.INTERSECTING}distanceTo(t){return Math.sqrt(this.distanceSquaredTo(t))}distanceSquaredTo(t){let e;let i=tY.from(t).subtract(this.center),s=this.halfAxes,r=s.getColumn(0,t0),n=s.getColumn(1,t1),o=s.getColumn(2,t2),a=r.magnitude(),h=n.magnitude(),l=o.magnitude();r.normalize(),n.normalize(),o.normalize();let u=0;return(e=Math.abs(i.dot(r))-a)>0&&(u+=e*e),(e=Math.abs(i.dot(n))-h)>0&&(u+=e*e),(e=Math.abs(i.dot(o))-l)>0&&(u+=e*e),u}computePlaneDistances(t,e,i=[-0,-0]){let s=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY,n=this.center,o=this.halfAxes,a=o.getColumn(0,t0),h=o.getColumn(1,t1),l=o.getColumn(2,t2),u=t3.copy(a).add(h).add(l).add(n),c=t6.copy(u).subtract(t),d=e.dot(c);return s=Math.min(d,s),r=Math.max(d,r),u.copy(n).add(a).add(h).subtract(l),c.copy(u).subtract(t),s=Math.min(d=e.dot(c),s),r=Math.max(d,r),u.copy(n).add(a).subtract(h).add(l),c.copy(u).subtract(t),s=Math.min(d=e.dot(c),s),r=Math.max(d,r),u.copy(n).add(a).subtract(h).subtract(l),c.copy(u).subtract(t),s=Math.min(d=e.dot(c),s),r=Math.max(d,r),n.copy(u).subtract(a).add(h).add(l),c.copy(u).subtract(t),s=Math.min(d=e.dot(c),s),r=Math.max(d,r),n.copy(u).subtract(a).add(h).subtract(l),c.copy(u).subtract(t),s=Math.min(d=e.dot(c),s),r=Math.max(d,r),n.copy(u).subtract(a).subtract(h).add(l),c.copy(u).subtract(t),s=Math.min(d=e.dot(c),s),r=Math.max(d,r),n.copy(u).subtract(a).subtract(h).subtract(l),c.copy(u).subtract(t),s=Math.min(d=e.dot(c),s),r=Math.max(d,r),i[0]=s,i[1]=r,i}transform(t){this.center.transformAsPoint(t);let e=this.halfAxes.getColumn(0,t0);e.transformAsPoint(t);let i=this.halfAxes.getColumn(1,t1);i.transformAsPoint(t);let s=this.halfAxes.getColumn(2,t2);return s.transformAsPoint(t),this.halfAxes=new tk([...e,...i,...s]),this}getTransform(){throw Error("not implemented")}}var t4=i(49663);let t7=new tb.P,t8=new tb.P;class t9{constructor(t=[0,0,1],e=0){this.normal=new tb.P,this.distance=-0,this.fromNormalDistance(t,e)}fromNormalDistance(t,e){return(0,t4.h)(Number.isFinite(e)),this.normal.from(t).normalize(),this.distance=e,this}fromPointNormal(t,e){t=t7.from(t),this.normal.from(e).normalize();let i=-this.normal.dot(t);return this.distance=i,this}fromCoefficients(t,e,i,s){return this.normal.set(t,e,i),(0,t4.h)((0,Q.fS)(this.normal.len(),1)),this.distance=s,this}clone(){return new t9(this.normal,this.distance)}equals(t){return(0,Q.fS)(this.distance,t.distance)&&(0,Q.fS)(this.normal,t.normal)}getPointDistance(t){return this.normal.dot(t)+this.distance}transform(t){let e=t8.copy(this.normal).transformAsVector(t).normalize(),i=this.normal.scale(-this.distance).transform(t);return this.fromPointNormal(i,e)}projectPointOntoPlane(t,e=[0,0,0]){let i=t7.from(t),s=this.getPointDistance(i),r=t8.copy(this.normal).scale(s);return i.subtract(r).to(e)}}let et=[new tb.P([1,0,0]),new tb.P([0,1,0]),new tb.P([0,0,1])],ee=new tb.P,ei=new tb.P;class es{constructor(t=[]){this.planes=t}fromBoundingSphere(t){this.planes.length=2*et.length;let e=t.center,i=t.radius,s=0;for(let t of et){let r=this.planes[s],n=this.planes[s+1];r||(r=this.planes[s]=new t9),n||(n=this.planes[s+1]=new t9);let o=ee.copy(t).scale(-i).add(e);r.fromPointNormal(o,t);let a=ee.copy(t).scale(i).add(e),h=ei.copy(t).negate();n.fromPointNormal(a,h),s+=2}return this}computeVisibility(t){let e=ty.INSIDE;for(let i of this.planes)switch(t.intersectPlane(i)){case ty.OUTSIDE:return ty.OUTSIDE;case ty.INTERSECTING:e=ty.INTERSECTING}return e}computeVisibilityWithPlaneMask(t,e){if((0,t4.h)(Number.isFinite(e),"parentPlaneMask is required."),e===es.MASK_OUTSIDE||e===es.MASK_INSIDE)return e;let i=es.MASK_INSIDE,s=this.planes;for(let r=0;r<this.planes.length;++r){let n=r<31?1<<r:0;
22if(r<31&&(e&n)==0)continue;let o=s[r],a=t.intersectPlane(o);if(a===ty.OUTSIDE)return es.MASK_OUTSIDE;a===ty.INTERSECTING&&(i|=n)}return i}}es.MASK_OUTSIDE=4294967295,es.MASK_INSIDE=0,es.MASK_INDETERMINATE=2147483647,new tb.P,new tb.P,new tb.P,new tb.P,new tb.P,new tb.P,new tb.P,new tb.P,new tb.P,new tb.P,new tb.P,new tb.P,new tb.P,new tb.P,new tb.P,new tb.P,new tb.P;let er=new tk,en=new tk,eo=new tk,ea=new tk,eh=new tk,el=[1,0,0],eu=[2,2,1],ec=new tb.P,ed=new tb.P,ef=new tb.P,ep=new tb.P,em=new tb.P,eg=new tk,ey={diagonal:new tk,unitary:new tk};var eb=i(78024);let e_=[[.5,.5],[0,0],[0,1],[1,0],[1,1]],ew=e_.concat([[0,.5],[.5,0],[1,.5],[.5,1]]),ex=ew.concat([[.25,.5],[.75,.5]]);class eM{constructor(t,e,i){this.x=t,this.y=e,this.z=i}get children(){if(!this._children){let t=2*this.x,e=2*this.y,i=this.z+1;this._children=[new eM(t,e,i),new eM(t,e+1,i),new eM(t+1,e,i),new eM(t+1,e+1,i)]}return this._children}update(t){let{viewport:e,cullingVolume:i,elevationBounds:s,minZ:r,maxZ:n,bounds:o,offset:a,project:h}=t,l=this.getBoundingVolume(s,a,h);if(o&&!this.insideBounds(o)||0>i.computeVisibility(l))return!1;if(!this.childVisible){let{z:t}=this;if(t<n&&t>=r&&(t+=Math.floor(Math.log2(l.distanceTo(e.cameraPosition)*e.scale/e.height))),t>=n)return this.selected=!0,!0}for(let e of(this.selected=!1,this.childVisible=!0,this.children))e.update(t);return!0}getSelected(t=[]){if(this.selected&&t.push(this),this._children)for(let e of this._children)e.getSelected(t);return t}insideBounds([t,e,i,s]){let r=512/Math.pow(2,this.z);return this.x*r<i&&this.y*r<s&&(this.x+1)*r>t&&(this.y+1)*r>e}getBoundingVolume(t,e,i){if(i){let e=this.z<1?ex:this.z<2?ew:e_,s=[];for(let r of e){let e=eC(this.x+r[0],this.y+r[1],this.z);e[2]=t[0],s.push(i(e)),t[0]!==t[1]&&(e[2]=t[1],s.push(i(e)))}return function(t,e=new t5){if(!t||0===t.length)return e.halfAxes=new tk([0,0,0,0,0,0,0,0,0]),e.center=new tb.P,e;let i=t.length,s=new tb.P(0,0,0);for(let e of t)s.add(e);let r=1/i;s.multiplyByScalar(r);let n=0,o=0,a=0,h=0,l=0,u=0;for(let e of t){let t=ec.copy(e).subtract(s);n+=t.x*t.x,o+=t.x*t.y,a+=t.x*t.z,h+=t.y*t.y,l+=t.y*t.z,u+=t.z*t.z}n*=r,o*=r,a*=r,h*=r,l*=r,u*=r,eg[0]=n,eg[1]=o,eg[2]=a,eg[3]=o,eg[4]=h,eg[5]=l,eg[6]=a,eg[7]=l,eg[8]=u;let{unitary:c}=function(t,e={}){let i=0,s=0;en.identity(),eo.copy(t);let r=1e-20*function(t){let e=0;for(let i=0;i<9;++i){let s=t[i];e+=s*s}return Math.sqrt(e)}(eo);for(;s<10&&function(t){let e=0;for(let i=0;i<3;++i){let s=t[er.getElementIndex(eu[i],el[i])];e+=2*s*s}return Math.sqrt(e)}(eo)>r;)(function(t,e){let i=0,s=1;for(let e=0;e<3;++e){let r=Math.abs(t[er.getElementIndex(eu[e],el[e])]);r>i&&(s=e,i=r)}let r=el[s],n=eu[s],o=1,a=0;if(Math.abs(t[er.getElementIndex(n,r)])>1e-15){let e;let i=(t[er.getElementIndex(n,n)]-t[er.getElementIndex(r,r)])/2/t[er.getElementIndex(n,r)];o=1/Math.sqrt(1+(e=i<0?-1/(-i+Math.sqrt(1+i*i)):1/(i+Math.sqrt(1+i*i)))*e),a=e*o}tk.IDENTITY.to(e),e[er.getElementIndex(r,r)]=e[er.getElementIndex(n,n)]=o,e[er.getElementIndex(n,r)]=a,e[er.getElementIndex(r,n)]=-a})(eo,ea),eh.copy(ea).transpose(),eo.multiplyRight(ea),eo.multiplyLeft(eh),en.multiplyRight(ea),++i>2&&(++s,i=0);return e.unitary=en.toTarget(e.unitary),e.diagonal=eo.toTarget(e.diagonal),e}(eg,ey),d=e.halfAxes.copy(c),f=d.getColumn(0,ef),p=d.getColumn(1,ep),m=d.getColumn(2,em),g=-Number.MAX_VALUE,y=-Number.MAX_VALUE,b=-Number.MAX_VALUE,_=Number.MAX_VALUE,w=Number.MAX_VALUE,x=Number.MAX_VALUE;for(let e of t)ec.copy(e),g=Math.max(ec.dot(f),g),y=Math.max(ec.dot(p),y),b=Math.max(ec.dot(m),b),_=Math.min(ec.dot(f),_),w=Math.min(ec.dot(p),w),x=Math.min(ec.dot(m),x);f=f.multiplyByScalar(.5*(_+g)),p=p.multiplyByScalar(.5*(w+y)),m=m.multiplyByScalar(.5*(x+b)),e.center.copy(f).add(p).add(m);let M=ed.set(g-_,y-w,b-x).multiplyByScalar(.5),v=new tk([M[0],0,0,0,M[1],0,0,0,M[2]]);return e.halfAxes.multiplyRight(v),e}(s)}let s=512/Math.pow(2,this.z),r=this.x*s+512*e,n=512-(this.y+1)*s;return new tx([r,n,t[0]],[r+s,n+s,t[1]])}}let ev=[-1/0,-1/0,1/0,1/0],eS={type:"object",value:null,validate:(t,e)=>e.optional&&null===t||"string"==typeof t||Array.isArray(t)&&t.every(t=>"string"==typeof t),equal:(t,e)=>{if(t===e)return!0;
22if(!Array.isArray(t)||!Array.isArray(e))return!1;let i=t.length;if(i!==e.length)return!1;for(let s=0;s<i;s++)if(t[s]!==e[s])return!1;return!0}};function eT(t,e){let i=[e.transformAsPoint([t[0],t[1]]),e.transformAsPoint([t[2],t[1]]),e.transformAsPoint([t[0],t[3]]),e.transformAsPoint([t[2],t[3]])];return[Math.min(...i.map(t=>t[0])),Math.min(...i.map(t=>t[1])),Math.max(...i.map(t=>t[0])),Math.max(...i.map(t=>t[1]))]}function eP(t,e){if(!t||!t.length)return null;let{index:i,id:s}=e;if(Array.isArray(t)){let e=Math.abs(s.split("").reduce((t,e)=>(t<<5)-t+e.charCodeAt(0)|0,0))%t.length;t=t[e]}let r=t;for(let t of Object.keys(i)){let e=RegExp(`{${t}}`,"g");r=r.replace(e,String(i[t]))}return Number.isInteger(i.y)&&Number.isInteger(i.z)&&(r=r.replace(/\{-y\}/g,String(Math.pow(2,i.z)-i.y-1))),r}function eI(t,e){return 512*Math.pow(2,t)/e}function eC(t,e,i){let s=eI(i,512),r=Math.PI-2*Math.PI*e/s;return[t/s*360-180,180/Math.PI*Math.atan(.5*(Math.exp(r)-Math.exp(-r)))]}function eF(t,e,i,s){let r=eI(i,s);return[t/r*512,e/r*512]}let eV="best-available",eL={[eV]:function(t){for(let e of t)e.state=0;for(let e of t)e.isSelected&&!ek(e)&&eE(e);for(let e of t)e.isVisible=!!(2&e.state)},"no-overlap":function(t){for(let e of t)e.state=0;for(let e of t)e.isSelected&&ek(e);for(let e of Array.from(t).sort((t,e)=>t.zoom-e.zoom))if(e.isVisible=!!(2&e.state),e.children&&(e.isVisible||1&e.state))for(let t of e.children)t.state=1;else e.isSelected&&eE(e)},never:()=>{}},eA={extent:null,tileSize:512,maxZoom:null,minZoom:null,maxCacheSize:null,maxCacheByteSize:null,refinementStrategy:"best-available",zRange:null,maxRequests:6,debounceTime:0,zoomOffset:0,onTileLoad:()=>{},onTileUnload:()=>{},onTileError:()=>{}};class eN{constructor(t){let e,i;this._getCullBounds=(i={},t=>{for(let s in t)if(!function(t,e){if(t===e)return!0;if(Array.isArray(t)){let i=t.length;if(!e||e.length!==i)return!1;for(let s=0;s<i;s++)if(t[s]!==e[s])return!1;return!0}return!1}(t[s],i[s])){e=function({viewport:t,z:e,cullRect:i}){return(t.subViewports||[t]).map(t=>(function t(e,i,s){if(!Array.isArray(i)){let t=s.x-e.x,r=s.y-e.y,{width:n,height:o}=s,a={targetZ:i},h=e.unproject([t,r],a),l=e.unproject([t+n,r],a),u=e.unproject([t,r+o],a),c=e.unproject([t+n,r+o],a);return[Math.min(h[0],l[0],u[0],c[0]),Math.min(h[1],l[1],u[1],c[1]),Math.max(h[0],l[0],u[0],c[0]),Math.max(h[1],l[1],u[1],c[1])]}let r=t(e,i[0],s),n=t(e,i[1],s);return[Math.min(r[0],n[0]),Math.min(r[1],n[1]),Math.max(r[2],n[2]),Math.max(r[3],n[3])]})(t,e||0,i))}(t),i=t;break}return e}),this.opts={...eA,...t},this.setOptions(this.opts),this.onTileLoad=t=>{this.opts.onTileLoad?.(t),this.opts.maxCacheByteSize&&(this._cacheByteSize+=t.byteLength,this._resizeCache())},this._requestScheduler=new ta({throttleRequests:this.opts.maxRequests>0||this.opts.debounceTime>0,maxRequests:this.opts.maxRequests,debounceTime:this.opts.debounceTime}),this._cache=new Map,this._tiles=[],this._dirty=!1,this._cacheByteSize=0,this._viewport=null,this._zRange=null,this._selectedTiles=null,this._frameNumber=0,this._modelMatrix=new T.y,this._modelMatrixInverse=new T.y}get tiles(){return this._tiles}get selectedTiles(){return this._selectedTiles}get isLoaded(){return null!==this._selectedTiles&&this._selectedTiles.every(t=>t.isLoaded)}get needsReload(){return null!==this._selectedTiles&&this._selectedTiles.some(t=>t.needsReload)}setOptions(t){Object.assign(this.opts,t),Number.isFinite(t.maxZoom)&&(this._maxZoom=Math.floor(t.maxZoom)),Number.isFinite(t.minZoom)&&(this._minZoom=Math.ceil(t.minZoom))}finalize(){for(let t of this._cache.values())t.isLoading&&t.abort();this._cache.clear(),this._tiles=[],this._selectedTiles=null}reloadAll(){for(let t of this._cache.keys()){let e=this._cache.get(t);this._selectedTiles&&this._selectedTiles.includes(e)?e.setNeedsReload():this._cache.delete(t)}}update(t,{zRange:e,modelMatrix:i}={zRange:null,modelMatrix:null}){let s=i?new T.y(i):new T.y,r=!s.equals(this._modelMatrix);if(this._viewport&&t.equals(this._viewport)&&(0,Q.fS)(this._zRange,e)&&!r)this.needsReload&&(this._selectedTiles=this._selectedTiles.map(t=>this._getTile(t.index,!0)));else{r&&(this._modelMatrixInverse=s.clone().invert(),this._modelMatrix=s),this._viewport=t,this._zRange=e;let i=this.getTileIndices({viewport:t,maxZoom:this._maxZoom,minZoom:this._minZoom,zRange:e,modelMatrix:this._modelMatrix,modelMatrixInverse:this._modelMatrixInverse});this._selectedTiles=i.map(t=>this._getTile(t,!0)),this._dirty&&this._rebuildTree()}let n=this.updateTileStates();return this._pruneRequests(),this._dirty&&this._resizeCache(),n&&this._frameNumber++,this._frameNumber}isTileVisible(t,e){if(!t.isVisible)return!1;if(e&&this._viewport){let i=this._getCullBounds({viewport:this._viewport,z:this._zRange,cullRect:e}),{bbox:s}=t;
22for(let[t,e,r,n]of i){let i;if("west"in s)i=s.west<r&&s.east>t&&s.south<n&&s.north>e;else{let o=Math.min(s.top,s.bottom),a=Math.max(s.top,s.bottom);i=s.left<r&&s.right>t&&o<n&&a>e}if(i)return!0}return!1}return!0}getTileIndices({viewport:t,maxZoom:e,minZoom:i,zRange:s,modelMatrix:r,modelMatrixInverse:n}){let{tileSize:o,extent:a,zoomOffset:h}=this.opts;return function({viewport:t,maxZoom:e,minZoom:i,zRange:s,extent:r,tileSize:n=512,modelMatrix:o,modelMatrixInverse:a,zoomOffset:h=0}){let l=t.isGeospatial?Math.round(t.zoom+Math.log2(512/n))+h:Math.ceil(t.zoom)+h;if("number"==typeof i&&Number.isFinite(i)&&l<i){if(!r)return[];l=i}"number"==typeof e&&Number.isFinite(e)&&l>e&&(l=e);let u=r;return o&&a&&r&&!t.isGeospatial&&(u=eT(r,o)),t.isGeospatial?function(t,e,i,s){let r=t instanceof tp&&t.resolution?t.projectPosition:null,n=new es(Object.values(t.getFrustumPlanes()).map(({normal:t,distance:e})=>new t9(t.clone().negate(),e))),o=t.distanceScales.unitsPerMeter[2],a=i&&i[0]*o||0,h=i&&i[1]*o||0,l=t instanceof tg.Z&&t.pitch<=60?e:0;if(s){let[t,e,i,r]=s,n=(0,eb.w5)([t,r]),o=(0,eb.w5)([i,e]);s=[n[0],512-n[1],o[0],512-o[1]]}let u=new eM(0,0,0),c={viewport:t,project:r,cullingVolume:n,elevationBounds:[a,h],minZ:l,maxZ:e,bounds:s,offset:0};if(u.update(c),t instanceof tg.Z&&t.subViewports&&t.subViewports.length>1){for(c.offset=-1;u.update(c)&&!(--c.offset<-3););for(c.offset=1;u.update(c)&&!(++c.offset>3););}return u.getSelected()}(t,l,s,r):function(t,e,i,s,r){let n;let o=(n=t.getBounds(),t.isGeospatial?[Math.max(n[0],s[0]),Math.max(n[1],s[1]),Math.min(n[2],s[2]),Math.min(n[3],s[3])]:[Math.max(Math.min(n[0],s[2]),s[0]),Math.max(Math.min(n[1],s[3]),s[1]),Math.min(Math.max(n[2],s[0]),s[2]),Math.min(Math.max(n[3],s[1]),s[3])]),a=eI(e,i),[h,l,u,c]=r?eT(o,r).map(t=>t*a/512):o.map(t=>t*a/512),d=[];for(let t=Math.floor(h);t<u;t++)for(let i=Math.floor(l);i<c;i++)d.push({x:t,y:i,z:e});return d}(t,l,n,u||ev,a)}({viewport:t,maxZoom:e,minZoom:i,zRange:s,tileSize:o,extent:a,modelMatrix:r,modelMatrixInverse:n,zoomOffset:h})}getTileId(t){return`${t.x}-${t.y}-${t.z}`}getTileZoom(t){return t.z}getTileMetadata(t){let{tileSize:e}=this.opts;return{bbox:function(t,e,i,s,r=512){if(t.isGeospatial){let[t,r]=eC(e,i,s),[n,o]=eC(e+1,i+1,s);return{west:t,north:r,east:n,south:o}}let[n,o]=eF(e,i,s,r),[a,h]=eF(e+1,i+1,s,r);return{left:n,top:o,right:a,bottom:h}}(this._viewport,t.x,t.y,t.z,e)}}getParentIndex(t){return{x:Math.floor(t.x/2),y:Math.floor(t.y/2),z:t.z-1}}updateTileStates(){let t=this.opts.refinementStrategy||eV,e=Array(this._cache.size),i=0;for(let t of this._cache.values())e[i++]=t.isVisible,t.isSelected=!1,t.isVisible=!1;for(let t of this._selectedTiles)t.isSelected=!0,t.isVisible=!0;for(let s of(("function"==typeof t?t:eL[t])(Array.from(this._cache.values())),i=0,this._cache.values()))if(e[i++]!==s.isVisible)return!0;return!1}_pruneRequests(){let{maxRequests:t=0}=this.opts,e=[],i=0;for(let t of this._cache.values())!t.isLoading||(i++,t.isSelected||t.isVisible||e.push(t));for(;t>0&&i>t&&e.length>0;)e.shift().abort(),i--}_rebuildTree(){let{_cache:t}=this;for(let e of t.values())e.parent=null,e.children&&(e.children.length=0);for(let e of t.values()){let t=this._getNearestAncestor(e);e.parent=t,t?.children&&t.children.push(e)}}_resizeCache(){let{_cache:t,opts:e}=this,i=e.maxCacheSize||(e.maxCacheByteSize?1/0:5*this.selectedTiles.length),s=e.maxCacheByteSize||1/0;if(t.size>i||this._cacheByteSize>s){for(let[r,n]of t)if(n.isVisible||n.isSelected||(this._cacheByteSize-=e.maxCacheByteSize?n.byteLength:0,t.delete(r),this.opts.onTileUnload?.(n)),t.size<=i&&this._cacheByteSize<=s)break;this._rebuildTree(),this._dirty=!0}this._dirty&&(this._tiles=Array.from(this._cache.values()).sort((t,e)=>t.zoom-e.zoom),this._dirty=!1)}_getTile(t,e){let i=this.getTileId(t),s=this._cache.get(i),r=!1;return!s&&e?(Object.assign(s=new th(t),this.getTileMetadata(s.index)),Object.assign(s,{id:i,zoom:this.getTileZoom(s.index)}),r=!0,this._cache.set(i,s),this._dirty=!0):s&&s.needsReload&&(r=!0),s&&r&&s.loadData({getData:this.opts.getTileData,requestScheduler:this._requestScheduler,onLoad:this.onTileLoad,onError:this.opts.onTileError}),s}_getNearestAncestor(t){let{_minZoom:e=0}=this,i=t.index;for(;this.getTileZoom(i)>e;){i=this.getParentIndex(i);let t=this._getTile(i);if(t)return t}return null}}function ek(t){let e=t;for(;e;){if(e.isLoaded||e.content)return e.state|=2,!0;e=e.parent}return!1}function eE(t){for(let e of t.children)e.isLoaded||e.content?e.state|=2:eE(e)}let eO={TilesetClass:eN,data:{type:"data",value:[]},dataComparator:eS.equal,renderSubLayers:{type:"function",value:t=>new g.Z(t)},getTileData:{type:"function",optional:!0,value:null},onViewportLoad:{type:"function",optional:!0,value:null},onTileLoad:{type:"function",value:t=>{}},onTileUnload:{type:"function",value:t=>{}},onTileError:{type:"function",value:t=>console.error(t)},extent:{type:"array",optional:!0,value:null,compare:!0},tileSize:512,maxZoom:null,minZoom:0,maxCacheSize:null,maxCacheByteSize:null,refinementStrategy:eV,zRange:null,maxRequests:6,debounceTime:0,zoomOffset:0};class eR extends ts.Z{static{this.defaultProps=eO}static{this.layerName="TileLayer"}
22initializeState(){this.state={tileset:null,isLoaded:!1}}finalizeState(){this.state?.tileset?.finalize()}get isLoaded(){return!!this.state?.tileset?.selectedTiles?.every(t=>t.isLoaded&&t.layers&&t.layers.every(t=>t.isLoaded))}shouldUpdateState({changeFlags:t}){return t.somethingChanged}updateState({changeFlags:t}){let{tileset:e}=this.state,i=t.propsOrDataChanged||t.updateTriggersChanged,s=t.dataChanged||t.updateTriggersChanged&&(t.updateTriggersChanged.all||t.updateTriggersChanged.getTileData);e?i&&(e.setOptions(this._getTilesetOptions()),s?e.reloadAll():e.tiles.forEach(t=>{t.layers=null})):(e=new this.props.TilesetClass(this._getTilesetOptions()),this.setState({tileset:e})),this._updateTileset()}_getTilesetOptions(){let{tileSize:t,maxCacheSize:e,maxCacheByteSize:i,refinementStrategy:s,extent:r,maxZoom:n,minZoom:o,maxRequests:a,debounceTime:h,zoomOffset:l}=this.props;return{maxCacheSize:e,maxCacheByteSize:i,maxZoom:n,minZoom:o,tileSize:t,refinementStrategy:s,extent:r,maxRequests:a,debounceTime:h,zoomOffset:l,getTileData:this.getTileData.bind(this),onTileLoad:this._onTileLoad.bind(this),onTileError:this._onTileError.bind(this),onTileUnload:this._onTileUnload.bind(this)}}_updateTileset(){let t=this.state.tileset,{zRange:e,modelMatrix:i}=this.props,s=t.update(this.context.viewport,{zRange:e,modelMatrix:i}),{isLoaded:r}=t,n=this.state.isLoaded!==r,o=this.state.frameNumber!==s;r&&(n||o)&&this._onViewportLoad(),o&&this.setState({frameNumber:s}),this.state.isLoaded=r}_onViewportLoad(){let{tileset:t}=this.state,{onViewportLoad:e}=this.props;e&&e(t.selectedTiles)}_onTileLoad(t){this.props.onTileLoad(t),t.layers=null,this.setNeedsUpdate()}_onTileError(t,e){this.props.onTileError(t),e.layers=null,this.setNeedsUpdate()}_onTileUnload(t){this.props.onTileUnload(t)}getTileData(t){let{data:e,getTileData:i,fetch:s}=this.props,{signal:r}=t;return(t.url="string"==typeof e||Array.isArray(e)?eP(e,t):null,i)?i(t):s&&t.url?s(t.url,{propName:"data",layer:this,signal:r}):null}renderSubLayers(t){return this.props.renderSubLayers(t)}getSubLayerPropsByTile(t){return null}getPickingInfo(t){let e=t.sourceLayer,i=e.props.tile,s=t.info;return s.picked&&(s.tile=i),s.sourceTile=i,s.sourceTileSubLayer=e,s}_updateAutoHighlight(t){t.sourceTileSubLayer.updateAutoHighlight(t)}renderLayers(){return this.state.tileset.tiles.map(t=>{let e=this.getSubLayerPropsByTile(t);if(t.isLoaded||t.content){if(t.layers)e&&t.layers[0]&&Object.keys(e).some(i=>t.layers[0].props[i]!==e[i])&&(t.layers=t.layers.map(t=>t.clone(e)));else{let i=this.renderSubLayers({...this.props,...this.getSubLayerProps({id:t.id,updateTriggers:this.props.updateTriggers}),data:t.content,_offset:0,tile:t});t.layers=(0,tr.x)(i,Boolean).map(i=>i.clone({tile:t,...e}))}}return t.layers})}filterSubLayer({layer:t,cullRect:e}){let{tile:i}=t.props;return this.state.tileset.isTileVisible(i,e)}}let ez={...g.Z.defaultProps,data:eS,onDataLoad:{type:"function",value:null,optional:!0,compare:!1},uniqueIdProperty:"",highlightedFeatureId:null,loaders:[U],binary:!0};class eq extends eR{static{this.layerName="MVTLayer"}static{this.defaultProps=ez}initializeState(){super.initializeState();let t=void 0===this.context.viewport.resolution&&this.props.binary;this.setState({binary:t,data:null,tileJSON:null,hoveredFeatureId:null,hoveredFeatureLayerName:null})}get isLoaded(){return!!(this.state?.data&&super.isLoaded)}updateState({props:t,oldProps:e,context:i,changeFlags:s}){s.dataChanged&&this._updateTileData(),this.state?.data&&(super.updateState({props:t,oldProps:e,context:i,changeFlags:s}),this._setWGS84PropertyForTiles());let{highlightColor:r}=t;r!==e.highlightColor&&Array.isArray(r)&&this.setState({highlightColor:r})}async _updateTileData(){var t;let e=this.props.data,i=null;if("string"!=typeof e||(t=e,/(?=.*{z})(?=.*{x})(?=.*({y}|{-y}))/.test(t)))e&&"object"==typeof e&&"tilejson"in e&&(i=e);else{let{onDataLoad:t,fetch:s}=this.props;this.setState({data:null,tileJSON:null});try{i=await s(e,{propName:"data",layer:this,loaders:[]})}catch(t){this.raiseError(t,"loading TileJSON"),e=null}t&&t(i,{propName:"data",layer:this})}i&&(e=i.tiles),this.setState({data:e,tileJSON:i})}_getTilesetOptions(){let t=super._getTilesetOptions(),e=this.state.tileJSON,{minZoom:i,maxZoom:s}=this.props;return e&&(Number.isFinite(e.minzoom)&&e.minzoom>i&&(t.minZoom=e.minzoom),Number.isFinite(e.maxzoom)&&(!Number.isFinite(s)||e.maxzoom<s)&&(t.maxZoom=e.maxzoom)),t}renderLayers(){return this.state?.data?super.renderLayers():null}getTileData(t){let{data:e,binary:i}=this.state,{index:s,signal:r}=t,n=eP(e,t);if(!n)return Promise.reject("Invalid URL");let o=this.getLoadOptions(),{fetch:a}=this.props;return a(n,{propName:"data",layer:this,loadOptions:o={...o,mimeType:"application/x-protobuf",mvt:{...o?.mvt,coordinates:this.context.viewport.resolution?"wgs84":"local",tileIndex:s},gis:i?{format:"binary"}:{}},signal:r})}renderSubLayers(t){let{x:e,y:i,z:s}=t.tile.index,r=Math.pow(2,s),n=512/r,o=new T.y().scale([n,-n,1]);t.autoHighlight=!1,this.context.viewport.resolution||(t.modelMatrix=o,t.coordinateOrigin=[512*e/r,512*(1-i/r),0],t.coordinateSystem=p.Df.CARTESIAN,t.extensions=[...t.extensions||[],new S]);let a=super.renderSubLayers(t);return!this.state.binary||a instanceof g.Z||m.Z.warn("renderSubLayers() must return GeoJsonLayer when using binary:true")(),a}_updateAutoHighlight(t){let{uniqueIdProperty:e}=this.props,{hoveredFeatureId:i,hoveredFeatureLayerName:s}=this.state,r=t.object,n=null,o=null;r&&(n=eB(r,e),o=eD(r));let{highlightColor:a}=this.props;"function"==typeof a&&(a=a(t)),(i!==n||s!==o)&&this.setState({highlightColor:a,hoveredFeatureId:n,hoveredFeatureLayerName:o})}getPickingInfo(t){let e=super.getPickingInfo(t),i=!!this.context.viewport.resolution;if(this.state.binary&&-1!==e.index){let{data:i}=t.sourceLayer.props;e.object=W(i,{globalFeatureId:e.index})}return e.object&&!i&&(e.object=eG(e.object,e.tile.bbox,this.context.viewport)),e}getSubLayerPropsByTile(t){return{highlightedObjectIndex:this.getHighlightedObjectIndex(t),highlightColor:this.state.highlightColor}}getHighlightedObjectIndex(t){let{hoveredFeatureId:e,hoveredFeatureLayerName:i,binary:s}=this.state,{uniqueIdProperty:r,highlightedFeatureId:n}=this.props,o=t.content,a=ej(n);if(!(ej(e)||a))return -1;let h=a?n:e;return Array.isArray(o)?o.findIndex(t=>{let e=eB(t,r)===h,s=a||eD(t)===i;return e&&s}
22):o&&s?function(t,e,i,s){for(let r of te){let n=t[r]&&function(t,e,i,s){let r=t.featureIds.value;if(!r.length)return -1;let n=0,o=r[r.length-1]+1;if(s){let e=function(t,e){if(!t.__layers){let e={},{properties:i}=t;for(let t=0;t<i.length;t++){let{layerName:s}=i[t];s&&(e[s]?e[s][1]=t:e[s]=[t,t])}t.__layers=e}return t.__layers[e]}(t,s);if(!e)return -1;n=e[0],o=e[1]+1}let a=-1;if(e in t.numericProps){let s=t.numericProps[e].value.findIndex((t,e)=>t===i&&r[e]>=n&&r[e]<o);return s>=0?t.globalFeatureIds.value[s]:-1}return e?a=ti(t.properties,t=>t[e]===i,n,o):t.fields&&(a=ti(t.fields,t=>t.id===i,n,o)),a>=0?function(t,e){if(!t.__ids){let e=[],i=t.featureIds.value,s=t.globalFeatureIds.value;for(let t=0;t<i.length;t++)e[i[t]]=s[t];t.__ids=e}return t.__ids[e]}(t,a):-1}(t[r],e,i,s);if(n>=0)return n}return -1}(o,r,h,a?"":i):-1}_pickObjects(t){let{deck:e,viewport:i}=this.context,s=i.width,r=i.height,n=i.x,o=i.y,a=[this.id];return e.pickObjects({x:n,y:o,width:s,height:r,layerIds:a,maxObjects:t})}getRenderedFeatures(t=null){let e=this._pickObjects(t),i=new Set,s=[];for(let t of e){let e=eB(t.object,this.props.uniqueIdProperty);void 0===e?s.push(t.object):i.has(e)||(i.add(e),s.push(t.object))}return s}_setWGS84PropertyForTiles(){let t="dataInWGS84";this.state.tileset.selectedTiles.forEach(e=>{e.hasOwnProperty(t)||Object.defineProperty(e,t,{get:()=>{var t;if(!e.content)return null;if(this.state.binary&&Array.isArray(e.content)&&!e.content.length)return[];let{bbox:i}=e;if(void 0===e._contentWGS84&&Number.isFinite((t=i).west)&&Number.isFinite(t.north)&&Number.isFinite(t.east)&&Number.isFinite(t.south)){let t=this.state.binary?W(e.content):e.content;e._contentWGS84=t.map(t=>eG(t,i,this.context.viewport))}return e._contentWGS84}})})}}function eB(t,e){return t.properties&&e?t.properties[e]:"id"in t?t.id:void 0}function eD(t){return t.properties?.layerName||null}function ej(t){return null!=t&&""!==t}function eG(t,e,i){let s={...t,geometry:{type:t.geometry.type}};return Object.defineProperty(s.geometry,"coordinates",{get:()=>(function(t,e,i){let s=i.projectFlat([e.west,e.north]),r=i.projectFlat([e.east,e.south]);return{...t,coordinates:H[t.type](t.coordinates,[s,r],i)}})(t.geometry,e,i).coordinates}),s}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.