@vcmap/ui 5.0.0-rc.7 → 5.0.0-rc.8

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.
@@ -0,0 +1,39 @@
1
+
2
+ function loadCss(href) {
3
+ return new Promise((resolve, reject) => {
4
+ const elem = document.createElement('link');
5
+ elem.rel = 'stylesheet';
6
+ elem.href = href;
7
+ elem.defer = false;
8
+ elem.async = false;
9
+ elem.onload = resolve;
10
+ elem.onerror = reject;
11
+ document.head.appendChild(elem);
12
+ });
13
+ } await loadCss('./assets/ui.b7c1e3.css');var qr=Object.defineProperty,zr=Object.defineProperties;var Yr=Object.getOwnPropertyDescriptors;var nn=Object.getOwnPropertySymbols;var Jr=Object.prototype.hasOwnProperty,Zr=Object.prototype.propertyIsEnumerable;var rn=(n,t,e)=>t in n?qr(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,E=(n,t)=>{for(var e in t||(t={}))Jr.call(t,e)&&rn(n,e,t[e]);if(nn)for(var e of nn(t))Zr.call(t,e)&&rn(n,e,t[e]);return n},F=(n,t)=>zr(n,Yr(t));import L from"./vue.ddcb6b.js";import Qr,{inject as ct,ref as y,onUnmounted as vt,computed as $,reactive as K,watch as Xt,onMounted as sn,nextTick as Kr,provide as Xr}from"./vue-composition-api.f926fa.js";import{VcsEvent as X,MapCollection as on,ViewPoint as te,Collection as an,AbstractInteraction as ti,EventType as ei,ModificationKeyType as ni,OpenlayersMap as ee,VectorStyleItem as gt,deserializeLayer as ri,EventHandler as ii,CesiumMap as ne,ObliqueMap as yt,Extent as si,mercatorProjection as bt,DataState as oi,emptyStyle as cn,VectorLayer as $t,Projection as ln,getVcsAppById as ai,ClassRegistry as ci,IndexedCollection as li,makeOverrideCollection as un,getObjectFromClassRegistry as ui,DefaultObliqueCollection as hi,VcsApp as fi,OverrideClassRegistry as pi,contextIdSymbol as di,destroyCollection as hn,Context as _i}from"./core.98f9bb.js";import{VcsSelect as mi,VcsActionButtonList as vi,VcsActionList as gi,VcsButton as re,Icons as yi,VcsTooltip as fn,VcsTreeview as bi}from"./uicomponents.682c5f.js";import pn,{VSheet as wt,VList as dn,VListItem as _n,VListItemIcon as wi,VChip as Si,VListItemContent as mn,VAppBar as Ei,VContainer as vn,VRow as lt,VCol as ie,VToolbarItems as se,VDivider as Ot,VMenu as Ti,VIcon as it,VBtn as oe,VCard as ae,VListItemGroup as Ii,VListItemAction as Ci,VListItemTitle as xi,VToolbar as Ai,VSlider as Li,VApp as Mi,VMain as $i,VFooter as Oi}from"./vuetify.d21163.js";import{ol$geom$Point as Ni,ol$Feature as Fi,ol$source$Vector as ce,ol$Observable$unByKey as le,ol$math$clamp as ki}from"./ol.0561aa.js";import{Color as Pi,Math as Vi}from"./cesium.6b5bb6.js";L.config.productionTip=!1,L.use(Qr),window.CESIUM_BASE_URL="./assets/cesium/";var Lc="",Ri=function(){var n=this,t=n.$createElement,e=n._self._c||t;return n.items?e(wt,{staticClass:"pa-2"},[e("VcsSelect",{attrs:{items:n.items},model:{value:n.currentStyle,callback:function(r){n.currentStyle=r},expression:"currentStyle"}}),n.currentStyleLegend.length>0?e(dn,n._l(n.currentStyleLegend,function(r,i){return e(_n,{key:"style-legend-"+i,attrs:{dense:""}},[e(wi,[e(Si,{attrs:{color:r.color}})],1),e(mn,[n._v(" "+n._s(r.title)+" ")])],1)}),1):n._e()],1):n._e()},Di=[],Mc="";function T(n,t,e,r,i,s,o,a){var c=typeof n=="function"?n.options:n;t&&(c.render=t,c.staticRenderFns=e,c._compiled=!0),r&&(c.functional=!0),s&&(c._scopeId="data-v-"+s);var l;if(o?(l=function(f){f=f||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!f&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(f=__VUE_SSR_CONTEXT__),i&&i.call(this,f),f&&f._registeredComponents&&f._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=a?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(d,_){return l.call(_),u(d,_)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:n,options:c}}const ji={name:"StyleSelector",components:{VcsSelect:mi},props:{availableStyles:{type:Array,default:()=>[]},layerName:{type:String,required:!0}},setup({layerName:n,availableStyles:t}){const e=ct("vcsApp"),r=e.layers.getByKey(n),i=y(r.style.name),s=y([]),o=r.defaultStyle.name;function a(h){i.value=r.style.name,h.legend&&(s.value=h.legend)}a(r.style);const c=r.styleChanged.addEventListener(a);vt(()=>{c()});const l=$({get(){return i.value},set(h){const f=h===o?r.defaultStyle:e.styles.getByKey(h);r.setStyle(f)}}),u=$(()=>[{text:"Default",value:o},...t.map(h=>({text:h,value:h}))]);return{currentStyle:l,currentStyleLegend:s,items:u}}},gn={};var Wi=T(ji,Ri,Di,!1,Bi,"34299418",null,null);function Bi(n){for(let t in gn)this[t]=gn[t]}var yn=function(){return Wi.exports}(),Nt,Ui=new Uint8Array(16);function Hi(){if(!Nt&&(Nt=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Nt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Nt(Ui)}var Gi=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function qi(n){return typeof n=="string"&&Gi.test(n)}for(var x=[],ue=0;ue<256;++ue)x.push((ue+256).toString(16).substr(1));function zi(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=(x[n[t+0]]+x[n[t+1]]+x[n[t+2]]+x[n[t+3]]+"-"+x[n[t+4]]+x[n[t+5]]+"-"+x[n[t+6]]+x[n[t+7]]+"-"+x[n[t+8]]+x[n[t+9]]+"-"+x[n[t+10]]+x[n[t+11]]+x[n[t+12]]+x[n[t+13]]+x[n[t+14]]+x[n[t+15]]).toLowerCase();if(!qi(e))throw TypeError("Stringified UUID is invalid");return e}function St(n,t,e){n=n||{};var r=n.random||(n.rng||Hi)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){e=e||0;for(var i=0;i<16;++i)t[e+i]=r[i];return t}return zi(r)}const Et=[[String,"string"],[Number,"number"],[Boolean,"boolean"],[Function,"function"],[void 0,"undefined"],[Symbol,"symbol"]];function Ft(n){const t={};if(!n||t.toString(n)!=="[object Object]")return!1;const e=Object.getPrototypeOf(n);if(!e)return!0;const r=t.hasOwnProperty,i=r.call(e,"constructor")&&e.constructor;return typeof i=="function"&&r.toString.call(i)===r.toString.call(Object)}function R(n,t){if(n===null)return"null";if(typeof n=="undefined")return"undefined";if(t)return typeof n;let e;if(Array.isArray(n))e=`[${n.map(i=>R(i,t)).join(",")}]`;else try{e=JSON.stringify(n)}catch{e=typeof n}return e=e||typeof n,e.length>20?`${e.substr(0,20)}...`:e}function Yi(n,t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"?n===t?!1:`Expected ${R(n)} to equal ${t.toString()}`:null}function Ji(n,t,e){if(Array.isArray(t)){if(t.length!==1)throw new Error("Array patterns may only have on type");if(Array.isArray(n)){let r=!1;return n.findIndex(s=>{try{g(s,t[0],e)}catch(o){r=o.message.replace(/Match failed:\s/,"")}return r})>-1?`${r} in ${R(n)}`:!1}return`Expected ${R(n)} to be an Array`}return null}function he(n,t,e){const r=e?`${e}.`:"";if(!Ft(n))return`Expected ${R(n)} to be a plain Object`;let s=!1;const o=Object.keys(t).find(a=>{const c=n[a];if(Ft(t[a]))s=he(c,t[a],r+a);else try{g(c,t[a])}catch(l){s=l.message.replace(/Match failed:\s/,"")}return s});return o?`${s} in object.${r}${o}`:!1}function Zi(n,t){if(t===Number)return Number.isFinite(n)?!1:`expected ${R(n)} to be a number, excluding NaN`;for(let e=Et.length;e--;)if(t===Et[e][0])return typeof n===Et[e][1]?!1:`expected ${R(n)} to be a ${Et[e][1]}`;return null}function fe(n){if(n===null)return"null";const t=Et.find(i=>i[0]===n);if(t)return t[1];let e=n.toString();if(n.className)return n.className;const r=e.match(/function (.*)\(/);if(r&&r.length>1)return r[1];if(Ft(n)){const i={};Object.keys(n).forEach(s=>{i[s]=fe(n[s])});try{e=`Object of ${JSON.stringify(i)}`}catch{e="Object"}}return e}function bn(n,t,e){const r=e?`${e}.`:"";let i=!1;return Object.keys(n).find(o=>{if(Ft(t[o])){const a=n[o];i=bn(a,t[o],r+o)}else t[o]||(i=`Found additional key ${r}${o}`);return i=i?i.replace(/\sin.*/,""):!1,i})?`${i} in ${R(n)}`:!1}function Qi(n,t,e){const r=function(o,a){if(a==null)return o===a?!1:`Expected ${R(o)} to be ${a}`;const c=Zi(o,a);if(c!==null)return c;const l=Yi(o,a);if(l!==null)return l;if(Array.isArray(a))return Ji(o,a,e);if(a instanceof Function)return o instanceof a?!1:`Expected ${R(o,!0)} to be of Type ${fe(a)}`;if(a===Object)return he(o,{});if(typeof a!="object")throw new Error(`Cannot handler pattern ${a}`);const u=he(o,a);return u||(e?bn(o,a):!1)};let i;return Array.isArray(t)&&t.length>1?t.every(o=>r(n,o))&&(i=`Expected ${R(n)} to be a ${t.map(o=>fe(o)).join(" or ")}`):i=r(n,t),i}function g(n,t,e){const r=Qi(n,t,e);if(r)throw new Error(`Match failed: ${r}`);return!1}function ut(n,t,e){const r=[null,void 0];return Array.isArray(t)&&t.length>1?t.forEach(i=>{r.push(i)}):r.push(t),g(n,r.reverse(),e)}const S={OFF:1,ERROR:2,WARN:4,INFO:8,DEBUG:16},z={ERROR:0,WARN:0,INFO:0,DEBUG:0};z.ERROR=S.ERROR|S.WARN|S.INFO|S.DEBUG,z.WARN=S.WARN|S.INFO|S.DEBUG,z.INFO=S.INFO|S.DEBUG,z.DEBUG=S.DEBUG;const Tt={useTimestamp:!1,logLevel:S.INFO},It=new Map;It.set(S.ERROR,"error"),It.set(S.WARN,"warn"),It.set(S.INFO,"info"),It.set(S.DEBUG,"log");class wn{constructor(t){this.className=t,this.deprecations=new Map}error(t,...e){Tt.logLevel&z.ERROR&&this._log(String(t),S.ERROR,e)}warning(t,...e){Tt.logLevel&z.WARN&&this._log(String(t),S.WARN,e)}deprecate(t,e){const r=String(t),i=e?String(e):null;if(!this.deprecations.has(r)){this.deprecations.set(r,i||null);let s=`${r} has been deprecated and will be removed`;i&&(s=`${s}. ${i}`),this.warning(s)}}info(t,...e){Tt.logLevel&z.INFO&&this._log(String(t),S.INFO,e)}debug(t,...e){Tt.logLevel&z.DEBUG&&this._log(String(t),S.DEBUG,e)}log(t,...e){Tt.logLevel&z.DEBUG&&this._log(String(t),S.DEBUG,e)}_log(t,e,r){let i=t;this.className&&(i=`[${this.className}] ${i}`),console[It.get(e)](i,...r),e&S.ERROR&&(console.group(),console.trace(),console.groupEnd())}}const pe=new Map;let de;function Ki(){return de||(de=new wn),de}function Xi(n){const t=new wn(n);return pe.set(n,t),t}function Sn(n){return n?pe.has(n)?pe.get(n):Xi(n):Ki()}function kt(){return Sn("plugin-helpers")}const P=Symbol("vcsApp"),tt=Symbol("pluginFactory");function En(n){return g(n,String),/^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/.test(n)}async function Tn(n,t,e,r="https://plugins.virtualcitymap.de/"){let i=e.entry;i?/^(https?:\/\/|\/)/.test(i)?i==="_dev"&&(i=`/${t}.js`):i=`${window.location.origin}${window.location.pathname.replace(/\/?$/,"/")}${i}`:i=`${r.replace(/\/?$/,"")}/${t}/${e.version||"*"}/index.js`;try{let s;if(window.VcsPluginLoaderFunction?s=await window.VcsPluginLoaderFunction(t,i):s=await import(i),s.default==null||typeof s.default!="function")return kt().error(`plugin ${t} does not provide a default exported function`),null;const o=await s.default(e);return o.name?(o[tt]=s.default,o):(kt().error(`plugin ${t} does not expose a name`),o.destroy&&o.destroy(),null)}catch(s){kt().error(`failed to load plugin ${t}`),kt().error(s)}return null}function In(n){const t=n.toJSON?n.toJSON():{};return n[tt]&&(t[tt]=n[tt]),t}async function Cn(n){const t=await n[tt](n);return t[tt]=n[tt],t}function ts(n,t){if(n!=null){const e=Number.parseFloat(String(n));if(e!=null&&!Number.isNaN(e))return e}return t}function es(n,t){return n==null?t:typeof n=="boolean"?n:n===1?!0:n===0?!1:typeof n=="string"&&(n.toLowerCase()==="true"||n.toLowerCase()==="1")?!0:typeof n=="string"&&(n.toLowerCase()==="false"||n.toLowerCase()==="0")?!1:t}function ns(n,t,e){if(n!=null){const r=Object.values(t).find(i=>i==n);if(r!=null)return r}return e}const A={STATIC:"static",DYNAMIC_LEFT:"dynamicLeft",DYNAMIC_RIGHT:"dynamicRight",DETACHED:"detached"},D={TOP_LEFT:{left:"0px",top:"0px"},TOP_LEFT2:{left:"320px",top:"0px"},TOP_RIGHT:{right:"0px",top:"0px"},DETACHED:{left:"200px",top:"200px"}};function ht(n){return typeof n=="number"?`${n}px`:n}function xn(n,t={}){let e=ht(n.left)||"unset";const r=ht(n.right)||"unset";let i=ht(n.top)||"unset";const s=ht(n.bottom)||"unset";let o=ht(n.width)||"auto",a=ht(n.height)||"auto";return e!=="unset"&&r!=="unset"?o="auto":o==="auto"&&(o="320px"),e==="unset"&&r==="unset"&&(e="200px"),i!=="unset"&&s!=="unset"&&(a="auto"),i==="unset"&&s==="unset"&&(i="200px"),Object.assign(t,{left:e,right:r,top:i,bottom:s,width:o,height:a})}function rs(n,t,e="mapElement"){let r=e;typeof r=="string"&&(r=document.getElementsByClassName(e).item(0));const{left:i,top:s}=r.getBoundingClientRect();return{left:n-i,top:t-s}}class An{constructor(){this.added=new X,this.removed=new X,this.componentIds=K([]),this._windowComponents=new Map}get(t){if(this.has(t))return this._windowComponents.get(t)}has(t){return this._windowComponents.has(t)}remove(t){const e=this._windowComponents.get(t);if(e){const r=this.componentIds.indexOf(t);this.componentIds.splice(r,1),this._windowComponents.delete(t),this._handleSlotsChanged(e.slot.value),this.removed.raiseEvent(e)}}setWindowPositionOptions(t,e){const r=this._windowComponents.get(t);r&&(e===D.TOP_LEFT||e===D.TOP_LEFT2||e===D.TOP_RIGHT||(r.slot.value=A.DETACHED),xn(e,r.position))}_handleSlotsChanged(t){if(t===A.STATIC){const e=this._findWindowBySlot(A.STATIC),r=this._findWindowBySlot(A.DYNAMIC_LEFT);e&&r?this.setWindowPositionOptions(r.id,D.TOP_LEFT2):!e&&r&&this.setWindowPositionOptions(r.id,D.TOP_LEFT)}}_findWindowBySlot(t){return Array.from(this._windowComponents.values()).find(e=>e.slot.value===t)}_getPositionOptionsForSlot(t,e){return t===A.STATIC?D.TOP_LEFT:t===A.DYNAMIC_LEFT?this._findWindowBySlot(A.STATIC)?D.TOP_LEFT2:D.TOP_LEFT:t===A.DYNAMIC_RIGHT?D.TOP_RIGHT:e||D.DETACHED}_removeWindowAtSlot(t){if(t!==A.DETACHED){const e=this._findWindowBySlot(t);e&&this.remove(e.id)}}add(t,e){var B,Ye,Je,Ze,Qe,Ke,Xe,tn,en;if(g(e,[String,P]),t.id&&this.has(t.id))throw new Error(`A window with id ${t.id} has already been registered.`);const r=t.id||St(),i=((B=t.slot)==null?void 0:B.value)||t.slot,s=ns(i,A,A.DETACHED),o=this._getPositionOptionsForSlot(s,t.position),a=xn(o),c=y(s),{component:l,headerComponent:u}=t,h=E({},(Ye=t==null?void 0:t.state)==null?void 0:Ye.styles),f=Array.isArray((Je=t==null?void 0:t.state)==null?void 0:Je.classes)?[...(Qe=(Ze=t==null?void 0:t.state)==null?void 0:Ze.classes)!=null?Qe:[]]:E({},(Ke=t==null?void 0:t.state)==null?void 0:Ke.classes),d=K({id:r,owner:e,hideHeader:!!((Xe=t==null?void 0:t.state)==null?void 0:Xe.hideHeader),headerTitle:(tn=t==null?void 0:t.state)==null?void 0:tn.headerTitle,headerIcon:(en=t==null?void 0:t.state)==null?void 0:en.headerIcon,classes:f,styles:h}),_=t.props||{},v=K(a),w={get id(){return r},get state(){return d},get component(){return l},get headerComponent(){return u},get slot(){return c},get position(){return v},get props(){return _}};return this._removeWindowAtSlot(s),this._windowComponents.set(r,w),this.componentIds.push(r),this._handleSlotsChanged(s),this.added.raiseEvent(w),w}bringWindowToTop(t){if(this.has(t)){const e=this.componentIds.indexOf(t);e>=0&&e!==this.componentIds.length-1&&(this.componentIds.push(t),this.componentIds.splice(e,1))}}removeOwner(t){[...this.componentIds].forEach(r=>{const{state:i}=this.get(r);t===i.owner&&this.remove(r)})}clear(){[...this.componentIds].forEach(e=>{this.remove(e)})}destroy(){this.added.destroy(),this.removed.destroy(),this.componentIds.splice(0),this._windowComponents.clear()}}function Ln(n,t,e){g(n,{name:String,icon:[void 0,String],title:[void 0,String]}),g(t,String),g(e,on);const r=F(E({},n),{active:!1,callback(){e.setActiveMap(t)}}),i=e.mapActivated.addEventListener(s=>{r.active=s.name===t});return{action:r,destroy:i}}function _e(n,t,e,r){g(n,{name:String,icon:[void 0,String],title:[void 0,String]}),g(t,{id:String}),g(r,[String,P]);const i=F(E({},n),{active:e.has(t.id),callback(){if(this.active)e.remove(t.id);else return e.add(t,r);return null}}),s=[e.added.addEventListener(({id:a})=>{a===t.id&&(i.active=!0)}),e.removed.addEventListener(({id:a})=>{a===t.id&&(i.active=!1)})];return{action:i,destroy:()=>{s.forEach(a=>{a()})}}}function Mn(n,t,e){const{action:r,destroy:i}=_e({name:"overviewMapToggle",icon:"$vcsMap",title:"Overview Map"},t,e,P),s=[e.added.addEventListener(async({id:a})=>{a===t.id&&await n.activate()}),e.removed.addEventListener(({id:a})=>{a===t.id&&n.deactivate()})];return{action:r,destroy:()=>{i(),s.forEach(a=>{a()})}}}function $n(n,t,e,r){g(n,{name:String,icon:[void 0,String],title:[void 0,String]}),g(r,[String,P]);const i=St(),s=u=>{if(!document.getElementById(i)){const f=document.createElement("div");f.id=i,Object.assign(f.style,{position:"absolute",zIndex:u,top:0,bottom:0,left:0,right:0}),f.onclick=()=>{e.remove(i)},document.body.appendChild(f)}},o=()=>{const u=document.getElementById(i);u&&u.parentElement.removeChild(u)},a=F(E({},n),{active:!1,callback(u){if(this.active)this.active=!1,e.remove(i);else{this.active=!0;const{left:h,top:f,width:d}=u.currentTarget.getBoundingClientRect(),_=rs(h+d,f),v=F(E({},t==null?void 0:t.state),{hideHeader:!0});e.add(F(E({position:_},t),{id:i,state:v}),r),s(e.componentIds.length-2)}return null}}),c=[e.removed.addEventListener(({id:u})=>{u===i&&(a.active=!1,o())}),o];return{action:a,destroy:()=>{c.forEach(u=>{u()})}}}function On(n,t){return g(n,{name:String,icon:[void 0,String],title:[void 0,String]}),g(t,String),F(E({},n),{callback(){const e=document.createElement("a");e.href=t,e.target="_blank",e.click()}})}function me(n,t,e,r){return g(n,{name:String,icon:[void 0,String],title:[void 0,String]}),g(t,[te,String]),g(e,an),g(r,on),F(E({},n),{async callback(){let i=t;typeof i=="string"&&(i=e.getByKey(t)),i&&await r.activeMap.gotoViewPoint(i)}})}const m={NONE:0,INACTIVE:1,LOADING:2,ACTIVE:3,INDETERMINATE:4},Nn={[m.INACTIVE]:"$vcsCheckbox",[m.ACTIVE]:"$vcsCheckboxChecked",[m.INDETERMINATE]:"$vcsCheckboxIndeterminate",[m.LOADING]:"$vcsProgress"};function Fn(n,t,e){g(n,String),g(t==null?void 0:t.value,Object.values(m)),g(e,Function);const r=t.value,i={name:n,title:"Activate",icon:Nn[r],callback:e},s=Xt(t,()=>{i.icon=Nn[t.value]});return{action:i,destroy:s}}var is=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e(wt,{staticStyle:{height:"100%"}},[n._v(" Statisches Window "),e(wt)],1)},ss=[];const os={},kn={};var as=T(os,is,ss,!1,cs,null,null,null);function cs(n){for(let t in kn)this[t]=kn[t]}var ls=function(){return as.exports}();function us(n,t,e=[]){const r=[P,...e];return r.indexOf(t.owner)-r.indexOf(n.owner)}function Pn(n,t,e=[],r=us){return n.filter(i=>i.location===t).sort((i,s)=>r(i,s,e)).map(i=>i.action)}const U={MAP:0,CONTENT:1,TOOL:2,PROJECT:3,SHARE:4,MENU:5};class Vn{constructor(){this.added=new X,this.removed=new X,this.componentIds=K([]),this._buttonComponents=new Map}get(t){if(this.has(t))return this._buttonComponents.get(t)}has(t){return this._buttonComponents.has(t)}remove(t){const e=this._buttonComponents.get(t);if(e){const r=this.componentIds.indexOf(t);this.componentIds.splice(r,1),this._buttonComponents.delete(t),this.removed.raiseEvent(e)}}add(t,e){if(ut(t.id,String),g(t.location,Object.values(U)),g(t.action,{name:String,title:[void 0,String],icon:[void 0,String],callback:Function,active:[void 0,Boolean]}),g(e,[String,P]),t.id&&this.has(t.id))throw new Error(`A button with id ${t.id} has already been registered.`);const r=t.id||St(),i={get id(){return r},get owner(){return e},get location(){return t.location},get action(){return K(t.action)}};return this._buttonComponents.set(r,i),this.componentIds.push(r),this.added.raiseEvent(i),i}removeOwner(t){[...this.componentIds].forEach(r=>{t===this.get(r).owner&&this.remove(r)})}clear(){[...this.componentIds].forEach(e=>{this.remove(e)})}destroy(){this.added.destroy(),this.removed.destroy(),this.componentIds.splice(0),this._buttonComponents.clear()}}var hs=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e(Ei,{attrs:{app:"",absolute:"",dense:"",elevation:"0",color:"var(--v-basic-base)"}},[e(vn,{staticClass:"pa-0",attrs:{fluid:""}},[e(lt,{attrs:{"no-gutters":""}},[e(ie,[e(se,[e("div",{staticClass:"d-flex align-center"},[e("VcsActionButtonList",{attrs:{actions:n.mapActions,"overflow-count":3,large:""}}),n.mapActions.length>0&&(n.contentActions.length>0||n.toolActions.length>0)?e(Ot,{staticClass:"mx-2",attrs:{vertical:"",inset:""}}):n._e(),e("VcsActionButtonList",{attrs:{actions:n.contentActions,large:""}}),n.contentActions.length>0&&n.toolActions.length>0?e(Ot,{staticClass:"mx-2",attrs:{vertical:"",inset:""}}):n._e(),e("VcsActionButtonList",{attrs:{actions:n.toolActions,large:""}})],1)])],1),e(ie,{staticClass:"align-center d-flex justify-center"},[e("div",{staticClass:"company-logo"})]),e(ie,{staticClass:"align-content-end d-flex justify-end"},[e(se,[e("div",{staticClass:"d-flex align-center"},[e("VcsActionButtonList",{attrs:{actions:n.projectActions,large:""}}),n.projectActions.length>0&&n.menuActions.length>0?e(Ot,{staticClass:"mx-2",attrs:{vertical:"",inset:""}}):n._e(),n.shareActions.length>0?e(Ti,{attrs:{"offset-y":""},scopedSlots:n._u([{key:"activator",fn:function(r){var i=r.on,s=r.attrs;return[e("VcsButton",n._g(n._b({attrs:{large:"",tooltip:"Share current view of the map.",icon:"$vcsShare"}},"VcsButton",s,!1),i))]}}],null,!1,2109527708)},[e("VcsActionList",{attrs:{actions:n.shareActions,"tooltip-position":"left","show-icon":!0}})],1):n._e(),e("VcsActionButtonList",{attrs:{actions:n.menuActions,"overflow-count":3,large:""}})],1)])],1)],1)],1)],1)},fs=[],$c="";const ps={name:"VcsNavbar",components:{VcsActionButtonList:vi,VcsActionList:gi,VcsButton:re},setup(){const n=ct("vcsApp"),t=y(n.navbarManager.componentIds),e=$(()=>t.value.map(i=>n.navbarManager.get(i))),r=i=>$(()=>Pn(e.value,i,[...n.plugins].map(s=>s.name)));return{mapActions:r(U.MAP),contentActions:r(U.CONTENT),toolActions:r(U.TOOL),projectActions:r(U.PROJECT),shareActions:r(U.SHARE),menuActions:r(U.MENU)}}},Rn={};var ds=T(ps,hs,fs,!1,_s,"66838369",null,null);function _s(n){for(let t in Rn)this[t]=Rn[t]}var ve=function(){return ds.exports}();/*! *****************************************************************************
14
+ Copyright (c) Microsoft Corporation.
15
+
16
+ Permission to use, copy, modify, and/or distribute this software for any
17
+ purpose with or without fee is hereby granted.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
20
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
21
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
22
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
23
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
24
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
25
+ PERFORMANCE OF THIS SOFTWARE.
26
+ ***************************************************************************** */var ge=function(n,t){return ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])},ge(n,t)};function O(n,t){ge(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function Ct(n){return typeof n=="function"}var Dn=!1,j={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){var t=new Error;""+t.stack}Dn=n},get useDeprecatedSynchronousErrorHandling(){return Dn}};function ft(n){setTimeout(function(){throw n},0)}var Pt={closed:!0,next:function(n){},error:function(n){if(j.useDeprecatedSynchronousErrorHandling)throw n;ft(n)},complete:function(){}},jn=function(){return Array.isArray||function(n){return n&&typeof n.length=="number"}}();function Wn(n){return n!==null&&typeof n=="object"}var ms=function(){function n(t){return Error.call(this),this.message=t?t.length+` errors occurred during unsubscription:
27
+ `+t.map(function(e,r){return r+1+") "+e.toString()}).join(`
28
+ `):"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n}(),Vt=ms,Y=function(){function n(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return n.prototype.unsubscribe=function(){var t;if(!this.closed){var e=this,r=e._parentOrParents,i=e._ctorUnsubscribe,s=e._unsubscribe,o=e._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof n)r.remove(this);else if(r!==null)for(var a=0;a<r.length;++a){var c=r[a];c.remove(this)}if(Ct(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(h){t=h instanceof Vt?Bn(h.errors):[h]}}if(jn(o))for(var a=-1,l=o.length;++a<l;){var u=o[a];if(Wn(u))try{u.unsubscribe()}catch(f){t=t||[],f instanceof Vt?t=t.concat(Bn(f.errors)):t.push(f)}}if(t)throw new Vt(t)}},n.prototype.add=function(t){var e=t;if(!t)return n.EMPTY;switch(typeof t){case"function":e=new n(t);case"object":if(e===this||e.closed||typeof e.unsubscribe!="function")return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof n)){var r=e;e=new n,e._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var i=e._parentOrParents;if(i===null)e._parentOrParents=this;else if(i instanceof n){if(i===this)return e;e._parentOrParents=[i,this]}else if(i.indexOf(this)===-1)i.push(this);else return e;var s=this._subscriptions;return s===null?this._subscriptions=[e]:s.push(e),e},n.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);r!==-1&&e.splice(r,1)}},n.EMPTY=function(t){return t.closed=!0,t}(new n),n}();function Bn(n){return n.reduce(function(t,e){return t.concat(e instanceof Vt?e.errors:e)},[])}var Rt=function(){return typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),W=function(n){O(t,n);function t(e,r,i){var s=n.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=Pt;break;case 1:if(!e){s.destination=Pt;break}if(typeof e=="object"){e instanceof t?(s.syncErrorThrowable=e.syncErrorThrowable,s.destination=e,e.add(s)):(s.syncErrorThrowable=!0,s.destination=new Un(s,e));break}default:s.syncErrorThrowable=!0,s.destination=new Un(s,e,r,i);break}return s}return t.prototype[Rt]=function(){return this},t.create=function(e,r,i){var s=new t(e,r,i);return s.syncErrorThrowable=!1,s},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(Y),Un=function(n){O(t,n);function t(e,r,i,s){var o=n.call(this)||this;o._parentSubscriber=e;var a,c=o;return Ct(r)?a=r:r&&(a=r.next,i=r.error,s=r.complete,r!==Pt&&(c=Object.create(r),Ct(c.unsubscribe)&&o.add(c.unsubscribe.bind(c)),c.unsubscribe=o.unsubscribe.bind(o))),o._context=c,o._next=a,o._error=i,o._complete=s,o}return t.prototype.next=function(e){if(!this.isStopped&&this._next){var r=this._parentSubscriber;!j.useDeprecatedSynchronousErrorHandling||!r.syncErrorThrowable?this.__tryOrUnsub(this._next,e):this.__tryOrSetError(r,this._next,e)&&this.unsubscribe()}},t.prototype.error=function(e){if(!this.isStopped){var r=this._parentSubscriber,i=j.useDeprecatedSynchronousErrorHandling;if(this._error)!i||!r.syncErrorThrowable?(this.__tryOrUnsub(this._error,e),this.unsubscribe()):(this.__tryOrSetError(r,this._error,e),this.unsubscribe());else if(r.syncErrorThrowable)i?(r.syncErrorValue=e,r.syncErrorThrown=!0):ft(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;ft(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var r=this._parentSubscriber;if(this._complete){var i=function(){return e._complete.call(e._context)};!j.useDeprecatedSynchronousErrorHandling||!r.syncErrorThrowable?(this.__tryOrUnsub(i),this.unsubscribe()):(this.__tryOrSetError(r,i),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,r){try{e.call(this._context,r)}catch(i){if(this.unsubscribe(),j.useDeprecatedSynchronousErrorHandling)throw i;ft(i)}},t.prototype.__tryOrSetError=function(e,r,i){if(!j.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{r.call(this._context,i)}catch(s){return j.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=s,e.syncErrorThrown=!0,!0):(ft(s),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(W);function vs(n){for(;n;){var t=n,e=t.closed,r=t.destination,i=t.isStopped;if(e||i)return!1;r&&r instanceof W?n=r:n=null}return!0}function gs(n,t,e){if(n){if(n instanceof W)return n;if(n[Rt])return n[Rt]()}return!n&&!t&&!e?new W(Pt):new W(n,t,e)}var xt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Hn(n){return n}function ys(n){return n.length===0?Hn:n.length===1?n[0]:function(e){return n.reduce(function(r,i){return i(r)},e)}}var N=function(){function n(t){this._isScalar=!1,t&&(this._subscribe=t)}return n.prototype.lift=function(t){var e=new n;return e.source=this,e.operator=t,e},n.prototype.subscribe=function(t,e,r){var i=this.operator,s=gs(t,e,r);if(i?s.add(i.call(s,this.source)):s.add(this.source||j.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),j.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},n.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){j.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),vs(t)?t.error(e):console.warn(e)}},n.prototype.forEach=function(t,e){var r=this;return e=Gn(e),new e(function(i,s){var o;o=r.subscribe(function(a){try{t(a)}catch(c){s(c),o&&o.unsubscribe()}},s,i)})},n.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},n.prototype[xt]=function(){return this},n.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.length===0?this:ys(t)(this)},n.prototype.toPromise=function(t){var e=this;return t=Gn(t),new t(function(r,i){var s;e.subscribe(function(o){return s=o},function(o){return i(o)},function(){return r(s)})})},n.create=function(t){return new n(t)},n}();function Gn(n){if(n||(n=j.Promise||Promise),!n)throw new Error("no Promise impl found");return n}var bs=function(){function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n}(),At=bs,ws=function(n){O(t,n);function t(e,r){var i=n.call(this)||this;return i.subject=e,i.subscriber=r,i.closed=!1,i}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,r=e.observers;if(this.subject=null,!(!r||r.length===0||e.isStopped||e.closed)){var i=r.indexOf(this.subscriber);i!==-1&&r.splice(i,1)}}},t}(Y),Ss=function(n){O(t,n);function t(e){var r=n.call(this,e)||this;return r.destination=e,r}return t}(W),qn=function(n){O(t,n);function t(){var e=n.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype[Rt]=function(){return new Ss(this)},t.prototype.lift=function(e){var r=new zn(this,this);return r.operator=e,r},t.prototype.next=function(e){if(this.closed)throw new At;if(!this.isStopped)for(var r=this.observers,i=r.length,s=r.slice(),o=0;o<i;o++)s[o].next(e)},t.prototype.error=function(e){if(this.closed)throw new At;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var r=this.observers,i=r.length,s=r.slice(),o=0;o<i;o++)s[o].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new At;this.isStopped=!0;for(var e=this.observers,r=e.length,i=e.slice(),s=0;s<r;s++)i[s].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(e){if(this.closed)throw new At;return n.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){if(this.closed)throw new At;return this.hasError?(e.error(this.thrownError),Y.EMPTY):this.isStopped?(e.complete(),Y.EMPTY):(this.observers.push(e),new ws(this,e))},t.prototype.asObservable=function(){var e=new N;return e.source=this,e},t.create=function(e,r){return new zn(e,r)},t}(N),zn=function(n){O(t,n);function t(e,r){var i=n.call(this)||this;return i.destination=e,i.source=r,i}return t.prototype.next=function(e){var r=this.destination;r&&r.next&&r.next(e)},t.prototype.error=function(e){var r=this.destination;r&&r.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){var r=this.source;return r?this.source.subscribe(e):Y.EMPTY},t}(qn),Es=new N(function(n){return n.complete()});function Ts(n){return n?Is(n):Es}function Is(n){return new N(function(t){return n.schedule(function(){return t.complete()})})}function Yn(n){return n&&typeof n.schedule=="function"}var Jn=function(n){return function(t){for(var e=0,r=n.length;e<r&&!t.closed;e++)t.next(n[e]);t.complete()}};function ye(n,t){return new N(function(e){var r=new Y,i=0;return r.add(t.schedule(function(){if(i===n.length){e.complete();return}e.next(n[i++]),e.closed||r.add(this.schedule())})),r})}function Zn(n,t){return t?ye(n,t):new N(Jn(n))}function Cs(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=n[n.length-1];return Yn(e)?(n.pop(),ye(n,e)):Zn(n)}function et(){}var xs=function(){function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n}(),As=xs;function Dt(n,t){return function(r){if(typeof n!="function")throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new Ls(n,t))}}var Ls=function(){function n(t,e){this.project=t,this.thisArg=e}return n.prototype.call=function(t,e){return e.subscribe(new Ms(t,this.project,this.thisArg))},n}(),Ms=function(n){O(t,n);function t(e,r,i){var s=n.call(this,e)||this;return s.project=r,s.count=0,s.thisArg=i||s,s}return t.prototype._next=function(e){var r;try{r=this.project.call(this.thisArg,e,this.count++)}catch(i){this.destination.error(i);return}this.destination.next(r)},t}(W),$s=function(n){return function(t){return n.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,ft),t}};function Os(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var jt=Os(),Ns=function(n){return function(t){var e=n[jt]();do{var r=void 0;try{r=e.next()}catch(i){return t.error(i),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}while(!0);return typeof e.return=="function"&&t.add(function(){e.return&&e.return()}),t}},Fs=function(n){return function(t){var e=n[xt]();if(typeof e.subscribe!="function")throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)}},Qn=function(n){return n&&typeof n.length=="number"&&typeof n!="function"};function Kn(n){return!!n&&typeof n.subscribe!="function"&&typeof n.then=="function"}var Xn=function(n){if(!!n&&typeof n[xt]=="function")return Fs(n);if(Qn(n))return Jn(n);if(Kn(n))return $s(n);if(!!n&&typeof n[jt]=="function")return Ns(n);var t=Wn(n)?"an invalid object":"'"+n+"'",e="You provided "+t+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(e)};function ks(n,t){return new N(function(e){var r=new Y;return r.add(t.schedule(function(){var i=n[xt]();r.add(i.subscribe({next:function(s){r.add(t.schedule(function(){return e.next(s)}))},error:function(s){r.add(t.schedule(function(){return e.error(s)}))},complete:function(){r.add(t.schedule(function(){return e.complete()}))}}))})),r})}function Ps(n,t){return new N(function(e){var r=new Y;return r.add(t.schedule(function(){return n.then(function(i){r.add(t.schedule(function(){e.next(i),r.add(t.schedule(function(){return e.complete()}))}))},function(i){r.add(t.schedule(function(){return e.error(i)}))})})),r})}function Vs(n,t){if(!n)throw new Error("Iterable cannot be null");return new N(function(e){var r=new Y,i;return r.add(function(){i&&typeof i.return=="function"&&i.return()}),r.add(t.schedule(function(){i=n[jt](),r.add(t.schedule(function(){if(!e.closed){var s,o;try{var a=i.next();s=a.value,o=a.done}catch(c){e.error(c);return}o?e.complete():(e.next(s),this.schedule())}}))})),r})}function Rs(n){return n&&typeof n[xt]=="function"}function Ds(n){return n&&typeof n[jt]=="function"}function js(n,t){if(n!=null){if(Rs(n))return ks(n,t);if(Kn(n))return Ps(n,t);if(Qn(n))return ye(n,t);if(Ds(n)||typeof n=="string")return Vs(n,t)}throw new TypeError((n!==null&&typeof n||n)+" is not observable")}function tr(n,t){return t?js(n,t):n instanceof N?n:new N(Xn(n))}var be=function(n){O(t,n);function t(e){var r=n.call(this)||this;return r.parent=e,r}return t.prototype._next=function(e){this.parent.notifyNext(e)},t.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},t}(W),we=function(n){O(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(){this.destination.complete()},t}(W);function Se(n,t){if(!t.closed){if(n instanceof N)return n.subscribe(t);var e;try{e=Xn(n)(t)}catch(r){t.error(r)}return e}}function er(n,t,e){return e===void 0&&(e=Number.POSITIVE_INFINITY),typeof t=="function"?function(r){return r.pipe(er(function(i,s){return tr(n(i,s)).pipe(Dt(function(o,a){return t(i,o,s,a)}))},e))}:(typeof t=="number"&&(e=t),function(r){return r.lift(new Ws(n,e))})}var Ws=function(){function n(t,e){e===void 0&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return n.prototype.call=function(t,e){return e.subscribe(new Bs(t,this.project,this.concurrent))},n}(),Bs=function(n){O(t,n);function t(e,r,i){i===void 0&&(i=Number.POSITIVE_INFINITY);var s=n.call(this,e)||this;return s.project=r,s.concurrent=i,s.hasCompleted=!1,s.buffer=[],s.active=0,s.index=0,s}return t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var r,i=this.index++;try{r=this.project(e,i)}catch(s){this.destination.error(s);return}this.active++,this._innerSub(r)},t.prototype._innerSub=function(e){var r=new be(this),i=this.destination;i.add(r);var s=Se(e,r);s!==r&&i.add(s)},t.prototype._complete=function(){this.hasCompleted=!0,this.active===0&&this.buffer.length===0&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyComplete=function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},t}(we);function Us(n){return n===void 0&&(n=Number.POSITIVE_INFINITY),er(Hn,n)}function st(n,t,e,r){return Ct(e)&&(r=e,e=void 0),r?st(n,t,e).pipe(Dt(function(i){return jn(i)?r.apply(void 0,i):r(i)})):new N(function(i){function s(o){arguments.length>1?i.next(Array.prototype.slice.call(arguments)):i.next(o)}nr(n,t,s,i,e)})}function nr(n,t,e,r,i){var s;if(qs(n)){var o=n;n.addEventListener(t,e,i),s=function(){return o.removeEventListener(t,e,i)}}else if(Gs(n)){var a=n;n.on(t,e),s=function(){return a.off(t,e)}}else if(Hs(n)){var c=n;n.addListener(t,e),s=function(){return c.removeListener(t,e)}}else if(n&&n.length)for(var l=0,u=n.length;l<u;l++)nr(n[l],t,e,r,i);else throw new TypeError("Invalid event target");r.add(s)}function Hs(n){return n&&typeof n.addListener=="function"&&typeof n.removeListener=="function"}function Gs(n){return n&&typeof n.on=="function"&&typeof n.off=="function"}function qs(n){return n&&typeof n.addEventListener=="function"&&typeof n.removeEventListener=="function"}function zs(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=Number.POSITIVE_INFINITY,r=null,i=n[n.length-1];return Yn(i)?(r=n.pop(),n.length>1&&typeof n[n.length-1]=="number"&&(e=n.pop())):typeof i=="number"&&(e=n.pop()),r===null&&n.length===1&&n[0]instanceof N?n[0]:Us(e)(Zn(n,r))}function Ys(n){return function(t){return n===0?Ts():t.lift(new Js(n))}}var Js=function(){function n(t){if(this.total=t,this.total<0)throw new As}return n.prototype.call=function(t,e){return e.subscribe(new Zs(t,this.total))},n}(),Zs=function(n){O(t,n);function t(e,r){var i=n.call(this,e)||this;return i.total=r,i.count=0,i}return t.prototype._next=function(e){var r=this.total,i=++this.count;i<=r&&(this.destination.next(e),i===r&&(this.destination.complete(),this.unsubscribe()))},t}(W);function rr(n,t){return typeof t=="function"?function(e){return e.pipe(rr(function(r,i){return tr(n(r,i)).pipe(Dt(function(s,o){return t(r,s,i,o)}))}))}:function(e){return e.lift(new Qs(n))}}var Qs=function(){function n(t){this.project=t}return n.prototype.call=function(t,e){return e.subscribe(new Ks(t,this.project))},n}(),Ks=function(n){O(t,n);function t(e,r){var i=n.call(this,e)||this;return i.project=r,i.index=0,i}return t.prototype._next=function(e){var r,i=this.index++;try{r=this.project(e,i)}catch(s){this.destination.error(s);return}this._innerSub(r)},t.prototype._innerSub=function(e){var r=this.innerSubscription;r&&r.unsubscribe();var i=new be(this),s=this.destination;s.add(i),this.innerSubscription=Se(e,i),this.innerSubscription!==i&&s.add(this.innerSubscription)},t.prototype._complete=function(){var e=this.innerSubscription;(!e||e.closed)&&n.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=void 0},t.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&n.prototype._complete.call(this)},t.prototype.notifyNext=function(e){this.destination.next(e)},t}(we);function Ee(n){return function(t){return t.lift(new Xs(n))}}var Xs=function(){function n(t){this.notifier=t}return n.prototype.call=function(t,e){var r=new to(t),i=Se(this.notifier,new be(r));return i&&!r.seenValue?(r.add(i),e.subscribe(r)):r},n}(),to=function(n){O(t,n);function t(e){var r=n.call(this,e)||this;return r.seenValue=!1,r}return t.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},t.prototype.notifyComplete=function(){},t}(we);function Lt(n,t,e){return function(i){return i.lift(new eo(n,t,e))}}var eo=function(){function n(t,e,r){this.nextOrObserver=t,this.error=e,this.complete=r}return n.prototype.call=function(t,e){return e.subscribe(new no(t,this.nextOrObserver,this.error,this.complete))},n}(),no=function(n){O(t,n);function t(e,r,i,s){var o=n.call(this,e)||this;return o._tapNext=et,o._tapError=et,o._tapComplete=et,o._tapError=i||et,o._tapComplete=s||et,Ct(r)?(o._context=o,o._tapNext=r):r&&(o._context=r,o._tapNext=r.next||et,o._tapError=r.error||et,o._tapComplete=r.complete||et),o}return t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(r){this.destination.error(r);return}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(r){this.destination.error(r);return}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){this.destination.error(e);return}return this.destination.complete()},t}(W),ro=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e(wt,{ref:"windowComponentRef",staticClass:"elevation-3 position-absolute d-flex flex-column",class:{rounded:!n.isDocked,marginToTop:n.isDocked},attrs:{id:"window-component--"+n.windowState.id},on:{click:n.clicked}},[n.windowState.hideHeader?n._e():e("div",{ref:"draggableHeaderRef",staticClass:"pa-2",class:{"cursor-grab":n.isDynamic,"grey--text":!n.isOnTop},attrs:{draggable:n.isDynamic}},[n._t("headerComponent")],2),e(Ot),e("div",{staticClass:"overflow-x-hidden"},[n._t("default")],2)],1)},io=[],Oc="";const so={props:{windowState:{type:Object,required:!0},isOnTop:{type:Boolean,required:!0,default:!1},slotWindow:{type:Object,required:!0}},setup({windowState:n,slotWindow:t},{emit:e}){const r=y(null),i=y(null),s=$(()=>t.value!==A.STATIC),o=$(()=>t.value!==A.DETACHED),a=u=>{e("click",u)};let c,l;return sn(()=>{!n.hideHeader&&t.value!==A.STATIC&&Kr(()=>{const u=st(r.value,"dragstart"),h=st(document.body,"dragover"),f=st(document.body,"drop");l=u.pipe(Lt(()=>{c=h.subscribe(_=>{_.preventDefault()})}),rr(_=>{const v=window.getComputedStyle(i.value.$el,null),w={top:parseInt(v.getPropertyValue("top"),10),left:parseInt(v.getPropertyValue("left"),10),width:parseInt(v.getPropertyValue("width"),10),height:parseInt(v.getPropertyValue("height"),10)};return _.dataTransfer.setData("text/html",null),f.pipe(Ys(1),Dt(B=>(w.dx=_.clientX-B.clientX,w.dy=_.clientY-B.clientY,w)),Lt(()=>{c.unsubscribe()}))})).subscribe(_=>{e("dropped",_)})})}),vt(()=>{c&&c.unsubscribe(),l&&l.unsubscribe()}),{isDynamic:s,isDocked:o,draggableHeaderRef:r,windowComponentRef:i,clicked:a}}},ir={};var oo=T(so,ro,io,!1,ao,"4d04edc4",null,null);function ao(n){for(let t in ir)this[t]=ir[t]}var Te=function(){return oo.exports}(),co=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("span",{staticClass:"d-flex justify-space-between align-center window-component-header"},[e("span",[n.windowState.headerIcon?e(it,{staticClass:"mr-2 primary--text",domProps:{textContent:n._s(n.windowState.headerIcon)}}):n._e(),e("h3",{staticClass:"font-size-14 d-inline-block user-select-none font-weight-bold"},[n._v(" "+n._s(n._f("translate")(n.windowState.headerTitle))+" ")])],1),e("VcsButton",{attrs:{small:"",icon:"mdi-close-thick"},on:{click:function(r){return r.stopPropagation(),n.close.apply(null,arguments)}}})],1)},lo=[],Nc="";const uo={components:{VcsButton:re},props:{windowState:{type:Object,required:!0}},setup(n,{emit:t}){return{close:()=>{t("close")},clicked:i=>{t("click",i)}}}},sr={};var ho=T(uo,co,lo,!1,fo,null,null,null);function fo(n){for(let t in sr)this[t]=sr[t]}var or=function(){return ho.exports}(),po=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",n._l(n.componentIds,function(r,i){return e(Te,{key:r,class:n.getState(r).classes,style:n.getStyles(r,i),attrs:{"window-state":n.getState(r),"slot-window":n.getSlot(r),"z-index":i,"is-on-top":n.isOnTop(i)},on:{dropped:function(s){return n.dropped(r,s)},click:function(s){return n.clicked(r)}},scopedSlots:n._u([n.getState(r).hideHeader?null:{key:"headerComponent",fn:function(){return[e(n.getHeaderComponent(r),{tag:"component",attrs:{"window-state":n.getState(r)},on:{close:function(s){return n.close(r)}}})]},proxy:!0}],null,!0)},[e(n.getComponent(r),n._b({tag:"component",attrs:{"window-state":n.getState(r)}},"component",n.getProps(r),!1))],1)}),1)},_o=[];const mo={name:"VcsWindowManager",components:{WindowComponent:Te},setup(){const n=ct("vcsApp"),{windowManager:t}=n,{componentIds:e}=t;return{componentIds:e,getComponent:l=>t.get(l).component,getHeaderComponent:l=>t.get(l).headerComponent||or,getStyles:(l,u)=>{const h=t.get(l),f=h==null?void 0:h.state,d=h==null?void 0:h.position;return E({zIndex:u,left:d.left,top:d.top,right:d.right,bottom:d.bottom,width:d.width,height:d.height},f.styles||{})},getState:l=>{var u;return(u=t.get(l))==null?void 0:u.state},getProps:l=>{var u,h;return(h=(u=t.get(l))==null?void 0:u.props)!=null?h:{}},isOnTop:l=>l===e.length-1,getSlot:l=>t.get(l).slot,close:l=>{t.remove(l)},dropped:(l,u)=>{const{innerWidth:h,innerHeight:f}=window,d=Math.min(Math.max(0,u.top-u.dy),f-u.height),_=Math.min(Math.max(0,u.left-u.dx),h-u.width);t.setWindowPositionOptions(l,{top:d,left:_,width:u.width,height:u.height})},clicked:l=>{t.has(l)&&t.bringWindowToTop(l)}}}},ar={};var vo=T(mo,po,_o,!1,go,null,null,null);function go(n){for(let t in ar)this[t]=ar[t]}var cr=function(){return vo.exports}(),yo=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("span",{staticClass:"ma-1 position-relative",class:[].concat(n.customClasses)},[e(oe,{staticClass:"expand-button mb-0 w-16 h-10",class:{"mb-0":n.active,"h-full":n.active,"rounded-b-0":n.active,"border-2--primary":n.group.options[0].selected},attrs:{color:n.active?"white":null,text:n.active?null:!0,disabled:n.group.options[0].disabled,elevation:"0"},on:{click:function(){return n.setOpen(n.group.id,!n.group.open)}}},[n._t("selected-icon",function(){return[e(it,{domProps:{textContent:n._s(n.group.options[0].icon)}})]}),n._t("default"),n.group.options.length>1?e(it,{class:{"rotate-180--right":n.active},domProps:{textContent:n._s("mdi-chevron-down")}}):n._e()],2),n.group.open?e("div",{staticClass:"d-flex flex-row white rounded-b position-absolute z-index-1 pos-t-11"},[n._t("menu-items",function(){return n._l(n.group.options.slice(1),function(r){return e(oe,{key:r.id,staticClass:"py-1 rounded-t-0 rounded-br-0 h-10.5 -mt-2",attrs:{elevation:"0"},on:{click:function(){return n.selectOption(r.id)}}},[e(it,{staticClass:"mt-1.5",domProps:{textContent:n._s(r.icon)}})],1)})})],2):n._e()],1)},bo=[],Fc="";const wo={name:"VcsToolboxSingleSelectButton",props:{value:{type:Boolean,default:!1},group:{type:Object,default:()=>({})},customClasses:{type:Array,default:()=>[]}},setup({value:n},{emit:t}){const e=y(!1);return{active:n,open:e,selectOption:s=>{t("selected",s),t("set-open",{id:s,open:!e})},setOpen:(s,o)=>{t("set-open",{id:s,open:o})}}}},lr={};var So=T(wo,yo,bo,!1,Eo,"738eee0c",null,null);function Eo(n){for(let t in lr)this[t]=lr[t]}var ur=function(){return So.exports}(),To=function(){var n=this,t=n.$createElement,e=n._self._c||t;return n.group.options&&n.group.options[0]?e("span",{staticClass:"ma-1 position-relative",class:[].concat(n.customClasses)},[e(oe,{staticClass:"expand-button mb-0 w-16 h-10",class:{"mb-0":n.active,"h-full":n.active,"rounded-b-0":n.active},attrs:{color:n.active?"white":null,text:n.active?null:!0,disabled:n.group.options[0].disabled,elevation:"0"},on:{click:function(){return n.setOpen(n.group.id,!n.group.open)}}},[n._t("selected-icon",function(){return[e(it,{domProps:{textContent:n._s(n.group.icon)}})]}),n._t("default"),n.group.options.length>1?e(it,{class:{"rotate-180--right":n.active},domProps:{textContent:n._s("mdi-chevron-down")}}):n._e()],2),n.group.open?e(ae,{staticStyle:{position:"absolute","min-width":"150px"},attrs:{tile:""}},[e(dn,{attrs:{dense:""}},[e(Ii,n._l(n.group.options,function(r){return e(_n,{key:r.id,attrs:{dense:""},on:{click:function(){return n.selectOption(r.id)}}},[e(Ci,[e("input",{class:r.selected?"y":"n",attrs:{type:"checkbox"},domProps:{checked:r.selected}})]),e(mn,[e(xi,[n._v(n._s(r.text))])],1)],1)}),1)],1)],1):n._e()],1):n._e()},Io=[],kc="";const Co={name:"VcsToolboxSingleSelectButton",props:{value:{type:Boolean,default:void 0},group:{type:Object,default:()=>({})},customClasses:{type:Array,default:()=>[]}},setup({value:n},{emit:t}){const e=y(!1);return{active:n,open:e,selectOption:s=>{t("selected",s)},setOpen:(s,o)=>{t("set-open",{id:s,open:o})}}}},hr={};var xo=T(Co,To,Io,!1,Ao,"2139e4f6",null,null);function Ao(n){for(let t in hr)this[t]=hr[t]}var fr=function(){return xo.exports}(),Lo=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e(Ai,{staticClass:"vcs-toolbox toolbar__secondary rounded-b mx-auto v-sheet",style:{maxWidth:n.getWidth()+"px"},attrs:{dense:""}},[e(se,{staticClass:"w-full"},[e("div",{staticClass:"d-flex align-center justify-space-between w-full"},n._l(n.groups,function(r){return e("span",{key:r.id},[r.type==="customComponent"?e(r.component,{tag:"component",attrs:{icon:"$vcsObjectAttribute",value:r.active,group:r},nativeOn:{click:function(i){r.active=!r.active}}}):n._e(),r.type==="toggleButton"?e("Button",{attrs:{group:r,icon:"$vcsObjectAttribute",value:r.active},nativeOn:{click:function(i){r.active=!r.active}}}):n._e(),n.toolboxGroupVisible(r)&&r.type==="singleSelectButton"?e(ur,{attrs:{group:r},on:{selected:function(i){return n.selectSingleSelectOption(i)},"set-open":function(i){var s=i.id,o=i.open;return n.setGroupOpen({id:s,open:o})}}}):n._e(),n.toolboxGroupVisible(r)&&r.type==="multiSelectButton"?e(fr,{attrs:{group:r},on:{selected:function(i){return n.selectMultiSlectOption(i)},"set-open":function(i){var s=i.id,o=i.open;return n.setGroupOpen({id:s,open:o})}}}):n._e()],1)}),0)])],1)},Mo=[],Pc="";const $o={name:"VcsToolbox",props:{width:{type:Number,default:600}},setup(){const n=ct("vcsApp"),{toolboxManager:t}=n,{state:{groups:e}}=t;return{groups:e,getWidth:()=>t.getNumberOfUsedSlots()*75,selectSingleSelectOption:c=>{t.bringToTop(c)},selectMultiSlectOption:c=>{t.selectOption(c)},setGroupOpen:({id:c,open:l})=>{t.setGroupOpen(c,l)},toolboxGroupVisible:c=>c&&c.options&&c.options.length}},components:{ToolboxSingleSelectButton:ur,ToolboxMultiSelectButton:fr,VcsButton:re}},pr={};var Oo=T($o,Lo,Mo,!1,No,"e06d93b2",null,null);function No(n){for(let t in pr)this[t]=pr[t]}var Fo=function(){return Oo.exports}(),ko=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{attrs:{id:n.mapId}})},Po=[],Vc="";const Vo={name:"VcsMap",props:{mapId:{type:String,required:!0}}},dr={};var Ro=T(Vo,ko,Po,!1,Do,"3212fc9e",null,null);function Do(n){for(let t in dr)this[t]=dr[t]}var Wt=function(){return Ro.exports}();class _r extends ti{constructor(){super(ei.CLICK,ni.ALL);this.mapClicked=new X,this.setActive()}async pipe(t){return this.mapClicked.raiseEvent(t),t.stopPropagation=!0,t}destroy(){this.mapClicked.destroy(),super.destroy()}}var Rc="";L.use(pn);const Ie=new pn({treeShake:!1,defaultAssets:{font:{family:"titillium-web"}},theme:{options:{customProperties:!0},themes:{light:{basic:"#FFFFFF",primary:"#409D76",accent:"#EDEDED",warning:"#FFCE00","gray-200":"#DEDEDE",gray:"#707070",secondary:"#222222",error:"#AA0000",info:"#2196F3",success:"#4CAF50"},dark:{basic:"#000000",primary:"#409D76",secondary:"#FFFFFF",accent:"#757575",warning:"#FFCE00",error:"#FF5252"}}},icons:{iconfont:"mdi",values:E({},yi)}});function Ce(){return{component:Wt,props:{mapId:"overview-map-container"},slot:A.DETACHED,id:"overview-map-container",state:{hideHeader:!0},position:{right:"100px",bottom:"25px",width:"272px",height:"223px"}}}class mr{constructor(t){this._app=t,this._active=!1,this._map=new ee({target:"overview-map-container"}),this._cachedViewPoint=null,this._obliqueTileLayer=null,this._obliqueImageLayer=null,this._obliqueSelectedImageLayer=null;const{primary:e,accent:r}=Ie.userPreset.theme.themes.light,i=Pi.fromCssColorString(r);this.obliqueUnselectedStyle=new gt({fill:{color:i.withAlpha(.1).toCssColorString()},stroke:{color:e,width:1}}),this.obliqueSelectedStyle=new gt({fill:{color:i.withAlpha(.8).toCssColorString()},stroke:{color:e,width:3}}),this._obliqueResolutionFactor=2,this._obliqueViewDirection=null,this._cameraIconLayer=null,this.cameraIconStyle=new gt({image:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAA8CAYAAADxJz2MAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4RpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTExIDc5LjE1ODMyNSwgMjAxNS8wOS8xMC0wMToxMDoyMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDphMzhlODgyYy00ZGYzLTZkNGMtYWZhYy1hYTkwOTI3MjRiYjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NEYxRkE1MDlENjRDMTFFNTlGRjhFMzM3RTA3MDJFMDciIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NEYxRkE1MDhENjRDMTFFNTlGRjhFMzM3RTA3MDJFMDciIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OGJiODg5ODItZGM0Zi0xNjQyLWEyZDYtODJkZTcxMGNhNjkwIiBzdFJlZjpkb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6YzY5MTdhNjAtZDYzYy0xMWU1LThjNTgtYTMwNjE0MWQwNTkyIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Fn8KKQAABwVJREFUeNrsW0toHVUYPufOvb2madNaa2NS3682BTcKiQqx4qO0i7gKpHFhoCBoG8SVC124ExcW02yCiFCQ4iLgIhWJCE2pYI1J1VitNFhTIz5STdI2D2tucsf/N9/YcTKvM+fMbYT54eu9nTvnzMx3/veZSNu2RSbJJZdRkBGYEZgRmBGYSUZgRmBGYEZgJslkTUZBoEjXpxcsxTz9U0OYIfxFsAi2a5DtOjnpxU09RNS9SEPXiXN8kbCWUCWhgZsIf+Am3WYdh0BpkFipeG3v2LhjdM4pgyPmbMI5aT1hHeECIV+BVVXRLJ17kR6LSnqOl8AbCZNsue4BWzAB/1B0TapLpEyJmDTcR9SCL4C8K4Tf+Jh3wK2EecIsoWDIFE1qSxoExvV9JcQLttAxfC7lPSdNgMQlqKpUuJht6MZ15gsao7OgElxw0NhAGMXvzJHtNzGzfBPILBj2dyY00ZT2qURdJmsr4TxcnCNW0CR1IPJ3RGk74YWTPITU0BTTGYLj92pB3E/e38MusAP5zsUQTayELxIKrkRX04SP39sEDfxGdRLWvPsIUyAyl1LkTMPkpAErYNKugyUOgUzlC20mbIfq5lN4gDiBREfTdYjka9cTRlBkJL7AnZjo54C6OY2bNz2n6mKUEDTOEX7Qzaf4wg+AvMkYzYc0nLkp7Y6zUCVY3gxMV5ggkIPITkw6j6aDCZMySYYJTV9CSVtF+Bi+P1TyEb/brlX5itCI77kKpy3SIKEyQlFY+47HIc+PQOnJ+dzH2ZGOI6iMeVIb1crBpCbqdleky+/dRvgyLGhEERj1nse3SCq3olIpKnYyZMqEJFkIJ1m+hfAL4YyCRVlJzJCDSAs6ErMuf5im9kmFVphqX3ARNS4r0/sgU8ZQpshKJCo/fAor5m46mCidTJmxVLBCrv17YbpOV76cxITjCl9omPAgCuxCism0aZ8oPfkem+4JPJP0IU6C1EWTBLJ8Dad7ByqVotDrLqdR74ZdawFFwhgyDG8skB5XYayD4hbeCniGcJkw55MfphkM4vq+oPZUDSznHfhz6dN1klGmbGLn7GaQ+CNuLFfhiJpEg3mhbye87WpRxQ0cxglkeYjwuLja6r4W3ZW448pwOx8STuo+eN4QgSeRG25Hsl1IITdUMeOg30og77SHPD/ti/R/JjXQWYwXQN6kYvsrKtE1USpyFN2CWv6gx7eFER9KoGXQzPmGfiU8BqdsY/4kyAHu716EjfOex89QTdhIeAtNESNi+UQdHbmI6qQZ3/OuPMrvwXIRsGIej1oMlnsJ7xG+03i+FRzlfXKfuBMFqfanhHsI9/s0HUxFXZXx7PfuJnxuImjoNhPiyhHcNKc4F3w0PY2A4pcLLuIe2CreNfBcdhIfmETYH35P2IXccAmLlcRs44zxmrLTr6xBo+B1wrSG2WoFEWW/ALkMP/gEPi2NQBDlD60A4jll6UGLqhBQ50ZJLsQyZVoa6AjnhLyvynsqU3gIGUKIqrYF/WYjaHxEOKrpnuw02lmqfvYN1M0TCZJ31Y4L+716dFdeEjFb8ybSGFOmLH384Rn0D8vi6iZ9TlMDpc8xgVyPF+tVwqWUePv3WS2DjtWvm+HIJfjBXfiuQlTOExjCxhYQdd8UAa9iGPb3tkkCo87hDeo65IeTrgohqZ+zfPwed1g+EMut+TRK1xX1cSV8oFs7eb+1C4FlIqB/aAv1Xb4y/N55wosJC4DUfWBUqSdjnMf+j3f2Wlz+0PLxa+7PMDh+rwaL83LCOjdxZWQp1MEyomOSi6k1F2HCj4rltroISEOEy8zd//cGEvZ71xMOieUXgVQty5mzrKOBJt4yUDGNczC5HWgvOWSUQQhr0w3ooFThmFNTL7mIZeEdwgGUj0nbYXZCLRWWpk/TiWCfEZ4Uy2+9z2G+WhBWPHDgwK6urq5txWJx8/Dw8ATGrANmMReP5a3VV0KsJKhZauSFJ1lhAr1j7kJQYb+1trW19ZG2traNp06dkvv37y/39vbKwcFBMT09faWurq6qvb3d3rNnzxHkeX+CzOfE8qt3sTaBTEvSPza0E46RPqbMOdv6lpaWnYcPH97Q2NgoSqWS6OvrkwMDA3J+fl6SFlZNTU2J5uZmMTMz87SLvIMgz5m/7NGu1LOMfIUWKuxBjhFaScNK1dXVcm5uTpw9e5axYszs7Kyora2VII1fvz1ucIGveSmnI8fIbB9uaGiob2pqWlMoFMTIyMh/COzo6LBZOzs7Ow8NDQ1xo+DZtOvc/5twRD5KBJ2wbXtkdHS03NPT8w/4Ox1boMDyCbor21bLTctVRmItkuGqffv2Lezdu/d5STI+Pj7V3d1NSjnC25GvieUud0ZgiHC93LR7927enBL9/f2seYOEL1bbjf4twAD8sqEzJ5yLRwAAAABJRU5ErkJggg==",anchor:[.5,1]}}),this.minimumHeight=150,this._eventHandler=null,this._mapClicked=null,this._mapPointerListener=null,this._listeners=[],this._mapActivatedListener=null,this._layerCollectionListener=[this._app.maps.layerCollection.added.addEventListener(s=>{if(s.properties.showInOverviewMap){const o=ri(this._app,s.toJSON());o.activate();const a=this._map.layerCollection.indexOf(o);a<0?this._map.layerCollection.add(o):(this._map.layerCollection.remove(o),this._map.layerCollection.add(o,a))}}),this._app.maps.layerCollection.removed.addEventListener(s=>{if(this._map.layerCollection.hasKey(s.name)){const o=this._map.layerCollection.getByKey(s.name);this._map.layerCollection.remove(o)}})]}get active(){return this._active}get map(){return this._map}get eventHandler(){return this._eventHandler}get mapClicked(){return this._mapClicked}_setupMapInteraction(){this._eventHandler=new ii;const t=new _r;this._mapClicked=t.mapClicked,this._eventHandler.addPersistentInteraction(t),this._mapPointerListener=this._map.pointerInteractionEvent.addEventListener(e=>{this._eventHandler.handleMapEvent(e)})}async _activate(){this._mapClicked||this._setupMapInteraction(),await this._map.activate(),this._active||(this._mapActivatedListener=this._app.maps.mapActivated.addEventListener(()=>{this._clearListeners(),this._cachedViewPoint=null,this._activate()})),this._active=!0;const{activeMap:t}=this._app.maps;t instanceof ne?await this._initializeForCesium(t):t instanceof ee?await this._initializeForOpenlayers(t):t instanceof yt&&await this._initializeForOblique(t)}async activate(){this._app.windowManager.has("overview-map-container")||this._app.windowManager.add(Ce(),P),await this._activate(),this.map.setTarget("overview-map-container")}deactivate(){this._app.windowManager.remove("overview-map-container"),this._clearListeners(),this._mapActivatedListener&&(this._mapActivatedListener(),this._mapActivatedListener=null),this._active=!1}async _initializeForCesium(t){if(this._cameraIconLayer||this._setupCameraIconLayer(),t.initialized){const r=t.getCesiumWidget().scene,i=this._addNavigationListener(t),s=r.postRender.addEventListener(this._addCameraFeature,this),o=()=>{s(),i(),this._cameraIconLayer.deactivate()};this._listeners.push(o),await this._cameraIconLayer.activate()}}async _initializeForOpenlayers(t){this._cameraIconLayer||this._setupCameraIconLayer();const{olMap:e}=t,r=this._addNavigationListener(t),i=e.on("postrender",this._addCameraFeature.bind(this)),s=()=>{le(i),r(),this._cameraIconLayer.deactivate()};this._listeners.push(s),await this._cameraIconLayer.activate()}async _initializeForOblique(t){this._obliqueTileLayer||this._setupObliqueLayers();const r=[this._mapClicked.addEventListener(async o=>{if(o.feature){const a=o.feature.getId().toString();if(this._obliqueTileLayer.getFeatureById(a)){const c=await t.collection.loadImageForCoordinate(o.positionOrPixel,this._obliqueViewDirection);c&&await t.setImageByName(c.name)}else await t.setImageByName(a)}}),t.imageChanged.addEventListener(this._obliqueImageChange.bind(this)),t.collectionChanged.addEventListener(this._obliqueCollectionChanged.bind(this))],i=this._map.olMap.once("postrender",()=>{this._obliqueCollectionChanged(t.collection),this._obliqueImageChange(t.currentImage)}),s=()=>{this._obliqueTileLayer.deactivate(),this._obliqueImageLayer.deactivate(),this._obliqueSelectedImageLayer.deactivate(),le(i),r.forEach(o=>{o()})};this._listeners.push(s),await this._obliqueTileLayer.activate(),await this._obliqueImageLayer.activate(),await this._obliqueSelectedImageLayer.activate()}_obliqueCollectionChanged(t){this._obliqueTileLayer.source=t.tileFeatureSource,this._obliqueTileLayer.forceRedraw(),this._obliqueImageLayer.source=t.imageFeatureSource,this._obliqueImageLayer.forceRedraw(),this._obliqueSelectedImageLayer.removeAllFeatures()}_obliqueImageChange(t){const{source:e}=this._obliqueImageLayer;this._obliqueViewDirection!==t.viewDirection&&(this._obliqueViewDirection=t.viewDirection,e.changed());const r=e.getFeatureById(t.name);if(r){this._obliqueSelectedImageLayer.removeAllFeatures(),this._obliqueSelectedImageLayer.addFeatures([r]);const i=new si({coordinates:r.getGeometry().getExtent(),projection:bt.toJSON()}),s=te.createViewPointFromExtent(i);s.distance/=this._obliqueResolutionFactor,this._map.gotoViewPoint(s)}}_setupObliqueLayers(){const t=new gt({});t.style=r=>r.get("state")===oi.PENDING?this.obliqueUnselectedStyle.style:cn,this._obliqueTileLayer=new $t({projection:bt.toJSON(),style:t,zIndex:1});const e=new gt({});e.style=r=>r.get("viewDirection")===this._obliqueViewDirection?this.obliqueUnselectedStyle.style:cn,this._obliqueImageLayer=new $t({projection:bt.toJSON(),style:e}),this._obliqueSelectedImageLayer=new $t({projection:bt.toJSON(),style:this.obliqueSelectedStyle}),this._map.layerCollection.add(this._obliqueImageLayer),this._map.layerCollection.add(this._obliqueSelectedImageLayer),this._map.layerCollection.add(this._obliqueTileLayer)}_addNavigationListener(t){return this._mapClicked.addEventListener(e=>{const r=t.getViewPointSync(),i=r.groundPosition[2]?r.groundPosition[2]:0;r.groundPosition=ln.mercatorToWgs84(e.positionOrPixel),r.groundPosition[2]=i,r.cameraPosition=null,t.gotoViewPoint(r)})}_setupCameraIconLayer(){this._cameraIconLayer||(this._cameraIconLayer=new $t({projection:bt.toJSON(),zIndex:50}),this._map.layerCollection.add(this._cameraIconLayer))}_addCameraFeature(){const t=this._app.maps.activeMap.getViewPointSync();if(!t||!t.isValid()||t.equals(this._cachedViewPoint))return;this._cachedViewPoint=t.clone();const e=t.groundPosition,r=t.cameraPosition||e,{heading:i}=t;let{distance:s}=t;if(r[2]&&!(s&&s<r[2]*4)?s=r[2]*4:r[2]==null&&(r[2]=s),s=s>this.minimumHeight?s:this.minimumHeight,i==null||s==null)return;let o=this._cameraIconLayer.getFeatureById("cameraFeature");if(!o){const l=new Ni([r[0],r[1]]);o=new Fi({geometry:l}),o.setId("cameraFeature"),o.setStyle(this.cameraIconStyle.style),this._cameraIconLayer.addFeatures([o])}o.getGeometry().setCoordinates(ln.wgs84ToMercator(r));const a=t.heading,c=Vi.toRadians(a);this.cameraIconStyle.image.setRotation(c),t.heading=0,t.cameraPosition=r,t.groundPosition=null,t.distance=s*4,this._map.gotoViewPoint(t)}_clearListeners(){this._listeners.forEach(t=>t()),this._listeners.splice(0)}destroy(){this._clearListeners(),this._layerCollectionListener.forEach(t=>t()),this._mapPointerListener&&(this._mapPointerListener(),this._mapPointerListener=null),this._mapActivatedListener&&(this._mapActivatedListener(),this._mapActivatedListener=null),this._map&&this._map.destroy(),this._obliqueTileLayer&&(this._obliqueTileLayer.source=new ce({}),this._obliqueTileLayer.destroy()),this._obliqueImageLayer&&(this._obliqueImageLayer.source=new ce({}),this._obliqueImageLayer.destroy()),this._obliqueSelectedImageLayer&&(this._obliqueSelectedImageLayer.source=new ce({}),this._obliqueSelectedImageLayer.destroy()),this._cameraIconLayer&&this._cameraIconLayer.destroy(),this._eventHandler&&this._eventHandler.destroy(),this.cameraIconStyle.destroy(),this.obliqueUnselectedStyle.destroy(),this.obliqueSelectedStyle.destroy(),this._cachedViewPoint=null,this._mapClicked=null}}var jo=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"58",height:"58",viewBox:"0 0 58 58"}},[e("g",{attrs:{id:"Group_1654","data-name":"Group 1654",transform:"translate(24)"}},[e("path",{class:n.canEmit?"cursor-pointer":"",attrs:{id:"north_arrow","data-name":"Polygon 14",d:"M4,0,8,13H0Z",transform:"translate(1)",fill:"currentColor"},on:{click:function(r){return n.emit(0)}}}),e("path",{class:n.canEmit?"cursor-pointer":"",attrs:{id:"south_arrow","data-name":"Polygon 17",d:"M4,0,8,13H0Z",transform:"translate(9 58) rotate(180)",fill:"rgba(88,88,88,0.51)"},on:{click:function(r){return n.emit(180)}}})]),e("g",{attrs:{id:"Group_1653","data-name":"Group 1653",transform:"translate(0 33) rotate(-90)"}},[e("path",{class:n.canEmit?"cursor-pointer":"",attrs:{id:"west_arrow","data-name":"Polygon 14",d:"M4,0,8,13H0Z",fill:"rgba(88,88,88,0.51)"},on:{click:function(r){return n.emit(270)}}}),e("path",{class:n.canEmit?"cursor-pointer":"",attrs:{id:"east_arrow","data-name":"Polygon 17",d:"M4,0,8,13H0Z",transform:"translate(8 58) rotate(180)",fill:"rgba(88,88,88,0.51)"},on:{click:function(r){return n.emit(90)}}})]),n.hideTicks?n._e():e("g",{attrs:{id:"Group_1672","data-name":"Group 1672",transform:"translate(1)"}},[e("line",{attrs:{id:"Line_289-2","data-name":"Line 289",x2:"6.079",transform:"translate(3.751 15) rotate(30)",fill:"none",stroke:"#707070","stroke-linecap":"round","stroke-width":"1"}}),e("line",{attrs:{id:"Line_290-2","data-name":"Line 290",x2:"4.665",transform:"translate(48.208 40.667) rotate(30)",fill:"none",stroke:"#707070","stroke-linecap":"round","stroke-width":"1"}}),e("line",{attrs:{id:"Line_289-4","data-name":"Line 289",x2:"6.079",transform:"translate(14 53.249) rotate(-60)",fill:"none",stroke:"#707070","stroke-linecap":"round","stroke-width":"1"}}),e("line",{attrs:{id:"Line_290-3","data-name":"Line 290",x2:"4.665",transform:"translate(39.668 8.792) rotate(-60)",fill:"none",stroke:"#707070","stroke-linecap":"round","stroke-width":"1"}}),e("line",{attrs:{id:"Line_289-5","data-name":"Line 289",x2:"6.079",transform:"translate(14 4.751) rotate(60)",fill:"none",stroke:"#707070","stroke-linecap":"round","stroke-width":"1"}}),e("line",{attrs:{id:"Line_290-4","data-name":"Line 290",x2:"4.665",transform:"translate(39.667 49.208) rotate(60)",fill:"none",stroke:"#707070","stroke-linecap":"round","stroke-width":"1"}}),e("line",{attrs:{id:"Line_289-6","data-name":"Line 289",x2:"6.079",transform:"translate(3.752 43) rotate(-30)",fill:"none",stroke:"#707070","stroke-linecap":"round","stroke-width":"1"}}),e("line",{attrs:{id:"Line_290-5","data-name":"Line 290",x2:"4.665",transform:"translate(48.209 17.333) rotate(-30)",fill:"none",stroke:"#707070","stroke-linecap":"round","stroke-width":"1"}})])])},Wo=[],Dc="";const Bo={props:{canEmit:{type:Boolean,default:!0},hideTicks:{type:Boolean,default:!1}},methods:{emit(n){this.canEmit&&this.$emit("direction-click",n)}}},vr={};var Uo=T(Bo,jo,Wo,!1,Ho,"524999e4",null,null);function Ho(n){for(let t in vr)this[t]=vr[t]}var xe=function(){return Uo.exports}(),Go=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e(wt,{ref:"compassRef",staticClass:`
29
+ h-16 w-16
30
+ d-flex flex-column justify-center align-center
31
+ position-relative
32
+ rounded-circle
33
+ user-select-none
34
+ transition-transform-200-ease
35
+ `,style:{transform:"rotate("+n.compassRotation+"deg)",cursor:n.cursor},attrs:{elevation:"1"},on:{mousedown:n.trackMouse}},[e("span",[n._v("N")]),e(xe,{staticClass:"position-absolute pos-a-0 primary--text",attrs:{"can-emit":n.viewMode==="3d"||n.viewMode==="oblique","hide-ticks":n.viewMode==="oblique"},on:{"direction-click":function(r){return n.$emit("input",r)}}})],1)},qo=[];const zo={name:"VcsCompass",components:{MapNavCompass:xe},props:{viewMode:{type:String,required:!0},value:{type:Number,default:0}},setup(n,t){const e=new qn,r=y(),i=y(),s=({referenceEl:l,event:u})=>{const{left:h,width:f,top:d,height:_}=l.getBoundingClientRect(),v=[h+f/2,d+_/2],w=Math.atan2(u.pageX-v[0],-(u.pageY-v[1]))*(180/Math.PI);return w<0?360+w:w},o=l=>{if(n.viewMode==="3d"){document.body.style.cursor="grabbing";const u=setTimeout(()=>{r.value=!0},200),h=()=>{clearTimeout(u),document.body.style.cursor="unset",r.value=!1};zs(Cs(l),st(document.body,"mousemove")).pipe(Lt(f=>{if(r.value){const d=s({event:f,referenceEl:i.value.$el});t.emit("input",-1*d)}}),Ee(st(document.body,"mouseup").pipe(Lt(()=>h()))),Ee(st(document.body,"mouseleave").pipe(Lt(()=>h()))),Ee(e)).subscribe()}},a=$(()=>n.viewMode==="3d"?r.value?"grabbing":"grab":"auto"),c=y(n.value);return vt(()=>{e.next(),e.unsubscribe()}),{trackMouse:o,compassRef:i,cursor:a,rotationValue:c,compassRotation:$(()=>-1*c.value)}},watch:{value(n,t){let e=n-t;e>180?e-=360:e<-180&&(e+=360),this.rotationValue+=e}}},gr={};var Yo=T(zo,Go,qo,!1,Jo,null,null,null);function Jo(n){for(let t in gr)this[t]=gr[t]}var Ae=function(){return Yo.exports}(),Zo=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("VcsTooltip",{attrs:{"tooltip-position":n.tooltipPosition,tooltip:n.tooltip},scopedSlots:n._u([{key:"activator",fn:function(r){var i=r.on,s=r.attrs;return[e(ae,n._g(n._b({staticClass:"h-8 w-8 d-flex align-center justify-center text-center btn-orientation-tools",attrs:{elevation:"2"}},"v-card",Object.assign({},n.$attrs,s),!1),Object.assign({},n.$listeners,i)),[e(it,{attrs:{size:"16"},domProps:{textContent:n._s(n.icon)}})],1)]}}])})},Qo=[],jc="";const Ko={name:"OrientationToolsButton",components:{VcsTooltip:fn},props:{icon:{type:String,required:!0},tooltip:{type:String,required:!0},tooltipPosition:{type:String,default:"left"}}},yr={};var Xo=T(Ko,Zo,Qo,!1,ta,"2e4b3b1a",null,null);function ta(n){for(let t in yr)this[t]=yr[t]}var J=function(){return Xo.exports}(),ea=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",[e(J,{attrs:{icon:"$vcsPlus",tooltip:"Zoom in"},on:{click:function(r){return n.$emit("zoom-in")}}}),e(J,{attrs:{icon:"$vcsMinus",tooltip:"Zoom out"},on:{click:function(r){return n.$emit("zoom-out")}}})],1)},na=[];const ra={components:{OrientationToolsButton:J}},br={};var ia=T(ra,ea,na,!1,sa,null,null,null);function sa(n){for(let t in br)this[t]=br[t]}var Le=function(){return ia.exports}(),oa=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("VcsTooltip",{attrs:{tooltip:"Camera pitch: "+Math.round(n.value)+"\xB0","tooltip-position":"left"},scopedSlots:n._u([{key:"activator",fn:function(r){var i=r.on,s=r.attrs;return[e(ae,n._g(n._b({staticClass:"w-8"},"v-card",s,!1),i),[e(Li,{staticClass:"vcs-slider",attrs:{color:"secondary","track-color":"accent",max:0,min:-90,vertical:"","hide-details":""},model:{value:n.tilt,callback:function(o){n.tilt=o},expression:"tilt"}})],1)]}}])})},aa=[],Wc="",Bc="";const ca={name:"TiltSlider",components:{VcsTooltip:fn},props:{value:{type:Number,required:!0}},data(){return{localValue:Math.round(this.value)}},watch:{value(){this.localValue=ki(Math.round(this.value),-90,0)}},computed:{tilt:{get(){return this.localValue},set(n){n!==this.localValue&&(this.localValue=n,this.$emit("input",n))}}}},wr={};var la=T(ca,oa,aa,!1,ua,"9ccf0838",null,null);function ua(n){for(let t in wr)this[t]=wr[t]}var Me=function(){return la.exports}(),ha=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"d-inline-flex"},[e(J,{attrs:{icon:"mdi-undo",tooltip:"Rotate view left"},on:{click:function(r){return n.input(-90)}}}),e(J,{attrs:{icon:"mdi-redo",tooltip:"Rotate view right"},on:{click:function(r){return n.input(90)}}})],1)},fa=[],Uc="";const pa={name:"ObliqueRotation",components:{OrientationToolsButton:J},props:{value:{type:Number,required:!0}},methods:{input(n){let t=this.value+n;t>360?t-=360:t<0&&(t+=360),this.$emit("input",t)}}},Sr={};var da=T(pa,ha,fa,!1,_a,"6da5c2b5",null,null);function _a(n){for(let t in Sr)this[t]=Sr[t]}var $e=function(){return da.exports}(),ma=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e(vn,{staticClass:"nav-container"},[e(lt,[e(Ae,{attrs:{"view-mode":n.viewMode},model:{value:n.heading,callback:function(r){n.heading=r},expression:"heading"}})],1),n.isOblique?e(lt,[e($e,{model:{value:n.heading,callback:function(r){n.heading=r},expression:"heading"}})],1):n._e(),e(lt,{attrs:{justify:"center"}},[e(Le,{on:{"zoom-out":function(r){return n.zoomOut()},"zoom-in":function(r){return n.zoomIn()}}})],1),n.is3D?e(lt,{attrs:{justify:"center"}},[e(Me,{model:{value:n.tilt,callback:function(r){n.tilt=r},expression:"tilt"}})],1):n._e(),e(lt,{attrs:{justify:"center"}},[e(J,{attrs:{icon:n.overviewAction.icon,tooltip:n.overviewAction.title,color:n.overviewAction.active?"primary":void 0},on:{click:function(r){return r.stopPropagation(),n.overviewAction.callback(r)}}})],1)],1)},va=[],Hc="";const ot={THREE_D:"3d",TWO_D:"2d",OBLIQUE:"oblique"};function ga(n){return n instanceof yt?ot.OBLIQUE:n instanceof ne?ot.THREE_D:ot.TWO_D}function ya(n,t,e){const r=()=>{const i=n.getViewPointSync();i&&(t.value=i.heading,e.value=i.pitch)};if(n instanceof ne)return n.getScene().postRender.addEventListener(r);if(n instanceof yt||n instanceof ee){const i=n.olMap.on("postrender",r);return()=>{le(i)}}return()=>{}}async function Er(n,t=!1,e=2){const r=await n.getViewPoint();t?r.distance*=e:r.distance/=e,r.animate=!0,r.duration=.5,r.cameraPosition=null,await n.gotoViewPoint(r)}const ba={components:{OrientationToolsButton:J,ObliqueRotation:$e,TiltSlider:Me,VcsZoomButton:Le,VcsCompass:Ae},setup(){const n=ct("vcsApp"),t=y(ot.TWO_D),e=y(0),r=y(0);let i=()=>{};const s=u=>{t.value=ga(u),i(),i=ya(u,e,r)};n.maps.mapActivated.addEventListener(s),s(n.maps.activeMap);const o=$({get(){return e.value},async set(u){let h;t.value===ot.OBLIQUE?h=await n.maps.activeMap.getViewPoint():h=n.maps.activeMap.getViewPointSync(),h.heading=u,n.maps.activeMap.gotoViewPoint(h)}}),a=$({get(){return r.value},set(u){const h=n.maps.activeMap.getViewPointSync();h.pitch=u,n.maps.activeMap.gotoViewPoint(h)}}),{action:c,destroy:l}=Mn(n.overviewMap,Ce(),n.windowManager);return vt(()=>{l&&l()}),{viewMode:t,heading:o,tilt:a,is3D:$(()=>t.value===ot.THREE_D),isOblique:$(()=>t.value===ot.OBLIQUE),zoomIn(){Er(n.maps.activeMap)},zoomOut(){Er(n.maps.activeMap,!0)},left:()=>{},right:()=>{},overviewAction:y(c)}}},Tr={};var wa=T(ba,ma,va,!1,Sa,"2fe14c69",null,null);function Sa(n){for(let t in Tr)this[t]=Tr[t]}var Oe=function(){return wa.exports}(),Ea=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e(Mi,{staticClass:"h-full",attrs:{absolute:""}},[e(ve),e($i,{attrs:{"fill-height":"",absolute:""}},[e(Wt,{attrs:{"map-id":n.mapId}}),e(Oe),n.toolboxManagerVisible?e("ToolboxManagerComponent"):n._e(),e("WindowManagerComponent")],1),e(Oi,{attrs:{app:"",absolute:""}},[n._v(" footer ")])],1)},Ta=[],Gc="";const Ia={components:{MapNavigation:Oe,Navbar:ve,VcsMap:Wt,WindowManagerComponent:cr,ToolboxManagerComponent:Fo},props:{appId:{type:String,required:!0}},setup(n){const e=`mapCollection-${St()}`,r=ai(n.appId);Xr("vcsApp",r);const i={OpenlayersMap:"$vcs2d",CesiumMap:"$vcs3d",ObliqueMap:"$vcsObliqueView"},s={},o=r.maps.added.addEventListener(({className:u,name:h})=>{s[h]&&s[h]();const{action:f,destroy:d}=Ln({name:h,icon:i[u],title:`Activate ${h}`},h,r.maps);r.navbarManager.add({id:`mapButton-${h}`,location:U.MAP,action:f},P),s[h]=()=>{r.navbarManager.remove(`mapButton-${h}`),d()}}),a=r.maps.removed.addEventListener(({name:u})=>{s[u]&&(s[u](),delete s[u])});let c;const l=r.plugins.removed.addEventListener(async u=>{r.windowManager.removeOwner(u.name),r.navbarManager.removeOwner(u.name)});return sn(()=>{c=r.plugins.added.addEventListener(u=>{r.windowManager.removeOwner(u.name),r.navbarManager.removeOwner(u.name),u.onVcsAppMounted&&u.onVcsAppMounted(r)}),[...r.plugins].forEach(u=>{u.onVcsAppMounted&&u.onVcsAppMounted(r)}),r.maps.setTarget(e)}),vt(()=>{o&&o(),a&&a(),c&&c(),l&&l(),Object.values(s).forEach(u=>u())}),{mapId:e,toolboxManagerVisible:r.toolboxManager.state.visible}},provide(){return{language:window.navigator.language.split("-")[0]}}},Ir={};var Ca=T(Ia,Ea,Ta,!1,xa,"8e028078",null,null);function xa(n){for(let t in Ir)this[t]=Ir[t]}var Cr=function(){return Ca.exports}();const xr=Symbol("ActionWeight"),H=new ci;class Z{static get className(){return"ContentTreeItem"}constructor(t,e){this._app=e,this._actions=y([]),this._name=t.name,this._visible=y(!0),this._clickable=y(!0),this._disabled=y(!1),this._state=y(m.NONE),this._stateActionListener=null,this._infoUrl=null,this.infoUrl=t.infoUrl,this._title=y(t.title),this._icon=y(t.icon),this._children=y([]),this._weight=ts(t.weight,0),this.initOpen=es(t.initOpen,!1),this.weightChanged=new X}get className(){return this.constructor.className}get name(){return this._name}get actions(){return this._actions.value.slice()}get visible(){return this._visible.value}set visible(t){this._visible.value=!!t}get clickable(){return this._clickable.value}set clickable(t){this._clickable.value=!!t}get disabled(){return this._disabled.value}set disabled(t){this._disabled.value=!!t}get state(){return this._state.value}set state(t){g(t,Object.values(m)),this._state.value!==t&&(this._state.value=t,this._setStateAction())}get infoUrl(){return this._infoUrl}set infoUrl(t){if(ut(t,String),this._infoUrl!==t){this._infoUrl=t;const e="infoUrl";if(this._infoUrl){const r=On({name:e,title:"Info",icon:"$vcsInfo"},this._infoUrl);this.addAction(r,6)}else this.removeAction(e)}}get title(){return this._title.value}set title(t){ut(t,[String,Object]),this._title.value=t}get icon(){return this._icon.value}set icon(t){ut(t,[String,HTMLElement]),this._icon.value=t}get weight(){return this._weight}set weight(t){g(t,Number),t!==this._weight&&(this._weight=t,this.weightChanged.raiseEvent(t))}_setStateAction(){const t="stateAction";if(this.state!==m.NONE&&!this._stateActionListener){const{action:e,destroy:r}=Fn(t,this._state,this.clicked.bind(this));this.addAction(e,0),this._stateActionListener=()=>{this.removeAction(t),r()}}else this._stateActionListener&&this.state===m.NONE&&(this._stateActionListener(),this._stateActionListener=null)}_getActionIndex(t){return this._actions.value.findIndex(e=>e.name===t)}addAction(t,e=11){if(g(t.name,String),ut(e,Number),this._getActionIndex(t.name)>-1)throw new Error("Action names must be unique");t[xr]=e;const i=this._actions.value.findIndex(s=>s[xr]>e);i>-1?this._actions.value.splice(i,0,t):this._actions.value.push(t)}removeAction(t){const e=this._getActionIndex(t);e>-1&&this._actions.value.splice(e,1)}async clicked(){}getTreeViewItem(){const t=this.clicked.bind(this);return K({name:this._name,visible:this._visible,clickable:this._clickable,disabled:this._disabled,state:this._state,title:this._title,icon:this._icon,actions:this._actions,children:this._children,visibleChildren:$(()=>this._children.value.filter(e=>e.visible)),clicked:t})}toJSON(){const t={type:this.className,name:this.name};return this.title&&(t.title=this.title),this.icon&&(t.icon=this.icon),this.infoUrl&&(t.infoUrl=this.infoUrl),this.initOpen&&(t.initOpen=this.initOpen),this.weight&&(t.weight=this.weight),t}destroy(){this._stateActionListener&&this._stateActionListener(),this.actions.splice(0),this._children.value.splice(0)}}H.registerClass(Z.className,Z);const Ne=Symbol("SubTree");class Bt extends Z{static get className(){return"SubContentTreeItem"}constructor(t,e){super(t,e);if(!this.name||this.name.split(".").length>1)throw new Error(`Sub trees may only be defined on top level. Tree ${this.name} is nested or undefined`);this.clickable=!1}getTreeViewItem(){const t=super.getTreeViewItem();return t[Ne]=!0,t}}H.registerClass(Bt.className,Bt);var Aa=function(){var n=this,t=n.$createElement,e=n._self._c||t;return n.tree&&n.tree.length?e("VcsTreeview",{attrs:{items:n.tree,open:n.open,"has-searchbar":!0,"searchbar-placeholder":"layer-tree.search.placeholder","item-children":"visibleChildren"},on:{"update:open":function(r){n.open=r}}}):n._e()},La=[];const Ma={name:"VcsLayerTree",components:{VcsTreeview:bi},props:{windowState:{type:Object,required:!0}},setup(n){const t=ct("vcsApp"),{id:e}=n.windowState,r=t.contentTree.getTreeOpenStateRef(e);return{tree:t.contentTree.getComputedVisibleTree(e),open:r}}},Ar={};var $a=T(Ma,Aa,La,!1,Oa,null,null,null);function Oa(n){for(let t in Ar)this[t]=Ar[t]}var Lr=function(){return $a.exports}();const Fe=Symbol("SubTreeOpenState");class Mr extends li{constructor(t){super();this._app=t;const e=()=>{this._suspendListeners||this._setTreeView()};this._weightListeners=new Map,this._listeners=[this.added.addEventListener(r=>{e(),this._weightListeners.set(r.name,r.weightChanged.addEventListener(e))}),this.removed.addEventListener(r=>{e(),this._weightListeners.has(r.name)&&(this._weightListeners.get(r.name)(),this._weightListeners.delete(r.name))})],this._defaultSubtreeItem=new Bt({name:"Content",icon:"$vcsLayers"},t),this._subTreeViewItems=y(new Map),this._subTreeListeners=[],this._suspendListeners=!1}_clearSubTrees(){this._subTreeViewItems.value.clear(),this._subTreeListeners.forEach(t=>{t()})}_createSubtreeActionButton(t,e=A.STATIC){const r=St(),i=this._app,{action:s,destroy:o}=_e({name:t.name,icon:t.icon,title:t.title},{component:Lr,slot:e,id:r,state:{headerIcon:t.icon,headerTitle:t.title}},i.windowManager,P);return this._app.navbarManager.add({id:r,action:s,location:U.CONTENT},P),this._subTreeViewItems.value.set(r,t),()=>{i.windowManager.remove(r),i.navbarManager.remove(r),o()}}_setTreeView(){this._clearSubTrees();const t=new Map;[...this._array].sort((o,a)=>{const c=o.name.split(".").length,l=a.name.split(".").length;return c===l?o.weight===a.weight?0:o.weight>a.weight?-1:1:c>l?1:-1}).forEach(o=>{const a=o.getTreeViewItem(),c=a.name.split("."),l=c.pop();let u={children:t};c.forEach(h=>{!u||(u=u.children.get(h))}),u&&u.children.set(l,{treeViewItem:a,children:new Map})});const e=({treeViewItem:o,children:a})=>{const c=[...a.values()];return c.forEach(e),o.children.splice(0),o.children.push(...c.map(l=>l.treeViewItem)),o},r=[...t.values()].map(e),i=this._defaultSubtreeItem.getTreeViewItem();i.children.splice(0),i.children.push(...r.filter(o=>!o[Ne]));const s=[i,...r.filter(o=>o[Ne])];this._subTreeListeners=s.map(o=>this._createSubtreeActionButton(o))}get subTreeIds(){return[...this._subTreeViewItems.value.keys()]}getComputedVisibleTree(t){return $(()=>{const e=this._subTreeViewItems.value;return e.has(t)?e.get(t).visibleChildren:[]})}_getSubTree(t){return this._subTreeViewItems.value.get(t)}getChildrenForSubTree(t){const e=this._getSubTree(t);if(e){if(e===this._subTreeViewItems.value.values().next().value){const r=[...this._subTreeViewItems.value.values()].filter(i=>i!==e).map(i=>i.name);return this._array.filter(i=>!r.some(s=>i.name.startsWith(s)))}return this._array.filter(r=>r.name.startsWith(e.name))}return[]}getTreeOpenStateRef(t){const e=this._getSubTree(t);return e?(e[Fe]||(e[Fe]=y(this.getChildrenForSubTree(t).filter(r=>r.initOpen).map(r=>r.name))),e[Fe]):y([])}destroy(){this._clearSubTrees(),this._defaultSubtreeItem.destroy(),this._listeners.forEach(t=>{t()}),this._weightListeners.forEach(t=>{t()}),this._weightListeners.clear(),super.destroy()}}function $r(n){const t=new Mr(n),e=un(t,()=>n.dynamicContextId,null,i=>ui(n.contentTreeClassRegistry,i,n),Z),r=e.parseItems.bind(e);return e.parseItems=async function(...s){this._suspendListeners=!0,await r(...s),this._suspendListeners=!1,this._setTreeView()},e}class ke extends Z{static get className(){return"GroupContentTreeItem"}constructor(t,e){super(t,e);this._childWatcher=Xt(this._children,()=>{const r=this._children.value;if(this.visible=r.some(i=>i.visible),r.every(i=>i.state===m.NONE))this.state=m.NONE;else{const i=r.filter(s=>s.state!==m.NONE);i.every(s=>s.state===m.ACTIVE)?this.state=m.ACTIVE:i.every(s=>s.state===m.INACTIVE)?this.state=m.INACTIVE:this.state=m.INDETERMINATE}},{deep:!0})}async clicked(){if(this.state===m.NONE)return;const t=this.state===m.ACTIVE?r=>r!==m.NONE:r=>r!==m.NONE&&r!==m.ACTIVE,e=this._children.value.filter(r=>r.visible&&t(r.state)).map(r=>r.clicked());await Promise.all(e)}destroy(){this._childWatcher(),super.destroy()}}H.registerClass(ke.className,ke);class pt extends Z{static get className(){return"VcsObjectContentTreeItem"}constructor(t,e){super(t,e);this._ownProperties={title:this.title,icon:this.icon,infoUrl:this.infoUrl},this._currentObjectProperties={}}_setProperties(t){this.title=t.title,this.icon=t.icon,this.infoUrl=t.infoUrl}setPropertiesFromObject(t){this._currentObjectProperties=t.properties;const e=E({},this._currentObjectProperties);Object.entries(this._ownProperties).forEach(([r,i])=>{i!==void 0&&(e[r]=i)}),this._setProperties(e)}toJSON(){const t=super.toJSON();return Object.entries(this._currentObjectProperties).forEach(([e,r])=>{t[e]&&t[e]===r&&this._ownProperties[e]!==r&&delete t[e]}),t}}H.registerClass(pt.className,pt);function Ut(n,t,e){const r="ViewPointAction";if(n.removeAction(r),e){const i=me({name:r,icon:"mdi-crosshairs-gps"},e,t.viewPoints,t.maps);n.addAction(i,2)}}function Ht(n){return n.active?m.ACTIVE:n.loading?m.LOADING:m.INACTIVE}class Pe extends pt{static get className(){return"LayerContentTreeItem"}constructor(t,e){super(t,e);this.state=m.INACTIVE,this._layerName=t.layerName,this._listeners=[],this._setup()}get _layer(){return this._app.layers.getByKey(this._layerName)}_setStyleAction(t){const e="StyleSelector";if(this.removeAction(e),Array.isArray(t)){const{action:r,destroy:i}=$n({name:e,icon:"$vcsColorSwatch"},{component:yn,props:K({availableStyles:t.slice(),layerName:this._layerName})},this._app.windowManager,P);this.addAction(r,4),this._listeners.push(i)}}_setLayerExtentAction(){const t="LayerExtentAction";if(this.removeAction(t),this._layer){const{extent:e}=this._layer.toJSON();if(e){const r=te.createViewPointFromExtent(this._layer.extent),i=me({name:"LayerExtentAction"},r,this._app.viewPoints,this._app.maps);this.addAction(i,8)}}}_setProperties(t){super._setProperties(t),this._setStyleAction(t.availableStyles),Ut(this,this._app,t.defaultViewpoint)}_clearListeners(){this._listeners.forEach(t=>{t()}),this._listeners.splice(0)}_setup(){this._clearListeners();const t=e=>{e.name===this._layerName&&this._setup()};this._layer?(this.visible=this._layer.isSupported(this._app.maps.activeMap),this.state=Ht(this._layer),this._setLayerExtentAction(),this.setPropertiesFromObject(this._layer),this._listeners.push(this._app.layers.removed.addEventListener(t)),this._listeners.push(this._app.layers.added.addEventListener(t)),this._listeners.push(this._layer.stateChanged.addEventListener(()=>{this.state=Ht(this._layer)})),this._listeners.push(this._app.maps.mapActivated.addEventListener(()=>{this.visible=this._layer.isSupported(this._app.maps.activeMap)}))):(this.visible=!1,this._listeners.push(this._app.layers.added.addEventListener(t)))}async clicked(){this._layer&&(this.state===m.INACTIVE?await this._layer.activate():this._layer.deactivate())}toJSON(){const t=super.toJSON();return t.layerName=this._layerName,t}destroy(){super.destroy(),this._clearListeners()}}H.registerClass(Pe.className,Pe);function Or(n){const t=n.map(e=>Ht(e));return t.some(e=>e===m.LOADING)?m.LOADING:t.every(e=>e===m.INACTIVE)?m.INACTIVE:t.every(e=>e===m.ACTIVE)?m.ACTIVE:m.INDETERMINATE}class Ve extends Z{static get className(){return"LayerGroupContentTreeItem"}constructor(t,e){super(t,e);this.state=m.INACTIVE,this._layerNames=Array.isArray(t.layerNames)?t.layerNames.slice():[],this._listeners=[],this._defaultViewpoint=t.defaultViewpoint||null,this._setup()}get _layers(){return this._layerNames.map(t=>this._app.layers.getByKey(t)).filter(t=>t)}_clearListeners(){this._listeners.forEach(t=>{t()}),this._listeners.splice(0)}_setup(){this._clearListeners();const t=r=>{this._layerNames.includes(r.name)&&this._setup()},e=this._layers;this.visible=e.some(r=>r.isSupported(this._app.maps.activeMap)),this.state=Or(e),Ut(this,this._app,this._defaultViewpoint),this._listeners.push(this._app.layers.removed.addEventListener(t)),this._listeners.push(this._app.layers.added.addEventListener(t)),e.forEach(r=>{this._listeners.push(r.stateChanged.addEventListener(()=>{this.state=Or(e)}))}),this._listeners.push(this._app.maps.mapActivated.addEventListener(()=>{this.visible=!!e.find(r=>r.isSupported(this._app.maps.activeMap))}))}async clicked(){const t=this._layers;t.some(r=>!(r.active||r.loading))?await Promise.all(t.map(r=>r.activate())):t.forEach(r=>{r.deactivate()})}toJSON(){const t=super.toJSON();return t.layerNames=this._layerNames.slice(),this._defaultViewpoint&&(t.defaultViewpoint=this._defaultViewpoint),t}destroy(){this._clearListeners(),super.destroy()}}H.registerClass(Ve.className,Ve);class Re extends Z{static get className(){return"NodeContentTreeItem"}constructor(t,e){super(t,e);this.clickable=!1,this._childWatcher=Xt(this._children,()=>{const r=this._children.value;this.visible=r.some(i=>i.visible)},{deep:!0})}destroy(){this._childWatcher(),super.destroy()}}H.registerClass(Re.className,Re);const Na=new hi({});class De extends pt{static get className(){return"ObliqueCollectionContentTreeItem"}constructor(t,e){super(t,e);this.state=m.INACTIVE,this._collectionName=t.collectionName,this._listeners=[],this._setup()}get _collection(){return this._app.obliqueCollections.getByKey(this._collectionName)}_setProperties(t){super._setProperties(t),Ut(this,this._app,t.defaultViewpoint)}_clearListeners(){this._listeners.forEach(t=>{t()}),this._listeners.splice(0)}_setup(){this._clearListeners();const t=e=>{e.name===this._collectionName&&this._setup()};if(!this._collection)this.visible=!1,this._listeners.push(this._app.obliqueCollections.added.addEventListener(t));else{const e=this._app.maps.activeMap;e instanceof yt?(this.visible=!0,this.state=e.collection===this._collection?m.ACTIVE:m.INACTIVE,this._listeners.push(e.collectionChanged.addEventListener(()=>{this.state=e.collection===this._collection?m.ACTIVE:m.INACTIVE}))):this.visible=!1,this.setPropertiesFromObject(this._collection),this._listeners.push(this._app.maps.mapActivated.addEventListener(()=>{this._setup()})),this._listeners.push(this._app.obliqueCollections.removed.addEventListener(t)),this._listeners.push(this._app.obliqueCollections.added.addEventListener(t))}}async clicked(){if(this.visible&&this._collection&&this._app.maps.activeMap instanceof yt){const t=this._app.maps.activeMap,e=await t.getViewPoint();this.state===m.INACTIVE?(this.state=m.LOADING,await t.setCollection(this._collection,e)):this.state===m.ACTIVE&&(this.state=m.INACTIVE,await t.setCollection(Na,e))}}toJSON(){const t=super.toJSON();return t.collectionName=this._collectionName,t}destroy(){this._clearListeners(),super.destroy()}}H.registerClass(De.className,De);class je extends pt{static get className(){return"ViewPointContentTreeItem"}constructor(t,e){t.icon=t.icon||"$vcsPoi";super(t,e);this._viewPointName=t.viewpointName,this._listeners=[],this._setup()}get viewPoint(){return this._app.viewPoints.getByKey(this._viewPointName)}_clearListeners(){this._listeners.forEach(t=>{t()}),this._listeners.splice(0)}_setup(){this._clearListeners();const t=e=>{e.name===this._viewPointName&&this._setup()};this.viewPoint?(this.visible=!0,this.setPropertiesFromObject(this.viewPoint),this._listeners.push(this._app.viewPoints.added.addEventListener(t)),this._listeners.push(this._app.viewPoints.removed.addEventListener(t))):(this.visible=!1,this._listeners.push(this._app.viewPoints.added.addEventListener(t)))}async clicked(){this._app.maps.activeMap&&this.viewPoint&&await this._app.maps.activeMap.gotoViewPoint(this.viewPoint)}toJSON(){const t=super.toJSON();return t.icon==="$vcsPoi"&&delete t.icon,t.viewpointName=this._viewPointName,t}destroy(){this._clearListeners(),super.destroy()}}H.registerClass(je.className,je);/*!
36
+ * vue-i18n v8.25.0
37
+ * (c) 2021 kazuya kawaguchi
38
+ * Released under the MIT License.
39
+ */var Nr=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function dt(n,t){typeof console!="undefined"&&(console.warn("[vue-i18n] "+n),t&&console.warn(t.stack))}function Fa(n,t){typeof console!="undefined"&&(console.error("[vue-i18n] "+n),t&&console.error(t.stack))}var G=Array.isArray;function V(n){return n!==null&&typeof n=="object"}function ka(n){return typeof n=="boolean"}function I(n){return typeof n=="string"}var Pa=Object.prototype.toString,Va="[object Object]";function q(n){return Pa.call(n)===Va}function k(n){return n==null}function We(n){return typeof n=="function"}function Gt(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];var e=null,r=null;return n.length===1?V(n[0])||G(n[0])?r=n[0]:typeof n[0]=="string"&&(e=n[0]):n.length===2&&(typeof n[0]=="string"&&(e=n[0]),(V(n[1])||G(n[1]))&&(r=n[1])),{locale:e,params:r}}function _t(n){return JSON.parse(JSON.stringify(n))}function Ra(n,t){if(n.delete(t))return n}function Da(n){var t=[];return n.forEach(function(e){return t.push(e)}),t}function qt(n,t){return!!~n.indexOf(t)}var ja=Object.prototype.hasOwnProperty;function Wa(n,t){return ja.call(n,t)}function at(n){for(var t=arguments,e=Object(n),r=1;r<arguments.length;r++){var i=t[r];if(i!=null){var s=void 0;for(s in i)Wa(i,s)&&(V(i[s])?e[s]=at(e[s],i[s]):e[s]=i[s])}}return e}function zt(n,t){if(n===t)return!0;var e=V(n),r=V(t);if(e&&r)try{var i=G(n),s=G(t);if(i&&s)return n.length===t.length&&n.every(function(c,l){return zt(c,t[l])});if(!i&&!s){var o=Object.keys(n),a=Object.keys(t);return o.length===a.length&&o.every(function(c){return zt(n[c],t[c])})}else return!1}catch{return!1}else return!e&&!r?String(n)===String(t):!1}function Ba(n){return n.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function Ua(n){return n!=null&&Object.keys(n).forEach(function(t){typeof n[t]=="string"&&(n[t]=Ba(n[t]))}),n}function Ha(n){n.prototype.hasOwnProperty("$i18n")||Object.defineProperty(n.prototype,"$i18n",{get:function(){return this._i18n}}),n.prototype.$t=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];var i=this.$i18n;return i._t.apply(i,[t,i.locale,i._getMessages(),this].concat(e))},n.prototype.$tc=function(t,e){for(var r=[],i=arguments.length-2;i-- >0;)r[i]=arguments[i+2];var s=this.$i18n;return s._tc.apply(s,[t,s.locale,s._getMessages(),this,e].concat(r))},n.prototype.$te=function(t,e){var r=this.$i18n;return r._te(t,r.locale,r._getMessages(),e)},n.prototype.$d=function(t){for(var e,r=[],i=arguments.length-1;i-- >0;)r[i]=arguments[i+1];return(e=this.$i18n).d.apply(e,[t].concat(r))},n.prototype.$n=function(t){for(var e,r=[],i=arguments.length-1;i-- >0;)r[i]=arguments[i+1];return(e=this.$i18n).n.apply(e,[t].concat(r))}}var Ga={beforeCreate:function(){var t=this.$options;if(t.i18n=t.i18n||(t.__i18n?{}:null),t.i18n){if(t.i18n instanceof p){if(t.__i18n)try{var e=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18n.forEach(function(a){e=at(e,JSON.parse(a))}),Object.keys(e).forEach(function(a){t.i18n.mergeLocaleMessage(a,e[a])})}catch{}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(q(t.i18n)){var r=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof p?this.$root.$i18n:null;if(r&&(t.i18n.root=this.$root,t.i18n.formatter=r.formatter,t.i18n.fallbackLocale=r.fallbackLocale,t.i18n.formatFallbackMessages=r.formatFallbackMessages,t.i18n.silentTranslationWarn=r.silentTranslationWarn,t.i18n.silentFallbackWarn=r.silentFallbackWarn,t.i18n.pluralizationRules=r.pluralizationRules,t.i18n.preserveDirectiveContent=r.preserveDirectiveContent),t.__i18n)try{var i=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18n.forEach(function(a){i=at(i,JSON.parse(a))}),t.i18n.messages=i}catch{}var s=t.i18n,o=s.sharedMessages;o&&q(o)&&(t.i18n.messages=at(t.i18n.messages,o)),this._i18n=new p(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(t.i18n.sync===void 0||!!t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),r&&r.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof p?this._i18n=this.$root.$i18n:t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof p&&(this._i18n=t.parent.$i18n)},beforeMount:function(){var t=this.$options;t.i18n=t.i18n||(t.__i18n?{}:null),t.i18n?t.i18n instanceof p?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):q(t.i18n)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof p?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof p&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:function(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)},beforeDestroy:function(){if(!!this._i18n){var t=this;this.$nextTick(function(){t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)})}}},Fr={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(t,e){var r=e.data,i=e.parent,s=e.props,o=e.slots,a=i.$i18n;if(!!a){var c=s.path,l=s.locale,u=s.places,h=o(),f=a.i(c,l,qa(h)||u?za(h.default,u):h),d=!!s.tag&&s.tag!==!0||s.tag===!1?s.tag:"span";return d?t(d,r,f):f}}};function qa(n){var t;for(t in n)if(t!=="default")return!1;return Boolean(t)}function za(n,t){var e=t?Ya(t):{};if(!n)return e;n=n.filter(function(i){return i.tag||i.text.trim()!==""});var r=n.every(Za);return n.reduce(r?Ja:kr,e)}function Ya(n){return Array.isArray(n)?n.reduce(kr,{}):Object.assign({},n)}function Ja(n,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(n[t.data.attrs.place]=t),n}function kr(n,t,e){return n[e]=t,n}function Za(n){return Boolean(n.data&&n.data.attrs&&n.data.attrs.place)}var Pr={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(t,e){var r=e.props,i=e.parent,s=e.data,o=i.$i18n;if(!o)return null;var a=null,c=null;I(r.format)?a=r.format:V(r.format)&&(r.format.key&&(a=r.format.key),c=Object.keys(r.format).reduce(function(d,_){var v;return qt(Nr,_)?Object.assign({},d,(v={},v[_]=r.format[_],v)):d},null));var l=r.locale||o.locale,u=o._ntp(r.value,l,a,c),h=u.map(function(d,_){var v,w=s.scopedSlots&&s.scopedSlots[d.type];return w?w((v={},v[d.type]=d.value,v.index=_,v.parts=u,v)):d.value}),f=!!r.tag&&r.tag!==!0||r.tag===!1?r.tag:"span";return f?t(f,{attrs:s.attrs,class:s.class,staticClass:s.staticClass},h):h}};function Qa(n,t,e){!Vr(n,e)||Rr(n,t,e)}function Ka(n,t,e,r){if(!!Vr(n,e)){var i=e.context.$i18n;tc(n,e)&&zt(t.value,t.oldValue)&&zt(n._localeMessage,i.getLocaleMessage(i.locale))||Rr(n,t,e)}}function Xa(n,t,e,r){var i=e.context;if(!i){dt("Vue instance does not exists in VNode context");return}var s=e.context.$i18n||{};!t.modifiers.preserve&&!s.preserveDirectiveContent&&(n.textContent=""),n._vt=void 0,delete n._vt,n._locale=void 0,delete n._locale,n._localeMessage=void 0,delete n._localeMessage}function Vr(n,t){var e=t.context;return e?e.$i18n?!0:(dt("VueI18n instance does not exists in Vue instance"),!1):(dt("Vue instance does not exists in VNode context"),!1)}function tc(n,t){var e=t.context;return n._locale===e.$i18n.locale}function Rr(n,t,e){var r,i,s=t.value,o=ec(s),a=o.path,c=o.locale,l=o.args,u=o.choice;if(!a&&!c&&!l){dt("value type not supported");return}if(!a){dt("`path` is required in v-t directive");return}var h=e.context;u!=null?n._vt=n.textContent=(r=h.$i18n).tc.apply(r,[a,u].concat(Dr(c,l))):n._vt=n.textContent=(i=h.$i18n).t.apply(i,[a].concat(Dr(c,l))),n._locale=h.$i18n.locale,n._localeMessage=h.$i18n.getLocaleMessage(h.$i18n.locale)}function ec(n){var t,e,r,i;return I(n)?t=n:q(n)&&(t=n.path,e=n.locale,r=n.args,i=n.choice),{path:t,locale:e,args:r,choice:i}}function Dr(n,t){var e=[];return n&&e.push(n),t&&(Array.isArray(t)||q(t))&&e.push(t),e}var M;function Be(n){Be.installed=!0,M=n,M.version&&Number(M.version.split(".")[0]),Ha(M),M.mixin(Ga),M.directive("t",{bind:Qa,update:Ka,unbind:Xa}),M.component(Fr.name,Fr),M.component(Pr.name,Pr);var t=M.config.optionMergeStrategies;t.i18n=function(e,r){return r===void 0?e:r}}var jr=function(){this._caches=Object.create(null)};jr.prototype.interpolate=function(t,e){if(!e)return[t];var r=this._caches[t];return r||(r=ic(t),this._caches[t]=r),sc(r,e)};var nc=/^(?:\d)+/,rc=/^(?:\w)+/;function ic(n){for(var t=[],e=0,r="";e<n.length;){var i=n[e++];if(i==="{"){r&&t.push({type:"text",value:r}),r="";var s="";for(i=n[e++];i!==void 0&&i!=="}";)s+=i,i=n[e++];var o=i==="}",a=nc.test(s)?"list":o&&rc.test(s)?"named":"unknown";t.push({value:s,type:a})}else i==="%"?n[e]!=="{"&&(r+=i):r+=i}return r&&t.push({type:"text",value:r}),t}function sc(n,t){var e=[],r=0,i=Array.isArray(t)?"list":V(t)?"named":"unknown";if(i==="unknown")return e;for(;r<n.length;){var s=n[r];switch(s.type){case"text":e.push(s.value);break;case"list":e.push(t[parseInt(s.value,10)]);break;case"named":i==="named"&&e.push(t[s.value]);break}r++}return e}var C=0,mt=1,Wr=2,Br=3,Ue=0,Yt=1,Jt=2,nt=3,Q=4,Zt=5,Qt=6,Kt=7,Mt=8,rt=[];rt[Ue]={ws:[Ue],ident:[nt,C],"[":[Q],eof:[Kt]},rt[Yt]={ws:[Yt],".":[Jt],"[":[Q],eof:[Kt]},rt[Jt]={ws:[Jt],ident:[nt,C],"0":[nt,C],number:[nt,C]},rt[nt]={ident:[nt,C],"0":[nt,C],number:[nt,C],ws:[Yt,mt],".":[Jt,mt],"[":[Q,mt],eof:[Kt,mt]},rt[Q]={"'":[Zt,C],'"':[Qt,C],"[":[Q,Wr],"]":[Yt,Br],eof:Mt,else:[Q,C]},rt[Zt]={"'":[Q,C],eof:Mt,else:[Zt,C]},rt[Qt]={'"':[Q,C],eof:Mt,else:[Qt,C]};var oc=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function ac(n){return oc.test(n)}function cc(n){var t=n.charCodeAt(0),e=n.charCodeAt(n.length-1);return t===e&&(t===34||t===39)?n.slice(1,-1):n}function lc(n){if(n==null)return"eof";var t=n.charCodeAt(0);switch(t){case 91:case 93:case 46:case 34:case 39:return n;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function uc(n){var t=n.trim();return n.charAt(0)==="0"&&isNaN(n)?!1:ac(t)?cc(t):"*"+t}function hc(n){var t=[],e=-1,r=Ue,i=0,s,o,a,c,l,u,h,f=[];f[mt]=function(){o!==void 0&&(t.push(o),o=void 0)},f[C]=function(){o===void 0?o=a:o+=a},f[Wr]=function(){f[C](),i++},f[Br]=function(){if(i>0)i--,r=Q,f[C]();else{if(i=0,o===void 0||(o=uc(o),o===!1))return!1;f[mt]()}};function d(){var _=n[e+1];if(r===Zt&&_==="'"||r===Qt&&_==='"')return e++,a="\\"+_,f[C](),!0}for(;r!==null;)if(e++,s=n[e],!(s==="\\"&&d())){if(c=lc(s),h=rt[r],l=h[c]||h.else||Mt,l===Mt||(r=l[0],u=f[l[1]],u&&(a=l[2],a=a===void 0?s:a,u()===!1)))return;if(r===Kt)return t}}var He=function(){this._cache=Object.create(null)};He.prototype.parsePath=function(t){var e=this._cache[t];return e||(e=hc(t),e&&(this._cache[t]=e)),e||[]},He.prototype.getPathValue=function(t,e){if(!V(t))return null;var r=this.parsePath(e);if(r.length===0)return null;for(var i=r.length,s=t,o=0;o<i;){var a=s[r[o]];if(a==null)return null;s=a,o++}return s};var fc=/<\/?[\w\s="/.':;#-\/]+>/,pc=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|.]+|\([\w\-_|.]+\)))/g,dc=/^@(?:\.([a-z]+))?:/,_c=/[()]/g,Ur={upper:function(n){return n.toLocaleUpperCase()},lower:function(n){return n.toLocaleLowerCase()},capitalize:function(n){return""+n.charAt(0).toLocaleUpperCase()+n.substr(1)}},Ge=new jr,p=function(t){var e=this;t===void 0&&(t={}),!M&&typeof window!="undefined"&&window.Vue&&Be(window.Vue);var r=t.locale||"en-US",i=t.fallbackLocale===!1?!1:t.fallbackLocale||"en-US",s=t.messages||{},o=t.dateTimeFormats||{},a=t.numberFormats||{};this._vm=null,this._formatter=t.formatter||Ge,this._modifiers=t.modifiers||{},this._missing=t.missing||null,this._root=t.root||null,this._sync=t.sync===void 0?!0:!!t.sync,this._fallbackRoot=t.fallbackRoot===void 0?!0:!!t.fallbackRoot,this._formatFallbackMessages=t.formatFallbackMessages===void 0?!1:!!t.formatFallbackMessages,this._silentTranslationWarn=t.silentTranslationWarn===void 0?!1:t.silentTranslationWarn,this._silentFallbackWarn=t.silentFallbackWarn===void 0?!1:!!t.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new He,this._dataListeners=new Set,this._componentInstanceCreatedListener=t.componentInstanceCreatedListener||null,this._preserveDirectiveContent=t.preserveDirectiveContent===void 0?!1:!!t.preserveDirectiveContent,this.pluralizationRules=t.pluralizationRules||{},this._warnHtmlInMessage=t.warnHtmlInMessage||"off",this._postTranslation=t.postTranslation||null,this._escapeParameterHtml=t.escapeParameterHtml||!1,this.getChoiceIndex=function(c,l){var u=Object.getPrototypeOf(e);if(u&&u.getChoiceIndex){var h=u.getChoiceIndex;return h.call(e,c,l)}var f=function(d,_){return d=Math.abs(d),_===2?d?d>1?1:0:1:d?Math.min(d,2):0};return e.locale in e.pluralizationRules?e.pluralizationRules[e.locale].apply(e,[c,l]):f(c,l)},this._exist=function(c,l){return!c||!l?!1:!!(!k(e._path.getPathValue(c,l))||c[l])},(this._warnHtmlInMessage==="warn"||this._warnHtmlInMessage==="error")&&Object.keys(s).forEach(function(c){e._checkLocaleMessage(c,e._warnHtmlInMessage,s[c])}),this._initVM({locale:r,fallbackLocale:i,messages:s,dateTimeFormats:o,numberFormats:a})},b={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0}};p.prototype._checkLocaleMessage=function(t,e,r){var i=[],s=function(o,a,c,l){if(q(c))Object.keys(c).forEach(function(f){var d=c[f];q(d)?(l.push(f),l.push("."),s(o,a,d,l),l.pop(),l.pop()):(l.push(f),s(o,a,d,l),l.pop())});else if(G(c))c.forEach(function(f,d){q(f)?(l.push("["+d+"]"),l.push("."),s(o,a,f,l),l.pop(),l.pop()):(l.push("["+d+"]"),s(o,a,f,l),l.pop())});else if(I(c)){var u=fc.test(c);if(u){var h="Detected HTML in message '"+c+"' of keypath '"+l.join("")+"' at '"+a+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";o==="warn"?dt(h):o==="error"&&Fa(h)}}};s(e,t,r,i)},p.prototype._initVM=function(t){var e=M.config.silent;M.config.silent=!0,this._vm=new M({data:t}),M.config.silent=e},p.prototype.destroyVM=function(){this._vm.$destroy()},p.prototype.subscribeDataChanging=function(t){this._dataListeners.add(t)},p.prototype.unsubscribeDataChanging=function(t){Ra(this._dataListeners,t)},p.prototype.watchI18nData=function(){var t=this;return this._vm.$watch("$data",function(){for(var e=Da(t._dataListeners),r=e.length;r--;)M.nextTick(function(){e[r]&&e[r].$forceUpdate()})},{deep:!0})},p.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var t=this._vm;return this._root.$i18n.vm.$watch("locale",function(e){t.$set(t,"locale",e),t.$forceUpdate()},{immediate:!0})},p.prototype.onComponentInstanceCreated=function(t){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(t,this)},b.vm.get=function(){return this._vm},b.messages.get=function(){return _t(this._getMessages())},b.dateTimeFormats.get=function(){return _t(this._getDateTimeFormats())},b.numberFormats.get=function(){return _t(this._getNumberFormats())},b.availableLocales.get=function(){return Object.keys(this.messages).sort()},b.locale.get=function(){return this._vm.locale},b.locale.set=function(n){this._vm.$set(this._vm,"locale",n)},b.fallbackLocale.get=function(){return this._vm.fallbackLocale},b.fallbackLocale.set=function(n){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",n)},b.formatFallbackMessages.get=function(){return this._formatFallbackMessages},b.formatFallbackMessages.set=function(n){this._formatFallbackMessages=n},b.missing.get=function(){return this._missing},b.missing.set=function(n){this._missing=n},b.formatter.get=function(){return this._formatter},b.formatter.set=function(n){this._formatter=n},b.silentTranslationWarn.get=function(){return this._silentTranslationWarn},b.silentTranslationWarn.set=function(n){this._silentTranslationWarn=n},b.silentFallbackWarn.get=function(){return this._silentFallbackWarn},b.silentFallbackWarn.set=function(n){this._silentFallbackWarn=n},b.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},b.preserveDirectiveContent.set=function(n){this._preserveDirectiveContent=n},b.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},b.warnHtmlInMessage.set=function(n){var t=this,e=this._warnHtmlInMessage;if(this._warnHtmlInMessage=n,e!==n&&(n==="warn"||n==="error")){var r=this._getMessages();Object.keys(r).forEach(function(i){t._checkLocaleMessage(i,t._warnHtmlInMessage,r[i])})}},b.postTranslation.get=function(){return this._postTranslation},b.postTranslation.set=function(n){this._postTranslation=n},p.prototype._getMessages=function(){return this._vm.messages},p.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},p.prototype._getNumberFormats=function(){return this._vm.numberFormats},p.prototype._warnDefault=function(t,e,r,i,s,o){if(!k(r))return r;if(this._missing){var a=this._missing.apply(null,[t,e,i,s]);if(I(a))return a}if(this._formatFallbackMessages){var c=Gt.apply(void 0,s);return this._render(e,o,c.params,e)}else return e},p.prototype._isFallbackRoot=function(t){return!t&&!k(this._root)&&this._fallbackRoot},p.prototype._isSilentFallbackWarn=function(t){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(t):this._silentFallbackWarn},p.prototype._isSilentFallback=function(t,e){return this._isSilentFallbackWarn(e)&&(this._isFallbackRoot()||t!==this.fallbackLocale)},p.prototype._isSilentTranslationWarn=function(t){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(t):this._silentTranslationWarn},p.prototype._interpolate=function(t,e,r,i,s,o,a){if(!e)return null;var c=this._path.getPathValue(e,r);if(G(c)||q(c))return c;var l;if(k(c))if(q(e)){if(l=e[r],!(I(l)||We(l)))return null}else return null;else if(I(c)||We(c))l=c;else return null;return I(l)&&(l.indexOf("@:")>=0||l.indexOf("@.")>=0)&&(l=this._link(t,e,l,i,"raw",o,a)),this._render(l,s,o,r)},p.prototype._link=function(t,e,r,i,s,o,a){var c=r,l=c.match(pc);for(var u in l)if(!!l.hasOwnProperty(u)){var h=l[u],f=h.match(dc),d=f[0],_=f[1],v=h.replace(d,"").replace(_c,"");if(qt(a,v))return c;a.push(v);var w=this._interpolate(t,e,v,i,s==="raw"?"string":s,s==="raw"?void 0:o,a);if(this._isFallbackRoot(w)){if(!this._root)throw Error("unexpected error");var B=this._root.$i18n;w=B._translate(B._getMessages(),B.locale,B.fallbackLocale,v,i,s,o)}w=this._warnDefault(t,v,w,i,G(o)?o:[o],s),this._modifiers.hasOwnProperty(_)?w=this._modifiers[_](w):Ur.hasOwnProperty(_)&&(w=Ur[_](w)),a.pop(),c=w?c.replace(h,w):c}return c},p.prototype._createMessageContext=function(t,e,r,i){var s=this,o=G(t)?t:[],a=V(t)?t:{},c=function(f){return o[f]},l=function(f){return a[f]},u=this._getMessages(),h=this.locale;return{list:c,named:l,values:t,formatter:e,path:r,messages:u,locale:h,linked:function(f){return s._interpolate(h,u[h]||{},f,null,i,void 0,[f])}}},p.prototype._render=function(t,e,r,i){if(We(t))return t(this._createMessageContext(r,this._formatter||Ge,i,e));var s=this._formatter.interpolate(t,r,i);return s||(s=Ge.interpolate(t,r,i)),e==="string"&&!I(s)?s.join(""):s},p.prototype._appendItemToChain=function(t,e,r){var i=!1;return qt(t,e)||(i=!0,e&&(i=e[e.length-1]!=="!",e=e.replace(/!/g,""),t.push(e),r&&r[e]&&(i=r[e]))),i},p.prototype._appendLocaleToChain=function(t,e,r){var i,s=e.split("-");do{var o=s.join("-");i=this._appendItemToChain(t,o,r),s.splice(-1,1)}while(s.length&&i===!0);return i},p.prototype._appendBlockToChain=function(t,e,r){for(var i=!0,s=0;s<e.length&&ka(i);s++){var o=e[s];I(o)&&(i=this._appendLocaleToChain(t,o,r))}return i},p.prototype._getLocaleChain=function(t,e){if(t==="")return[];this._localeChainCache||(this._localeChainCache={});var r=this._localeChainCache[t];if(!r){e||(e=this.fallbackLocale),r=[];for(var i=[t];G(i);)i=this._appendBlockToChain(r,i,e);var s;G(e)?s=e:V(e)?e.default?s=e.default:s=null:s=e,I(s)?i=[s]:i=s,i&&this._appendBlockToChain(r,i,null),this._localeChainCache[t]=r}return r},p.prototype._translate=function(t,e,r,i,s,o,a){for(var c=this._getLocaleChain(e,r),l,u=0;u<c.length;u++){var h=c[u];if(l=this._interpolate(h,t[h],i,s,o,a,[i]),!k(l))return l}return null},p.prototype._t=function(t,e,r,i){for(var s,o=[],a=arguments.length-4;a-- >0;)o[a]=arguments[a+4];if(!t)return"";var c=Gt.apply(void 0,o);this._escapeParameterHtml&&(c.params=Ua(c.params));var l=c.locale||e,u=this._translate(r,l,this.fallbackLocale,t,i,"string",c.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(s=this._root).$t.apply(s,[t].concat(o))}else return u=this._warnDefault(l,t,u,i,o,"string"),this._postTranslation&&u!==null&&u!==void 0&&(u=this._postTranslation(u,t)),u},p.prototype.t=function(t){for(var e,r=[],i=arguments.length-1;i-- >0;)r[i]=arguments[i+1];return(e=this)._t.apply(e,[t,this.locale,this._getMessages(),null].concat(r))},p.prototype._i=function(t,e,r,i,s){var o=this._translate(r,e,this.fallbackLocale,t,i,"raw",s);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(t,e,s)}else return this._warnDefault(e,t,o,i,[s],"raw")},p.prototype.i=function(t,e,r){return t?(I(e)||(e=this.locale),this._i(t,e,this._getMessages(),null,r)):""},p.prototype._tc=function(t,e,r,i,s){for(var o,a=[],c=arguments.length-5;c-- >0;)a[c]=arguments[c+5];if(!t)return"";s===void 0&&(s=1);var l={count:s,n:s},u=Gt.apply(void 0,a);return u.params=Object.assign(l,u.params),a=u.locale===null?[u.params]:[u.locale,u.params],this.fetchChoice((o=this)._t.apply(o,[t,e,r,i].concat(a)),s)},p.prototype.fetchChoice=function(t,e){if(!t||!I(t))return null;var r=t.split("|");return e=this.getChoiceIndex(e,r.length),r[e]?r[e].trim():t},p.prototype.tc=function(t,e){for(var r,i=[],s=arguments.length-2;s-- >0;)i[s]=arguments[s+2];return(r=this)._tc.apply(r,[t,this.locale,this._getMessages(),null,e].concat(i))},p.prototype._te=function(t,e,r){for(var i=[],s=arguments.length-3;s-- >0;)i[s]=arguments[s+3];var o=Gt.apply(void 0,i).locale||e;return this._exist(r[o],t)},p.prototype.te=function(t,e){return this._te(t,this.locale,this._getMessages(),e)},p.prototype.getLocaleMessage=function(t){return _t(this._vm.messages[t]||{})},p.prototype.setLocaleMessage=function(t,e){(this._warnHtmlInMessage==="warn"||this._warnHtmlInMessage==="error")&&this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,e)},p.prototype.mergeLocaleMessage=function(t,e){(this._warnHtmlInMessage==="warn"||this._warnHtmlInMessage==="error")&&this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,at(typeof this._vm.messages[t]!="undefined"&&Object.keys(this._vm.messages[t]).length?Object.assign({},this._vm.messages[t]):{},e))},p.prototype.getDateTimeFormat=function(t){return _t(this._vm.dateTimeFormats[t]||{})},p.prototype.setDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,e),this._clearDateTimeFormat(t,e)},p.prototype.mergeDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,at(this._vm.dateTimeFormats[t]||{},e)),this._clearDateTimeFormat(t,e)},p.prototype._clearDateTimeFormat=function(t,e){for(var r in e){var i=t+"__"+r;!this._dateTimeFormatters.hasOwnProperty(i)||delete this._dateTimeFormatters[i]}},p.prototype._localizeDateTime=function(t,e,r,i,s){for(var o=e,a=i[o],c=this._getLocaleChain(e,r),l=0;l<c.length;l++){var u=o,h=c[l];if(a=i[h],o=h,!(k(a)||k(a[s])))break}if(k(a)||k(a[s]))return null;var f=a[s],d=o+"__"+s,_=this._dateTimeFormatters[d];return _||(_=this._dateTimeFormatters[d]=new Intl.DateTimeFormat(o,f)),_.format(t)},p.prototype._d=function(t,e,r){if(!r)return new Intl.DateTimeFormat(e).format(t);var i=this._localizeDateTime(t,e,this.fallbackLocale,this._getDateTimeFormats(),r);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(t,r,e)}else return i||""},p.prototype.d=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];var i=this.locale,s=null;return e.length===1?I(e[0])?s=e[0]:V(e[0])&&(e[0].locale&&(i=e[0].locale),e[0].key&&(s=e[0].key)):e.length===2&&(I(e[0])&&(s=e[0]),I(e[1])&&(i=e[1])),this._d(t,i,s)},p.prototype.getNumberFormat=function(t){return _t(this._vm.numberFormats[t]||{})},p.prototype.setNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,e),this._clearNumberFormat(t,e)},p.prototype.mergeNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,at(this._vm.numberFormats[t]||{},e)),this._clearNumberFormat(t,e)},p.prototype._clearNumberFormat=function(t,e){for(var r in e){var i=t+"__"+r;!this._numberFormatters.hasOwnProperty(i)||delete this._numberFormatters[i]}},p.prototype._getNumberFormatter=function(t,e,r,i,s,o){for(var a=e,c=i[a],l=this._getLocaleChain(e,r),u=0;u<l.length;u++){var h=a,f=l[u];if(c=i[f],a=f,!(k(c)||k(c[s])))break}if(k(c)||k(c[s]))return null;var d=c[s],_;if(o)_=new Intl.NumberFormat(a,Object.assign({},d,o));else{var v=a+"__"+s;_=this._numberFormatters[v],_||(_=this._numberFormatters[v]=new Intl.NumberFormat(a,d))}return _},p.prototype._n=function(t,e,r,i){if(!p.availabilities.numberFormat)return"";if(!r){var s=i?new Intl.NumberFormat(e,i):new Intl.NumberFormat(e);return s.format(t)}var o=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),r,i),a=o&&o.format(t);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(t,Object.assign({},{key:r,locale:e},i))}else return a||""},p.prototype.n=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];var i=this.locale,s=null,o=null;return e.length===1?I(e[0])?s=e[0]:V(e[0])&&(e[0].locale&&(i=e[0].locale),e[0].key&&(s=e[0].key),o=Object.keys(e[0]).reduce(function(a,c){var l;return qt(Nr,c)?Object.assign({},a,(l={},l[c]=e[0][c],l)):a},null)):e.length===2&&(I(e[0])&&(s=e[0]),I(e[1])&&(i=e[1])),this._n(t,i,s,o)},p.prototype._ntp=function(t,e,r,i){if(!p.availabilities.numberFormat)return[];if(!r){var s=i?new Intl.NumberFormat(e,i):new Intl.NumberFormat(e);return s.formatToParts(t)}var o=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),r,i),a=o&&o.formatToParts(t);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(t,e,r,i)}else return a||[]},Object.defineProperties(p.prototype,b);var qe;Object.defineProperty(p,"availabilities",{get:function(){if(!qe){var t=typeof Intl!="undefined";qe={dateTimeFormat:t&&typeof Intl.DateTimeFormat!="undefined",numberFormat:t&&typeof Intl.NumberFormat!="undefined"}}return qe}}),p.install=Be,p.version="8.25.0";var Hr=p;const mc={general:{save:"Save",reset:"Reset"},search:{title:"Suche",placeholder:"Search for Street, Address, Landmark, POI"},oblique:{title:"Schr\xE4gansicht",south:"S\xFCd",west:"West",east:"Ost",north:"Nord"},"action-content":{"camera-flight":"Camera Flight {index} in one line",interpolation:"Interpolation","total-flight-duration":"Total flight duration","circular-flight-path":"Circular flight path","show-flight-path":"Show flight path","flight-viewpoint":"Flight viewpoint","viewpoint-step":"Viewpoint step {index}"},"layer-tree":{title:"Inhalte / Umgebung",search:{placeholder:"Element, Ansicht..."}},components:{title:"Components"},tools:{title:"Werkzeuge"},"poi-view":{title:"POI & Attributes"},"endless-list":{"load-more":"Weitere Eintr\xE4ge laden","amount-loaded":"{loaded} von {total} Eintr\xE4ge "},"context-menu":{regular:{"zoom-in":"Zoom in","zoom-out":"Zoom out","rotate-90-cw":"Rotate 90\xB0 CW","rotate-90-ccw":"Rotate 90\xB0 CCW","pedestrian-mode":"Predestrian mode","reset-view":"Reset view",paste:"Paste","view-coordinates":"View coordinates","copy-coordinates":"Copy coordinates"}}},vc={general:{save:"Save",reset:"Reset"},search:{title:"Suche",placeholder:"Search for Street, Address, Landmark, POI"},oblique:{title:"Schr\xE4gansicht",south:"S\xFCd",west:"West",east:"Ost",north:"Nord"},"action-content":{"camera-flight":"Camera Flight {index} in one line",interpolation:"Interpolation","total-flight-duration":"Total flight duration","circular-flight-path":"Circular flight path","show-flight-path":"Show flight path","flight-viewpoint":"Flight viewpoint","viewpoint-step":"Viewpoint step {index}"},"layer-tree":{title:"Inhalte / Umgebung",search:{placeholder:"Element, Ansicht..."}},components:{title:"Components"},tools:{title:"Werkzeuge"},contextMenu:{regular:{"zoom-in":"Zoom in","zoom-out":"Zoom out","rotate-90-cw":"Rotate 90\xB0 CW","rotate-90-ccw":"Rotate 90\xB0 CCW","pedestrian-mode":"Predestrian mode","reset-view":"Reset view",paste:"Paste","view-coordinates":"View coordinates","copy-coordinates":"Copy coordinates"}}};L.use(Hr);const ze=new Hr({locale:"de",messages:{en:vc,de:mc}});L.filter("translate",(n,t)=>ze.t(n,t));class gc{constructor(){this.onAdded=new X,this.onRemoved=new X,this.state=K({visible:!0,groups:{}})}setGroupOpen(t,e){Object.values(this.state.groups).forEach(r=>{r.id===t?L.set(this.state.groups,r.id,F(E({},r),{open:e})):L.set(this.state.groups,r.id,F(E({},r),{open:!1}))})}toggle(){L.set(this.state,"visible",!this.state.visible)}has(t){return!!this.get(t)}get(t){return Object.values(this.state.groups).map(e=>e.options).flat().find(e=>e&&e.id===t)}setDisabled(t,e){const[r,i]=this.getSlotIndexAndEntry(t),s=i.options.find(o=>o.id===t);s.disabled=e,L.set(this.state.groups,r,i)}getSlotIndexAndEntry(t){return Object.entries(this.state.groups).find(e=>e[1]&&e[1].options&&e[1].options.find(r=>r.id===t))}selectOption(t){const[e,r]=this.getSlotIndexAndEntry(t),i=r.options.find(s=>s.id===t);i&&(i.selected=!i.selected),L.set(this.state.groups,e,E({},r))}getSlotIndexFor(t){const[e]=Object.entries(this.state.groups).find(r=>r[1].options.find(i=>i.id===t));return e}getNumberOfUsedSlots(){return Object.values(this.state.groups).reduce((t,e)=>e.type==="toggleButton"||e.type==="customComponent"||e.options&&e.options.length?t+1:t,0)}bringToTop(t){const[e,r]=this.getSlotIndexAndEntry(t),i=[r.options.find(s=>s.id===t),...r.options.filter(s=>s.id!==t)];L.set(this.state.groups,e,F(E({},r),{options:i}))}addToolboxItem(t,e){if(this.has(t.id))throw new Error(`Toolbox-Item with id ${t.id} has already been registered`);L.set(this.state.groups,e,F(E({},this.state.groups[e]),{options:[...this.state.groups[e].options,t]})),this.onAdded.raiseEvent(t.id)}addToolboxGroup(t,e){if(this.state.groups[e])throw new Error(`Toolbox-Group with slot-id ${e} has already been registered`);L.set(this.state.groups,e,t)}removeToolboxItem(t){const e=this.getSlotIndexFor(t);if(!e)throw new Error(`Cannot find slot index for toolbar item with id ${t}`);L.set(this.state.groups,e,F(E({},this.state.groups[e]),{options:[...this.state.groups[e].options.filter(r=>r.id!==t)]})),this.onRemoved.raiseEvent(t)}}function yc(){return Sn("VcsUiApp")}class Gr extends fi{constructor(){super();this._plugins=un(new an,()=>this.dynamicContextId,In,Cn),this._pluginAddedListener=this._plugins.added.addEventListener(t=>{t.initialize&&t.initialize(this)}),this._contentTreeClassRegistry=new pi(H),this._contentTree=$r(this),this._toolboxManager=new gc,this._windowManager=new An,this._navbarManager=new Vn,this._overviewMap=new mr(this)}get plugins(){return this._plugins}get contentTree(){return this._contentTree}get contentTreeClassRegistry(){return this._contentTreeClassRegistry}get toolboxManager(){return this._toolboxManager}get windowManager(){return this._windowManager}get navbarManager(){return this._navbarManager}get overviewMap(){return this._overviewMap}async _parseContext(t){const{config:e}=t;Array.isArray(e.plugins)&&(await Promise.all(e.plugins.map(async i=>{const s=await Tn(this,i.name,i);return s?(En(s.name)||yc().warning(`plugin ${s.name} has no valid package name!`),s[di]=t.id,s):null}))).filter(i=>i).map(i=>this._plugins.override(i)).filter(i=>i),await super._parseContext(t),await this._contentTree.parseItems(e.contentTree,t.id)}async _removeContext(t){await Promise.all([super._removeContext(t),this._plugins.removeContext(t),this._contentTree.removeContext(t)])}destroy(){this.windowManager.destroy(),this.navbarManager.destroy(),this._overviewMap.destroy(),this._pluginAddedListener(),hn(this._plugins),hn(this._contentTree),this._contentTreeClassRegistry.destroy(),super.destroy()}}async function bc(n,t){g(n,String),ut(t,String);const e=new Gr;if(new L({vuetify:Ie,i18n:ze,render:r=>r(Cr,{props:{appId:e.id}})}).$mount(n),t){const r=await fetch(t).then(s=>s.json()),i=new _i(r);await e.addContext(i)}return e}export{U as ButtonLocation,Vn as ButtonManager,Mr as ContentTreeCollection,Z as ContentTreeItem,ls as EmptyCmpt,ke as GroupContentTreeItem,Pe as LayerContentTreeItem,Ve as LayerGroupContentTreeItem,Lr as LayerTree,xe as MapNavCompass,Oe as MapNavigation,ve as Navbar,Re as NodeContentTreeItem,De as ObliqueCollectionContentTreeItem,$e as ObliqueRotation,J as OrientationToolsButton,mr as OverviewMap,_r as OverviewMapClickedInteraction,yn as StyleSelector,Bt as SubContentTreeItem,Me as TiltSlider,Cr as VcsApp,Ae as VcsCompass,Wt as VcsMap,pt as VcsObjectContentTreeItem,Gr as VcsUiApp,cr as VcsWindowManager,Le as VcsZoomButton,je as ViewPointContentTreeItem,Te as WindowComponent,or as WindowComponentHeader,An as WindowManager,D as WindowPositions,A as WindowSlot,$r as createContentTreeCollection,me as createGoToViewpointAction,On as createLinkAction,Ln as createMapButtonAction,$n as createModalAction,Mn as createOverviewMapAction,Fn as createStateRefAction,_e as createToggleAction,Cn as deserializePlugin,Pn as getActionsByLocation,Ht as getStateFromLayer,Ce as getWindowComponentOptions,ze as i18n,bc as initApp,En as isValidPackageName,Tn as loadPlugin,tt as pluginFactorySymbol,In as serializePlugin,Ut as setViewpointAction,P as vcsAppSymbol,Ie as vuetify};
package/dist/assets/ui.js CHANGED
@@ -1 +1 @@
1
- export * from "./ui.c4abb7.js";
1
+ export * from "./ui.b7c1e3.js";