@mappedin/mappedin-js 6.0.1-beta.44 → 6.0.1-beta.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_LICENSES.txt +1 -20
- package/lib/esm/{GLTFExporter-4THLS4PM.js → GLTFExporter-33O74ZRA.js} +1 -1
- package/lib/esm/{GLTFLoader-KOQIUT25.js → GLTFLoader-TFEUICFY.js} +1 -1
- package/lib/esm/{browser-LGW6JLJT.js → browser-IE62BVYL.js} +1 -1
- package/lib/esm/{chunk-5SY5TZBS.js → chunk-7QYC6UYU.js} +1 -1
- package/lib/esm/chunk-AGPZKMLJ.js +1 -0
- package/lib/esm/chunk-HALSTKAB.js +1 -0
- package/lib/esm/{chunk-A5SAO63E.js → chunk-HTXG2WUL.js} +1 -1
- package/lib/esm/chunk-L5IJY45Y.js +1 -0
- package/lib/esm/chunk-N5U7Y27D.js +1 -0
- package/lib/esm/{chunk-QO7JQA7V.js → chunk-O57EU3PO.js} +1 -1
- package/lib/esm/index.d.ts +0 -10
- package/lib/esm/index.js +1 -1
- package/lib/esm/{inspector-KJE2KP6V.js → inspector-CC3UZQDZ.js} +1 -1
- package/lib/esm/{internal-RS3PVAR3.js → internal-MEGLEQC5.js} +1 -1
- package/lib/esm/outdoor-context-v4-5DHMHSDP.js +1 -0
- package/lib/esm/{roboto-regular-PKVZDOB2.js → roboto-regular-E2V4PXOH.js} +1 -1
- package/lib/esm/{text3d-QIM5QGO6.js → text3d-3PC3DCSJ.js} +1 -1
- package/package.json +2 -2
- package/lib/esm/chunk-KNDTFHOY.js +0 -1
- package/lib/esm/chunk-M46A4YQ5.js +0 -1
- package/lib/esm/chunk-Q2KR5YO7.js +0 -1
- package/lib/esm/chunk-XGYIT3MM.js +0 -1
- package/lib/esm/outdoor-context-v4-6CUOE2HW.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var i=Object.create;var f=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var l=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty;var h=a=>{throw TypeError(a)};var n=(a,b,c)=>b in a?f(a,b,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[b]=c;var p=(a,b)=>()=>(a&&(b=a(a=0)),b);var q=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports),r=(a,b)=>{for(var c in b)f(a,c,{get:b[c],enumerable:!0})},o=(a,b,c,d)=>{if(b&&typeof b=="object"||typeof b=="function")for(let e of k(b))!m.call(a,e)&&e!==c&&f(a,e,{get:()=>b[e],enumerable:!(d=j(b,e))||d.enumerable});return a};var s=(a,b,c)=>(c=a!=null?i(l(a)):{},o(b||!a||!a.__esModule?f(c,"default",{value:a,enumerable:!0}):c,a));var t=(a,b,c)=>n(a,typeof b!="symbol"?b+"":b,c),g=(a,b,c)=>b.has(a)||h("Cannot "+c);var u=(a,b,c)=>(g(a,b,"read from private field"),c?c.call(a):b.get(a)),v=(a,b,c)=>b.has(a)?h("Cannot add the same private member more than once"):b instanceof WeakSet?b.add(a):b.set(a,c),w=(a,b,c,d)=>(g(a,b,"write to private field"),d?d.call(a,c):b.set(a,c),c),x=(a,b,c)=>(g(a,b,"access private method"),c);export{p as a,q as b,r as c,s as d,t as e,u as f,v as g,w as h,x as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as ne,j as ge,k as be}from"./chunk-XGYIT3MM.js";import{$a as ye,M as b,N as ee,P as te,R as I,S as re,ma as he}from"./chunk-QO7JQA7V.js";import{a as s,b as m}from"./chunk-KNDTFHOY.js";import{e as i,f,g as E,h as y}from"./chunk-Q2KR5YO7.js";s();var ie="[MappedinJS]",Re=(o=>(o[o.LOG=0]="LOG",o[o.WARN=1]="WARN",o[o.ERROR=2]="ERROR",o[o.SILENT=3]="SILENT",o))(Re||{});function mt(r){0<=r&&r<=3&&(xe.logState=r)}var xe={logState:m.env.NODE_ENV==="test"?3:0,log(...r){this.logState<=0&&console.log(ie,...r)},warn(...r){this.logState<=1&&console.warn(ie,...r)},error(...r){this.logState<=2&&console.error(ie,...r)},assert(...r){console.assert(...r)},time(r){console.time(r)},timeEnd(r){console.timeEnd(r)}},oe=xe;s();s();var N=class extends Error{};N.prototype.name="InvalidTokenError";function Be(r){return decodeURIComponent(atob(r).replace(/(.)/g,(e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function Ve(r){let e=r.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Be(e)}catch{return atob(e)}}function ve(r,e){if(typeof r!="string")throw new N("Invalid token specified: must be a string");e||(e={});let t=e.header===!0?0:1,n=r.split(".")[t];if(typeof n!="string")throw new N("Invalid token specified: missing part #".concat(t+1));let o;try{o=Ve(n)}catch(a){throw new N("Invalid token specified: invalid base64 for part #".concat(t+1," (").concat(a.message,")"))}try{return JSON.parse(o)}catch(a){throw new N("Invalid token specified: invalid json for part #".concat(t+1," (").concat(a.message,")"))}}s();var _=63710088e-1;function Mt(r){var t,n;let e=ve(r);if(e.sub==null)throw new Error("Access token is missing sub claim.");return{sub:e.sub,aud:typeof e.aud=="string"?[e.aud]:(t=e.aud)!=null?t:[],capabilities:(n=e.capabilities)!=null?n:{}}}function L(r){return r*(Math.PI/180)}function je(r){return r*(180/Math.PI)}function Dt(r,e){let t=Math.pow(10,e);return Math.sign(r)*Math.round(Math.abs(r)*t)/t}function Te(r,e){return(r%e+e)%e}function Et([r,e],[t,n]){let o=L(n-e),a=L(t-r),u=L(e),l=L(n),c=Math.sin(o/2)*Math.sin(o/2)+Math.sin(a/2)*Math.sin(a/2)*Math.cos(u)*Math.cos(l),d=2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c));return _*d}function St([r,e],[t,n]){let o=L(e),a=L(r),u=L(n),c=L(t)-a,d=Math.sin(c)*Math.cos(u),h=Math.cos(o)*Math.sin(u)-Math.sin(o)*Math.cos(u)*Math.cos(c);return je((Math.atan2(d,h)+Math.PI*2)%(Math.PI*2))}function Pt(r,e){let t=Te(r,Math.PI*2),n=Te(e,Math.PI*2),o=n-t,a=n+(o>Math.PI?-Math.PI*2:o<-Math.PI?Math.PI*2:0);return{start:t,end:a}}function Ue(r){return r instanceof ye?Number.isFinite(r.min.x)&&Number.isFinite(r.min.y)&&Number.isFinite(r.max.x)&&Number.isFinite(r.max.y):Number.isFinite(r.min.x)&&Number.isFinite(r.min.y)&&Number.isFinite(r.max.x)&&Number.isFinite(r.max.y)&&Number.isFinite(r.min.z)&&Number.isFinite(r.max.z)}function wt(r,e,t,n){return(r<e||r>t)&&oe.warn(n),Math.min(t,Math.max(e,r))}function Ct(r,e){if(r==null||e==null)return r===e;if(r.length!==e.length)return!1;for(let t=0;t<r.length;t++)if(r[t]!==e[t])return!1;return!0}s();function Ot(r,e,t=!1){let n=null,o=0;return function(...a){o++,o===1&&t===!0&&r(...a);let u=()=>{(!t||o>1)&&r(...a),n=null,o=0};clearTimeout(n),n=setTimeout(u,e)}}s();s();var ae=class r extends Error{constructor(t){super(t);i(this,"name","AssertionError");Error.captureStackTrace&&Error.captureStackTrace(this,r)}};function Me(r,e){if(r==null){let t;if(e!=null&&e.customMessage)t=e.customMessage;else{let a=e!=null&&e.valueName?"'".concat(e.valueName,"'"):"value";t="Expected ".concat(a," to be defined, but received ").concat(r)}let n=(e==null?void 0:e.errorClass)||ae,o=new n(t);throw(e==null?void 0:e.captureStackTrace)!==!1&&Error.captureStackTrace&&Error.captureStackTrace(o,Me),o}}function Gt(r,e,t){if(Me(r),(r==null?void 0:r.type)!==e){let n="Expected type ".concat(e," but got ").concat(r==null?void 0:r.type);throw new Error(t!=null?t:n)}}s();var se=[0,4,6,8,10],x=()=>{let r=new Array(16).fill(0),e=Math.random()*4294967296;for(let n=0;n<r.length;n++)n>0&&(n&3)===0&&(e=Math.random()*4294967296),r[n]=e>>>((n&3)<<3)&255;let t=r.map(n=>n.toString(16).padStart(2,"0"));return t[6]="4"+t[6][1],t[8]=["8","9","a","b"].includes(t[7][0])?t[7]:"a"+t[7][1],se.map((n,o)=>t.slice(n,o===se.length-1?void 0:se[o+1]).join("")).join("-")};s();var ue=class{constructor(){i(this,"_subscribers",{})}publish(e,t){!this._subscribers||!this._subscribers[e]||this._subscribers[e].forEach(function(n){typeof n=="function"&&n(t)})}on(e,t){this._subscribers||(this._subscribers={}),this._subscribers[e]=this._subscribers[e]||[],this._subscribers[e].push(t)}off(e,t){if(!this._subscribers||this._subscribers[e]==null)return;let n=this._subscribers[e].indexOf(t);n!==-1&&this._subscribers[e].splice(n,1)}destroy(){this._subscribers={}}};s();var De="mi-session-data",Ee="mi-local-data",R,v,T,J=class J{constructor(){E(this,v);E(this,T);try{let e=sessionStorage.getItem(De);e?y(this,v,JSON.parse(e)):y(this,v,{id:x()})}catch{y(this,v,{id:x()})}try{let e=localStorage.getItem(Ee);e?y(this,T,JSON.parse(e)):y(this,T,{deviceId:x()})}catch{y(this,T,{deviceId:x()})}f(this,v).id||(f(this,v).id=x()),f(this,T).deviceId||(f(this,T).deviceId=x())}static getInstance(){return f(this,R)||y(this,R,new J),f(this,R)}static ___clearInstance(){y(this,R,void 0)}saveSessionData(e,t){f(this,v)[e]=t;try{return sessionStorage.setItem(De,JSON.stringify(f(this,v))),!0}catch{return!1}}loadSessionData(e){let t=f(this,v)[e];if(t!=null)return t}saveLocalData(e,t){f(this,T)[e]=t;try{return localStorage.setItem(Ee,JSON.stringify(f(this,T))),!0}catch{return!1}}loadLocalData(e){let t=f(this,T)[e];if(t!=null)return t}};R=new WeakMap,v=new WeakMap,T=new WeakMap,E(J,R);var le=J;s();function He(r){return(r%(2*Math.PI)+2*Math.PI)%(2*Math.PI)}s();s();s();s();s();s();s();s();var g=63710088e-1,Pe={centimeters:g*100,centimetres:g*100,degrees:g/111325,feet:g*3.28084,inches:g*39.37,kilometers:g/1e3,kilometres:g/1e3,meters:g,metres:g,miles:g/1609.344,millimeters:g*1e3,millimetres:g*1e3,nauticalmiles:g/1852,radians:1,yards:g*1.0936},ir={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:1/1e3,kilometres:1/1e3,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/g,yards:1.0936133};function O(r,e,t){t===void 0&&(t={});var n={type:"Feature"};return(t.id===0||t.id)&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.properties=e||{},n.geometry=r,n}function ze(r,e,t){if(t===void 0&&(t={}),!r)throw new Error("coordinates is required");if(!Array.isArray(r))throw new Error("coordinates must be an Array");if(r.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Se(r[0])||!Se(r[1]))throw new Error("coordinates must contain numbers");var n={type:"Point",coordinates:r};return O(n,e,t)}function or(r,e,t){t===void 0&&(t={});for(var n=0,o=r;n<o.length;n++){var a=o[n];if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var u=0;u<a[a.length-1].length;u++)if(a[a.length-1][u]!==a[0][u])throw new Error("First and last Position are not equivalent.")}var l={type:"Polygon",coordinates:r};return O(l,e,t)}function we(r,e,t){if(t===void 0&&(t={}),r.length<2)throw new Error("coordinates must be an array of two or more positions");var n={type:"LineString",coordinates:r};return O(n,e,t)}function ar(r,e){e===void 0&&(e={});var t={type:"FeatureCollection"};return e.id&&(t.id=e.id),e.bbox&&(t.bbox=e.bbox),t.features=r,t}function sr(r,e,t){t===void 0&&(t={});var n={type:"MultiLineString",coordinates:r};return O(n,e,t)}function ur(r,e,t){t===void 0&&(t={});var n={type:"MultiPolygon",coordinates:r};return O(n,e,t)}function lr(r,e){e===void 0&&(e="kilometers");var t=Pe[e];if(!t)throw new Error(e+" units is invalid");return r*t}function cr(r,e){e===void 0&&(e="kilometers");var t=Pe[e];if(!t)throw new Error(e+" units is invalid");return r/t}function mr(r){var e=r%(2*Math.PI);return e*180/Math.PI}function dr(r){var e=r%360;return e*Math.PI/180}function Se(r){return!isNaN(r)&&r!==null&&!Array.isArray(r)}function q(r,e,t){if(r!==null)for(var n,o,a,u,l,c,d,h=0,p=0,P,w=r.type,M=w==="FeatureCollection",k=w==="Feature",Z=M?r.features.length:1,G=0;G<Z;G++){d=M?r.features[G].geometry:k?r.geometry:r,P=d?d.type==="GeometryCollection":!1,l=P?d.geometries.length:1;for(var Q=0;Q<l;Q++){var D=0,F=0;if(u=P?d.geometries[Q]:d,u!==null){c=u.coordinates;var C=u.type;switch(h=t&&(C==="Polygon"||C==="MultiPolygon")?1:0,C){case null:break;case"Point":if(e(c,p,G,D,F)===!1)return!1;p++,D++;break;case"LineString":case"MultiPoint":for(n=0;n<c.length;n++){if(e(c[n],p,G,D,F)===!1)return!1;p++,C==="MultiPoint"&&D++}C==="LineString"&&D++;break;case"Polygon":case"MultiLineString":for(n=0;n<c.length;n++){for(o=0;o<c[n].length-h;o++){if(e(c[n][o],p,G,D,F)===!1)return!1;p++}C==="MultiLineString"&&D++,C==="Polygon"&&F++}C==="Polygon"&&D++;break;case"MultiPolygon":for(n=0;n<c.length;n++){for(F=0,o=0;o<c[n].length;o++){for(a=0;a<c[n][o].length-h;a++){if(e(c[n][o][a],p,G,D,F)===!1)return!1;p++}F++}D++}break;case"GeometryCollection":for(n=0;n<u.geometries.length;n++)if(q(u.geometries[n],e,t)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function gr(r,e){if(r.type==="Feature")e(r,0);else if(r.type==="FeatureCollection")for(var t=0;t<r.features.length&&e(r.features[t],t)!==!1;t++);}function We(r,e){var t,n,o,a,u,l,c,d,h,p,P=0,w=r.type==="FeatureCollection",M=r.type==="Feature",k=w?r.features.length:1;for(t=0;t<k;t++){for(l=w?r.features[t].geometry:M?r.geometry:r,d=w?r.features[t].properties:M?r.properties:{},h=w?r.features[t].bbox:M?r.bbox:void 0,p=w?r.features[t].id:M?r.id:void 0,c=l?l.type==="GeometryCollection":!1,u=c?l.geometries.length:1,o=0;o<u;o++){if(a=c?l.geometries[o]:l,a===null){if(e(null,P,d,h,p)===!1)return!1;continue}switch(a.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(e(a,P,d,h,p)===!1)return!1;break}case"GeometryCollection":{for(n=0;n<a.geometries.length;n++)if(e(a.geometries[n],P,d,h,p)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}P++}}function Je(r,e){We(r,function(t,n,o,a,u){var l=t===null?null:t.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return e(O(t,o,{bbox:a,id:u}),n,0)===!1?!1:void 0}var c;switch(l){case"MultiPoint":c="Point";break;case"MultiLineString":c="LineString";break;case"MultiPolygon":c="Polygon";break}for(var d=0;d<t.coordinates.length;d++){var h=t.coordinates[d],p={type:c,coordinates:h};if(e(O(p,o),n,d)===!1)return!1}})}function qe(r,e){Je(r,function(t,n,o){var a=0;if(t.geometry){var u=t.geometry.type;if(!(u==="Point"||u==="MultiPoint")){var l,c=0,d=0,h=0;if(q(t,function(p,P,w,M,k){if(l===void 0||n>c||M>d||k>h){l=p,c=n,d=M,h=k,a=0;return}var Z=we([l,p],t.properties);if(e(Z,n,o,k,a)===!1)return!1;a++,l=p})===!1)return!1}}})}function br(r,e,t){var n=t,o=!1;return qe(r,function(a,u,l,c,d){o===!1&&t===void 0?n=a:n=e(n,a,u,l,c,d),o=!0}),n}function ce(r){var e=[1/0,1/0,-1/0,-1/0];return q(r,function(t){e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]<t[0]&&(e[2]=t[0]),e[3]<t[1]&&(e[3]=t[1])}),e}ce.default=ce;var Ce=ce;function Ie(r){return Ce(r)}s();var me="#ffffff";var de=class{constructor(e={}){i(this,"initialColor",me);i(this,"color",me);i(this,"initialTopColor");i(this,"topColor");i(this,"topTexture");i(this,"texture");i(this,"hoverColor");i(this,"dirty",!0);i(this,"visible",!0);i(this,"opacity",1);i(this,"width",.1);i(this,"height",.1);i(this,"initialHeight",.1);i(this,"altitude",0);i(this,"join","round");i(this,"cap","round");i(this,"showImage",!0);i(this,"flipImageToFaceCamera",!0);i(this,"url");i(this,"side","double");i(this,"renderOrder",0);this.color=(e==null?void 0:e.color)!==void 0?e.color:this.color,this.initialColor=this.color,this.width=(e==null?void 0:e.width)!==void 0?e.width:this.width,this.opacity=(e==null?void 0:e.opacity)!==void 0?e.opacity:this.opacity,this.visible=(e==null?void 0:e.visible)!==void 0?e.visible:this.visible,this.height=(e==null?void 0:e.height)!==void 0?e.height:this.height,this.initialHeight=this.height,this.altitude=(e==null?void 0:e.altitude)!==void 0?e.altitude:this.altitude,this.join=(e==null?void 0:e.join)!==void 0?e.join:this.join,this.cap=(e==null?void 0:e.cap)!==void 0?e.cap:this.cap,this.topColor=e==null?void 0:e.topColor,this.initialTopColor=this.topColor,this.texture=e==null?void 0:e.texture,this.topTexture=e==null?void 0:e.topTexture,this.showImage=(e==null?void 0:e.showImage)!==void 0?e.showImage:this.showImage,this.flipImageToFaceCamera=(e==null?void 0:e.flipImageToFaceCamera)!==void 0?e.flipImageToFaceCamera:this.flipImageToFaceCamera,this.url=e==null?void 0:e.url,this.side=(e==null?void 0:e.side)!==void 0?e.side:this.side,this.renderOrder=(e==null?void 0:e.renderOrder)!==void 0?e.renderOrder:this.renderOrder}};var Y=class extends he{constructor(){super(...arguments);i(this,"type","entityBatchedMesh");i(this,"userData",{entities:{}})}},j,U,B,Le=class{constructor(e){i(this,"mesh");i(this,"focusMesh");i(this,"imageMesh");i(this,"textMesh");i(this,"textEntityId");i(this,"type","geometry");i(this,"dirty",!0);i(this,"detached",!1);i(this,"instanceIndex",-1);i(this,"geometry");i(this,"material");i(this,"feature");i(this,"currentHeight",.1);i(this,"focusable",!1);i(this,"color",new re);i(this,"topColor",new re);i(this,"position",new b);E(this,j,0);E(this,U,1);E(this,B);i(this,"texturesVisible",!1);this.feature=e}get visible(){return this.mesh&&this.instanceIndex!==-1?this.mesh.getVisibleAt(this.instanceIndex):!1}set visible(e){this.mesh&&this.instanceIndex!==-1&&this.mesh.setVisibleAt(this.instanceIndex,e)}get renderOrder(){return this.mesh?this.mesh.renderOrder:0}set renderOrder(e){this.mesh&&(this.mesh.renderOrder=e)}setColor(e,t){this.color.set(e),this.topColor.set(t),this.material&&this.material.setColor(this.instanceIndex,this.color,this.topColor)}getColor(){var e;return(e=this.material)==null?void 0:e.getColor(this.instanceIndex)}get altitude(){return f(this,j)}set altitude(e){this.mesh&&(this.mesh.position.z=e,y(this,j,e))}get opacity(){return f(this,U)}set opacity(e){if(this.material&&(this.material.opacity=e,this.material.transparent=e<1,this.material.needsUpdate=!0),this.imageMesh){let t=Array.isArray(this.imageMesh.material)?this.imageMesh.material:[this.imageMesh.material];for(let n of t)n.opacity=e,n.needsUpdate=!0}y(this,U,e)}get texture(){var e,t;return(t=(e=this.material)==null?void 0:e.texture)==null?void 0:t.image.src}set texture(e){this.material&&(this.material.texture=e)}get textureInstance(){var e;return(e=this.material)==null?void 0:e.texture}set topTexture(e){this.material&&(this.material.topTexture=e)}get topTexture(){var e,t;return(t=(e=this.material)==null?void 0:e.topTexture)==null?void 0:t.image.src}get topTextureInstance(){var e;return(e=this.material)==null?void 0:e.topTexture}set blendTexture(e){this.material&&(this.material.blendTexture=e)}get featureBbox(){return f(this,B)?f(this,B):(y(this,B,Ie(this.feature)),f(this,B))}showTextures(){this.material&&(this.material.showTextures(this.instanceIndex),this.texturesVisible=!0)}hideTextures(){this.material&&(this.material.hideTextures(this.instanceIndex),this.texturesVisible=!1)}removeSideTexture(){this.material&&this.material.removeSideTexture(this.instanceIndex)}removeTopTexture(){this.material&&this.material.removeTopTexture(this.instanceIndex)}};j=new WeakMap,U=new WeakMap,B=new WeakMap;s();var Oe="#ffffff",A,$=class{constructor(e={}){i(this,"color",Oe);i(this,"initialColor",Oe);i(this,"topColor");i(this,"initialTopColor");i(this,"opacity",1);i(this,"height");E(this,A);i(this,"outline",!0);i(this,"texture");i(this,"topTexture");i(this,"dirty",!0);var t,n;this.color=(t=e==null?void 0:e.color)!=null?t:this.color,this.initialColor=this.color,this.topColor=e==null?void 0:e.topColor,this.initialTopColor=this.topColor,this.opacity=(n=e==null?void 0:e.opacity)!=null?n:this.opacity,this.height=e==null?void 0:e.height,this.shading=e==null?void 0:e.shading,this.outline=(e==null?void 0:e.outline)!==void 0?!!e.outline:this.outline}get shading(){return f(this,A)}set shading(e){var t;if(!e){y(this,A,void 0);return}y(this,A,(t=f(this,A))!=null?t:{start:0,end:0,intensity:0}),Object.assign(f(this,A),e)}};A=new WeakMap;var S=class extends I{constructor(t,n=new $){super();i(this,"visible",!0);i(this,"type","geometry-group");i(this,"components");i(this,"userData",{entityId:"",entities3D:new Set,opacity:1,dirty:!0,shadingDirty:!0});this.components=[n],this.userData.entityId=t}setVisible(t){this.visible!==t&&(this.visible=t,this.dispatchEvent({type:"childremoved",child:this}))}getOpacity(){return this.userData.opacity}setOpacity(t){this.userData.opacity=t}removeEntity(){this.dispatchEvent({type:"childremoved",child:this})}getfirstChildEntityId(){let t;for(let o of this.children)if(!o.userData.detached){t=o;break}return t instanceof Y?Object.values(t.userData.entities)[0]:void 0}setAltitude(t){this.position.z!==t&&(this.position.z=t,this.dispatchEvent({type:"childremoved",child:this}))}get altitude(){return this.position.z}};s();var V=class extends I{},H=class{constructor(e,t,n=0){i(this,"id");i(this,"verticalOffset");i(this,"positionDirty",!0);i(this,"occluderId");i(this,"object3d",new V);i(this,"components");i(this,"disposed",!1);i(this,"worldPosition",new b);this.id=e.id||x(),this.components=[e],this.verticalOffset=n,this.object3d=new V,this.object3d.position.set(t.x,t.y,t.z+n),this.object3d.userData.entityId=this.id,this.object3d.userData.type=this.type}get type(){return this.components[0].type}get parentObject3D(){return this.object3d.parent}get attachedTo(){return this.object3d.userData.attachedEntityId}get position(){return this.object3d.getWorldPosition(this.worldPosition),this.worldPosition}setAltitude(e){this.object3d.position.z=e}};s();var K=class extends I{constructor(){super(...arguments);i(this,"type","geometry");i(this,"userData",{entityId:"",type:"geometry"})}raycast(t,n){this.userData.type==="model"&&this.children[0]&&t.intersectObject(this.children[0],!0).forEach(o=>{n.push(o)})}},z=class{constructor(e,t){i(this,"id",x());i(this,"components");i(this,"entities2D",new Map);this.components=[e,t]}get object3d(){return this.components[0].mesh}get parentObject3D(){var e;return(e=this.components[0].mesh)==null?void 0:e.parent}get type(){return this.components[0].type}attach(e){this.parentObject3D instanceof S?e.object3d.userData.attachedEntityId=this.id:this.entities2D.set(e.id,e)}detach(e){this.parentObject3D instanceof S&&(e.object3d.userData.parentEntityId=void 0),this.entities2D.delete(e.id)}removeAllEntities(){for(let e of this.entities2D.values())this.detach(e)}};var W=class r extends I{constructor(t){super();i(this,"childrenIds",new Set);i(this,"children",[]);i(this,"type","group-container");i(this,"userData",{entityId:"",entities2D:new Set,dirty:!0,occluderDirty:!1,opacity:1,computedOpacity:1});i(this,"components",[]);this.userData.entityId=t}addOccluderFeature(t,n){this.userData.occluderFeature=t,this.userData.occluderId=n,this.userData.occluderDirty=!0}addEntity(t){t instanceof r?(this.childrenIds.add(t.userData.entityId),this.add(t)):t instanceof H?(this.childrenIds.add(t.id),this.add(t.object3d),this.userData.entities2D.add(t.id)):t instanceof S?(this.childrenIds.add(t.userData.entityId),this.add(t)):t instanceof z&&t.object3d&&(this.childrenIds.add(t.id),this.add(t.object3d)),this.dispatchEvent({type:"childadded",child:this})}removeEntity(t){t instanceof r?(this.childrenIds.delete(t.userData.entityId),this.remove(t)):t instanceof H?(this.childrenIds.delete(t.id),this.userData.entities2D.delete(t.id),this.remove(t.object3d)):t instanceof S?(this.childrenIds.delete(t.userData.entityId),this.remove(t)):t instanceof z&&t.object3d&&(this.childrenIds.delete(t.id),this.add(t.object3d)),this.dispatchEvent({type:"childremoved",child:this})}setVisible(t){this.visible!==t&&(this.visible=t,this.dispatchEvent({type:"childremoved",child:this}))}setAltitude(t){this.position.z!==t&&(this.position.z=t,this.dispatchEvent({type:"childremoved",child:this}))}get altitude(){return this.position.z}setOpacity(t){this.userData.opacity=t}get opacity(){return this.userData.opacity}};s();var cn={top:0,bottom:0,left:0,right:0,type:"pixel"},Ae="mappedin";var mn=250;s();function $e(r){let e=r.min,t=r.max,n=new b(e.x,e.y,e.z),o=new b(t.x,e.y,e.z),a=new b(e.x,t.y,e.z),u=new b(t.x,t.y,e.z);return[n,o,a,u]}s();function ke(r,e){let t;return typeof e=="string"||typeof e=="number"?(t=r.geometry2DMap.get(e),t==null&&(t=r.geometry3DMap.get(e))):typeof(e==null?void 0:e.id)=="string"||typeof(e==null?void 0:e.id)=="number"?(t=r.geometry2DMap.get(e.id),t==null&&(t=r.geometry3DMap.get(e.id))):t=e,t}function bn(r,e,t=[],n=new ee,o){(r.getSystems().renderSystem.threeDdirty||r.getSystems().renderSystem.twoDdirty)&&r.renderSync();let a=ke(r.getInternalState(),e);return Ge(a,t,n,o),t}var X=new b;function Ge(r,e=[],t=new ee,n){if(r.visible){if(r.isMesh||r.isLine||r.isPoints){let o=r.geometry;if(o.isBufferGeometry){let a=o.attributes.position;for(let u=0;u<a.count;u++)X.fromBufferAttribute(a,u),n!==void 0&&(X.z=n),e.push(X.clone()),t.expandByPoint(X)}}for(let o of r.children)Ge(o,e,t,n)}}s();function Ke(){return typeof window>"u"?1:Math.min(window.devicePixelRatio,2)}s();function Xe(r,e,t=!1){let n=null,o=0;return function(...a){o++,o===1&&t===!0&&r(...a);let u=()=>{(!t||o>1)&&r(...a),n=null,o=0};clearTimeout(n),n=setTimeout(u,e)}}s();var Ze=(()=>{let r;return{getDeviceType(){if(r)return r;let{userAgent:e,platform:t,maxTouchPoints:n}=window.navigator,o=/(iphone|ipod|ipad)/i.test(e),a=t==="iPad"||t.indexOf("Mac")===0&&n>0&&!window.MSStream,u=/android/i.test(e);return r={isIpad:a,isMobile:u||o||a,isSafari12:/Version\/12.+Safari/.test(e),isFirefox:/Firefox/.test(e),isWindows:/windows/i.test(e)},r},_reset(){r=void 0}}})(),Fe=Ze.getDeviceType,Ne=(()=>{let r,e,t;function n(){if(e!==void 0)return e;r||(r=document.createElement("canvas"));let a=r.getContext("webgl")||r.getContext("experimental-webgl");if(!a)return e;try{let u=Fe().isFirefox?null:a.getExtension("WEBGL_debug_renderer_info");return e=u?a.getParameter(u.UNMASKED_RENDERER_WEBGL):a.getParameter(a.RENDERER),e}catch{let l=new Error("Failed getting device info");throw l.name="FailedGettingDeviceInfo",l}}function o(){var u,l;if(!Fe().isWindows)return!1;if(t!==void 0)return t;let a=(l=(u=Qe())==null?void 0:u.toLowerCase())!=null?l:"";return t=a.includes("intel")&&(a.includes("uhd")||a.includes("iris")),t}return{getInfo:n,shouldDisableOffscreenCanvas:o,_setCanvas(a){r=a,e=void 0,t=void 0}}})(),Qe=Ne.getInfo,et=Ne.shouldDisableOffscreenCanvas;s();function tt(r,e){let t={};for(let n=0;n<e.length;n++){let o=e[n];o in r&&(t[o]=r[o])}return t}function rt(r){return Object.keys(r).length===0}s();var nt=r=>e=>{if(!e.includes("mappedin")){let t={};for(let n in r){let o=r[n];e.includes("mappedin")||(r[n]=o)}return{url:e,headers:t}}return{url:e,headers:r}};function Vn(r,e,t,n){let o=r*(Math.PI/180),a=n/_,u=r+a*180/Math.PI,l=t/_/Math.cos(o),c=e+l*180/Math.PI;return{lat:u,lon:c}}function jn(r,e,t,n){let o=t*(Math.PI/180),a=n*(Math.PI/180),u=r*(Math.PI/180),l=e*(Math.PI/180),c=o-u,d=a-l,h=_*d*Math.cos(u),p=_*c;return{x:h,y:p}}var it=(r,e)=>{var t;if(r.children&&r.visible)for(let n of r.children){if(n.visible&&n.type)if("entities3D"in n.userData&&((t=n.userData)!=null&&t.entities3D)&&n.type==="geometry-group"){e.add(n.userData.entityId);for(let o of n.userData.entities3D.values())e.add(o)}else(n.type==="group-container"||n.type==="custom-geometry"||n instanceof K)&&e.add(n.userData.entityId);it(n,e)}return e},ot=(r,e)=>{var t;if(r.children&&r.visible&&!((t=r.userData)!=null&&t.hidden))for(let n of r.children)n.visible&&n instanceof V&&e.add(n.userData.entityId),ot(n,e);return e};function at(r,e){for(let t in e){if(e[t]==null){r[t]=void 0;continue}typeof e[t]=="object"?at(r[t],e[t]):r[t]=e[t]}return r}function Un(r,e,t,n){let o={translateX:r.x,translateY:r.y,translateZ:r.z,scale:r.meterInMercatorCoordinateUnits()},a=new te,u=new b(o.scale,-o.scale,o.scale),l=new te().makeTranslation(o.translateX,o.translateY,o.translateZ).scale(u),c=t.elevation;return{id:Ae,type:"custom",renderingMode:"3d",render:(d,h)=>{if(a.fromArray(h),c!==t.elevation){let p=be.fromLngLat(r.toLngLat(),t.elevation);l.makeTranslation(o.translateX,o.translateY,-p.z).scale(u)}e.projectionMatrix=a.multiply(l),c=t.elevation,n()}}}function st(r){return fetch(r,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({grant_type:"client_credentials"})})}async function Hn(r){let e=await st(r),{access_token:t}=await e.json();return{"x-mappedin-tiles-key":t}}function zn(r,e=0){let t=3735928559^e,n=1103547991^e;for(let o=0,a;o<r.length;o++)a=r.charCodeAt(o),t=Math.imul(t^a,2654435761),n=Math.imul(n^a,1597334677);return t=Math.imul(t^t>>>16,2246822507)^Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507)^Math.imul(t^t>>>13,3266489909),4294967296*(2097151&n)+(t>>>0)}var ut=r=>r;var Wn=r=>1-Math.cos(r*Math.PI/2);function Jn(r,e,t,n,o,a=ut){r=Math.max(e,Math.min(r,t));let u=(r-Math.min(e,t))/Math.abs(t-e),l=a(u);return n+l*(o-n)}function qn(r,e,t){let n=r*(Math.PI/180)/2,o=e/2;return t*Math.tan(n)/o}function Yn(r){return new ge(new ne(r[0][0],r[0][1]),new ne(r[1][0],r[1][1])).getCenter().toArray()}function $n(r,e){return r<e||e<=12}function Kn(r){let e=1;return r.type==="geometry-group"&&r.parent!=null&&r.parent instanceof W?e=r.parent.userData.computedOpacity:(r.type==="geometry"||r.type==="custom-geometry"||r.type==="model")&&r.parentObject3D!=null&&r.parentObject3D instanceof S&&r.parentObject3D.parent!=null&&r.parentObject3D.parent instanceof W&&(e=r.parentObject3D.parent.userData.computedOpacity),e}s();var pe=class{constructor(e){i(this,"visible");i(this,"altitude");i(this,"color");i(this,"dirty",!0);i(this,"maxWidth");i(this,"maxHeight");i(this,"hoverByPolygon");i(this,"flipToFaceCamera",_e.flipToFaceCamera);i(this,"font");i(this,"fillOpacity");i(this,"fontSize");i(this,"margin");i(this,"outlineWidth");i(this,"outlineBlur");i(this,"outlineOffsetX");i(this,"strokeColor");i(this,"strokeOpacity");i(this,"strokeWidth");i(this,"hoverColor");i(this,"outlineOffsetY");i(this,"outlineColor");i(this,"outlineOpacity");e&&Object.assign(this,e)}getState(e=!1){let t={};for(let n in this)!e&&n==="dirty"||this[n]!==void 0&&(t[n]=this[n]);return t}},_e=Object.freeze({visible:!0,color:"black",flipToFaceCamera:!0,fillOpacity:1,font:void 0,fontSize:2,margin:[.2,1,.2,1.5],outlineColor:"black",outlineOpacity:1,outlineWidth:0,outlineOffsetX:0,outlineOffsetY:0,outlineBlur:0,strokeOpacity:1,strokeWidth:0,maxWidth:void 0,maxHeight:void 0,strokeColor:"black",hoverColor:void 0});s();s();var fe=class{constructor(e){i(this,"dirty",!0);i(this,"visible",!0);i(this,"opacity",1);i(this,"verticalOffset",0);i(this,"interactive",!1);i(this,"color");i(this,"material");i(this,"rotation");i(this,"scale");e&&Object.assign(this,e)}};s();var lt=[1,1,1],ct=[0,0,0];export{ie as a,Re as b,mt as c,oe as d,_ as e,Mt as f,L as g,Dt as h,Et as i,St as j,Pt as k,Ue as l,wt as m,Ct as n,Ot as o,Gt as p,x as q,ue as r,le as s,O as t,ze as u,or as v,we as w,ar as x,sr as y,ur as z,lr as A,cr as B,mr as C,dr as D,q as E,gr as F,Je as G,br as H,Ce as I,me as J,de as K,Y as L,Le as M,$ as N,S as O,V as P,H as Q,K as R,z as S,W as T,cn as U,Ae as V,mn as W,$e as X,ke as Y,bn as Z,Ke as _,Xe as $,et as aa,tt as ba,rt as ca,nt as da,He as ea,Vn as fa,jn as ga,it as ha,ot as ia,at as ja,Un as ka,Hn as la,zn as ma,ut as na,Wn as oa,Jn as pa,qn as qa,Yn as ra,$n as sa,Kn as ta,pe as ua,_e as va,fe as wa,lt as xa,ct as ya};
|
|
1
|
+
import{h as ne,i as ge,j as be}from"./chunk-L5IJY45Y.js";import{$a as ye,M as b,N as ee,P as te,R as I,S as re,ma as he}from"./chunk-O57EU3PO.js";import{a as s,b as m}from"./chunk-N5U7Y27D.js";import{e as i,f,g as E,h as y}from"./chunk-HALSTKAB.js";s();var ie="[MappedinJS]",Re=(o=>(o[o.LOG=0]="LOG",o[o.WARN=1]="WARN",o[o.ERROR=2]="ERROR",o[o.SILENT=3]="SILENT",o))(Re||{});function mt(r){0<=r&&r<=3&&(xe.logState=r)}var xe={logState:m.env.NODE_ENV==="test"?3:0,log(...r){this.logState<=0&&console.log(ie,...r)},warn(...r){this.logState<=1&&console.warn(ie,...r)},error(...r){this.logState<=2&&console.error(ie,...r)},assert(...r){console.assert(...r)},time(r){console.time(r)},timeEnd(r){console.timeEnd(r)}},oe=xe;s();s();var N=class extends Error{};N.prototype.name="InvalidTokenError";function Be(r){return decodeURIComponent(atob(r).replace(/(.)/g,(e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function Ve(r){let e=r.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Be(e)}catch{return atob(e)}}function ve(r,e){if(typeof r!="string")throw new N("Invalid token specified: must be a string");e||(e={});let t=e.header===!0?0:1,n=r.split(".")[t];if(typeof n!="string")throw new N("Invalid token specified: missing part #".concat(t+1));let o;try{o=Ve(n)}catch(a){throw new N("Invalid token specified: invalid base64 for part #".concat(t+1," (").concat(a.message,")"))}try{return JSON.parse(o)}catch(a){throw new N("Invalid token specified: invalid json for part #".concat(t+1," (").concat(a.message,")"))}}s();var _=63710088e-1;function Mt(r){var t,n;let e=ve(r);if(e.sub==null)throw new Error("Access token is missing sub claim.");return{sub:e.sub,aud:typeof e.aud=="string"?[e.aud]:(t=e.aud)!=null?t:[],capabilities:(n=e.capabilities)!=null?n:{}}}function L(r){return r*(Math.PI/180)}function je(r){return r*(180/Math.PI)}function Dt(r,e){let t=Math.pow(10,e);return Math.sign(r)*Math.round(Math.abs(r)*t)/t}function Te(r,e){return(r%e+e)%e}function Et([r,e],[t,n]){let o=L(n-e),a=L(t-r),u=L(e),l=L(n),c=Math.sin(o/2)*Math.sin(o/2)+Math.sin(a/2)*Math.sin(a/2)*Math.cos(u)*Math.cos(l),d=2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c));return _*d}function St([r,e],[t,n]){let o=L(e),a=L(r),u=L(n),c=L(t)-a,d=Math.sin(c)*Math.cos(u),h=Math.cos(o)*Math.sin(u)-Math.sin(o)*Math.cos(u)*Math.cos(c);return je((Math.atan2(d,h)+Math.PI*2)%(Math.PI*2))}function Pt(r,e){let t=Te(r,Math.PI*2),n=Te(e,Math.PI*2),o=n-t,a=n+(o>Math.PI?-Math.PI*2:o<-Math.PI?Math.PI*2:0);return{start:t,end:a}}function Ue(r){return r instanceof ye?Number.isFinite(r.min.x)&&Number.isFinite(r.min.y)&&Number.isFinite(r.max.x)&&Number.isFinite(r.max.y):Number.isFinite(r.min.x)&&Number.isFinite(r.min.y)&&Number.isFinite(r.max.x)&&Number.isFinite(r.max.y)&&Number.isFinite(r.min.z)&&Number.isFinite(r.max.z)}function wt(r,e,t,n){return(r<e||r>t)&&oe.warn(n),Math.min(t,Math.max(e,r))}function Ct(r,e){if(r==null||e==null)return r===e;if(r.length!==e.length)return!1;for(let t=0;t<r.length;t++)if(r[t]!==e[t])return!1;return!0}s();function Ot(r,e,t=!1){let n=null,o=0;return function(...a){o++,o===1&&t===!0&&r(...a);let u=()=>{(!t||o>1)&&r(...a),n=null,o=0};clearTimeout(n),n=setTimeout(u,e)}}s();s();var ae=class r extends Error{constructor(t){super(t);i(this,"name","AssertionError");Error.captureStackTrace&&Error.captureStackTrace(this,r)}};function Me(r,e){if(r==null){let t;if(e!=null&&e.customMessage)t=e.customMessage;else{let a=e!=null&&e.valueName?"'".concat(e.valueName,"'"):"value";t="Expected ".concat(a," to be defined, but received ").concat(r)}let n=(e==null?void 0:e.errorClass)||ae,o=new n(t);throw(e==null?void 0:e.captureStackTrace)!==!1&&Error.captureStackTrace&&Error.captureStackTrace(o,Me),o}}function Gt(r,e,t){if(Me(r),(r==null?void 0:r.type)!==e){let n="Expected type ".concat(e," but got ").concat(r==null?void 0:r.type);throw new Error(t!=null?t:n)}}s();var se=[0,4,6,8,10],x=()=>{let r=new Array(16).fill(0),e=Math.random()*4294967296;for(let n=0;n<r.length;n++)n>0&&(n&3)===0&&(e=Math.random()*4294967296),r[n]=e>>>((n&3)<<3)&255;let t=r.map(n=>n.toString(16).padStart(2,"0"));return t[6]="4"+t[6][1],t[8]=["8","9","a","b"].includes(t[7][0])?t[7]:"a"+t[7][1],se.map((n,o)=>t.slice(n,o===se.length-1?void 0:se[o+1]).join("")).join("-")};s();var ue=class{constructor(){i(this,"_subscribers",{})}publish(e,t){!this._subscribers||!this._subscribers[e]||this._subscribers[e].forEach(function(n){typeof n=="function"&&n(t)})}on(e,t){this._subscribers||(this._subscribers={}),this._subscribers[e]=this._subscribers[e]||[],this._subscribers[e].push(t)}off(e,t){if(!this._subscribers||this._subscribers[e]==null)return;let n=this._subscribers[e].indexOf(t);n!==-1&&this._subscribers[e].splice(n,1)}destroy(){this._subscribers={}}};s();var De="mi-session-data",Ee="mi-local-data",R,v,T,J=class J{constructor(){E(this,v);E(this,T);try{let e=sessionStorage.getItem(De);e?y(this,v,JSON.parse(e)):y(this,v,{id:x()})}catch{y(this,v,{id:x()})}try{let e=localStorage.getItem(Ee);e?y(this,T,JSON.parse(e)):y(this,T,{deviceId:x()})}catch{y(this,T,{deviceId:x()})}f(this,v).id||(f(this,v).id=x()),f(this,T).deviceId||(f(this,T).deviceId=x())}static getInstance(){return f(this,R)||y(this,R,new J),f(this,R)}static ___clearInstance(){y(this,R,void 0)}saveSessionData(e,t){f(this,v)[e]=t;try{return sessionStorage.setItem(De,JSON.stringify(f(this,v))),!0}catch{return!1}}loadSessionData(e){let t=f(this,v)[e];if(t!=null)return t}saveLocalData(e,t){f(this,T)[e]=t;try{return localStorage.setItem(Ee,JSON.stringify(f(this,T))),!0}catch{return!1}}loadLocalData(e){let t=f(this,T)[e];if(t!=null)return t}};R=new WeakMap,v=new WeakMap,T=new WeakMap,E(J,R);var le=J;s();function He(r){return(r%(2*Math.PI)+2*Math.PI)%(2*Math.PI)}s();s();s();s();s();s();s();s();var g=63710088e-1,Pe={centimeters:g*100,centimetres:g*100,degrees:g/111325,feet:g*3.28084,inches:g*39.37,kilometers:g/1e3,kilometres:g/1e3,meters:g,metres:g,miles:g/1609.344,millimeters:g*1e3,millimetres:g*1e3,nauticalmiles:g/1852,radians:1,yards:g*1.0936},ir={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:1/1e3,kilometres:1/1e3,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/g,yards:1.0936133};function O(r,e,t){t===void 0&&(t={});var n={type:"Feature"};return(t.id===0||t.id)&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.properties=e||{},n.geometry=r,n}function ze(r,e,t){if(t===void 0&&(t={}),!r)throw new Error("coordinates is required");if(!Array.isArray(r))throw new Error("coordinates must be an Array");if(r.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Se(r[0])||!Se(r[1]))throw new Error("coordinates must contain numbers");var n={type:"Point",coordinates:r};return O(n,e,t)}function or(r,e,t){t===void 0&&(t={});for(var n=0,o=r;n<o.length;n++){var a=o[n];if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var u=0;u<a[a.length-1].length;u++)if(a[a.length-1][u]!==a[0][u])throw new Error("First and last Position are not equivalent.")}var l={type:"Polygon",coordinates:r};return O(l,e,t)}function we(r,e,t){if(t===void 0&&(t={}),r.length<2)throw new Error("coordinates must be an array of two or more positions");var n={type:"LineString",coordinates:r};return O(n,e,t)}function ar(r,e){e===void 0&&(e={});var t={type:"FeatureCollection"};return e.id&&(t.id=e.id),e.bbox&&(t.bbox=e.bbox),t.features=r,t}function sr(r,e,t){t===void 0&&(t={});var n={type:"MultiLineString",coordinates:r};return O(n,e,t)}function ur(r,e,t){t===void 0&&(t={});var n={type:"MultiPolygon",coordinates:r};return O(n,e,t)}function lr(r,e){e===void 0&&(e="kilometers");var t=Pe[e];if(!t)throw new Error(e+" units is invalid");return r*t}function cr(r,e){e===void 0&&(e="kilometers");var t=Pe[e];if(!t)throw new Error(e+" units is invalid");return r/t}function mr(r){var e=r%(2*Math.PI);return e*180/Math.PI}function dr(r){var e=r%360;return e*Math.PI/180}function Se(r){return!isNaN(r)&&r!==null&&!Array.isArray(r)}function q(r,e,t){if(r!==null)for(var n,o,a,u,l,c,d,h=0,p=0,P,w=r.type,M=w==="FeatureCollection",k=w==="Feature",Z=M?r.features.length:1,G=0;G<Z;G++){d=M?r.features[G].geometry:k?r.geometry:r,P=d?d.type==="GeometryCollection":!1,l=P?d.geometries.length:1;for(var Q=0;Q<l;Q++){var D=0,F=0;if(u=P?d.geometries[Q]:d,u!==null){c=u.coordinates;var C=u.type;switch(h=t&&(C==="Polygon"||C==="MultiPolygon")?1:0,C){case null:break;case"Point":if(e(c,p,G,D,F)===!1)return!1;p++,D++;break;case"LineString":case"MultiPoint":for(n=0;n<c.length;n++){if(e(c[n],p,G,D,F)===!1)return!1;p++,C==="MultiPoint"&&D++}C==="LineString"&&D++;break;case"Polygon":case"MultiLineString":for(n=0;n<c.length;n++){for(o=0;o<c[n].length-h;o++){if(e(c[n][o],p,G,D,F)===!1)return!1;p++}C==="MultiLineString"&&D++,C==="Polygon"&&F++}C==="Polygon"&&D++;break;case"MultiPolygon":for(n=0;n<c.length;n++){for(F=0,o=0;o<c[n].length;o++){for(a=0;a<c[n][o].length-h;a++){if(e(c[n][o][a],p,G,D,F)===!1)return!1;p++}F++}D++}break;case"GeometryCollection":for(n=0;n<u.geometries.length;n++)if(q(u.geometries[n],e,t)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function gr(r,e){if(r.type==="Feature")e(r,0);else if(r.type==="FeatureCollection")for(var t=0;t<r.features.length&&e(r.features[t],t)!==!1;t++);}function We(r,e){var t,n,o,a,u,l,c,d,h,p,P=0,w=r.type==="FeatureCollection",M=r.type==="Feature",k=w?r.features.length:1;for(t=0;t<k;t++){for(l=w?r.features[t].geometry:M?r.geometry:r,d=w?r.features[t].properties:M?r.properties:{},h=w?r.features[t].bbox:M?r.bbox:void 0,p=w?r.features[t].id:M?r.id:void 0,c=l?l.type==="GeometryCollection":!1,u=c?l.geometries.length:1,o=0;o<u;o++){if(a=c?l.geometries[o]:l,a===null){if(e(null,P,d,h,p)===!1)return!1;continue}switch(a.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(e(a,P,d,h,p)===!1)return!1;break}case"GeometryCollection":{for(n=0;n<a.geometries.length;n++)if(e(a.geometries[n],P,d,h,p)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}P++}}function Je(r,e){We(r,function(t,n,o,a,u){var l=t===null?null:t.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return e(O(t,o,{bbox:a,id:u}),n,0)===!1?!1:void 0}var c;switch(l){case"MultiPoint":c="Point";break;case"MultiLineString":c="LineString";break;case"MultiPolygon":c="Polygon";break}for(var d=0;d<t.coordinates.length;d++){var h=t.coordinates[d],p={type:c,coordinates:h};if(e(O(p,o),n,d)===!1)return!1}})}function qe(r,e){Je(r,function(t,n,o){var a=0;if(t.geometry){var u=t.geometry.type;if(!(u==="Point"||u==="MultiPoint")){var l,c=0,d=0,h=0;if(q(t,function(p,P,w,M,k){if(l===void 0||n>c||M>d||k>h){l=p,c=n,d=M,h=k,a=0;return}var Z=we([l,p],t.properties);if(e(Z,n,o,k,a)===!1)return!1;a++,l=p})===!1)return!1}}})}function br(r,e,t){var n=t,o=!1;return qe(r,function(a,u,l,c,d){o===!1&&t===void 0?n=a:n=e(n,a,u,l,c,d),o=!0}),n}function ce(r){var e=[1/0,1/0,-1/0,-1/0];return q(r,function(t){e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]<t[0]&&(e[2]=t[0]),e[3]<t[1]&&(e[3]=t[1])}),e}ce.default=ce;var Ce=ce;function Ie(r){return Ce(r)}s();var me="#ffffff";var de=class{constructor(e={}){i(this,"initialColor",me);i(this,"color",me);i(this,"initialTopColor");i(this,"topColor");i(this,"topTexture");i(this,"texture");i(this,"hoverColor");i(this,"dirty",!0);i(this,"visible",!0);i(this,"opacity",1);i(this,"width",.1);i(this,"height",.1);i(this,"initialHeight",.1);i(this,"altitude",0);i(this,"join","round");i(this,"cap","round");i(this,"showImage",!0);i(this,"flipImageToFaceCamera",!0);i(this,"url");i(this,"side","double");i(this,"renderOrder",0);this.color=(e==null?void 0:e.color)!==void 0?e.color:this.color,this.initialColor=this.color,this.width=(e==null?void 0:e.width)!==void 0?e.width:this.width,this.opacity=(e==null?void 0:e.opacity)!==void 0?e.opacity:this.opacity,this.visible=(e==null?void 0:e.visible)!==void 0?e.visible:this.visible,this.height=(e==null?void 0:e.height)!==void 0?e.height:this.height,this.initialHeight=this.height,this.altitude=(e==null?void 0:e.altitude)!==void 0?e.altitude:this.altitude,this.join=(e==null?void 0:e.join)!==void 0?e.join:this.join,this.cap=(e==null?void 0:e.cap)!==void 0?e.cap:this.cap,this.topColor=e==null?void 0:e.topColor,this.initialTopColor=this.topColor,this.texture=e==null?void 0:e.texture,this.topTexture=e==null?void 0:e.topTexture,this.showImage=(e==null?void 0:e.showImage)!==void 0?e.showImage:this.showImage,this.flipImageToFaceCamera=(e==null?void 0:e.flipImageToFaceCamera)!==void 0?e.flipImageToFaceCamera:this.flipImageToFaceCamera,this.url=e==null?void 0:e.url,this.side=(e==null?void 0:e.side)!==void 0?e.side:this.side,this.renderOrder=(e==null?void 0:e.renderOrder)!==void 0?e.renderOrder:this.renderOrder}};var Y=class extends he{constructor(){super(...arguments);i(this,"type","entityBatchedMesh");i(this,"userData",{entities:{}})}},j,U,B,Le=class{constructor(e){i(this,"mesh");i(this,"focusMesh");i(this,"imageMesh");i(this,"textMesh");i(this,"textEntityId");i(this,"type","geometry");i(this,"dirty",!0);i(this,"detached",!1);i(this,"instanceIndex",-1);i(this,"geometry");i(this,"material");i(this,"feature");i(this,"currentHeight",.1);i(this,"focusable",!1);i(this,"color",new re);i(this,"topColor",new re);i(this,"position",new b);E(this,j,0);E(this,U,1);E(this,B);i(this,"texturesVisible",!1);this.feature=e}get visible(){return this.mesh&&this.instanceIndex!==-1?this.mesh.getVisibleAt(this.instanceIndex):!1}set visible(e){this.mesh&&this.instanceIndex!==-1&&this.mesh.setVisibleAt(this.instanceIndex,e)}get renderOrder(){return this.mesh?this.mesh.renderOrder:0}set renderOrder(e){this.mesh&&(this.mesh.renderOrder=e)}setColor(e,t){this.color.set(e),this.topColor.set(t),this.material&&this.material.setColor(this.instanceIndex,this.color,this.topColor)}getColor(){var e;return(e=this.material)==null?void 0:e.getColor(this.instanceIndex)}get altitude(){return f(this,j)}set altitude(e){this.mesh&&(this.mesh.position.z=e,y(this,j,e))}get opacity(){return f(this,U)}set opacity(e){if(this.material&&(this.material.opacity=e,this.material.transparent=e<1,this.material.needsUpdate=!0),this.imageMesh){let t=Array.isArray(this.imageMesh.material)?this.imageMesh.material:[this.imageMesh.material];for(let n of t)n.opacity=e,n.needsUpdate=!0}y(this,U,e)}get texture(){var e,t;return(t=(e=this.material)==null?void 0:e.texture)==null?void 0:t.image.src}set texture(e){this.material&&(this.material.texture=e)}get textureInstance(){var e;return(e=this.material)==null?void 0:e.texture}set topTexture(e){this.material&&(this.material.topTexture=e)}get topTexture(){var e,t;return(t=(e=this.material)==null?void 0:e.topTexture)==null?void 0:t.image.src}get topTextureInstance(){var e;return(e=this.material)==null?void 0:e.topTexture}set blendTexture(e){this.material&&(this.material.blendTexture=e)}get featureBbox(){return f(this,B)?f(this,B):(y(this,B,Ie(this.feature)),f(this,B))}showTextures(){this.material&&(this.material.showTextures(this.instanceIndex),this.texturesVisible=!0)}hideTextures(){this.material&&(this.material.hideTextures(this.instanceIndex),this.texturesVisible=!1)}removeSideTexture(){this.material&&this.material.removeSideTexture(this.instanceIndex)}removeTopTexture(){this.material&&this.material.removeTopTexture(this.instanceIndex)}};j=new WeakMap,U=new WeakMap,B=new WeakMap;s();var Oe="#ffffff",A,$=class{constructor(e={}){i(this,"color",Oe);i(this,"initialColor",Oe);i(this,"topColor");i(this,"initialTopColor");i(this,"opacity",1);i(this,"height");E(this,A);i(this,"outline",!0);i(this,"texture");i(this,"topTexture");i(this,"dirty",!0);var t,n;this.color=(t=e==null?void 0:e.color)!=null?t:this.color,this.initialColor=this.color,this.topColor=e==null?void 0:e.topColor,this.initialTopColor=this.topColor,this.opacity=(n=e==null?void 0:e.opacity)!=null?n:this.opacity,this.height=e==null?void 0:e.height,this.shading=e==null?void 0:e.shading,this.outline=(e==null?void 0:e.outline)!==void 0?!!e.outline:this.outline}get shading(){return f(this,A)}set shading(e){var t;if(!e){y(this,A,void 0);return}y(this,A,(t=f(this,A))!=null?t:{start:0,end:0,intensity:0}),Object.assign(f(this,A),e)}};A=new WeakMap;var S=class extends I{constructor(t,n=new $){super();i(this,"visible",!0);i(this,"type","geometry-group");i(this,"components");i(this,"userData",{entityId:"",entities3D:new Set,opacity:1,dirty:!0,shadingDirty:!0});this.components=[n],this.userData.entityId=t}setVisible(t){this.visible!==t&&(this.visible=t,this.dispatchEvent({type:"childremoved",child:this}))}getOpacity(){return this.userData.opacity}setOpacity(t){this.userData.opacity=t}removeEntity(){this.dispatchEvent({type:"childremoved",child:this})}getfirstChildEntityId(){let t;for(let o of this.children)if(!o.userData.detached){t=o;break}return t instanceof Y?Object.values(t.userData.entities)[0]:void 0}setAltitude(t){this.position.z!==t&&(this.position.z=t,this.dispatchEvent({type:"childremoved",child:this}))}get altitude(){return this.position.z}};s();var V=class extends I{},H=class{constructor(e,t,n=0){i(this,"id");i(this,"verticalOffset");i(this,"positionDirty",!0);i(this,"occluderId");i(this,"object3d",new V);i(this,"components");i(this,"disposed",!1);i(this,"worldPosition",new b);this.id=e.id||x(),this.components=[e],this.verticalOffset=n,this.object3d=new V,this.object3d.position.set(t.x,t.y,t.z+n),this.object3d.userData.entityId=this.id,this.object3d.userData.type=this.type}get type(){return this.components[0].type}get parentObject3D(){return this.object3d.parent}get attachedTo(){return this.object3d.userData.attachedEntityId}get position(){return this.object3d.getWorldPosition(this.worldPosition),this.worldPosition}setAltitude(e){this.object3d.position.z=e}};s();var K=class extends I{constructor(){super(...arguments);i(this,"type","geometry");i(this,"userData",{entityId:"",type:"geometry"})}raycast(t,n){this.userData.type==="model"&&this.children[0]&&t.intersectObject(this.children[0],!0).forEach(o=>{n.push(o)})}},z=class{constructor(e,t){i(this,"id",x());i(this,"components");i(this,"entities2D",new Map);this.components=[e,t]}get object3d(){return this.components[0].mesh}get parentObject3D(){var e;return(e=this.components[0].mesh)==null?void 0:e.parent}get type(){return this.components[0].type}attach(e){this.parentObject3D instanceof S?e.object3d.userData.attachedEntityId=this.id:this.entities2D.set(e.id,e)}detach(e){this.parentObject3D instanceof S&&(e.object3d.userData.parentEntityId=void 0),this.entities2D.delete(e.id)}removeAllEntities(){for(let e of this.entities2D.values())this.detach(e)}};var W=class r extends I{constructor(t){super();i(this,"childrenIds",new Set);i(this,"children",[]);i(this,"type","group-container");i(this,"userData",{entityId:"",entities2D:new Set,dirty:!0,occluderDirty:!1,opacity:1,computedOpacity:1});i(this,"components",[]);this.userData.entityId=t}addOccluderFeature(t,n){this.userData.occluderFeature=t,this.userData.occluderId=n,this.userData.occluderDirty=!0}addEntity(t){t instanceof r?(this.childrenIds.add(t.userData.entityId),this.add(t)):t instanceof H?(this.childrenIds.add(t.id),this.add(t.object3d),this.userData.entities2D.add(t.id)):t instanceof S?(this.childrenIds.add(t.userData.entityId),this.add(t)):t instanceof z&&t.object3d&&(this.childrenIds.add(t.id),this.add(t.object3d)),this.dispatchEvent({type:"childadded",child:this})}removeEntity(t){t instanceof r?(this.childrenIds.delete(t.userData.entityId),this.remove(t)):t instanceof H?(this.childrenIds.delete(t.id),this.userData.entities2D.delete(t.id),this.remove(t.object3d)):t instanceof S?(this.childrenIds.delete(t.userData.entityId),this.remove(t)):t instanceof z&&t.object3d&&(this.childrenIds.delete(t.id),this.add(t.object3d)),this.dispatchEvent({type:"childremoved",child:this})}setVisible(t){this.visible!==t&&(this.visible=t,this.dispatchEvent({type:"childremoved",child:this}))}setAltitude(t){this.position.z!==t&&(this.position.z=t,this.dispatchEvent({type:"childremoved",child:this}))}get altitude(){return this.position.z}setOpacity(t){this.userData.opacity=t}get opacity(){return this.userData.opacity}};s();var cn={top:0,bottom:0,left:0,right:0,type:"pixel"},Ae="mappedin";var mn=250;s();function $e(r){let e=r.min,t=r.max,n=new b(e.x,e.y,e.z),o=new b(t.x,e.y,e.z),a=new b(e.x,t.y,e.z),u=new b(t.x,t.y,e.z);return[n,o,a,u]}s();function ke(r,e){let t;return typeof e=="string"||typeof e=="number"?(t=r.geometry2DMap.get(e),t==null&&(t=r.geometry3DMap.get(e))):typeof(e==null?void 0:e.id)=="string"||typeof(e==null?void 0:e.id)=="number"?(t=r.geometry2DMap.get(e.id),t==null&&(t=r.geometry3DMap.get(e.id))):t=e,t}function bn(r,e,t=[],n=new ee,o){(r.getSystems().renderSystem.threeDdirty||r.getSystems().renderSystem.twoDdirty)&&r.renderSync();let a=ke(r.getInternalState(),e);return Ge(a,t,n,o),t}var X=new b;function Ge(r,e=[],t=new ee,n){if(r.visible){if(r.isMesh||r.isLine||r.isPoints){let o=r.geometry;if(o.isBufferGeometry){let a=o.attributes.position;for(let u=0;u<a.count;u++)X.fromBufferAttribute(a,u),n!==void 0&&(X.z=n),e.push(X.clone()),t.expandByPoint(X)}}for(let o of r.children)Ge(o,e,t,n)}}s();function Ke(){return typeof window>"u"?1:Math.min(window.devicePixelRatio,2)}s();function Xe(r,e,t=!1){let n=null,o=0;return function(...a){o++,o===1&&t===!0&&r(...a);let u=()=>{(!t||o>1)&&r(...a),n=null,o=0};clearTimeout(n),n=setTimeout(u,e)}}s();var Ze=(()=>{let r;return{getDeviceType(){if(r)return r;let{userAgent:e,platform:t,maxTouchPoints:n}=window.navigator,o=/(iphone|ipod|ipad)/i.test(e),a=t==="iPad"||t.indexOf("Mac")===0&&n>0&&!window.MSStream,u=/android/i.test(e);return r={isIpad:a,isMobile:u||o||a,isSafari12:/Version\/12.+Safari/.test(e),isFirefox:/Firefox/.test(e),isWindows:/windows/i.test(e)},r},_reset(){r=void 0}}})(),Fe=Ze.getDeviceType,Ne=(()=>{let r,e,t;function n(){if(e!==void 0)return e;r||(r=document.createElement("canvas"));let a=r.getContext("webgl")||r.getContext("experimental-webgl");if(!a)return e;try{let u=Fe().isFirefox?null:a.getExtension("WEBGL_debug_renderer_info");return e=u?a.getParameter(u.UNMASKED_RENDERER_WEBGL):a.getParameter(a.RENDERER),e}catch{let l=new Error("Failed getting device info");throw l.name="FailedGettingDeviceInfo",l}}function o(){var u,l;if(!Fe().isWindows)return!1;if(t!==void 0)return t;let a=(l=(u=Qe())==null?void 0:u.toLowerCase())!=null?l:"";return t=a.includes("intel")&&(a.includes("uhd")||a.includes("iris")),t}return{getInfo:n,shouldDisableOffscreenCanvas:o,_setCanvas(a){r=a,e=void 0,t=void 0}}})(),Qe=Ne.getInfo,et=Ne.shouldDisableOffscreenCanvas;s();function tt(r,e){let t={};for(let n=0;n<e.length;n++){let o=e[n];o in r&&(t[o]=r[o])}return t}function rt(r){return Object.keys(r).length===0}s();var nt=r=>e=>{if(!e.includes("mappedin")){let t={};for(let n in r){let o=r[n];e.includes("mappedin")||(r[n]=o)}return{url:e,headers:t}}return{url:e,headers:r}};function Vn(r,e,t,n){let o=r*(Math.PI/180),a=n/_,u=r+a*180/Math.PI,l=t/_/Math.cos(o),c=e+l*180/Math.PI;return{lat:u,lon:c}}function jn(r,e,t,n){let o=t*(Math.PI/180),a=n*(Math.PI/180),u=r*(Math.PI/180),l=e*(Math.PI/180),c=o-u,d=a-l,h=_*d*Math.cos(u),p=_*c;return{x:h,y:p}}var it=(r,e)=>{var t;if(r.children&&r.visible)for(let n of r.children){if(n.visible&&n.type)if("entities3D"in n.userData&&((t=n.userData)!=null&&t.entities3D)&&n.type==="geometry-group"){e.add(n.userData.entityId);for(let o of n.userData.entities3D.values())e.add(o)}else(n.type==="group-container"||n.type==="custom-geometry"||n instanceof K)&&e.add(n.userData.entityId);it(n,e)}return e},ot=(r,e)=>{var t;if(r.children&&r.visible&&!((t=r.userData)!=null&&t.hidden))for(let n of r.children)n.visible&&n instanceof V&&e.add(n.userData.entityId),ot(n,e);return e};function at(r,e){for(let t in e){if(e[t]==null){r[t]=void 0;continue}typeof e[t]=="object"?at(r[t],e[t]):r[t]=e[t]}return r}function Un(r,e,t,n){let o={translateX:r.x,translateY:r.y,translateZ:r.z,scale:r.meterInMercatorCoordinateUnits()},a=new te,u=new b(o.scale,-o.scale,o.scale),l=new te().makeTranslation(o.translateX,o.translateY,o.translateZ).scale(u),c=t.elevation;return{id:Ae,type:"custom",renderingMode:"3d",render:(d,h)=>{if(a.fromArray(h),c!==t.elevation){let p=be.fromLngLat(r.toLngLat(),t.elevation);l.makeTranslation(o.translateX,o.translateY,-p.z).scale(u)}e.projectionMatrix=a.multiply(l),c=t.elevation,n()}}}function st(r){return fetch(r,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({grant_type:"client_credentials"})})}async function Hn(r){let e=await st(r),{access_token:t}=await e.json();return{"x-mappedin-tiles-key":t}}function zn(r,e=0){let t=3735928559^e,n=1103547991^e;for(let o=0,a;o<r.length;o++)a=r.charCodeAt(o),t=Math.imul(t^a,2654435761),n=Math.imul(n^a,1597334677);return t=Math.imul(t^t>>>16,2246822507)^Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507)^Math.imul(t^t>>>13,3266489909),4294967296*(2097151&n)+(t>>>0)}var ut=r=>r;var Wn=r=>1-Math.cos(r*Math.PI/2);function Jn(r,e,t,n,o,a=ut){r=Math.max(e,Math.min(r,t));let u=(r-Math.min(e,t))/Math.abs(t-e),l=a(u);return n+l*(o-n)}function qn(r,e,t){let n=r*(Math.PI/180)/2,o=e/2;return t*Math.tan(n)/o}function Yn(r){return new ge(new ne(r[0][0],r[0][1]),new ne(r[1][0],r[1][1])).getCenter().toArray()}function $n(r,e){return r<e||e<=12}function Kn(r){let e=1;return r.type==="geometry-group"&&r.parent!=null&&r.parent instanceof W?e=r.parent.userData.computedOpacity:(r.type==="geometry"||r.type==="custom-geometry"||r.type==="model")&&r.parentObject3D!=null&&r.parentObject3D instanceof S&&r.parentObject3D.parent!=null&&r.parentObject3D.parent instanceof W&&(e=r.parentObject3D.parent.userData.computedOpacity),e}s();var pe=class{constructor(e){i(this,"visible");i(this,"altitude");i(this,"color");i(this,"dirty",!0);i(this,"maxWidth");i(this,"maxHeight");i(this,"hoverByPolygon");i(this,"flipToFaceCamera",_e.flipToFaceCamera);i(this,"font");i(this,"fillOpacity");i(this,"fontSize");i(this,"margin");i(this,"outlineWidth");i(this,"outlineBlur");i(this,"outlineOffsetX");i(this,"strokeColor");i(this,"strokeOpacity");i(this,"strokeWidth");i(this,"hoverColor");i(this,"outlineOffsetY");i(this,"outlineColor");i(this,"outlineOpacity");e&&Object.assign(this,e)}getState(e=!1){let t={};for(let n in this)!e&&n==="dirty"||this[n]!==void 0&&(t[n]=this[n]);return t}},_e=Object.freeze({visible:!0,color:"black",flipToFaceCamera:!0,fillOpacity:1,font:void 0,fontSize:2,margin:[.2,1,.2,1.5],outlineColor:"black",outlineOpacity:1,outlineWidth:0,outlineOffsetX:0,outlineOffsetY:0,outlineBlur:0,strokeOpacity:1,strokeWidth:0,maxWidth:void 0,maxHeight:void 0,strokeColor:"black",hoverColor:void 0});s();s();var fe=class{constructor(e){i(this,"dirty",!0);i(this,"visible",!0);i(this,"opacity",1);i(this,"verticalOffset",0);i(this,"interactive",!1);i(this,"color");i(this,"material");i(this,"rotation");i(this,"scale");e&&Object.assign(this,e)}};s();var lt=[1,1,1],ct=[0,0,0];export{ie as a,Re as b,mt as c,oe as d,_ as e,Mt as f,L as g,Dt as h,Et as i,St as j,Pt as k,Ue as l,wt as m,Ct as n,Ot as o,Gt as p,x as q,ue as r,le as s,O as t,ze as u,or as v,we as w,ar as x,sr as y,ur as z,lr as A,cr as B,mr as C,dr as D,q as E,gr as F,Je as G,br as H,Ce as I,me as J,de as K,Y as L,Le as M,$ as N,S as O,V as P,H as Q,K as R,z as S,W as T,cn as U,Ae as V,mn as W,$e as X,ke as Y,bn as Z,Ke as _,Xe as $,et as aa,tt as ba,rt as ca,nt as da,He as ea,Vn as fa,jn as ga,it as ha,ot as ia,at as ja,Un as ka,Hn as la,zn as ma,ut as na,Wn as oa,Jn as pa,qn as qa,Yn as ra,$n as sa,Kn as ta,pe as ua,_e as va,fe as wa,lt as xa,ct as ya};
|